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

feat!: XCM Rate Limiter Integration #638

Merged
merged 28 commits into from
Jan 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
445ba54
correct rate limiter Cargo.toml
apopiak Jul 12, 2023
cb275b6
Merge branch 'feat/xcm-defer' into feat/xcm-rate-limiter
apopiak Jul 12, 2023
db44625
bump crate versions
apopiak Jul 12, 2023
79a64a1
Revert "remove xcm rate limiter from runtime"
apopiak Jul 24, 2023
144605e
update xcmp queue pallet
apopiak Jul 24, 2023
673f54e
Merge branch 'master' of github.com:galacticcouncil/HydraDX-node into…
apopiak Jul 24, 2023
33828ce
Merge branch 'master' into feat/xcm-rate-limiter
mrq1911 Jul 27, 2023
4d48737
Merge branch 'master' into feat/xcm-rate-limiter
apopiak Jul 28, 2023
353a6c6
Merge branch 'master' into feat/xcm-rate-limiter
mrq1911 Aug 8, 2023
a6ee5de
bump integration tests
dmoka Aug 8, 2023
8797e19
Merge remote-tracking branch 'origin/feat/xcm-rate-limiter' into feat…
dmoka Aug 8, 2023
a931eb0
bump runtime version
dmoka Aug 8, 2023
21f5866
change function order to follow execution orders
dmoka Aug 8, 2023
b743f77
bump patch versions of touched packages
dmoka Aug 8, 2023
c95d0e5
fix xcm rate limiter non deterministic tests as we use different rela…
dmoka Aug 8, 2023
ce57dbb
merge master to feat/xcm-rate-limiter
dmoka Aug 11, 2023
62ecd90
bump versions
dmoka Aug 11, 2023
b33182c
merge master to feat/xcm-rate-limiter
dmoka Aug 14, 2023
04440f3
bump runtime version
dmoka Aug 14, 2023
0671025
bump patch versions for touched packages
dmoka Aug 14, 2023
658b7be
update lock
dmoka Aug 14, 2023
fed4df2
Merge branch 'master' of github.com:galacticcouncil/HydraDX-node into…
apopiak Oct 13, 2023
54744fe
bump versions
apopiak Oct 20, 2023
c90e469
remove duplicate assert macro definitions
apopiak Oct 20, 2023
0a0682a
update xcmp queue pallet to new extended version
apopiak Oct 20, 2023
ff7c102
update integration tests
apopiak Oct 20, 2023
7a1eaed
formatting
apopiak Oct 20, 2023
d958f16
configure defer duration
apopiak Dec 8, 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
56 changes: 28 additions & 28 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion integration-tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "runtime-integration-tests"
version = "1.13.0"
version = "1.13.1"
description = "Integration tests"
authors = ["GalacticCouncil"]
edition = "2021"
Expand Down
15 changes: 15 additions & 0 deletions integration-tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,19 @@ mod router;
mod staking;
mod transact_call_filter;
mod vesting;
mod xcm_rate_limiter;

#[macro_export]
macro_rules! assert_balance {
( $who:expr, $asset:expr, $amount:expr) => {{
assert_eq!(Currencies::free_balance($asset, &$who), $amount);
}};
}

#[macro_export]
macro_rules! assert_reserved_balance {
( $who:expr, $asset:expr, $amount:expr) => {{
assert_eq!(Currencies::reserved_balance($asset, &$who), $amount);
}};
}
mod xyk;
14 changes: 0 additions & 14 deletions integration-tests/src/polkadot_test_net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -474,17 +474,3 @@ pub fn init_omnipool() {
Permill::from_percent(10)
));
}

#[macro_export]
macro_rules! assert_balance {
( $who:expr, $asset:expr, $amount:expr) => {{
assert_eq!(Currencies::free_balance($asset, &$who), $amount);
}};
}

#[macro_export]
macro_rules! assert_reserved_balance {
( $who:expr, $asset:expr, $amount:expr) => {{
assert_eq!(Currencies::reserved_balance($asset, &$who), $amount);
}};
}
Loading
Loading