Skip to content

Commit 838d67f

Browse files
maltekliemannsea212mergify[bot]Your Name
authored
Merge release v0.5.3 (#1349)
* Revert "New Asset System (#1295)" (#1338) * Revert "New Asset System (#1295)" This reverts commit a956877. * Fix formatting * Update copyright * Remove pallet-assets dependency * Fix fuzz tests * Merge `main` into `develop` (#1345) * Update dependencies to Polkadot v1.1.0 (#1331) * Update dependencies (#1319) * Update dependencies to polkadot-v1.1.0 * Format code * Remove duplicate dependencies * Update zrml-asset-router (#1321) * Update zrml-primitives * Partially update asset-router * Finalize logic adjustments in asset-router * Make asset-router tests compilable * Correct Inspect routing for market assets in Currencies * Directly invoke Inspect API for Currencies * Add tests for remaining Unbalances functions * Update remaining Zeitgeist pallets (#1322) * Update zrml-asset-router (#1321) * Upgrade zrml-market-commons * Upgrade zrml-authorized && use MockBlock instead of MockBlockU32 * Upgrade zrml-court * Upgrade zrml-global-disputes * Upgrade liquidity mining * Upgrade zrml-rikiddo * Upgrade zrml-simple-disputes * Upgrade zrml-styx * Upgrade zrml-orderbook * Upgrade zrml-parimutuel * Upgrade zrml-swaps * Upgrade zrml-prediction-markets * Upgrade zrml-neo-swaps * Upgrade zrml-hybrid-router * Update license headers * Update runtime (#1323) * Update weight files & Runtime enum * Use workspace metadata * Always use serde serialization for asset types * Make battery station standalone runtime compilable * Make benchmark and try-runtime feature compilable * Make BS build with all features * Make parachain tests compile * Partially fix xcm tests * Use safe xcm version 2 * Update Zeitgeist runtime (except xcm tests) * Format code * Remove deprecated comment * Integrate new xcm-emulator (#1324) * Integrate new xcm-emulator environment * Utilize new xcm-emulator interfaces * Spawn relay-para network using patched xcm-emulator * Use proper collator genesis config * Fix Rococo tests * Finalize Battery Station XCM tests * Finalize Zeitgeist XCM tests * Update client (#1327) * Fix rpc and work on client update * Finalize standalone client * Update parachain client * Use same try-runtime subcommand in every case * Update node/src/cli.rs Co-authored-by: Malte Kliemann <[email protected]> * Update try-runtime* Makefile targets --------- Co-authored-by: Malte Kliemann <[email protected]> * Make CI succeed and add migrations (#1329) * Fix rpc and work on client update * Finalize standalone client * Update parachain client * Use same try-runtime subcommand in every case * Satisfy Clippy * Fix benchmarks * Add migrations * Satisfy Clippy * Update moonkit depedencies * Free disk space more aggressively --------- Co-authored-by: Malte Kliemann <[email protected]> * Update spec version, try-runtime Makefile * Fix copyright notices * Fix broken chain state (#1336) * Add `StorageVersion` fix and contrats fix migrations * Don't set pallet-balances' storage version * Remove migrations from pallet-contracts config * Clear storage tries of contracts * Fix migration and info logs in try-runtime * Fix licenses and comments * Fix formatting --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --------- Co-authored-by: Harald Heckmann <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Merge * Fix benchmark * Fix compiler error * Fix tests and imports * Fix imports (again...) * Fix orderbook benchmarks * Fix fuzz tests * Fix formatting * Fix orderbook fuzz --------- Co-authored-by: Harald Heckmann <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Update versions to v0.5.3 * Fix Makefile * Change endpoint of integration tests * Fix copyright notices * Run benchmarks --------- Co-authored-by: Harald Heckmann <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Your Name <[email protected]>
1 parent 91627e3 commit 838d67f

File tree

219 files changed

+6463
-14143
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

219 files changed

+6463
-14143
lines changed

CODEOWNERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
# Ignore everything but mod.rs in /runtime/common/src/weights/
99
/runtime/common/src/weights/*
1010
/runtime/common/src/weights/mod.rs @sea212
11-
/zrml/asset-router/ @sea212
1211
/zrml/authorized/ @Chralt98
1312
/zrml/court/ @Chralt98
1413
/zrml/global-disputes/ @Chralt98

Cargo.lock

Lines changed: 1 addition & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ default-members = [
1414
"runtime/battery-station",
1515
"runtime/zeitgeist",
1616
"zrml/authorized",
17-
"zrml/asset-router",
1817
"zrml/court",
1918
"zrml/hybrid-router",
2019
"zrml/global-disputes",
@@ -40,7 +39,6 @@ members = [
4039
"runtime/battery-station",
4140
"runtime/zeitgeist",
4241
"zrml/authorized",
43-
"zrml/asset-router",
4442
"zrml/court",
4543
"zrml/hybrid-router",
4644
"zrml/global-disputes",
@@ -254,7 +252,6 @@ zrml-swaps-rpc = { path = "zrml/swaps/rpc" }
254252
common-runtime = { path = "runtime/common", default-features = false }
255253
zeitgeist-macros = { path = "macros", default-features = false }
256254
zeitgeist-primitives = { path = "primitives", default-features = false }
257-
zrml-asset-router = { path = "zrml/asset-router", default-features = false }
258255
zrml-authorized = { path = "zrml/authorized", default-features = false }
259256
zrml-court = { path = "zrml/court", default-features = false }
260257
zrml-global-disputes = { path = "zrml/global-disputes", default-features = false }
@@ -287,7 +284,6 @@ arbitrary = { version = "1.3.2", default-features = false }
287284
arrayvec = { version = "0.7.4", default-features = false }
288285
cfg-if = { version = "1.0.0" }
289286
fixed = { version = "=1.15.0", default-features = false, features = ["num-traits"] }
290-
impl-trait-for-tuples = { version = "0.2.2" }
291287
# Hashbrown works in no_std by default and default features are used in Rikiddo
292288
hashbrown = { version = "0.14.3", default-features = true }
293289
hex-literal = { version = "0.4.1", default-features = false }
@@ -354,14 +350,11 @@ opt-level = 3
354350
# Zeitgeist runtime requires unwinding.
355351
panic = "unwind"
356352

357-
[patch."https://github.com/paritytech/polkadot-sdk"]
358-
# pallet-asset adjustments (managed asset destruction)
359-
# Commits:
360-
# - cb803be8cdc52d020890308a2076d752a8c4ce5c
361-
pallet-assets = { git = "https://github.com/zeitgeistpm/polkadot-sdk", branch = "zeitgeist-polkadot-v1.1.0" }
353+
362354
# xcm-emulator incompatible block number type fixed
363355
# Commits:
364356
# -
357+
[patch."https://github.com/paritytech/polkadot-sdk"]
365358
xcm-emulator = { git = "https://github.com/zeitgeistpm/polkadot-sdk", branch = "release-polkadot-v1.1.0-xcm-emulator-type-fix" }
366359

367360
[patch."https://github.com/galacticcouncil/HydraDX-node"]

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ try-runtime-upgrade-zeitgeist:
3636
@$(MAKE) TRYRUNTIME_URL="wss://zeitgeist-rpc.dwellir.com:443" \
3737
RUNTIME_PATH="./target/release/wbuild/zeitgeist-runtime/zeitgeist_runtime.compact.compressed.wasm" \
3838
-- \
39-
-execute--try-runtime
39+
--execute-try-runtime
4040

4141
build:
4242
SKIP_WASM_BUILD= cargo build

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ decentralized court.
1818

1919
## Modules
2020

21-
- [asset-router](./zrml/asset-router) - Routes all asset classes to the
22-
respective pallets and provides a garbage collection for destructible assets.
2321
- [authorized](./zrml/authorized) - Offers authorized resolution of disputes.
2422
- [court](./zrml/court) - An implementation of a court mechanism used to resolve
2523
disputes in a decentralized fashion.

docs/changelog_for_devs.md

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -128,28 +128,22 @@ if ztg_supply / campaign_asset_supply >= 100 {
128128
[#1197]: https://github.com/zeitgeistpm/zeitgeist/pull/1197
129129
[#1178]: https://github.com/zeitgeistpm/zeitgeist/pull/1178
130130

131-
### Changed
131+
### Changes
132132

133-
- ⚠️ Move the `zeitgeist_primitives::Pool` struct to `zrml_swaps::types::Pool`
134-
and change the following fields ([#1197]):
135-
- Remove `market_id`
136-
- Make `swap_fee` non-optional
137-
- Remove `total_subsidy`
138-
- Make `total_weight` non-optional
139-
- Make `weights` non-optional
140-
- ⚠️ Change the type of `liquidity_shares_manager` in
141-
`zrml_neo_swaps::types::Pool` from `zrml_neo_swaps::types::SoloLp` to
142-
`zrml_neo_swaps::types::LiquidityTree`. Details on the liquidity tree can be
143-
found in the `README.md` of zrml-neo-swaps and the documentation of the
144-
`LiquidityTree` object ([#1179]).
133+
- ⚠️ Move the `zeitgeist_primitives::Pool` struct to `zrml_swaps::types::Pool` and change the following fields ([#1197]):
134+
- Remove `market_id`
135+
- Make `swap_fee` non-optional
136+
- Remove `total_subsidy`
137+
- Make `total_weight` non-optional
138+
- Make `weights` non-optional
139+
- ⚠️ Change the type of `liquidity_shares_manager` in `zrml_neo_swaps::types::Pool` from `zrml_neo_swaps::types::SoloLp` to `zrml_neo_swaps::types::LiquidityTree`. Details on the liquidity tree can be found in the `README.md` of zrml-neo-swaps and the documentation of the `LiquidityTree` object ([#1179]).
145140

146141
### Migrations
147142

148143
- Closed all CPMM pools. Withdrawals are still allowed. Creating new pools will
149144
be impossible until further updates are deployed. ([#1197])
150145
- Remove all Rikiddo storage elements. ([#1197])
151-
- Migrate neo-swaps `Pools` storage. The market creator's liquidity position is
152-
translated into a position in the liquidity tree of the same value ([#1178]).
146+
- Migrate neo-swaps `Pools` storage. The market creator's liquidity position is translated into a position in the liquidity tree of the same value ([#1178]).
153147

154148
### Removed
155149

integration-tests/configs/zeitgeist.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# endpoint: wss://main.rpc.zeitgeist.pm/ws
2-
endpoint: wss://zeitgeist-rpc.dwellir.com
3-
# endpoint: wss://zeitgeist.api.onfinality.io/public-ws
1+
endpoint: wss://main.rpc.zeitgeist.pm/ws
42
mock-signature-host: true
53
db: ./tmp/ztg_db_mba.sqlite
64
# wasm-override: zeitgeist-runtime.compact.compressed.wasm
@@ -26,4 +24,4 @@ import-storage:
2624
Members: [5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY]
2725
AuthorFilter:
2826
EligibleRatio: 100
29-
EligibleCount: 100
27+
EligibleCount: 100

macros/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ macro_rules! create_b_tree_map {
5050
#[macro_export]
5151
macro_rules! unreachable_non_terminating {
5252
($condition: expr, $message: literal, $($message_args: tt)*) => {
53-
let message = alloc::format!($message, $($message_args)*);
53+
let message = format!($message, $($message_args)*);
5454

5555
#[cfg(test)]
5656
assert!($condition, "{}", message);
@@ -60,7 +60,7 @@ macro_rules! unreachable_non_terminating {
6060
}
6161
};
6262
($condition: expr, $log_target: ident, $message: literal, $($message_args: tt)*) => {
63-
let message = alloc::format!($message, $($message_args)*);
63+
let message = format!($message, $($message_args)*);
6464

6565
#[cfg(test)]
6666
assert!($condition, "{}", message);
@@ -70,7 +70,7 @@ macro_rules! unreachable_non_terminating {
7070
}
7171
};
7272
($condition: expr, $extra_code: expr, $message: literal, $($message_args: tt)*) => {
73-
let message = alloc::format!($message, $($message_args)*);
73+
let message = format!($message, $($message_args)*);
7474

7575
#[cfg(test)]
7676
assert!($condition, "{}", message);
@@ -81,7 +81,7 @@ macro_rules! unreachable_non_terminating {
8181
}
8282
};
8383
($condition: expr, $log_target: ident, $extra_code: expr, $message: literal, $($message_args: tt)*) => {
84-
let message = alloc::format!($message, $($message_args)*);
84+
let message = format!($message, $($message_args)*);
8585

8686
#[cfg(test)]
8787
assert!($condition, "{}", message);

primitives/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ arbitrary = { workspace = true, optional = true }
33
fixed = { workspace = true }
44
frame-support = { workspace = true }
55
frame-system = { workspace = true }
6-
impl-trait-for-tuples = { workspace = true }
76
num-traits = { workspace = true }
87
orml-currencies = { workspace = true }
98
orml-tokens = { workspace = true }

0 commit comments

Comments
 (0)