|
@@ -0,0 +1,1356 @@
|
|
|
+/* Autogenerated file. Do not edit manually. */
|
|
|
+/* tslint:disable */
|
|
|
+/* eslint-disable */
|
|
|
+import type {
|
|
|
+ BaseContract,
|
|
|
+ BigNumberish,
|
|
|
+ BytesLike,
|
|
|
+ FunctionFragment,
|
|
|
+ Result,
|
|
|
+ Interface,
|
|
|
+ EventFragment,
|
|
|
+ AddressLike,
|
|
|
+ ContractRunner,
|
|
|
+ ContractMethod,
|
|
|
+ Listener,
|
|
|
+} from "ethers";
|
|
|
+import type {
|
|
|
+ TypedContractEvent,
|
|
|
+ TypedDeferredTopicFilter,
|
|
|
+ TypedEventLog,
|
|
|
+ TypedLogDescription,
|
|
|
+ TypedListener,
|
|
|
+ TypedContractMethod,
|
|
|
+} from "./common";
|
|
|
+
|
|
|
+export declare namespace Pool {
|
|
|
+ export type SwapObjStruct = {
|
|
|
+ amount: BigNumberish;
|
|
|
+ eqFee: BigNumberish;
|
|
|
+ eqReward: BigNumberish;
|
|
|
+ lpFee: BigNumberish;
|
|
|
+ protocolFee: BigNumberish;
|
|
|
+ lkbRemove: BigNumberish;
|
|
|
+ };
|
|
|
+
|
|
|
+ export type SwapObjStructOutput = [
|
|
|
+ amount: bigint,
|
|
|
+ eqFee: bigint,
|
|
|
+ eqReward: bigint,
|
|
|
+ lpFee: bigint,
|
|
|
+ protocolFee: bigint,
|
|
|
+ lkbRemove: bigint
|
|
|
+ ] & {
|
|
|
+ amount: bigint;
|
|
|
+ eqFee: bigint;
|
|
|
+ eqReward: bigint;
|
|
|
+ lpFee: bigint;
|
|
|
+ protocolFee: bigint;
|
|
|
+ lkbRemove: bigint;
|
|
|
+ };
|
|
|
+}
|
|
|
+
|
|
|
+export interface StargateFeeLibraryV07Interface extends Interface {
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature:
|
|
|
+ | "DELTA_1"
|
|
|
+ | "DELTA_2"
|
|
|
+ | "DENOMINATOR"
|
|
|
+ | "EQ_REWARD_THRESHOLD"
|
|
|
+ | "LAMBDA_1"
|
|
|
+ | "LAMBDA_2"
|
|
|
+ | "LP_FEE"
|
|
|
+ | "ONE_BPS_PRICE_CHANGE_THRESHOLD"
|
|
|
+ | "PRICE_DEPEG_THRESHOLD"
|
|
|
+ | "PRICE_DRIFT_THRESHOLD"
|
|
|
+ | "PRICE_SHARED_DECIMALS"
|
|
|
+ | "PROTOCOL_FEE"
|
|
|
+ | "PROTOCOL_FEE_FOR_SAME_TOKEN"
|
|
|
+ | "PROTOCOL_SUBSIDY"
|
|
|
+ | "defaultAdapterParams"
|
|
|
+ | "factory"
|
|
|
+ | "forceResumeReceive"
|
|
|
+ | "getConfig"
|
|
|
+ | "getDriftFee"
|
|
|
+ | "getEqReward"
|
|
|
+ | "getEquilibriumFee"
|
|
|
+ | "getFees"
|
|
|
+ | "getProtocolAndLpFee"
|
|
|
+ | "getRemoteChains"
|
|
|
+ | "getVersion"
|
|
|
+ | "initTokenPrice"
|
|
|
+ | "isTrustedRemote"
|
|
|
+ | "lzEndpoint"
|
|
|
+ | "lzReceive"
|
|
|
+ | "minDstGasLookup"
|
|
|
+ | "owner"
|
|
|
+ | "poolIdToLpId"
|
|
|
+ | "poolIdToPriceFeed"
|
|
|
+ | "poolIdToPriceSD"
|
|
|
+ | "precrime"
|
|
|
+ | "quoteFeeForPriceUpdate"
|
|
|
+ | "renounceOwnership"
|
|
|
+ | "setConfig"
|
|
|
+ | "setDefaultAdapterParams"
|
|
|
+ | "setMinDstGas"
|
|
|
+ | "setPoolToLpId"
|
|
|
+ | "setPrecrime"
|
|
|
+ | "setReceiveVersion"
|
|
|
+ | "setRemoteChains"
|
|
|
+ | "setSendVersion"
|
|
|
+ | "setStargatePoolIdToLPStakingAddress"
|
|
|
+ | "setTokenPriceFeed"
|
|
|
+ | "setTrustedRemote"
|
|
|
+ | "shouldCallUpdateTokenPrices"
|
|
|
+ | "stargatePoolIdToLPStaking"
|
|
|
+ | "transferOwnership"
|
|
|
+ | "trustedRemoteLookup"
|
|
|
+ | "updateTokenPrices"
|
|
|
+ | "whiteList"
|
|
|
+ | "whitelist"
|
|
|
+ ): FunctionFragment;
|
|
|
+
|
|
|
+ getEvent(
|
|
|
+ nameOrSignatureOrTopic:
|
|
|
+ | "OwnershipTransferred"
|
|
|
+ | "PriceUpdated"
|
|
|
+ | "SetMinDstGas"
|
|
|
+ | "SetPrecrime"
|
|
|
+ | "SetTrustedRemote"
|
|
|
+ | "SetTrustedRemoteAddress"
|
|
|
+ ): EventFragment;
|
|
|
+
|
|
|
+ encodeFunctionData(functionFragment: "DELTA_1", values?: undefined): string;
|
|
|
+ encodeFunctionData(functionFragment: "DELTA_2", values?: undefined): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "DENOMINATOR",
|
|
|
+ values?: undefined
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "EQ_REWARD_THRESHOLD",
|
|
|
+ values?: undefined
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(functionFragment: "LAMBDA_1", values?: undefined): string;
|
|
|
+ encodeFunctionData(functionFragment: "LAMBDA_2", values?: undefined): string;
|
|
|
+ encodeFunctionData(functionFragment: "LP_FEE", values?: undefined): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "ONE_BPS_PRICE_CHANGE_THRESHOLD",
|
|
|
+ values?: undefined
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "PRICE_DEPEG_THRESHOLD",
|
|
|
+ values?: undefined
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "PRICE_DRIFT_THRESHOLD",
|
|
|
+ values?: undefined
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "PRICE_SHARED_DECIMALS",
|
|
|
+ values?: undefined
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "PROTOCOL_FEE",
|
|
|
+ values?: undefined
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "PROTOCOL_FEE_FOR_SAME_TOKEN",
|
|
|
+ values?: undefined
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "PROTOCOL_SUBSIDY",
|
|
|
+ values?: undefined
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "defaultAdapterParams",
|
|
|
+ values: [BigNumberish]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(functionFragment: "factory", values?: undefined): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "forceResumeReceive",
|
|
|
+ values: [BigNumberish, BytesLike]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "getConfig",
|
|
|
+ values: [BigNumberish, BigNumberish, AddressLike, BigNumberish]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "getDriftFee",
|
|
|
+ values: [BigNumberish, BigNumberish, BigNumberish, boolean]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "getEqReward",
|
|
|
+ values: [BigNumberish, BigNumberish, boolean]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "getEquilibriumFee",
|
|
|
+ values: [
|
|
|
+ BigNumberish,
|
|
|
+ BigNumberish,
|
|
|
+ BigNumberish,
|
|
|
+ BigNumberish,
|
|
|
+ boolean,
|
|
|
+ boolean
|
|
|
+ ]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "getFees",
|
|
|
+ values: [
|
|
|
+ BigNumberish,
|
|
|
+ BigNumberish,
|
|
|
+ BigNumberish,
|
|
|
+ AddressLike,
|
|
|
+ BigNumberish
|
|
|
+ ]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "getProtocolAndLpFee",
|
|
|
+ values: [
|
|
|
+ BigNumberish,
|
|
|
+ BigNumberish,
|
|
|
+ BigNumberish,
|
|
|
+ BigNumberish,
|
|
|
+ BigNumberish,
|
|
|
+ boolean
|
|
|
+ ]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "getRemoteChains",
|
|
|
+ values: [BigNumberish, BigNumberish]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "getVersion",
|
|
|
+ values?: undefined
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "initTokenPrice",
|
|
|
+ values: [BigNumberish, BigNumberish]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "isTrustedRemote",
|
|
|
+ values: [BigNumberish, BytesLike]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "lzEndpoint",
|
|
|
+ values?: undefined
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "lzReceive",
|
|
|
+ values: [BigNumberish, BytesLike, BigNumberish, BytesLike]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "minDstGasLookup",
|
|
|
+ values: [BigNumberish, BigNumberish]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "poolIdToLpId",
|
|
|
+ values: [BigNumberish]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "poolIdToPriceFeed",
|
|
|
+ values: [BigNumberish]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "poolIdToPriceSD",
|
|
|
+ values: [BigNumberish]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(functionFragment: "precrime", values?: undefined): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "quoteFeeForPriceUpdate",
|
|
|
+ values: [BigNumberish, BigNumberish]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "renounceOwnership",
|
|
|
+ values?: undefined
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "setConfig",
|
|
|
+ values: [BigNumberish, BigNumberish, BigNumberish, BytesLike]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "setDefaultAdapterParams",
|
|
|
+ values: [BigNumberish, BytesLike]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "setMinDstGas",
|
|
|
+ values: [BigNumberish, BigNumberish, BigNumberish]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "setPoolToLpId",
|
|
|
+ values: [BigNumberish, BigNumberish]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "setPrecrime",
|
|
|
+ values: [AddressLike]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "setReceiveVersion",
|
|
|
+ values: [BigNumberish]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "setRemoteChains",
|
|
|
+ values: [BigNumberish, BigNumberish, BigNumberish[]]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "setSendVersion",
|
|
|
+ values: [BigNumberish]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "setStargatePoolIdToLPStakingAddress",
|
|
|
+ values: [BigNumberish, AddressLike]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "setTokenPriceFeed",
|
|
|
+ values: [BigNumberish, AddressLike]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "setTrustedRemote",
|
|
|
+ values: [BigNumberish, BytesLike]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "shouldCallUpdateTokenPrices",
|
|
|
+ values: [BigNumberish, BigNumberish]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "stargatePoolIdToLPStaking",
|
|
|
+ values: [BigNumberish]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "transferOwnership",
|
|
|
+ values: [AddressLike]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "trustedRemoteLookup",
|
|
|
+ values: [BigNumberish]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "updateTokenPrices",
|
|
|
+ values: [BigNumberish, BigNumberish]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "whiteList",
|
|
|
+ values: [AddressLike, boolean]
|
|
|
+ ): string;
|
|
|
+ encodeFunctionData(
|
|
|
+ functionFragment: "whitelist",
|
|
|
+ values: [AddressLike]
|
|
|
+ ): string;
|
|
|
+
|
|
|
+ decodeFunctionResult(functionFragment: "DELTA_1", data: BytesLike): Result;
|
|
|
+ decodeFunctionResult(functionFragment: "DELTA_2", data: BytesLike): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "DENOMINATOR",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "EQ_REWARD_THRESHOLD",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(functionFragment: "LAMBDA_1", data: BytesLike): Result;
|
|
|
+ decodeFunctionResult(functionFragment: "LAMBDA_2", data: BytesLike): Result;
|
|
|
+ decodeFunctionResult(functionFragment: "LP_FEE", data: BytesLike): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "ONE_BPS_PRICE_CHANGE_THRESHOLD",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "PRICE_DEPEG_THRESHOLD",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "PRICE_DRIFT_THRESHOLD",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "PRICE_SHARED_DECIMALS",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "PROTOCOL_FEE",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "PROTOCOL_FEE_FOR_SAME_TOKEN",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "PROTOCOL_SUBSIDY",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "defaultAdapterParams",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(functionFragment: "factory", data: BytesLike): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "forceResumeReceive",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(functionFragment: "getConfig", data: BytesLike): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "getDriftFee",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "getEqReward",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "getEquilibriumFee",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(functionFragment: "getFees", data: BytesLike): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "getProtocolAndLpFee",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "getRemoteChains",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(functionFragment: "getVersion", data: BytesLike): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "initTokenPrice",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "isTrustedRemote",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(functionFragment: "lzEndpoint", data: BytesLike): Result;
|
|
|
+ decodeFunctionResult(functionFragment: "lzReceive", data: BytesLike): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "minDstGasLookup",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "poolIdToLpId",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "poolIdToPriceFeed",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "poolIdToPriceSD",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(functionFragment: "precrime", data: BytesLike): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "quoteFeeForPriceUpdate",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "renounceOwnership",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(functionFragment: "setConfig", data: BytesLike): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "setDefaultAdapterParams",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "setMinDstGas",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "setPoolToLpId",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "setPrecrime",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "setReceiveVersion",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "setRemoteChains",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "setSendVersion",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "setStargatePoolIdToLPStakingAddress",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "setTokenPriceFeed",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "setTrustedRemote",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "shouldCallUpdateTokenPrices",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "stargatePoolIdToLPStaking",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "transferOwnership",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "trustedRemoteLookup",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(
|
|
|
+ functionFragment: "updateTokenPrices",
|
|
|
+ data: BytesLike
|
|
|
+ ): Result;
|
|
|
+ decodeFunctionResult(functionFragment: "whiteList", data: BytesLike): Result;
|
|
|
+ decodeFunctionResult(functionFragment: "whitelist", data: BytesLike): Result;
|
|
|
+}
|
|
|
+
|
|
|
+export namespace OwnershipTransferredEvent {
|
|
|
+ export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
|
|
|
+ export type OutputTuple = [previousOwner: string, newOwner: string];
|
|
|
+ export interface OutputObject {
|
|
|
+ previousOwner: string;
|
|
|
+ newOwner: string;
|
|
|
+ }
|
|
|
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
|
+ export type Filter = TypedDeferredTopicFilter<Event>;
|
|
|
+ export type Log = TypedEventLog<Event>;
|
|
|
+ export type LogDescription = TypedLogDescription<Event>;
|
|
|
+}
|
|
|
+
|
|
|
+export namespace PriceUpdatedEvent {
|
|
|
+ export type InputTuple = [poolId: BigNumberish, priceSD: BigNumberish];
|
|
|
+ export type OutputTuple = [poolId: bigint, priceSD: bigint];
|
|
|
+ export interface OutputObject {
|
|
|
+ poolId: bigint;
|
|
|
+ priceSD: bigint;
|
|
|
+ }
|
|
|
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
|
+ export type Filter = TypedDeferredTopicFilter<Event>;
|
|
|
+ export type Log = TypedEventLog<Event>;
|
|
|
+ export type LogDescription = TypedLogDescription<Event>;
|
|
|
+}
|
|
|
+
|
|
|
+export namespace SetMinDstGasEvent {
|
|
|
+ export type InputTuple = [
|
|
|
+ _dstChainId: BigNumberish,
|
|
|
+ _type: BigNumberish,
|
|
|
+ _minDstGas: BigNumberish
|
|
|
+ ];
|
|
|
+ export type OutputTuple = [
|
|
|
+ _dstChainId: bigint,
|
|
|
+ _type: bigint,
|
|
|
+ _minDstGas: bigint
|
|
|
+ ];
|
|
|
+ export interface OutputObject {
|
|
|
+ _dstChainId: bigint;
|
|
|
+ _type: bigint;
|
|
|
+ _minDstGas: bigint;
|
|
|
+ }
|
|
|
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
|
+ export type Filter = TypedDeferredTopicFilter<Event>;
|
|
|
+ export type Log = TypedEventLog<Event>;
|
|
|
+ export type LogDescription = TypedLogDescription<Event>;
|
|
|
+}
|
|
|
+
|
|
|
+export namespace SetPrecrimeEvent {
|
|
|
+ export type InputTuple = [precrime: AddressLike];
|
|
|
+ export type OutputTuple = [precrime: string];
|
|
|
+ export interface OutputObject {
|
|
|
+ precrime: string;
|
|
|
+ }
|
|
|
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
|
+ export type Filter = TypedDeferredTopicFilter<Event>;
|
|
|
+ export type Log = TypedEventLog<Event>;
|
|
|
+ export type LogDescription = TypedLogDescription<Event>;
|
|
|
+}
|
|
|
+
|
|
|
+export namespace SetTrustedRemoteEvent {
|
|
|
+ export type InputTuple = [_remoteChainId: BigNumberish, _path: BytesLike];
|
|
|
+ export type OutputTuple = [_remoteChainId: bigint, _path: string];
|
|
|
+ export interface OutputObject {
|
|
|
+ _remoteChainId: bigint;
|
|
|
+ _path: string;
|
|
|
+ }
|
|
|
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
|
+ export type Filter = TypedDeferredTopicFilter<Event>;
|
|
|
+ export type Log = TypedEventLog<Event>;
|
|
|
+ export type LogDescription = TypedLogDescription<Event>;
|
|
|
+}
|
|
|
+
|
|
|
+export namespace SetTrustedRemoteAddressEvent {
|
|
|
+ export type InputTuple = [
|
|
|
+ _remoteChainId: BigNumberish,
|
|
|
+ _remoteAddress: BytesLike
|
|
|
+ ];
|
|
|
+ export type OutputTuple = [_remoteChainId: bigint, _remoteAddress: string];
|
|
|
+ export interface OutputObject {
|
|
|
+ _remoteChainId: bigint;
|
|
|
+ _remoteAddress: string;
|
|
|
+ }
|
|
|
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
|
+ export type Filter = TypedDeferredTopicFilter<Event>;
|
|
|
+ export type Log = TypedEventLog<Event>;
|
|
|
+ export type LogDescription = TypedLogDescription<Event>;
|
|
|
+}
|
|
|
+
|
|
|
+export interface StargateFeeLibraryV07 extends BaseContract {
|
|
|
+ connect(runner?: ContractRunner | null): StargateFeeLibraryV07;
|
|
|
+ waitForDeployment(): Promise<this>;
|
|
|
+
|
|
|
+ interface: StargateFeeLibraryV07Interface;
|
|
|
+
|
|
|
+ queryFilter<TCEvent extends TypedContractEvent>(
|
|
|
+ event: TCEvent,
|
|
|
+ fromBlockOrBlockhash?: string | number | undefined,
|
|
|
+ toBlock?: string | number | undefined
|
|
|
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
|
+ queryFilter<TCEvent extends TypedContractEvent>(
|
|
|
+ filter: TypedDeferredTopicFilter<TCEvent>,
|
|
|
+ fromBlockOrBlockhash?: string | number | undefined,
|
|
|
+ toBlock?: string | number | undefined
|
|
|
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
|
+
|
|
|
+ on<TCEvent extends TypedContractEvent>(
|
|
|
+ event: TCEvent,
|
|
|
+ listener: TypedListener<TCEvent>
|
|
|
+ ): Promise<this>;
|
|
|
+ on<TCEvent extends TypedContractEvent>(
|
|
|
+ filter: TypedDeferredTopicFilter<TCEvent>,
|
|
|
+ listener: TypedListener<TCEvent>
|
|
|
+ ): Promise<this>;
|
|
|
+
|
|
|
+ once<TCEvent extends TypedContractEvent>(
|
|
|
+ event: TCEvent,
|
|
|
+ listener: TypedListener<TCEvent>
|
|
|
+ ): Promise<this>;
|
|
|
+ once<TCEvent extends TypedContractEvent>(
|
|
|
+ filter: TypedDeferredTopicFilter<TCEvent>,
|
|
|
+ listener: TypedListener<TCEvent>
|
|
|
+ ): Promise<this>;
|
|
|
+
|
|
|
+ listeners<TCEvent extends TypedContractEvent>(
|
|
|
+ event: TCEvent
|
|
|
+ ): Promise<Array<TypedListener<TCEvent>>>;
|
|
|
+ listeners(eventName?: string): Promise<Array<Listener>>;
|
|
|
+ removeAllListeners<TCEvent extends TypedContractEvent>(
|
|
|
+ event?: TCEvent
|
|
|
+ ): Promise<this>;
|
|
|
+
|
|
|
+ DELTA_1: TypedContractMethod<[], [bigint], "view">;
|
|
|
+
|
|
|
+ DELTA_2: TypedContractMethod<[], [bigint], "view">;
|
|
|
+
|
|
|
+ DENOMINATOR: TypedContractMethod<[], [bigint], "view">;
|
|
|
+
|
|
|
+ EQ_REWARD_THRESHOLD: TypedContractMethod<[], [bigint], "view">;
|
|
|
+
|
|
|
+ LAMBDA_1: TypedContractMethod<[], [bigint], "view">;
|
|
|
+
|
|
|
+ LAMBDA_2: TypedContractMethod<[], [bigint], "view">;
|
|
|
+
|
|
|
+ LP_FEE: TypedContractMethod<[], [bigint], "view">;
|
|
|
+
|
|
|
+ ONE_BPS_PRICE_CHANGE_THRESHOLD: TypedContractMethod<[], [bigint], "view">;
|
|
|
+
|
|
|
+ PRICE_DEPEG_THRESHOLD: TypedContractMethod<[], [bigint], "view">;
|
|
|
+
|
|
|
+ PRICE_DRIFT_THRESHOLD: TypedContractMethod<[], [bigint], "view">;
|
|
|
+
|
|
|
+ PRICE_SHARED_DECIMALS: TypedContractMethod<[], [bigint], "view">;
|
|
|
+
|
|
|
+ PROTOCOL_FEE: TypedContractMethod<[], [bigint], "view">;
|
|
|
+
|
|
|
+ PROTOCOL_FEE_FOR_SAME_TOKEN: TypedContractMethod<[], [bigint], "view">;
|
|
|
+
|
|
|
+ PROTOCOL_SUBSIDY: TypedContractMethod<[], [bigint], "view">;
|
|
|
+
|
|
|
+ defaultAdapterParams: TypedContractMethod<
|
|
|
+ [arg0: BigNumberish],
|
|
|
+ [string],
|
|
|
+ "view"
|
|
|
+ >;
|
|
|
+
|
|
|
+ factory: TypedContractMethod<[], [string], "view">;
|
|
|
+
|
|
|
+ forceResumeReceive: TypedContractMethod<
|
|
|
+ [_srcChainId: BigNumberish, _srcAddress: BytesLike],
|
|
|
+ [void],
|
|
|
+ "nonpayable"
|
|
|
+ >;
|
|
|
+
|
|
|
+ getConfig: TypedContractMethod<
|
|
|
+ [
|
|
|
+ _version: BigNumberish,
|
|
|
+ _chainId: BigNumberish,
|
|
|
+ arg2: AddressLike,
|
|
|
+ _configType: BigNumberish
|
|
|
+ ],
|
|
|
+ [string],
|
|
|
+ "view"
|
|
|
+ >;
|
|
|
+
|
|
|
+ getDriftFee: TypedContractMethod<
|
|
|
+ [
|
|
|
+ _srcPoolId: BigNumberish,
|
|
|
+ _dstPoolId: BigNumberish,
|
|
|
+ _amountSD: BigNumberish,
|
|
|
+ _whitelisted: boolean
|
|
|
+ ],
|
|
|
+ [bigint],
|
|
|
+ "view"
|
|
|
+ >;
|
|
|
+
|
|
|
+ getEqReward: TypedContractMethod<
|
|
|
+ [_srcPoolId: BigNumberish, _amountSD: BigNumberish, _whitelisted: boolean],
|
|
|
+ [bigint],
|
|
|
+ "view"
|
|
|
+ >;
|
|
|
+
|
|
|
+ getEquilibriumFee: TypedContractMethod<
|
|
|
+ [
|
|
|
+ srcPoolId: BigNumberish,
|
|
|
+ dstPoolId: BigNumberish,
|
|
|
+ dstChainId: BigNumberish,
|
|
|
+ amountSD: BigNumberish,
|
|
|
+ whitelisted: boolean,
|
|
|
+ hasEqReward: boolean
|
|
|
+ ],
|
|
|
+ [[bigint, bigint]],
|
|
|
+ "view"
|
|
|
+ >;
|
|
|
+
|
|
|
+ getFees: TypedContractMethod<
|
|
|
+ [
|
|
|
+ _srcPoolId: BigNumberish,
|
|
|
+ _dstPoolId: BigNumberish,
|
|
|
+ _dstChainId: BigNumberish,
|
|
|
+ _from: AddressLike,
|
|
|
+ _amountSD: BigNumberish
|
|
|
+ ],
|
|
|
+ [Pool.SwapObjStructOutput],
|
|
|
+ "view"
|
|
|
+ >;
|
|
|
+
|
|
|
+ getProtocolAndLpFee: TypedContractMethod<
|
|
|
+ [
|
|
|
+ _srcPoolId: BigNumberish,
|
|
|
+ _dstPoolId: BigNumberish,
|
|
|
+ arg2: BigNumberish,
|
|
|
+ _amountSD: BigNumberish,
|
|
|
+ _protocolSubsidy: BigNumberish,
|
|
|
+ _whitelisted: boolean
|
|
|
+ ],
|
|
|
+ [[bigint, bigint]],
|
|
|
+ "view"
|
|
|
+ >;
|
|
|
+
|
|
|
+ getRemoteChains: TypedContractMethod<
|
|
|
+ [_poolId1: BigNumberish, _poolId2: BigNumberish],
|
|
|
+ [bigint[]],
|
|
|
+ "view"
|
|
|
+ >;
|
|
|
+
|
|
|
+ getVersion: TypedContractMethod<[], [string], "view">;
|
|
|
+
|
|
|
+ initTokenPrice: TypedContractMethod<
|
|
|
+ [_poolId: BigNumberish, _priceSD: BigNumberish],
|
|
|
+ [void],
|
|
|
+ "nonpayable"
|
|
|
+ >;
|
|
|
+
|
|
|
+ isTrustedRemote: TypedContractMethod<
|
|
|
+ [_srcChainId: BigNumberish, _srcAddress: BytesLike],
|
|
|
+ [boolean],
|
|
|
+ "view"
|
|
|
+ >;
|
|
|
+
|
|
|
+ lzEndpoint: TypedContractMethod<[], [string], "view">;
|
|
|
+
|
|
|
+ lzReceive: TypedContractMethod<
|
|
|
+ [
|
|
|
+ _srcChainId: BigNumberish,
|
|
|
+ _srcAddress: BytesLike,
|
|
|
+ _nonce: BigNumberish,
|
|
|
+ _payload: BytesLike
|
|
|
+ ],
|
|
|
+ [void],
|
|
|
+ "nonpayable"
|
|
|
+ >;
|
|
|
+
|
|
|
+ minDstGasLookup: TypedContractMethod<
|
|
|
+ [arg0: BigNumberish, arg1: BigNumberish],
|
|
|
+ [bigint],
|
|
|
+ "view"
|
|
|
+ >;
|
|
|
+
|
|
|
+ owner: TypedContractMethod<[], [string], "view">;
|
|
|
+
|
|
|
+ poolIdToLpId: TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
|
|
|
+
|
|
|
+ poolIdToPriceFeed: TypedContractMethod<
|
|
|
+ [arg0: BigNumberish],
|
|
|
+ [string],
|
|
|
+ "view"
|
|
|
+ >;
|
|
|
+
|
|
|
+ poolIdToPriceSD: TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
|
|
|
+
|
|
|
+ precrime: TypedContractMethod<[], [string], "view">;
|
|
|
+
|
|
|
+ quoteFeeForPriceUpdate: TypedContractMethod<
|
|
|
+ [_poolId1: BigNumberish, _poolId2: BigNumberish],
|
|
|
+ [bigint],
|
|
|
+ "view"
|
|
|
+ >;
|
|
|
+
|
|
|
+ renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
|
+
|
|
|
+ setConfig: TypedContractMethod<
|
|
|
+ [
|
|
|
+ _version: BigNumberish,
|
|
|
+ _chainId: BigNumberish,
|
|
|
+ _configType: BigNumberish,
|
|
|
+ _config: BytesLike
|
|
|
+ ],
|
|
|
+ [void],
|
|
|
+ "nonpayable"
|
|
|
+ >;
|
|
|
+
|
|
|
+ setDefaultAdapterParams: TypedContractMethod<
|
|
|
+ [_remoteChainId: BigNumberish, _adapterParams: BytesLike],
|
|
|
+ [void],
|
|
|
+ "nonpayable"
|
|
|
+ >;
|
|
|
+
|
|
|
+ setMinDstGas: TypedContractMethod<
|
|
|
+ [
|
|
|
+ _dstChainId: BigNumberish,
|
|
|
+ _packetType: BigNumberish,
|
|
|
+ _minGas: BigNumberish
|
|
|
+ ],
|
|
|
+ [void],
|
|
|
+ "nonpayable"
|
|
|
+ >;
|
|
|
+
|
|
|
+ setPoolToLpId: TypedContractMethod<
|
|
|
+ [_poolId: BigNumberish, _lpId: BigNumberish],
|
|
|
+ [void],
|
|
|
+ "nonpayable"
|
|
|
+ >;
|
|
|
+
|
|
|
+ setPrecrime: TypedContractMethod<
|
|
|
+ [_precrime: AddressLike],
|
|
|
+ [void],
|
|
|
+ "nonpayable"
|
|
|
+ >;
|
|
|
+
|
|
|
+ setReceiveVersion: TypedContractMethod<
|
|
|
+ [_version: BigNumberish],
|
|
|
+ [void],
|
|
|
+ "nonpayable"
|
|
|
+ >;
|
|
|
+
|
|
|
+ setRemoteChains: TypedContractMethod<
|
|
|
+ [
|
|
|
+ _poolId1: BigNumberish,
|
|
|
+ _poolId2: BigNumberish,
|
|
|
+ _remoteChainIds: BigNumberish[]
|
|
|
+ ],
|
|
|
+ [void],
|
|
|
+ "nonpayable"
|
|
|
+ >;
|
|
|
+
|
|
|
+ setSendVersion: TypedContractMethod<
|
|
|
+ [_version: BigNumberish],
|
|
|
+ [void],
|
|
|
+ "nonpayable"
|
|
|
+ >;
|
|
|
+
|
|
|
+ setStargatePoolIdToLPStakingAddress: TypedContractMethod<
|
|
|
+ [_poolId: BigNumberish, _lpStaking: AddressLike],
|
|
|
+ [void],
|
|
|
+ "nonpayable"
|
|
|
+ >;
|
|
|
+
|
|
|
+ setTokenPriceFeed: TypedContractMethod<
|
|
|
+ [_poolId: BigNumberish, _priceFeedAddress: AddressLike],
|
|
|
+ [void],
|
|
|
+ "nonpayable"
|
|
|
+ >;
|
|
|
+
|
|
|
+ setTrustedRemote: TypedContractMethod<
|
|
|
+ [_srcChainId: BigNumberish, _path: BytesLike],
|
|
|
+ [void],
|
|
|
+ "nonpayable"
|
|
|
+ >;
|
|
|
+
|
|
|
+ shouldCallUpdateTokenPrices: TypedContractMethod<
|
|
|
+ [_poolId1: BigNumberish, _poolId2: BigNumberish],
|
|
|
+ [boolean],
|
|
|
+ "view"
|
|
|
+ >;
|
|
|
+
|
|
|
+ stargatePoolIdToLPStaking: TypedContractMethod<
|
|
|
+ [arg0: BigNumberish],
|
|
|
+ [string],
|
|
|
+ "view"
|
|
|
+ >;
|
|
|
+
|
|
|
+ transferOwnership: TypedContractMethod<
|
|
|
+ [newOwner: AddressLike],
|
|
|
+ [void],
|
|
|
+ "nonpayable"
|
|
|
+ >;
|
|
|
+
|
|
|
+ trustedRemoteLookup: TypedContractMethod<
|
|
|
+ [arg0: BigNumberish],
|
|
|
+ [string],
|
|
|
+ "view"
|
|
|
+ >;
|
|
|
+
|
|
|
+ updateTokenPrices: TypedContractMethod<
|
|
|
+ [_poolId1: BigNumberish, _poolId2: BigNumberish],
|
|
|
+ [void],
|
|
|
+ "payable"
|
|
|
+ >;
|
|
|
+
|
|
|
+ whiteList: TypedContractMethod<
|
|
|
+ [_from: AddressLike, _whiteListed: boolean],
|
|
|
+ [void],
|
|
|
+ "nonpayable"
|
|
|
+ >;
|
|
|
+
|
|
|
+ whitelist: TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
|
+
|
|
|
+ getFunction<T extends ContractMethod = ContractMethod>(
|
|
|
+ key: string | FunctionFragment
|
|
|
+ ): T;
|
|
|
+
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "DELTA_1"
|
|
|
+ ): TypedContractMethod<[], [bigint], "view">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "DELTA_2"
|
|
|
+ ): TypedContractMethod<[], [bigint], "view">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "DENOMINATOR"
|
|
|
+ ): TypedContractMethod<[], [bigint], "view">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "EQ_REWARD_THRESHOLD"
|
|
|
+ ): TypedContractMethod<[], [bigint], "view">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "LAMBDA_1"
|
|
|
+ ): TypedContractMethod<[], [bigint], "view">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "LAMBDA_2"
|
|
|
+ ): TypedContractMethod<[], [bigint], "view">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "LP_FEE"
|
|
|
+ ): TypedContractMethod<[], [bigint], "view">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "ONE_BPS_PRICE_CHANGE_THRESHOLD"
|
|
|
+ ): TypedContractMethod<[], [bigint], "view">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "PRICE_DEPEG_THRESHOLD"
|
|
|
+ ): TypedContractMethod<[], [bigint], "view">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "PRICE_DRIFT_THRESHOLD"
|
|
|
+ ): TypedContractMethod<[], [bigint], "view">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "PRICE_SHARED_DECIMALS"
|
|
|
+ ): TypedContractMethod<[], [bigint], "view">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "PROTOCOL_FEE"
|
|
|
+ ): TypedContractMethod<[], [bigint], "view">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "PROTOCOL_FEE_FOR_SAME_TOKEN"
|
|
|
+ ): TypedContractMethod<[], [bigint], "view">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "PROTOCOL_SUBSIDY"
|
|
|
+ ): TypedContractMethod<[], [bigint], "view">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "defaultAdapterParams"
|
|
|
+ ): TypedContractMethod<[arg0: BigNumberish], [string], "view">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "factory"
|
|
|
+ ): TypedContractMethod<[], [string], "view">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "forceResumeReceive"
|
|
|
+ ): TypedContractMethod<
|
|
|
+ [_srcChainId: BigNumberish, _srcAddress: BytesLike],
|
|
|
+ [void],
|
|
|
+ "nonpayable"
|
|
|
+ >;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "getConfig"
|
|
|
+ ): TypedContractMethod<
|
|
|
+ [
|
|
|
+ _version: BigNumberish,
|
|
|
+ _chainId: BigNumberish,
|
|
|
+ arg2: AddressLike,
|
|
|
+ _configType: BigNumberish
|
|
|
+ ],
|
|
|
+ [string],
|
|
|
+ "view"
|
|
|
+ >;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "getDriftFee"
|
|
|
+ ): TypedContractMethod<
|
|
|
+ [
|
|
|
+ _srcPoolId: BigNumberish,
|
|
|
+ _dstPoolId: BigNumberish,
|
|
|
+ _amountSD: BigNumberish,
|
|
|
+ _whitelisted: boolean
|
|
|
+ ],
|
|
|
+ [bigint],
|
|
|
+ "view"
|
|
|
+ >;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "getEqReward"
|
|
|
+ ): TypedContractMethod<
|
|
|
+ [_srcPoolId: BigNumberish, _amountSD: BigNumberish, _whitelisted: boolean],
|
|
|
+ [bigint],
|
|
|
+ "view"
|
|
|
+ >;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "getEquilibriumFee"
|
|
|
+ ): TypedContractMethod<
|
|
|
+ [
|
|
|
+ srcPoolId: BigNumberish,
|
|
|
+ dstPoolId: BigNumberish,
|
|
|
+ dstChainId: BigNumberish,
|
|
|
+ amountSD: BigNumberish,
|
|
|
+ whitelisted: boolean,
|
|
|
+ hasEqReward: boolean
|
|
|
+ ],
|
|
|
+ [[bigint, bigint]],
|
|
|
+ "view"
|
|
|
+ >;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "getFees"
|
|
|
+ ): TypedContractMethod<
|
|
|
+ [
|
|
|
+ _srcPoolId: BigNumberish,
|
|
|
+ _dstPoolId: BigNumberish,
|
|
|
+ _dstChainId: BigNumberish,
|
|
|
+ _from: AddressLike,
|
|
|
+ _amountSD: BigNumberish
|
|
|
+ ],
|
|
|
+ [Pool.SwapObjStructOutput],
|
|
|
+ "view"
|
|
|
+ >;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "getProtocolAndLpFee"
|
|
|
+ ): TypedContractMethod<
|
|
|
+ [
|
|
|
+ _srcPoolId: BigNumberish,
|
|
|
+ _dstPoolId: BigNumberish,
|
|
|
+ arg2: BigNumberish,
|
|
|
+ _amountSD: BigNumberish,
|
|
|
+ _protocolSubsidy: BigNumberish,
|
|
|
+ _whitelisted: boolean
|
|
|
+ ],
|
|
|
+ [[bigint, bigint]],
|
|
|
+ "view"
|
|
|
+ >;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "getRemoteChains"
|
|
|
+ ): TypedContractMethod<
|
|
|
+ [_poolId1: BigNumberish, _poolId2: BigNumberish],
|
|
|
+ [bigint[]],
|
|
|
+ "view"
|
|
|
+ >;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "getVersion"
|
|
|
+ ): TypedContractMethod<[], [string], "view">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "initTokenPrice"
|
|
|
+ ): TypedContractMethod<
|
|
|
+ [_poolId: BigNumberish, _priceSD: BigNumberish],
|
|
|
+ [void],
|
|
|
+ "nonpayable"
|
|
|
+ >;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "isTrustedRemote"
|
|
|
+ ): TypedContractMethod<
|
|
|
+ [_srcChainId: BigNumberish, _srcAddress: BytesLike],
|
|
|
+ [boolean],
|
|
|
+ "view"
|
|
|
+ >;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "lzEndpoint"
|
|
|
+ ): TypedContractMethod<[], [string], "view">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "lzReceive"
|
|
|
+ ): TypedContractMethod<
|
|
|
+ [
|
|
|
+ _srcChainId: BigNumberish,
|
|
|
+ _srcAddress: BytesLike,
|
|
|
+ _nonce: BigNumberish,
|
|
|
+ _payload: BytesLike
|
|
|
+ ],
|
|
|
+ [void],
|
|
|
+ "nonpayable"
|
|
|
+ >;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "minDstGasLookup"
|
|
|
+ ): TypedContractMethod<
|
|
|
+ [arg0: BigNumberish, arg1: BigNumberish],
|
|
|
+ [bigint],
|
|
|
+ "view"
|
|
|
+ >;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "owner"
|
|
|
+ ): TypedContractMethod<[], [string], "view">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "poolIdToLpId"
|
|
|
+ ): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "poolIdToPriceFeed"
|
|
|
+ ): TypedContractMethod<[arg0: BigNumberish], [string], "view">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "poolIdToPriceSD"
|
|
|
+ ): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "precrime"
|
|
|
+ ): TypedContractMethod<[], [string], "view">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "quoteFeeForPriceUpdate"
|
|
|
+ ): TypedContractMethod<
|
|
|
+ [_poolId1: BigNumberish, _poolId2: BigNumberish],
|
|
|
+ [bigint],
|
|
|
+ "view"
|
|
|
+ >;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "renounceOwnership"
|
|
|
+ ): TypedContractMethod<[], [void], "nonpayable">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "setConfig"
|
|
|
+ ): TypedContractMethod<
|
|
|
+ [
|
|
|
+ _version: BigNumberish,
|
|
|
+ _chainId: BigNumberish,
|
|
|
+ _configType: BigNumberish,
|
|
|
+ _config: BytesLike
|
|
|
+ ],
|
|
|
+ [void],
|
|
|
+ "nonpayable"
|
|
|
+ >;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "setDefaultAdapterParams"
|
|
|
+ ): TypedContractMethod<
|
|
|
+ [_remoteChainId: BigNumberish, _adapterParams: BytesLike],
|
|
|
+ [void],
|
|
|
+ "nonpayable"
|
|
|
+ >;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "setMinDstGas"
|
|
|
+ ): TypedContractMethod<
|
|
|
+ [
|
|
|
+ _dstChainId: BigNumberish,
|
|
|
+ _packetType: BigNumberish,
|
|
|
+ _minGas: BigNumberish
|
|
|
+ ],
|
|
|
+ [void],
|
|
|
+ "nonpayable"
|
|
|
+ >;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "setPoolToLpId"
|
|
|
+ ): TypedContractMethod<
|
|
|
+ [_poolId: BigNumberish, _lpId: BigNumberish],
|
|
|
+ [void],
|
|
|
+ "nonpayable"
|
|
|
+ >;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "setPrecrime"
|
|
|
+ ): TypedContractMethod<[_precrime: AddressLike], [void], "nonpayable">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "setReceiveVersion"
|
|
|
+ ): TypedContractMethod<[_version: BigNumberish], [void], "nonpayable">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "setRemoteChains"
|
|
|
+ ): TypedContractMethod<
|
|
|
+ [
|
|
|
+ _poolId1: BigNumberish,
|
|
|
+ _poolId2: BigNumberish,
|
|
|
+ _remoteChainIds: BigNumberish[]
|
|
|
+ ],
|
|
|
+ [void],
|
|
|
+ "nonpayable"
|
|
|
+ >;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "setSendVersion"
|
|
|
+ ): TypedContractMethod<[_version: BigNumberish], [void], "nonpayable">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "setStargatePoolIdToLPStakingAddress"
|
|
|
+ ): TypedContractMethod<
|
|
|
+ [_poolId: BigNumberish, _lpStaking: AddressLike],
|
|
|
+ [void],
|
|
|
+ "nonpayable"
|
|
|
+ >;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "setTokenPriceFeed"
|
|
|
+ ): TypedContractMethod<
|
|
|
+ [_poolId: BigNumberish, _priceFeedAddress: AddressLike],
|
|
|
+ [void],
|
|
|
+ "nonpayable"
|
|
|
+ >;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "setTrustedRemote"
|
|
|
+ ): TypedContractMethod<
|
|
|
+ [_srcChainId: BigNumberish, _path: BytesLike],
|
|
|
+ [void],
|
|
|
+ "nonpayable"
|
|
|
+ >;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "shouldCallUpdateTokenPrices"
|
|
|
+ ): TypedContractMethod<
|
|
|
+ [_poolId1: BigNumberish, _poolId2: BigNumberish],
|
|
|
+ [boolean],
|
|
|
+ "view"
|
|
|
+ >;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "stargatePoolIdToLPStaking"
|
|
|
+ ): TypedContractMethod<[arg0: BigNumberish], [string], "view">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "transferOwnership"
|
|
|
+ ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "trustedRemoteLookup"
|
|
|
+ ): TypedContractMethod<[arg0: BigNumberish], [string], "view">;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "updateTokenPrices"
|
|
|
+ ): TypedContractMethod<
|
|
|
+ [_poolId1: BigNumberish, _poolId2: BigNumberish],
|
|
|
+ [void],
|
|
|
+ "payable"
|
|
|
+ >;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "whiteList"
|
|
|
+ ): TypedContractMethod<
|
|
|
+ [_from: AddressLike, _whiteListed: boolean],
|
|
|
+ [void],
|
|
|
+ "nonpayable"
|
|
|
+ >;
|
|
|
+ getFunction(
|
|
|
+ nameOrSignature: "whitelist"
|
|
|
+ ): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
|
+
|
|
|
+ getEvent(
|
|
|
+ key: "OwnershipTransferred"
|
|
|
+ ): TypedContractEvent<
|
|
|
+ OwnershipTransferredEvent.InputTuple,
|
|
|
+ OwnershipTransferredEvent.OutputTuple,
|
|
|
+ OwnershipTransferredEvent.OutputObject
|
|
|
+ >;
|
|
|
+ getEvent(
|
|
|
+ key: "PriceUpdated"
|
|
|
+ ): TypedContractEvent<
|
|
|
+ PriceUpdatedEvent.InputTuple,
|
|
|
+ PriceUpdatedEvent.OutputTuple,
|
|
|
+ PriceUpdatedEvent.OutputObject
|
|
|
+ >;
|
|
|
+ getEvent(
|
|
|
+ key: "SetMinDstGas"
|
|
|
+ ): TypedContractEvent<
|
|
|
+ SetMinDstGasEvent.InputTuple,
|
|
|
+ SetMinDstGasEvent.OutputTuple,
|
|
|
+ SetMinDstGasEvent.OutputObject
|
|
|
+ >;
|
|
|
+ getEvent(
|
|
|
+ key: "SetPrecrime"
|
|
|
+ ): TypedContractEvent<
|
|
|
+ SetPrecrimeEvent.InputTuple,
|
|
|
+ SetPrecrimeEvent.OutputTuple,
|
|
|
+ SetPrecrimeEvent.OutputObject
|
|
|
+ >;
|
|
|
+ getEvent(
|
|
|
+ key: "SetTrustedRemote"
|
|
|
+ ): TypedContractEvent<
|
|
|
+ SetTrustedRemoteEvent.InputTuple,
|
|
|
+ SetTrustedRemoteEvent.OutputTuple,
|
|
|
+ SetTrustedRemoteEvent.OutputObject
|
|
|
+ >;
|
|
|
+ getEvent(
|
|
|
+ key: "SetTrustedRemoteAddress"
|
|
|
+ ): TypedContractEvent<
|
|
|
+ SetTrustedRemoteAddressEvent.InputTuple,
|
|
|
+ SetTrustedRemoteAddressEvent.OutputTuple,
|
|
|
+ SetTrustedRemoteAddressEvent.OutputObject
|
|
|
+ >;
|
|
|
+
|
|
|
+ filters: {
|
|
|
+ "OwnershipTransferred(address,address)": TypedContractEvent<
|
|
|
+ OwnershipTransferredEvent.InputTuple,
|
|
|
+ OwnershipTransferredEvent.OutputTuple,
|
|
|
+ OwnershipTransferredEvent.OutputObject
|
|
|
+ >;
|
|
|
+ OwnershipTransferred: TypedContractEvent<
|
|
|
+ OwnershipTransferredEvent.InputTuple,
|
|
|
+ OwnershipTransferredEvent.OutputTuple,
|
|
|
+ OwnershipTransferredEvent.OutputObject
|
|
|
+ >;
|
|
|
+
|
|
|
+ "PriceUpdated(uint256,uint256)": TypedContractEvent<
|
|
|
+ PriceUpdatedEvent.InputTuple,
|
|
|
+ PriceUpdatedEvent.OutputTuple,
|
|
|
+ PriceUpdatedEvent.OutputObject
|
|
|
+ >;
|
|
|
+ PriceUpdated: TypedContractEvent<
|
|
|
+ PriceUpdatedEvent.InputTuple,
|
|
|
+ PriceUpdatedEvent.OutputTuple,
|
|
|
+ PriceUpdatedEvent.OutputObject
|
|
|
+ >;
|
|
|
+
|
|
|
+ "SetMinDstGas(uint16,uint16,uint256)": TypedContractEvent<
|
|
|
+ SetMinDstGasEvent.InputTuple,
|
|
|
+ SetMinDstGasEvent.OutputTuple,
|
|
|
+ SetMinDstGasEvent.OutputObject
|
|
|
+ >;
|
|
|
+ SetMinDstGas: TypedContractEvent<
|
|
|
+ SetMinDstGasEvent.InputTuple,
|
|
|
+ SetMinDstGasEvent.OutputTuple,
|
|
|
+ SetMinDstGasEvent.OutputObject
|
|
|
+ >;
|
|
|
+
|
|
|
+ "SetPrecrime(address)": TypedContractEvent<
|
|
|
+ SetPrecrimeEvent.InputTuple,
|
|
|
+ SetPrecrimeEvent.OutputTuple,
|
|
|
+ SetPrecrimeEvent.OutputObject
|
|
|
+ >;
|
|
|
+ SetPrecrime: TypedContractEvent<
|
|
|
+ SetPrecrimeEvent.InputTuple,
|
|
|
+ SetPrecrimeEvent.OutputTuple,
|
|
|
+ SetPrecrimeEvent.OutputObject
|
|
|
+ >;
|
|
|
+
|
|
|
+ "SetTrustedRemote(uint16,bytes)": TypedContractEvent<
|
|
|
+ SetTrustedRemoteEvent.InputTuple,
|
|
|
+ SetTrustedRemoteEvent.OutputTuple,
|
|
|
+ SetTrustedRemoteEvent.OutputObject
|
|
|
+ >;
|
|
|
+ SetTrustedRemote: TypedContractEvent<
|
|
|
+ SetTrustedRemoteEvent.InputTuple,
|
|
|
+ SetTrustedRemoteEvent.OutputTuple,
|
|
|
+ SetTrustedRemoteEvent.OutputObject
|
|
|
+ >;
|
|
|
+
|
|
|
+ "SetTrustedRemoteAddress(uint16,bytes)": TypedContractEvent<
|
|
|
+ SetTrustedRemoteAddressEvent.InputTuple,
|
|
|
+ SetTrustedRemoteAddressEvent.OutputTuple,
|
|
|
+ SetTrustedRemoteAddressEvent.OutputObject
|
|
|
+ >;
|
|
|
+ SetTrustedRemoteAddress: TypedContractEvent<
|
|
|
+ SetTrustedRemoteAddressEvent.InputTuple,
|
|
|
+ SetTrustedRemoteAddressEvent.OutputTuple,
|
|
|
+ SetTrustedRemoteAddressEvent.OutputObject
|
|
|
+ >;
|
|
|
+ };
|
|
|
+}
|