Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.04 KB

README.md

File metadata and controls

35 lines (24 loc) · 1.04 KB

certified-assets.mo

Work in progress!

This is a (partial) reference implentation of a Motoko asset canister.
There is a good chance it will be replaced by a DFINITY motoko asset canister in the future.

We may just extend this into a motoko package that can be imported or inherited motoko does not have inheritance by other canisters.

Explore the example canister: https://jr6if-gyaaa-aaaag-qctcq-cai.icp0.io/

Usage

You'll probably have to run with the latest moc compiler version because dfx is being weird.

$ dfx start --background
$ dfx deploy -network=local
$ dfx deploy --network=ic
$ DFX_MOC_PATH="$(vessel bin)/moc" dfx deploy --network=ic
$ dfx generate asset_canister
$ dfx stop
# Compile
$ $(vessel bin)/moc $(vessel sources 2>/dev/null) -r src/asset_canister/main.mo

Resources

Rust Implementation

@dfinity/assets