TRON DAO Unleashes 'Ctrl+C, Ctrl+V' for Smart Contracts: Clones and CREATE2 to Dodge Fees and Save Energy
Back to feed

TRON DAO Unleashes 'Ctrl+C, Ctrl+V' for Smart Contracts: Clones and CREATE2 to Dodge Fees and Save Energy

By our Crypto News Room Editorial Desk2 min read

TRON DAO devs just dropped a demo on cloning smart contracts, aiming to slash the energy and costs of deploying them at scale. It’s basically the crypto version of a photocopier, but for code.

Instead of deploying a full contract for every single instance—which burns through network resources like a degen on a 100x leverage kick—the demo uses the 'clone pattern.' This means you deploy the heavy-lifting logic contract just once. Then, you spawn 'minimal proxies' that forward calls to the main logic via delegatecall but keep their own storage.

This setup is ideal for projects needing a boatload of similar contracts with different settings or ownerships. The factory deploys the implementation once, then spits out new proxies as needed. Think of it as a factory line for smart contracts, minus the union breaks.

The demo also brings CREATE2-style deterministic deployment to the TRON network. This allows devs to precompute a contract’s address off-chain using the deployer, a salt, and the bytecode. Because TRON’s environment differs from Ethereum, the team included an experimental DeterministicDeploymentProxy to make this work with TRON tooling.

The repo features DeployClone.sol for issuing proxies, along with libraries like Clones.sol and an altered Create2.sol for address prediction. It also uses immutable arguments, imprinting parameters directly into the clone code to reduce transaction steps. Fewer steps mean fewer fees, which is something even the most stoic maxi can appreciate.

To show it off, they included SmartSweeperAccount.sol, a cloneable example for managing and sweeping TRX and TRC-20 tokens. Setup requires Node.js, TronBox, and some testnet TRX. So, if you’re looking to test this out, you know what to grab.

This news follows TRON DAO's recent partnership with MoonPay to launch a native, non-custodial wallet within the MoonPay app. This allows users to manage TRX and USDT without leaving the platform, which is a nice bit of friction reduction for the masses.

TRX is currently trading at $0.2982, up marginally in the last 24 hours, with a market cap of $28.24 billion. Not a moonshot, but steady as she goes.

Mentioned Coins

$TRX$USDT
Share:
Keep Reading

Related Articles

View all
Publishercryptonewsroom.xyz
Published
Updated

Disclaimer: This content is for information and entertainment purposes only. It does not constitute financial, investment, legal, or tax advice. Always do your own research and consult with qualified professionals before making any financial decisions.

See our Terms of Service, Privacy Policy, and Editorial Policy.