Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 887 Bytes

File metadata and controls

31 lines (21 loc) · 887 Bytes

NNS Proxy

Build the canister:

bun build:examples -- nns_proxy

Run the tests:

bun test:examples -- nns_proxy

Bindings

The Rust bindings are generated by the build.rs script, which uses the ic-cdk-bindgen crate.

The TypeScript bindings are generated with:

didc bind -t ts ./examples/nns_proxy/canisters/governance.did > ./examples/nns_proxy/tests/src/canisters/governance.d.ts
didc bind -t ts ./examples/nns_proxy/canisters/ledger.did > ./examples/nns_proxy/tests/src/canisters/ledger.d.ts

And the corresponding JavaScript bindings:

didc bind -t js ./examples/nns_proxy/canisters/governance.did > ./examples/nns_proxy/tests/src/canisters/governance.js
didc bind -t js ./examples/nns_proxy/canisters/ledger.did > ./examples/nns_proxy/tests/src/canisters/ledger.js