Skip to content

Commit

Permalink
Upgrade runtime to 210 (#15)
Browse files Browse the repository at this point in the history
* update runtime

* update weights
  • Loading branch information
sigoden authored Sep 19, 2021
1 parent 98c75d1 commit 7aa1abc
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions node/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,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: 200,
spec_version: 210,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down Expand Up @@ -950,7 +950,7 @@ parameter_types! {
pub const NftDepositBase: Balance = 100 * MILLICENTS;
pub const NftDepositPerByte: Balance = 10 * MILLICENTS;
pub const NftRoyaltyRateLimit: Perbill = Perbill::from_percent(20);
pub const NftClassIdIncLimit: u32 = 20;
pub const NftClassIdIncLimit: u32 = 100;
}

impl pallet_nft::Config for Runtime {
Expand Down
14 changes: 7 additions & 7 deletions pallets/nft-order/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//! Autogenerated weights for pallet_nft_order
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2021-09-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2021-09-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128

// Executed Command:
Expand Down Expand Up @@ -60,7 +60,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: NFTOrder AccountOrders (r:1 w:1)
// Storage: NFTOrder Orders (r:0 w:1)
fn sell() -> Weight {
(57_083_000 as Weight)
(56_565_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
Expand All @@ -69,15 +69,15 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: NFTOrder AccountOrders (r:1 w:1)
// Storage: NFT Account (r:0 w:2)
fn deal() -> Weight {
(168_509_000 as Weight)
(170_724_000 as Weight)
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(5 as Weight))
}
// Storage: NFTOrder Orders (r:1 w:1)
// Storage: NFT Asset (r:1 w:1)
// Storage: NFTOrder AccountOrders (r:1 w:1)
fn remove() -> Weight {
(58_932_000 as Weight)
(58_652_000 as Weight)
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
Expand All @@ -89,7 +89,7 @@ impl WeightInfo for () {
// Storage: NFTOrder AccountOrders (r:1 w:1)
// Storage: NFTOrder Orders (r:0 w:1)
fn sell() -> Weight {
(57_083_000 as Weight)
(56_565_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
Expand All @@ -98,15 +98,15 @@ impl WeightInfo for () {
// Storage: NFTOrder AccountOrders (r:1 w:1)
// Storage: NFT Account (r:0 w:2)
fn deal() -> Weight {
(168_509_000 as Weight)
(170_724_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
.saturating_add(RocksDbWeight::get().writes(5 as Weight))
}
// Storage: NFTOrder Orders (r:1 w:1)
// Storage: NFT Asset (r:1 w:1)
// Storage: NFTOrder AccountOrders (r:1 w:1)
fn remove() -> Weight {
(58_932_000 as Weight)
(58_652_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
Expand Down
34 changes: 17 additions & 17 deletions pallets/nft/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//! Autogenerated weights for pallet_nft
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2021-09-16, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2021-09-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128

// Executed Command:
Expand Down Expand Up @@ -64,59 +64,59 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: NFT Class (r:1 w:1)
// Storage: NFT MaxClassId (r:1 w:1)
fn create() -> Weight {
(43_819_000 as Weight)
(43_617_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: NFT Asset (r:1 w:1)
// Storage: NFT Class (r:1 w:1)
// Storage: NFT Account (r:0 w:1)
fn mint() -> Weight {
(55_143_000 as Weight)
(54_824_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
// Storage: NFT Class (r:1 w:1)
// Storage: NFT Asset (r:1 w:1)
// Storage: NFT Account (r:0 w:1)
fn burn() -> Weight {
(64_432_000 as Weight)
(63_948_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
// Storage: NFT Asset (r:1 w:1)
// Storage: NFT AssetTransfer (r:0 w:1)
fn ready_transfer() -> Weight {
(31_107_000 as Weight)
(30_064_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: NFT Asset (r:1 w:1)
// Storage: NFT AssetTransfer (r:0 w:1)
fn cancel_transfer() -> Weight {
(31_313_000 as Weight)
(30_336_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: NFT Asset (r:1 w:1)
// Storage: NFT AssetTransfer (r:0 w:1)
// Storage: NFT Account (r:0 w:2)
fn accept_transfer() -> Weight {
(90_469_000 as Weight)
(90_059_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(4 as Weight))
}
// Storage: NFT Asset (r:1 w:1)
// Storage: NFT Attribute (r:1 w:1)
fn set_attribute() -> Weight {
(81_182_000 as Weight)
(81_758_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: NFT Asset (r:1 w:1)
// Storage: NFT Attribute (r:1 w:1)
fn clear_attribute() -> Weight {
(67_478_000 as Weight)
(68_305_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
Expand All @@ -127,59 +127,59 @@ impl WeightInfo for () {
// Storage: NFT Class (r:1 w:1)
// Storage: NFT MaxClassId (r:1 w:1)
fn create() -> Weight {
(43_819_000 as Weight)
(43_617_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
// Storage: NFT Asset (r:1 w:1)
// Storage: NFT Class (r:1 w:1)
// Storage: NFT Account (r:0 w:1)
fn mint() -> Weight {
(55_143_000 as Weight)
(54_824_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
// Storage: NFT Class (r:1 w:1)
// Storage: NFT Asset (r:1 w:1)
// Storage: NFT Account (r:0 w:1)
fn burn() -> Weight {
(64_432_000 as Weight)
(63_948_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
// Storage: NFT Asset (r:1 w:1)
// Storage: NFT AssetTransfer (r:0 w:1)
fn ready_transfer() -> Weight {
(31_107_000 as Weight)
(30_064_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
// Storage: NFT Asset (r:1 w:1)
// Storage: NFT AssetTransfer (r:0 w:1)
fn cancel_transfer() -> Weight {
(31_313_000 as Weight)
(30_336_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
// Storage: NFT Asset (r:1 w:1)
// Storage: NFT AssetTransfer (r:0 w:1)
// Storage: NFT Account (r:0 w:2)
fn accept_transfer() -> Weight {
(90_469_000 as Weight)
(90_059_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
}
// Storage: NFT Asset (r:1 w:1)
// Storage: NFT Attribute (r:1 w:1)
fn set_attribute() -> Weight {
(81_182_000 as Weight)
(81_758_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
// Storage: NFT Asset (r:1 w:1)
// Storage: NFT Attribute (r:1 w:1)
fn clear_attribute() -> Weight {
(67_478_000 as Weight)
(68_305_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
Expand Down

0 comments on commit 7aa1abc

Please sign in to comment.