Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
99e867b
Add basic implementations for global withdraw limit
F3Joule Jan 15, 2026
b2f0070
Add filter for xcm reserve transfers
F3Joule Jan 15, 2026
9e59951
Add other xcm filters for withdraw limits to work
F3Joule Jan 15, 2026
8fa750a
Add basic unit tests for global withdraw limit
F3Joule Jan 16, 2026
d9e6e28
Fix mocks
F3Joule Jan 16, 2026
9d8d162
Add integration tests for global withdraw limit
F3Joule Jan 16, 2026
bdd2422
Add egress accounts to circuit breaker
F3Joule Jan 21, 2026
1d959e8
Add egress accounts transfers tracking
F3Joule Jan 23, 2026
6db9186
Revert redundant changes
F3Joule Jan 27, 2026
3fbb94a
Fix config params and mocks
F3Joule Jan 27, 2026
72e987e
Plance hooks in correct places
F3Joule Jan 27, 2026
182fe9d
Merge remote-tracking branch 'origin/master' into feat/global-withdra…
F3Joule Jan 27, 2026
221fbda
Fix errors after merge
F3Joule Jan 27, 2026
ab88a16
Remove redundant call filter
F3Joule Jan 27, 2026
6168b7b
Fix mocks
F3Joule Jan 29, 2026
9ed8fbd
Add ignore fuse for fees
F3Joule Jan 29, 2026
8397a04
Implement withdraw fuse loosening for OnChargeTransaction
F3Joule Jan 29, 2026
57c02bf
Make tests work again
F3Joule Jan 29, 2026
62aee50
Add benchmarks
F3Joule Feb 3, 2026
c5a3861
Merge branch 'master' into feat/global-withdraw-limit
F3Joule Feb 3, 2026
c38ddcc
Refactor egress accounts
F3Joule Feb 3, 2026
92fd63d
Fix code formatting
F3Joule Feb 4, 2026
f619a8c
Implement global asset category for withdrawals accounting
F3Joule Feb 5, 2026
406f71f
Merge branch 'master' into feat/global-withdraw-limit
F3Joule Feb 5, 2026
d6997d7
Fix tests
F3Joule Feb 5, 2026
2f2c74c
Fix code formatting
F3Joule Feb 5, 2026
16596d7
Reorg tests
F3Joule Feb 5, 2026
d554a76
Fix logic and tests
F3Joule Feb 5, 2026
ed23d9b
Complete benchmarks
F3Joule Feb 5, 2026
bc89c4a
Merge branch 'master' into feat/global-withdraw-limit
mrq1911 Feb 6, 2026
cc201a4
Merge remote-tracking branch 'origin/master' into feat/global-withdra…
F3Joule Feb 6, 2026
3f98678
Clean deps
F3Joule Feb 6, 2026
5dceac7
Fix benchmarks
F3Joule Feb 6, 2026
efec2df
Merge branch 'master' into feat/global-withdraw-limit
F3Joule Feb 10, 2026
eb16a87
Fix benchmarks
F3Joule Feb 11, 2026
46bac1e
Fix clippy error
F3Joule Feb 11, 2026
637b0a1
Refactor egress handler
F3Joule Feb 11, 2026
9c06fb9
Fix mocks
F3Joule Feb 11, 2026
85cb9ef
Update Cargo.lock
F3Joule Feb 11, 2026
594717b
Implement deposit accounting
F3Joule Feb 11, 2026
dde140e
Ignore withdraw limit for evm fees
F3Joule Feb 11, 2026
7df938c
Fix code formatting and warnings
F3Joule Feb 11, 2026
244cfbb
Fix tests and logic
F3Joule Feb 16, 2026
3ae4c64
Merge branch 'master' into feat/global-withdraw-limit
F3Joule Feb 16, 2026
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
3 changes: 3 additions & 0 deletions Cargo.lock

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

31 changes: 29 additions & 2 deletions integration-tests/src/erc20.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::evm::MockHandle;
use crate::evm::{init_omnipool_with_oracle_for_block_10, MockHandle};
use crate::polkadot_test_net::*;
use crate::utils::contracts::*;
use ethabi::ethereum_types::BigEndianHash;
Expand All @@ -15,10 +15,10 @@ use sp_runtime::traits::Convert;
use hydradx_runtime::evm::evm_error_decoder::EvmErrorDecoder;
use hydradx_runtime::evm::precompiles::HydraDXPrecompiles;
use hydradx_runtime::evm::{Erc20Currency, EvmNonceProvider as AccountNonce, Executor, Function};
use hydradx_runtime::AssetRegistry;
use hydradx_runtime::RuntimeCall;
use hydradx_runtime::RuntimeOrigin;
use hydradx_runtime::{AssetLocation, Currencies};
use hydradx_runtime::{AssetRegistry, DOT_ASSET_LOCATION};
use hydradx_runtime::{EVMAccounts, Runtime};
use hydradx_traits::evm::CallContext;
use hydradx_traits::evm::ERC20;
Expand Down Expand Up @@ -440,9 +440,22 @@ fn deposit_fails_when_unsufficient_funds_in_hold() {
fn withdraw() {
TestNet::reset();
Hydra::execute_with(|| {
// Arrange
let contract = deploy_token_contract();
let asset = bind_erc20(contract);

init_omnipool_with_oracle_for_block_10();
assert_ok!(AssetRegistry::set_location(DOT, DOT_ASSET_LOCATION));
assert_ok!(hydradx_runtime::XYK::create_pool(
RuntimeOrigin::signed(ALICE.into()),
asset,
100 * UNITS,
DOT,
100 * UNITS,
));
hydradx_run_to_next_block();

// Act
assert_ok!(Currencies::withdraw(
asset,
&ALICE.into(),
Expand All @@ -456,8 +469,22 @@ fn withdraw() {
fn deposit() {
TestNet::reset();
Hydra::execute_with(|| {
// Arrange
let contract = deploy_token_contract();
let asset = bind_erc20(contract);

init_omnipool_with_oracle_for_block_10();
assert_ok!(AssetRegistry::set_location(DOT, DOT_ASSET_LOCATION));
assert_ok!(hydradx_runtime::XYK::create_pool(
RuntimeOrigin::signed(ALICE.into()),
asset,
100 * UNITS,
DOT,
100 * UNITS,
));
hydradx_run_to_next_block();

// Act
assert_ok!(Currencies::withdraw(
asset,
&ALICE.into(),
Expand Down
Loading
Loading