Skip to main content

Module write

Module write 

Source
Expand description

Helpers for writing a proposal directory under the contracts/deployments/proposals/ convention.

Modules§

ISafe
Module containing a contract’s types and functions.

Structs§

WriteProposalParams
Parameters for writing the full StakeTableV3 proposal directory.

Functions§

default_rpc_url
Map well-known chain IDs to their public RPC endpoints.
network_name
Map well-known chain IDs to their network names.
proposal_dir
Compute the convention directory: <proposals_root>/<network>/<YYYYMMDD>-<slug>/
resolve_network
Resolve network name: explicit override, then chain-id map, else error.
resolve_toml_phases 🔒
Resolve schedule/execute Safe addresses and nonces, then compute all hashes.
safe_nonce 🔒
Query the Safe nonce on-chain.
validate_path_component
Reject path components that could escape the proposals root.
write_stake_table_v3_proposal_dir
Create the proposal directory, write schedule.json, execute.json, and proposal.toml.