Conversation
JoshOrndorff
left a comment
There was a problem hiding this comment.
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.
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.
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
JoshOrndorff
left a comment
There was a problem hiding this comment.
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 <asinghchrony@protonmail.com>
* 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-channelsis for proposing, accepting, and closing HRMP channelsxtransferis for cross-chain transfers (tightly coupled withchannels)token-factoryis a wrapper around the EVM for ERC20 minting/burningThe XCMP handler logic is in
xtransfer/src/support.rsin theMultiCurrencyimplementation ofTransactAsset. This is used by theLocalAssetTransactorassociated 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