aave-protocol-v2/types/IOneSplitViewFactory.ts

259 lines
4.4 KiB
TypeScript

/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { IOneSplitView } from "./IOneSplitView";
export class IOneSplitViewFactory {
static connect(
address: string,
signerOrProvider: Signer | Provider
): IOneSplitView {
return new Contract(address, _abi, signerOrProvider) as IOneSplitView;
}
}
const _abi = [
{
inputs: [],
name: "FLAG_AAVE",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_BANCOR",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_BDAI",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_CHAI",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_COMPOUND",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_FULCRUM",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_IEARN",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_KYBER",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_KYBER_BANCOR_RESERVE",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_KYBER_OASIS_RESERVE",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_KYBER_UNISWAP_RESERVE",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_MULTI_PATH_ETH",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_OASIS",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_SMART_TOKEN",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "FLAG_UNISWAP",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract IERC20",
name: "fromToken",
type: "address"
},
{
internalType: "contract IERC20",
name: "toToken",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
},
{
internalType: "uint256",
name: "parts",
type: "uint256"
},
{
internalType: "uint256",
name: "disableFlags",
type: "uint256"
}
],
name: "getExpectedReturn",
outputs: [
{
internalType: "uint256",
name: "returnAmount",
type: "uint256"
},
{
internalType: "uint256[]",
name: "distribution",
type: "uint256[]"
}
],
stateMutability: "view",
type: "function"
}
];