freenet_stdlib

Module 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§

ApplicationMessage
ClientResponse
CodeHash
Contract
A complete contract specification requires a parameters section and a contract section.
ContractCode
The executable contract.
ContractInstanceId
The key representing the hash of the contract executable code hash and a set of parameters.
ContractKey
A complete key specification, that represents a cryptographic hash that identifies the contract.
Delegate
DelegateCode
Executable delegate
DelegateContext
DelegateInterfaceResult
DelegateKey
GetSecretRequest
GetSecretResponse
NotificationMessage
Parameters
Data that forms part of a contract or a delegate along with the WebAssembly code.
RelatedContract
A contract related to an other contract and the specification of the kind of update notifications that should be received by this contract.
RelatedContracts
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.
SecretsId
SetSecretRequest
State
Data associated with a contract that can be retrieved by Applications and Delegates.
StateDelta
Represents a modification to some state - similar to a diff in source code.
StateSummary
Summary of State changes.
UpdateModification
An update to a contract state or any required related contracts to update that state.
UserInputRequest
UserInputResponse
WrappedContract
Just as freenet_stdlib::Contract but with some convenience impl.
WrappedState
The state for a contract.

Enums§

APIVersion
ContractContainer
Wrapper that allows contract versioning. This enum maintains the types of contracts that are allowed and their corresponding version.
ContractError
Type of errors during interaction with a contract.
ContractWasmAPIVersion
Contains the different versions available for WASM contracts.
DelegateContainer
DelegateError
Type of errors during interaction with a delegate.
DelegateWasmAPIVersion
Contains the different versions available for WASM delegates.
InboundDelegateMsg
OutboundDelegateMsg
RelatedMode
Specification of the notifications of interest from a related contract.
UpdateData
Update notifications for a contract or a related contract.
ValidateResult
The result of calling the ContractInterface::validate_state function.

Traits§

ContractInterface
Trait to implement for the contract building.
DelegateInterface
A Delegate is a webassembly code designed to act as an agent for the user on Freenet. Delegates can:

Attribute Macros§

contract
Generate the necessary code for the WASM runtime to interact with your contract ergonomically and safely.
delegate
Generate the necessary code for the WASM runtime to interact with your contract ergonomically and safely.