Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BaseContract
    • LinkableAnchor

Index

Constructors

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

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

    Returns LinkableAnchor

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: { FIELD_SIZE: any; ROOT_HISTORY_SIZE: any; ZERO_VALUE: any; admin: any; bridge: any; commitments: any; currentNeighborRootIndex: any; currentRootIndex: any; denomination: any; deposit: any; edgeExistsForChain: any; edgeIndex: any; edgeList: any; filledSubtrees: any; getChainId: any; getDenomination: any; getLastRoot: any; getLatestNeighborRoots: any; getToken: any; handler: any; hasEdge: any; hashLeftRight: any; hasher: any; isKnownNeighborRoot: any; isKnownRoot: any; isSpent: any; isSpentArray: any; isValidRoots: any; levels: any; maxEdges: any; neighborRoots: any; nextIndex: any; nullifierHashes: any; roots: any; setBridge: any; setHandler: any; unpackProof: any; updateEdge: any; verifier: any; withdraw: any; zeros: any }

Type declaration

  • FIELD_SIZE:function
    • FIELD_SIZE(overrides?: CallOverrides): Promise<BigNumber>
  • ROOT_HISTORY_SIZE:function
    • ROOT_HISTORY_SIZE(overrides?: CallOverrides): Promise<number>
  • ZERO_VALUE:function
    • ZERO_VALUE(overrides?: CallOverrides): Promise<BigNumber>
  • admin:function
    • admin(overrides?: CallOverrides): Promise<string>
  • bridge:function
    • bridge(overrides?: CallOverrides): Promise<string>
  • commitments:function
    • commitments(arg0: BytesLike, overrides?: CallOverrides): Promise<boolean>
  • currentNeighborRootIndex:function
    • currentNeighborRootIndex(arg0: BigNumberish, overrides?: CallOverrides): Promise<number>
  • currentRootIndex:function
    • currentRootIndex(overrides?: CallOverrides): Promise<number>
  • denomination:function
    • denomination(overrides?: CallOverrides): Promise<BigNumber>
  • deposit:function
    • deposit(_commitment: BytesLike, overrides?: CallOverrides): Promise<void>
  • edgeExistsForChain:function
    • edgeExistsForChain(arg0: BigNumberish, overrides?: CallOverrides): Promise<boolean>
  • edgeIndex:function
    • edgeIndex(arg0: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
  • edgeList:function
    • edgeList(arg0: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber, string, BigNumber] & { chainID: BigNumber; latestLeafIndex: BigNumber; root: string }>
    • Parameters

      • arg0: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<[BigNumber, string, BigNumber] & { chainID: BigNumber; latestLeafIndex: BigNumber; root: string }>

  • filledSubtrees:function
    • filledSubtrees(arg0: BigNumberish, overrides?: CallOverrides): Promise<string>
  • getChainId:function
    • getChainId(overrides?: CallOverrides): Promise<BigNumber>
  • getDenomination:function
    • getDenomination(overrides?: CallOverrides): Promise<BigNumber>
  • getLastRoot:function
    • getLastRoot(overrides?: CallOverrides): Promise<string>
  • getLatestNeighborRoots:function
    • getLatestNeighborRoots(overrides?: CallOverrides): Promise<string[]>
  • getToken:function
    • getToken(overrides?: CallOverrides): Promise<string>
  • handler:function
    • handler(overrides?: CallOverrides): Promise<string>
  • hasEdge:function
    • hasEdge(_chainID: BigNumberish, overrides?: CallOverrides): Promise<boolean>
  • hashLeftRight:function
    • hashLeftRight(_hasher: string, _left: BytesLike, _right: BytesLike, overrides?: CallOverrides): Promise<string>
  • hasher:function
    • hasher(overrides?: CallOverrides): Promise<string>
  • isKnownNeighborRoot:function
    • isKnownNeighborRoot(neighborChainID: BigNumberish, _root: BytesLike, overrides?: CallOverrides): Promise<boolean>
  • isKnownRoot:function
    • isKnownRoot(_root: BytesLike, overrides?: CallOverrides): Promise<boolean>
  • isSpent:function
    • isSpent(_nullifierHash: BytesLike, overrides?: CallOverrides): Promise<boolean>
  • isSpentArray:function
    • isSpentArray(_nullifierHashes: BytesLike[], overrides?: CallOverrides): Promise<boolean[]>
  • isValidRoots:function
    • isValidRoots(roots: BytesLike[], overrides?: CallOverrides): Promise<boolean>
  • levels:function
    • levels(overrides?: CallOverrides): Promise<number>
  • maxEdges:function
    • maxEdges(overrides?: CallOverrides): Promise<number>
  • neighborRoots:function
    • neighborRoots(arg0: BigNumberish, arg1: BigNumberish, overrides?: CallOverrides): Promise<string>
  • nextIndex:function
    • nextIndex(overrides?: CallOverrides): Promise<number>
  • nullifierHashes:function
    • nullifierHashes(arg0: BytesLike, overrides?: CallOverrides): Promise<boolean>
  • roots:function
    • roots(arg0: BigNumberish, overrides?: CallOverrides): Promise<string>
  • setBridge:function
    • setBridge(_bridge: string, overrides?: CallOverrides): Promise<void>
  • setHandler:function
    • setHandler(_handler: string, overrides?: CallOverrides): Promise<void>
  • unpackProof:function
    • unpackProof(_proof: [BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish], overrides?: CallOverrides): Promise<[[BigNumber, BigNumber], [[BigNumber, BigNumber], [BigNumber, BigNumber]], [BigNumber, BigNumber]]>
    • Parameters

      • _proof: [BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish]
      • Optional overrides: CallOverrides

      Returns Promise<[[BigNumber, BigNumber], [[BigNumber, BigNumber], [BigNumber, BigNumber]], [BigNumber, BigNumber]]>

  • updateEdge:function
    • updateEdge(sourceChainID: BigNumberish, root: BytesLike, leafIndex: BigNumberish, overrides?: CallOverrides): Promise<void>
  • verifier:function
    • verifier(overrides?: CallOverrides): Promise<string>
  • withdraw:function
    • withdraw(_proof: BytesLike, _publicInputs: { _fee: BigNumberish; _nullifierHash: BytesLike; _recipient: string; _refreshCommitment: BytesLike; _refund: BigNumberish; _relayer: string; _roots: BytesLike }, overrides?: CallOverrides): Promise<void>
    • Parameters

      • _proof: BytesLike
      • _publicInputs: { _fee: BigNumberish; _nullifierHash: BytesLike; _recipient: string; _refreshCommitment: BytesLike; _refund: BigNumberish; _relayer: string; _roots: BytesLike }
        • _fee: BigNumberish
        • _nullifierHash: BytesLike
        • _recipient: string
        • _refreshCommitment: BytesLike
        • _refund: BigNumberish
        • _relayer: string
        • _roots: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • zeros:function
    • zeros(i: BigNumberish, overrides?: CallOverrides): Promise<string>
deployTransaction: TransactionResponse
estimateGas: { FIELD_SIZE: any; ROOT_HISTORY_SIZE: any; ZERO_VALUE: any; admin: any; bridge: any; commitments: any; currentNeighborRootIndex: any; currentRootIndex: any; denomination: any; deposit: any; edgeExistsForChain: any; edgeIndex: any; edgeList: any; filledSubtrees: any; getChainId: any; getDenomination: any; getLastRoot: any; getLatestNeighborRoots: any; getToken: any; handler: any; hasEdge: any; hashLeftRight: any; hasher: any; isKnownNeighborRoot: any; isKnownRoot: any; isSpent: any; isSpentArray: any; isValidRoots: any; levels: any; maxEdges: any; neighborRoots: any; nextIndex: any; nullifierHashes: any; roots: any; setBridge: any; setHandler: any; unpackProof: any; updateEdge: any; verifier: any; withdraw: any; zeros: any }

Type declaration

  • FIELD_SIZE:function
    • FIELD_SIZE(overrides?: CallOverrides): Promise<BigNumber>
  • ROOT_HISTORY_SIZE:function
    • ROOT_HISTORY_SIZE(overrides?: CallOverrides): Promise<BigNumber>
  • ZERO_VALUE:function
    • ZERO_VALUE(overrides?: CallOverrides): Promise<BigNumber>
  • admin:function
    • admin(overrides?: CallOverrides): Promise<BigNumber>
  • bridge:function
    • bridge(overrides?: CallOverrides): Promise<BigNumber>
  • commitments:function
    • commitments(arg0: BytesLike, overrides?: CallOverrides): Promise<BigNumber>
  • currentNeighborRootIndex:function
    • currentNeighborRootIndex(arg0: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
  • currentRootIndex:function
    • currentRootIndex(overrides?: CallOverrides): Promise<BigNumber>
  • denomination:function
    • denomination(overrides?: CallOverrides): Promise<BigNumber>
  • deposit:function
    • deposit(_commitment: BytesLike, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<BigNumber>
  • edgeExistsForChain:function
    • edgeExistsForChain(arg0: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
  • edgeIndex:function
    • edgeIndex(arg0: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
  • edgeList:function
    • edgeList(arg0: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
  • filledSubtrees:function
    • filledSubtrees(arg0: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
  • getChainId:function
    • getChainId(overrides?: CallOverrides): Promise<BigNumber>
  • getDenomination:function
    • getDenomination(overrides?: CallOverrides): Promise<BigNumber>
  • getLastRoot:function
    • getLastRoot(overrides?: CallOverrides): Promise<BigNumber>
  • getLatestNeighborRoots:function
    • getLatestNeighborRoots(overrides?: CallOverrides): Promise<BigNumber>
  • getToken:function
    • getToken(overrides?: CallOverrides): Promise<BigNumber>
  • handler:function
    • handler(overrides?: CallOverrides): Promise<BigNumber>
  • hasEdge:function
    • hasEdge(_chainID: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
  • hashLeftRight:function
    • hashLeftRight(_hasher: string, _left: BytesLike, _right: BytesLike, overrides?: CallOverrides): Promise<BigNumber>
  • hasher:function
    • hasher(overrides?: CallOverrides): Promise<BigNumber>
  • isKnownNeighborRoot:function
    • isKnownNeighborRoot(neighborChainID: BigNumberish, _root: BytesLike, overrides?: CallOverrides): Promise<BigNumber>
  • isKnownRoot:function
    • isKnownRoot(_root: BytesLike, overrides?: CallOverrides): Promise<BigNumber>
  • isSpent:function
    • isSpent(_nullifierHash: BytesLike, overrides?: CallOverrides): Promise<BigNumber>
  • isSpentArray:function
    • isSpentArray(_nullifierHashes: BytesLike[], overrides?: CallOverrides): Promise<BigNumber>
  • isValidRoots:function
    • isValidRoots(roots: BytesLike[], overrides?: CallOverrides): Promise<BigNumber>
  • levels:function
    • levels(overrides?: CallOverrides): Promise<BigNumber>
  • maxEdges:function
    • maxEdges(overrides?: CallOverrides): Promise<BigNumber>
  • neighborRoots:function
    • neighborRoots(arg0: BigNumberish, arg1: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
  • nextIndex:function
    • nextIndex(overrides?: CallOverrides): Promise<BigNumber>
  • nullifierHashes:function
    • nullifierHashes(arg0: BytesLike, overrides?: CallOverrides): Promise<BigNumber>
  • roots:function
    • roots(arg0: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
  • setBridge:function
    • setBridge(_bridge: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
  • setHandler:function
    • setHandler(_handler: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
  • unpackProof:function
    • unpackProof(_proof: [BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish], overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _proof: [BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish]
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • updateEdge:function
    • updateEdge(sourceChainID: BigNumberish, root: BytesLike, leafIndex: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<BigNumber>
  • verifier:function
    • verifier(overrides?: CallOverrides): Promise<BigNumber>
  • withdraw:function
    • withdraw(_proof: BytesLike, _publicInputs: { _fee: BigNumberish; _nullifierHash: BytesLike; _recipient: string; _refreshCommitment: BytesLike; _refund: BigNumberish; _relayer: string; _roots: BytesLike }, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _proof: BytesLike
      • _publicInputs: { _fee: BigNumberish; _nullifierHash: BytesLike; _recipient: string; _refreshCommitment: BytesLike; _refund: BigNumberish; _relayer: string; _roots: BytesLike }
        • _fee: BigNumberish
        • _nullifierHash: BytesLike
        • _recipient: string
        • _refreshCommitment: BytesLike
        • _refund: BigNumberish
        • _relayer: string
        • _roots: BytesLike
      • Optional overrides: PayableOverrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • zeros:function
    • zeros(i: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
filters: { Deposit: any; Deposit(bytes32,uint32,uint256): any; EdgeAddition: any; EdgeAddition(uint256,uint256,bytes32): any; EdgeUpdate: any; EdgeUpdate(uint256,uint256,bytes32): any; Refresh: any; Refresh(bytes32,bytes32,uint32): any; Withdrawal: any; Withdrawal(address,bytes32,address,uint256): any }

Type declaration

  • Deposit:function
    • Deposit(commitment?: BytesLike, leafIndex?: null, timestamp?: null): TypedEventFilter<[string, number, BigNumber], { commitment: string; leafIndex: number; timestamp: BigNumber }>
    • Parameters

      • Optional commitment: BytesLike
      • Optional leafIndex: null
      • Optional timestamp: null

      Returns TypedEventFilter<[string, number, BigNumber], { commitment: string; leafIndex: number; timestamp: BigNumber }>

  • Deposit(bytes32,uint32,uint256):function
    • Deposit(bytes32,uint32,uint256)(commitment?: BytesLike, leafIndex?: null, timestamp?: null): TypedEventFilter<[string, number, BigNumber], { commitment: string; leafIndex: number; timestamp: BigNumber }>
    • Parameters

      • Optional commitment: BytesLike
      • Optional leafIndex: null
      • Optional timestamp: null

      Returns TypedEventFilter<[string, number, BigNumber], { commitment: string; leafIndex: number; timestamp: BigNumber }>

  • EdgeAddition:function
    • EdgeAddition(chainID?: null, latestLeafIndex?: null, merkleRoot?: null): TypedEventFilter<[BigNumber, BigNumber, string], { chainID: BigNumber; latestLeafIndex: BigNumber; merkleRoot: string }>
    • Parameters

      • Optional chainID: null
      • Optional latestLeafIndex: null
      • Optional merkleRoot: null

      Returns TypedEventFilter<[BigNumber, BigNumber, string], { chainID: BigNumber; latestLeafIndex: BigNumber; merkleRoot: string }>

  • EdgeAddition(uint256,uint256,bytes32):function
    • EdgeAddition(uint256,uint256,bytes32)(chainID?: null, latestLeafIndex?: null, merkleRoot?: null): TypedEventFilter<[BigNumber, BigNumber, string], { chainID: BigNumber; latestLeafIndex: BigNumber; merkleRoot: string }>
    • Parameters

      • Optional chainID: null
      • Optional latestLeafIndex: null
      • Optional merkleRoot: null

      Returns TypedEventFilter<[BigNumber, BigNumber, string], { chainID: BigNumber; latestLeafIndex: BigNumber; merkleRoot: string }>

  • EdgeUpdate:function
    • EdgeUpdate(chainID?: null, latestLeafIndex?: null, merkleRoot?: null): TypedEventFilter<[BigNumber, BigNumber, string], { chainID: BigNumber; latestLeafIndex: BigNumber; merkleRoot: string }>
    • Parameters

      • Optional chainID: null
      • Optional latestLeafIndex: null
      • Optional merkleRoot: null

      Returns TypedEventFilter<[BigNumber, BigNumber, string], { chainID: BigNumber; latestLeafIndex: BigNumber; merkleRoot: string }>

  • EdgeUpdate(uint256,uint256,bytes32):function
    • EdgeUpdate(uint256,uint256,bytes32)(chainID?: null, latestLeafIndex?: null, merkleRoot?: null): TypedEventFilter<[BigNumber, BigNumber, string], { chainID: BigNumber; latestLeafIndex: BigNumber; merkleRoot: string }>
    • Parameters

      • Optional chainID: null
      • Optional latestLeafIndex: null
      • Optional merkleRoot: null

      Returns TypedEventFilter<[BigNumber, BigNumber, string], { chainID: BigNumber; latestLeafIndex: BigNumber; merkleRoot: string }>

  • Refresh:function
    • Refresh(commitment?: BytesLike, nullifierHash?: null, insertedIndex?: null): TypedEventFilter<[string, string, number], { commitment: string; insertedIndex: number; nullifierHash: string }>
    • Parameters

      • Optional commitment: BytesLike
      • Optional nullifierHash: null
      • Optional insertedIndex: null

      Returns TypedEventFilter<[string, string, number], { commitment: string; insertedIndex: number; nullifierHash: string }>

  • Refresh(bytes32,bytes32,uint32):function
    • Refresh(bytes32,bytes32,uint32)(commitment?: BytesLike, nullifierHash?: null, insertedIndex?: null): TypedEventFilter<[string, string, number], { commitment: string; insertedIndex: number; nullifierHash: string }>
    • Parameters

      • Optional commitment: BytesLike
      • Optional nullifierHash: null
      • Optional insertedIndex: null

      Returns TypedEventFilter<[string, string, number], { commitment: string; insertedIndex: number; nullifierHash: string }>

  • Withdrawal:function
    • Withdrawal(to?: null, nullifierHash?: null, relayer?: string, fee?: null): TypedEventFilter<[string, string, string, BigNumber], { fee: BigNumber; nullifierHash: string; relayer: string; to: string }>
    • Parameters

      • Optional to: null
      • Optional nullifierHash: null
      • Optional relayer: string
      • Optional fee: null

      Returns TypedEventFilter<[string, string, string, BigNumber], { fee: BigNumber; nullifierHash: string; relayer: string; to: string }>

  • Withdrawal(address,bytes32,address,uint256):function
    • Withdrawal(address,bytes32,address,uint256)(to?: null, nullifierHash?: null, relayer?: string, fee?: null): TypedEventFilter<[string, string, string, BigNumber], { fee: BigNumber; nullifierHash: string; relayer: string; to: string }>
    • Parameters

      • Optional to: null
      • Optional nullifierHash: null
      • Optional relayer: string
      • Optional fee: null

      Returns TypedEventFilter<[string, string, string, BigNumber], { fee: BigNumber; nullifierHash: string; relayer: string; to: string }>

functions: { FIELD_SIZE: any; ROOT_HISTORY_SIZE: any; ZERO_VALUE: any; admin: any; bridge: any; commitments: any; currentNeighborRootIndex: any; currentRootIndex: any; denomination: any; deposit: any; edgeExistsForChain: any; edgeIndex: any; edgeList: any; filledSubtrees: any; getChainId: any; getDenomination: any; getLastRoot: any; getLatestNeighborRoots: any; getToken: any; handler: any; hasEdge: any; hashLeftRight: any; hasher: any; isKnownNeighborRoot: any; isKnownRoot: any; isSpent: any; isSpentArray: any; isValidRoots: any; levels: any; maxEdges: any; neighborRoots: any; nextIndex: any; nullifierHashes: any; roots: any; setBridge: any; setHandler: any; unpackProof: any; updateEdge: any; verifier: any; withdraw: any; zeros: any }

Type declaration

  • FIELD_SIZE:function
    • FIELD_SIZE(overrides?: CallOverrides): Promise<[BigNumber]>
  • ROOT_HISTORY_SIZE:function
    • ROOT_HISTORY_SIZE(overrides?: CallOverrides): Promise<[number]>
  • ZERO_VALUE:function
    • ZERO_VALUE(overrides?: CallOverrides): Promise<[BigNumber]>
  • admin:function
    • admin(overrides?: CallOverrides): Promise<[string]>
  • bridge:function
    • bridge(overrides?: CallOverrides): Promise<[string]>
  • commitments:function
    • commitments(arg0: BytesLike, overrides?: CallOverrides): Promise<[boolean]>
  • currentNeighborRootIndex:function
    • currentNeighborRootIndex(arg0: BigNumberish, overrides?: CallOverrides): Promise<[number]>
  • currentRootIndex:function
    • currentRootIndex(overrides?: CallOverrides): Promise<[number]>
  • denomination:function
    • denomination(overrides?: CallOverrides): Promise<[BigNumber]>
  • deposit:function
    • deposit(_commitment: BytesLike, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • edgeExistsForChain:function
    • edgeExistsForChain(arg0: BigNumberish, overrides?: CallOverrides): Promise<[boolean]>
  • edgeIndex:function
    • edgeIndex(arg0: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber]>
  • edgeList:function
    • edgeList(arg0: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber, string, BigNumber] & { chainID: BigNumber; latestLeafIndex: BigNumber; root: string }>
    • Parameters

      • arg0: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<[BigNumber, string, BigNumber] & { chainID: BigNumber; latestLeafIndex: BigNumber; root: string }>

  • filledSubtrees:function
    • filledSubtrees(arg0: BigNumberish, overrides?: CallOverrides): Promise<[string]>
  • getChainId:function
    • getChainId(overrides?: CallOverrides): Promise<[BigNumber]>
  • getDenomination:function
    • getDenomination(overrides?: CallOverrides): Promise<[BigNumber]>
  • getLastRoot:function
    • getLastRoot(overrides?: CallOverrides): Promise<[string]>
  • getLatestNeighborRoots:function
    • getLatestNeighborRoots(overrides?: CallOverrides): Promise<[string[]] & { roots: string[] }>
  • getToken:function
    • getToken(overrides?: CallOverrides): Promise<[string]>
  • handler:function
    • handler(overrides?: CallOverrides): Promise<[string]>
  • hasEdge:function
    • hasEdge(_chainID: BigNumberish, overrides?: CallOverrides): Promise<[boolean]>
  • hashLeftRight:function
    • hashLeftRight(_hasher: string, _left: BytesLike, _right: BytesLike, overrides?: CallOverrides): Promise<[string]>
  • hasher:function
    • hasher(overrides?: CallOverrides): Promise<[string]>
  • isKnownNeighborRoot:function
    • isKnownNeighborRoot(neighborChainID: BigNumberish, _root: BytesLike, overrides?: CallOverrides): Promise<[boolean]>
  • isKnownRoot:function
    • isKnownRoot(_root: BytesLike, overrides?: CallOverrides): Promise<[boolean]>
  • isSpent:function
    • isSpent(_nullifierHash: BytesLike, overrides?: CallOverrides): Promise<[boolean]>
  • isSpentArray:function
    • isSpentArray(_nullifierHashes: BytesLike[], overrides?: CallOverrides): Promise<[boolean[]] & { spent: boolean[] }>
  • isValidRoots:function
    • isValidRoots(roots: BytesLike[], overrides?: CallOverrides): Promise<[boolean]>
  • levels:function
    • levels(overrides?: CallOverrides): Promise<[number]>
  • maxEdges:function
    • maxEdges(overrides?: CallOverrides): Promise<[number]>
  • neighborRoots:function
    • neighborRoots(arg0: BigNumberish, arg1: BigNumberish, overrides?: CallOverrides): Promise<[string]>
  • nextIndex:function
    • nextIndex(overrides?: CallOverrides): Promise<[number]>
  • nullifierHashes:function
    • nullifierHashes(arg0: BytesLike, overrides?: CallOverrides): Promise<[boolean]>
  • roots:function
    • roots(arg0: BigNumberish, overrides?: CallOverrides): Promise<[string]>
  • setBridge:function
    • setBridge(_bridge: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • setHandler:function
    • setHandler(_handler: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • unpackProof:function
    • unpackProof(_proof: [BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish], overrides?: CallOverrides): Promise<[[BigNumber, BigNumber], [[BigNumber, BigNumber], [BigNumber, BigNumber]], [BigNumber, BigNumber]]>
    • Parameters

      • _proof: [BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish]
      • Optional overrides: CallOverrides

      Returns Promise<[[BigNumber, BigNumber], [[BigNumber, BigNumber], [BigNumber, BigNumber]], [BigNumber, BigNumber]]>

  • updateEdge:function
    • updateEdge(sourceChainID: BigNumberish, root: BytesLike, leafIndex: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • sourceChainID: BigNumberish
      • root: BytesLike
      • leafIndex: BigNumberish
      • Optional overrides: PayableOverrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

  • verifier:function
    • verifier(overrides?: CallOverrides): Promise<[string]>
  • withdraw:function
    • withdraw(_proof: BytesLike, _publicInputs: { _fee: BigNumberish; _nullifierHash: BytesLike; _recipient: string; _refreshCommitment: BytesLike; _refund: BigNumberish; _relayer: string; _roots: BytesLike }, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _proof: BytesLike
      • _publicInputs: { _fee: BigNumberish; _nullifierHash: BytesLike; _recipient: string; _refreshCommitment: BytesLike; _refund: BigNumberish; _relayer: string; _roots: BytesLike }
        • _fee: BigNumberish
        • _nullifierHash: BytesLike
        • _recipient: string
        • _refreshCommitment: BytesLike
        • _refund: BigNumberish
        • _relayer: string
        • _roots: BytesLike
      • Optional overrides: PayableOverrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

  • zeros:function
    • zeros(i: BigNumberish, overrides?: CallOverrides): Promise<[string]>
interface: LinkableAnchorInterface
populateTransaction: { FIELD_SIZE: any; ROOT_HISTORY_SIZE: any; ZERO_VALUE: any; admin: any; bridge: any; commitments: any; currentNeighborRootIndex: any; currentRootIndex: any; denomination: any; deposit: any; edgeExistsForChain: any; edgeIndex: any; edgeList: any; filledSubtrees: any; getChainId: any; getDenomination: any; getLastRoot: any; getLatestNeighborRoots: any; getToken: any; handler: any; hasEdge: any; hashLeftRight: any; hasher: any; isKnownNeighborRoot: any; isKnownRoot: any; isSpent: any; isSpentArray: any; isValidRoots: any; levels: any; maxEdges: any; neighborRoots: any; nextIndex: any; nullifierHashes: any; roots: any; setBridge: any; setHandler: any; unpackProof: any; updateEdge: any; verifier: any; withdraw: any; zeros: any }

Type declaration

  • FIELD_SIZE:function
    • FIELD_SIZE(overrides?: CallOverrides): Promise<PopulatedTransaction>
  • ROOT_HISTORY_SIZE:function
    • ROOT_HISTORY_SIZE(overrides?: CallOverrides): Promise<PopulatedTransaction>
  • ZERO_VALUE:function
    • ZERO_VALUE(overrides?: CallOverrides): Promise<PopulatedTransaction>
  • admin:function
    • admin(overrides?: CallOverrides): Promise<PopulatedTransaction>
  • bridge:function
    • bridge(overrides?: CallOverrides): Promise<PopulatedTransaction>
  • commitments:function
    • commitments(arg0: BytesLike, overrides?: CallOverrides): Promise<PopulatedTransaction>
  • currentNeighborRootIndex:function
    • currentNeighborRootIndex(arg0: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
  • currentRootIndex:function
    • currentRootIndex(overrides?: CallOverrides): Promise<PopulatedTransaction>
  • denomination:function
    • denomination(overrides?: CallOverrides): Promise<PopulatedTransaction>
  • deposit:function
    • deposit(_commitment: BytesLike, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
  • edgeExistsForChain:function
    • edgeExistsForChain(arg0: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
  • edgeIndex:function
    • edgeIndex(arg0: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
  • edgeList:function
    • edgeList(arg0: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
  • filledSubtrees:function
    • filledSubtrees(arg0: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
  • getChainId:function
    • getChainId(overrides?: CallOverrides): Promise<PopulatedTransaction>
  • getDenomination:function
    • getDenomination(overrides?: CallOverrides): Promise<PopulatedTransaction>
  • getLastRoot:function
    • getLastRoot(overrides?: CallOverrides): Promise<PopulatedTransaction>
  • getLatestNeighborRoots:function
    • getLatestNeighborRoots(overrides?: CallOverrides): Promise<PopulatedTransaction>
  • getToken:function
    • getToken(overrides?: CallOverrides): Promise<PopulatedTransaction>
  • handler:function
    • handler(overrides?: CallOverrides): Promise<PopulatedTransaction>
  • hasEdge:function
    • hasEdge(_chainID: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
  • hashLeftRight:function
    • hashLeftRight(_hasher: string, _left: BytesLike, _right: BytesLike, overrides?: CallOverrides): Promise<PopulatedTransaction>
  • hasher:function
    • hasher(overrides?: CallOverrides): Promise<PopulatedTransaction>
  • isKnownNeighborRoot:function
    • isKnownNeighborRoot(neighborChainID: BigNumberish, _root: BytesLike, overrides?: CallOverrides): Promise<PopulatedTransaction>
  • isKnownRoot:function
    • isKnownRoot(_root: BytesLike, overrides?: CallOverrides): Promise<PopulatedTransaction>
  • isSpent:function
    • isSpent(_nullifierHash: BytesLike, overrides?: CallOverrides): Promise<PopulatedTransaction>
  • isSpentArray:function
    • isSpentArray(_nullifierHashes: BytesLike[], overrides?: CallOverrides): Promise<PopulatedTransaction>
  • isValidRoots:function
    • isValidRoots(roots: BytesLike[], overrides?: CallOverrides): Promise<PopulatedTransaction>
  • levels:function
    • levels(overrides?: CallOverrides): Promise<PopulatedTransaction>
  • maxEdges:function
    • maxEdges(overrides?: CallOverrides): Promise<PopulatedTransaction>
  • neighborRoots:function
    • neighborRoots(arg0: BigNumberish, arg1: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
  • nextIndex:function
    • nextIndex(overrides?: CallOverrides): Promise<PopulatedTransaction>
  • nullifierHashes:function
    • nullifierHashes(arg0: BytesLike, overrides?: CallOverrides): Promise<PopulatedTransaction>
  • roots:function
    • roots(arg0: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
  • setBridge:function
    • setBridge(_bridge: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
  • setHandler:function
    • setHandler(_handler: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
  • unpackProof:function
    • unpackProof(_proof: [BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish], overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • _proof: [BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish]
      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • updateEdge:function
    • updateEdge(sourceChainID: BigNumberish, root: BytesLike, leafIndex: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • Parameters

      • sourceChainID: BigNumberish
      • root: BytesLike
      • leafIndex: BigNumberish
      • Optional overrides: PayableOverrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

  • verifier:function
    • verifier(overrides?: CallOverrides): Promise<PopulatedTransaction>
  • withdraw:function
    • withdraw(_proof: BytesLike, _publicInputs: { _fee: BigNumberish; _nullifierHash: BytesLike; _recipient: string; _refreshCommitment: BytesLike; _refund: BigNumberish; _relayer: string; _roots: BytesLike }, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • Parameters

      • _proof: BytesLike
      • _publicInputs: { _fee: BigNumberish; _nullifierHash: BytesLike; _recipient: string; _refreshCommitment: BytesLike; _refund: BigNumberish; _relayer: string; _roots: BytesLike }
        • _fee: BigNumberish
        • _nullifierHash: BytesLike
        • _recipient: string
        • _refreshCommitment: BytesLike
        • _refund: BigNumberish
        • _relayer: string
        • _roots: BytesLike
      • Optional overrides: PayableOverrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

  • zeros:function
    • zeros(i: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
provider: Provider
resolvedAddress: Promise<string>
signer: Signer

Methods

  • FIELD_SIZE(overrides?: CallOverrides): Promise<BigNumber>
  • ROOT_HISTORY_SIZE(overrides?: CallOverrides): Promise<number>
  • ZERO_VALUE(overrides?: CallOverrides): Promise<BigNumber>
  • _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

  • admin(overrides?: CallOverrides): Promise<string>
  • bridge(overrides?: CallOverrides): Promise<string>
  • commitments(arg0: BytesLike, overrides?: CallOverrides): Promise<boolean>
  • currentNeighborRootIndex(arg0: BigNumberish, overrides?: CallOverrides): Promise<number>
  • currentRootIndex(overrides?: CallOverrides): Promise<number>
  • denomination(overrides?: CallOverrides): Promise<BigNumber>
  • deposit(_commitment: BytesLike, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • edgeExistsForChain(arg0: BigNumberish, overrides?: CallOverrides): Promise<boolean>
  • edgeIndex(arg0: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
  • edgeList(arg0: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber, string, BigNumber] & { chainID: BigNumber; latestLeafIndex: BigNumber; root: string }>
  • Parameters

    • arg0: BigNumberish
    • Optional overrides: CallOverrides

    Returns Promise<[BigNumber, string, BigNumber] & { chainID: BigNumber; latestLeafIndex: BigNumber; root: string }>

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

  • filledSubtrees(arg0: BigNumberish, overrides?: CallOverrides): Promise<string>
  • getChainId(overrides?: CallOverrides): Promise<BigNumber>
  • getDenomination(overrides?: CallOverrides): Promise<BigNumber>
  • getLastRoot(overrides?: CallOverrides): Promise<string>
  • getLatestNeighborRoots(overrides?: CallOverrides): Promise<string[]>
  • getToken(overrides?: CallOverrides): Promise<string>
  • handler(overrides?: CallOverrides): Promise<string>
  • hasEdge(_chainID: BigNumberish, overrides?: CallOverrides): Promise<boolean>
  • hashLeftRight(_hasher: string, _left: BytesLike, _right: BytesLike, overrides?: CallOverrides): Promise<string>
  • hasher(overrides?: CallOverrides): Promise<string>
  • isKnownNeighborRoot(neighborChainID: BigNumberish, _root: BytesLike, overrides?: CallOverrides): Promise<boolean>
  • isKnownRoot(_root: BytesLike, overrides?: CallOverrides): Promise<boolean>
  • isSpent(_nullifierHash: BytesLike, overrides?: CallOverrides): Promise<boolean>
  • isSpentArray(_nullifierHashes: BytesLike[], overrides?: CallOverrides): Promise<boolean[]>
  • isValidRoots(roots: BytesLike[], overrides?: CallOverrides): Promise<boolean>
  • levels(overrides?: CallOverrides): Promise<number>
  • 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[]
  • maxEdges(overrides?: CallOverrides): Promise<number>
  • neighborRoots(arg0: BigNumberish, arg1: BigNumberish, overrides?: CallOverrides): Promise<string>
  • nextIndex(overrides?: CallOverrides): Promise<number>
  • nullifierHashes(arg0: BytesLike, overrides?: CallOverrides): Promise<boolean>
  • off<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): LinkableAnchor
  • off(eventName: string, listener: Listener): LinkableAnchor
  • on<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): LinkableAnchor
  • on(eventName: string, listener: Listener): LinkableAnchor
  • once<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): LinkableAnchor
  • once(eventName: string, listener: Listener): LinkableAnchor
  • 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>[]>

  • removeAllListeners<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>): LinkableAnchor
  • removeAllListeners(eventName?: string): LinkableAnchor
  • removeListener<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): LinkableAnchor
  • removeListener(eventName: string, listener: Listener): LinkableAnchor
  • roots(arg0: BigNumberish, overrides?: CallOverrides): Promise<string>
  • setBridge(_bridge: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • setHandler(_handler: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • unpackProof(_proof: [BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish], overrides?: CallOverrides): Promise<[[BigNumber, BigNumber], [[BigNumber, BigNumber], [BigNumber, BigNumber]], [BigNumber, BigNumber]]>
  • Parameters

    • _proof: [BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish]
    • Optional overrides: CallOverrides

    Returns Promise<[[BigNumber, BigNumber], [[BigNumber, BigNumber], [BigNumber, BigNumber]], [BigNumber, BigNumber]]>

  • updateEdge(sourceChainID: BigNumberish, root: BytesLike, leafIndex: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • Parameters

    • sourceChainID: BigNumberish
    • root: BytesLike
    • leafIndex: BigNumberish
    • Optional overrides: PayableOverrides & { from?: string | Promise<string> }

    Returns Promise<ContractTransaction>

  • verifier(overrides?: CallOverrides): Promise<string>
  • withdraw(_proof: BytesLike, _publicInputs: { _fee: BigNumberish; _nullifierHash: BytesLike; _recipient: string; _refreshCommitment: BytesLike; _refund: BigNumberish; _relayer: string; _roots: BytesLike }, overrides?: PayableOverrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • Parameters

    • _proof: BytesLike
    • _publicInputs: { _fee: BigNumberish; _nullifierHash: BytesLike; _recipient: string; _refreshCommitment: BytesLike; _refund: BigNumberish; _relayer: string; _roots: BytesLike }
      • _fee: BigNumberish
      • _nullifierHash: BytesLike
      • _recipient: string
      • _refreshCommitment: BytesLike
      • _refund: BigNumberish
      • _relayer: string
      • _roots: BytesLike
    • Optional overrides: PayableOverrides & { from?: string | Promise<string> }

    Returns Promise<ContractTransaction>

  • zeros(i: BigNumberish, overrides?: CallOverrides): Promise<string>
  • 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