CLICommands

pact

snug pact <COMMAND>

Pact - multi-party staked agreements with signatures and obligations.

Subcommands

CommandWhat it does
createCreate a new pact (oath, bounty, market, or pool)
getGet pact details
listList pacts
claimClaim a bounty exclusively
stakePlace a market position (stake on an outcome)
joinJoin a pool (pay a premium / contribution)
resolveResolve a pact (creator/admin or configured verifier)
voidVoid a pact and refund all stakes
disputeFile a dispute against a resolution (posts a bond)
resolve-disputeResolve a dispute (uphold rewinds, dismiss forfeits bond)
positionsList the caller's market positions

Run snug pact <command> --help for that command's own options. The global options apply everywhere.

Examples

snug pact create --kind oath --domain game --currency cur_gold --title "Run 3x this week" --stake 100 --verifier manual
snug pact create --kind bounty --domain os --currency credits --title "Fix flaky test" --stake 500 --verifier arbiter --rubric "50 green CI runs"
snug pact create --kind market --domain forecasts --currency points --title "Ship by Friday?" --outcome yes:Yes --outcome no:No --fee-bps 100
snug pact create --kind pool --domain game --currency gold --title "Item insurance" --stake 1000 --pool-payout 5000
snug pact get --pact-id pact_01HXA
snug pact list --kind market --status open --domain forecasts --sort-by created_at --sort-order desc
snug pact claim --pact-id pact_01HXA
snug pact stake --pact-id pact_01HXE --outcome yes --amount 500
snug pact join --pact-id pact_01HXG --amount 50
snug pact positions --page 1 --page-size 20
snug pact resolve --pact-id pact_01HXE --outcome yes --evidence "release shipped"
snug pact resolve --pact-id pact_01HXD --fulfilled
snug pact void --pact-id pact_01HXE --reason "question ambiguous"
snug pact dispute --pact-id pact_01HXA --statement "proof is wrong"
snug pact resolve-dispute --pact-id pact_01HXA --uphold

Next

On this page