Crate avalanche_types

source ·
Expand description

§avalanche-types

avalanche-types contains the foundational types used in the Avalanche ecosystem in Rust. This include types used by the Avalanche JSON-RPC API and the EVM. Modules for serialization/deserialization, hashing, and codecs are all provided.

The APIs can be used to build a custom, high-performance Rust VM that can run on Avalanche. See the subnet subdirectory for an SDK that makes it easy to build a custom VM in Rust.

avalanche-types can also be used to build Rust clients and tooling within the Avalanche ecosystem.

Modules§

  • avalanchegoavalanchego
    AvalancheGo APIs.
  • Transaction types for the Avalanche Virtual Machine.
  • A generic interface for decidable problems.
  • Implementation of the avalanchego codec.
  • Constants for the Avalanche network.
  • corethcoreth
    Coreth types.
  • Custom error types used in avalanche-types.
  • evmevm
    Modules for various EVM functionality.
  • Implements the utils/formatting package of avalanchego.
  • Hashing utilities.
  • Implements the Avalanche ID type (32-byte).
  • Avalanche JSON-RPC API requests and responses.
  • APIs for cryptographic operations on Avalanche.
  • messagemessage
    Definitions of messages that can be sent between nodes.
  • Defines the node type.
  • Low-level byte-packing utilities.
  • Avalanche platformvm utilities.
  • protoproto
    Generated protobuf stubs and helpers for Avalanche.
  • subnetsubnet
    Avalanche Rust SDK: Types and building blocks to assist with creating a custom subnet VM.
  • subnet_evmsubnet_evm
    Subnet-EVM configuration.
  • Definitions of Avalanche transaction types.
  • Units for AVAX and other EVM-based subnets.
  • Utilities for URLs and versioning.
  • Verifiable trait.
  • walletwallet
    Wallets for Avalanche.
  • xsvmxsvm
    An example of a VM.