Skip to main content

Module call_spec

Module call_spec 

Source
Expand description

Call specification parsing for batch transactions.

Parses call specs in the format: to[:<value>][:<sig>[:<args>]] or to[:<value>][:<0xrawdata>]

Examples:

  • 0x123 - Just an address (empty call)
  • 0x123:0.1ether - ETH transfer
  • 0x123::transfer(address,uint256):0x789,1000 - Contract call with signature
  • 0x123::0xabcdef - Contract call with raw calldata

Structs§

CallSpec
A parsed call specification for batch transactions.

Functions§

parse_ether_or_wei 🔒
Parse a value string that can be in ether notation (e.g., “0.1ether”) or raw wei.