olympus-protocol-connector
Version:
Module made by Olympus Labs for easier access to the Olympus protocol through Javascript/Typescript
331 lines • 7.17 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EXCHANGE_ADAPTER_MANAGER_ABI = [
{
constant: true,
inputs: [
{
name: '',
type: 'uint256',
},
],
name: 'exchanges',
outputs: [
{
name: '',
type: 'bytes32',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [],
name: 'renounceOwnership',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'owner',
outputs: [
{
name: '',
type: 'address',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [
{
name: '',
type: 'bytes32',
},
],
name: 'exchangeAdapters',
outputs: [
{
name: '',
type: 'address',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [
{
name: '_newOwner',
type: 'address',
},
],
name: 'transferOwnership',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
anonymous: false,
inputs: [
{
indexed: false,
name: 'id',
type: 'bytes32',
},
],
name: 'AddedExchange',
type: 'event',
},
{
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: '_name',
type: 'bytes32',
},
{
name: '_adapter',
type: 'address',
},
],
name: 'addExchange',
outputs: [
{
name: '',
type: 'bool',
},
],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getExchanges',
outputs: [
{
name: '',
type: 'bytes32[]',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [
{
name: '_id',
type: 'bytes32',
},
],
name: 'getExchangeInfo',
outputs: [
{
name: 'name',
type: 'bytes32',
},
{
name: 'status',
type: 'bool',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [
{
name: '_id',
type: 'bytes32',
},
],
name: 'getExchangeAdapter',
outputs: [
{
name: '',
type: 'address',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [
{
name: '_sourceAddress',
type: 'address',
},
{
name: '_destAddress',
type: 'address',
},
{
name: '_amount',
type: 'uint256',
},
{
name: '_exchangeId',
type: 'bytes32',
},
],
name: 'getPrice',
outputs: [
{
name: 'expectedRate',
type: 'uint256',
},
{
name: 'slippageRate',
type: 'uint256',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [
{
name: '_src',
type: 'address',
},
{
name: '_dest',
type: 'address',
},
{
name: '_amount',
type: 'uint256',
},
{
name: '_rate',
type: 'uint256',
},
],
name: 'pickExchange',
outputs: [
{
name: 'exchangeId',
type: 'bytes32',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [
{
name: '_srcAddress',
type: 'address',
},
{
name: '_destAddress',
type: 'address',
},
{
name: '_exchangeId',
type: 'bytes32',
},
],
name: 'supportsTradingPair',
outputs: [
{
name: '',
type: 'bool',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [
{
name: '_adapter',
type: 'address',
},
],
name: 'isValidAdapter',
outputs: [
{
name: '',
type: 'bool',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [
{
name: '_exchangeId',
type: 'bytes32',
},
],
name: 'removeExchangeAdapter',
outputs: [
{
name: '',
type: 'bool',
},
],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
];
//# sourceMappingURL=ExchangeAdapterManager.js.map