aave-protocol-v2/types/IOneSplitFactory.ts

332 lines
5.9 KiB
TypeScript
Raw Normal View History

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