UNPKG

@spheron/protocol-sdk

Version:
48 lines 1.05 kB
export interface IProvider { providerId: string; spec: string; hostUri: string; certificate: string; paymentsAccepted: string[]; status: string; trust: number; timestamp: number; } export interface Attribute { id: bigint | string; units: bigint | string; } 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; spec: string; walletAddress: string; paymentsAccepted: string[]; hostUri: string; certificate: string; status: ProviderStatus; tier: ProviderTrustTier; joinTimestamp: bigint; rewardWallet: string; } export type Category = 'CPU' | 'GPU'; export type RawProviderAttribute = [id: string, units: string]; //# sourceMappingURL=types.d.ts.map