You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 20, 2020. It is now read-only.
Update contract Wasm runtime interface to support multi token by making existing one defaults to CENTRAPAY and add new one comes with asset id argument
Update contract Wasm runtime interface to support multi token by making existing one defaults to CENTRAPAY and add new one comes with asset id argument
Add a DefaultAssetId type to contract
Add
TryFrom<u64>
andInto<u64>
toAssetId
inMultiCurrency
trait (depends on Multi currency trait design #5)This assumes
AssetId
cannot be larger than u64. We can revisit later to see if we need to drop this assumption.Runtime interfaces:
plug-blockchain/srml/contract/src/wasm/runtime.rs
Line 226 in dd8a778
ext_asset_balance(ctx, asset_id: u64)
to query GA balanceext_asset_transfer(ctx, asset_id: u64)
Later will need to modify
ext_call
andext_create
to be able to transfer multiple tokens during contract call or deployment.Meta issue: #13
The text was updated successfully, but these errors were encountered: