You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fyfyrchik opened this issue
Dec 19, 2024
· 1 comment
Labels
blockedCan't be done because of somethingenhancementImproving existing functionalityI2Regular impactI3Minimal impactS3Minimally significantU4Nothing urgent
Allow to use it from inside the autogenerator.
A possible value to use for a type in rpcbinding configuration is Integer:int64. Another option is base: Integer; Name: int64.
We may also have other types (e.g. uint32), the details can be discussed. E.g. have LimitedInt[T interface { ~int* }] and LimitedUint[T interface{ ~uint* }] in unwrap and reuse them.
Describe alternatives you've considered
Provide custom type/unmarshaler defined outside the generated code. With it, we can have SDK types reused in the autogenerated code for contracts.
The text was updated successfully, but these errors were encountered:
blockedCan't be done because of somethingenhancementImproving existing functionalityI2Regular impactI3Minimal impactS3Minimally significantU4Nothing urgent
Is your feature request related to a problem? Please describe.
Sometimes I want to use
uint32
instead ofbig.Int
in the auto-generated wrappers.Currently, I need to add another struct.
Describe the solution you'd like
pkg/rpcclient/unwrap
has a beautiful unwrapperneo-go/pkg/rpcclient/unwrap/unwrap.go
Line 98 in 6d20772
Allow to use it from inside the autogenerator.
A possible value to use for a type in rpcbinding configuration is
Integer:int64
. Another option isbase: Integer; Name: int64
.We may also have other types (e.g. uint32), the details can be discussed. E.g. have
LimitedInt[T interface { ~int* }]
andLimitedUint[T interface{ ~uint* }]
inunwrap
and reuse them.Describe alternatives you've considered
Provide custom type/unmarshaler defined outside the generated code. With it, we can have SDK types reused in the autogenerated code for contracts.
The text was updated successfully, but these errors were encountered: