mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 18:07:58 +00:00
contracts: Remove state rent (#9669)
* Remove storage rent * Add storage migration * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs * Add migration for deletetion queue * Fix compilation * Increase gas supplied to out_of_gas to be sure that it won't deplete too early * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs Co-authored-by: Parity Bot <admin@parity.io>
This commit is contained in:
committed by
GitHub
parent
13f3e25ebb
commit
522e77e243
@@ -267,11 +267,8 @@ pub struct HostFnWeights<T: Config> {
|
||||
/// Weight of calling `seal_minimum_balance`.
|
||||
pub minimum_balance: Weight,
|
||||
|
||||
/// Weight of calling `seal_tombstone_deposit`.
|
||||
pub tombstone_deposit: Weight,
|
||||
|
||||
/// Weight of calling `seal_rent_allowance`.
|
||||
pub rent_allowance: Weight,
|
||||
/// Weight of calling `seal_contract_deposit`.
|
||||
pub contract_deposit: Weight,
|
||||
|
||||
/// Weight of calling `seal_block_number`.
|
||||
pub block_number: Weight,
|
||||
@@ -300,12 +297,6 @@ pub struct HostFnWeights<T: Config> {
|
||||
/// Weight of calling `seal_terminate`.
|
||||
pub terminate: Weight,
|
||||
|
||||
/// Weight of calling `seal_restore_to`.
|
||||
pub restore_to: Weight,
|
||||
|
||||
/// Weight per delta key supplied to `seal_restore_to`.
|
||||
pub restore_to_per_delta: Weight,
|
||||
|
||||
/// Weight of calling `seal_random`.
|
||||
pub random: Weight,
|
||||
|
||||
@@ -321,9 +312,6 @@ pub struct HostFnWeights<T: Config> {
|
||||
/// Weight of calling `seal_debug_message`.
|
||||
pub debug_message: Weight,
|
||||
|
||||
/// Weight of calling `seal_set_rent_allowance`.
|
||||
pub set_rent_allowance: Weight,
|
||||
|
||||
/// Weight of calling `seal_set_storage`.
|
||||
pub set_storage: Weight,
|
||||
|
||||
@@ -566,8 +554,7 @@ impl<T: Config> Default for HostFnWeights<T> {
|
||||
balance: cost_batched!(seal_balance),
|
||||
value_transferred: cost_batched!(seal_value_transferred),
|
||||
minimum_balance: cost_batched!(seal_minimum_balance),
|
||||
tombstone_deposit: cost_batched!(seal_tombstone_deposit),
|
||||
rent_allowance: cost_batched!(seal_rent_allowance),
|
||||
contract_deposit: cost_batched!(seal_tombstone_deposit),
|
||||
block_number: cost_batched!(seal_block_number),
|
||||
now: cost_batched!(seal_now),
|
||||
weight_to_fee: cost_batched!(seal_weight_to_fee),
|
||||
@@ -577,8 +564,6 @@ impl<T: Config> Default for HostFnWeights<T> {
|
||||
r#return: cost!(seal_return),
|
||||
return_per_byte: cost_byte!(seal_return_per_kb),
|
||||
terminate: cost!(seal_terminate),
|
||||
restore_to: cost!(seal_restore_to),
|
||||
restore_to_per_delta: cost_batched!(seal_restore_to_per_delta),
|
||||
random: cost_batched!(seal_random),
|
||||
deposit_event: cost_batched!(seal_deposit_event),
|
||||
deposit_event_per_topic: cost_batched_args!(seal_deposit_event_per_topic_and_kb, 1, 0),
|
||||
@@ -588,7 +573,6 @@ impl<T: Config> Default for HostFnWeights<T> {
|
||||
1
|
||||
),
|
||||
debug_message: cost_batched!(seal_debug_message),
|
||||
set_rent_allowance: cost_batched!(seal_set_rent_allowance),
|
||||
set_storage: cost_batched!(seal_set_storage),
|
||||
set_storage_per_byte: cost_byte_batched!(seal_set_storage_per_kb),
|
||||
clear_storage: cost_batched!(seal_clear_storage),
|
||||
|
||||
Reference in New Issue
Block a user