UNPKG

@truffle/codec

Version:

Library for encoding and decoding smart contract data

6 lines (5 loc) 381 B
import * as Format from "./format"; import type * as Pointer from "./pointer"; import type * as Evm from "./evm"; import type { DecoderRequest, DecoderOptions } from "./types"; export default function decode(dataType: Format.Types.Type, pointer: Pointer.DataPointer, info: Evm.EvmInfo, options?: DecoderOptions): Generator<DecoderRequest, Format.Values.Result, Uint8Array | null>;