Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 718 Bytes

README.md

File metadata and controls

44 lines (33 loc) · 718 Bytes

eth-data-coder

Description

command line for decode/encode function signature,input data and event log

Commands

  • abi
    • getFunctionSighash
    • getEventTopic
  • decode
    • decodeData
    • decodeLog
  • erc20
    • decodeData
    • getFunctionSighash
    • decodeLog
    • getEventTopic

How To Run This Project

Installation

yarn install

Run

#get info of command 
$ yarn start:cli {command} --help  
#get function sighash  
$ yarn start:cli abi getFunctionSighash --abiPath={YOUR_ABI_PATH}  
#get decoded data  
$ yarn start:cli decode decodeData {INPUT_DATA} --abiPath={YOUR_ABI_PATH}  

Test

yarn test