UNPKG

@ledgerhq/coin-aptos

Version:
20 lines 1.34 kB
import type { GetAccountShape } from "@ledgerhq/coin-framework/bridge/jsHelpers"; import type { AptosAccount } from "../types"; import { Operation, TokenAccount } from "@ledgerhq/types-live"; import { CryptoCurrency, TokenCurrency } from "@ledgerhq/types-cryptoassets"; import { AccountShapeInfo } from "@ledgerhq/coin-framework/bridge/jsHelpers"; /** * In charge of smartly merging sub accounts while maintaining references as much as possible */ export declare const mergeSubAccounts: (initialAccount: AptosAccount | undefined, newSubAccounts: TokenAccount[]) => Array<TokenAccount>; /** * Fetch the balance for a token and creates a TokenAccount based on this and the provided operations */ export declare const getSubAccountShape: (currency: CryptoCurrency, address: string, parentId: string, token: TokenCurrency, operations: Operation[]) => Promise<TokenAccount>; /** * Getting all token related operations in order to provide TokenAccounts */ export declare const getSubAccounts: (infos: AccountShapeInfo<AptosAccount>, address: string, accountId: string, lastTokenOperations: Operation[]) => Promise<TokenAccount[]>; export declare const getAccountShape: GetAccountShape<AptosAccount>; export declare const getStakingPoolAddresses: (stakingOperations: Operation[]) => string[]; //# sourceMappingURL=synchronisation.d.ts.map