Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BaseContract
    • AnchorProxy

Index

Constructors

  • new AnchorProxy(addressOrName: string, contractInterface: ContractInterface, signerOrProvider?: Signer | Provider): Contracts.AnchorProxy
  • Parameters

    • addressOrName: string
    • contractInterface: ContractInterface
    • Optional signerOrProvider: Signer | Provider

    Returns Contracts.AnchorProxy

Properties

_deployedPromise: Promise<Contract>
_runningEvents: {}

Type declaration

  • [eventTag: string]: RunningEvent
_wrappedEmits: {}

Type declaration

  • [eventTag: string]: (...args: any[]) => void
      • (...args: any[]): void
      • Parameters

        • Rest ...args: any[]

        Returns void

address: string
callStatic: { anchorTrees: any; backupNotes: any; deposit: any; governance: any; instances: any; withdraw: any }

Type declaration

  • anchorTrees:function
    • anchorTrees(overrides?: CallOverrides): Promise<string>
  • backupNotes:function
    • backupNotes(_encryptedNotes: BytesLike[], overrides?: CallOverrides): Promise<void>
  • deposit:function
    • deposit(_anchor: string, _commitment: BytesLike, _encryptedNote: BytesLike, overrides?: CallOverrides): Promise<void>
  • governance:function
    • governance(overrides?: CallOverrides): Promise<string>
  • instances:function
    • instances(arg0: string, overrides?: CallOverrides): 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>

deployTransaction: TransactionResponse
estimateGas: { anchorTrees: any; backupNotes: any; deposit: any; governance: any; instances: any; withdraw: any }

Type declaration

  • anchorTrees:function
    • anchorTrees(overrides?: CallOverrides): Promise<BigNumber>
  • backupNotes:function
    • backupNotes(_encryptedNotes: BytesLike[], overrides?: Overrides & { from?: string | Promise<string> }): 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>
  • instances:function
    • instances(arg0: string, overrides?: CallOverrides): 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: { 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 }>
  • EncryptedNote(address,bytes):function
    • EncryptedNote(address,bytes)(sender?: string, encryptedNote?: null): TypedEventFilter<[string, string], { encryptedNote: string; sender: string }>
  • InstanceStateUpdated:function
    • InstanceStateUpdated(instance?: string, state?: null): 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 }>
functions: { anchorTrees: any; backupNotes: any; deposit: any; governance: any; instances: any; withdraw: any }

Type declaration

  • anchorTrees:function
    • anchorTrees(overrides?: CallOverrides): Promise<[string]>
  • backupNotes:function
    • backupNotes(_encryptedNotes: BytesLike[], overrides?: Overrides & { from?: string | Promise<string> }): 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]>
  • instances:function
    • instances(arg0: string, overrides?: CallOverrides): 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: AnchorProxyInterface
populateTransaction: { anchorTrees: any; backupNotes: any; deposit: any; governance: any; instances: any; withdraw: any }

Type declaration

  • anchorTrees:function
    • anchorTrees(overrides?: CallOverrides): Promise<PopulatedTransaction>
  • backupNotes:function
    • backupNotes(_encryptedNotes: BytesLike[], overrides?: Overrides & { from?: string | Promise<string> }): 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>
  • instances:function
    • instances(arg0: string, overrides?: CallOverrides): 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>

provider: Provider
resolvedAddress: Promise<string>
signer: Signer

Methods

  • _checkRunningEvents(runningEvent: RunningEvent): void
  • Parameters

    • runningEvent: RunningEvent

    Returns void

  • _deployed(blockTag?: BlockTag): Promise<Contract>
  • Parameters

    • Optional blockTag: BlockTag

    Returns Promise<Contract>

  • _wrapEvent(runningEvent: RunningEvent, log: Log, listener: Listener): Event
  • Parameters

    • runningEvent: RunningEvent
    • log: Log
    • listener: Listener

    Returns Event

  • anchorTrees(overrides?: CallOverrides): Promise<string>
  • backupNotes(_encryptedNotes: BytesLike[], overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • 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>

  • emit(eventName: string | EventFilter, ...args: any[]): boolean
  • Parameters

    • eventName: string | EventFilter
    • Rest ...args: any[]

    Returns boolean

  • fallback(overrides?: TransactionRequest): Promise<TransactionResponse>
  • Parameters

    • Optional overrides: TransactionRequest

    Returns Promise<TransactionResponse>

  • governance(overrides?: CallOverrides): Promise<string>
  • instances(arg0: string, overrides?: CallOverrides): Promise<[string, number] & { state: number; token: string }>
  • listenerCount(eventName?: string | EventFilter): number
  • Parameters

    • Optional eventName: string | EventFilter

    Returns number

  • listeners<EventArgsArray, EventArgsObject>(eventFilter?: TypedEventFilter<EventArgsArray, EventArgsObject>): TypedListener<EventArgsArray, EventArgsObject>[]
  • listeners(eventName?: string): Listener[]
  • off<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): Contracts.AnchorProxy
  • off(eventName: string, listener: Listener): Contracts.AnchorProxy
  • on<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): Contracts.AnchorProxy
  • on(eventName: string, listener: Listener): Contracts.AnchorProxy
  • once<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): Contracts.AnchorProxy
  • once(eventName: string, listener: Listener): Contracts.AnchorProxy
  • queryFilter<EventArgsArray, EventArgsObject>(event: TypedEventFilter<EventArgsArray, EventArgsObject>, fromBlockOrBlockhash?: string | number, toBlock?: string | number): Promise<TypedEvent<EventArgsArray & EventArgsObject>[]>
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • event: TypedEventFilter<EventArgsArray, EventArgsObject>
    • Optional fromBlockOrBlockhash: string | number
    • Optional toBlock: string | number

    Returns Promise<TypedEvent<EventArgsArray & EventArgsObject>[]>

  • removeListener<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): Contracts.AnchorProxy
  • removeListener(eventName: string, listener: Listener): Contracts.AnchorProxy
  • 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>

  • getContractAddress(transaction: { from: string; nonce: BigNumberish }): string
  • Parameters

    • transaction: { from: string; nonce: BigNumberish }
      • from: string
      • nonce: BigNumberish

    Returns string

  • getInterface(contractInterface: ContractInterface): Interface
  • Parameters

    • contractInterface: ContractInterface

    Returns Interface

  • isIndexed(value: any): value is Indexed
  • Parameters

    • value: any

    Returns value is Indexed

Generated using TypeDoc