UNPKG

@dydxprotocol/exchange-wrappers

Version:

Collection of exchange wrapper contracts used by the dYdX Protocol

157 lines 4.67 kB
{ "contractName": "OasisV1SimpleExchangeWrapper", "abi": [ { "inputs": [ { "internalType": "address", "name": "simpleMarket", "type": "address" } ], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "constant": true, "inputs": [], "name": "SIMPLE_MARKET", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "receiver", "type": "address" }, { "internalType": "address", "name": "makerToken", "type": "address" }, { "internalType": "address", "name": "takerToken", "type": "address" }, { "internalType": "uint256", "name": "requestedFillAmount", "type": "uint256" }, { "internalType": "bytes", "name": "orderData", "type": "bytes" } ], "name": "exchange", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "address", "name": "makerToken", "type": "address" }, { "internalType": "address", "name": "takerToken", "type": "address" }, { "internalType": "uint256", "name": "desiredMakerToken", "type": "uint256" }, { "internalType": "bytes", "name": "orderData", "type": "bytes" } ], "name": "getExchangeCost", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "address", "name": "makerToken", "type": "address" }, { "internalType": "address", "name": "takerToken", "type": "address" }, { "internalType": "bytes", "name": "orderData", "type": "bytes" } ], "name": "getMaxMakerAmount", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" } ], "networks": { "1": { "links": {}, "address": "0xeefc9ee01604315ce1e69474033618ee7d21a33e", "transactionHash": "0xa28e4da331f75b29a801bb9317ce58cd44c6ea35832f19874884f08a8bf16ca2" }, "42": { "links": {}, "address": "0x2893572793cf2bf93992cdacac7a90654f44c170", "transactionHash": "0x81e9cea45e0328adfed4b310d27c01639ea9724128d0b580690bbfd55ed65ca0" } } }