Skip to content
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

XCM configuration on Kreivo. #259

Merged
merged 19 commits into from
Jun 21, 2023
Merged

XCM configuration on Kreivo. #259

merged 19 commits into from
Jun 21, 2023

Conversation

darkforest0202
Copy link
Contributor

This PR adds the following:

  • Effectively recognizing Statemine as a valid reserve for assets.
  • Paying XCM fees with USDT (id: 1984 and USDT as sufficient)
  • Setting XCM Emulator that executes a reserve based transfer:
    1. relay chain native tokens from the relay chain to Kreivo
    2. USDT from Statemine to Kreivo paying fees with USDT

Still pending:

  • Modify Barrier to Deny reserve transfer to Statemine (DenyThenTry<DenyNativeTokenReserveTransferToStatemine...)
  • Add a check of balance change of ALICE on kreivo once the native token of relay chain is received.

Related #242

@darkforest0202 darkforest0202 requested a review from olanod June 15, 2023 16:26
type XcmTeleportFilter = Everything;
type XcmReserveTransferFilter = Nothing;
type XcmTeleportFilter = Nothing;
type XcmReserveTransferFilter = Everything;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For the future , make a test to assure that asset registry is filtering non desired assets.

runtime/kreivo/src/xcm_config.rs Outdated Show resolved Hide resolved
type XcmTeleportFilter = Everything;
type XcmReserveTransferFilter = Nothing;
type XcmTeleportFilter = Nothing;
type XcmReserveTransferFilter = Everything;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The asset registry is already taking care of the filter, however we might try implementing some more specific filter. At the moment all parachains are just leaving Everything and using an asset registry to allow/disallow assets from other parachains

xcm-emulator/Cargo.toml Show resolved Hide resolved
type XcmTeleportFilter = Everything;
type XcmReserveTransferFilter = Nothing;
type XcmTeleportFilter = Nothing;
type XcmReserveTransferFilter = Everything;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The asset registry is already taking care of the filter, however we might try implementing some more specific filter. At the moment all parachains are just leaving Everything and using an asset registry to allow/disallow assets from other parachains

@darkforest0202 darkforest0202 requested a review from olanod June 21, 2023 08:33
@olanod olanod merged commit 0bde221 into master Jun 21, 2023
@olanod olanod deleted the nicof-xcm-configuration branch June 21, 2023 08:40
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.

2 participants