Skip to content

Calldata decoder & API Encoder (with ABI) #952

Open
@tabaktoni

Description

@tabaktoni

Is your feature request related to a problem? Please describe.
This feature is nice to have as tools could use it and build on it.
Currently, we support encoding &. decoding with ABI:
JSC types -> calldata
responsedata -> JSC types

Describe the solution you'd like
It would also be nice to have a calldata decoder:
calldata -> JSC types
and api data encoder:
JSC types -> responsedata
Internally we do not need such a flow other than maybe adding additional validation options/ testing,
but this could help

  1. case: describe calldata parameters for various explorers &. tools.
  2. case: encode response for rpc node & tools.

Additional context
With ABI this would complete a circle of data conversion as so one could do:
calldata -> JSC types -> responsedata
We could improve the test with excepted results for echo test methods

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions