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.
avm
Transaction types for the Avalanche Virtual Machine.
choices
A generic interface for decidable problems.
codec
Implementation of the avalanchego codec.
constants
Constants for the Avalanche network.
corethcoreth
Coreth types.
errors
Custom error types used in avalanche-types.
evmevm
Modules for various EVM functionality.
formatting
Implements the utils/formatting package of avalanchego.
hash
Hashing utilities.
ids
Implements the Avalanche ID type (32-byte).
jsonrpc
Avalanche JSON-RPC API requests and responses.
key
APIs for cryptographic operations on Avalanche.
messagemessage
Definitions of messages that can be sent between nodes.
node
Defines the node type.
packer
Low-level byte-packing utilities.
platformvm
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.
txs
Definitions of Avalanche transaction types.
units
Units for AVAX and other EVM-based subnets.
utils
Utilities for URLs and versioning.
verify
Verifiable trait.
walletwallet
Wallets for Avalanche.
xsvmxsvm
An example of a VM.