[pallet-revive] implement the ref_time_left API (#6908)
This PR implements the ref_time_left API method. Solidity knows only a single "gas" dimension; Solidity contracts will use this to query the gas left. --------- Signed-off-by:xermicus <cyrill@parity.io> Signed-off-by:
Cyrill Leutwiler <bigcyrill@hotmail.com> Co-authored-by: command-bot <>
Showing
- prdoc/pr_6908.prdoc 12 additions, 0 deletionsprdoc/pr_6908.prdoc
- substrate/frame/revive/fixtures/contracts/ref_time_left.rs 34 additions, 0 deletionssubstrate/frame/revive/fixtures/contracts/ref_time_left.rs
- substrate/frame/revive/src/benchmarking/mod.rs 12 additions, 0 deletionssubstrate/frame/revive/src/benchmarking/mod.rs
- substrate/frame/revive/src/tests.rs 21 additions, 0 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 464 additions, 453 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