Expand description
Core of the Odra Framework
Re-exports§
pub use casper_event_standard;
pub use casper_types;
Modules§
- This module provides types and traits for working with entrypoint arguments.
- Safe, overflowing addition and subtraction utilities.
- A module containing callstack-related data structures.
- Encapsulates a set of structures that abstract out a smart contract layout.
- Cryptographic utilities.
- A module that contains structs representing entry points and entry point callers.
- A module that provides the interface for interacting with the host environment.
- Module definition and implementation.
- Common API for
no_std
andstd
to access alloc and core crate types. - Unsigned integer utilities.
- General purpose utilities.
Macros§
- Creates an Odra module that stores a values in a given dictionary. The module has two methods:
set
andget
. Thekey
argument ofset
andget
is base64-encoded and then used as a dictionary key. - Creates an Odra module that stores a values in a given dictionary. The module has two methods:
set
andget
. Thekey1
andkey2
arguments ofset
andget
are converted to bytes, combined into a single bytes vector, and finally hex-encoded and then used as a dictionary key. - Creates an Odra module that stores a values in a given dictionary. The module has two methods:
set
andget
. Thekey
argument ofset
andget
is used as a dictionary key. - Creates an Odra module that stores a single value under a given named key. The module has two methods:
set
andget
. If the value is not set and an error is passed as the fourth argument,get
will revert with the provided error.
Structs§
- Represents a call definition, which includes the method name, runtime arguments, attached value, and mutability flag.
- Represents the result of a contract call.
- A wrapper struct for a EntryPointsCaller that is a layer of abstraction between the host and the entry points caller.
- Represents the environment accessible in the contract context.
- A struct representing a contract register that maps an address to a contract.
- Represents the environment accessible in the contract execution context.
- A Vector of deploy reports makes a full gas report.
Enums§
- Error that can occur while operating on an Address.
- Error that can occur while operating on a collection.
- Represents a deploy report, which includes the gas used and the deploy details.
- Event-related errors.
- An internal virtual machine error
Traits§
- A trait for types that can be converted into an
Address
. - Trait representing the context of a smart contract.
- Trait that needs to be implemented by all contract refs.
- The contract trait.