[contracts] API host functions: remove `seal_` name prefix + enable aliasing (#12126)
* works but ugly * refactored + renamed host fns * fixed tests * fix benchmarks * updated marco docs * Update frame/contracts/proc-macro/src/lib.rs Co-authored-by:Alexander Theißen <alex.theissen@me.com> * fix for the duplicated prefixed alias bug + test * refactored a bit * fix warnings + try to make macro rustdoc compile * fmt after clearing * examples update + nocompile * add seal_ prefixes to unstable host functions * updated after a review Co-authored-by:
Alexander Theißen <alex.theissen@me.com>
Showing
- substrate/frame/contracts/fixtures/call_runtime.wat 2 additions, 2 deletionssubstrate/frame/contracts/fixtures/call_runtime.wat
- substrate/frame/contracts/proc-macro/src/lib.rs 59 additions, 13 deletionssubstrate/frame/contracts/proc-macro/src/lib.rs
- substrate/frame/contracts/src/benchmarking/mod.rs 11 additions, 11 deletionssubstrate/frame/contracts/src/benchmarking/mod.rs
- substrate/frame/contracts/src/wasm/mod.rs 54 additions, 12 deletionssubstrate/frame/contracts/src/wasm/mod.rs
- substrate/frame/contracts/src/wasm/runtime.rs 136 additions, 124 deletionssubstrate/frame/contracts/src/wasm/runtime.rs
Please register or sign in to comment