Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
cmd committed Oct 16, 2023
1 parent de04cdc commit a524042
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 13 deletions.
23 changes: 12 additions & 11 deletions src/lib/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,18 @@ export function create_contract (
fees,
published,
session,
activated : null,
deadline : get_deadline(proposal, published),
expires : null,
funds : [],
outputs : get_spend_outputs(proposal, fees),
state : null,
status : 'published',
terms : proposal,
total : proposal.value + get_pay_total(fees),
tx : null,
witness : []
activated : null,
deadline : get_deadline(proposal, published),
expires : null,
funds : [],
outputs : get_spend_outputs(proposal, fees),
state : null,
status : 'published',
terms : proposal,
total : proposal.value + get_pay_total(fees),
tx : null,
updated_at : published,
witness : []
}
}

Expand Down
1 change: 0 additions & 1 deletion src/lib/deposit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ export function init_deposit (
covenant : null,
expires_at : null,
settled : false,
txid : null,
updated_at : null
}
}
Expand Down
1 change: 1 addition & 0 deletions src/schema/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const data = z.object({
published : stamp,
terms : proposal.data,
total : num,
updated_at : stamp,
witness : witness.array(),
})

Expand Down
1 change: 0 additions & 1 deletion src/schema/deposit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ const data = template.extend({
covenant : covenant.nullable(),
expires_at : stamp.nullable(),
settled : bool,
txid : hash.nullable(),
updated_at : stamp.nullable()
})

Expand Down
1 change: 1 addition & 0 deletions src/types/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export interface ContractData {
terms : ProposalData
total : number
tx : null | TxStatus
updated_at : number,
witness : WitnessEntry[]
}

Expand Down
1 change: 1 addition & 0 deletions src/types/deposit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export interface DepositTemplate {
export interface DepositMeta {
confirmed : boolean
covenant : CovenantData | null
expires_at : number | null
settled : boolean
updated_at : number | null
}
Expand Down

0 comments on commit a524042

Please sign in to comment.