olympus-protocol-connector
Version:
Module made by Olympus Labs for easier access to the Olympus protocol through Javascript/Typescript
646 lines • 13.9 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.REBALANCE_PROVIDER_ABI = [
{
constant: false,
inputs: [
{
name: '_newMode',
type: 'uint8',
},
],
name: 'adjustFeeMode',
outputs: [
{
name: 'success',
type: 'bool',
},
],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'name',
outputs: [
{
name: '',
type: 'string',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [
{
name: '',
type: 'address',
},
{
name: '',
type: 'uint256',
},
],
name: 'tokensToSell',
outputs: [
{
name: '',
type: 'address',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [
{
name: '_newPercentage',
type: 'uint256',
},
],
name: 'adjustFeePercentage',
outputs: [
{
name: 'success',
type: 'bool',
},
],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [
{
name: '',
type: 'address',
},
{
name: '',
type: 'uint256',
},
],
name: 'tokensWithPriceIssues',
outputs: [
{
name: '',
type: 'address',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [
{
name: '_newWallet',
type: 'address',
},
],
name: 'setWalletId',
outputs: [
{
name: 'success',
type: 'bool',
},
],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [
{
name: '',
type: 'address',
},
{
name: '',
type: 'uint256',
},
],
name: 'tokensToBuy',
outputs: [
{
name: '',
type: 'address',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'version',
outputs: [
{
name: '',
type: 'string',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'feeAmount',
outputs: [
{
name: '',
type: 'uint256',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [],
name: 'renounceOwnership',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'description',
outputs: [
{
name: '',
type: 'string',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'owner',
outputs: [
{
name: '',
type: 'address',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [
{
name: '_newAmount',
type: 'uint256',
},
],
name: 'adjustFeeAmount',
outputs: [
{
name: 'success',
type: 'bool',
},
],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [
{
name: '_amount',
type: 'uint256',
},
],
name: 'calculateFee',
outputs: [
{
name: 'amount',
type: 'uint256',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'feePercentage',
outputs: [
{
name: '',
type: 'uint256',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [
{
name: '',
type: 'address',
},
{
name: '',
type: 'uint256',
},
],
name: 'amountsToBuy',
outputs: [
{
name: '',
type: 'uint256',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'feeMode',
outputs: [
{
name: '',
type: 'uint8',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [
{
name: '',
type: 'address',
},
],
name: 'rebalanceStatus',
outputs: [
{
name: '',
type: 'uint8',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'FEE_CHARGER_DENOMINATOR',
outputs: [
{
name: '',
type: 'uint256',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'MOT',
outputs: [
{
name: '',
type: 'address',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [
{
name: '_motAddress',
type: 'address',
},
],
name: 'setMotAddress',
outputs: [
{
name: 'success',
type: 'bool',
},
],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'category',
outputs: [
{
name: '',
type: 'string',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [
{
name: '',
type: 'address',
},
{
name: '',
type: 'uint256',
},
],
name: 'amountsToSell',
outputs: [
{
name: '',
type: 'uint256',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [
{
name: '_newOwner',
type: 'address',
},
],
name: 'transferOwnership',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
name: '_priceProvider',
type: 'address',
},
],
payable: false,
stateMutability: 'nonpayable',
type: 'constructor',
},
{
anonymous: false,
inputs: [
{
indexed: true,
name: 'previousOwner',
type: 'address',
},
],
name: 'OwnershipRenounced',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
name: 'previousOwner',
type: 'address',
},
{
indexed: true,
name: 'newOwner',
type: 'address',
},
],
name: 'OwnershipTransferred',
type: 'event',
},
{
constant: false,
inputs: [
{
name: '_priceProvider',
type: 'address',
},
],
name: 'updatePriceProvider',
outputs: [
{
name: 'success',
type: 'bool',
},
],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [
{
name: '_newTimeout',
type: 'uint256',
},
],
name: 'updateCachedPriceTimeout',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [
{
name: '_rebalanceDeltaPercentage',
type: 'uint256',
},
{
name: '_targetAddress',
type: 'address',
},
],
name: 'needsRebalance',
outputs: [
{
name: '',
type: 'bool',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [
{
name: '_rebalanceDeltaPercentage',
type: 'uint256',
},
],
name: 'rebalanceGetTokensToSellAndBuy',
outputs: [
{
name: '_tokensToSell',
type: 'address[]',
},
{
name: '_amountsToSell',
type: 'uint256[]',
},
{
name: '_tokensToBuy',
type: 'address[]',
},
{
name: '_amountsToBuy',
type: 'uint256[]',
},
{
name: '_tokensWithPriceIssues',
type: 'address[]',
},
],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [
{
name: '_receivedETHFromSale',
type: 'uint256',
},
],
name: 'recalculateTokensToBuyAfterSale',
outputs: [
{
name: '_recalculatedAmountsToBuy',
type: 'uint256[]',
},
],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [],
name: 'getRebalanceInProgress',
outputs: [
{
name: 'inProgress',
type: 'bool',
},
],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [],
name: 'finalize',
outputs: [
{
name: 'success',
type: 'bool',
},
],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [],
name: 'getTotalIndexValue',
outputs: [
{
name: 'totalValue',
type: 'uint256',
},
],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [
{
name: '_indexAddress',
type: 'address',
},
],
name: 'getTotalIndexValueWithoutCache',
outputs: [
{
name: 'totalValue',
type: 'uint256',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [
{
name: '_addresses',
type: 'address[]',
},
],
name: 'castToERC20Extended',
outputs: [
{
name: '_erc20Extended',
type: 'address[]',
},
],
payable: false,
stateMutability: 'pure',
type: 'function',
},
];
//# sourceMappingURL=RebalanceProvider.js.map