Skip to content

Commit

Permalink
Bump some artifact versions as the major update (#430)
Browse files Browse the repository at this point in the history
* bump `cess-node` version to `0.9.0`

* bump `ceseal` version to `0.4.0`

* bump `cifrost` version to `0.3.0`

* bump `handover` version to `0.2.0`

* update Cargo.lock due as version changed

* fix: compile warnings on normal and try-runtime features
  • Loading branch information
0xbillw authored Jan 17, 2025
1 parent cb0c2ce commit 5a4b6d2
Show file tree
Hide file tree
Showing 11 changed files with 23 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: 2 additions & 0 deletions pallets/file-bank/src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ impl<T: Config> Pallet<T> {
false
}

// FIXME: Will this function still be used?
#[allow(dead_code)]
pub(super) fn check_name_spec(name: Vec<u8>) -> bool {
let mut point_flag: bool = false;
let mut count = 0;
Expand Down
2 changes: 1 addition & 1 deletion pallets/file-bank/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ use frame_support::{
PalletId,
dispatch::DispatchResult,
pallet_prelude::*,
weights::{Weight, WeightMeter},
weights::Weight,
};
use frame_system::pallet_prelude::*;
use scale_info::TypeInfo;
Expand Down
10 changes: 7 additions & 3 deletions pallets/file-bank/src/migration.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
use super::*;
use sp_std::collections::btree_map::BTreeMap;
use sp_runtime::{TryRuntimeError};
use frame_support::{
storage_alias, weights::WeightMeter,
storage_alias,
migrations::{MigrationId, SteppedMigration, SteppedMigrationError},
};

#[cfg(feature = "try-runtime")]
use sp_runtime::Vec;
#[cfg(feature = "try-runtime")]
use sp_std::collections::btree_map::BTreeMap;
#[cfg(feature = "try-runtime")]
use sp_runtime::{TryRuntimeError};
#[cfg(feature = "try-runtime")]
use frame_support::weights::WeightMeter;

pub const PALLET_MIGRATIONS_ID: &[u8; 26] = b"pallet-file-bank-migration";

Expand Down
2 changes: 1 addition & 1 deletion pallets/sminer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use cp_bloom_filter::BloomFilter;
use cp_cess_common::*;
use frame_support::{
dispatch::DispatchResult,
ensure, weights::{Weight, WeightMeter},
ensure, weights::Weight,
pallet_prelude::DispatchError,
storage::bounded_vec::BoundedVec,
traits::{
Expand Down
3 changes: 2 additions & 1 deletion pallets/sminer/src/migration.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use super::*;
#[cfg(feature = "try-runtime")]
use sp_runtime::{TryRuntimeError};
#[cfg(feature = "try-runtime")]
use sp_std::collections::btree_map::BTreeMap;
Expand Down Expand Up @@ -110,7 +111,7 @@ impl<T: Config, W: weights::WeightInfo> SteppedMigration for SteppedSminer<T, W>
}

pub mod v2 {
use super::{*, MinerItems as NewMinerItems};
use super::*;

#[storage_alias]
pub type MinerItems<T: Config> = StorageMap<Pallet<T>, Blake2_128Concat, AccountOf<T>, OldMinerInfo<T>>;
Expand Down
2 changes: 1 addition & 1 deletion standalone/chain/node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = '2021'
license = 'Unlicense'
name = 'cess-node'
repository = 'https://github.com/CESSProject/cess'
version = '0.8.2'
version = '0.9.0'

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
Expand Down
5 changes: 3 additions & 2 deletions standalone/teeworker/ceseal/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 standalone/teeworker/ceseal/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
edition = "2021"
name = "ceseal"
version = "0.3.4"
version = "0.4.0"
build = "build.rs"

[profile.release]
Expand Down
2 changes: 1 addition & 1 deletion standalone/teeworker/cifrost/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cifrost"
version = "0.2.3"
version = "0.3.0"
authors = ["CESS Network"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion standalone/teeworker/handover/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "handover"
version = "0.1.1"
version = "0.2.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down

0 comments on commit 5a4b6d2

Please sign in to comment.