Expand description
Tempo utilities: fee token parsing and named nonce lanes (2D nonces).
A “lane” is a friendly alias for a Tempo nonce_key (a [U256]). Lanes are defined in a
shared TOML file (default tempo.lanes.toml at the project root) so a team can reserve
independent sequential nonce streams for parallel scripts without coordinating on raw
U256 selectors.
Example tempo.lanes.toml:
deploy = 1
ops = 2
payments = 3cast erc20 transfer ... --tempo.lane paymentsStructs§
- Resolved
Lane - Result of resolving a
--tempo.lane <name>argument against a lanes file.
Constants§
- DEFAULT_
LANES_ FILE - Default name of the lanes file at the project root.
Functions§
- load_
lanes - Loads a TOML lanes file from
path. - maybe_
print_ resolved_ lane - Prints
lane: <name> (nonce_key=<key>, nonce=<n>)to stderr (so it doesn’t pollute stdout for commands likecast mktxwhose stdout is meant to be piped), giving visibility into which 2D nonce lane was used. - parse_
fee_ token_ address - Parses a fee token address.
- parse_
lanes 🔒 - resolve_
lane - Resolves
opts.laneagainst a lanes file and writes the resultingnonce_keytoopts.nonce_key. Returns the resolved lane (orNoneif no--tempo.lanewas set). - token_
id_ 🔒to_ address