UNPKG

@algofi/js-sdk

Version:

The official Algofi JavaScript SDK

32 lines (31 loc) 1.11 kB
import GovernanceClient from "./governanceClient"; export default class UserAdminState { storageAddress: string; openToDelegation: number; delegatorCount: number; delegatingTo: string; userProposalStates: { [key: number]: UserProposalState; }; /** * Constructor for the user admin state class. * * @param storageAddress - the address of the storage account for the user * @param userStorageLocalStates - list of local states for the user's storage account * @param governanceClient - a governance client */ constructor(storageAddress: string, userStorageLocalStates: { [key: string]: {}; }, governanceClient: GovernanceClient); } export declare class UserProposalState { forOrAgainst: number; votingAmount: number; /** * Constructor for the user proposal state object. * * @param storageProposalLocalState - an dictionary representing the local * state of the proposal contract with the admin contract. */ constructor(storageProposalLocalState: {}); }