Skip to main content
Version: v3.x

Minimal Anti Collusion Infrastructure (MACI) / MACI

Interface: MACI

Defined in: contracts/typechain-types/contracts/MACI.ts:361

Extends

  • BaseContract

Properties

deployPoll

deployPoll: TypedContractMethod<[DeployPollArgsStruct], [PollContractsStructOutput], "nonpayable">

Defined in: contracts/typechain-types/contracts/MACI.ts:406


emptyBallotRoots

emptyBallotRoots: TypedContractMethod<[BigNumberish], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:412


filters

filters: object

Defined in: contracts/typechain-types/contracts/MACI.ts:669

All the Events available on this contract.

DeployPoll

DeployPoll: TypedContractEvent<InputTuple, OutputTuple, OutputObject>

DeployPoll(uint256,uint256,uint256,uint8)

DeployPoll(uint256,uint256,uint256,uint8): TypedContractEvent<InputTuple, OutputTuple, OutputObject>

SignUp

SignUp: TypedContractEvent<InputTuple, OutputTuple, OutputObject>

SignUp(uint256,uint256,uint256,uint256)

SignUp(uint256,uint256,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>

Overrides

BaseContract.filters


getPoll

getPoll: TypedContractMethod<[BigNumberish], [PollContractsStructOutput], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:414


getStateIndex

getStateIndex: TypedContractMethod<[BigNumberish], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:420


getStateRootOnIndexedSignUp

getStateRootOnIndexedSignUp: TypedContractMethod<[BigNumberish], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:426


getStateTreeRoot

getStateTreeRoot: TypedContractMethod<[], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:432


hash2

hash2: TypedContractMethod<[[BigNumberish, BigNumberish]], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:434


hash3

hash3: TypedContractMethod<[[BigNumberish, BigNumberish, BigNumberish]], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:440


hash4

hash4: TypedContractMethod<[[BigNumberish, BigNumberish, BigNumberish, BigNumberish]], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:446


hash5

hash5: TypedContractMethod<[[BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish]], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:452


hashLeftRight

hashLeftRight: TypedContractMethod<[BigNumberish, BigNumberish], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:466


interface

interface: MACIInterface

Defined in: contracts/typechain-types/contracts/MACI.ts:365

The contract Interface.

Overrides

BaseContract.interface


leanIMTData

leanIMTData: TypedContractMethod<[], [[bigint, bigint] & object], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:472


maxSignups

maxSignups: TypedContractMethod<[], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:478


MESSAGE_DATA_LENGTH

MESSAGE_DATA_LENGTH: TypedContractMethod<[], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:404


messageProcessorFactory

messageProcessorFactory: TypedContractMethod<[], [string], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:480


nextPollId

nextPollId: TypedContractMethod<[], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:482


pollFactory

pollFactory: TypedContractMethod<[], [string], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:484


polls

polls: TypedContractMethod<[BigNumberish], [[string, string, string] & object], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:486


sha256Hash

sha256Hash: TypedContractMethod<[BigNumberish[]], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:498


signUp

signUp: TypedContractMethod<[PublicKeyStruct, BytesLike], [void], "nonpayable">

Defined in: contracts/typechain-types/contracts/MACI.ts:500


signUpPolicy

signUpPolicy: TypedContractMethod<[], [string], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:506


stateRootsOnSignUp

stateRootsOnSignUp: TypedContractMethod<[BigNumberish], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:508


stateTreeDepth

stateTreeDepth: TypedContractMethod<[], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:514


tallyFactory

tallyFactory: TypedContractMethod<[], [string], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:516


totalSignups

totalSignups: TypedContractMethod<[], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:518

Methods

connect()

connect(runner?): MACI

Defined in: contracts/typechain-types/contracts/MACI.ts:362

Return a new Contract instance with the same target and ABI, but a different %%runner%%.

Parameters

runner?

null | ContractRunner

Returns

MACI

Overrides

BaseContract.connect


getEvent()

Call Signature

getEvent(key): TypedContractEvent<InputTuple, OutputTuple, OutputObject>

Defined in: contracts/typechain-types/contracts/MACI.ts:654

Return the event for a given name. This is useful when a contract event name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters
key

"DeployPoll"

Returns

TypedContractEvent<InputTuple, OutputTuple, OutputObject>

Overrides

BaseContract.getEvent

Call Signature

getEvent(key): TypedContractEvent<InputTuple, OutputTuple, OutputObject>

Defined in: contracts/typechain-types/contracts/MACI.ts:661

Return the event for a given name. This is useful when a contract event name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters
key

"SignUp"

Returns

TypedContractEvent<InputTuple, OutputTuple, OutputObject>

Overrides

BaseContract.getEvent


getFunction()

Call Signature

getFunction<T>(key): T

Defined in: contracts/typechain-types/contracts/MACI.ts:520

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Type Parameters
T

T extends ContractMethod<any[], any, any> = ContractMethod<any[], any, any>

Parameters
key

string | FunctionFragment

Returns

T

Overrides

BaseContract.getFunction

Call Signature

getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:524

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters
nameOrSignature

"MESSAGE_DATA_LENGTH"

Returns

TypedContractMethod<[], [bigint], "view">

Overrides

BaseContract.getFunction

Call Signature

getFunction(nameOrSignature): TypedContractMethod<[DeployPollArgsStruct], [PollContractsStructOutput], "nonpayable">

Defined in: contracts/typechain-types/contracts/MACI.ts:527

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters
nameOrSignature

"deployPoll"

Returns

TypedContractMethod<[DeployPollArgsStruct], [PollContractsStructOutput], "nonpayable">

Overrides

BaseContract.getFunction

Call Signature

getFunction(nameOrSignature): TypedContractMethod<[BigNumberish], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:534

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters
nameOrSignature

"emptyBallotRoots"

Returns

TypedContractMethod<[BigNumberish], [bigint], "view">

Overrides

BaseContract.getFunction

Call Signature

getFunction(nameOrSignature): TypedContractMethod<[BigNumberish], [PollContractsStructOutput], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:537

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters
nameOrSignature

"getPoll"

Returns

TypedContractMethod<[BigNumberish], [PollContractsStructOutput], "view">

Overrides

BaseContract.getFunction

Call Signature

getFunction(nameOrSignature): TypedContractMethod<[BigNumberish], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:544

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters
nameOrSignature

"getStateIndex"

Returns

TypedContractMethod<[BigNumberish], [bigint], "view">

Overrides

BaseContract.getFunction

Call Signature

getFunction(nameOrSignature): TypedContractMethod<[BigNumberish], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:547

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters
nameOrSignature

"getStateRootOnIndexedSignUp"

Returns

TypedContractMethod<[BigNumberish], [bigint], "view">

Overrides

BaseContract.getFunction

Call Signature

getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:550

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters
nameOrSignature

"getStateTreeRoot"

Returns

TypedContractMethod<[], [bigint], "view">

Overrides

BaseContract.getFunction

Call Signature

getFunction(nameOrSignature): TypedContractMethod<[[BigNumberish, BigNumberish]], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:553

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters
nameOrSignature

"hash2"

Returns

TypedContractMethod<[[BigNumberish, BigNumberish]], [bigint], "view">

Overrides

BaseContract.getFunction

Call Signature

getFunction(nameOrSignature): TypedContractMethod<[[BigNumberish, BigNumberish, BigNumberish]], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:560

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters
nameOrSignature

"hash3"

Returns

TypedContractMethod<[[BigNumberish, BigNumberish, BigNumberish]], [bigint], "view">

Overrides

BaseContract.getFunction

Call Signature

getFunction(nameOrSignature): TypedContractMethod<[[BigNumberish, BigNumberish, BigNumberish, BigNumberish]], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:567

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters
nameOrSignature

"hash4"

Returns

TypedContractMethod<[[BigNumberish, BigNumberish, BigNumberish, BigNumberish]], [bigint], "view">

Overrides

BaseContract.getFunction

Call Signature

getFunction(nameOrSignature): TypedContractMethod<[[BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish]], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:574

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters
nameOrSignature

"hash5"

Returns

TypedContractMethod<[[BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish]], [bigint], "view">

Overrides

BaseContract.getFunction

Call Signature

getFunction(nameOrSignature): TypedContractMethod<[BigNumberish, BigNumberish], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:589

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters
nameOrSignature

"hashLeftRight"

Returns

TypedContractMethod<[BigNumberish, BigNumberish], [bigint], "view">

Overrides

BaseContract.getFunction

Call Signature

getFunction(nameOrSignature): TypedContractMethod<[], [[bigint, bigint] & object], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:596

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters
nameOrSignature

"leanIMTData"

Returns

TypedContractMethod<[], [[bigint, bigint] & object], "view">

Overrides

BaseContract.getFunction

Call Signature

getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:603

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters
nameOrSignature

"maxSignups"

Returns

TypedContractMethod<[], [bigint], "view">

Overrides

BaseContract.getFunction

Call Signature

getFunction(nameOrSignature): TypedContractMethod<[], [string], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:606

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters
nameOrSignature

"messageProcessorFactory"

Returns

TypedContractMethod<[], [string], "view">

Overrides

BaseContract.getFunction

Call Signature

getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:609

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters
nameOrSignature

"nextPollId"

Returns

TypedContractMethod<[], [bigint], "view">

Overrides

BaseContract.getFunction

Call Signature

getFunction(nameOrSignature): TypedContractMethod<[], [string], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:612

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters
nameOrSignature

"pollFactory"

Returns

TypedContractMethod<[], [string], "view">

Overrides

BaseContract.getFunction

Call Signature

getFunction(nameOrSignature): TypedContractMethod<[BigNumberish], [[string, string, string] & object], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:615

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters
nameOrSignature

"polls"

Returns

TypedContractMethod<[BigNumberish], [[string, string, string] & object], "view">

Overrides

BaseContract.getFunction

Call Signature

getFunction(nameOrSignature): TypedContractMethod<[BigNumberish[]], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:628

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters
nameOrSignature

"sha256Hash"

Returns

TypedContractMethod<[BigNumberish[]], [bigint], "view">

Overrides

BaseContract.getFunction

Call Signature

getFunction(nameOrSignature): TypedContractMethod<[PublicKeyStruct, BytesLike], [void], "nonpayable">

Defined in: contracts/typechain-types/contracts/MACI.ts:631

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters
nameOrSignature

"signUp"

Returns

TypedContractMethod<[PublicKeyStruct, BytesLike], [void], "nonpayable">

Overrides

BaseContract.getFunction

Call Signature

getFunction(nameOrSignature): TypedContractMethod<[], [string], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:638

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters
nameOrSignature

"signUpPolicy"

Returns

TypedContractMethod<[], [string], "view">

Overrides

BaseContract.getFunction

Call Signature

getFunction(nameOrSignature): TypedContractMethod<[BigNumberish], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:641

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters
nameOrSignature

"stateRootsOnSignUp"

Returns

TypedContractMethod<[BigNumberish], [bigint], "view">

Overrides

BaseContract.getFunction

Call Signature

getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:644

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters
nameOrSignature

"stateTreeDepth"

Returns

TypedContractMethod<[], [bigint], "view">

Overrides

BaseContract.getFunction

Call Signature

getFunction(nameOrSignature): TypedContractMethod<[], [string], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:647

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters
nameOrSignature

"tallyFactory"

Returns

TypedContractMethod<[], [string], "view">

Overrides

BaseContract.getFunction

Call Signature

getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MACI.ts:650

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters
nameOrSignature

"totalSignups"

Returns

TypedContractMethod<[], [bigint], "view">

Overrides

BaseContract.getFunction


listeners()

Call Signature

listeners<TCEvent>(event): Promise<TypedListener<TCEvent>[]>

Defined in: contracts/typechain-types/contracts/MACI.ts:396

Resolves to the listeners subscribed to %%event%% or all listeners if unspecified.

Type Parameters
TCEvent

TCEvent extends TypedContractEvent<any, any, any>

Parameters
event

TCEvent

Returns

Promise<TypedListener<TCEvent>[]>

Overrides

BaseContract.listeners

Call Signature

listeners(eventName?): Promise<Listener[]>

Defined in: contracts/typechain-types/contracts/MACI.ts:399

Resolves to the listeners subscribed to %%event%% or all listeners if unspecified.

Parameters
eventName?

string

Returns

Promise<Listener[]>

Overrides

BaseContract.listeners


on()

Call Signature

on<TCEvent>(event, listener): Promise<MACI>

Defined in: contracts/typechain-types/contracts/MACI.ts:378

Add an event %%listener%% for the %%event%%.

Type Parameters
TCEvent

TCEvent extends TypedContractEvent<any, any, any>

Parameters
event

TCEvent

listener

TypedListener<TCEvent>

Returns

Promise<MACI>

Overrides

BaseContract.on

Call Signature

on<TCEvent>(filter, listener): Promise<MACI>

Defined in: contracts/typechain-types/contracts/MACI.ts:382

Add an event %%listener%% for the %%event%%.

Type Parameters
TCEvent

TCEvent extends TypedContractEvent<any, any, any>

Parameters
filter

TypedDeferredTopicFilter<TCEvent>

listener

TypedListener<TCEvent>

Returns

Promise<MACI>

Overrides

BaseContract.on


once()

Call Signature

once<TCEvent>(event, listener): Promise<MACI>

Defined in: contracts/typechain-types/contracts/MACI.ts:387

Add an event %%listener%% for the %%event%%, but remove the listener after it is fired once.

Type Parameters
TCEvent

TCEvent extends TypedContractEvent<any, any, any>

Parameters
event

TCEvent

listener

TypedListener<TCEvent>

Returns

Promise<MACI>

Overrides

BaseContract.once

Call Signature

once<TCEvent>(filter, listener): Promise<MACI>

Defined in: contracts/typechain-types/contracts/MACI.ts:391

Add an event %%listener%% for the %%event%%, but remove the listener after it is fired once.

Type Parameters
TCEvent

TCEvent extends TypedContractEvent<any, any, any>

Parameters
filter

TypedDeferredTopicFilter<TCEvent>

listener

TypedListener<TCEvent>

Returns

Promise<MACI>

Overrides

BaseContract.once


queryFilter()

Call Signature

queryFilter<TCEvent>(event, fromBlockOrBlockhash?, toBlock?): Promise<TypedEventLog<TCEvent>[]>

Defined in: contracts/typechain-types/contracts/MACI.ts:367

Provide historic access to event data for %%event%% in the range %%fromBlock%% (default: 0) to %%toBlock%% (default: "latest") inclusive.

Type Parameters
TCEvent

TCEvent extends TypedContractEvent<any, any, any>

Parameters
event

TCEvent

fromBlockOrBlockhash?

string | number

toBlock?

string | number

Returns

Promise<TypedEventLog<TCEvent>[]>

Overrides

BaseContract.queryFilter

Call Signature

queryFilter<TCEvent>(filter, fromBlockOrBlockhash?, toBlock?): Promise<TypedEventLog<TCEvent>[]>

Defined in: contracts/typechain-types/contracts/MACI.ts:372

Provide historic access to event data for %%event%% in the range %%fromBlock%% (default: 0) to %%toBlock%% (default: "latest") inclusive.

Type Parameters
TCEvent

TCEvent extends TypedContractEvent<any, any, any>

Parameters
filter

TypedDeferredTopicFilter<TCEvent>

fromBlockOrBlockhash?

string | number

toBlock?

string | number

Returns

Promise<TypedEventLog<TCEvent>[]>

Overrides

BaseContract.queryFilter


removeAllListeners()

removeAllListeners<TCEvent>(event?): Promise<MACI>

Defined in: contracts/typechain-types/contracts/MACI.ts:400

Remove all the listeners for %%event%% or remove all listeners if unspecified.

Type Parameters

TCEvent

TCEvent extends TypedContractEvent<any, any, any>

Parameters

event?

TCEvent

Returns

Promise<MACI>

Overrides

BaseContract.removeAllListeners


waitForDeployment()

waitForDeployment(): Promise<MACI>

Defined in: contracts/typechain-types/contracts/MACI.ts:363

Resolve to this Contract once the bytecode has been deployed, or resolve immediately if already deployed.

Returns

Promise<MACI>

Overrides

BaseContract.waitForDeployment