UNPKG

@composable-finance/v1-sdk-defi-protocols

Version:

Provides ABIs, Addresses, and Solidity Interfaces to popular DeFi protocols.

313 lines (312 loc) 10.2 kB
[ { "constant": false, "inputs": [], "name": "shutDown", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "SOLO_MARGIN", "outputs": [{ "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "startUp", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "inputMarketId", "type": "uint256" }, { "name": "outputMarketId", "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": "data", "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": true, "inputs": [{ "name": "", "type": "bytes32" }], "name": "g_makerFilledAmount", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "", "type": "address" }, { "components": [ { "name": "owner", "type": "address" }, { "name": "number", "type": "uint256" } ], "name": "accountInfo", "type": "tuple" }, { "name": "data", "type": "bytes" } ], "name": "callFunction", "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": [ { "components": [ { "name": "makerMarket", "type": "uint256" }, { "name": "takerMarket", "type": "uint256" }, { "name": "makerAmount", "type": "uint256" }, { "name": "takerAmount", "type": "uint256" }, { "name": "makerAccountOwner", "type": "address" }, { "name": "makerAccountNumber", "type": "uint256" }, { "name": "takerAccountOwner", "type": "address" }, { "name": "takerAccountNumber", "type": "uint256" }, { "name": "expiration", "type": "uint256" }, { "name": "salt", "type": "uint256" } ], "name": "order", "type": "tuple" } ], "name": "cancelOrder", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [{ "name": "orderHashes", "type": "bytes32[]" }], "name": "getOrderStates", "outputs": [ { "components": [ { "name": "orderStatus", "type": "uint8" }, { "name": "orderMakerFilledAmount", "type": "uint256" } ], "name": "", "type": "tuple[]" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [{ "name": "", "type": "bytes32" }], "name": "g_status", "outputs": [{ "name": "", "type": "uint8" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "components": [ { "name": "makerMarket", "type": "uint256" }, { "name": "takerMarket", "type": "uint256" }, { "name": "makerAmount", "type": "uint256" }, { "name": "takerAmount", "type": "uint256" }, { "name": "makerAccountOwner", "type": "address" }, { "name": "makerAccountNumber", "type": "uint256" }, { "name": "takerAccountOwner", "type": "address" }, { "name": "takerAccountNumber", "type": "uint256" }, { "name": "expiration", "type": "uint256" }, { "name": "salt", "type": "uint256" } ], "name": "order", "type": "tuple" } ], "name": "approveOrder", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "EIP712_DOMAIN_HASH", "outputs": [{ "name": "", "type": "bytes32" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "g_isOperational", "outputs": [{ "name": "", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function" }, { "inputs": [ { "name": "soloMargin", "type": "address" }, { "name": "chainId", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [{ "indexed": false, "name": "operational", "type": "bool" }], "name": "ContractStatusSet", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "orderHash", "type": "bytes32" }, { "indexed": true, "name": "canceler", "type": "address" }, { "indexed": false, "name": "makerMarket", "type": "uint256" }, { "indexed": false, "name": "takerMarket", "type": "uint256" } ], "name": "LogLimitOrderCanceled", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "orderHash", "type": "bytes32" }, { "indexed": true, "name": "approver", "type": "address" }, { "indexed": false, "name": "makerMarket", "type": "uint256" }, { "indexed": false, "name": "takerMarket", "type": "uint256" } ], "name": "LogLimitOrderApproved", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "orderHash", "type": "bytes32" }, { "indexed": true, "name": "orderMaker", "type": "address" }, { "indexed": false, "name": "makerFillAmount", "type": "uint256" }, { "indexed": false, "name": "totalMakerFilledAmount", "type": "uint256" } ], "name": "LogLimitOrderFilled", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "previousOwner", "type": "address" }, { "indexed": true, "name": "newOwner", "type": "address" } ], "name": "OwnershipTransferred", "type": "event" } ]