Skip to content
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

Merged

Conversation

xgreenx
Copy link
Collaborator

@xgreenx xgreenx commented Aug 20, 2022

Added support of the chain extension for pallet-assets. The extension requires additional changes on the pallet-assets side to be ready for production. But we ca enable it already for testing=)

xgreenx added a commit to xgreenx/chainextension-registry that referenced this pull request Aug 20, 2022
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).
Copy link
Member

@athei athei left a 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.

runtime/Cargo.toml Outdated Show resolved Hide resolved
Copy link
Member

@athei athei left a 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.

@HCastano
Copy link
Contributor

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 master. Green can do the same in the obce repo and we can more easily stay in lockstep there

HCastano pushed a commit to paritytech/chainextension-registry that referenced this pull request Aug 22, 2022
* 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>
@xgreenx xgreenx force-pushed the feature/pallet-assets-chain-extension branch from 8e56886 to 96aaa05 Compare September 23, 2022 11:02
@athei
Copy link
Member

athei commented Oct 11, 2022

If you update your extension to use the polkadot-v0.9.29 branch we can merge this.

@xgreenx xgreenx force-pushed the feature/pallet-assets-chain-extension branch from 96aaa05 to dd8e9c9 Compare October 11, 2022 13:20
@xgreenx xgreenx requested review from athei and removed request for ascjones, cmichi, agryaznov and HCastano October 11, 2022 13:27
@@ -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" }
Copy link
Member

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.

@athei athei merged commit 288e6a8 into paritytech:main Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants