Skip to content

asset-registry: And and Implement Inspect + Mutate traits #767

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

Merged

Conversation

NunoAlexandre
Copy link
Contributor

@NunoAlexandre NunoAlexandre commented Jun 12, 2022

This allows for loosely coupling of the orml_asset_registry pallet instead of forcing other pallets into a tight dependency.

This is particularly helpful for us at Centrifuge where we need to pass the asset-registry to a few pallets to query asset metadata and register tranche tokens.

@xlc
Copy link
Member

xlc commented Jun 12, 2022

Looks fine. Testing failing.

@zjb0807 zjb0807 mentioned this pull request Jun 13, 2022
The AssetMetadata type is needed by the Inspect and Mutate traits so it
needs to be in a shared place. While it's fine for the pallet to depend
on the traits::asset_registry, the inverse not so much, so we move the
struct to the traits section and import it here.
@NunoAlexandre NunoAlexandre force-pushed the asset-registry/inspect+mutate branch from 9901ad1 to 5074049 Compare June 13, 2022 05:15
@NunoAlexandre
Copy link
Contributor Author

@xlc It's ready for another round

@xlc xlc requested review from zjb0807 and zqhxuyuan June 13, 2022 08:33
Doing so makes logical sense and smoothes the update to this new
version.
@NunoAlexandre
Copy link
Contributor Author

@zqhxuyuan I just pushed one extra commit to pub use the AssetMetadata struct from the pallet itself to keep things the way they were for users.

@zqhxuyuan zqhxuyuan merged commit 9bf1101 into open-web3-stack:master Jun 13, 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