Crate darkfi_dao_contract

Crate darkfi_dao_contract 

Source
Expand description

Smart contract implementing Anonymous DAOs on DarkFi.

Modulesยง

client
Client API for interaction with this smart contract
error
Internal contract errors
model
Call parameters definitions

Enumsยง

DaoFunction
Functions available in the contract

Constantsยง

DAO_CONTRACT_BULLAS_TREE
DAO_CONTRACT_DB_VERSION
DAO_CONTRACT_INFO_TREE
DAO_CONTRACT_LATEST_ROOT
DAO_CONTRACT_MERKLE_ROOTS_TREE
DAO_CONTRACT_MERKLE_TREE
DAO_CONTRACT_PROPOSAL_BULLAS_TREE
DAO_CONTRACT_VOTE_NULLIFIERS_TREE
DAO_CONTRACT_ZKAS_AUTH_MONEY_TRANSFER_ENC_COIN_NS
zkas dao auth money_transfer encrypted coin circuit namespace
DAO_CONTRACT_ZKAS_AUTH_MONEY_TRANSFER_NS
zkas dao auth money_transfer circuit namespace
DAO_CONTRACT_ZKAS_EARLY_EXEC_NS
zkas dao early exec circuit namespace
DAO_CONTRACT_ZKAS_EXEC_NS
zkas dao exec circuit namespace
DAO_CONTRACT_ZKAS_MINT_NS
zkas dao mint circuit namespace
DAO_CONTRACT_ZKAS_PROPOSE_INPUT_NS
zkas dao propose input circuit namespace
DAO_CONTRACT_ZKAS_PROPOSE_MAIN_NS
zkas dao propose main circuit namespace
DAO_CONTRACT_ZKAS_VOTE_INPUT_NS
zkas dao vote input circuit namespace
DAO_CONTRACT_ZKAS_VOTE_MAIN_NS
zkas dao vote main circuit namespace
PROPOSAL_SNAPSHOT_CUTOFF_LIMIT
Not allowed to make proposals using snapshots with block heights older than this depth
WINDOW_TIME ๐Ÿ”’
_SECS_IN_HOUR ๐Ÿ”’
_WINDOW_TIME_HR ๐Ÿ”’

Functionsยง

blockwindow
Blockwindow from block height and target time. Used for time limit on DAO proposals.