-
Notifications
You must be signed in to change notification settings - Fork 10
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
foreign asset creator pallet #15
Conversation
] | ||
|
||
runtime-benchmarks = [ "frame-benchmarking" ] | ||
try-runtime = [ "frame-support/try-runtime" ] |
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.
Now try-runtime is a separate binary, so we don't need this rust feature anymore
@girazoki can you merge master? |
will do yes |
…oreign-asset-creator
Done @librelois but I still want to push some benchmarking code |
@librelois this should be now ready tpo be merged |
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.
LGTM
* foreign asset creator pallet * add maybe equivalence * lock * Add benchmarks * benchmarks * at least 16 bit unsigned * update * add benchmarks * add weights· * fix tests
This PR proposes a pallet that is similar to the asset-manager from moonbeam but it is a simplified version of it. In this case, the foreign-asset-creator-pallet is only responsible for creating and maintaining an
assetId
<->ForeignAsset
mapping to ease the following situations:assetId
to touch whenever we receive an XCMMultiAsset
MultiAsset
to send when we are told to send a specificassetId
to another chainImportant changes:
We allow the creator to decide an
assetId
instead of deriving it ourselves through some other mechanism. The main reason for having a custom derivation for theassetId
was that one could find a collision with a smart contract on the precompile address, but I believe this case is very ethereum specific and could be addressed in different manners (for instance, by using a smallerassetId
type)No units per second, this if needed should be done in a different pallet
No local asset creation