openethereum/js/src/abi
2017-04-20 11:48:42 +02:00
..
decoder Fix whitespace (#4299) 2017-01-25 18:51:41 +01:00
encoder Fix whitespace (#4299) 2017-01-25 18:51:41 +01:00
spec Fix whitespace (#4299) 2017-01-25 18:51:41 +01:00
token Fix whitespace (#4299) 2017-01-25 18:51:41 +01:00
util Optimize signature for fallback function. (#4780) 2017-03-06 15:11:39 +01:00
abi.js Fix whitespace (#4299) 2017-01-25 18:51:41 +01:00
index.js Fix whitespace (#4299) 2017-01-25 18:51:41 +01:00
package.json Update maintainers 2017-04-20 11:48:42 +02:00
README.md Updating paths to repos. (#5330) 2017-03-29 15:17:27 +02:00

ethabi-js

A very early, very POC-type port of https://github.com/paritytech/ethabi to JavaScript

Build Status Coverage Status Dependency Status devDependency Status

contributing

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

  • npm run testOnce (100% covered unit tests)

installation

Install the package with npm install --save ethabi-js from the npm registry ethabi-js

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. ethapi-js

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 mplemented