UNPKG

@dydxprotocol/exchange-wrappers

Version:

Collection of exchange wrapper contracts used by the dYdX Protocol

99 lines 2.97 kB
{ "contractName": "OpenDirectlyExchangeWrapper", "abi": [ { "constant": false, "inputs": [ { "internalType": "address", "name": "tradeOriginator", "type": "address" }, { "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "takerToken", "type": "address" }, { "internalType": "uint256", "name": "requestedFillAmount", "type": "uint256" }, { "internalType": "bytes", "name": "", "type": "bytes" } ], "name": "exchange", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "desiredMakerToken", "type": "uint256" }, { "internalType": "bytes", "name": "", "type": "bytes" } ], "name": "getExchangeCost", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" } ], "networks": { "1": { "links": {}, "address": "0xcb17e969288ae849d5e0717694c5c56e70e798ed", "transactionHash": "0x8fb40b9f15ad613e63fa48c59a3f02146baf92d6ad80d1095d501f14684683c8" }, "42": { "links": {}, "address": "0x8085b9646593bc35456a71f1b0c38315eb074ede", "transactionHash": "0xfb55559a04ab39dda3eb7df90843ae4d3ddb39717c78c91874f8589aec8faadc" } } }