Skip to main content
Version: v3.x

DomainObjs

An utility contract that holds a number of domain objects and functions

MESSAGE_DATA_LENGTH

uint8 MESSAGE_DATA_LENGTH

the length of a MACI message

Mode

voting modes

enum Mode {
QV,
NON_QV,
FULL
}

Message

this struct represents a MACI message

msgType: 1 for vote message

struct Message {
uint256[10] data;
}

PublicKey

A MACI public key

struct PublicKey {
uint256 x;
uint256 y;
}

StateLeaf

A MACI state leaf

used to represent a user's state in the state Merkle tree

struct StateLeaf {
struct DomainObjs.PublicKey publicKey;
uint256 voiceCreditBalance;
}