Skip to content

Commit

Permalink
Increment runtime version
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauthamastro committed Aug 12, 2024
1 parent f0d8e78 commit 2179466
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
15 changes: 12 additions & 3 deletions check-all-ci-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,19 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

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
4 changes: 2 additions & 2 deletions runtimes/mainnet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 2179466

Please sign in to comment.