dfinity / motoko

Simple high-level language for writing Internet Computer canisters
Apache License 2.0
515 stars 97 forks source link

Canister argument IDL story #1827

Closed crusso closed 3 years ago

crusso commented 4 years ago

Motoko now supports actor classes as compilation units, providing access to canister arguments. However, we need to decide how to expose the canister argument as IDL to dfx etc.

chenyan-dfinity commented 3 years ago

Isn't this done already?

crusso commented 3 years ago

Motoko certainly does - and IDL does too, right? Does dfx know how to use this info to pass installation/upgrade arguments?

chenyan-dfinity commented 3 years ago

Yes, we can close this.

rossberg commented 3 years ago

I though we still do not have a proper story for converting an IDL with service "constructor" type into a proper service type when instantiating a canister. Though that may be more of a tooling issue.