Build
Contracts and addresses
Sei Atlantic-2 testnet, chain id 1328. Unaudited. Not for production.
| Contract | Address | Verification |
|---|---|---|
| BatinPool | 0x5cCd205EED235d74f31A3c350Ece94AF11E07E72 |
Sourcify partial match (bytecode matches, metadata hash differs) |
| Groth16Verifier | 0x7dd09F80AF704A475caaDB45cB723C1F944B44F1 |
Sourcify exact match |
| PoseidonT3 | 0x7E2364aF14A317EdCc107ECbC64C6BeD10A62614 |
Sourcify exact match |
| USDC (Circle, testnet) | 0x4fCF1784B31630811181f670Aea7A7bEF803eaED |
— |
- Deploy block: 284163530. Pool deploy tx:
0x26c3…f916. - ASP poster:
0x0D95C73Fb35C8a42b4A812F7E9cc142cB9436D6c(the deployer; testnet approves everything). - Tree depth 20. Caps: 100 SEI or 500 USDC per deposit; 10,000 SEI and 25,000 USDC in the pool.
- A superseded first pool,
0x4C10…c24A, holds 0.15 SEI and 1 USDC of smoke-test change and isn't used.
Records: deployments/atlantic-2.json and deployments/atlantic-2-verification.json.
Interface
function shield(Proof proof, TxArgs args, ExtData ext) external payable; // depositor → pending
function approve(uint256[] ids, bytes32[2][] commitments) external; // ASP poster only
function refund(uint256 id) external; // depositor only, while pending
function transact(Proof proof, TxArgs args, ExtData ext) external; // transfer, claim, withdrawal
function isKnownRoot(bytes32 root) external view returns (bool);
function nullifierSpent(bytes32) external view returns (bool);
function deposits(uint256) external view returns (bytes32 commitmentsHash, address depositor, uint256 assetId, uint8 state, uint256 amount);
Events: DepositPending, DepositApproved, DepositRefunded, NewCommitment(commitment, leafIndex, encryptedOutput), NewNullifier, Unshield.
Errors include UnknownRoot, NullifierSpent, DuplicateNullifier, RelayerMismatch, InvalidProof, NotPending, CommitmentsMismatch, CapExceeded, BadCiphertext.
Measured gas (Atlantic-2, 55 gwei)
| Action | Gas | About |
|---|---|---|
Deposit (shield) |
~728k | 0.040 SEI |
USDC approve |
~107k | 0.006 SEI |
ASP approve (one deposit) |
~833k | 0.046 SEI |
| Transfer or claim | ~1.26M | 0.069 SEI |
| Withdrawal | ~1.29M | 0.071 SEI |
Most of the cost is on-chain Poseidon hashing for the tree. Optimising it is an open item before mainnet.
Circuit artifacts served by this site
| File | SHA-256 |
|---|---|
joinsplit.wasm (3,229,474 B) |
841ccf89f1fb6c11ba32cef35ab14208a98a9470a0904be13dcbacd6ccf27fe3 |
joinsplit_final.zkey (14,763,311 B) |
6138886f088c97ed2c8475799a64462f877446d412a2ae2587eaef88984c0409 |
Source: apps/web/content/docs/contracts.md