-
Notifications
You must be signed in to change notification settings - Fork 13
Enable teleport of native token to Assethub #553
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
Merged
Merged
Changes from 15 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
e5de270
Adjust xcm_config.rs for Pendulum and allow teleport of PEN to assethub
ebma 8929cfa
Implement xcm-teleport pallet
ebma ba88493
Add xcm-teleport pallet to pendulum runtime
ebma 16998b5
Adjust xcm-teleport pallet to deposit leftover DOT back into sovereig…
ebma acbcf82
Adjust config in pendulum runtime
ebma 267bf39
Implement teleport check-in and check-out logic in custom transactor
ebma c1ae66a
Implement teleport destination validation in custom transactor
ebma b546185
Rename variables
ebma 7bac432
Address review comments: remove unused deps, fix imbalance handling, …
Copilot c2c126f
Revert UnitWeightCost change
ebma 7ee014e
Add minimum teleport amount to prevent griefing attacks
ebma 86cd7ec
Add logic to convert between PEN and DOT price using onchain prices
ebma ec7ae17
Fix `vec!` missing
ebma 867329a
Deposit leftover DOT to beneficiary
ebma d46c7a4
Reduce MaxDotFeeAmount to 0.5
ebma 9dc8933
Adjust stale code
ebma File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| [package] | ||
| authors = ["Pendulum"] | ||
| description = "A pallet to teleport native PEN to AssetHub with correct XCM message ordering" | ||
| edition = "2021" | ||
| name = "pallet-xcm-teleport" | ||
| version = "1.6.0-d" | ||
|
|
||
| [dependencies] | ||
| log = { workspace = true } | ||
| parity-scale-codec = { workspace = true, features = ["derive"] } | ||
| scale-info = { workspace = true, features = ["derive"] } | ||
|
|
||
| frame-support = { workspace = true } | ||
| frame-system = { workspace = true } | ||
| sp-runtime = { workspace = true } | ||
| sp-std = { workspace = true } | ||
|
|
||
| xcm = { workspace = true } | ||
|
|
||
| # benchmarking | ||
| frame-benchmarking = { workspace = true, optional = true } | ||
|
|
||
| [features] | ||
| default = ["std"] | ||
| runtime-benchmarks = [ | ||
| "frame-benchmarking", | ||
| "frame-benchmarking/runtime-benchmarks", | ||
| "frame-support/runtime-benchmarks", | ||
| "frame-system/runtime-benchmarks", | ||
| "sp-runtime/runtime-benchmarks", | ||
| ] | ||
| std = [ | ||
| "frame-support/std", | ||
| "frame-system/std", | ||
| "log/std", | ||
| "parity-scale-codec/std", | ||
| "scale-info/std", | ||
| "sp-runtime/std", | ||
| "sp-std/std", | ||
| "xcm/std", | ||
| "frame-benchmarking?/std", | ||
| ] | ||
| try-runtime = [ | ||
| "frame-support/try-runtime", | ||
| "frame-system/try-runtime", | ||
| "sp-runtime/try-runtime", | ||
| ] | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.