Skip to content

v0.5.0

Compare
Choose a tag to compare
@sea212 sea212 released this 18 Jan 17:10
· 44 commits to main since this release

Release Notes

This is a runtime release.

Highlights

  • AMM 2.0
  • Court and Global Disputes on mainnet
  • Trusted Markets
  • Orderbook improvements

AMM 2.0
Zeitgeist's unique automated market maker is complete in it's first version and ready for production. It provides all the features of the previous market maker (CPMM), but in addition to that is much more liquidity efficient, optimized, modular, extensible and future-proof with regards to Combinatorial Markets and Futarchy.

Court and Global Disputes on mainnet
After extensive testing, Court and Global Disputes are now production ready and are enabled on mainnet.

Trusted Markets
Trusted Markets offer the market creator to create a fast-paced market, that immediately resolves after the oracle reported the outcome.

Orderbook improvements
The Orderbook considers market creator fees now. In addition to that, code quality and stability as well as UX have been improved.

Besides the above, multiple calls into prediction market related pallets have been enabled for smart contracts on Battery Station. A bug that lead to incorrect XCM fee amounts and a bug that potentially could lead to a chain stall in exceptional cases were fixed. Admin functions (previously only callable by governance) have been disabled on mainnet. Many code and UX improvements lead to a more robust and clean design as well as a better experience in regards to interacting with the pallets.

Battery Station Runtime

spec_version: 53
transaction_version: 27

🏋️ Runtime size:             1.452 MB (1,522,693 bytes) 
🗜 Compressed:               Yes, 75.39%
✨ Reserved meta:            OK - [6D, 65, 74, 61]
🎁 Metadata version:         V14
🔥 Core version:             zeitgeist-53 (zeitgeist-1.tx27.au1)
🗳️ system.setCode hash:      0xf0c6d60dd01a61718c1f8d2315b8d65544a69b4eafcef4e24708c30e2685ab8e
🗳️ authorizeUpgrade hash:    0xa13b0dd696ed3199f4f78100600be09e57e1f5ecd92ab1db2c5513773ed36eb0
🗳️ Blake2-256 hash:          0x18fb9003bec4717bc19c7c97ce2613836b3e899c76c78aac580be57c7e384eff
📦 IPFS:                     https://www.ipfs.io/ipfs/QmfA6vd3jyHT96NWZ1ohkqqmegbZyaDAbdeXtwA4UcR6FV

Srtool output (based on srtool-cli): SRTOOL_TAG="1.66.1" srtool build --build-opts "\-\-features=parachain" --package battery-station-runtime --profile production --root --runtime-dir ./runtime/battery-station

Srtool

✨ Your Substrate WASM Runtime is ready! ✨

Summary generated with srtool v0.9.25 using the docker image paritytech/srtool:1.66.1: Package : battery-station-runtime v0.5.0 GIT commit : GIT tag : GIT branch : Rustc : rustc 1.66.1 (90743e729 2023-01-10) Time : 2024-01-18T15:39:31Z
== Compact Version : zeitgeist-53 (zeitgeist-1.tx27.au1) Metadata : V14 Size : 5.90 MB (6187781 bytes) setCode : 0xbbaeeb320d0a598e2b1393e6105ce467a2b960f8ec25b711ec66e406cd9a23b2 authorizeUpgrade : 0xb1974f54eb96a204e5faab2ed14ed74b0f54a02b7c8319dd11680b21be8fb207 IPFS : QmWdukMS2bbhNWZF9SDqnNq7w6ojq4MNMWcoVhPtFgb45h BLAKE2_256 : 0x93cdc145be3276a32cabfbeb46bf62e826e9955a549ff1108c0cae8430aa2209 Wasm : ./runtime/battery-station/target/srtool/production/wbuild/battery-station-runtime/battery_station_runtime.compact.wasm
== Compressed Version : zeitgeist-53 (zeitgeist-1.tx27.au1) Metadata : V14 Size : 1.45 MB (1522693 bytes) Compression : 75.4% setCode : 0x3115b53a8c936821b8f720cf29fef4453854376998444c59ca221d4497e5a282 authorizeUpgrade : 0x4bddd70cf591b1565c2ea78c4dc42eb172ac47c6c276d9313a7c7214b6228920 IPFS : QmfA6vd3jyHT96NWZ1ohkqqmegbZyaDAbdeXtwA4UcR6FV BLAKE2_256 : 0x18fb9003bec4717bc19c7c97ce2613836b3e899c76c78aac580be57c7e384eff Wasm : ./runtime/battery-station/target/srtool/production/wbuild/battery-station-runtime/battery_station_runtime.compact.compressed.wasm

Zeitgeist Runtime

spec_version: 53
transaction_version: 27

