Expand description
Locutus stdlib prelude.
Re-exports§
pub use bincode;
pub use blake3;
pub use serde_json;
pub use tracing;
pub use tracing_subscriber;
Modules§
- encoding
- Helper types for interaction between wasm and host boundaries.
Structs§
- Application
Message - Bincode
Encoder - Client
Response - Code
Hash - Contract
- A complete contract specification requires a
parameters
section and acontract
section. - Contract
Code - The executable contract.
- Contract
Instance Id - The key representing the hash of the contract executable code hash and a set of
parameters
. - Contract
Key - A complete key specification, that represents a cryptographic hash that identifies the contract.
- Delegate
- Delegate
Code - Executable delegate
- Delegate
Context - Delegate
Interface Result - Delegate
Key - GetSecret
Request - GetSecret
Response - Json
Encoder - Notification
Message - Parameters
- Data that forms part of a contract or a delegate along with the WebAssembly code.
- Related
Contract - A contract related to an other contract and the specification of the kind of update notifications that should be received by this contract.
- Related
Contracts - 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.
- Related
Contracts Container - Secrets
Id - SetSecret
Request - State
- Data associated with a contract that can be retrieved by Applications and Delegates.
- State
Delta - Represents a modification to some state - similar to a diff in source code.
- State
Summary - Summary of
State
changes. - Update
Modification - An update to a contract state or any required related contracts to update that state.
- User
Input Request - User
Input Response - Wrapped
Contract - Just as
freenet_stdlib::Contract
but with some convenience impl. - Wrapped
State - The state for a contract.
Enums§
- APIVersion
- Contract
Container - Wrapper that allows contract versioning. This enum maintains the types of contracts that are allowed and their corresponding version.
- Contract
Error - Type of errors during interaction with a contract.
- Contract
WasmAPI Version - Contains the different versions available for WASM contracts.
- Delegate
Container - Delegate
Error - Type of errors during interaction with a delegate.
- Delegate
WasmAPI Version - Contains the different versions available for WASM delegates.
- Inbound
Delegate Msg - Outbound
Delegate Msg - Related
Mode - Specification of the notifications of interest from a related contract.
- Update
Data - Update notifications for a contract or a related contract.
- Validate
Result - The result of calling the
ContractInterface::validate_state
function. - Version
Error
Traits§
- Contract
Interface - Trait to implement for the contract building.
- Delegate
Interface - A Delegate is a webassembly code designed to act as an agent for the user on Freenet. Delegates can:
- Encoder
- Encoding
Adapter - A contract state and it’s associated types which can be encoded and decoded via an specific encoder.