@bombearn/sdk
Version:
Interaction framework for the yearn protocol
50 lines (49 loc) • 1.67 kB
TypeScript
import { CustomError, Integer } from "../common";
export declare class SimulationError extends CustomError {
error_code: string;
static NO_LOG: string;
static TENDERLY_RESPONSE_ERROR: string;
static PARTIAL_REVERT: string;
static INVALID_TYPE: string;
constructor(message: string, error_code: string);
}
export declare class ZapError extends CustomError {
error_code: string;
static ZAP_IN_APPROVAL_STATE: string;
static ZAP_IN_APPROVAL: string;
static ZAP_OUT_APPROVAL_STATE: string;
static ZAP_OUT_APPROVAL: string;
static ZAP_IN: string;
static ZAP_OUT: string;
constructor(message: string, error_code: string);
}
export declare class EthersError extends CustomError {
error_code: string;
static FAIL_TOKEN_FETCH: string;
static NO_DECIMALS: string;
static NO_PRICE_PER_SHARE: string;
static POPULATING_TRANSACTION: string;
constructor(message: string, error_code: string);
}
export declare class TenderlyError extends CustomError {
error_code: string;
static SIMULATION_CALL: string;
static CREATE_FORK: string;
constructor(message: string, error_code: string);
}
export declare class PriceFetchingError extends CustomError {
error_code: string;
static FETCHING_PRICE_ORACLE: string;
static FETCHING_PRICE_PICKLE: string;
constructor(message: string, error_code: string);
}
export interface SimulationOptions {
slippage?: number;
root?: string;
forkId?: string;
gasPrice?: Integer;
maxFeePerGas?: Integer;
maxPriorityFeePerGas?: Integer;
gasLimit?: Integer;
save?: boolean;
}