TRON DAO ecosystem developers have published a demo that applies minimal proxy contracts and deterministic deployment to repeated smart contract creation on the TRON network.
Full-contract deployment of every instance makes the network more energy-consuming and expensive to deploy. The demo separates instances and logic with the use of the clone pattern.
Therefore, one implementation contract holds the executable code, while each instance is a small proxy that forwards calls to the implementation through delegatecall and maintains its own storage.
In the proxy flow, a team deploys the implementation once, then uses a factory to create new proxy instances as needed. Every clone acts as an independent contract, with the proxy storing all the state variables. The proposed implementation suits projects with a large number of similar contracts with varying ownership, permissions, or settings.
The proposal also includes deterministic deployment based on CREATE2. This will enable developers to compute contract addresses before deployment from the deployer address, a salt, and the bytecode. Because TRON’s execution environment and address formatting differ from Ethereum, the demo includes an experimental DeterministicDeploymentProxy contract to support predictable deployments with TRON-compatible tooling.
With deterministic deployment, developers can pre-compute an address off-chain, share it with other services, and later deploy the contract so the resulting address matches the computed value.
The standardization of workflows in the creation is done through factory contracts. DeployClone.sol is the main factory used to issue minimal proxy deployments, either normal CREATE deployments or deterministic CREATE2 deployments. Demo also includes certain supporting libraries, such as Clones.sol, which contains logic to create proxies and Create2.sol, which contains address prediction tools altered to use TRON.
The repository also exhibits immutable argumentization, whereby parameters are imprinted into the deployed clone code as opposed to being assigned in a subsequent post-deployment operation. This minimizes the transactions to configure a new instance and minimizes the timing difference between deployment and initialization.
SmartSweeperAccount.sol is provided as an example implementation designed for cloning. It demonstrates account instances that can manage and sweep TRX and TRC-20 tokens, including workflows used for deposit collection and token sweeping.
For setup, the demo lists Node.js, PNPM or NPM, TronBox, and testnet TRX for Nile or Shasta. After cloning the repository, developers can copy the environment template to a local .env file, compile contracts, deploy to a testnet, and run tests using the included scripts.
Last year, TRON DAO partnered with MoonPay to launch a native, non-custodial TRON wallet integrated into the MoonPay app. The wallet was designed to let users buy, sell, send, and store TRX and USDT while keeping control of their private keys. MoonPay said the feature would reduce the need for users to switch platforms when managing TRON-based assets.
TRX trades at $0.2982, gaining marginally over the past day for a $28.24 billion market cap.
]]>

