secured-finance-watcher-ts/subgraph-build/OrderBookLogic/abis/OrderBookLogic.json
2024-05-22 15:25:36 +05:30

591 lines
11 KiB
JSON

[
{
"inputs": [],
"name": "InvalidCircuitBreakerLimitRange",
"type": "error"
},
{
"inputs": [],
"name": "InvalidOrderFeeRate",
"type": "error"
},
{
"inputs": [],
"name": "OrderBookNotMatured",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "ccy",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "previousRate",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "rate",
"type": "uint256"
}
],
"name": "CircuitBreakerLimitRangeUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "ccy",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "maturity",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "openingUnitPrice",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "lastLendUnitPrice",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "lastBorrowUnitPrice",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "offsetAmount",
"type": "uint256"
}
],
"name": "ItayoseExecuted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint8",
"name": "orderBookId",
"type": "uint8"
},
{
"indexed": false,
"internalType": "uint256",
"name": "maturity",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "openingDate",
"type": "uint256"
}
],
"name": "OrderBookCreated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "ccy",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "previousRate",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "rate",
"type": "uint256"
}
],
"name": "OrderFeeRateUpdated",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "_orderBookId",
"type": "uint8"
}
],
"name": "getBestBorrowUnitPrice",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8[]",
"name": "_orderBookIds",
"type": "uint8[]"
}
],
"name": "getBestBorrowUnitPrices",
"outputs": [
{
"internalType": "uint256[]",
"name": "unitPrices",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "_orderBookId",
"type": "uint8"
}
],
"name": "getBestLendUnitPrice",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8[]",
"name": "_orderBookIds",
"type": "uint8[]"
}
],
"name": "getBestLendUnitPrices",
"outputs": [
{
"internalType": "uint256[]",
"name": "unitPrices",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "_orderBookId",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "_count",
"type": "uint256"
}
],
"name": "getBlockUnitPriceAverage",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "_orderBookId",
"type": "uint8"
}
],
"name": "getBlockUnitPriceHistory",
"outputs": [
{
"internalType": "uint256[]",
"name": "unitPrices",
"type": "uint256[]"
},
{
"internalType": "uint48",
"name": "timestamp",
"type": "uint48"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "_orderBookId",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "_start",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_limit",
"type": "uint256"
}
],
"name": "getBorrowOrderBook",
"outputs": [
{
"internalType": "uint256[]",
"name": "unitPrices",
"type": "uint256[]"
},
{
"internalType": "uint256[]",
"name": "amounts",
"type": "uint256[]"
},
{
"internalType": "uint256[]",
"name": "quantities",
"type": "uint256[]"
},
{
"internalType": "uint256",
"name": "next",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "_orderBookId",
"type": "uint8"
}
],
"name": "getCircuitBreakerThresholds",
"outputs": [
{
"internalType": "uint256",
"name": "maxLendUnitPrice",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "minBorrowUnitPrice",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "_orderBookId",
"type": "uint8"
}
],
"name": "getItayoseEstimation",
"outputs": [
{
"internalType": "uint256",
"name": "openingUnitPrice",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "lastLendUnitPrice",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "lastBorrowUnitPrice",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "totalOffsetAmount",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "_orderBookId",
"type": "uint8"
}
],
"name": "getLastOrderTimestamp",
"outputs": [
{
"internalType": "uint48",
"name": "",
"type": "uint48"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "_orderBookId",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "_start",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_limit",
"type": "uint256"
}
],
"name": "getLendOrderBook",
"outputs": [
{
"internalType": "uint256[]",
"name": "unitPrices",
"type": "uint256[]"
},
{
"internalType": "uint256[]",
"name": "amounts",
"type": "uint256[]"
},
{
"internalType": "uint256[]",
"name": "quantities",
"type": "uint256[]"
},
{
"internalType": "uint256",
"name": "next",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "_orderBookId",
"type": "uint8"
}
],
"name": "getMarketUnitPrice",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8[]",
"name": "_orderBookIds",
"type": "uint8[]"
}
],
"name": "getMaturities",
"outputs": [
{
"internalType": "uint256[]",
"name": "maturities",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "_orderBookId",
"type": "uint8"
}
],
"name": "getOrderBookDetail",
"outputs": [
{
"internalType": "bytes32",
"name": "ccy",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "maturity",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "openingDate",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "preOpeningDate",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "_orderBookId",
"type": "uint8"
}
],
"name": "isItayosePeriod",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "_orderBookId",
"type": "uint8"
}
],
"name": "isMatured",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "_orderBookId",
"type": "uint8"
}
],
"name": "isOpened",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "_orderBookId",
"type": "uint8"
}
],
"name": "isPreOrderPeriod",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "_orderBookId",
"type": "uint8"
}
],
"name": "isReady",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
]