forked from jsnbuchanan/crowd-funder-for-time-pwa
adjust to change of confirmed -> amountConfirmed
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user