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.
- 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.
- coreth
coreth
- Coreth types.
- errors
- Custom error types used in avalanche-types.
- evm
evm
- 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.
- message
message
- Definitions of messages that can be sent between nodes.
- node
- Defines the node type.
- packer
- Low-level byte-packing utilities.
- platformvm
- 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 custom
subnet
VM. - subnet_
evm subnet_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.
- wallet
wallet
- Wallets for Avalanche.
- xsvm
xsvm
- An example of a VM.