Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ContractDecoder

The ContractDecoder class. Spawns the ContractInstanceDecoder class. Also, decodes transactions and logs. See below for a method listing.

Hierarchy

  • ContractDecoder

Index

Constructors

Protected constructor

Properties

Private allocations

allocations: AllocationInfo

Private contextHash

contextHash: string

Private contexts

contexts: DecoderContexts

Private contract

contract: ContractObject

Private contractNetwork

contractNetwork: string

Private contractNode

contractNode: AstNode

Private stateVariableReferences

stateVariableReferences: StorageMemberAllocation[]

Private web3

web3: Web3

Private wireDecoder

wireDecoder: WireDecoder

Methods

abifyCalldataDecoding

abifyLogDecoding

decodeLog

decodeTransaction

events

forInstance

  • This method is asynchronous.

    Constructs a contract instance decoder for a given instance of this contract.

    Parameters

    • Optional address: string

      The address of the contract instance decode. If left out, it will be autodetected. If an invalid address is provided, this method will throw an exception.

    Returns Promise<ContractInstanceDecoder>

Protected getAllocations

Protected getContractInfo

  • getContractInfo(): ContractInfo

Protected getStateVariableReferences

Protected getWireDecoder

Protected init

  • init(): Promise<void>

Generated using TypeDoc