Skip to content

Commit

Permalink
Prepare release 3.5.2 (#1167)
Browse files Browse the repository at this point in the history
  • Loading branch information
vovac12 committed Aug 12, 2024
1 parent be55899 commit 2d1177a
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 15 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "framenode"
version = "3.5.1"
version = "3.5.2"
authors = ["Parity Technologies <[email protected]>"]
build = "build.rs"
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion node/chain_spec/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "framenode-chain-spec"
version = "3.5.1"
version = "3.5.2"
authors = ["Parity Technologies <[email protected]>"]
edition = "2021"

Expand Down
4 changes: 2 additions & 2 deletions runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ license = "BSD-4-Clause"
homepage = "https://sora.org"
repository = "https://github.com/sora-xor/sora2-network"
name = "framenode-runtime"
version = "3.5.1"
version = "3.5.2"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
Expand Down Expand Up @@ -93,7 +93,7 @@ pswap-distribution-benchmarking = { path = "../pallets/pswap-distribution/benchm
pswap-distribution-runtime-api = { path = "../pallets/pswap-distribution/runtime-api", default-features = false }
qa-tools = { path = "../pallets/qa-tools", default-features = false, optional = true }
referrals = { path = "../pallets/referrals", default-features = false }
extended-assets = { path = "../pallets/extended-assets", default-features = false}
extended-assets = { path = "../pallets/extended-assets", default-features = false }
rewards = { path = "../pallets/rewards", default-features = false }
rewards-runtime-api = { path = "../pallets/rewards/runtime-api", default-features = false }
soratopia = { path = "../pallets/soratopia", default-features = false, optional = true }
Expand Down
23 changes: 19 additions & 4 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@
extern crate alloc;
use alloc::string::String;
use bridge_types::traits::Verifier;
#[cfg(feature = "wip")]
use bridge_types::types::GenericAdditionalInboundData;
use bridge_types::{GenericNetworkId, SubNetworkId, H256};
#[cfg(feature = "wip")]
use bridge_types::GenericNetworkId;
use bridge_types::{SubNetworkId, H256};
use sp_runtime::traits::Keccak256;

mod bags_thresholds;
Expand Down Expand Up @@ -256,10 +259,10 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("sora-substrate"),
impl_name: create_runtime_str!("sora-substrate"),
authoring_version: 1,
spec_version: 91,
spec_version: 92,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 91,
transaction_version: 92,
state_version: 0,
};

Expand Down Expand Up @@ -1025,10 +1028,22 @@ parameter_type_with_key! {
};
}

#[cfg(not(feature = "wip"))] // Chameleon pools
parameter_type_with_key! {
pub GetChameleonPools: |base: AssetId| -> Option<(AssetId, sp_std::collections::btree_set::BTreeSet<AssetId>)> {
if *base == common::XOR {
Some((common::KXOR, [common::ETH].into_iter().collect()))
} else {
None
}
};
}

#[cfg(feature = "wip")] // Chameleon pools
parameter_type_with_key! {
pub GetChameleonPools: |base: AssetId| -> Option<(AssetId, sp_std::collections::btree_set::BTreeSet<AssetId>)> {
if *base == common::XOR {
Some((common::KXOR, [common::ETH, common::VAL, common::PSWAP].into_iter().collect()))
Some((common::KXOR, [common::ETH, common::PSWAP, common::VAL].into_iter().collect()))
} else {
None
}
Expand Down
6 changes: 2 additions & 4 deletions runtime/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
// USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#[cfg(feature = "wip")]
use crate::*;

pub type Migrations = (
assets::migration::asset_infos_v2::AssetInfosUpdate<Runtime>,
WipMigrations,
);
pub type Migrations = (WipMigrations,);

#[cfg(feature = "wip")] // dex-kusd
pub type WipMigrations = (dex_manager::migrations::kusd_dex::AddKusdBasedDex<Runtime>,);
Expand Down

0 comments on commit 2d1177a

Please sign in to comment.