Skip to main content
Version: v2.0_alpha

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
}

Message

this struct represents a MACI message

msgType: 1 for vote message

struct Message {
uint256[10] data;
}

PubKey

A MACI public key

struct PubKey {
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.PubKey pubKey;
uint256 voiceCreditBalance;
uint256 timestamp;
}