Skip to main content
Version: v3.x

Minimal Anti Collusion Infrastructure (MACI) / ERC20VotesInitialVoiceCreditProxy

Interface: ERC20VotesInitialVoiceCreditProxy

Defined in: contracts/typechain-types/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.ts:79

Extends

  • BaseContract

Properties

factor

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

Defined in: contracts/typechain-types/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.ts:122


filters

filters: object

Defined in: contracts/typechain-types/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.ts:170

All the Events available on this contract.

Overrides

BaseContract.filters


getAppendedBytes

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

Defined in: contracts/typechain-types/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.ts:124


getVoiceCredits

getVoiceCredits: TypedContractMethod<[AddressLike, BytesLike], [bigint], "view">

Defined in: contracts/typechain-types/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.ts:126


initialize

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

Defined in: contracts/typechain-types/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.ts:132


initialized

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

Defined in: contracts/typechain-types/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.ts:134


interface

interface: ERC20VotesInitialVoiceCreditProxyInterface

Defined in: contracts/typechain-types/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.ts:83

The contract Interface.

Overrides

BaseContract.interface


snapshotBlock

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

Defined in: contracts/typechain-types/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.ts:136


token

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

Defined in: contracts/typechain-types/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.ts:138

Methods

connect()

connect(runner?): ERC20VotesInitialVoiceCreditProxy

Defined in: contracts/typechain-types/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.ts:80

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

Parameters

runner?

null | ContractRunner

Returns

ERC20VotesInitialVoiceCreditProxy

Overrides

BaseContract.connect


getFunction()

Call Signature

getFunction<T>(key): T

Defined in: contracts/typechain-types/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.ts:140

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/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.ts:144

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

"factor"

Returns

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

Overrides

BaseContract.getFunction

Call Signature

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

Defined in: contracts/typechain-types/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.ts:147

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

Defined in: contracts/typechain-types/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.ts:150

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

"getVoiceCredits"

Returns

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

Overrides

BaseContract.getFunction

Call Signature

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

Defined in: contracts/typechain-types/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.ts:157

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/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.ts:160

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/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.ts:163

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

"snapshotBlock"

Returns

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

Overrides

BaseContract.getFunction

Call Signature

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

Defined in: contracts/typechain-types/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.ts:166

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

"token"

Returns

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

Overrides

BaseContract.getFunction


listeners()

Call Signature

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

Defined in: contracts/typechain-types/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.ts:114

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/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.ts:117

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

Defined in: contracts/typechain-types/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.ts:96

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

Type Parameters
TCEvent

TCEvent extends TypedContractEvent<any, any, any>

Parameters
event

TCEvent

listener

TypedListener<TCEvent>

Returns

Promise<ERC20VotesInitialVoiceCreditProxy>

Overrides

BaseContract.on

Call Signature

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

Defined in: contracts/typechain-types/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.ts:100

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

Overrides

BaseContract.on


once()

Call Signature

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

Defined in: contracts/typechain-types/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.ts:105

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

Overrides

BaseContract.once

Call Signature

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

Defined in: contracts/typechain-types/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.ts:109

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

Overrides

BaseContract.once


queryFilter()

Call Signature

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

Defined in: contracts/typechain-types/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.ts:85

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/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.ts:90

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

Defined in: contracts/typechain-types/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.ts:118

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

Overrides

BaseContract.removeAllListeners


waitForDeployment()

waitForDeployment(): Promise<ERC20VotesInitialVoiceCreditProxy>

Defined in: contracts/typechain-types/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.ts:81

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

Returns

Promise<ERC20VotesInitialVoiceCreditProxy>

Overrides

BaseContract.waitForDeployment