Comments (4)
To get it from deployed canisters: dfx canister metadata <canister_id> motoko:stable-types
.
To get it from wasm: ic-wasm <my.wasm> metadata motoko:stable-types
.
If you want to make it everything explicit and scriptable, I encourage you to try ic-repl
.
from sdk.
OK, dfx canister metadata <canister_id> motoko:stable-types
gives .did
. But how to get .most
? (And I don't really understand what is the distinction between .did
and .most
.)
Also, the following demonstrates that stresser
does have main
shared method, but it is missing in the actor
:
$ dfx canister metadata stresser motoko:stable-types && dfx canister call stresser main '()'
// Version: 1.0.0
actor {
};
Error: Failed update call.
Caused by: Failed update call.
The replica returned a replica error: reject code CanisterReject, reject message IC0501: Canister bkyz2-fmaaa-aaaaa-qaaaq-cai is out of cycles, error code None
$ dfx --version
dfx 0.18.0
from sdk.
motoko:stable-types
gives you .most
. candid:service
gives you .did
from sdk.
This doesn't seem to be an issue with Rust CDK but rather with general development using dfx.
from sdk.
Related Issues (20)
- fetch management canister interface from replica instead of hardcoding it HOT 1
- 'Cannot parse version' when try to debugging dfx executable HOT 1
- Maybe be in file `src/dfx/Cargo.toml` tag version should be "0.17.0" ?
- Missing in documentation about `dfx canister install`
- `dfx build` is much slower than direct usage of `moc`
- `dfx build` and `dfx deploy` should be able to pass additional command line arguments to `moc` HOT 1
- Missing `type` attribute for a canister causes panic
- During compilation `"--actor-idl"` appears twice
- Wrong canister principals are generated by `dfx generate` and other HOT 2
- reinstalling canister does not replenish cycle balance
- DFX fails to retrieve the list of canister controllers during SNS proposal launch
- dfx new --frontend cli argument is wrong in the documentation HOT 1
- Can't update replica (to Enable WebAssembly SIMD support) in local HOT 1
- `.env` is not written HOT 3
- Crate libc 0.2.154 is yanked
- Crate prost-derive 0.12.5 is yanked
- Crate ic-cdk 0.13.3 is yanked
- Crate bytes 1.6.0 is yanked
- DFX sometimes omits a canister in `.env`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdk.