@dydxprotocol/exchange-wrappers
Version:
Collection of exchange wrapper contracts used by the dYdX Protocol
94 lines • 2.74 kB
JSON
{
"contractName": "CurveExchangeWrapper",
"abi": [
{
"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": "",
"type": "address"
},
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "uint256",
"name": "",
"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": "0xc8f1dC5F659238389AFCF14372f72a84E60E664b",
"transactionHash": "0x0ef8df146c5000b4005355f93753e12c3d29b0309a13d88f338d34854faa52a0"
}
}
}