UNPKG

@dydxprotocol/exchange-wrappers

Version:

Collection of exchange wrapper contracts used by the dYdX Protocol

157 lines 4.67 kB
{ "contractName": "OasisV1MatchingExchangeWrapper", "abi": [ { "inputs": [ { "internalType": "address", "name": "matchingMarket", "type": "address" } ], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "constant": true, "inputs": [], "name": "MATCHING_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": "0xd72136c6da6ae959b5960c204edf8bc260087bca", "transactionHash": "0xe7cc149d80313ee8366015b945571e0b5a78bdf7ac0bc86b0a39ba58aaf98af7" }, "42": { "links": {}, "address": "0xdf22045d446fea3867d83bd3ef5e8688ec888038", "transactionHash": "0xead3e041c82711399e9871620d1af2c0fc53256b4b825ae5cf3e2e9e03946085" } } }