starknet.go icon indicating copy to clipboard operation
starknet.go copied to clipboard

code generator that would work like ethereum `abigen` for starknet

Open tarrencev opened this issue 3 years ago • 3 comments

it would be really useful to support generating typed bindings similar to go-ethereums abigen. take a contract abi and generated a typed interface for calling it

tarrencev avatar Apr 04 '22 17:04 tarrencev

Objectives

The goal would be to start from the geth implementation as started with greged93:feature/abigen and come with a code generator that implements all the function from a contract address (or from the abi file if for some reasons it is not feasible)

Acceptance criterias

We should be able:

  • [ ] to run a command with a contract address and it generates the associated code with the right properties
  • [ ] it should be callable from the gateway directly in the case of views and through an OZ account in the case of external
  • [ ] it should support multicall so that we can call several functions from one call

Additional notes

This issue is ambitious for many reasons. Do not hesitate to comment it and if possible, we will split it and make sure the grants are updated accordingly

gregoryguillou avatar Jul 26 '22 11:07 gregoryguillou

Hey team, I'd like to know if this is something on the pipeline. Since few major projects have a dependency on this.

Akashneelesh avatar Feb 06 '25 08:02 Akashneelesh

HI @Akashneelesh. It has indeed been on the roadmap for quite some time, but unfortunately another priority always came up. After rpcv08, I believe we can prioritize it

thiagodeev avatar Feb 07 '25 01:02 thiagodeev