-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support of pallet-assets
and chain extension for it.
#146
Added support of pallet-assets
and chain extension for it.
#146
Conversation
The id of the chain extension is `0x48f6`. It is the first 2 bytes of the `blake2b` hash from the "pallet-assets-chain-extension@v0.1" string. The [chain extension](https://github.com/Supercolony-net/pallet-assets-chain-extension) created with usage of the [`obce`](https://github.com/Supercolony-net/obce) crate. The chain extension is not ready for production because it requires some additional changes on the `pallet-assets` side(some operations should be performed by the contract only if the contract is admin). But it is a matter of time, so I think we can register it and fix it with minor patches. Added support of the extension into [substrate-contract-node](paritytech/substrate-contracts-node#146) and into [OpenBrush](Supercolony-net/openbrush-contracts#168).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something went wrong with fetching from your git repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am a bit worried that this will make our update process more complicated because we are restrained to the substrate version your repo uses. But I see no better way here. We don't want a node per extension.
Maybe this is a good time for us to start pinning to release branches instead of following |
* Add `pallet-assets` chain extension. The id of the chain extension is `0x48f6`. It is the first 2 bytes of the `blake2b` hash from the "pallet-assets-chain-extension@v0.1" string. The [chain extension](https://github.com/Supercolony-net/pallet-assets-chain-extension) created with usage of the [`obce`](https://github.com/Supercolony-net/obce) crate. The chain extension is not ready for production because it requires some additional changes on the `pallet-assets` side(some operations should be performed by the contract only if the contract is admin). But it is a matter of time, so I think we can register it and fix it with minor patches. Added support of the extension into [substrate-contract-node](paritytech/substrate-contracts-node#146) and into [OpenBrush](Supercolony-net/openbrush-contracts#168). * Update registry.json Co-authored-by: Alexander Theißen <alex.theissen@me.com> Co-authored-by: Alexander Theißen <alex.theissen@me.com>
8e56886
to
96aaa05
Compare
If you update your extension to use the |
96aaa05
to
dd8e9c9
Compare
runtime/Cargo.toml
Outdated
@@ -51,6 +51,10 @@ pallet-contracts = { git = "https://github.com/paritytech/substrate", package = | |||
pallet-contracts-primitives = { git = "https://github.com/paritytech/substrate", package = "pallet-contracts-primitives", default-features = false , branch = "polkadot-v0.9.29" } | |||
pallet-contracts-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", package = "pallet-contracts-rpc-runtime-api", default-features = false , branch = "polkadot-v0.9.29" } | |||
|
|||
# Chain extension | |||
pallet-assets = { git = "https://github.com/paritytech/substrate", package = "pallet-assets", default-features = false, branch = "polkadot-v0.9.29" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you move that up to the other pallets? This is not a chain extension per se.
Added support of the chain extension for
pallet-assets
. The extension requires additional changes on thepallet-assets
side to be ready for production. But we ca enable it already for testing=)