forked from trent_larson/crowd-funder-for-time-pwa
add details on contact-specific page
This commit is contained in:
30
src/libs/endorserServer.ts
Normal file
30
src/libs/endorserServer.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
export const SERVICE_ID = "endorser.ch";
|
||||
|
||||
export interface GiveServerRecord {
|
||||
agentDid: string;
|
||||
amount: number;
|
||||
confirmed: number;
|
||||
description: string;
|
||||
fullClaim: GiveVerifiableCredential;
|
||||
handleId: string;
|
||||
issuedAt: string;
|
||||
recipientDid: string;
|
||||
unit: string;
|
||||
}
|
||||
|
||||
export interface GiveVerifiableCredential {
|
||||
"@context": string;
|
||||
"@type": string;
|
||||
agent: { identifier: string };
|
||||
description?: string;
|
||||
object: { amountOfThisGood: number; unitCode: string };
|
||||
recipient: { identifier: string };
|
||||
}
|
||||
|
||||
export interface RegisterVerifiableCredential {
|
||||
"@context": string;
|
||||
"@type": string;
|
||||
agent: { identifier: string };
|
||||
object: string;
|
||||
recipient: { identifier: string };
|
||||
}
|
||||
Reference in New Issue
Block a user