UNPKG

olympus-protocol-connector

Version:

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

575 lines 12.5 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.STRATEGY_ABI = [ { constant: true, inputs: [], name: 'name', outputs: [ { name: '', type: 'string', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [ { name: '', type: 'address', }, ], name: 'StrategyWhiteList', outputs: [ { name: '', type: 'bool', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'providerType', outputs: [ { name: '', type: 'uint8', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'description', outputs: [ { name: '', type: 'string', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [ { name: '', type: 'address', }, { name: '', type: 'uint256', }, ], name: 'comboIndex', outputs: [ { name: '', type: 'uint256', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [ { name: '', type: 'uint256', }, ], name: 'comboOwner', outputs: [ { name: '', type: 'address', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'statistics', outputs: [ { name: 'counter', type: 'uint256', }, { name: 'amountInEther', type: 'uint256', }, { name: 'reputation', 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', }, { constant: true, inputs: [ { name: '', type: 'uint256', }, ], name: 'comboHub', outputs: [ { name: 'id', type: 'uint256', }, { name: 'name', type: 'string', }, { name: 'description', type: 'string', }, { name: 'category', type: 'string', }, { name: 'follower', type: 'uint256', }, { name: 'amount', type: 'uint256', }, { name: 'exchangeId', type: 'bytes32', }, ], 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', }, { inputs: [ { name: '_permissionProvider', type: 'address', }, ], payable: false, stateMutability: 'nonpayable', type: 'constructor', }, { anonymous: false, inputs: [ { indexed: false, name: 'strategyId', type: 'uint256', }, ], name: 'StrategyChanged', type: 'event', }, { anonymous: false, inputs: [ { indexed: false, name: 'id', type: 'uint256', }, { indexed: false, name: 'name', type: 'string', }, ], name: 'ComboCreated', type: 'event', }, { anonymous: false, inputs: [ { indexed: false, name: 'id', type: 'uint256', }, { indexed: false, name: 'name', type: 'string', }, ], name: 'ComboUpdated', type: 'event', }, { anonymous: false, inputs: [ { indexed: false, name: 'name', type: 'uint8', }, { indexed: false, name: 'hash', type: 'address', }, ], name: 'ProviderUpdated', type: 'event', }, { constant: false, inputs: [ { name: 'whitelistAddresses', type: 'address[]', }, ], name: 'changeWhitelist', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: true, inputs: [], name: 'getStrategyCount', outputs: [ { name: 'length', type: 'uint256', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [ { name: '_owner', type: 'address', }, ], name: 'getStrategies', outputs: [ { name: '', type: 'uint256[]', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [], name: 'getMyStrategies', outputs: [ { name: '', type: 'uint256[]', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [ { name: '_index', type: 'uint256', }, ], name: 'getStrategyTokenCount', outputs: [ { name: 'length', type: 'uint256', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [ { name: '_index', type: 'uint256', }, { name: 'tokenIndex', type: 'uint256', }, ], name: 'getStrategyTokenByIndex', outputs: [ { name: 'token', type: 'address', }, { name: 'weight', type: 'uint256', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: true, inputs: [ { name: '_index', type: 'uint256', }, ], name: 'getStrategy', outputs: [ { name: 'id', type: 'uint256', }, { name: 'name', type: 'string', }, { name: 'description', type: 'string', }, { name: 'category', type: 'string', }, { name: 'tokenAddresses', type: 'address[]', }, { name: 'weights', type: 'uint256[]', }, { name: 'followers', type: 'uint256', }, { name: 'amount', type: 'uint256', }, { name: 'exchangeId', type: 'bytes32', }, ], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, inputs: [ { name: '_name', type: 'string', }, { name: '_description', type: 'string', }, { name: '_category', type: 'string', }, { name: '_tokenAddresses', type: 'address[]', }, { name: '_weights', type: 'uint256[]', }, { name: '_exchangeId', type: 'bytes32', }, ], name: 'createStrategy', outputs: [ { name: '', type: 'uint256', }, ], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { name: '_index', type: 'uint256', }, { name: '_name', type: 'string', }, { name: '_description', type: 'string', }, { name: '_category', type: 'string', }, { name: '_tokenAddresses', type: 'address[]', }, { name: '_weights', type: 'uint256[]', }, { name: '_exchangeId', type: 'bytes32', }, ], name: 'updateStrategy', outputs: [ { name: 'success', type: 'bool', }, ], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { name: '_index', type: 'uint256', }, { name: '_amountInEther', type: 'uint256', }, ], name: 'incrementStatistics', outputs: [ { name: 'success', type: 'bool', }, ], payable: false, stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ { name: '_index', type: 'uint256', }, { name: 'follow', type: 'bool', }, ], name: 'updateFollower', outputs: [ { name: 'success', type: 'bool', }, ], payable: false, stateMutability: 'nonpayable', type: 'function', }, ]; //# sourceMappingURL=Strategy.js.map