Skip to content
Merged
Show file tree
Hide file tree
Changes from 75 commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
3569e58
add support for deposit limits
enthusiastmartin Jun 23, 2025
23e4771
add deposit release handler
enthusiastmartin Jun 23, 2025
e83fc22
add core logic for locking and unlcocking new mintings
dmoka Jun 25, 2025
a897e37
renaming
dmoka Jun 25, 2025
1cc7353
renaming
dmoka Jun 25, 2025
68da127
delete done todo comment
dmoka Jun 25, 2025
82aa8d9
add asset lockdown removal logic
dmoka Jun 25, 2025
9c3e490
asset extrinsic for set lockdown for asset
dmoka Jun 25, 2025
c6c1fb8
add doc
dmoka Jun 25, 2025
23ce44d
wip - integrate depost limiter into our runtime
dmoka Jun 26, 2025
4127a50
add save deposit and deposit limiter integration to the runtime
dmoka Jul 1, 2025
33ffbc7
remove unnecessary assertion
dmoka Jul 1, 2025
e8e07e5
add events for asset lockdown
dmoka Jul 1, 2025
489a99b
adjust comments
dmoka Jul 1, 2025
1c376d2
add tests for edge cases
dmoka Jul 1, 2025
c4abe8f
Merge branch 'master' into feat/deposit-lockdown
enthusiastmartin Jul 2, 2025
3530cb7
refactor to simplify the code
enthusiastmartin Jul 2, 2025
dc26772
refactor to simplify the code
enthusiastmartin Jul 2, 2025
cacff7e
add benchmarking for deposit limiter
dmoka Jul 2, 2025
c9f4cc7
add doc and event for save deposit
dmoka Jul 3, 2025
17aff4a
use one day for deposit limit period
dmoka Jul 3, 2025
27d5709
refactor fuse
enthusiastmartin Jul 7, 2025
7641fdd
add can mint check to exchange asset
dmoka Jul 8, 2025
a108fb7
add back todos
dmoka Jul 8, 2025
32d561f
add additinal integration tests
dmoka Jul 8, 2025
6e8acda
add failing test to check the behaviour
dmoka Jul 8, 2025
d8c1579
Merge remote-tracking branch 'origin/master' into feat/deposit-lockdown
dmoka Jul 8, 2025
7d4b596
bump versions
dmoka Jul 8, 2025
8645dba
add test for bug when lrna is locked
dmoka Jul 9, 2025
564b2fe
formatting
dmoka Jul 9, 2025
ba35e12
add doc for deposit limiter
dmoka Jul 9, 2025
5a53724
Merge remote-tracking branch 'origin/master' into feat/deposit-lockdown
dmoka Jul 9, 2025
1745c9c
bump versions
dmoka Jul 9, 2025
868b1ba
fix bug: we should incorporate the reserved balance of LRNA as LRNA c…
dmoka Jul 9, 2025
8dbe7ff
add explanatory comment
dmoka Jul 9, 2025
0d211f9
add test for remove_liquidity_cannot_burn_more_lrna_when_asset_locked…
dmoka Jul 9, 2025
c12889a
bump versions
dmoka Jul 9, 2025
7d74432
formatting
dmoka Jul 9, 2025
1b61ecb
fix building error
dmoka Jul 9, 2025
d4df570
remove failing tests as that is a discussed expected behaviour
dmoka Jul 9, 2025
c9f1620
formatting
dmoka Jul 9, 2025
17e4d5d
formatting
dmoka Jul 9, 2025
c39b6f9
refactoring for runtime benchmark helper
dmoka Jul 9, 2025
b1e45db
formatting
dmoka Jul 9, 2025
b94ba4c
use sp std lib
dmoka Jul 9, 2025
6f051ef
make clippy happy
dmoka Jul 9, 2025
08b5025
fix compilation error
dmoka Jul 9, 2025
8dbfbc3
formatting
dmoka Jul 9, 2025
28104fc
add missing doc
dmoka Jul 10, 2025
d1bec3d
Update pallets weights [ignore benchmarks]
dmoka Jul 10, 2025
134cf1c
make asset exchange benc worst case
dmoka Jul 10, 2025
d72e7cf
add flexible assertion for trapped acala so it wont break if we reben…
dmoka Jul 11, 2025
ec7d936
Update pallets weights [ignore benchmarks]
dmoka Jul 13, 2025
aa700f0
create dedicated total issuance struct to follow SRP
dmoka Jul 15, 2025
387b64c
rename to release deposit
dmoka Jul 15, 2025
299117b
remove todos
dmoka Jul 15, 2025
3b4a92b
merge master to feat/deposit-lockdown
dmoka Jul 15, 2025
d41a44d
upgrade lock
dmoka Jul 15, 2025
d769ae8
bump version
dmoka Jul 15, 2025
593f43b
add back missing weights
dmoka Jul 15, 2025
c772433
Update pallets weights [ignore benchmarks]
dmoka Jul 16, 2025
ab73be8
include circuit breaker trigger in add liquidty functions
dmoka Jul 18, 2025
ac2ebd1
add deposit limiter test for stableswap
dmoka Jul 18, 2025
f26a419
bump versions
dmoka Jul 18, 2025
f8523ec
fix failing tests
dmoka Jul 18, 2025
cd44460
fix failing test
dmoka Jul 18, 2025
7106992
release deposit all amount instead of specified one so we save one qu…
dmoka Jul 18, 2025
821d687
make clippy happy
dmoka Jul 21, 2025
05f8f15
make clippy happy
dmoka Jul 21, 2025
9c9474f
make clippy happy
dmoka Jul 21, 2025
14b593e
bump version
dmoka Jul 21, 2025
e70bffb
Update pallets weights [ignore benchmarks]
dmoka Jul 21, 2025
b41395f
revert back weights
dmoka Jul 21, 2025
09dd2f6
fix tests
dmoka Jul 21, 2025
8e72528
Merge remote-tracking branch 'origin/master' into feat/deposit-lockdown
dmoka Jul 22, 2025
0bba256
Merge remote-tracking branch 'origin/master' into feat/deposit-lockdown
dmoka Jul 22, 2025
0d6f8bc
Merge remote-tracking branch 'origin/master' into feat/deposit-lockdown
dmoka Jul 23, 2025
25d6ad4
upgrade lock file
dmoka Jul 23, 2025
5701e45
bump runtime version
dmoka Jul 23, 2025
ac2ceac
remove redundant test
dmoka Jul 24, 2025
d64999b
use named constant in tests
dmoka Jul 24, 2025
9933eaa
update bench of LM pallets relating to deposit limiter
dmoka Jul 24, 2025
ae68263
formatting
dmoka Jul 24, 2025
332e964
Update pallets weights [ignore benchmarks]
dmoka Jul 24, 2025
2fb99a6
revert pallet benches which are not needed
dmoka Jul 25, 2025
7b26f90
Merge remote-tracking branch 'origin/master' into feat/deposit-lockdown
dmoka Jul 25, 2025
c4f7b57
bump version
dmoka Jul 25, 2025
e07630e
bump version
dmoka Jul 25, 2025
b38d704
add missing tests and clean up
dmoka Jul 25, 2025
1b05fd9
make bench test worst case
dmoka Jul 25, 2025
0d2dd52
fix typos
dmoka Jul 25, 2025
7f6ca88
fix doc
dmoka Jul 25, 2025
8b21bd7
formatting
dmoka Jul 25, 2025
ff908cf
make release deposit callable also by authorit origin
dmoka Jul 25, 2025
e61cad4
formatting
dmoka Jul 25, 2025
a2b8335
formatting
dmoka Jul 25, 2025
053206b
Update pallets weights [ignore benchmarks]
dmoka Jul 25, 2025
dc8dbb1
make router sell to wrost case
dmoka Jul 29, 2025
7af0567
Update pallets weights [ignore benchmarks]
dmoka Jul 29, 2025
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
18 changes: 10 additions & 8 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.45.4"
version = "1.46.0"
description = "Integration tests"
authors = ["GalacticCouncil"]
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/src/circuit_breaker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ fn remove_liquidity_to_omnipool_should_not_fail_when_liquidity_limit_per_block_e
});
}

fn init_omnipool() {
pub fn init_omnipool() {
assert_ok!(hydradx_runtime::Omnipool::add_token(
hydradx_runtime::RuntimeOrigin::root(),
HDX,
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/src/cross_chain_transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ use sp_std::sync::Arc;
use xcm_emulator::TestExt;

// Determine the hash for assets expected to be have been trapped.
fn determine_hash(origin: &MultiLocation, assets: Vec<Asset>) -> H256 {
pub fn determine_hash(origin: &MultiLocation, assets: Vec<Asset>) -> H256 {
let versioned = VersionedAssets::from(Assets::from(assets));
BlakeTwo256::hash_of(&(origin, &versioned))
}
Expand Down
Loading
Loading