Use bindings config to generate RPC wrappers #144

Open
opened 2024-12-20 08:19:13 +00:00 by fyrchik · 0 comments
Owner

neo-go compiler can emit bindings config file which is used by generator to provide custom named types.
As an example, we have Subject* and Group* types in the frostfsid contract.
There is a quirk in neo-go which prevented me from making a PR https://github.com/nspcc-dev/neo-go/issues/3768

In this task:

  1. Introduce Subject*, Group* and Namespace* structs in the rpcclient/frostfsid package. This structs should be autogenerated.
  2. tests should reuse these structs instead of custom ones.
  3. frostfs/client package should reuse the parsing code where possible (some types could be made synonyms, others will persist, because of uint64/big.Int mismatch).

Originally posted by @fyrchik in TrueCloudLab/frostfs-node#1571 (comment)

neo-go compiler can emit bindings config file which is used by generator to provide custom named types. As an example, we have `Subject*` and `Group*` types in the frostfsid contract. There is a quirk in neo-go which prevented me from making a PR https://github.com/nspcc-dev/neo-go/issues/3768 In this task: 1. Introduce `Subject*`, `Group*` and `Namespace*` structs in the rpcclient/frostfsid package. This structs should be autogenerated. 2. `tests` should reuse these structs instead of custom ones. 3. `frostfs/client` package should reuse the parsing code where possible (some types could be made synonyms, others will persist, because of uint64/big.Int mismatch). _Originally posted by @fyrchik in https://git.frostfs.info/TrueCloudLab/frostfs-node/issues/1571#issue-4867_
fyrchik added the
enhancement
discussion
blocked
internal
labels 2024-12-20 08:20:01 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-contract#144
No description provided.