This type represents a decoding for a call to a known class that does not appear to be a function call, i.e., one that will result in the fallback function being invoked if there is one.

Category

Output

Hierarchy

  • MessageDecoding

Properties

abi: FallbackEntry | ReceiveEntry

The ABI entry for the contract's fallback or receive function that would handle this message; will be null if there is none.

The class of contract that was called, as a Format.Types.ContractType.

data: string

The data that was sent to the contract.

decodingMode: DecodingMode

The decoding mode that was used; see the README for more on these.

interpretations: {
    selectorBasedDecodings?: FunctionDecoding[];
}

Further information about how the decoding may be interpreted. Note that interpretations may be added by things that use @truffle/codec, such as @truffle/decoder, rather than by @truffle/codec itself. See individual interpretations for details.

Type declaration

  • Optional selectorBasedDecodings?: FunctionDecoding[]

    If we can't recognize the function, we attempt to see if we can decode based on the function selector alone using https://www.4byte.directory/ to determine possible signatures. Note these decodings will necessarily be made in ABI mode, and will even be lacking names of struct members.

    This interpretation will only be present if the array is nonempty.

kind: "message"

The kind of decoding; indicates that this is a MessageDecoding.

Generated using TypeDoc