@composable-finance/v1-sdk-defi-protocols
Version:
Provides ABIs, Addresses, and Solidity Interfaces to popular DeFi protocols.
187 lines (186 loc) • 5.64 kB
JSON
[
{
"constant": true,
"inputs": [{ "name": "", "type": "address" }],
"name": "g_givers",
"outputs": [{ "name": "", "type": "bool" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "SOLO_MARGIN",
"outputs": [{ "name": "", "type": "address" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{ "name": "inputMarketId", "type": "uint256" },
{ "name": "", "type": "uint256" },
{
"components": [
{ "name": "owner", "type": "address" },
{ "name": "number", "type": "uint256" }
],
"name": "makerAccount",
"type": "tuple"
},
{
"components": [
{ "name": "owner", "type": "address" },
{ "name": "number", "type": "uint256" }
],
"name": "takerAccount",
"type": "tuple"
},
{
"components": [
{ "name": "sign", "type": "bool" },
{ "name": "value", "type": "uint128" }
],
"name": "",
"type": "tuple"
},
{
"components": [
{ "name": "sign", "type": "bool" },
{ "name": "value", "type": "uint128" }
],
"name": "",
"type": "tuple"
},
{
"components": [
{ "name": "sign", "type": "bool" },
{ "name": "value", "type": "uint256" }
],
"name": "inputWei",
"type": "tuple"
},
{ "name": "", "type": "bytes" }
],
"name": "getTradeCost",
"outputs": [
{
"components": [
{ "name": "sign", "type": "bool" },
{ "name": "denomination", "type": "uint8" },
{ "name": "ref", "type": "uint8" },
{ "name": "value", "type": "uint256" }
],
"name": "",
"type": "tuple"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "giver", "type": "address" }],
"name": "addGiver",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "giver", "type": "address" }],
"name": "removeGiver",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [{ "name": "", "type": "address" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "isOwner",
"outputs": [{ "name": "", "type": "bool" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "newOwner", "type": "address" }],
"name": "transferOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "name": "soloMargin", "type": "address" },
{ "name": "givers", "type": "address[]" }
],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [{ "indexed": false, "name": "giver", "type": "address" }],
"name": "LogGiverAdded",
"type": "event"
},
{
"anonymous": false,
"inputs": [{ "indexed": false, "name": "giver", "type": "address" }],
"name": "LogGiverRemoved",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"components": [
{ "name": "owner", "type": "address" },
{ "name": "number", "type": "uint256" }
],
"indexed": false,
"name": "account",
"type": "tuple"
},
{ "indexed": false, "name": "marketId", "type": "uint256" },
{ "indexed": false, "name": "amount", "type": "uint256" }
],
"name": "LogRefund",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "name": "previousOwner", "type": "address" },
{ "indexed": true, "name": "newOwner", "type": "address" }
],
"name": "OwnershipTransferred",
"type": "event"
}
]