[pallet-revive] implement the gas price API (#6954)
This PR implements the EVM gas price syscall API method. Currently this is a compile time constant in revive, but in the EVM it is an opcode. Thus we should provide an opcode for this in the pallet. --------- Signed-off-by:Cyrill Leutwiler <bigcyrill@hotmail.com> Signed-off-by:
xermicus <cyrill@parity.io> Co-authored-by: command-bot <>
parent
cbeb66fb
Showing
- prdoc/pr_6954.prdoc 13 additions, 0 deletionsprdoc/pr_6954.prdoc
- substrate/frame/revive/fixtures/contracts/gas_price.rs 34 additions, 0 deletionssubstrate/frame/revive/fixtures/contracts/gas_price.rs
- substrate/frame/revive/src/benchmarking/mod.rs 12 additions, 0 deletionssubstrate/frame/revive/src/benchmarking/mod.rs
- substrate/frame/revive/src/tests.rs 19 additions, 1 deletionsubstrate/frame/revive/src/tests.rs
- substrate/frame/revive/src/wasm/runtime.rs 12 additions, 0 deletionssubstrate/frame/revive/src/wasm/runtime.rs
- substrate/frame/revive/src/weights.rs 472 additions, 469 deletionssubstrate/frame/revive/src/weights.rs
- substrate/frame/revive/uapi/src/host.rs 4 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