Skip to content

Calldata decoder & API Encoder (with ABI) #952

@tabaktoni

Description

@tabaktoni
Member

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

Activity

AryanGodara

AryanGodara commented on Mar 2, 2024

@AryanGodara

Hi @tabaktoni ; Can I work on this issue?
I've been reading up on the repo, for some time now.
I initially saw it on OnlyDust, and asked @ivpavici if I could work on this one.
Looks like no one else has picked this issue yet :D

AryanGodara

AryanGodara commented on Mar 6, 2024

@AryanGodara

@ivpavici Thanks for assigning this to me. :D
I won't be able to get to it before coming Monday, because of some other obligations 😅
But this is in my list and I'll try to push the relevant changes in a few days.

ivpavici

ivpavici commented on Mar 6, 2024

@ivpavici
Collaborator

no worries, take your time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @tabaktoni@ivpavici@AryanGodara

    Issue actions

      Calldata decoder & API Encoder (with ABI) · Issue #952 · starknet-io/starknet.js