dfinity / motoko-base

The Motoko base library
Apache License 2.0
483 stars 99 forks source link

Draft for an IC Canisters Library #574

Closed kentosugama closed 1 year ago

kentosugama commented 1 year ago

Just seeing what this would look like before (potentially) creating a separate repo and a library for these definitions.

Some considerations:

chenyan-dfinity commented 1 year ago

You may be using an out-dated didc. The latest one converts vec nat8 to Blob.

Another option is that:

import service "ic:canister_id"

automatically fetches the did file from metadata and generate the Motoko binding in the dfx build process. Then there is no need to have a library like this.

ggreif commented 1 year ago

You may be using an out-dated didc. The latest one converts vec nat8 to Blob.

Another option is that:

import service "ic:canister_id"

automatically fetches the did file from metadata and generate the Motoko binding in the dfx build process. Then there is no need to have a library like this.

What about the management canister? I doubt you can fetch it this way.

nomeata commented 1 year ago

What about the management canister? I doubt you can fetch it this way.

Maybe it should :-)

kentosugama commented 1 year ago

Oh! I didn't know about that feature. Yes maybe this library is not needed then.

kentosugama commented 1 year ago

https://github.com/dfinity/sdk/pull/3329

Working on having this in dfx.

EDIT: Done