Skip to main content
Version: v3.x

Minimal Anti Collusion Infrastructure (MACI) / MessageProcessor

Interface: MessageProcessor

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:177

Extends​

  • BaseContract

Properties​

currentBatchIndex​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:222


filters​

filters: object

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:405

All the Events available on this contract.

Overrides​

BaseContract.filters


getAppendedBytes​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:224


getPublicCircuitInputs​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:226


hash2​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:236


hash3​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:242


hash4​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:248


hash5​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:254


hashLeftRight​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:268


initialize​

initialize: TypedContractMethod<[], [void], "nonpayable">

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:274


initialized​

initialized: TypedContractMethod<[], [boolean], "view">

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:276


interface​

interface: MessageProcessorInterface

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:181

The contract Interface.

Overrides​

BaseContract.interface


MESSAGE_DATA_LENGTH​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:220


mode​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:278


poll​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:280


processingComplete​

processingComplete: TypedContractMethod<[], [boolean], "view">

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:288


processMessages​

processMessages: TypedContractMethod<[BigNumberish, BigNumberish[]], [void], "nonpayable">

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:282


sbCommitment​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:290


sha256Hash​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:292


totalBatchesProcessed​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:294


verifier​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:296


verifyingKeysRegistry​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:298

Methods​

connect()​

connect(runner?): MessageProcessor

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:178

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

Parameters​

runner?​

ContractRunner | null

Returns​

MessageProcessor

Overrides​

BaseContract.connect


getFunction()​

Call Signature​

getFunction<T>(key): T

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:300

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/MessageProcessor.ts:304

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<[], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:307

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​

"currentBatchIndex"

Returns​

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

Overrides​

BaseContract.getFunction

Call Signature​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:310

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​

"getAppendedBytes"

Returns​

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

Overrides​

BaseContract.getFunction

Call Signature​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:313

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​

"getPublicCircuitInputs"

Returns​

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

Overrides​

BaseContract.getFunction

Call Signature​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:324

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/MessageProcessor.ts:331

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/MessageProcessor.ts:338

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/MessageProcessor.ts:345

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/MessageProcessor.ts:360

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<[], [void], "nonpayable">

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

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​

"initialize"

Returns​

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

Overrides​

BaseContract.getFunction

Call Signature​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:370

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​

"initialized"

Returns​

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

Overrides​

BaseContract.getFunction

Call Signature​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:373

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​

"mode"

Returns​

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

Overrides​

BaseContract.getFunction

Call Signature​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:376

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​

"poll"

Returns​

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

Overrides​

BaseContract.getFunction

Call Signature​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:379

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​

"processMessages"

Returns​

TypedContractMethod<[BigNumberish, BigNumberish[]], [void], "nonpayable">

Overrides​

BaseContract.getFunction

Call Signature​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:386

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​

"processingComplete"

Returns​

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

Overrides​

BaseContract.getFunction

Call Signature​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:389

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​

"sbCommitment"

Returns​

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

Overrides​

BaseContract.getFunction

Call Signature​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:392

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<[], [bigint], "view">

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:395

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​

"totalBatchesProcessed"

Returns​

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

Overrides​

BaseContract.getFunction

Call Signature​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:398

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​

"verifier"

Returns​

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

Overrides​

BaseContract.getFunction

Call Signature​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:401

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​

"verifyingKeysRegistry"

Returns​

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

Overrides​

BaseContract.getFunction


listeners()​

Call Signature​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:212

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/MessageProcessor.ts:215

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<MessageProcessor>

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:194

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

Type Parameters​
TCEvent​

TCEvent extends TypedContractEvent<any, any, any>

Parameters​
event​

TCEvent

listener​

TypedListener<TCEvent>

Returns​

Promise<MessageProcessor>

Overrides​

BaseContract.on

Call Signature​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:198

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<MessageProcessor>

Overrides​

BaseContract.on


once()​

Call Signature​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:203

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<MessageProcessor>

Overrides​

BaseContract.once

Call Signature​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:207

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<MessageProcessor>

Overrides​

BaseContract.once


queryFilter()​

Call Signature​

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

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:183

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/MessageProcessor.ts:188

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<MessageProcessor>

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:216

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<MessageProcessor>

Overrides​

BaseContract.removeAllListeners


waitForDeployment()​

waitForDeployment(): Promise<MessageProcessor>

Defined in: contracts/typechain-types/contracts/MessageProcessor.ts:179

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

Returns​

Promise<MessageProcessor>

Overrides​

BaseContract.waitForDeployment