Expand description
taskfast bond post <task_id> — auction-task operator posts the on-chain
performance bond in one step (gh#95).
taskfast stake is HA-direct-only (auction tasks reject with
not_high_assurance); the working bond flow for an auction task had to be
hand-run with raw cast. This command drives it end to end:
GET /tasks/:id/stake/quote→required_amount(bond base units).- Resolve the bond ERC-20 token, chain, and TaskBond contract from
GET /config/network(default_stablecoin,task_bond_contract). - Derive
taskRef(16 zero bytes ++ task UUID) + a randomsalt. - ERC-20
allowancepreflight;approvethe TaskBond contract if short. TaskBond.post(token, amount, taskRef, salt)— broadcast + wait receipt.POST /tasks/:id/stake/report {tx_hash}— a claim, not proof.- Poll the quote until
bond_status=posted(server verifiesBondPostedasynchronously).
Token and TaskBond contract both come from the deployment’s network config
(--token/--task-bond override for custom-endpoint development). The
quote does not yet return task_ref/salt, so taskRef is derived
locally per the verifier’s layout. The verifier matches
contract/token/taskRef/amount and does not pin salt, so a random salt is
accepted.
Error mapping delegates to map_api_error (401|403→Auth, 409|422→
Validation). Keystore / signing failures surface as Wallet (exit 5).
Structs§
Enums§
- Bond
Stake Source - clap-friendly mirror of the generated stake-source enums (kept local, like
stake::StakeSource, so codegen needn’t grow clap derives). kebab-case rendersoperator-self/external-backer. - Command