Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@truffle/codec

Package Overview
Dependencies
Maintainers
6
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@truffle/codec

A decoder and encoder for Solidity variables of all sorts

  • 3.0.14-alphaTez.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
23K
decreased by-16.94%
Maintainers
6
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 09 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc