Release Notes
Upgrade Priority: Medium (timely upgrade recommended)
Highlights:
- Implement Automated Market Maker (AMM) 2.0 Lite
- Implement Orderbook Lite
- Implement Trusted Markets
- Update dependencies to polkadot-v0.9.38
Implement AMM 2.0 Lite
While the current AMM has proven to be highly stable and functional, we’ve also noticed that it is inefficient and incapable of serving the complete spectrum of prediction market applications.
With this in mind, AMM 2.0 “lite” has been designed as a first step in improving the algorithmic trading mechanism to be more efficient with liquidity, extendable and capable to serve advanced prediction markets such as combinatorial markets.
AMM 2.0 Lite provides a partial implementation of an internally researched pool-based variant of the LMSR AMM, which enables the utilization of LMSR’s elegant and efficient algorithm for binary (two category) markets.
Implement Orderbook Lite
Order books are a well known structure to balance supply and demand. This release allows the creation of markets which use an orderbook as the method of exchanging outcome tokens.
Implement Trusted Markets
It is sometimes necessary to quickly host and resolve a market. In order to serve this purpose; Trusted Markets grant the oracle the privilege to be the only entity to report the final outcome. In addition to this, the market immediately resolves after the report.
Update dependencies to polkadot-v0.9.38
The most prominent features of polkadot-v0.9.38 are the transition to a more precise weight system called "WeightsV2", and the next iteration of the Cross-Chain Message (XCM) format "XCMv3".
WeightsV2 better estimates the resources required on the blockchain, which is used to calculate execution fees amongst other benefits.
XCMv3 also provides a multitude of new and exciting features like support for external ecosystems (like Ethereum), programmability and remote asset locking.
Battery Station Runtime
spec_version
: 50
transaction_version
: 25
🏋️ Runtime size: 1.479 MB (1,550,591 bytes)
🗜 Compressed: Yes, 75.16%
✨ Reserved meta: OK - [6D, 65, 74, 61]
🎁 Metadata version: V14
🔥 Core version: zeitgeist-50 (zeitgeist-1.tx25.au1)
🗳️ system.setCode hash: 0x8cec759d843e04496c4087ac85e15242674877ab13f90a9f98f9d82d78750037
🗳️ authorizeUpgrade hash: 0x0e1b3b17d21ee208606abf17325c7506aa0b2627064b3509b8e7c0a9e24dbf2d
🗳️ Blake2-256 hash: 0xd6ba625419da0f5f71fd9971716877b67b3a6aa4f0a21427009f8fe29f974976
📦 IPFS: https://www.ipfs.io/ipfs/QmeGrCiD3uV2c7RjHShqExGY6WAzrDgGMpBm9XTSnRkv15
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.4.1
GIT commit :
GIT tag :
GIT branch :
Rustc : rustc 1.66.1 (90743e729 2023-01-10)
Time : 2023-10-16T16:21:32Z
== Compact
Version : zeitgeist-50 (zeitgeist-1.tx25.au1)
Metadata : V14
Size : 5.95 MB (6243564 bytes)
setCode : 0x7146d97a4dcc9f2881ebc95c67058b0ba0ab10839ed2628c2f1675964bbafc9e
authorizeUpgrade : 0xc04a145c54a62aa5daae107f51d54af9d21e72425b1e23d503627e19e1433429
IPFS : QmeSt1Jt6XddvwnaSVRtwDUHduLr3eucSn2Hf5MDYTCPxh
BLAKE2_256 : 0x63f48eddc429ce432fe53f88283eaafad16a3f286574365d1b63d3d8ef3ec647
Wasm : ./runtime/battery-station/target/srtool/production/wbuild/battery-station-runtime/battery_station_runtime.compact.wasm
== Compressed
Version : zeitgeist-50 (zeitgeist-1.tx25.au1)
Metadata : V14
Size : 1.48 MB (1550591 bytes)
Compression : 75.17%
setCode : 0xe7a0a6e14468289a1fdd77d0a3450db329ec86d9ab8662f366b182927a8c1a10
authorizeUpgrade : 0x93b888ea25472172493e8c238121c415553265aaec24d2a3464bbb2d1c62ae71
IPFS : QmeGrCiD3uV2c7RjHShqExGY6WAzrDgGMpBm9XTSnRkv15
BLAKE2_256 : 0xd6ba625419da0f5f71fd9971716877b67b3a6aa4f0a21427009f8fe29f974976
Wasm : ./runtime/battery-station/target/srtool/production/wbuild/battery-station-runtime/battery_station_runtime.compact.compressed.wasm
Zeitgeist Runtime
spec_version
: 50
transaction_version
: 25
🏋️ Runtime size: 1.468 MB (1,539,208 bytes)
🗜 Compressed: Yes, 75.20%
✨ Reserved meta: OK - [6D, 65, 74, 61]
🎁 Metadata version: V14
🔥 Core version: zeitgeist-50 (zeitgeist-1.tx25.au1)
🗳️ system.setCode hash: 0x714e684a0f6305fc2dd9b56221dff1e7fcfb87edaece381c2b2a4dadd397c400
🗳️ authorizeUpgrade hash: 0x0e86dcc6db909d0a05f005a6b807c91d636c1e9ec0578fc13fdca8bddab187d9
🗳️ Blake2-256 hash: 0x14a04426b7fc33b4a5e0faa63c04532f01affe6e05b3864a25efd7d6f552c19b
📦 IPFS: https://www.ipfs.io/ipfs/QmXpu9TzEwzob1vjxJijB5V7oewxRL9pYHY9Tj3X3oHBGx
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.4.1
GIT commit :
GIT tag :
GIT branch :
Rustc : rustc 1.66.1 (90743e729 2023-01-10)
Time : 2023-10-16T15:44:17Z
== Compact
Version : zeitgeist-50 (zeitgeist-1.tx25.au1)
Metadata : V14
Size : 5.92 MB (6207392 bytes)
setCode : 0xc859387aa2d8dc0887e94968589e09d2480e81a20c9fda16fbec91ed6278c1a8
authorizeUpgrade : 0x98e5e10533cd0292fcf5d6eee6edb2b21607b5c68a6f0419710b0b98a9c7938d
IPFS : QmVjk1qLaVuibWDYb179RtbE2WfnZSQRMGjbbVkdRnzf8z
BLAKE2_256 : 0x8a4fc7cc061b29761980831a770aea8f72e8e0a6eafbdb79a2bc09ec7c6a8f18
Wasm : ./runtime/zeitgeist/target/srtool/production/wbuild/zeitgeist-runtime/zeitgeist_runtime.compact.wasm
== Compressed
Version : zeitgeist-50 (zeitgeist-1.tx25.au1)
Metadata : V14
Size : 1.47 MB (1539208 bytes)
Compression : 75.21%
setCode : 0x9df2a7cc50d16f42bb3b30e88de0b0ca5a338541874752198037052412c030af
authorizeUpgrade : 0x35c24929ee2d2319c63d21b5edd659acfad54068bf8e0bf501bbee722d267ed2
IPFS : QmXpu9TzEwzob1vjxJijB5V7oewxRL9pYHY9Tj3X3oHBGx
BLAKE2_256 : 0x14a04426b7fc33b4a5e0faa63c04532f01affe6e05b3864a25efd7d6f552c19b
Wasm : ./runtime/zeitgeist/target/srtool/production/wbuild/zeitgeist-runtime/zeitgeist_runtime.compact.compressed.wasm
Changes
- Update weights (#1143)
- Update version (#1142)
- Fix imports (#1130)
- Fix taplo build (#1126)
- Update weight templates to reflect weights-v2 (#1109)
- Add constant attribute to MaxCreatorFee (#1104)
- Implement trusted markets (#1100)
- Implement partial fills for orderbook pallet (#1099)
- Add docs to zrml-neo-swaps (#1096)
- Implement zrml-neo-swaps benchmarks (#1095)
- Implement AMM 2.0-light (#1092)
- Add Substrate style guide (#1090)