Simple ABI encoding/decoding for Ethereum contracts.
Via npm on Node:
npm install simpleabi
TBD
- Diving Into The Ethereum VM Part IV — How To Decipher A Smart Contract Method Call
- ethereumjs-abi: Decoder and encoder for the Ethereum ABI
- JavaScript Typed Arrays
- Hex String to ArrayBuffer
TBD
- 0.0.1
- 0.0.2, decode values, as safe integer
- 0.0.3, decode bool value type
- 0.0.4, encode with types, encode call
- 0.0.5, encode function signature
- 0.0.6, using big number to encode big integers as hexadecimal
- 0.0.7, decode bytes value
- 0.0.8, fixing bytes32 decode
- 0.0.9, encode/decode bytes
MIT
- bytes4, ..., bytes32 encode decode
Feel free to file issues and submit pull requests — contributions are welcome.
If you submit a pull request, please be sure to add or update corresponding
test cases, and ensure that npm test
continues to pass.