Crate odra_core

source ·
Expand description

Core of the Odra Framework

Re-exports§

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 and std to access alloc and core crate types.
  • Unsigned integer utilities.
  • General purpose utilities.

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.
  • Data structure for an indexed, iterable collection.
  • An iterator over the elements of a List.
  • Data structure for storing key-value pairs.
  • A module that stores a single value in the storage that can be read or incremented.
  • Data structure for storing a single value.

Enums§

Traits§

  • Trait representing the context of a smart contract.
  • Trait that needs to be implemented by all contract refs.
  • A trait that allows safe unwrapping in the context of a smart contract. On failure the contract does not panic, but reverts calling ContractEnv::revert. Works with Result and Option.

Type Aliases§

  • A Vector of deploy reports makes a full gas report.
  • Represents the result of a contract call.