@parifi/sdk
Version:
Parifi SDK with common utility functions
23 lines (20 loc) • 1.33 kB
text/typescript
import Decimal__default from 'decimal.js';
import { CollateralDeposit, LeaderboardUserData } from '../../interfaces/sdkTypes.mjs';
import '../../interfaces/subgraphTypes.mjs';
interface depositedCollateralAccountIdResponse {
owner: {
id: string;
};
accountId: string;
collateralDeposits: CollateralDeposit[];
}
declare const getRealizedPnlForUser: (subgraphEndpoint: string, userAddress: string) => Promise<{
totalRealizedPnlPositions: Decimal__default;
totalRealizedPnlVaults: Decimal__default;
}>;
declare const getLeaderboardUserData: (subgraphEndpoint: string, userAddresses: string[]) => Promise<LeaderboardUserData[]>;
declare const getAccountByAddress: (subgraphEndpoint: string, userAddresses: string) => Promise<any>;
declare const getFeesByAddress: (subgraphEndpoint: string, userAddresses: string[]) => Promise<Map<string, number>>;
declare const checkIfExistingUser: (subgraphEndpoint: string, userAddress: string) => Promise<boolean>;
declare const depositedCollateralForSnxAccounts: (subgraphEndpoint: string, accountIds: string[]) => Promise<depositedCollateralAccountIdResponse[]>;
export { checkIfExistingUser, type depositedCollateralAccountIdResponse, depositedCollateralForSnxAccounts, getAccountByAddress, getFeesByAddress, getLeaderboardUserData, getRealizedPnlForUser };