[pallet-revive] implement the call data load API (#6835)
This PR implements the call data load API akin to [how it works on
ethereum](https://www.evm.codes/?fork=cancun#35).
There will also be a second PR to adjust the input function to resemble
the call data copy opcode on EVM.
---------
Signed-off-by:
Cyrill Leutwiler <bigcyrill@hotmail.com>
Co-authored-by: command-bot <>
Showing
- prdoc/pr_6835.prdoc 12 additions, 0 deletionsprdoc/pr_6835.prdoc
- substrate/frame/revive/fixtures/contracts/call_data_load.rs 44 additions, 0 deletionssubstrate/frame/revive/fixtures/contracts/call_data_load.rs
- substrate/frame/revive/src/benchmarking/mod.rs 15 additions, 0 deletionssubstrate/frame/revive/src/benchmarking/mod.rs
- substrate/frame/revive/src/tests.rs 42 additions, 0 deletionssubstrate/frame/revive/src/tests.rs
- substrate/frame/revive/src/wasm/runtime.rs 34 additions, 0 deletionssubstrate/frame/revive/src/wasm/runtime.rs
- substrate/frame/revive/src/weights.rs 450 additions, 431 deletionssubstrate/frame/revive/src/weights.rs
- substrate/frame/revive/uapi/src/host.rs 15 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