Properties
_deployedPromise
_deployedPromise: Promise<Contract>
_runningEvents
_runningEvents: {}
Type declaration
[eventTag: string]: RunningEvent
_wrappedEmits
_wrappedEmits: {}
Type declaration
[eventTag: string]: (...args: any[]) => void
Readonly address
address: string
callStatic
callStatic: { anchorTrees: any; backupNotes: any; deposit: any; governance: any; instances: any; withdraw: any }
Type declaration
anchorTrees:function
- anchorTrees(overrides?: CallOverrides): Promise<string>
Parameters
Optional overrides: CallOverrides
Returns Promise<string>
backupNotes:function
- backupNotes(_encryptedNotes: BytesLike[], overrides?: CallOverrides): Promise<void>
Parameters
_encryptedNotes: BytesLike[]
Optional overrides: CallOverrides
Returns Promise<void>
deposit:function
- deposit(_anchor: string, _commitment: BytesLike, _encryptedNote: BytesLike, overrides?: CallOverrides): Promise<void>
Parameters
_anchor: string
_commitment: BytesLike
_encryptedNote: BytesLike
Optional overrides: CallOverrides
Returns Promise<void>
governance:function
- governance(overrides?: CallOverrides): Promise<string>
Parameters
Optional overrides: CallOverrides
Returns Promise<string>
instances:function
- instances(arg0: string, overrides?: CallOverrides): Promise<[string, number] & { state: number; token: string }>
Parameters
arg0: string
Optional overrides: CallOverrides
Returns Promise<[string, number] & { state: number; token: string }>
withdraw:function
- withdraw(_anchor: string, _proof: { _extDataHash: BytesLike; _nullifierHash: BytesLike; _roots: BytesLike; proof: BytesLike }, _extData: { _fee: BigNumberish; _recipient: string; _refreshCommitment: BytesLike; _refund: BigNumberish; _relayer: string }, overrides?: CallOverrides): Promise<void>
Parameters
_anchor: string
_proof: { _extDataHash: BytesLike; _nullifierHash: BytesLike; _roots: BytesLike; proof: BytesLike }
_extDataHash: BytesLike
_nullifierHash: BytesLike
_roots: BytesLike
proof: BytesLike
_extData: { _fee: BigNumberish; _recipient: string; _refreshCommitment: BytesLike; _refund: BigNumberish; _relayer: string }
_fee: BigNumberish
_recipient: string
_refreshCommitment: BytesLike
_refund: BigNumberish
_relayer: string
Optional overrides: CallOverrides
Returns Promise<void>
Readonly deployTransaction
deployTransaction: TransactionResponse
estimateGas
estimateGas: { anchorTrees: any; backupNotes: any; deposit: any; governance: any; instances: any; withdraw: any }
Type declaration
anchorTrees:function
- anchorTrees(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
Returns Promise<BigNumber>
backupNotes:function
- backupNotes(_encryptedNotes: BytesLike[], overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
Parameters
_encryptedNotes: BytesLike[]
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<BigNumber>
deposit:function
- deposit(_anchor: string, _commitment: BytesLike, _encryptedNote: BytesLike, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<BigNumber>
Parameters
_anchor: string
_commitment: BytesLike
_encryptedNote: BytesLike
Optional overrides: PayableOverrides & { from?: string | Promise<string> }
Returns Promise<BigNumber>
governance:function
- governance(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
Returns Promise<BigNumber>
instances:function
- instances(arg0: string, overrides?: CallOverrides): Promise<BigNumber>
Parameters
arg0: string
Optional overrides: CallOverrides
Returns Promise<BigNumber>
withdraw:function
- withdraw(_anchor: string, _proof: { _extDataHash: BytesLike; _nullifierHash: BytesLike; _roots: BytesLike; proof: BytesLike }, _extData: { _fee: BigNumberish; _recipient: string; _refreshCommitment: BytesLike; _refund: BigNumberish; _relayer: string }, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<BigNumber>
Parameters
_anchor: string
_proof: { _extDataHash: BytesLike; _nullifierHash: BytesLike; _roots: BytesLike; proof: BytesLike }
_extDataHash: BytesLike
_nullifierHash: BytesLike
_roots: BytesLike
proof: BytesLike
_extData: { _fee: BigNumberish; _recipient: string; _refreshCommitment: BytesLike; _refund: BigNumberish; _relayer: string }
_fee: BigNumberish
_recipient: string
_refreshCommitment: BytesLike
_refund: BigNumberish
_relayer: string
Optional overrides: PayableOverrides & { from?: string | Promise<string> }
Returns Promise<BigNumber>
filters
filters: { AnchorProxyDeposit: any; AnchorProxyDeposit(address,bytes32,uint256): any; EncryptedNote: any; EncryptedNote(address,bytes): any; InstanceStateUpdated: any; InstanceStateUpdated(address,uint8): any }
Type declaration
AnchorProxyDeposit:function
- AnchorProxyDeposit(anchor?: string, commitment?: BytesLike, timestamp?: null): TypedEventFilter<[string, string, BigNumber], { anchor: string; commitment: string; timestamp: BigNumber }>
Parameters
Optional anchor: string
Optional commitment: BytesLike
Optional timestamp: null
Returns TypedEventFilter<[string, string, BigNumber], { anchor: string; commitment: string; timestamp: BigNumber }>
AnchorProxyDeposit(address,bytes32,uint256):function
- AnchorProxyDeposit(address,bytes32,uint256)(anchor?: string, commitment?: BytesLike, timestamp?: null): TypedEventFilter<[string, string, BigNumber], { anchor: string; commitment: string; timestamp: BigNumber }>
Parameters
Optional anchor: string
Optional commitment: BytesLike
Optional timestamp: null
Returns TypedEventFilter<[string, string, BigNumber], { anchor: string; commitment: string; timestamp: BigNumber }>
EncryptedNote:function
- EncryptedNote(sender?: string, encryptedNote?: null): TypedEventFilter<[string, string], { encryptedNote: string; sender: string }>
Parameters
Optional sender: string
Optional encryptedNote: null
Returns TypedEventFilter<[string, string], { encryptedNote: string; sender: string }>
EncryptedNote(address,bytes):function
- EncryptedNote(address,bytes)(sender?: string, encryptedNote?: null): TypedEventFilter<[string, string], { encryptedNote: string; sender: string }>
Parameters
Optional sender: string
Optional encryptedNote: null
Returns TypedEventFilter<[string, string], { encryptedNote: string; sender: string }>
InstanceStateUpdated:function
- InstanceStateUpdated(instance?: string, state?: null): TypedEventFilter<[string, number], { instance: string; state: number }>
Parameters
Optional instance: string
Optional state: null
Returns TypedEventFilter<[string, number], { instance: string; state: number }>
InstanceStateUpdated(address,uint8):function
- InstanceStateUpdated(address,uint8)(instance?: string, state?: null): TypedEventFilter<[string, number], { instance: string; state: number }>
Parameters
Optional instance: string
Optional state: null
Returns TypedEventFilter<[string, number], { instance: string; state: number }>
functions
functions: { anchorTrees: any; backupNotes: any; deposit: any; governance: any; instances: any; withdraw: any }
Type declaration
anchorTrees:function
- anchorTrees(overrides?: CallOverrides): Promise<[string]>
Parameters
Optional overrides: CallOverrides
Returns Promise<[string]>
backupNotes:function
- backupNotes(_encryptedNotes: BytesLike[], overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
Parameters
_encryptedNotes: BytesLike[]
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<ContractTransaction>
deposit:function
- deposit(_anchor: string, _commitment: BytesLike, _encryptedNote: BytesLike, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
Parameters
_anchor: string
_commitment: BytesLike
_encryptedNote: BytesLike
Optional overrides: PayableOverrides & { from?: string | Promise<string> }
Returns Promise<ContractTransaction>
governance:function
- governance(overrides?: CallOverrides): Promise<[string]>
Parameters
Optional overrides: CallOverrides
Returns Promise<[string]>
instances:function
- instances(arg0: string, overrides?: CallOverrides): Promise<[string, number] & { state: number; token: string }>
Parameters
arg0: string
Optional overrides: CallOverrides
Returns Promise<[string, number] & { state: number; token: string }>
withdraw:function
- withdraw(_anchor: string, _proof: { _extDataHash: BytesLike; _nullifierHash: BytesLike; _roots: BytesLike; proof: BytesLike }, _extData: { _fee: BigNumberish; _recipient: string; _refreshCommitment: BytesLike; _refund: BigNumberish; _relayer: string }, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
Parameters
_anchor: string
_proof: { _extDataHash: BytesLike; _nullifierHash: BytesLike; _roots: BytesLike; proof: BytesLike }
_extDataHash: BytesLike
_nullifierHash: BytesLike
_roots: BytesLike
proof: BytesLike
_extData: { _fee: BigNumberish; _recipient: string; _refreshCommitment: BytesLike; _refund: BigNumberish; _relayer: string }
_fee: BigNumberish
_recipient: string
_refreshCommitment: BytesLike
_refund: BigNumberish
_relayer: string
Optional overrides: PayableOverrides & { from?: string | Promise<string> }
Returns Promise<ContractTransaction>
interface
interface: AnchorProxyInterface
populateTransaction
populateTransaction: { anchorTrees: any; backupNotes: any; deposit: any; governance: any; instances: any; withdraw: any }
Type declaration
anchorTrees:function
- anchorTrees(overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
backupNotes:function
- backupNotes(_encryptedNotes: BytesLike[], overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
Parameters
_encryptedNotes: BytesLike[]
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<PopulatedTransaction>
deposit:function
- deposit(_anchor: string, _commitment: BytesLike, _encryptedNote: BytesLike, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
Parameters
_anchor: string
_commitment: BytesLike
_encryptedNote: BytesLike
Optional overrides: PayableOverrides & { from?: string | Promise<string> }
Returns Promise<PopulatedTransaction>
governance:function
- governance(overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
instances:function
- instances(arg0: string, overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
arg0: string
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
withdraw:function
- withdraw(_anchor: string, _proof: { _extDataHash: BytesLike; _nullifierHash: BytesLike; _roots: BytesLike; proof: BytesLike }, _extData: { _fee: BigNumberish; _recipient: string; _refreshCommitment: BytesLike; _refund: BigNumberish; _relayer: string }, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
Parameters
_anchor: string
_proof: { _extDataHash: BytesLike; _nullifierHash: BytesLike; _roots: BytesLike; proof: BytesLike }
_extDataHash: BytesLike
_nullifierHash: BytesLike
_roots: BytesLike
proof: BytesLike
_extData: { _fee: BigNumberish; _recipient: string; _refreshCommitment: BytesLike; _refund: BigNumberish; _relayer: string }
_fee: BigNumberish
_recipient: string
_refreshCommitment: BytesLike
_refund: BigNumberish
_relayer: string
Optional overrides: PayableOverrides & { from?: string | Promise<string> }
Returns Promise<PopulatedTransaction>
Readonly provider
provider: Provider
Readonly resolvedAddress
resolvedAddress: Promise<string>
Readonly signer
signer: Signer