@spheron/protocol-sdk
Version:
Spheron Protocol SDK
46 lines • 949 B
TypeScript
export interface IProvider {
spec: string;
hostUri: string;
certificate: string;
paymentsAccepted: any;
status: string;
trust: number;
timestamp: number;
}
export interface Attribute {
id: bigint;
units: bigint;
}
export declare enum ProviderStatus {
Unregistered = 0,
Registered = 1,
Active = 2,
Maintenance = 3,
Suspended = 4,
Deactivated = 5
}
export declare enum ProviderTrustTier {
One = 0,
Two = 1,
Three = 2,
Four = 3,
Five = 4,
Six = 5,
Seven = 6
}
export interface Provider {
providerId: bigint;
name: string;
region: string;
walletAddress: string;
paymentsAccepted: string[];
attributes: string;
hostUri: string;
certificate: string;
status: ProviderStatus;
tier: ProviderTrustTier;
joinTimestamp: bigint;
rewardWallet: string;
}
export type Category = 'CPU' | 'GPU';
//# sourceMappingURL=types.d.ts.map