Live on mainnet and testnet. Uzo Deploy runs on BOT Chain mainnet (chain 677) and testnet (chain 968). On mainnet you pay gas and a fixed 0.1 BOT deploy fee in real BOT. To practice for free, switch the app to testnet and get tBOT from the faucet.
The short version
You never send code to the chain yourself. Uzo has already deployed one factory contract per template. A factory is a contract whose only job is to create copies of one template. When you sign, your wallet calls the factory, and the factory creates your contract with the settings you chose. The app then asks BOTScan to verify the new contract. Verification publishes the source code on BOTScan and proves it matches the code on chain, so anyone can read what your contract does.Factories
There is one factory per template and version: a token factory, an NFT factory and a tip jar factory, each at version 1. Their addresses are on Contracts. The factories have:- No owner. Nobody, including Uzo, has special rights over them.
- A fixed fee. Each factory charges 0.1 BOT per deploy (0.1 tBOT on testnet). The amount and the wallet it goes to are set when the factory is deployed and can never change.
- No pause and no upgrade path. The code can’t be changed after deployment.
The deploy fee
The factory’sdeploy function is payable. You send the fee with the transaction, and the factory checks the amount is exactly right. If it isn’t, the deploy reverts with WrongFee(expected, sent).
The factory creates your contract first and forwards the fee to Uzo’s wallet last, in the same transaction. A factory never holds funds. If the deploy reverts, no fee is taken. Tips never pay the fee. The fee wallet address is on Contracts.
Anyone can read the fee from the factory’s fee() function and the wallet from feeRecipient().
New versions
Because the factories can’t change, a new version of a template means a new factory at a new address. Contracts already deployed stay as they are.CREATE2: your address before you sign
The factories create contracts with CREATE2. CREATE2 is an EVM opcode that works out a new contract’s address from the factory’s address, a salt and the contract’s code, instead of from a counter. Same inputs, same address. That’s why the Review step can show your contract address before you sign. The app calls the factory’spredictAddress function, and after the deploy it checks the real address matches.
The salt includes your wallet address. The factory builds it as keccak256(abi.encode(msg.sender, userSalt)), where msg.sender is the wallet that calls the factory. So nobody else can deploy to the address predicted for you: their wallet address gives a different salt.
The Deployed event
Every factory records each new contract with the same event:Deployed event
My contracts and the stats page are built from these events. There’s no separate database of deployments.
uzoTemplate(): identify a Uzo contract
Every contract created by a Uzo factory has auzoTemplate() function:
Template contracts
Deployed event. The values for each template are on Contracts.
Any contract can copy this function, so it’s a label, not proof. To check that a contract came from Uzo, look for a Deployed event from a Uzo factory with that contract as the instance. The tip page does this check before it shows a tip form.
Verification
After the deploy lands, the app sends the address and the transaction hash to its verification service. The service never takes source code from your browser. It reads the factory’sDeployed event and your transaction from the chain, works out the settings you used, and submits the matching source from the uzo-deploy repo to BOTScan.
See Verification for how to check it and what to do if it fails.
Related pages
Contracts
Factory addresses and template IDs.
Security
What Uzo can and can’t do.