Skip to content

Feature/teleport an asset between parachains(statemint <-> parachain template node) #47

Merged
energyGiver merged 5 commits intomasterfrom
feature/45-teleport-assets
May 26, 2023
Merged

Feature/teleport an asset between parachains(statemint <-> parachain template node) #47
energyGiver merged 5 commits intomasterfrom
feature/45-teleport-assets

Conversation

@energyGiver
Copy link
Copy Markdown
Contributor

@energyGiver energyGiver commented May 25, 2023

Features

Between para chains, the system token(asset_id=99) should be teleported.
So far, only Asset_id=99 can be teleported.

Changes

  • XCM config of infra-asset-system and parachain-template are modified to teleport assets.
    • Asset minting location => infra-asset-system(parachain 1000)
    • IsTeleporter is changed to accept teleporting asset_id = 99
    • AssetTransactor and Trader are also modified.

Descriptions

  • Teleport from Statemine to template-node (Asset minted by statemint: pallet = 50, asset_id = 99)

    • use this encoded data when sending a extrinsic in polkadot-js (when infra-asset-tx-payment is not applied)
      0x1f0901010100411f01000101008eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a4801040000020432058d01000f0080c6a47e8d030000000000
  • Teleport from template-node to Statemine (Asset minted by statemint: pallet = 50, asset_id = 99)

    • use this encoded data when sending a extrinsic in polkadot-js (when infra-asset-tx-payment is not applied) 0x1f0901010100a10f010001010090b5ab205c6974c9ea841be688864633dc9ca8a357843eeacf2314649965fe22010400010300a10f0432058d01000f00404c948b32030000000000

Referneces

Issues

Copy link
Copy Markdown
Contributor

@sweatpotato13 sweatpotato13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

�unused code는 주석이 아니고 그냥 지워주세요

@energyGiver energyGiver requested a review from sweatpotato13 May 26, 2023 05:06
@energyGiver energyGiver force-pushed the feature/45-teleport-assets branch from f2abd11 to 0da5af0 Compare May 26, 2023 05:20
@energyGiver energyGiver merged commit 5a1f555 into master May 26, 2023
@energyGiver energyGiver self-assigned this Jun 16, 2023
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