Expand description
Interface and related utilities for interaction with the compiled WASM contracts. Contracts have an isomorphic interface which partially maps to this interface, allowing interaction between the runtime and the contracts themselves.
This abstraction layer shouldn’t leak beyond the contract handler.
Structs§
- 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.
- Parameters
- Data that forms part of a contract 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.
- State
- Data associated with a contract that can be retrieved by Applications and Components.
- 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.
- Wrapped
Contract - Just as
locutus_stdlib::Contract
but with some convenience impl. - Wrapped
State - The state for a contract.
Enums§
- Contract
Error - Type of errors during interaction with a contract.
- 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. - WsApi
Error
Traits§
- Contract
Interface - Trait to implement for the contract building.
- TryFrom
TsStd