Empire Treasury (Write)
Relevant write calls for Empire Treasury contracts.
Each Empire treasury contract is a Splits SmartVault ERC-4337 smart account.
The treasury address is the same on Base and Arbitrum.
Write Operations
Distribute Tokens — send treasury tokens to leaderboard members via
executeBatchBurn — reduce token supply by transferring to zero/dead address
Guardian Management — add and remove co-guardians
UserOperation Flow (web app)
In the Empire Builder UI, SmartVault writes use the ERC-4337 model:
1. Build calldata (e.g. executeBatch with transfer calls)
2. Construct UserOp with the vault as sender
3. Submit to Alchemy bundler for gas estimation and paymaster sponsorship
4. Sign the UserOp hash with the owner's wallet (EIP-191)
5. Encode the signature as a V3 Signer struct
6. Submit the signed UserOp to the bundler
7. Bundler submits to EntryPoint → vault executesGas is sponsored by the Empire Builder paymaster. TX credits are consumed per operation.
Direct Execution (non-batched)
For single operations, the vault also exposes:
This is equivalent to a single-item executeBatch but without the array overhead.
Last updated

