UNPKG

@gooddollar/goodprotocol

Version:
492 lines (491 loc) 11.1 kB
{ "_format": "hh-sol-artifact-1", "contractName": "IBroker", "sourceName": "contracts/MentoInterfaces.sol", "abi": [ { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "exchangeProvider", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "exchangeId", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "trader", "type": "address" }, { "indexed": true, "internalType": "address", "name": "tokenIn", "type": "address" }, { "indexed": false, "internalType": "address", "name": "tokenOut", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amountIn", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "amountOut", "type": "uint256" } ], "name": "Swap", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "exchangeId", "type": "bytes32" }, { "indexed": false, "internalType": "address", "name": "token", "type": "address" }, { "components": [ { "internalType": "uint32", "name": "timestep0", "type": "uint32" }, { "internalType": "uint32", "name": "timestep1", "type": "uint32" }, { "internalType": "int48", "name": "limit0", "type": "int48" }, { "internalType": "int48", "name": "limit1", "type": "int48" }, { "internalType": "int48", "name": "limitGlobal", "type": "int48" }, { "internalType": "uint8", "name": "flags", "type": "uint8" } ], "indexed": false, "internalType": "struct ITradingLimits.Config", "name": "config", "type": "tuple" } ], "name": "TradingLimitConfigured", "type": "event" }, { "inputs": [ { "internalType": "address", "name": "exchangeProvider", "type": "address" }, { "internalType": "address", "name": "reserve", "type": "address" } ], "name": "addExchangeProvider", "outputs": [ { "internalType": "uint256", "name": "index", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "burnStableTokens", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "exchangeId", "type": "bytes32" }, { "internalType": "address", "name": "token", "type": "address" }, { "components": [ { "internalType": "uint32", "name": "timestep0", "type": "uint32" }, { "internalType": "uint32", "name": "timestep1", "type": "uint32" }, { "internalType": "int48", "name": "limit0", "type": "int48" }, { "internalType": "int48", "name": "limit1", "type": "int48" }, { "internalType": "int48", "name": "limitGlobal", "type": "int48" }, { "internalType": "uint8", "name": "flags", "type": "uint8" } ], "internalType": "struct ITradingLimits.Config", "name": "config", "type": "tuple" } ], "name": "configureTradingLimit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "index", "type": "uint256" } ], "name": "exchangeProviders", "outputs": [ { "internalType": "address", "name": "exchangeProvider", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "exchangeProvider", "type": "address" }, { "internalType": "bytes32", "name": "exchangeId", "type": "bytes32" }, { "internalType": "address", "name": "tokenIn", "type": "address" }, { "internalType": "address", "name": "tokenOut", "type": "address" }, { "internalType": "uint256", "name": "amountOut", "type": "uint256" } ], "name": "getAmountIn", "outputs": [ { "internalType": "uint256", "name": "amountIn", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "exchangeProvider", "type": "address" }, { "internalType": "bytes32", "name": "exchangeId", "type": "bytes32" }, { "internalType": "address", "name": "tokenIn", "type": "address" }, { "internalType": "address", "name": "tokenOut", "type": "address" }, { "internalType": "uint256", "name": "amountIn", "type": "uint256" } ], "name": "getAmountOut", "outputs": [ { "internalType": "uint256", "name": "amountOut", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getExchangeProviders", "outputs": [ { "internalType": "address[]", "name": "", "type": "address[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address[]", "name": "_exchangeProviders", "type": "address[]" }, { "internalType": "address[]", "name": "_reserves", "type": "address[]" } ], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "exchangeProvider", "type": "address" } ], "name": "isExchangeProvider", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "exchangeProvider", "type": "address" }, { "internalType": "uint256", "name": "index", "type": "uint256" } ], "name": "removeExchangeProvider", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address[]", "name": "_exchangeProviders", "type": "address[]" }, { "internalType": "address[]", "name": "_reserves", "type": "address[]" } ], "name": "setReserves", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "exchangeProvider", "type": "address" }, { "internalType": "bytes32", "name": "exchangeId", "type": "bytes32" }, { "internalType": "address", "name": "tokenIn", "type": "address" }, { "internalType": "address", "name": "tokenOut", "type": "address" }, { "internalType": "uint256", "name": "amountIn", "type": "uint256" }, { "internalType": "uint256", "name": "amountOutMin", "type": "uint256" } ], "name": "swapIn", "outputs": [ { "internalType": "uint256", "name": "amountOut", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "exchangeProvider", "type": "address" }, { "internalType": "bytes32", "name": "exchangeId", "type": "bytes32" }, { "internalType": "address", "name": "tokenIn", "type": "address" }, { "internalType": "address", "name": "tokenOut", "type": "address" }, { "internalType": "uint256", "name": "amountOut", "type": "uint256" }, { "internalType": "uint256", "name": "amountInMax", "type": "uint256" } ], "name": "swapOut", "outputs": [ { "internalType": "uint256", "name": "amountIn", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "linkReferences": {}, "deployedLinkReferences": {} }