From 21794668533628dd15b623c4ecb5b40db70bf63f Mon Sep 17 00:00:00 2001 From: Gautham Date: Mon, 12 Aug 2024 18:20:57 +0530 Subject: [PATCH] Increment runtime version --- check-all-ci-tests.sh | 15 ++++++++++++--- runtimes/mainnet/src/lib.rs | 4 ++-- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/check-all-ci-tests.sh b/check-all-ci-tests.sh index 807b12b43..a87720ae8 100755 --- a/check-all-ci-tests.sh +++ b/check-all-ci-tests.sh @@ -16,10 +16,19 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -cargo fmt --check || exit -RUSTFLAGS="-D warnings" cargo build || exit -RUSTFLAGS="-D warnings" cargo build --features try-runtime || exit +cargo fmt --check --features on-chain-release-build || exit +RUSTFLAGS="-D warnings" cargo build --features on-chain-release-build || exit +RUSTFLAGS="-D warnings" cargo build --features try-runtime || exit cargo build --features runtime-benchmarks || exit ./target/debug/polkadex-node benchmark pallet --pallet "*" --extrinsic "*" --steps 2 --repeat 1 || exit cargo clippy -- -D warnings || exit RUSTFLAGS="-D warnings" cargo test --workspace || exit + + +# Note while building wasm binary for runtime upgrade use the metadata-hash feature otherwise, ledger app will be broken +# References +# https://forum.polkadot.network/t/polkadot-generic-ledger-app/4295/26 +# https://paritytech.github.io/polkadot-sdk/master/polkadot_sdk_docs/guides/enable_metadata_hash/index.html +# https://hackmd.io/@ePxWAFa1TbKm0U5Ym3IqgQ/rJdgmf6b0?utm_source=preview-mode&utm_medium=rec +# 0x0e63268eeeddda8e033ade1cc670411d3215fd81be44bdec564932d599d5aee8 +# https://www.notion.so/polkadex/Listing-on-Polkadex-Orderbook-3e49fcf22d52474da86dfa65135615e9#b225838c59fa4820a61365e276fd4684 \ No newline at end of file diff --git a/runtimes/mainnet/src/lib.rs b/runtimes/mainnet/src/lib.rs index a5c051c1a..b7ebb96b5 100644 --- a/runtimes/mainnet/src/lib.rs +++ b/runtimes/mainnet/src/lib.rs @@ -122,7 +122,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // and set impl_version to 0. If only runtime // implementation changes and behavior does not, then leave spec_version as // is and increment impl_version. - spec_version: 372, + spec_version: 373, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 2, @@ -359,7 +359,7 @@ parameter_types! { pub const PreimageMaxSize: u32 = 4096 * 1024; pub const PreimageBaseDeposit: Balance = DOLLARS; // One cent: PDEX 10,000 / MB - pub const PreimageByteDeposit: Balance = CENTS; + pub const PreimageByteDeposit: Balance = MILLICENTS; } impl pallet_preimage::Config for Runtime {