Home > Blockchain >  PFP18 abi encode/decode about locations
PFP18 abi encode/decode about locations

Time:09-22

First look at this website: https://abi.hashex.org/# this is a Russian code farmers do, but not making library, also didn't find the original code

Simple say the web site can receive abi definitions of contract, and then let the user to select specific methods, fill in parameters, forge signature data load content need

And abi associated with https://github.com/ethereumjs/ethereumjs-abi and https://github.com/ConsenSys/abi-decoder

Ethereumjs - abi: according to the abi definitions, decode and encode function method and its parameter

Abi - decoder: in addition to the above functions, but also can resolve the Transaction receipt of the event log

What I want is

Can parse abi
Can automatically find out the parameters of the need according to the method name, and in accordance with the provisions of the format encode
Parsing the log
And where is the introduction of open source code differences, their methods are user as a parameter to put in, and I want to use abi definitions, automatically put in, and is written in typescript to
In Java, and this is the Call by name or reflection mechanism can, we in the context of ts, to deduce the business process

Parsing abi, form their own data structures the number 0
Can list and query the function name number 1
To list and query functions on the number of parameters and type 2
According to the function name and parameter combination, encode and decode, form data, the number 3 (the need to consider the parameter types of conversion)
Parsing the Transaction event 2
If details clearly, considering the unit tests and build the development environment, the number of workers will not exceed 10 workdays

JCC moac - abi repository https://github.com/JCCDex/jcc-moac-abi
  • Related