Module freenet_stdlib::prelude
source · Expand description
Locutus stdlib prelude.
Re-exports
pub use super::WasmLinearMem;
pub use bincode;
pub use blake3;
pub use serde_json;
pub use tracing;
pub use tracing_subscriber;
Structs
- A complete contract specification requires a
parameters
section and acontract
section. - The executable contract.
- The key representing the hash of the contract executable code hash and a set of
parameters
. - A complete key specification, that represents a cryptographic hash that identifies the contract.
- Executable delegate
- Data that forms part of a contract or a delegate along with the WebAssembly code.
- A contract related to an other contract and the specification of the kind of update notifications that should be received by this contract.
- The contracts related to a parent or root contract. Tipically this means contracts which state requires to be verified or integrated in some way with the parent contract.
- Data associated with a contract that can be retrieved by Applications and Delegates.
- Represents a modification to some state - similar to a diff in source code.
- Summary of
State
changes. - An update to a contract state or any required related contracts to update that state.
- Just as
freenet_stdlib::Contract
but with some convenience impl. - The state for a contract.
Enums
- Wrapper that allows contract versioning. This enum maintains the types of contracts that are allowed and their corresponding version.
- Type of errors during interaction with a contract.
- Contains the different versions available for WASM contracts.
- Type of errors during interaction with a delegate.
- Contains the different versions available for WASM delegates.
- Specification of the notifications of interest from a related contract.
- Update notifications for a contract or a related contract.
- The result of calling the
ContractInterface::validate_state
function.
Traits
- Trait to implement for the contract building.
- A Delegate is a webassembly code designed to act as an agent for the user on Freenet. Delegates can:
Attribute Macros
- Generate the necessary code for the WASM runtime to interact with your contract ergonomically and safely.
- Generate the necessary code for the WASM runtime to interact with your contract ergonomically and safely.