-
Notifications
You must be signed in to change notification settings - Fork 337
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
XCMP #263
Conversation
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 know it says not ready for review, I was just too excited.
/// ERC token identifier | ||
type TokenId: Clone + Copy + AtLeast32BitUnsigned + FullCodec + Debug; | ||
/// Convert from AccountId to H160, should be identity map for Moonbeam | ||
type AccountToH160: Convert<Self::AccountId, H160>; |
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.
If you couple to pallet evm, you can use the same mapping that is in its config trait without needing this associated type.
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 found this associated type in pallet_evm
/// Mapping from address to account id.
type AddressMapping: AddressMapping<Self::AccountId>;
but I did not find account id to address, which I think I still need. The direction matters because I need to convert from T::AccountId to H160 (and the pallet doesn't have the T::AccountId assignment at compile time)
…t parachain system message handlers to XcmHandler
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.
Just took another quick look. I have some high level questions:
-
What is the key difference between token dealer and token factory? Is there a clear separation of concerns between the two?
-
When a user decides to send a foreign asset (eg ACA) to Moonbeam, what kind of destination address do they specify? I think it should be an H160 account, right?
…version and improve tests and make nonce global for pallet instead of contract specific
TODO:
|
This PR adds 3 runtime methods in Each of these methods require the call data as an input for There is this PR which includes three new message variants for |
* fix types * add alice
* fix types * add alice * fix call Co-authored-by: Amar Singh <[email protected]>
* progress * prog * it
Current error:
|
I'll open smaller ones to get this in piece by piece :'( |
What does it do?
Adds XCMP transfer logic. There are three new pallets:
hrmp-channels
is for proposing, accepting, and closing HRMP channelsxtransfer
is for cross-chain transfers (tightly coupled withchannels
)token-factory
is a wrapper around the EVM for ERC20 minting/burningThe XCMP handler logic is in
xtransfer/src/support.rs
in theMultiCurrency
implementation ofTransactAsset
. This is used by theLocalAssetTransactor
associated type in the runtime implementation ofxcm_executor::config
.This PR also removes:
parachain-info
(to use polkadot version directly instead)token-dealer
(replaced by pallets listed above)What important points reviewers should know?
TODO pallet outlines
Is there something left for follow-up PRs?
What alternative implementations were considered?
Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?
paritytech/polkadot#2661
What value does it bring to the blockchain users?
Checklist