🏋️ Runtime size:             1.443 MB (1,513,213 bytes) 
🗜 Compressed:               Yes, 75.41%
✨ Reserved meta:            OK - [6D, 65, 74, 61]
🎁 Metadata version:         V14
🔥 Core version:             zeitgeist-53 (zeitgeist-1.tx27.au1)
🗳️ system.setCode hash:      0x5ec477d6327174d9d5cc3f3e873b6a06c9fed0ea44b0500382fd2e6e4320f5b7
🗳️ authorizeUpgrade hash:    0x6dc027fd64e0163b393416dbddff6f56542f8b1936874dc33cf840d5446da586
🗳️ Blake2-256 hash:          0xea7171a63655911fda3b499c7a0706d860aaac0c4f57d502deb489784d3c9d9c
📦 IPFS:                     https://www.ipfs.io/ipfs/QmZgYpBeAMt6DJoRtyauXvttpsPJjtXb5NMgLiX5Tg2rVc

Srtool output (based on srtool-cli): SRTOOL_TAG="1.66.1" srtool build --build-opts "\-\-features=parachain" --package zeitgeist-runtime --profile production --root --runtime-dir ./runtime/zeitgeist

Srtool

✨ Your Substrate WASM Runtime is ready! ✨

Summary generated with srtool v0.9.25 using the docker image paritytech/srtool:1.66.1: Package : zeitgeist-runtime v0.5.0 GIT commit : GIT tag : GIT branch : Rustc : rustc 1.66.1 (90743e729 2023-01-10) Time : 2024-01-18T15:45:39Z
== Compact Version : zeitgeist-53 (zeitgeist-1.tx27.au1) Metadata : V14 Size : 5.87 MB (6152527 bytes) setCode : 0x2b8642e1cbaaea5108791a0a21706ec5c690a62f1bf182342c8d35ba29e763b1 authorizeUpgrade : 0x72a88aeeaf1cf912064cde97b97c2bee57af357efafb2519972a953c3b81d72a IPFS : QmbpkiCpFA8AxMWcZ9FXEPcbgG1hHf4QNKhFCEbaX5Y3QA BLAKE2_256 : 0x383ba946c324c5d7aee1f4521421c16fb0e8d9dad0476597537e4858305ca56c Wasm : ./runtime/zeitgeist/target/srtool/production/wbuild/zeitgeist-runtime/zeitgeist_runtime.compact.wasm
== Compressed Version : zeitgeist-53 (zeitgeist-1.tx27.au1) Metadata : V14 Size : 1.44 MB (1513213 bytes) Compression : 75.41% setCode : 0xb25c58ba7730c0f1c15672d4556353894dacb48698da6f6d903bcf7cf9b68d7d authorizeUpgrade : 0x57927132689fb2e60018c82809854f812e5d42d9c507d6ac85493f448f828798 IPFS : QmZgYpBeAMt6DJoRtyauXvttpsPJjtXb5NMgLiX5Tg2rVc BLAKE2_256 : 0xea7171a63655911fda3b499c7a0706d860aaac0c4f57d502deb489784d3c9d9c Wasm : ./runtime/zeitgeist/target/srtool/production/wbuild/zeitgeist-runtime/zeitgeist_runtime.compact.compressed.wasm

Changes

  • Implement force_pool_exit and disable other zrml-swaps functions (#1235)
  • Set inflation to more than zero for a full benchmark of handle_inflation (#1234)
  • Reduce benchmark runs of Zeitgeist pallets (#1233)
  • Update weights (#1232)
  • Update style guide to streamline reviews (#1228)
  • Update versions (#1227)
  • Remove court and global disputes from call filter for the main-net (#1226)
  • Improve XCM fee handling (#1225)
  • Merge release v0.4.3 (#1211)
  • Add env_logger and add force-debug feature (#1205)
  • Sunset old AMMs and their pools (#1197)
  • Inflate defensively (#1195)
  • Ensure MinBetSize after fee (#1193)
  • Fix failing court benchmark (#1191)
  • Filter admin functions for main-net (#1190)
  • Add debug assertions for slashes and reserves (#1188)
  • Add some verify checks to court (#1187)
  • Bypass battery stations contracts call filter for court, parimutuel, order book markets (#1185)
  • Implement trusted market close (#1184)
  • Maintain order book (#1183)
  • Modify court events for indexer (#1182)
  • Remove migrations (#1180)
  • Implement Liquidity Tree (#1178)
  • New asset system - Separate asset types and add pallet-assets instances to runtime (#1177)
  • Implement AMM 2.0 (#1173)
  • Reduce market_status_manager aka on_initialize iterations (#1160)
  • Replace fixed math operations with traited versions (#1149)