UNPKG

@angleprotocol/sdk

Version:
60 lines (59 loc) 1.78 kB
import { BigNumber } from 'ethers'; import { Interface } from 'ethers/lib/utils'; import { SolidityType } from './constants'; import { AMMAlgorithmType, AMMType, MerklSupportedChainIdsType } from './merkl'; export declare function validateSolidityTypeInstance(value: BigNumber, solidityType: SolidityType): void; export declare function validateAndParseAddress(address: string): string; export declare const findMerklAMMTypeDeprecated: (bytes: string) => AMMType; export declare const fetchMerklAMMType: (chainId: MerklSupportedChainIdsType, pool: string, env?: 'prod' | 'dev' | 'local') => Promise<AMMType>; export declare enum RouterActionType { transfer = 0, wrapNative = 1, unwrapNative = 2, sweep = 3, sweepNative = 4, uniswapV3 = 5, oneInch = 6, claimRewards = 7, gaugeDeposit = 8, borrower = 9, swapper = 10, mint4626 = 11, deposit4626 = 12, redeem4626 = 13, withdraw4626 = 14, prepareRedeemSavingsRate = 15, claimRedeemSavingsRate = 16, swapIn = 17, swapOut = 18, claimWeeklyInterest = 19, withdraw = 20, mint = 21, deposit = 22, openPerpetual = 23, addToPerpetual = 24, veANGLEDeposit = 25, claimRewardsWithPerps = 26 } export declare enum BorrowActionType { createVault = 0, closeVault = 1, addCollateral = 2, removeCollateral = 3, repayDebt = 4, borrow = 5, getDebtIn = 6, permit = 7 } export declare const NonFungiblePositionManagerInterface: (ammType: AMMAlgorithmType) => Interface; export declare const PoolInterface: (ammType: AMMAlgorithmType) => Interface; export declare const SqrtPrice: { 1: string; 0: string; 2: string; }; export declare const PoolState: { 1: string; 0: string; 2: string; };