@mean-finance/dca-v2-periphery
Version:
💱 Periphery smart contracts of DCA V2 by mean.finance
234 lines (233 loc) • 8.29 kB
JavaScript
;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.ILegacyDCAHub__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
{
inputs: [
{
internalType: "address[]",
name: "tokens",
type: "address[]",
},
{
components: [
{
internalType: "uint8",
name: "indexTokenA",
type: "uint8",
},
{
internalType: "uint8",
name: "indexTokenB",
type: "uint8",
},
],
internalType: "struct IDCAHubSwapHandler.PairIndexes[]",
name: "pairs",
type: "tuple[]",
},
],
name: "getNextSwapInfo",
outputs: [
{
components: [
{
components: [
{
internalType: "address",
name: "token",
type: "address",
},
{
internalType: "uint256",
name: "reward",
type: "uint256",
},
{
internalType: "uint256",
name: "toProvide",
type: "uint256",
},
{
internalType: "uint256",
name: "platformFee",
type: "uint256",
},
],
internalType: "struct ILegacyDCAHub.TokenInSwap[]",
name: "tokens",
type: "tuple[]",
},
{
components: [
{
internalType: "address",
name: "tokenA",
type: "address",
},
{
internalType: "address",
name: "tokenB",
type: "address",
},
{
internalType: "uint256",
name: "ratioAToB",
type: "uint256",
},
{
internalType: "uint256",
name: "ratioBToA",
type: "uint256",
},
{
internalType: "bytes1",
name: "intervalsInSwap",
type: "bytes1",
},
],
internalType: "struct ILegacyDCAHub.PairInSwap[]",
name: "pairs",
type: "tuple[]",
},
],
internalType: "struct ILegacyDCAHub.SwapInfo",
name: "swapInformation",
type: "tuple",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address[]",
name: "tokens",
type: "address[]",
},
{
components: [
{
internalType: "uint8",
name: "indexTokenA",
type: "uint8",
},
{
internalType: "uint8",
name: "indexTokenB",
type: "uint8",
},
],
internalType: "struct IDCAHubSwapHandler.PairIndexes[]",
name: "pairsToSwap",
type: "tuple[]",
},
{
internalType: "address",
name: "rewardRecipient",
type: "address",
},
{
internalType: "address",
name: "callbackHandler",
type: "address",
},
{
internalType: "uint256[]",
name: "borrow",
type: "uint256[]",
},
{
internalType: "bytes",
name: "callbackData",
type: "bytes",
},
],
name: "swap",
outputs: [
{
components: [
{
components: [
{
internalType: "address",
name: "token",
type: "address",
},
{
internalType: "uint256",
name: "reward",
type: "uint256",
},
{
internalType: "uint256",
name: "toProvide",
type: "uint256",
},
{
internalType: "uint256",
name: "platformFee",
type: "uint256",
},
],
internalType: "struct ILegacyDCAHub.TokenInSwap[]",
name: "tokens",
type: "tuple[]",
},
{
components: [
{
internalType: "address",
name: "tokenA",
type: "address",
},
{
internalType: "address",
name: "tokenB",
type: "address",
},
{
internalType: "uint256",
name: "ratioAToB",
type: "uint256",
},
{
internalType: "uint256",
name: "ratioBToA",
type: "uint256",
},
{
internalType: "bytes1",
name: "intervalsInSwap",
type: "bytes1",
},
],
internalType: "struct ILegacyDCAHub.PairInSwap[]",
name: "pairs",
type: "tuple[]",
},
],
internalType: "struct ILegacyDCAHub.SwapInfo",
name: "",
type: "tuple",
},
],
stateMutability: "nonpayable",
type: "function",
},
];
class ILegacyDCAHub__factory {
static createInterface() {
return new ethers_1.utils.Interface(_abi);
}
static connect(address, signerOrProvider) {
return new ethers_1.Contract(address, _abi, signerOrProvider);
}
}
exports.ILegacyDCAHub__factory = ILegacyDCAHub__factory;
ILegacyDCAHub__factory.abi = _abi;