The Chain class stores Tornado-agnostic chain data and also handles such interactions.

Hierarchy

  • Chain

Constructors

  • Parameters

    • provider: Provider
    • Optional signer: Signer

    Returns Chain

Properties

_chainId?: any
_emptySigner: any
_fetched: any
_propertiesFetched: any
_signer?: any
_signerConnected: any
_symbol?: any
provider: Provider

Accessors

  • get id(): number
  • Returns number

  • get signer(): Signer
  • Returns Signer

  • get symbol(): string
  • Returns string

Methods

  • Parameters

    • callStruct: (Omit<Call3ValueStruct, "value"> & Partial<Pick<Call3ValueStruct, "value">>)[]

    Returns Promise<ContractTransaction>

  • Parameters

    • signer: Signer

    Returns void

  • Returns Promise<void>

  • Parameters

    • account: string

    Returns Promise<BigNumber>

  • Returns Promise<BigNumber>

  • Parameters

    • account: string
    • token: string
    • Optional normalized: boolean

    Returns Promise<BigNumber>

  • Parameters

    • tokenAddress: string

    Returns ERC20

  • Parameters

    • token: string

    Returns Promise<BigNumber>

  • Returns Promise<number>

  • Parameters

    • callStruct: (Omit<Call3ValueStruct, "value"> & Partial<Pick<Call3ValueStruct, "value">>)[]

    Returns Promise<TransactionRequest>

Generated using TypeDoc