UNPKG

@aut-labs/sdk

Version:

The TS/JS SDK package aims to make it easy for frontends/backends to integrate with Aut Smart Contracts

83 lines (81 loc) 1.93 kB
import { BaseNFTModel } from "./baseNFTModel"; import { RoleSet } from "./role"; import { AutSocial } from "./social"; export declare enum HubArchetype { NONE = 0, SIZE = 1, REPUTATION = 2, CONVICTION = 3, PERFORMANCE = 4, GROWTH = 5 } export interface HubArchetypeParameters { archetype: HubArchetype; size: number; reputation: number; conviction: number; performance: number; growth: number; } /** * Response type names are: * * aDiffMembersLP: string * bMembersLastLP: string * cAverageRepLP: string * dAverageCommitmentLP: string * ePerformanceLP: string */ export declare class HubReputationStats { aDiffMembersLP: number; bMembersLastLP: number; cAverageRepLP: number; dAverageCommitmentLP: number; ePerformanceLP: number; static mapToObject: (res: [string, string, string, string, string]) => HubReputationStats; } /** * Response type names are: * */ export declare class HubGroupState { lastPeriod: number; TCL: number; TCP: number; k: number; penalty: number; c: number; p: string; commitHash: string; lrUpdatesPerPeriod: number; periodHubParameters: HubReputationStats; static mapToObject: (res: [ string, string, string, number, number, number, string, string, number, string ]) => HubGroupState; } export declare class HubProperties { market: number | string; rolesSets: RoleSet[]; socials: AutSocial[]; minCommitment: number; deployer: string; timestamp: number; archetype?: { default: number; parameters: HubArchetypeParameters; }; constructor(data: HubProperties); } export declare class HubNFT<T = HubProperties> extends BaseNFTModel<T> { constructor(data?: HubNFT<T>); static updateHubNFT(updatedHub: HubNFT): Partial<HubNFT>; }