Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pallet uniques: Mint with extra deposit #753

Merged
merged 112 commits into from
Jul 11, 2023
Merged
Show file tree
Hide file tree
Changes from 103 commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
e9127cd
feat: add nodle uniques which is going to extend on substrate uniques…
aliXsed May 9, 2023
6b04886
feat: couple nodle uniques with substrate uniques (intentionally) so …
aliXsed May 10, 2023
24381eb
fix: remove unused SubstrateUniques
aliXsed May 10, 2023
02e52f0
Update
simonsso May 22, 2023
5a5d711
Wrap (almost) all items from uniques
simonsso May 24, 2023
e6d894c
fmt
May 30, 2023
af06fcb
feat: add call mint_with_extra_deposit
Jun 9, 2023
207e955
feat* mint with extra deposit
Jun 13, 2023
fb1064d
Revert "feat* mint with extra deposit"
aliXsed Jun 14, 2023
641e94c
Revert "feat: add call mint_with_extra_deposit"
aliXsed Jun 14, 2023
fc5dea7
feat(pallet-nodle-uniques): wrap all substrate uniques extrinsics
aliXsed Jun 14, 2023
c6810db
feat(pallet-nodle-uniques): add mint_with_extra_deposit
aliXsed Jun 14, 2023
84f1ee3
fix(pallet-nodle-uniques): the extra deposit should be reserved from …
aliXsed Jun 15, 2023
fdebb63
feat:(pallet_uniques) burn extra deposit
Jun 15, 2023
68aa2f6
feat(pallet-uniques): destroy collection
Jun 16, 2023
34b50f3
test(pallet-uniques): add test externalities
Jun 16, 2023
eba5169
test(pallet_uniques): test mint with extra deposit and mint and burn
Jun 18, 2023
318dc1b
feat(pallet_uniques): add transfer item deposit to item owner when it…
Jun 18, 2023
7cda674
pallet_uniques: add test files
Jun 18, 2023
e41b6a5
fmt
Jun 18, 2023
9d13a1e
bench(pallet_uniques): bring implementation of benchmarkhelper for ru…
Jun 18, 2023
0d73996
Merge branch 'master' into houns/uniques
Hounsette Jun 18, 2023
a8d9a04
fix(pallet-uniques): on destroy event the items owners in the pallet-…
Jun 20, 2023
225e64a
Merge branch 'houns/uniques' of github.com:NodleCode/chain into houns…
Jun 20, 2023
a15ff2c
test(pallet-uniques): add test_mint_and_burn_wrong_origin_with_extra_…
Jun 20, 2023
b25d22e
pallet-uniques: add benchmarks
Jun 26, 2023
6038b8e
fix test
Jun 26, 2023
c5e5768
Update bootnodes to static DNS (#752)
simonsso Jun 16, 2023
08037bf
test(pallet-uniques): add test_mint_and_burn_wrong_origin_with_extra_…
Jun 20, 2023
2c873bd
pallet-uniques: add benchmarks
Jun 26, 2023
dfb33c1
fix test
Jun 26, 2023
50f8694
Merge branch 'master' into houns/uniques
Hounsette Jun 27, 2023
1efcbc1
merge upstream
Jun 27, 2023
f1f2a50
pallet-uniques: update dependency to 9.42
Jun 27, 2023
4b50191
pallet-uniques: comment benchmark for destroy
Jun 27, 2023
fcbe0b4
fix: clippy
Jun 27, 2023
75dc6fc
pallet-uniques: uncomment benchmark mint_item_with_extra_deposit
Jun 27, 2023
1418997
clippy
Jun 27, 2023
6629875
Testrun of benchmarks
simonsso Jun 27, 2023
b9c1eeb
Testcase updated to v0.9.42
simonsso Jun 27, 2023
23847c6
Integrate new weights
simonsso Jun 28, 2023
3b0c8a2
pallet-uniques: benchmarks
Jun 28, 2023
9000948
Merge branch 'houns/uniques' of github.com:NodleCode/chain into houns…
simonsso Jun 28, 2023
d02c659
add weights.rs
Jun 28, 2023
3aefde7
Merge branch 'houns/uniques' of github.com:NodleCode/chain into houns…
simonsso Jun 28, 2023
460f73d
Merge conflict
simonsso Jun 28, 2023
447cdda
fix(pallet-nodle-uniques): reuse the pallet-uniques's benchmark helper
aliXsed Jun 28, 2023
038c524
pallet_uniques: Becnhmarks: add destroy benchmark
Jun 28, 2023
63e988d
fix(pallet-nodle-uniques): fix benchmark for mint_with_extra_deposit
aliXsed Jun 28, 2023
bcb6f90
fix(pallet-nodle-uniques): fix merge
aliXsed Jun 28, 2023
00d7393
fix(pallet-uniques): benchmarls
Jun 28, 2023
7e4bc3d
pallet-uniques: Add nodle uniques to list benchmarks
Jun 29, 2023
352799e
bench
Jun 29, 2023
acb0daf
update bench script
Jun 29, 2023
95b6717
fmt
Jun 29, 2023
366fa43
Clearly separate nodle weights from uniques weights (#761)
aliXsed Jun 29, 2023
bfb7f90
pallet-unique-nodle: add to script becnh
Jun 29, 2023
2f45671
Remove auto generated headers
simonsso Jun 29, 2023
469de83
benchmark(pallet-nodle-uniques): local benchmark
aliXsed Jun 29, 2023
f68d9b5
Indentation
simonsso Jun 29, 2023
7e131a1
Merge branch 'houns/uniques' of github.com:NodleCode/chain into houns…
simonsso Jun 29, 2023
7feea0a
Code clean up,
simonsso Jun 29, 2023
fd08e6e
Clippy --fix
simonsso Jun 29, 2023
1dd8729
Merge branch 'master' into houns/uniques
Hounsette Jun 29, 2023
0619249
pallet-uniques: uncomment test case for destroy and fix bug
Jun 29, 2023
f8649e8
Prerun benchmarks
simonsso Jun 29, 2023
d0c4319
Run benchmarks
simonsso Jun 29, 2023
2f53134
migration(pallet-uniques): adding backbone for storage migration
Jun 29, 2023
8ca1a5a
fix(pallet-reserve): run benchmark tests in the test mode
aliXsed Jun 29, 2023
7a3b11e
fix(pallet-reserve): fix benchmark
aliXsed Jun 30, 2023
983cdca
Reserve benchmarks
simonsso Jun 30, 2023
4ace9ca
Merge branch 'houns/uniques' of github.com:NodleCode/chain into houns…
simonsso Jun 30, 2023
8d802bb
Clippy auto fix
simonsso Jun 30, 2023
a8c305d
Spellcheck
simonsso Jun 30, 2023
19c0f74
migration(pallet-uniques): add preupgrade test, WIP
Jul 2, 2023
cc1350e
migration(pallet-uniques): Add check pre and post upgrade for collect…
Jul 3, 2023
b108c7d
migration(pallet-uniques): add logging info
Jul 3, 2023
74dc85b
migration(pallet-uniques): add comment
Jul 3, 2023
cf8ab5c
Merge branch 'master' into houns/uniques
simonsso Jul 4, 2023
e8478ed
fix(pallet-nodle-uniques): fix the storage prefix of ExtraDeposit
aliXsed Jul 4, 2023
49b9e04
refactor(pallet-nodle-uniques): simplify the logic in destroy
aliXsed Jul 6, 2023
eb899e4
test(pallet-nodle-uniques): test_no_storage_change_happens_if_destroy…
aliXsed Jul 6, 2023
a43ff3f
refactor(pallet-nodle-uniques): adds more ensuring checks for burn an…
aliXsed Jul 6, 2023
54dedc7
Update pallets/uniques/src/lib.rs
Hounsette Jul 6, 2023
0739c73
fix(runtime-eden): correct the weight of on-runtime-upgrade
aliXsed Jul 6, 2023
be251b8
chore(runtime-eden): define UNIQUES_CLASS_PREFIX only for try-runtime
aliXsed Jul 6, 2023
99b5ab8
chore(pallet-nodle-uniques): fix a comment
aliXsed Jul 6, 2023
9c6d8d8
feat(nodle-uniques-pallet): let collection owner place a cap on total…
aliXsed Jul 7, 2023
4ec38c2
feat(nodle-uniques-pallet): keep track of total extra deposit for eac…
aliXsed Jul 7, 2023
90fd4d2
feat(nodle-uniques-pallet): repatriate total extra deposit when the o…
aliXsed Jul 7, 2023
02834fa
fix(nodle-uniques-pallet): address warnings
aliXsed Jul 9, 2023
7724c38
test(nodle-uniques-pallet): add more test cases
aliXsed Jul 9, 2023
e0bef9c
feat(nodle-uniques-pallet): go ahead with destroy and burn even when …
aliXsed Jul 10, 2023
b780bba
chore(nodle-uniques-pallet): remove unused error
aliXsed Jul 10, 2023
3671767
feat(runtime-eden): minimize metadata change for extrinsics of pallet…
aliXsed Jul 10, 2023
49b5c3c
Merge branch 'master' into houns/uniques
aliXsed Jul 10, 2023
aac98e8
test(nodle-uniques-pallet): test_transfer_ownership_to_self
aliXsed Jul 10, 2023
6dcbf14
chore(reserve-pallet): revert incidental change
aliXsed Jul 10, 2023
5a02b34
benchmark(nodle-uniques-pallet): add the benchmark placeholders for n…
aliXsed Jul 10, 2023
e744cd6
benchmark(nodle-uniques-pallet): add the benchmark tests for create_w…
aliXsed Jul 10, 2023
e06efee
lint(nodle-uniques-pallet): remove redundant clone
aliXsed Jul 10, 2023
b1a6644
benchmark(pallet-nodle-uniques): update weights [WIP]
aliXsed Jul 10, 2023
6b8b192
Update weights
simonsso Jul 10, 2023
af09e94
chore(eden-runtime): simplify several use statements
aliXsed Jul 10, 2023
36c3526
feat(pallet-nodle-uniques): remove the collection details after it is…
aliXsed Jul 10, 2023
2b1a784
fmt(eden-runtime): correct fmt
aliXsed Jul 10, 2023
8cff425
test(pallet-nodle-uniques): test_destroy_removes_extra_deposit_details
aliXsed Jul 11, 2023
b60c12d
Update pallets/uniques/Cargo.toml
aliXsed Jul 11, 2023
12e58ef
feat(pallet-nodle-uniques): update_extra_deposit_limit
aliXsed Jul 11, 2023
a2c585e
feat(pallet-nodle-uniques): emit ExtraDepositLimitUpdated event
aliXsed Jul 11, 2023
b4753fd
test(pallet-nodle-uniques): test_destroying_one_collection_does_not_i…
aliXsed Jul 11, 2023
7986015
chore(pallet-nodle-uniques): update file header for benchmarking.rs
aliXsed Jul 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Cargo.lock

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

52 changes: 26 additions & 26 deletions pallets/allocations/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
//! Autogenerated weights for pallet_allocations
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `chain-bench-2aa7e463`, CPU: `AMD EPYC 7B13`
//! DATE: 2023-07-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `chain-bench-2a6c49ba`, CPU: `AMD EPYC 7B13`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024

// Executed Command:
Expand Down Expand Up @@ -72,10 +72,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Skipped: System Events (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `b` is `[1, 500]`.
fn allocate(b: u32, ) -> Weight {
// Minimum execution time: 181_830 nanoseconds.
Weight::from_parts(64_532_663_u64, 0)
// Standard Error: 13_909
.saturating_add(Weight::from_parts(65_969_287_u64, 0).saturating_mul(b as u64))
// Minimum execution time: 180_370 nanoseconds.
Weight::from_parts(64_125_680_u64, 0)
// Standard Error: 13_436
.saturating_add(Weight::from_parts(64_728_017_u64, 0).saturating_mul(b as u64))
.saturating_add(T::DbWeight::get().reads(8_u64))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(b as u64)))
.saturating_add(T::DbWeight::get().writes(6_u64))
Expand All @@ -98,8 +98,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Allocations NextSessionQuota (r:0 w:1)
// Proof: Allocations NextSessionQuota (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
fn calc_quota() -> Weight {
// Minimum execution time: 22_380 nanoseconds.
Weight::from_parts(22_910_000_u64, 0)
// Minimum execution time: 22_280 nanoseconds.
Weight::from_parts(23_030_000_u64, 0)
.saturating_add(T::DbWeight::get().reads(7_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
Expand All @@ -120,8 +120,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Allocations SessionQuota (r:0 w:1)
// Proof: Allocations SessionQuota (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
fn renew_quota() -> Weight {
// Minimum execution time: 18_090 nanoseconds.
Weight::from_parts(18_650_000_u64, 0)
// Minimum execution time: 18_060 nanoseconds.
Weight::from_parts(18_640_000_u64, 0)
.saturating_add(T::DbWeight::get().reads(7_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
Expand All @@ -148,8 +148,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Allocations NextSessionQuota (r:0 w:1)
// Proof: Allocations NextSessionQuota (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
fn checked_update_session_quota() -> Weight {
// Minimum execution time: 37_171 nanoseconds.
Weight::from_parts(38_530_000_u64, 0)
// Minimum execution time: 37_240 nanoseconds.
Weight::from_parts(38_420_000_u64, 0)
.saturating_add(T::DbWeight::get().reads(9_u64))
.saturating_add(T::DbWeight::get().writes(7_u64))
}
Expand All @@ -162,8 +162,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Allocations SessionQuotaRenewSchedule (r:0 w:1)
// Proof: Allocations SessionQuotaRenewSchedule (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
fn set_curve_starting_block() -> Weight {
// Minimum execution time: 10_560 nanoseconds.
Weight::from_parts(10_950_000_u64, 0)
// Minimum execution time: 10_670 nanoseconds.
Weight::from_parts(10_900_000_u64, 0)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
Expand All @@ -186,10 +186,10 @@ impl WeightInfo for () {
// Proof Skipped: System Events (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `b` is `[1, 500]`.
fn allocate(b: u32, ) -> Weight {
// Minimum execution time: 181_830 nanoseconds.
Weight::from_parts(64_532_663_u64, 0)
// Standard Error: 13_909
.saturating_add(Weight::from_parts(65_969_287_u64, 0).saturating_mul(b as u64))
// Minimum execution time: 180_370 nanoseconds.
Weight::from_parts(64_125_680_u64, 0)
// Standard Error: 13_436
.saturating_add(Weight::from_parts(64_728_017_u64, 0).saturating_mul(b as u64))
.saturating_add(RocksDbWeight::get().reads(8_u64))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(b as u64)))
.saturating_add(RocksDbWeight::get().writes(6_u64))
Expand All @@ -212,8 +212,8 @@ impl WeightInfo for () {
// Storage: Allocations NextSessionQuota (r:0 w:1)
// Proof: Allocations NextSessionQuota (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
fn calc_quota() -> Weight {
// Minimum execution time: 22_380 nanoseconds.
Weight::from_parts(22_910_000_u64, 0)
// Minimum execution time: 22_280 nanoseconds.
Weight::from_parts(23_030_000_u64, 0)
.saturating_add(RocksDbWeight::get().reads(7_u64))
.saturating_add(RocksDbWeight::get().writes(5_u64))
}
Expand All @@ -234,8 +234,8 @@ impl WeightInfo for () {
// Storage: Allocations SessionQuota (r:0 w:1)
// Proof: Allocations SessionQuota (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
fn renew_quota() -> Weight {
// Minimum execution time: 18_090 nanoseconds.
Weight::from_parts(18_650_000_u64, 0)
// Minimum execution time: 18_060 nanoseconds.
Weight::from_parts(18_640_000_u64, 0)
.saturating_add(RocksDbWeight::get().reads(7_u64))
.saturating_add(RocksDbWeight::get().writes(5_u64))
}
Expand All @@ -262,8 +262,8 @@ impl WeightInfo for () {
// Storage: Allocations NextSessionQuota (r:0 w:1)
// Proof: Allocations NextSessionQuota (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
fn checked_update_session_quota() -> Weight {
// Minimum execution time: 37_171 nanoseconds.
Weight::from_parts(38_530_000_u64, 0)
// Minimum execution time: 37_240 nanoseconds.
Weight::from_parts(38_420_000_u64, 0)
.saturating_add(RocksDbWeight::get().reads(9_u64))
.saturating_add(RocksDbWeight::get().writes(7_u64))
}
Expand All @@ -276,8 +276,8 @@ impl WeightInfo for () {
// Storage: Allocations SessionQuotaRenewSchedule (r:0 w:1)
// Proof: Allocations SessionQuotaRenewSchedule (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
fn set_curve_starting_block() -> Weight {
// Minimum execution time: 10_560 nanoseconds.
Weight::from_parts(10_950_000_u64, 0)
// Minimum execution time: 10_670 nanoseconds.
Weight::from_parts(10_900_000_u64, 0)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
Expand Down
36 changes: 18 additions & 18 deletions pallets/grants/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
//! Autogenerated weights for pallet_grants
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `chain-bench-2aa7e463`, CPU: `AMD EPYC 7B13`
//! DATE: 2023-07-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `chain-bench-2a6c49ba`, CPU: `AMD EPYC 7B13`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024

// Executed Command:
Expand Down Expand Up @@ -76,8 +76,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Balances Freezes (r:1 w:0)
// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
fn add_vesting_schedule() -> Weight {
// Minimum execution time: 136_920 nanoseconds.
Weight::from_parts(139_940_000_u64, 0)
// Minimum execution time: 132_770 nanoseconds.
Weight::from_parts(135_120_000_u64, 0)
.saturating_add(T::DbWeight::get().reads(11_u64))
.saturating_add(T::DbWeight::get().writes(6_u64))
}
Expand All @@ -100,8 +100,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: System Events (r:1 w:1)
// Proof Skipped: System Events (max_values: Some(1), max_size: None, mode: Measured)
fn claim() -> Weight {
// Minimum execution time: 63_020 nanoseconds.
Weight::from_parts(64_090_000_u64, 0)
// Minimum execution time: 62_090 nanoseconds.
Weight::from_parts(63_390_000_u64, 0)
.saturating_add(T::DbWeight::get().reads(9_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
Expand Down Expand Up @@ -130,8 +130,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Vesting CounterForVestingSchedules (r:1 w:1)
// Proof: Vesting CounterForVestingSchedules (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
fn cancel_all_vesting_schedules() -> Weight {
// Minimum execution time: 186_680 nanoseconds.
Weight::from_parts(190_229_000_u64, 0)
// Minimum execution time: 184_010 nanoseconds.
Weight::from_parts(187_570_000_u64, 0)
.saturating_add(T::DbWeight::get().reads(13_u64))
.saturating_add(T::DbWeight::get().writes(7_u64))
}
Expand All @@ -146,8 +146,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Vesting Renounced (r:0 w:1)
// Proof: Vesting Renounced (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
fn renounce() -> Weight {
// Minimum execution time: 17_530 nanoseconds.
Weight::from_parts(18_170_000_u64, 0)
// Minimum execution time: 17_470 nanoseconds.
Weight::from_parts(18_120_000_u64, 0)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
Expand Down Expand Up @@ -175,8 +175,8 @@ impl WeightInfo for () {
// Storage: Balances Freezes (r:1 w:0)
// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
fn add_vesting_schedule() -> Weight {
// Minimum execution time: 136_920 nanoseconds.
Weight::from_parts(139_940_000_u64, 0)
// Minimum execution time: 132_770 nanoseconds.
Weight::from_parts(135_120_000_u64, 0)
.saturating_add(RocksDbWeight::get().reads(11_u64))
.saturating_add(RocksDbWeight::get().writes(6_u64))
}
Expand All @@ -199,8 +199,8 @@ impl WeightInfo for () {
// Storage: System Events (r:1 w:1)
// Proof Skipped: System Events (max_values: Some(1), max_size: None, mode: Measured)
fn claim() -> Weight {
// Minimum execution time: 63_020 nanoseconds.
Weight::from_parts(64_090_000_u64, 0)
// Minimum execution time: 62_090 nanoseconds.
Weight::from_parts(63_390_000_u64, 0)
.saturating_add(RocksDbWeight::get().reads(9_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
Expand Down Expand Up @@ -229,8 +229,8 @@ impl WeightInfo for () {
// Storage: Vesting CounterForVestingSchedules (r:1 w:1)
// Proof: Vesting CounterForVestingSchedules (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
fn cancel_all_vesting_schedules() -> Weight {
// Minimum execution time: 186_680 nanoseconds.
Weight::from_parts(190_229_000_u64, 0)
// Minimum execution time: 184_010 nanoseconds.
Weight::from_parts(187_570_000_u64, 0)
.saturating_add(RocksDbWeight::get().reads(13_u64))
.saturating_add(RocksDbWeight::get().writes(7_u64))
}
Expand All @@ -245,8 +245,8 @@ impl WeightInfo for () {
// Storage: Vesting Renounced (r:0 w:1)
// Proof: Vesting Renounced (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
fn renounce() -> Weight {
// Minimum execution time: 17_530 nanoseconds.
Weight::from_parts(18_170_000_u64, 0)
// Minimum execution time: 17_470 nanoseconds.
Weight::from_parts(18_120_000_u64, 0)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
Expand Down
20 changes: 10 additions & 10 deletions pallets/reserve/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
//! Autogenerated weights for pallet_reserve
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `chain-bench-2aa7e463`, CPU: `AMD EPYC 7B13`
//! DATE: 2023-07-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `chain-bench-2a6c49ba`, CPU: `AMD EPYC 7B13`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024

// Executed Command:
Expand Down Expand Up @@ -66,8 +66,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: System Events (r:1 w:1)
// Proof Skipped: System Events (max_values: Some(1), max_size: None, mode: Measured)
fn tip() -> Weight {
// Minimum execution time: 80_790 nanoseconds.
Weight::from_parts(82_780_000_u64, 0)
// Minimum execution time: 79_920 nanoseconds.
Weight::from_parts(81_710_000_u64, 0)
.saturating_add(T::DbWeight::get().reads(7_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
Expand All @@ -84,8 +84,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: System Events (r:1 w:1)
// Proof Skipped: System Events (max_values: Some(1), max_size: None, mode: Measured)
fn spend() -> Weight {
// Minimum execution time: 92_200 nanoseconds.
Weight::from_parts(95_300_000_u64, 0)
// Minimum execution time: 90_430 nanoseconds.
Weight::from_parts(91_690_000_u64, 0)
.saturating_add(T::DbWeight::get().reads(7_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
Expand All @@ -105,8 +105,8 @@ impl WeightInfo for () {
// Storage: System Events (r:1 w:1)
// Proof Skipped: System Events (max_values: Some(1), max_size: None, mode: Measured)
fn tip() -> Weight {
// Minimum execution time: 80_790 nanoseconds.
Weight::from_parts(82_780_000_u64, 0)
// Minimum execution time: 79_920 nanoseconds.
Weight::from_parts(81_710_000_u64, 0)
.saturating_add(RocksDbWeight::get().reads(7_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
Expand All @@ -123,8 +123,8 @@ impl WeightInfo for () {
// Storage: System Events (r:1 w:1)
// Proof Skipped: System Events (max_values: Some(1), max_size: None, mode: Measured)
fn spend() -> Weight {
// Minimum execution time: 92_200 nanoseconds.
Weight::from_parts(95_300_000_u64, 0)
// Minimum execution time: 90_430 nanoseconds.
Weight::from_parts(91_690_000_u64, 0)
.saturating_add(RocksDbWeight::get().reads(7_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
Expand Down
49 changes: 49 additions & 0 deletions pallets/uniques/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[package]
name = "pallet-nodle-uniques"
version = "2.1.0"
authors = ["Eliott Teissonniere <[email protected]>"]
aliXsed marked this conversation as resolved.
Show resolved Hide resolved
edition = "2021"

[features]
default = ["std"]
std = [
"codec/std",
"serde",
"scale-info/std",
"frame-support/std",
"frame-benchmarking/std",
"frame-system/std",
"sp-io/std",
"sp-runtime/std",
"sp-std/std",
"pallet-uniques/std",
"pallet-balances/std",
]
try-runtime = [
"frame-support/try-runtime",
"pallet-uniques/try-runtime"
]
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"pallet-uniques/runtime-benchmarks",
]

[dependencies]
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.152", optional = true, features = ["derive"] }
scale-info = { version = "2.0.1", default-features = false, features = [
"derive",
] }
frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.42" }
frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.42" }
frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.42" }
pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.42" }
sp-io = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.42" }
sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.42" }
sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.42" }
pallet-uniques = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.42" }
support = { path = "../../support" }
[dev-dependencies]
sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.42" }
Loading