0

I built one smart contract using ink!. I can make the contract's wasm and metadata files. Now, I need to create go bindings of my smart contract to find contract types and functions info in golang code. Do we have any command or script for that?

3
  • You mean auto-generated bindings for your contract? Or a library to create them manually? Jan 23, 2023 at 15:04
  • Yes, auto generated bindings Jan 24, 2023 at 8:55
  • There are currently no automatic contract bindings generators. Lets keep it unanswered, maybe there will be at one point. Jan 26, 2023 at 12:43

1 Answer 1

1

AFAIK there is currently no way to auto-generate wrappers in Go.

A possible avenue to explore is to use https://github.com/727-Ventures/typechain-polkadot for generating TypeScript wrappers and then transpile them to Go code. I could imagine that a TypeScript2Golang exists somewhere.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.