Skip to main content

Module cast

Module cast 

Source
Expand description

taskfast cast — general-purpose contract interaction (gh#101).

Drop-in replacement for the foundry cast invocations that operator runbooks and provisioning scripts still depend on:

  • cast call <addr> '<sig>' [args…] → read via eth_call, decoded.
  • cast send <addr> '<sig>' [args…] → sign + broadcast + receipt.
  • cast rpc <method> [json-params] → raw JSON-RPC passthrough.

Signatures are parsed at runtime (alloy-json-abi human-readable grammar, which also accepts the cast-style paused()(bool) return-type shorthand), args are coerced per declared Solidity type, and calldata is encoded with the 4-byte selector via alloy-dyn-abi — no compile-time sol! bindings, so any contract works.

Deliberately out of scope (YAGNI, per gh#101): abi-encode / abi-decode / keccak / 4byte conveniences, --block on call (everything in-repo reads latest; add an additive eth_call_at later if needed), --value on send (every replaced invocation targets a non-payable function).

Structs§

CallArgs
RpcArgs
SendArgs

Enums§

Command

Functions§

run