[pallet-revive] implement the gas limit API (#6926)
This PR implements the gas limit API, returning the maximum ref_time per block. Solidity contracts only know a single weight dimension and can use this method to get the block ref_time limit. --------- Signed-off-by:Cyrill Leutwiler <bigcyrill@hotmail.com> Signed-off-by:
xermicus <cyrill@parity.io> Co-authored-by: command-bot <>
Showing
- prdoc/pr_6926.prdoc 13 additions, 0 deletionsprdoc/pr_6926.prdoc
- substrate/frame/revive/fixtures/contracts/create_transient_storage_and_call.rs 1 addition, 1 deletion...e/fixtures/contracts/create_transient_storage_and_call.rs
- substrate/frame/revive/fixtures/contracts/gas_limit.rs 34 additions, 0 deletionssubstrate/frame/revive/fixtures/contracts/gas_limit.rs
- substrate/frame/revive/src/benchmarking/mod.rs 11 additions, 0 deletionssubstrate/frame/revive/src/benchmarking/mod.rs
- substrate/frame/revive/src/limits.rs 1 addition, 1 deletionsubstrate/frame/revive/src/limits.rs
- substrate/frame/revive/src/tests.rs 25 additions, 3 deletionssubstrate/frame/revive/src/tests.rs
- substrate/frame/revive/src/wasm/runtime.rs 11 additions, 0 deletionssubstrate/frame/revive/src/wasm/runtime.rs
- substrate/frame/revive/src/weights.rs 482 additions, 459 deletionssubstrate/frame/revive/src/weights.rs
- substrate/frame/revive/uapi/src/host.rs 3 additions, 0 deletionssubstrate/frame/revive/uapi/src/host.rs
- substrate/frame/revive/uapi/src/host/riscv64.rs 5 additions, 0 deletionssubstrate/frame/revive/uapi/src/host/riscv64.rs
Please register or sign in to comment