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>
Showing
- substrate/bin/node/runtime/src/lib.rs 4 additions, 23 deletionssubstrate/bin/node/runtime/src/lib.rs
- substrate/frame/contracts/common/src/lib.rs 3 additions, 29 deletionssubstrate/frame/contracts/common/src/lib.rs
- substrate/frame/contracts/fixtures/check_default_rent_allowance.wat 0 additions, 43 deletions...frame/contracts/fixtures/check_default_rent_allowance.wat
- substrate/frame/contracts/fixtures/destroy_and_transfer.wat 1 addition, 1 deletionsubstrate/frame/contracts/fixtures/destroy_and_transfer.wat
- substrate/frame/contracts/fixtures/restoration.wat 0 additions, 72 deletionssubstrate/frame/contracts/fixtures/restoration.wat
- substrate/frame/contracts/fixtures/set_rent.wat 0 additions, 105 deletionssubstrate/frame/contracts/fixtures/set_rent.wat
- substrate/frame/contracts/rpc/runtime-api/src/lib.rs 3 additions, 12 deletionssubstrate/frame/contracts/rpc/runtime-api/src/lib.rs
- substrate/frame/contracts/rpc/src/lib.rs 5 additions, 50 deletionssubstrate/frame/contracts/rpc/src/lib.rs
- substrate/frame/contracts/src/benchmarking/mod.rs 117 additions, 482 deletionssubstrate/frame/contracts/src/benchmarking/mod.rs
- substrate/frame/contracts/src/exec.rs 47 additions, 423 deletionssubstrate/frame/contracts/src/exec.rs
- substrate/frame/contracts/src/lib.rs 30 additions, 197 deletionssubstrate/frame/contracts/src/lib.rs
- substrate/frame/contracts/src/migration.rs 91 additions, 5 deletionssubstrate/frame/contracts/src/migration.rs
- substrate/frame/contracts/src/rent.rs 0 additions, 577 deletionssubstrate/frame/contracts/src/rent.rs
- substrate/frame/contracts/src/schedule.rs 3 additions, 19 deletionssubstrate/frame/contracts/src/schedule.rs
- substrate/frame/contracts/src/storage.rs 32 additions, 190 deletionssubstrate/frame/contracts/src/storage.rs
- substrate/frame/contracts/src/tests.rs 56 additions, 1054 deletionssubstrate/frame/contracts/src/tests.rs
- substrate/frame/contracts/src/wasm/code_cache.rs 0 additions, 16 deletionssubstrate/frame/contracts/src/wasm/code_cache.rs
- substrate/frame/contracts/src/wasm/mod.rs 8 additions, 125 deletionssubstrate/frame/contracts/src/wasm/mod.rs
- substrate/frame/contracts/src/wasm/runtime.rs 65 additions, 212 deletionssubstrate/frame/contracts/src/wasm/runtime.rs
- substrate/frame/contracts/src/weights.rs 683 additions, 996 deletionssubstrate/frame/contracts/src/weights.rs
Please register or sign in to comment