-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate SDK contract wrappers #3740
Comments
We provide contract bindings that work via RPC ( |
BTW, we have #3245 for that. But in general I agree, |
It generated the file correctly, but I don't know how to use it. Is there any example that I can check? (using a generated rpc file) |
You can't use auto-generated RPC bindings with
|
Is your feature request related to a problem? Please describe.
I'm using the
neotest
package to test my smart contract and noticed the need to manually configure the hash and method names. This process is error-prone and reduces development efficiency. Neo Go already generates contract bindings, but these cannot be used with neotest.Please consider adding support to generate an 'offchain' SDK.
Describe the solution you'd like
Enhance the
generate-wrapper
command to create 'offchain' contract bindings.Describe alternatives you've considered
This feature is implemented in my TS SDK but generates TypeScript, not Go code.
Additional context
Adding this feature would save significant development time, reduce errors, and minimize frustration. It will enable auto-complete, preventing common issues such as incorrect method names, parameter counts, orders, and types. Return type conversion is also important, but may be harder to implement.
Don't forget to add labels!
feature
The text was updated successfully, but these errors were encountered: