JSPM

@truffle/codec

3.1.0-ens-events.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 49971
  • Score
    100M100P100Q11988F
  • License MIT

A decoder and encoder for Solidity variables of all sorts

Package Exports

  • @truffle/codec

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@truffle/codec) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Truffle Decoder Core

This module provides interfaces for decoding Solidity variables. This is a fairly low-level interface meant to be used by e.g. a debugger; for a higher-level interface, see the truffle-contract-decoder package instead.

Usage

import { forEvmState } from 'truffle-decoder-core';

const decoder = forEvmState(definition, pointer, info);

The variable decoder will then contain a generator you can use to decode your variable. It may make requests for storage or for code; responses should be in the form of a Uint8Array.