You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
701 B
30 lines
701 B
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 };
|
|
}
|
|
|