Minimal Anti Collusion Infrastructure (MACI) / Hasher
Interface: Hasher
Defined in: contracts/typechain-types/contracts/crypto/Hasher.ts:72
Extends
BaseContract
Properties
filters
filters:
object
Defined in: contracts/typechain-types/contracts/crypto/Hasher.ts:206
All the Events available on this contract.
Overrides
BaseContract.filters
hash2
hash2:
TypedContractMethod<[[BigNumberish,BigNumberish]], [bigint],"view">
Defined in: contracts/typechain-types/contracts/crypto/Hasher.ts:115
hash3
hash3:
TypedContractMethod<[[BigNumberish,BigNumberish,BigNumberish]], [bigint],"view">
Defined in: contracts/typechain-types/contracts/crypto/Hasher.ts:121
hash4
hash4:
TypedContractMethod<[[BigNumberish,BigNumberish,BigNumberish,BigNumberish]], [bigint],"view">
Defined in: contracts/typechain-types/contracts/crypto/Hasher.ts:127
hash5
hash5:
TypedContractMethod<[[BigNumberish,BigNumberish,BigNumberish,BigNumberish,BigNumberish]], [bigint],"view">
Defined in: contracts/typechain-types/contracts/crypto/Hasher.ts:133
hashLeftRight
hashLeftRight:
TypedContractMethod<[BigNumberish,BigNumberish], [bigint],"view">
Defined in: contracts/typechain-types/contracts/crypto/Hasher.ts:147
interface
interface:
HasherInterface
Defined in: contracts/typechain-types/contracts/crypto/Hasher.ts:76
The contract Interface.
Overrides
BaseContract.interface
sha256Hash
sha256Hash:
TypedContractMethod<[BigNumberish[]], [bigint],"view">
Defined in: contracts/typechain-types/contracts/crypto/Hasher.ts:153
Methods
connect()
connect(
runner?):Hasher
Defined in: contracts/typechain-types/contracts/crypto/Hasher.ts:73
Return a new Contract instance with the same target and ABI, but a different %%runner%%.
Parameters
runner?
ContractRunner | null
Returns
Hasher
Overrides
BaseContract.connect
getFunction()
Call Signature
getFunction<
T>(key):T
Defined in: contracts/typechain-types/contracts/crypto/Hasher.ts:155
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<[[BigNumberish,BigNumberish]], [bigint],"view">
Defined in: contracts/typechain-types/contracts/crypto/Hasher.ts:159
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/crypto/Hasher.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
"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/crypto/Hasher.ts:173
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/crypto/Hasher.ts:180
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/crypto/Hasher.ts:195
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<[BigNumberish[]], [bigint],"view">
Defined in: contracts/typechain-types/contracts/crypto/Hasher.ts:202
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
listeners()
Call Signature
listeners<
TCEvent>(event):Promise<TypedListener<TCEvent>[]>
Defined in: contracts/typechain-types/contracts/crypto/Hasher.ts:107
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/crypto/Hasher.ts:110
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<Hasher>
Defined in: contracts/typechain-types/contracts/crypto/Hasher.ts:89
Add an event %%listener%% for the %%event%%.
Type Parameters
TCEvent
TCEvent extends TypedContractEvent<any, any, any>
Parameters
event
TCEvent
listener
TypedListener<TCEvent>
Returns
Promise<Hasher>
Overrides
BaseContract.on
Call Signature
on<
TCEvent>(filter,listener):Promise<Hasher>
Defined in: contracts/typechain-types/contracts/crypto/Hasher.ts:93
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<Hasher>
Overrides
BaseContract.on
once()
Call Signature
once<
TCEvent>(event,listener):Promise<Hasher>
Defined in: contracts/typechain-types/contracts/crypto/Hasher.ts:98
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<Hasher>
Overrides
BaseContract.once
Call Signature
once<
TCEvent>(filter,listener):Promise<Hasher>
Defined in: contracts/typechain-types/contracts/crypto/Hasher.ts:102
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<Hasher>
Overrides
BaseContract.once
queryFilter()
Call Signature
queryFilter<
TCEvent>(event,fromBlockOrBlockhash?,toBlock?):Promise<TypedEventLog<TCEvent>[]>
Defined in: contracts/typechain-types/contracts/crypto/Hasher.ts:78
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/crypto/Hasher.ts:83
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<Hasher>
Defined in: contracts/typechain-types/contracts/crypto/Hasher.ts:111
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<Hasher>
Overrides
BaseContract.removeAllListeners
waitForDeployment()
waitForDeployment():
Promise<Hasher>
Defined in: contracts/typechain-types/contracts/crypto/Hasher.ts:74
Resolve to this Contract once the bytecode has been deployed, or resolve immediately if already deployed.
Returns
Promise<Hasher>
Overrides
BaseContract.waitForDeployment