UNPKG

olympus-protocol-connector

Version:

Module made by Olympus Labs for easier access to the Olympus protocol through Javascript/Typescript

617 lines 13.3 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CORE_ABI = [ { constant: true, inputs: [], name: 'MOTDiscount', outputs: [ { name: '', type: 'uint256', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'minimumInWei', outputs: [ { name: '', type: 'uint256', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'DENOMINATOR', outputs: [ { name: '', type: 'uint256', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'maximumInWei', outputs: [ { name: '', 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: 'uint8', }, ], name: 'subContracts', outputs: [ { name: '', type: 'address', }, ], payable: false, stateMutability: 'view', type: 'function', }, { inputs: [ { name: '_permissionProvider', type: 'address', }, ], payable: false, stateMutability: 'nonpayable', type: 'constructor', }, { payable: true, stateMutability: 'payable', type: 'fallback', }, { anonymous: false, inputs: [ { indexed: false, name: 'orderId', type: 'uint256', }, ], name: 'IndexOrderUpdated', type: 'event', }, { anonymous: false, inputs: [ { indexed: false, name: 'message', type: 'string', }, ], name: 'Log', type: 'event', }, { anonymous: false, inputs: [ { indexed: false, name: 'number', type: 'uint256', }, ], name: 'LogNumber', type: 'event', }, { anonymous: false, inputs: [ { indexed: false, name: 'message', type: 'address', }, ], name: 'LogAddress', type: 'event', }, { anonymous: false, inputs: [ { indexed: false, name: 'message', type: 'address[]', }, ], name: 'LogAddresses', type: 'event', }, { anonymous: false, inputs: [ { indexed: false, name: 'numbers', type: 'uint256[]', }, ], name: 'LogNumbers', type: 'event', }, { anonymous: false, inputs: [ { indexed: false, name: '', type: 'address', }, ], name: 'LOGDEBUG', type: 'event', }, { anonymous: false, inputs: [ { indexed: false, name: 'name', type: 'uint8', }, { indexed: false, name: 'hash', type: 'address', }, ], name: 'ProviderUpdated', type: 'event', }, { constant: true, inputs: [], name: 'getStrategyCount', outputs: [ { name: 'length', type: 'uint256', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [ { name: 'strategyId', type: 'uint256', }, ], name: 'getStrategy', outputs: [ { name: 'name', type: 'string', }, { name: 'description', type: 'string', }, { name: 'category', type: 'string', }, { name: 'tokens', type: 'address[]', }, { name: 'weights', type: 'uint256[]', }, { name: 'followers', type: 'uint256', }, { name: 'amount', type: 'uint256', }, { name: 'exchangeName', type: 'string', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [ { name: 'strategyId', type: 'uint256', }, { name: 'index', type: 'uint256', }, ], name: 'getStrategyTokenAndWeightByIndex', outputs: [ { name: 'token', type: 'address', }, { name: 'weight', type: 'uint256', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [ { name: 'tokenAddress', type: 'address', }, { name: 'srcQty', type: 'uint256', }, ], name: 'getPrice', outputs: [ { name: 'price', type: 'uint256', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [ { name: 'strategyId', type: 'uint256', }, { name: 'tokenIndex', type: 'uint256', }, ], name: 'getStrategyTokenPrice', outputs: [ { name: 'price', type: 'uint256', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, inputs: [ { name: '_id', type: 'uint8', }, { name: '_providerAddress', type: 'address', }, ], name: 'setProvider', outputs: [ { name: 'success', type: 'bool', }, ], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { name: 'strategyId', type: 'uint256', }, { name: 'depositAddress', type: 'address', }, { name: 'feeIsMOT', type: 'bool', }, ], name: 'buyIndex', outputs: [ { name: 'indexOrderId', type: 'uint256', }, ], payable: true, stateMutability: 'payable', type: 'function', }, { constant: false, inputs: [ { name: '_start', type: 'uint256', }, ], name: 'resetOrderIdTo', outputs: [ { name: '', type: 'uint256', }, ], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: true, inputs: [ { name: '_orderId', type: 'uint256', }, ], name: 'getIndexOrder', outputs: [ { name: '', type: 'uint256[]', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, inputs: [ { name: '_orderId', type: 'uint256', }, { name: '_tokenAddress', type: 'address', }, { name: '_actualPrice', type: 'uint256', }, { name: '_totalTokenAmount', type: 'uint256', }, { name: '_completedQuantity', type: 'uint256', }, ], name: 'updateIndexOrderToken', outputs: [ { name: 'success', type: 'bool', }, ], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { name: '_orderId', type: 'uint256', }, { name: '_status', type: 'uint8', }, ], name: 'updateOrderStatus', outputs: [ { name: 'success', type: 'bool', }, ], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: true, inputs: [ { name: '_orderId', type: 'uint256', }, { name: '_tokenAddress', type: 'address', }, ], name: 'getSubOrderStatus', outputs: [ { name: '', type: 'uint8', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, inputs: [ { name: '_newFeePercentage', type: 'uint256', }, ], name: 'adjustFee', outputs: [ { name: 'success', type: 'bool', }, ], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { name: '_newDiscountPercentage', type: 'uint256', }, ], name: 'adjustMOTFeeDiscount', outputs: [ { name: 'success', type: 'bool', }, ], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { name: '_minInWei', type: 'uint256', }, { name: '_maxInWei', type: 'uint256', }, ], name: 'adjustTradeRange', outputs: [ { name: 'success', type: 'bool', }, ], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { name: 'receiveAddress', type: 'address', }, { name: '_tokenAddress', type: 'address', }, ], name: 'withdrawERC20', outputs: [ { name: 'success', type: 'bool', }, ], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { name: 'receiveAddress', type: 'address', }, ], name: 'withdrawETH', outputs: [ { name: 'success', type: 'bool', }, ], payable: false, stateMutability: 'nonpayable', type: 'function', }, ]; //# sourceMappingURL=Core.js.map