Skip to main content

Module mine

Module mine 

Source

Re-exportsยง

use crate::cmd::send::cast_send_raw; ๐Ÿ”’
use crate::tempo; ๐Ÿ”’
use crate::tx::CastTxSender; ๐Ÿ”’
use crate::tx::SendTxOpts; ๐Ÿ”’
use crate::tx::TxParams; ๐Ÿ”’
use crate::tx::apply_poll_interval; ๐Ÿ”’
use crate::tx::fill_transaction_gas_fees; ๐Ÿ”’
use alloy_network::EthereumWallet; ๐Ÿ”’
use alloy_primitives::Address; ๐Ÿ”’
use alloy_primitives::B256; ๐Ÿ”’
use alloy_primitives::keccak256; ๐Ÿ”’
use alloy_signer::Signer; ๐Ÿ”’
use eyre::Result; ๐Ÿ”’
use foundry_cli::utils::get_chain; ๐Ÿ”’
use foundry_common::FoundryTransactionBuilder; ๐Ÿ”’
use foundry_common::provider::ProviderBuilder; ๐Ÿ”’
use foundry_evm::hardfork::TempoHardfork; ๐Ÿ”’
use rand::RngCore; ๐Ÿ”’
use rand::SeedableRng; ๐Ÿ”’
use rand::rngs::StdRng; ๐Ÿ”’
use std::time::Duration; ๐Ÿ”’
use std::time::Instant; ๐Ÿ”’
use tempo_alloy::TempoNetwork; ๐Ÿ”’
use tempo_alloy::contracts::precompiles::ADDRESS_REGISTRY_ADDRESS; ๐Ÿ”’
use tempo_alloy::contracts::precompiles::IAddressRegistry; ๐Ÿ”’
use tempo_primitives::MasterId; ๐Ÿ”’
use tempo_primitives::TempoAddressExt; ๐Ÿ”’
use tempo_primitives::UserTag; ๐Ÿ”’

Structsยง

Output ๐Ÿ”’
RegisterMessages ๐Ÿ”’
Command-specific wording for register_virtual_master.

Constantsยง

POW_BYTES ๐Ÿ”’
Number of leading zero bytes a TIP-1022 registration hash must have.

Functionsยง

derive ๐Ÿ”’
find_salt ๐Ÿ”’
Validates master and returns the registration to submit: salt after checking its proof of work, or a freshly mined salt together with the time it took to find it.
has_pow ๐Ÿ”’
mine ๐Ÿ”’
register_virtual_master ๐Ÿ”’
Submits registerVirtualMaster(salt) from master and returns the transaction hash.
run ๐Ÿ”’