@ledgerhq/coin-celo
Version:
21 lines • 1.86 kB
TypeScript
import { CeloAccount, CeloPendingWithdrawal, CeloValidatorGroup, CeloVote, CeloVoteStatus, PendingStakingOperationAmounts } from "./types/types";
import { BigNumber } from "bignumber.js";
export declare const PRELOAD_MAX_AGE: number;
export declare const availablePendingWithdrawals: (account: CeloAccount) => CeloPendingWithdrawal[];
export declare const withdrawableBalance: (account: CeloAccount) => BigNumber;
export declare const hasWithdrawableBalance: (account: CeloAccount) => boolean;
export declare const defaultValidatorGroupAddress: () => string;
export declare const isDefaultValidatorGroupAddress: (address: string) => boolean;
export declare const isDefaultValidatorGroup: (validatorGroup: CeloValidatorGroup) => boolean;
export declare const activatableVotes: (account: CeloAccount) => CeloVote[];
export declare const hasActivatableVotes: (account: CeloAccount) => boolean;
export declare const revokableVotes: (account: CeloAccount) => CeloVote[];
export declare const hasRevokableVotes: (account: CeloAccount) => boolean;
export declare const getVote: (account: CeloAccount, validatorGroupAddress: string, index: number | null | undefined) => CeloVote | undefined;
export declare const voteStatus: (vote: CeloVote) => CeloVoteStatus;
export declare const fallbackValidatorGroup: (address: string) => CeloValidatorGroup;
export declare const isAccountRegistrationPending: (account: CeloAccount) => boolean;
export declare const getPendingStakingOperationAmounts: (account: CeloAccount) => PendingStakingOperationAmounts;
export declare const getValidatorGroupsWithVotes: (validatorGroups: CeloValidatorGroup[], votes: CeloVote[] | null) => CeloValidatorGroup[];
export declare const getValidatorGroupsWithoutVotes: (validatorGroups: CeloValidatorGroup[], votes?: CeloVote[] | null) => CeloValidatorGroup[];
//# sourceMappingURL=logic.d.ts.map