@cryptoalgebra/alm-sdk
Version:
Algebra ALM SDK
9 lines (8 loc) • 979 B
TypeScript
import { SupportedChainId, Fees, VaultTransactionEvent, VaultState } from '../types';
export declare function _getAllEvents(vaultAddress: string, chainId: SupportedChainId, days?: number): Promise<VaultState[]>;
export declare function _getRebalances(vaultAddress: string, chainId: SupportedChainId, days?: number): Promise<Fees[]>;
export declare function _getFeesCollectedEvents(vaultAddress: string, chainId: SupportedChainId, days?: number): Promise<Fees[]>;
export declare function _getDeposits(vaultAddress: string, chainId: SupportedChainId, days?: number): Promise<VaultTransactionEvent[]>;
export declare function _getWithdraws(vaultAddress: string, chainId: SupportedChainId, days?: number): Promise<VaultTransactionEvent[]>;
export declare function _getAllVaultEvents(vaultAddress: string, chainId: SupportedChainId, days?: number): Promise<VaultState[]>;
export declare function getVaultStateAt(vaultEvents: VaultState[], daysAgo: number): VaultState | null;