pchain_sdk/
lib.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//! The ParallelChain Mainnet Contract SDK (pchain-sdk) provides Rust structs, functions, types, and macros that 
7//! aid with the development of smart contracts executable in WebAssembly (WASM) engines implementing 
8//! the ParallelChain Mainnet Contract Binary Interface Subprotocol.
9
10#![cfg_attr(
11    feature = "cargo-clippy",
12    allow(
13        clippy::new_without_default
14    )
15)]
16
17pub mod blockchain;
18
19pub mod crypto;
20
21mod exports;
22
23mod imports;
24
25pub mod internal;
26pub use internal::*;
27
28pub mod method;
29pub use method::{ContractMethodInput, ContractMethodOutput};
30
31pub mod network;
32
33pub mod storage;
34pub use storage::{Storable, StoragePath, Cacher};
35
36pub mod transaction;
37
38pub mod collections;
39
40pub use pchain_sdk_macros::{
41    contract,
42    contract_methods,
43    contract_field,
44    call,
45    use_contract,
46};