Skip to content

Commit

Permalink
upstream merge mainnet (#1148)
Browse files Browse the repository at this point in the history
* upstream merge

* Disable adder contract test due to ink 4.2.0 upstream issue

---------

Co-authored-by: Marcin <[email protected]>
  • Loading branch information
DamianStraszak and Marcin-Radecki authored Apr 24, 2023
1 parent 1023252 commit e71357b
Show file tree
Hide file tree
Showing 7 changed files with 139 additions and 224 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/e2e-tests-main-devnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@ jobs:

run-e2e-adder-contract-test:
needs: [build-test-docker, build-test-client]
if: false
name: Run e2e adder contract test
runs-on: ubuntu-20.04
steps:
Expand Down Expand Up @@ -704,7 +705,7 @@ jobs:
run-e2e-ban-threshold,
run-e2e-version-upgrade,
run-e2e-permissionless-ban,
run-e2e-adder-contract-test,
# run-e2e-adder-contract-test,
# run-e2e-failing-version-upgrade,
# run-e2e-version-upgrade-catchup,
run-e2e-finality-version-change,
Expand Down
268 changes: 134 additions & 134 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bin/node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aleph-node"
version = "0.10.0+mainnet"
version = "0.10.1+mainnet"
authors = ["Cardinal Cryptography"]
description = "Aleph node binary"
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion bin/runtime/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aleph-runtime"
version = "0.10.0+mainnet"
version = "0.10.1+mainnet"
authors = ["Cardinal Cryptography"]
edition = "2021"
homepage = "https://alephzero.org"
Expand Down
23 changes: 1 addition & 22 deletions bin/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ pub type Index = u32;
/// A hash of some data used by the chain.
pub type Hash = sp_core::H256;

mod migrations;

/// Opaque types. These are used by the CLI to instantiate machinery that don't need to know
/// the specifics of the runtime. They can then be made to be agnostic over specific formats
/// of data like extrinsics, allowing for them to continue syncing the network through upgrades
Expand Down Expand Up @@ -112,7 +110,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("aleph-node"),
impl_name: create_runtime_str!("aleph-node"),
authoring_version: 1,
spec_version: 59,
spec_version: 61,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 16,
Expand Down Expand Up @@ -780,13 +778,6 @@ pub type UncheckedExtrinsic =
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, SignedExtra>;
/// Extrinsic type that has already been checked.
pub type CheckedExtrinsic = generic::CheckedExtrinsic<AccountId, RuntimeCall, SignedExtra>;
// Migrations
use pallet_balances::migration::MigrateManyToTrackInactive as BalancesV1Migration;
use pallet_multisig::migrations::v1::MigrateToV1 as MultisigV1Migration;
use pallet_scheduler::migration::v3::MigrateToV4 as SchedulerV3V4Migration;
use pallet_staking::migrations::v13::MigrateToV13 as StakingV13Migration;

use crate::migrations::contracts_set_version::ContractsSetVersion9;

/// Executive: handles dispatch to the various modules.
pub type Executive = frame_executive::Executive<
Expand All @@ -795,18 +786,6 @@ pub type Executive = frame_executive::Executive<
frame_system::ChainContext<Runtime>,
Runtime,
AllPalletsWithSystem,
(
// This will just kill the custom versioning enum, and set StorageVersion to 1
BalancesV1Migration<Runtime, ()>,
// Removes the `Calls` map, and unreserves all the funds locked there.
MultisigV1Migration<Runtime>,
// In our case, this is migrating 0 agendas.
SchedulerV3V4Migration<Runtime>,
// This only kills the custom versioning enum, and sets StorageVersion to 13
StakingV13Migration<Runtime>,
// We are adding the pallet to runtime. Need to set the version 9 manually.
ContractsSetVersion9<Runtime>,
),
>;

impl_runtime_apis! {
Expand Down
64 changes: 0 additions & 64 deletions bin/runtime/src/migrations/contracts_set_version.rs

This file was deleted.

1 change: 0 additions & 1 deletion bin/runtime/src/migrations/mod.rs

This file was deleted.

0 comments on commit e71357b

Please sign in to comment.