1c0e57d984
This commit systematically rebrands various references from Parity Technologies' Polkadot/Substrate ecosystem to PezkuwiChain within the kurdistan-sdk. Key changes include: - Updated external repository URLs (zombienet-sdk, parity-db, parity-scale-codec, wasm-instrument) to point to pezkuwichain forks. - Modified internal documentation and code comments to reflect PezkuwiChain naming and structure. - Replaced direct references to with or specific paths within the for XCM, Pezkuwi, and other modules. - Cleaned up deprecated issue and PR references in various and files, particularly in and modules. - Adjusted image and logo URLs in documentation to point to PezkuwiChain assets. - Removed or rephrased comments related to external Polkadot/Substrate PRs and issues. This is a significant step towards fully customizing the SDK for the PezkuwiChain ecosystem.
28 lines
1.4 KiB
Rust
28 lines
1.4 KiB
Rust
//! # Custom Host Functions
|
|
//!
|
|
//! Host functions are functions that the wasm instance can use to communicate with the node. Learn
|
|
//! more about this in [`crate::reference_docs::wasm_meta_protocol`].
|
|
//!
|
|
//! ## Finding Host Functions
|
|
//!
|
|
//! To declare a set of functions as host functions, you need to use the `#[runtime_interface]`
|
|
//! ([`pezsp_runtime_interface`]) attribute macro. The most notable set of host functions are those
|
|
//! that allow the runtime to access the chain state, namely [`pezsp_io::storage`]. Some other notable
|
|
//! host functions are also defined in [`pezsp_io`].
|
|
//!
|
|
//! ## Adding New Host Functions
|
|
//!
|
|
//! > Adding a new host function is a big commitment and should be done with care. Namely, the nodes
|
|
//! > in the network need to support all host functions forever in order to be able to sync
|
|
//! > historical blocks.
|
|
//!
|
|
//! Adding host functions is only possible when you are using a node-template, so that you have
|
|
//! access to the boilerplate of building your node.
|
|
//!
|
|
//! A group of host functions can always be grouped to gether as a tuple:
|
|
#![doc = docify::embed!("../../bizinikiwi/primitives/io/src/lib.rs", BizinikiwiHostFunctions)]
|
|
//!
|
|
//! The host functions are attached to the node side's [`pezsc_executor::WasmExecutor`]. For example in
|
|
//! the minimal template, the setup looks as follows:
|
|
#![doc = docify::embed!("../../templates/minimal/node/src/service.rs", FullClient)]
|