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
- avalanchego
avalanchego
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.
- coreth
coreth
Coreth types. - Custom error types used in avalanche-types.
- evm
evm
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.
- message
message
Definitions of messages that can be sent between nodes. - Defines the node type.
- Low-level byte-packing utilities.
- Avalanche platformvm utilities.
- proto
proto
Generated protobuf stubs and helpers for Avalanche. - subnet
subnet
Avalanche Rust SDK: Types and building blocks to assist with creating a customsubnet
VM. - subnet_evm
subnet_evm
Subnet-EVM configuration. - Definitions of Avalanche transaction types.
- Units for AVAX and other EVM-based subnets.
- Utilities for URLs and versioning.
- Verifiable trait.
- wallet
wallet
Wallets for Avalanche. - xsvm
xsvm
An example of a VM.