Crate odra_core

Source
Expand description

Core of the Odra Framework

Re-exports§

pub use casper_event_standard;
pub use casper_types;

Modules§

args
This module provides types and traits for working with entrypoint arguments.
arithmetic
Safe, overflowing addition and subtraction utilities.
callstack
A module containing callstack-related data structures.
contract_def
Encapsulates a set of structures that abstract out a smart contract layout.
crypto
Cryptographic utilities.
entry_point_callback
A module that contains structs representing entry points and entry point callers.
host
A module that provides the interface for interacting with the host environment.
module
Module definition and implementation.
prelude
Common API for no_std and std to access alloc and core crate types.
uints
Unsigned integer utilities.
utils
General purpose utilities.

Macros§

base64_encoded_key_value_storage
Creates an Odra module that stores a values in a given dictionary.
compound_key_value_storage
Creates an Odra module that stores a values in a given dictionary.
key_value_storage
Creates an Odra module that stores a values in a given dictionary. The module has two methods: set and get. The key argument of set and get is used as a dictionary key.
single_value_storage
Creates an Odra module that stores a single value under a given named key.

Structs§

CallDef
Represents a call definition, which includes the method name, runtime arguments, attached value, and mutability flag.
ContractCallResult
Represents the result of a contract call.
ContractContainer
A wrapper struct for a EntryPointsCaller that is a layer of abstraction between the host and the entry points caller.
ContractEnv
Represents the environment accessible in the contract context.
ContractRegister
A struct representing a contract register that maps an address to a contract.
ExecutionEnv
Represents the environment accessible in the contract execution context.
GasReport
A Vector of deploy reports makes a full gas report.

Enums§

AddressError
Error that can occur while operating on an Address.
CollectionError
Error that can occur while operating on a collection.
DeployReport
Represents a deploy report, which includes the gas used and the deploy details.
EventError
Event-related errors.
VmError
An internal virtual machine error

Traits§

Addressable
A trait for types that can be converted into an Address.
ContractContext
Trait representing the context of a smart contract.
ContractRef
Trait that needs to be implemented by all contract refs.
OdraContract
The contract trait.