/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PayableOverrides, PopulatedTransaction, Signer, utils, } from "ethers"; import type { FunctionFragment, Result } from "@ethersproject/abi"; import type { Listener, Provider } from "@ethersproject/providers"; import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue, } from "../../common"; export declare namespace IStargateRouter { export type LzTxObjStruct = { dstGasForCall: PromiseOrValue; dstNativeAmount: PromiseOrValue; dstNativeAddr: PromiseOrValue; }; export type LzTxObjStructOutput = [BigNumber, BigNumber, string] & { dstGasForCall: BigNumber; dstNativeAmount: BigNumber; dstNativeAddr: string; }; } export interface IStargateRouterInterface extends utils.Interface { functions: { "addLiquidity(uint256,uint256,address)": FunctionFragment; "instantRedeemLocal(uint16,uint256,address)": FunctionFragment; "quoteLayerZeroFee(uint16,uint8,bytes,bytes,(uint256,uint256,bytes))": FunctionFragment; "redeemLocal(uint16,uint256,uint256,address,uint256,bytes,(uint256,uint256,bytes))": FunctionFragment; "redeemRemote(uint16,uint256,uint256,address,uint256,uint256,bytes,(uint256,uint256,bytes))": FunctionFragment; "sendCredits(uint16,uint256,uint256,address)": FunctionFragment; "swap(uint16,uint256,uint256,address,uint256,uint256,(uint256,uint256,bytes),bytes,bytes)": FunctionFragment; }; getFunction( nameOrSignatureOrTopic: | "addLiquidity" | "instantRedeemLocal" | "quoteLayerZeroFee" | "redeemLocal" | "redeemRemote" | "sendCredits" | "swap" ): FunctionFragment; encodeFunctionData( functionFragment: "addLiquidity", values: [ PromiseOrValue, PromiseOrValue, PromiseOrValue ] ): string; encodeFunctionData( functionFragment: "instantRedeemLocal", values: [ PromiseOrValue, PromiseOrValue, PromiseOrValue ] ): string; encodeFunctionData( functionFragment: "quoteLayerZeroFee", values: [ PromiseOrValue, PromiseOrValue, PromiseOrValue, PromiseOrValue, IStargateRouter.LzTxObjStruct ] ): string; encodeFunctionData( functionFragment: "redeemLocal", values: [ PromiseOrValue, PromiseOrValue, PromiseOrValue, PromiseOrValue, PromiseOrValue, PromiseOrValue, IStargateRouter.LzTxObjStruct ] ): string; encodeFunctionData( functionFragment: "redeemRemote", values: [ PromiseOrValue, PromiseOrValue, PromiseOrValue, PromiseOrValue, PromiseOrValue, PromiseOrValue, PromiseOrValue, IStargateRouter.LzTxObjStruct ] ): string; encodeFunctionData( functionFragment: "sendCredits", values: [ PromiseOrValue, PromiseOrValue, PromiseOrValue, PromiseOrValue ] ): string; encodeFunctionData( functionFragment: "swap", values: [ PromiseOrValue, PromiseOrValue, PromiseOrValue, PromiseOrValue, PromiseOrValue, PromiseOrValue, IStargateRouter.LzTxObjStruct, PromiseOrValue, PromiseOrValue ] ): string; decodeFunctionResult( functionFragment: "addLiquidity", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "instantRedeemLocal", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "quoteLayerZeroFee", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "redeemLocal", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "redeemRemote", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "sendCredits", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "swap", data: BytesLike): Result; events: {}; } export interface IStargateRouter extends BaseContract { connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise; interface: IStargateRouterInterface; queryFilter( event: TypedEventFilter, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise>; listeners( eventFilter?: TypedEventFilter ): Array>; listeners(eventName?: string): Array; removeAllListeners( eventFilter: TypedEventFilter ): this; removeAllListeners(eventName?: string): this; off: OnEvent; on: OnEvent; once: OnEvent; removeListener: OnEvent; functions: { addLiquidity( _poolId: PromiseOrValue, _amountLD: PromiseOrValue, _to: PromiseOrValue, overrides?: Overrides & { from?: PromiseOrValue } ): Promise; instantRedeemLocal( _srcPoolId: PromiseOrValue, _amountLP: PromiseOrValue, _to: PromiseOrValue, overrides?: Overrides & { from?: PromiseOrValue } ): Promise; quoteLayerZeroFee( _dstChainId: PromiseOrValue, _functionType: PromiseOrValue, _toAddress: PromiseOrValue, _transferAndCallPayload: PromiseOrValue, _lzTxParams: IStargateRouter.LzTxObjStruct, overrides?: CallOverrides ): Promise<[BigNumber, BigNumber]>; redeemLocal( _dstChainId: PromiseOrValue, _srcPoolId: PromiseOrValue, _dstPoolId: PromiseOrValue, _refundAddress: PromiseOrValue, _amountLP: PromiseOrValue, _to: PromiseOrValue, _lzTxParams: IStargateRouter.LzTxObjStruct, overrides?: PayableOverrides & { from?: PromiseOrValue } ): Promise; redeemRemote( _dstChainId: PromiseOrValue, _srcPoolId: PromiseOrValue, _dstPoolId: PromiseOrValue, _refundAddress: PromiseOrValue, _amountLP: PromiseOrValue, _minAmountLD: PromiseOrValue, _to: PromiseOrValue, _lzTxParams: IStargateRouter.LzTxObjStruct, overrides?: PayableOverrides & { from?: PromiseOrValue } ): Promise; sendCredits( _dstChainId: PromiseOrValue, _srcPoolId: PromiseOrValue, _dstPoolId: PromiseOrValue, _refundAddress: PromiseOrValue, overrides?: PayableOverrides & { from?: PromiseOrValue } ): Promise; swap( _dstChainId: PromiseOrValue, _srcPoolId: PromiseOrValue, _dstPoolId: PromiseOrValue, _refundAddress: PromiseOrValue, _amountLD: PromiseOrValue, _minAmountLD: PromiseOrValue, _lzTxParams: IStargateRouter.LzTxObjStruct, _to: PromiseOrValue, _payload: PromiseOrValue, overrides?: PayableOverrides & { from?: PromiseOrValue } ): Promise; }; addLiquidity( _poolId: PromiseOrValue, _amountLD: PromiseOrValue, _to: PromiseOrValue, overrides?: Overrides & { from?: PromiseOrValue } ): Promise; instantRedeemLocal( _srcPoolId: PromiseOrValue, _amountLP: PromiseOrValue, _to: PromiseOrValue, overrides?: Overrides & { from?: PromiseOrValue } ): Promise; quoteLayerZeroFee( _dstChainId: PromiseOrValue, _functionType: PromiseOrValue, _toAddress: PromiseOrValue, _transferAndCallPayload: PromiseOrValue, _lzTxParams: IStargateRouter.LzTxObjStruct, overrides?: CallOverrides ): Promise<[BigNumber, BigNumber]>; redeemLocal( _dstChainId: PromiseOrValue, _srcPoolId: PromiseOrValue, _dstPoolId: PromiseOrValue, _refundAddress: PromiseOrValue, _amountLP: PromiseOrValue, _to: PromiseOrValue, _lzTxParams: IStargateRouter.LzTxObjStruct, overrides?: PayableOverrides & { from?: PromiseOrValue } ): Promise; redeemRemote( _dstChainId: PromiseOrValue, _srcPoolId: PromiseOrValue, _dstPoolId: PromiseOrValue, _refundAddress: PromiseOrValue, _amountLP: PromiseOrValue, _minAmountLD: PromiseOrValue, _to: PromiseOrValue, _lzTxParams: IStargateRouter.LzTxObjStruct, overrides?: PayableOverrides & { from?: PromiseOrValue } ): Promise; sendCredits( _dstChainId: PromiseOrValue, _srcPoolId: PromiseOrValue, _dstPoolId: PromiseOrValue, _refundAddress: PromiseOrValue, overrides?: PayableOverrides & { from?: PromiseOrValue } ): Promise; swap( _dstChainId: PromiseOrValue, _srcPoolId: PromiseOrValue, _dstPoolId: PromiseOrValue, _refundAddress: PromiseOrValue, _amountLD: PromiseOrValue, _minAmountLD: PromiseOrValue, _lzTxParams: IStargateRouter.LzTxObjStruct, _to: PromiseOrValue, _payload: PromiseOrValue, overrides?: PayableOverrides & { from?: PromiseOrValue } ): Promise; callStatic: { addLiquidity( _poolId: PromiseOrValue, _amountLD: PromiseOrValue, _to: PromiseOrValue, overrides?: CallOverrides ): Promise; instantRedeemLocal( _srcPoolId: PromiseOrValue, _amountLP: PromiseOrValue, _to: PromiseOrValue, overrides?: CallOverrides ): Promise; quoteLayerZeroFee( _dstChainId: PromiseOrValue, _functionType: PromiseOrValue, _toAddress: PromiseOrValue, _transferAndCallPayload: PromiseOrValue, _lzTxParams: IStargateRouter.LzTxObjStruct, overrides?: CallOverrides ): Promise<[BigNumber, BigNumber]>; redeemLocal( _dstChainId: PromiseOrValue, _srcPoolId: PromiseOrValue, _dstPoolId: PromiseOrValue, _refundAddress: PromiseOrValue, _amountLP: PromiseOrValue, _to: PromiseOrValue, _lzTxParams: IStargateRouter.LzTxObjStruct, overrides?: CallOverrides ): Promise; redeemRemote( _dstChainId: PromiseOrValue, _srcPoolId: PromiseOrValue, _dstPoolId: PromiseOrValue, _refundAddress: PromiseOrValue, _amountLP: PromiseOrValue, _minAmountLD: PromiseOrValue, _to: PromiseOrValue, _lzTxParams: IStargateRouter.LzTxObjStruct, overrides?: CallOverrides ): Promise; sendCredits( _dstChainId: PromiseOrValue, _srcPoolId: PromiseOrValue, _dstPoolId: PromiseOrValue, _refundAddress: PromiseOrValue, overrides?: CallOverrides ): Promise; swap( _dstChainId: PromiseOrValue, _srcPoolId: PromiseOrValue, _dstPoolId: PromiseOrValue, _refundAddress: PromiseOrValue, _amountLD: PromiseOrValue, _minAmountLD: PromiseOrValue, _lzTxParams: IStargateRouter.LzTxObjStruct, _to: PromiseOrValue, _payload: PromiseOrValue, overrides?: CallOverrides ): Promise; }; filters: {}; estimateGas: { addLiquidity( _poolId: PromiseOrValue, _amountLD: PromiseOrValue, _to: PromiseOrValue, overrides?: Overrides & { from?: PromiseOrValue } ): Promise; instantRedeemLocal( _srcPoolId: PromiseOrValue, _amountLP: PromiseOrValue, _to: PromiseOrValue, overrides?: Overrides & { from?: PromiseOrValue } ): Promise; quoteLayerZeroFee( _dstChainId: PromiseOrValue, _functionType: PromiseOrValue, _toAddress: PromiseOrValue, _transferAndCallPayload: PromiseOrValue, _lzTxParams: IStargateRouter.LzTxObjStruct, overrides?: CallOverrides ): Promise; redeemLocal( _dstChainId: PromiseOrValue, _srcPoolId: PromiseOrValue, _dstPoolId: PromiseOrValue, _refundAddress: PromiseOrValue, _amountLP: PromiseOrValue, _to: PromiseOrValue, _lzTxParams: IStargateRouter.LzTxObjStruct, overrides?: PayableOverrides & { from?: PromiseOrValue } ): Promise; redeemRemote( _dstChainId: PromiseOrValue, _srcPoolId: PromiseOrValue, _dstPoolId: PromiseOrValue, _refundAddress: PromiseOrValue, _amountLP: PromiseOrValue, _minAmountLD: PromiseOrValue, _to: PromiseOrValue, _lzTxParams: IStargateRouter.LzTxObjStruct, overrides?: PayableOverrides & { from?: PromiseOrValue } ): Promise; sendCredits( _dstChainId: PromiseOrValue, _srcPoolId: PromiseOrValue, _dstPoolId: PromiseOrValue, _refundAddress: PromiseOrValue, overrides?: PayableOverrides & { from?: PromiseOrValue } ): Promise; swap( _dstChainId: PromiseOrValue, _srcPoolId: PromiseOrValue, _dstPoolId: PromiseOrValue, _refundAddress: PromiseOrValue, _amountLD: PromiseOrValue, _minAmountLD: PromiseOrValue, _lzTxParams: IStargateRouter.LzTxObjStruct, _to: PromiseOrValue, _payload: PromiseOrValue, overrides?: PayableOverrides & { from?: PromiseOrValue } ): Promise; }; populateTransaction: { addLiquidity( _poolId: PromiseOrValue, _amountLD: PromiseOrValue, _to: PromiseOrValue, overrides?: Overrides & { from?: PromiseOrValue } ): Promise; instantRedeemLocal( _srcPoolId: PromiseOrValue, _amountLP: PromiseOrValue, _to: PromiseOrValue, overrides?: Overrides & { from?: PromiseOrValue } ): Promise; quoteLayerZeroFee( _dstChainId: PromiseOrValue, _functionType: PromiseOrValue, _toAddress: PromiseOrValue, _transferAndCallPayload: PromiseOrValue, _lzTxParams: IStargateRouter.LzTxObjStruct, overrides?: CallOverrides ): Promise; redeemLocal( _dstChainId: PromiseOrValue, _srcPoolId: PromiseOrValue, _dstPoolId: PromiseOrValue, _refundAddress: PromiseOrValue, _amountLP: PromiseOrValue, _to: PromiseOrValue, _lzTxParams: IStargateRouter.LzTxObjStruct, overrides?: PayableOverrides & { from?: PromiseOrValue } ): Promise; redeemRemote( _dstChainId: PromiseOrValue, _srcPoolId: PromiseOrValue, _dstPoolId: PromiseOrValue, _refundAddress: PromiseOrValue, _amountLP: PromiseOrValue, _minAmountLD: PromiseOrValue, _to: PromiseOrValue, _lzTxParams: IStargateRouter.LzTxObjStruct, overrides?: PayableOverrides & { from?: PromiseOrValue } ): Promise; sendCredits( _dstChainId: PromiseOrValue, _srcPoolId: PromiseOrValue, _dstPoolId: PromiseOrValue, _refundAddress: PromiseOrValue, overrides?: PayableOverrides & { from?: PromiseOrValue } ): Promise; swap( _dstChainId: PromiseOrValue, _srcPoolId: PromiseOrValue, _dstPoolId: PromiseOrValue, _refundAddress: PromiseOrValue, _amountLD: PromiseOrValue, _minAmountLD: PromiseOrValue, _lzTxParams: IStargateRouter.LzTxObjStruct, _to: PromiseOrValue, _payload: PromiseOrValue, overrides?: PayableOverrides & { from?: PromiseOrValue } ): Promise; }; }