Skip to main content

Module zone

Module zone 

Source
Expand description

Deposits to Tempo L1 portals and authenticated zone withdrawals.

Re-exportsΒ§

use crate::tempo::tempo_provider; πŸ”’
use alloy_network::EthereumWallet; πŸ”’
use alloy_network::primitives::ReceiptResponse; πŸ”’
use alloy_primitives::Address; πŸ”’
use alloy_primitives::B256; πŸ”’
use alloy_primitives::Bytes; πŸ”’
use alloy_primitives::U256; πŸ”’
use alloy_provider::PendingTransactionBuilder; πŸ”’
use alloy_provider::Provider; πŸ”’
use alloy_provider::ProviderBuilder; πŸ”’
use alloy_rpc_types::BlockId; πŸ”’
use alloy_signer::Signer; πŸ”’
use clap::Parser; πŸ”’
use eyre::Result; πŸ”’
use eyre::WrapErr; πŸ”’
use eyre::ensure; πŸ”’
use foundry_cli::json::print_scalar; πŸ”’
use foundry_cli::opts::RpcOpts; πŸ”’
use foundry_cli::utils::LoadConfig; πŸ”’
use foundry_common::sh_status; πŸ”’
use foundry_common::shell; πŸ”’
use foundry_wallets::WalletOpts; πŸ”’
use foundry_wallets::WalletSigner; πŸ”’
use std::time::Duration; πŸ”’
use tempo_alloy::TempoNetwork; πŸ”’
use tempo_alloy::rpc::TempoTransactionReceipt; πŸ”’
use tempo_contracts::precompiles::ITIP20; πŸ”’
use tempo_contracts::precompiles::PATH_USD_ADDRESS; πŸ”’

ModulesΒ§

abi πŸ”’
Minimal zone client ABI, mirrored from tempoxyz/zones at a1c15e9f.
auth πŸ”’
Zone RPC auth wire format, mirrored from tempoxyz/zones at a1c15e9f.
earn πŸ”’
Callback builders for Earn’s scoped SingleZoneEarnRouter.
encryption πŸ”’
Client-side deposit ECIES, mirrored from tempoxyz/zones at a1c15e9f.
l1 πŸ”’
Parent-chain selection and correlated withdrawal settlement.

StructsΒ§

DepositArgs πŸ”’
TransferArgs πŸ”’
WithdrawArgs πŸ”’
ZoneArgs
Tempo zone operations.

EnumsΒ§

ZoneSubcommand πŸ”’

ConstantsΒ§

MAX_CALLBACK_DATA_SIZE πŸ”’
MAX_CALLBACK_GAS_LIMIT πŸ”’

FunctionsΒ§

print_receipt πŸ”’
submitted_receipt πŸ”’
validate_callback πŸ”’