aave-protocol-v2/types/IOneSplitFactory.ts
2020-07-13 11:54:08 +03:00

332 lines
5.9 KiB
TypeScript

/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import {IOneSplit} from './IOneSplit';
export class IOneSplitFactory {
static connect(address: string, signerOrProvider: Signer | Provider): IOneSplit {
return new Contract(address, _abi, signerOrProvider) as IOneSplit;
}
}
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',
},
{
inputs: [
{
internalType: 'contract IERC20',
name: 'fromToken',
type: 'address',
},
{
internalType: 'contract IERC20',
name: 'toToken',
type: 'address',
},
{
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'minReturn',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'parts',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'disableFlags',
type: 'uint256',
},
],
name: 'goodSwap',
outputs: [],
stateMutability: 'payable',
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: 'minReturn',
type: 'uint256',
},
{
internalType: 'uint256[]',
name: 'distribution',
type: 'uint256[]',
},
{
internalType: 'uint256',
name: 'disableFlags',
type: 'uint256',
},
],
name: 'swap',
outputs: [],
stateMutability: 'payable',
type: 'function',
},
];