adjust to change of confirmed -> amountConfirmed

This commit is contained in:
2023-03-27 20:37:22 -06:00
parent fed1ec6397
commit 00182443fd
3 changed files with 14 additions and 11 deletions

View File

@@ -4,13 +4,15 @@ export const SERVICE_ID = "endorser.ch";
export interface AgreeVerifiableCredential {
"@context": string;
"@type": string;
// "any" because arbitrary objects can be subject of agreement
// eslint-disable-next-line @typescript-eslint/no-explicit-any
object: Record<any, any>;
}
export interface GiveServerRecord {
agentDid: string;
amount: number;
confirmed: number;
amountConfirmed: number;
description: string;
fullClaim: GiveVerifiableCredential;
handleId: string;
@@ -20,10 +22,11 @@ export interface GiveServerRecord {
}
export interface GiveVerifiableCredential {
"@context": string;
"@context"?: string; // optional when embedded, eg. in an Agree
"@type": string;
agent: { identifier: string };
description?: string;
identifier?: string;
object: { amountOfThisGood: number; unitCode: string };
recipient: { identifier: string };
}