[pallet-revive] implement the base fee API (#6964)
This PR implements the base fee syscall API method. Currently this is implemented as a compile time constant in the revive compiler, returning 0. However, since this is an opocde, if we ever need to implement it for compatibility reasons with [EIP-1559](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1559.md), it would break already deployed contracts. Thus we provide a syscall method instead. --------- Signed-off-by:xermicus <cyrill@parity.io> Signed-off-by:
Cyrill Leutwiler <bigcyrill@hotmail.com> Co-authored-by: command-bot <>
Showing
- prdoc/pr_6964.prdoc 15 additions, 0 deletionsprdoc/pr_6964.prdoc
- substrate/frame/revive/fixtures/contracts/base_fee.rs 36 additions, 0 deletionssubstrate/frame/revive/fixtures/contracts/base_fee.rs
- substrate/frame/revive/src/benchmarking/mod.rs 12 additions, 0 deletionssubstrate/frame/revive/src/benchmarking/mod.rs
- substrate/frame/revive/src/tests.rs 18 additions, 0 deletionssubstrate/frame/revive/src/tests.rs
- substrate/frame/revive/src/wasm/runtime.rs 17 additions, 0 deletionssubstrate/frame/revive/src/wasm/runtime.rs
- substrate/frame/revive/src/weights.rs 495 additions, 464 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