Add support for generating metadata from runtime wasm files (#1720)

closes #1660
This commit is contained in:
Pavlo Khrystenko
2024-09-02 11:07:50 +02:00
committed by GitHub
parent 290bee3486
commit 3866737b29
14 changed files with 1075 additions and 73 deletions
@@ -0,0 +1,13 @@
#[subxt::subxt(runtime_path = "../../../../artifacts/westend_runtime.wasm")]
mod runtime {}
#[subxt::subxt(runtime_path = "../../../../artifacts/westend_runtime.compact.compressed.wasm")]
mod runtime_compressed {}
fn main() {
use runtime;
use runtime_compressed;
let _ = runtime::system::events::CodeUpdated;
let _ = runtime_compressed::system::events::CodeUpdated;
}