@parifi/sdk
Version:
Parifi SDK with common utility functions
82 lines (79 loc) • 3.17 kB
text/typescript
import { Decimal } from 'decimal.js';
import { Address } from 'viem';
declare const PRECISION_MULTIPLIER: Decimal;
declare const DEVIATION_PRECISION_MULTIPLIER: Decimal;
declare const SECONDS_IN_A_YEAR: Decimal;
declare const MAX_FEE: Decimal;
declare const WAD: Decimal;
declare const EMPTY_BYTES32 = "0x0000000000000000000000000000000000000000000000000000000000000000";
declare const DECIMAL_10: Decimal;
declare const DECIMAL_ZERO: Decimal;
declare const DEFAULT_BATCH_COUNT = 10;
declare const BIGINT_ZERO: bigint;
declare const GAS_LIMIT_SETTLEMENT = 10000000;
declare const GAS_LIMIT_LIQUIDATION = 15000000;
declare const ONE_GWEI = 1000000000;
declare const DEFAULT_GAS_PRICE: number;
declare const PYTH_ETH_USD_PRICE_ID_BETA = "0xca80ba6dc32e08d06f1aa886011eed1d77c77be9eb761cc10d72b7d0a2fd57a6";
declare const PYTH_ETH_USD_PRICE_ID_STABLE = "0xff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace";
declare const PYTH_USDC_USD_PRICE_ID_BETA = "0x41f3625971ca2ed2263e78573fe5ce23e13d2558ed3f2e47ab0f84fb9e7ae722";
declare const PYTH_USDC_USD_PRICE_ID_STABLE = "0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a";
declare const FACTORY_ADDRESS_SIMPLE_ACCOUNT = "0x91E60e0613810449d098b0b5Ec8b51A0FE8c8985";
declare const SUBGRAPH_HELPER_ADDRESS = "0xf012d32505df6853187170F00C7b789A8ecC41c2";
declare const SYMBOL_TO_PYTH_FEED: Map<string, string>;
declare const collateralMappingWithRegularSymbol: Map<string, string>;
declare enum SUPPORTED_CHAINS {
BASE = 8453
}
declare const REWARD_DISTRIBUTOR_ADDRESSES: Record<number, Record<string, Address>>;
declare const REWARD_DISTRIBUTOR_ABI: ({
inputs: {
internalType: string;
name: string;
type: string;
}[];
stateMutability: string;
type: string;
name?: undefined;
anonymous?: undefined;
outputs?: undefined;
} | {
inputs: {
internalType: string;
name: string;
type: string;
}[];
name: string;
type: string;
stateMutability?: undefined;
anonymous?: undefined;
outputs?: undefined;
} | {
anonymous: boolean;
inputs: {
indexed: boolean;
internalType: string;
name: string;
type: string;
}[];
name: string;
type: string;
stateMutability?: undefined;
outputs?: undefined;
} | {
inputs: {
internalType: string;
name: string;
type: string;
}[];
name: string;
outputs: {
internalType: string;
name: string;
type: string;
}[];
stateMutability: string;
type: string;
anonymous?: undefined;
})[];
export { BIGINT_ZERO, DECIMAL_10, DECIMAL_ZERO, DEFAULT_BATCH_COUNT, DEFAULT_GAS_PRICE, DEVIATION_PRECISION_MULTIPLIER, EMPTY_BYTES32, FACTORY_ADDRESS_SIMPLE_ACCOUNT, GAS_LIMIT_LIQUIDATION, GAS_LIMIT_SETTLEMENT, MAX_FEE, ONE_GWEI, PRECISION_MULTIPLIER, PYTH_ETH_USD_PRICE_ID_BETA, PYTH_ETH_USD_PRICE_ID_STABLE, PYTH_USDC_USD_PRICE_ID_BETA, PYTH_USDC_USD_PRICE_ID_STABLE, REWARD_DISTRIBUTOR_ABI, REWARD_DISTRIBUTOR_ADDRESSES, SECONDS_IN_A_YEAR, SUBGRAPH_HELPER_ADDRESS, SUPPORTED_CHAINS, SYMBOL_TO_PYTH_FEED, WAD, collateralMappingWithRegularSymbol };