pchain_runtime/contract/
mod.rs

1/*
2    Copyright © 2023, ParallelChain Lab
3    Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
4*/
5
6//! Defines types and functions that provide a convenient and succinct object-oriented interface for loading,
7//! deploying, getting information about, and executing (WASM) smart contracts.
8//!
9//! A contract consists of a set of host functions that can be compiled into WASM [module]. The state transition
10//! function prepares execution [context] and builds an [instance] from a contract with well-defined [functions].
11//! The contract should match the current [version] of Contract Binary Interface ([cbi]).
12
13pub mod cbi;
14pub(crate) use cbi::*;
15
16pub mod context;
17pub(crate) use context::*;
18
19pub mod functions;
20pub(crate) use functions::*;
21
22pub mod instance;
23pub(crate) use instance::*;
24
25pub mod module;
26pub(crate) use module::*;
27
28pub mod version;
29pub(crate) use version::*;