UNPKG

@cryptoalgebra/alm-sdk

Version:

Algebra ALM SDK

9 lines (8 loc) 1.1 kB
import { SupportedDex, SupportedChainId, Fees, VaultTransactionEvent, VaultState } from '../types'; export declare function _getAllEvents(vaultAddress: string, chainId: SupportedChainId, dex: SupportedDex, days?: number): Promise<VaultState[]>; export declare function _getRebalances(vaultAddress: string, chainId: SupportedChainId, dex: SupportedDex, days?: number): Promise<Fees[]>; export declare function _getFeesCollectedEvents(vaultAddress: string, chainId: SupportedChainId, dex: SupportedDex, days?: number): Promise<Fees[]>; export declare function _getDeposits(vaultAddress: string, chainId: SupportedChainId, dex: SupportedDex, days?: number): Promise<VaultTransactionEvent[]>; export declare function _getWithdraws(vaultAddress: string, chainId: SupportedChainId, dex: SupportedDex, days?: number): Promise<VaultTransactionEvent[]>; export declare function _getAllVaultEvents(vaultAddress: string, chainId: SupportedChainId, dex: SupportedDex, days?: number): Promise<VaultState[]>; export declare function getVaultStateAt(vaultEvents: VaultState[], daysAgo: number): VaultState | null;