UNPKG

@dydxprotocol/exchange-wrappers

Version:

Collection of exchange wrapper contracts used by the dYdX Protocol

223 lines 6.56 kB
{ "contractName": "ZeroExV2ExchangeWrapper", "abi": [ { "inputs": [ { "internalType": "address", "name": "zeroExExchange", "type": "address" }, { "internalType": "address", "name": "zeroExProxy", "type": "address" }, { "internalType": "address", "name": "zrxToken", "type": "address" }, { "internalType": "address[]", "name": "trustedMsgSenders", "type": "address[]" } ], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "constant": true, "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "TRUSTED_MSG_SENDER", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "ZERO_EX_EXCHANGE", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "ZERO_EX_TOKEN_PROXY", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "ZRX", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "tradeOriginator", "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": "0xa26d16a21805b14b2977555ffdea34e5e6fc43ba", "transactionHash": "0x5e4d5b26b157167840fc3123ea0a0840e29b7d2446b6f5370556802e11ec505b" }, "42": { "links": {}, "address": "0x94995fb8dd3d49731b6b5a84a2c10ae2901a5f9d", "transactionHash": "0x8a906360b1ce6be4cf29c24e58da0e7a0c2eb37b00191726f1f89c2e3b786571" } } }