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.

Macros§

  • 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 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 and get. The key1 and key2 arguments of set and get 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 and get. The key argument of set and get 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 and get. 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§