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_stdandstdto access alloc and core crate types. - uints
 - Unsigned integer utilities.
 - utils
 - General purpose utilities.
 - validator
 - Validator related types.
 
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.
 - 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.
 - Contract
Call Result  - Represents the result of a contract call.
 - Contract
Container  - A wrapper struct for a EntryPointsCaller that is a layer of abstraction between the host and the entry points caller.
 - Contract
Env  - Represents the environment accessible in the contract context.
 - Contract
Register  - A struct representing a contract register that maps an address to a contract.
 - Execution
Env  - Represents the environment accessible in the contract execution context.
 - GasReport
 - A Vector of deploy reports makes a full gas report.
 
Enums§
- Address
Error  - Error that can occur while operating on an Address.
 - Collection
Error  - Error that can occur while operating on a collection.
 - Deploy
Report  - Represents a deploy report, which includes the gas used and the deploy details.
 - Event
Error  - Event-related errors.
 - VmError
 - An internal virtual machine error
 
Constants§
- CASPER_
ERROR_ GENERIC_ NAME  - The name of the generic Casper error used in Odra framework. When we get an error from the Casper VM, we use this name to represent it, because the Casper VM does not provide a specific error name, but the code only.
 
Traits§
- Contract
Context  - Trait representing the context of a smart contract.
 - Contract
Ref  - Trait that needs to be implemented by all contract refs.
 - Odra
Contract  - The contract trait.