JSPM

  • Created
  • Published
  • Downloads 1015
  • Score
    100M100P100Q98240F
  • License MIT

Ethereum ABI encoder and decoder

Package Exports

  • @parity/abi
  • @parity/abi/lib/spec/function
  • @parity/abi/lib/spec/paramType/format
  • @parity/abi/lib/util/address
  • @parity/abi/lib/util/types

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 (@parity/abi) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@parity/abi

A port of https://github.com/paritytech/ethabi to JavaScript

Build Status npm (scoped) npm dependencies Status docs

Full Documentation

Contributing

Clone the repo and install dependencies via npm install. Tests can be executed via npm run test

Installation

Install the package with npm install --save @parity/abi from @parity/abi

Implementation

Approach

  • this version tries to stay as close to the original Rust version in intent, function names & purpose
  • it is a basic port of the Rust version, relying on effectively the same test-suite (expanded where deemed appropriate)
  • it is meant as a library to be used in other projects, i.e. @parity/api

Differences to original Rust version

  • internally the library operates on string binary representations as opposed to Vector bytes, lengths are therefore 64 bytes as opposed to 32 bytes
  • function names are adapted from the Rust standard snake_case to the JavaScript standard camelCase
  • due to the initial library focus, the cli component (as implemented by the original) is not supported nor implemented