@minespider/core-bundles
Version:
A high-level SDK for Minespider Core. It abstract the low-level features from the core SDK for a more high-level usage such as DAPPs. Some of the features are 1:1 with the SDK some others abstract some low-level interactions or multiple actions
28 lines • 1.53 kB
TypeScript
import { CertificateHistoryResponseEntryInterface } from "@minespider/core-sdk";
export interface CertificateCacheServiceAdapterInterface {
getCertificate(uuid: string, privateKey: string): Promise<any>;
getCertificates(ownerUuid: string, privateKey: string): Promise<any>;
registerClient(clientDTO: ClientDTO): Promise<void>;
getCertificateHistoryByOwner(entityId: string): Promise<CertificateHistoryResponseEntryInterface[]>;
getCertificateHistoryByCertificate(certificateUuid: string, parentsDepth?: number, childrenDepth?: number): Promise<CertificateHistoryResponseEntryInterface[]>;
}
export interface ClientDTO {
uuid: string;
type: number;
mnemonic: string;
publicKey: string;
}
export interface CertificateHistoryResponseInterface {
meta: object;
content: CertificateHistoryResponseEntryInterface[];
}
export declare class CertificateCacheServiceAdapter {
private certificateCacheServiceEndpoint;
constructor(certificateCacheServiceEndpoint: string);
getCertificate(uuid: string, privateKey: string): Promise<any>;
getCertificates(ownerUuid: string, privateKey: string): Promise<any>;
registerClient(clientDTO: ClientDTO): Promise<void>;
getCertificateHistoryByOwner(entityId: string): Promise<CertificateHistoryResponseEntryInterface[]>;
getCertificateHistoryByCertificate(uuid: string, parentsDepth?: number, childrenDepth?: number): Promise<CertificateHistoryResponseEntryInterface[]>;
}
//# sourceMappingURL=CertificateCacheServiceAdapter.d.ts.map