@composable-finance/v1-sdk-defi-protocols
Version:
Provides ABIs, Addresses, and Solidity Interfaces to popular DeFi protocols.
775 lines (774 loc) • 18.4 kB
JSON
[
{
"constant": false,
"inputs": [],
"name": "enableTrade",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "alerter",
"type": "address"
}
],
"name": "removeAlerter",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "pendingAdmin",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "getOperators",
"outputs": [
{
"name": "",
"type": "address[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "token",
"type": "address"
},
{
"name": "amount",
"type": "uint256"
},
{
"name": "sendTo",
"type": "address"
}
],
"name": "withdrawToken",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "newAlerter",
"type": "address"
}
],
"name": "addAlerter",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "sanityRatesContract",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "token",
"type": "address"
},
{
"name": "addr",
"type": "address"
},
{
"name": "approve",
"type": "bool"
}
],
"name": "approveWithdrawAddress",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "token",
"type": "address"
},
{
"name": "amount",
"type": "uint256"
},
{
"name": "destination",
"type": "address"
}
],
"name": "withdraw",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "disableTrade",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "srcToken",
"type": "address"
},
{
"name": "srcAmount",
"type": "uint256"
},
{
"name": "destToken",
"type": "address"
},
{
"name": "destAddress",
"type": "address"
},
{
"name": "conversionRate",
"type": "uint256"
},
{
"name": "validate",
"type": "bool"
}
],
"name": "trade",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": true,
"stateMutability": "payable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "newAdmin",
"type": "address"
}
],
"name": "transferAdmin",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "claimAdmin",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "newAdmin",
"type": "address"
}
],
"name": "transferAdminQuickly",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "getAlerters",
"outputs": [
{
"name": "",
"type": "address[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "src",
"type": "address"
},
{
"name": "dest",
"type": "address"
},
{
"name": "srcQty",
"type": "uint256"
},
{
"name": "blockNumber",
"type": "uint256"
}
],
"name": "getConversionRate",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "newOperator",
"type": "address"
}
],
"name": "addOperator",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "src",
"type": "address"
},
{
"name": "dest",
"type": "address"
},
{
"name": "dstQty",
"type": "uint256"
},
{
"name": "rate",
"type": "uint256"
}
],
"name": "getSrcQty",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "operator",
"type": "address"
}
],
"name": "removeOperator",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_kyberNetwork",
"type": "address"
},
{
"name": "_conversionRates",
"type": "address"
},
{
"name": "_sanityRates",
"type": "address"
}
],
"name": "setContracts",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "kyberNetwork",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "amount",
"type": "uint256"
},
{
"name": "sendTo",
"type": "address"
}
],
"name": "withdrawEther",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "conversionRatesContract",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "tradeEnabled",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "",
"type": "bytes32"
}
],
"name": "approvedWithdrawAddresses",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "admin",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "token",
"type": "address"
}
],
"name": "getBalance",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "src",
"type": "address"
},
{
"name": "dest",
"type": "address"
},
{
"name": "srcQty",
"type": "uint256"
},
{
"name": "rate",
"type": "uint256"
}
],
"name": "getDestQty",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"name": "_kyberNetwork",
"type": "address"
},
{
"name": "_ratesContract",
"type": "address"
},
{
"name": "_admin",
"type": "address"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"payable": true,
"stateMutability": "payable",
"type": "fallback"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "token",
"type": "address"
},
{
"indexed": false,
"name": "amount",
"type": "uint256"
}
],
"name": "DepositToken",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "origin",
"type": "address"
},
{
"indexed": false,
"name": "src",
"type": "address"
},
{
"indexed": false,
"name": "srcAmount",
"type": "uint256"
},
{
"indexed": false,
"name": "destToken",
"type": "address"
},
{
"indexed": false,
"name": "destAmount",
"type": "uint256"
},
{
"indexed": false,
"name": "destAddress",
"type": "address"
}
],
"name": "TradeExecute",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "enable",
"type": "bool"
}
],
"name": "TradeEnabled",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "token",
"type": "address"
},
{
"indexed": false,
"name": "addr",
"type": "address"
},
{
"indexed": false,
"name": "approve",
"type": "bool"
}
],
"name": "WithdrawAddressApproved",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "token",
"type": "address"
},
{
"indexed": false,
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"name": "destination",
"type": "address"
}
],
"name": "WithdrawFunds",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "network",
"type": "address"
},
{
"indexed": false,
"name": "rate",
"type": "address"
},
{
"indexed": false,
"name": "sanity",
"type": "address"
}
],
"name": "SetContractAddresses",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "token",
"type": "address"
},
{
"indexed": false,
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"name": "sendTo",
"type": "address"
}
],
"name": "TokenWithdraw",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"name": "sendTo",
"type": "address"
}
],
"name": "EtherWithdraw",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "pendingAdmin",
"type": "address"
}
],
"name": "TransferAdminPending",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "newAdmin",
"type": "address"
},
{
"indexed": false,
"name": "previousAdmin",
"type": "address"
}
],
"name": "AdminClaimed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "newAlerter",
"type": "address"
},
{
"indexed": false,
"name": "isAdd",
"type": "bool"
}
],
"name": "AlerterAdded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "newOperator",
"type": "address"
},
{
"indexed": false,
"name": "isAdd",
"type": "bool"
}
],
"name": "OperatorAdded",
"type": "event"
}
]