Skip to content
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

feat(ts-bindings): allow generating from wasm hash #1780

Merged
merged 2 commits into from
Dec 12, 2024

Conversation

chadoh
Copy link
Contributor

@chadoh chadoh commented Dec 4, 2024

What

Allow generating TS Bindings from a wasm hash, instead of only contract ID or wasm file path.

Why

This is useful for generating TS Bindings for wasm files that have been uploaded to the network, but for which no contracts have yet been deployed.

Known limitations (WIP)

@chadoh chadoh force-pushed the feat/ts-bindings/bind-wasm-hash branch 3 times, most recently from dcb9475 to f43c544 Compare December 9, 2024 19:05
@chadoh chadoh force-pushed the feat/ts-bindings/bind-wasm-hash branch 2 times, most recently from 46f4aa5 to 22ad32f Compare December 11, 2024 19:50
Refactor spec-fetching logic from `contract::info::shared` so that it
can be used for `contract::bindings::typescript` as well.

This means that `contract::info` commands now have more logging than
they did before, and support global args for quieting these print
statements.
@chadoh chadoh force-pushed the feat/ts-bindings/bind-wasm-hash branch from 22ad32f to e8dc57e Compare December 11, 2024 20:40
@chadoh chadoh marked this pull request as ready for review December 11, 2024 20:50
Copy link
Member

@leighmcculloch leighmcculloch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏🏻 looks good to go.

Could you take cleaning up the return value as a follow up?

FULL_HELP_DOCS.md Show resolved Hide resolved
@willemneal willemneal enabled auto-merge (squash) December 12, 2024 14:12
@willemneal willemneal merged commit 8aefbf5 into main Dec 12, 2024
30 of 31 checks passed
@willemneal willemneal deleted the feat/ts-bindings/bind-wasm-hash branch December 12, 2024 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants