Crate tempo_alloy

Crate tempo_alloy 

Source
Expand description

§Tempo Alloy

Tempo types for Alloy.

§Getting Started

To use tempo-alloy, add the crate as a dependency in your Cargo.toml file:

[dependencies]
tempo-alloy = { git = "https://github.com/tempoxyz/tempo" }

§Development Status

tempo-alloy is currently in development and is not yet ready for production use.

§Usage

To get started, instantiate a provider with TempoNetwork:

use alloy::{
    providers::{Provider, ProviderBuilder},
    transports::TransportError
};
use tempo_alloy::TempoNetwork;

async fn build_provider() -> Result<impl Provider<TempoNetwork>, TransportError> {
    ProviderBuilder::new_with_network::<TempoNetwork>()
        .connect("https://rpc.testnet.tempo.xyz")
        .await
}

Modules§

contracts
Tempo predeployed contracts and bindings.
fillers
Transaction fillers. Transaction fillers for Tempo network.
network 🔒
primitives
Tempo primitive types
provider
Provider traits.
rpc
Tempo RPC types.

Structs§

TempoNetwork
The Tempo specific configuration of [Network] schema and consensus primitives.