This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
XCM: Properly set the pricing for the DMP router #6843
Merged
Merged
Changes from 14 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
145af81
Properly set the pricing for the DMP router
KiChjang d489025
Publicize price types
KiChjang 39f90fe
Use FixedU128 instead of Percent
KiChjang 824f045
Add sp-arithmetic as a dependency for rococo runtime
KiChjang f4e0d66
Add sp-arithmetic as a dependency to all runtimes
KiChjang 7a49275
Remove duplicate import
KiChjang 59d6693
Add missing import
KiChjang 500b42f
Fix tests
KiChjang 633430c
Create an appropriate QueueDownwardMessageError variant
KiChjang 7f27521
Recalculate delivery fee factor based on past queue sizes
KiChjang 2fe3547
Remove unused error variant
KiChjang 3f6ea59
Fixes
KiChjang c36de96
Fixes
KiChjang 7e3d876
Remove unused imports
KiChjang c5a622d
Rewrite fee factor update mechanism
KiChjang c83126b
Remove unused imports
KiChjang 85141d2
Merge remote-tracking branch 'origin/master' into kckyeung/xcm-sender…
KiChjang 8c7c9f9
Fixes
KiChjang 395a70b
Update runtime/parachains/src/dmp.rs
KiChjang a938c9c
Make DeliveryFeeFactor be a StorageMap keyed on ParaIds
KiChjang 56a018d
Fixes
KiChjang 758ff41
merge master
vstam1 838b9b5
introduce limit for fee increase on dmp queue
vstam1 1a2bcd6
add message_size based fee factor to increment_fee_factor
vstam1 3546698
change message_size fee rate to correct value
vstam1 da90e35
fix div by 0 error
vstam1 9eefb51
bind limit to variable
vstam1 5310ce1
merge master
vstam1 7086ec1
fix message_size_factor and add DeliveryFeeFactor test
vstam1 f2f0427
add test for ExponentialPrice implementation
vstam1 e1fa338
make test formula based
vstam1 303d7d5
make delivery fee factor test formula based
vstam1 8588ce9
add max value test for DeliveryFeeFactor and move limit to config
vstam1 7f6cfdf
change threshold back to dynamic value and fix tests
vstam1 759277c
fmt
vstam1 a6a7fd9
suggested changes and fmt
vstam1 0a2a6e7
merge master
vstam1 d92d990
small stylistic change
vstam1 aafbb68
merge master
vstam1 d0c5de1
fmt
vstam1 ea42774
change to tokenlocation
vstam1 1732846
small fixes
vstam1 56fe04d
fmt
vstam1 2f7acd1
remove sp_arithmetic dependency
vstam1 8b4877a
Merge branch 'master' into kckyeung/xcm-sender-price
vstam1 a7e5ded
Update runtime/parachains/src/dmp.rs
vstam1 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 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 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 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 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 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 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 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 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 |
---|---|---|
|
@@ -27,6 +27,7 @@ sp-io = { git = "https://github.com/paritytech/substrate", branch = "master", de | |
sp-mmr-primitives = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } | ||
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } | ||
sp-staking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } | ||
sp-arithmetic = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same? |
||
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } | ||
sp-session = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } | ||
sp-version = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } | ||
|
@@ -112,6 +113,7 @@ std = [ | |
"parity-scale-codec/std", | ||
"scale-info/std", | ||
"inherents/std", | ||
"sp-arithmetic/std", | ||
"sp-core/std", | ||
"sp-api/std", | ||
"tx-pool-api/std", | ||
|
This file contains 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 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 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
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.
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.
this could be all refactored to use default parts in the future, no?