@dydxprotocol/exchange-wrappers
Version:
Collection of exchange wrapper contracts used by the dYdX Protocol
157 lines • 4.71 kB
JSON
{
"contractName": "OasisV3MatchingExchangeWrapper",
"abi": [
{
"inputs": [
{
"internalType": "contract IMatchingMarketV1",
"name": "matchingMarket",
"type": "address"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"constant": true,
"inputs": [],
"name": "MATCHING_MARKET",
"outputs": [
{
"internalType": "contract IMatchingMarketV1",
"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": "0xab33e884ec8fed4f5867246e4300228f3d666561",
"transactionHash": "0x1564d4d34c0fec6d945fe5f1674f3bb3bd0f3016cf1b5bd18244456ecd14120f"
},
"42": {
"links": {},
"address": "0xc8186273d1828942e44234c10ee6d83253143237",
"transactionHash": "0x96983ab7120c1097c60e05c0213949d3010a72f1febf051a82e11d5bf200f766"
}
}
}