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.
- ContractCall Result 
- 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
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§
- ContractContext 
- Trait representing the context of a smart contract.
- ContractRef 
- Trait that needs to be implemented by all contract refs.
- OdraContract 
- The contract trait.