Skip to main content

Module create

Module create 

Source

Re-exportsΒ§

use alloy_chains::Chain; πŸ”’
use alloy_consensus::SignableTransaction; πŸ”’
use alloy_consensus::Signed; πŸ”’
use alloy_dyn_abi::DynSolValue; πŸ”’
use alloy_dyn_abi::JsonAbiExt; πŸ”’
use alloy_json_abi::JsonAbi; πŸ”’
use alloy_network::Ethereum; πŸ”’
use alloy_network::EthereumWallet; πŸ”’
use alloy_network::Network; πŸ”’
use alloy_network::ReceiptResponse; πŸ”’
use alloy_network::TransactionBuilder; πŸ”’
use alloy_primitives::Address; πŸ”’
use alloy_primitives::Bytes; πŸ”’
use alloy_primitives::U256; πŸ”’
use alloy_primitives::hex; πŸ”’
use alloy_primitives::hex; πŸ”’
use alloy_provider::PendingTransactionBuilder; πŸ”’
use alloy_provider::PendingTransactionError; πŸ”’
use alloy_provider::Provider; πŸ”’
use alloy_provider::ProviderBuilder as AlloyProviderBuilder; πŸ”’
use alloy_signer::Signature; πŸ”’
use alloy_signer::Signer; πŸ”’
use clap::Parser; πŸ”’
use clap::ValueHint; πŸ”’
use eyre::Context; πŸ”’
use eyre::ContextCompat; πŸ”’
use eyre::Result; πŸ”’
use forge_verify::RetryArgs; πŸ”’
use forge_verify::VerifierArgs; πŸ”’
use forge_verify::VerifyArgs; πŸ”’
use forge_verify::parse_etherscan_license_type; πŸ”’
use foundry_cli::opts::BuildOpts; πŸ”’
use foundry_cli::opts::EthereumOpts; πŸ”’
use foundry_cli::opts::EtherscanOpts; πŸ”’
use foundry_cli::opts::TransactionOpts; πŸ”’
use foundry_cli::utils::LoadConfig; πŸ”’
use foundry_cli::utils::ResolvedLane; πŸ”’
use foundry_cli::utils::apply_gas_estimate_multiplier; πŸ”’
use foundry_cli::utils::find_contract_artifacts; πŸ”’
use foundry_cli::utils::maybe_print_resolved_lane; πŸ”’
use foundry_cli::utils::parse_constructor_args; πŸ”’
use foundry_cli::utils::read_constructor_args_file; πŸ”’
use foundry_cli::utils::resolve_lane; πŸ”’
use foundry_common::FoundryTransactionBuilder; πŸ”’
use foundry_common::compile; πŸ”’
use foundry_common::provider::ProviderBuilder; πŸ”’
use foundry_common::provider::fee::estimate_eip1559_fees; πŸ”’
use foundry_common::provider::fee::resolve_broadcast_eip1559_fees; πŸ”’
use foundry_common::retry::Retry; πŸ”’
use foundry_common::shell; πŸ”’
use foundry_common::tempo::configurable_account::ConfigurableAccountSigner; πŸ”’
use foundry_common::tempo::mark_sponsored_gas_estimation; πŸ”’
use foundry_common::tempo::maybe_print_fee_token; πŸ”’
use foundry_common::tempo::resolve_and_set_fee_token; πŸ”’
use foundry_compilers::ArtifactId; πŸ”’
use foundry_compilers::artifacts::BytecodeObject; πŸ”’
use foundry_compilers::info::ContractInfo; πŸ”’
use foundry_compilers::utils::canonicalize; πŸ”’
use foundry_config::Config; πŸ”’
use foundry_config::Eip1559FeeEstimatePreset; πŸ”’
use foundry_config::figment; πŸ”’
use foundry_config::figment::Metadata; πŸ”’
use foundry_config::figment::Profile; πŸ”’
use foundry_config::figment::value::Dict; πŸ”’
use foundry_config::figment::value::Map; πŸ”’
use foundry_config::merge_impl_figment_convert; πŸ”’
use foundry_wallets::BrowserWalletOpts; πŸ”’
use foundry_wallets::WalletSigner; πŸ”’
use foundry_wallets::wallet_browser::signer::BrowserSigner; πŸ”’
use serde_json::json; πŸ”’
use std::borrow::Borrow; πŸ”’
use std::marker::PhantomData; πŸ”’
use std::path::PathBuf; πŸ”’
use std::sync::Arc; πŸ”’
use std::time::Duration; πŸ”’
use tempo_alloy::TempoNetwork; πŸ”’
use tempo_alloy::accounts::TempoAccountsWallet; πŸ”’

StructsΒ§

ContractDeploymentTx
Helper which manages the deployment transaction of a smart contract. It wraps a deployment transaction, and retrieves the contract address output by it.
CreateArgs
CLI arguments for forge create.
Deployer
Helper which manages the deployment transaction of a smart contract
DeploymentTxFactory
To deploy a contract to the Ethereum network, a DeploymentTxFactory can be created which manages the Contract bytecode and Application Binary Interface (ABI), usually generated from the Solidity compiler.

EnumsΒ§

ContractDeploymentError
An Error which is thrown when interacting with a smart contract
TempoSigner πŸ”’
How a Tempo deployment is signed, besides a wallet-filled provider or a browser wallet.

FunctionsΒ§

wait_for_deployment πŸ”’
Waits for a deployment transaction’s receipt and returns the deployed address with it.