UNPKG

@effectai/sdk

Version:

Effect Network Javscript/Typescript SDK (for [https://effect.network](https://effect.network))

17 lines (16 loc) 741 B
import type { Client } from "../../client"; import type { Payment } from "../../@generated/types/tasks.efx"; import type { Settings } from "../../@generated/types/tasks.efx"; export declare const isClaimable: (p: Payment, forceSettings: Settings) => boolean; export declare const extractAndParseQuantity: (quantity: string) => number; export declare const getTimeToClaim: (p: Payment, forceSettings: Settings) => number; export type GetPendingPaymentsArgs = { client: Client; vAccountId: number; }; export declare const getPendingPayments: ({ client, vAccountId, }: GetPendingPaymentsArgs) => Promise<{ pendingPayments: Payment[]; claimablePayments: Payment[]; totalEfxPending: number; totalEfxClaimable: number; }>;