Expand description
Call specification parsing for batch transactions.
Parses call specs in the format: to[:<value>][:<sig>[:<args>]] or to[:<value>][:<0xrawdata>]
Examples:
0x1234567890123456789012345678901234567890- Just an address (empty call)0x1234567890123456789012345678901234567890:0.1ether- ETH transfer0x1234567890123456789012345678901234567890::transfer(address,uint256): 0x0987654321098765432109876543210987654321,1000- Contract call with signature0x1234567890123456789012345678901234567890::batch(uint256[],(uint256,uint256)): [1,2],(3,4)- Array and tuple arguments.
0x1234567890123456789012345678901234567890::0x123def- Contract call with raw calldata0x1234567890123456789012345678901234567890:1ether:deposit()- Value + function call
Re-exportsยง
use alloy_network::Network;๐use alloy_primitives::Address;๐use alloy_primitives::Bytes;๐use alloy_primitives::U256;๐use alloy_primitives::hex;๐use alloy_primitives::hex;๐use alloy_provider::Provider;๐use eyre::Result;๐use eyre::WrapErr;๐use eyre::eyre;๐use foundry_cli::utils::parse_ether_value;๐use foundry_cli::utils::parse_function_args;๐use foundry_config::Chain;๐use std::str::FromStr;๐use tempo_primitives::transaction::Call;๐
Structsยง
- Call
Spec - A parsed call specification for batch transactions.
Functionsยง
- split_
call_ ๐args - Split call arguments on top-level commas, respecting nested parentheses, brackets, and quoted strings.