Expand description
DarkFi Money Contract
Smart contract implementing money transfers, atomic swaps, token minting and freezing, and staking/unstaking of consensus tokens.
Modules§
- client
- Client API for interaction with this smart contract Contract Client API
- error
- Internal contract errors
- model
- Call parameters definitions
Enums§
- Money
Function - Functions available in the contract
Constants§
- EMPTY_
COINS_ TREE_ ROOT - Precalculated root hash for a tree containing only a single Fp::ZERO coin. Used to save gas.
- MONEY_
CONTRACT_ COINS_ TREE - MONEY_
CONTRACT_ COIN_ MERKLE_ TREE - MONEY_
CONTRACT_ COIN_ ROOTS_ TREE - MONEY_
CONTRACT_ DB_ VERSION - MONEY_
CONTRACT_ FEES_ TREE - MONEY_
CONTRACT_ INFO_ TREE - MONEY_
CONTRACT_ LATEST_ COIN_ ROOT - MONEY_
CONTRACT_ LATEST_ NULLIFIER_ ROOT - MONEY_
CONTRACT_ NULLIFIERS_ TREE - MONEY_
CONTRACT_ NULLIFIER_ ROOTS_ TREE - MONEY_
CONTRACT_ TOKEN_ FREEZE_ TREE - MONEY_
CONTRACT_ ZKAS_ AUTH_ TOKEN_ MINT_ NS_ V1 - zkas token auth mint circuit namespace
- MONEY_
CONTRACT_ ZKAS_ BURN_ NS_ V1 - zkas burn circuit namespace
- MONEY_
CONTRACT_ ZKAS_ FEE_ NS_ V1 - zkas fee circuit namespace
- MONEY_
CONTRACT_ ZKAS_ MINT_ NS_ V1 - zkas mint circuit namespace
- MONEY_
CONTRACT_ ZKAS_ TOKEN_ MINT_ NS_ V1 - zkas token mint circuit namespace