@@ -187,29 +187,29 @@ Each contract settlement on mainnet will include a valid proof to maintain our r
187
187
* Alice deposits her funds with the contract agent, along with a covenant.
188
188
* Once the deposit is confirmed on-chain, the contract becomes active.
189
189
190
- ** [ settle contract - happy path ] **
190
+ ** Happy Path: Settle on Payout **
191
191
* Alice receives her widget and forgets about Bob.
192
192
* The contract schedule closes automatically on 'payout'.
193
193
* Bob gets the funds, Alice can verify the CVM execution.
194
194
195
- ** [ settle contract - so-so path ] **
195
+ ** Neutral Path: Settle on Refund **
196
196
* Alice doesn't like her widget.
197
197
* Alice and Bob both agree to sign the 'refund' path.
198
198
* Alice gets a partial refund, Bob still keeps his fees.
199
199
200
- ** [ dispute contract - unhappy path ] **
200
+ ** Unhappy Path: Dispute Settlement **
201
201
* Alice didn't get the right widget, and disputes the payout.
202
202
* Carol now has authority to settle the contract.
203
203
* Carol decides on the 'refund' path.
204
204
* Alice gets a partial refund, Bob still keeps his fees.
205
205
206
- ** [ expired contract - ugly path ] **
206
+ ** Ugly Path: Contract Expires **
207
207
* Alice claims she didn't get a widget, and disputes the payout.
208
208
* Carol is on a two-week cruise in the bahamas.
209
209
* The proposal did not include any auto-settlement terms.
210
210
* The contract expires, all deposits are released.
211
211
212
- ** [ expired deposits - horrific path ] **
212
+ ** Worst Path: Deposits Expire **
213
213
* Everything above happens, except the last part.
214
214
* The entire escrow platform goes down in flames.
215
215
* The timelock on deposits eventually expire.
@@ -398,7 +398,7 @@ if (!res.ok) throw new Error('failed')
398
398
export const { contract, deposit } = res .data
399
399
```
400
400
401
- ### Monitor a Contract
401
+ ### Checking a Contract
402
402
403
403
``` ts
404
404
const res = await client .contract .read (cid )
0 commit comments