Module script

Module script 

Source
Expand description

Implementations of Scripting cheatcodes.

Structsยง

Broadcast
Wallets
Cloneable wrapper around WalletsInner.
WalletsInner
Contains context for wallet management.

Functionsยง

attach_delegation ๐Ÿ”’
Helper function to attach an EIP-7702 delegation.
broadcast ๐Ÿ”’
Sets up broadcasting from a script using new_origin as the sender.
broadcast_key ๐Ÿ”’
Sets up broadcasting from a script with the sender derived from private_key. Adds this private key to stateโ€™s wallets vector to later be used for signing if broadcast is successful.
next_delegation_nonce ๐Ÿ”’
Returns the next valid nonce for a delegation, considering existing active delegations.
sign_delegation ๐Ÿ”’
Helper function to sign and attach (if needed) an EIP-7702 delegation. Uses the provided nonce, otherwise retrieves and increments the nonce of the EOA.
write_delegation ๐Ÿ”’