Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
a031bef
patch cumulus to xcmp queue version with defer filter
apopiak Apr 17, 2023
cb67a62
cargo lock changes
apopiak Apr 17, 2023
c5a52ca
add xcm-rate-limiter pallet base
dmoka Apr 17, 2023
9dd2264
add first failing test for tracking incoming asset liquidity
dmoka Apr 17, 2023
821a30f
add first implementation for tracking asset volume
dmoka Apr 18, 2023
45383d8
refactor rate limiter and test, add teleported asset case
apopiak Apr 18, 2023
29c5a1b
adjust runtime-benchmark feature in cargo toml
apopiak Apr 18, 2023
c5bc3f0
defer xcm with duration when rate limit exceeded
dmoka Apr 18, 2023
fa93624
add logic for setting rate limit per asset
dmoka Apr 18, 2023
b2fe0d0
add todos
dmoka Apr 18, 2023
bbda095
add root check for set limit
dmoka Apr 18, 2023
aba2538
started building a deffered message queue logic
jak-pan Apr 18, 2023
d52784d
WIP - add calculation for deferred by, based on block time difference
dmoka Apr 18, 2023
dbe3ad6
add first implementation for calculatin deferred duration
dmoka Apr 19, 2023
47db0b2
implement decay of accumulated amounts
apopiak Apr 19, 2023
87d9901
added deferring logic to XCMDeferFilter
jak-pan Apr 19, 2023
1919aa0
use associated types to get rate limit per asset
apopiak Apr 19, 2023
baa873d
add notes and todos + slight refactor
apopiak Apr 19, 2023
40339ef
add todo
dmoka Apr 20, 2023
0209bed
remove rate limits managing as the rate limits are stored in asset re…
dmoka Apr 20, 2023
7fdd188
remove unused events and error specs
dmoka Apr 20, 2023
12d0dd3
add doc for storage
dmoka Apr 20, 2023
fe0b7ad
add dedicated type for storing accumulated liquidity
dmoka Apr 20, 2023
56949fb
add missing doc
dmoka Apr 20, 2023
d0f86da
renaming
dmoka Apr 20, 2023
d60f624
renaming
dmoka Apr 20, 2023
783c545
add missing assertions
dmoka Apr 20, 2023
db2da9c
ignore not used params
dmoka Apr 20, 2023
d3ac7b1
avoid redoing computation when calculating deferred duration
dmoka Apr 20, 2023
0c1fb67
implement MaxDeferDuration
apopiak Apr 20, 2023
bc37735
use RelayChainBlockNumber for durations everywhere
apopiak Apr 20, 2023
7f89787
add missing doc comment
dmoka Apr 20, 2023
66d7e32
implement xcm rate limiter for runtime
dmoka Apr 20, 2023
aae8b32
write and fix xcm rate limiter integration test (was missing in runtime)
apopiak Apr 20, 2023
78e528d
formatting
apopiak Apr 20, 2023
de3a599
update teleport test for rate limiter
apopiak Apr 20, 2023
f84f41c
test for v2 conversion and defer for max when not able to convert
apopiak Apr 20, 2023
3a913a4
formatting
apopiak Apr 20, 2023
e26e4b3
check message hash
apopiak May 8, 2023
39a6608
Merge branch 'v0.9.38' into feat/xcm-defer
apopiak May 8, 2023
cf1e223
update cargo.lock
apopiak May 8, 2023
6cdabef
run and apply cargo fix
apopiak May 8, 2023
b8b0641
formatting
apopiak May 8, 2023
fb67a91
add missing parameter
apopiak May 8, 2023
9db7c29
more formatting and similar fixes
apopiak May 8, 2023
72eb591
make clippy even happier
apopiak May 8, 2023
5f735b6
Merge branch 'master' of github.com:galacticcouncil/HydraDX-node into…
apopiak Jun 1, 2023
e410fb4
formatting
apopiak Jun 1, 2023
c4985fd
bump crate versions
apopiak Jun 1, 2023
e4d3d3b
activate std for runtime deps in integration tests
apopiak Jun 5, 2023
90f8fc4
update cargo.lock
apopiak Jun 5, 2023
5edd867
Merge branch 'master' of github.com:galacticcouncil/HydraDX-node into…
apopiak Jun 5, 2023
45f35b6
adjust integation test to new relay block number source
apopiak Jun 5, 2023
41d6f3c
extract rate_limiter math to math package
apopiak Jun 5, 2023
8943213
Merge branch 'master' into feat/xcm-defer
apopiak Jun 5, 2023
7504d1a
move RelayChainBlockNumberProvider and HashProvider to adapters
apopiak Jun 5, 2023
0c9f202
add frame_system dep
apopiak Jun 5, 2023
a24fa51
use RelayChainBlockNumber type in adapter
apopiak Jun 5, 2023
8efe496
use default weight in mock
apopiak Jun 14, 2023
3790fe0
update cumulus to fixed benchmark version of xcmp queue
apopiak Jun 14, 2023
b421c53
Merge branch 'master' of github.com:galacticcouncil/HydraDX-node into…
apopiak Jun 14, 2023
a5d7811
bump crate versions
apopiak Jun 14, 2023
5dcf301
bump runtime version
apopiak Jun 14, 2023
06213a2
bump more crates
apopiak Jun 14, 2023
eb3db77
add doc comments and another prop test
apopiak Jun 14, 2023
9522d1c
update xcmp_queue to new version with weights and add benchmarked wei…
apopiak Jun 14, 2023
0b0cad9
update xcmp queue
apopiak Jun 14, 2023
f29655d
bump common runtime
apopiak Jun 14, 2023
e4be8cd
return approximate weight consumed by deferred_by
apopiak Jun 14, 2023
6697241
add readme
dmoka Jun 14, 2023
91e1ddc
remove unused WeightInfo
apopiak Jun 15, 2023
b4b86a9
remove unused dep
apopiak Jun 15, 2023
88ad136
track all assets in incoming instructions and defer based on max defe…
apopiak Jun 15, 2023
fe4f8a0
address review comments
apopiak Jun 15, 2023
e58df7a
add test for withdraw to make sure it's not tracked
apopiak Jun 15, 2023
ba7ffd4
Merge branch 'master' of github.com:galacticcouncil/HydraDX-node into…
apopiak Jun 19, 2023
a9fcbb8
bump crate versions
apopiak Jun 19, 2023
c68f143
reset otc version
apopiak Jun 26, 2023
c402513
update cargo.lock
apopiak Jun 26, 2023
30f171f
add test for executing deferred messages
apopiak Jun 26, 2023
421a305
Merge branch 'master' of github.com:galacticcouncil/HydraDX-node into…
apopiak Jun 26, 2023
6efd823
query fee from treasurey account instead of hard-coding
apopiak Jun 26, 2023
80614f5
Merge branch 'master' of github.com:galacticcouncil/HydraDX-node into…
apopiak Jun 28, 2023
4d2f1ab
bump crate versions
apopiak Jun 28, 2023
1119b13
remove xcm rate limiter from runtime
apopiak Jul 12, 2023
7eb04cd
correct rate limiter Cargo.toml
apopiak Jul 12, 2023
3a1534d
Merge branch 'master' of github.com:galacticcouncil/HydraDX-node into…
apopiak Jul 12, 2023
3895821
bump crate versions
apopiak Jul 12, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add todo
  • Loading branch information
dmoka committed Apr 20, 2023
commit 40339efc833424b8a95a3b15b07632fe31320b53
1 change: 1 addition & 0 deletions pallets/xcm-rate-limiter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ pub mod pallet {

#[pallet::storage]
/// TODO: document
/// TODO: Use better naming and possible a struct for the value - LiquidtyAccumulation?!
#[pallet::getter(fn liquidity_per_asset)]
pub type LiquidityPerAsset<T: Config> =
StorageMap<_, Blake2_128Concat, MultiLocation, (u128, T::BlockNumber), ValueQuery>;
Expand Down