@dolomite-exchange/dolomite-margin
Version:
Ethereum Smart Contracts and TypeScript library used for the DolomiteMargin trading protocol
1,024 lines • 41.3 kB
JSON
{
"contractName": "AlwaysOnlineOracleSentinel",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "gracePeriod",
"type": "uint256"
}
],
"name": "GracePeriodSet",
"type": "event"
},
{
"constant": false,
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "ownerSetGracePeriod",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "isBorrowAllowed",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "isLiquidationAllowed",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "gracePeriod",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"gracePeriod\",\"type\":\"uint256\"}],\"name\":\"GracePeriodSet\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[],\"name\":\"gracePeriod\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"isBorrowAllowed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"isLiquidationAllowed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"ownerSetGracePeriod\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Dolomite * An implementation of the IOracleSentinel interface that always returns `true` for its implementation functions. Useful for deployments on networks that don't need an oracle sentinel.\",\"methods\":{},\"title\":\"AlwaysOnlineOracleSentinel\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/home/cdc218/projects/dolomite-protocol-v2/contracts/external/oracles/AlwaysOnlineOracleSentinel.sol\":\"AlwaysOnlineOracleSentinel\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/home/cdc218/projects/dolomite-protocol-v2/contracts/external/oracles/AlwaysOnlineOracleSentinel.sol\":{\"keccak256\":\"0xf282bc723e8c799254d62f0db687393e2112c1c1a504b8e2c823eddd97ca52b1\",\"urls\":[\"bzz-raw://a8c9cd8c6f74589a0ede0990882580021a823dead3e5fa7ce86d6647c45a94ee\",\"dweb:/ipfs/QmUPWj5dpfoGny967X9TxSVvugmTc1oSUm9yERocm7QpXH\"]},\"/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/interfaces/IOracleSentinel.sol\":{\"keccak256\":\"0xa94499fda55ef112640daed2cb1d06062e72c51c7b925c323b4e0ffa9b456ce5\",\"urls\":[\"bzz-raw://18b4a16acac577590a57f34f7ec6583e3cb35f575c948abb928b308d29cac1ab\",\"dweb:/ipfs/QmR1jLkzj6w7SjrdZ7GVW4V2vofSdMJwzjTqKpeUKABvxu\"]}},\"version\":1}",
"bytecode": "0x608060405234801561001057600080fd5b50610223806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806335784f1f1461005157806349aa2e81146100665780637a5d20ea14610066578063a06db7dc14610084575b600080fd5b61006461005f3660046100ef565b610099565b005b61006e6100d4565b60405161007b919061018c565b60405180910390f35b61008c6100d9565b60405161007b91906101aa565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100cb9061019a565b60405180910390fd5b600190565b600090565b80356100e9816101c9565b92915050565b60006020828403121561010157600080fd5b600061010d84846100de565b949350505050565b61011e816101c1565b82525050565b6000610131602b836101b8565b7f416c776179734f6e6c696e654f7261636c6553656e74696e656c3a204e6f742081527f696d706c656d656e746564000000000000000000000000000000000000000000602082015260400192915050565b61011e816101c6565b602081016100e98284610115565b602080825281016100e981610124565b602081016100e98284610183565b90815260200190565b151590565b90565b6101d2816101c6565b81146101dd57600080fd5b5056fea365627a7a723158200e3ad5598cdc220a39ebd6a4783e1a112b57b815f28762917f341eef33fd60236c6578706572696d656e74616cf564736f6c63430005100040",
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c806335784f1f1461005157806349aa2e81146100665780637a5d20ea14610066578063a06db7dc14610084575b600080fd5b61006461005f3660046100ef565b610099565b005b61006e6100d4565b60405161007b919061018c565b60405180910390f35b61008c6100d9565b60405161007b91906101aa565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100cb9061019a565b60405180910390fd5b600190565b600090565b80356100e9816101c9565b92915050565b60006020828403121561010157600080fd5b600061010d84846100de565b949350505050565b61011e816101c1565b82525050565b6000610131602b836101b8565b7f416c776179734f6e6c696e654f7261636c6553656e74696e656c3a204e6f742081527f696d706c656d656e746564000000000000000000000000000000000000000000602082015260400192915050565b61011e816101c6565b602081016100e98284610115565b602080825281016100e981610124565b602081016100e98284610183565b90815260200190565b151590565b90565b6101d2816101c6565b81146101dd57600080fd5b5056fea365627a7a723158200e3ad5598cdc220a39ebd6a4783e1a112b57b815f28762917f341eef33fd60236c6578706572696d656e74616cf564736f6c63430005100040",
"sourceMap": "994:485:43:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;994:485:43;;;;;;;",
"deployedSourceMap": "994:485:43:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;994:485:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1056:150;;;;;;;;;:::i;:::-;;1212:84;;;:::i;:::-;;;;;;;;;;;;;;;;1397:80;;;:::i;:::-;;;;;;;;1056:150;1146:53;;;;;;;;;;;;;;;;;;;1212:84;1285:4;1212:84;:::o;1397:80::-;1443:7;1397:80;:::o;5:130:-1:-;72:20;;97:33;72:20;97:33;;;57:78;;;;;142:241;;246:2;234:9;225:7;221:23;217:32;214:2;;;262:1;259;252:12;214:2;297:1;314:53;359:7;339:9;314:53;;;304:63;208:175;-1:-1;;;;208:175;390:104;467:21;482:5;467:21;;;462:3;455:34;449:45;;;502:380;;662:67;726:2;721:3;662:67;;;762:34;742:55;;831:13;826:2;817:12;;810:35;873:2;864:12;;648:234;-1:-1;;648:234;890:113;973:24;991:5;973:24;;1010:201;1122:2;1107:18;;1136:65;1111:9;1174:6;1136:65;;1218:407;1409:2;1423:47;;;1394:18;;1484:131;1394:18;1484:131;;1632:213;1750:2;1735:18;;1764:71;1739:9;1808:6;1764:71;;1853:163;1956:19;;;2005:4;1996:14;;1949:67;2024:85;2090:13;2083:21;;2066:43;2116:72;2178:5;2161:27;2195:117;2264:24;2282:5;2264:24;;;2257:5;2254:35;2244:2;;2303:1;2300;2293:12;2244:2;2238:74;",
"source": "/*\n\n Copyright 2020 Dolomite.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n*/\n\npragma solidity ^0.5.7;\npragma experimental ABIEncoderV2;\n\nimport { IOracleSentinel } from \"../../protocol/interfaces/IOracleSentinel.sol\";\n\n\n/**\n * @title AlwaysOnlineOracleSentinel\n * @author Dolomite\n *\n * An implementation of the IOracleSentinel interface that always returns `true` for its implementation functions.\n * Useful for deployments on networks that don't need an oracle sentinel.\n */\ncontract AlwaysOnlineOracleSentinel is IOracleSentinel {\n\n function ownerSetGracePeriod(\n uint256 /* _gracePeriod */\n ) external {\n revert(\"AlwaysOnlineOracleSentinel: Not implemented\");\n }\n\n function isBorrowAllowed() external view returns (bool) {\n return true;\n }\n\n function isLiquidationAllowed() external view returns (bool) {\n return true;\n }\n\n function gracePeriod() external view returns (uint256) {\n return 0;\n }\n}\n",
"sourcePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/external/oracles/AlwaysOnlineOracleSentinel.sol",
"ast": {
"absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/external/oracles/AlwaysOnlineOracleSentinel.sol",
"exportedSymbols": {
"AlwaysOnlineOracleSentinel": [
7915
]
},
"id": 7916,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 7875,
"literals": [
"solidity",
"^",
"0.5",
".7"
],
"nodeType": "PragmaDirective",
"src": "595:23:43"
},
{
"id": 7876,
"literals": [
"experimental",
"ABIEncoderV2"
],
"nodeType": "PragmaDirective",
"src": "619:33:43"
},
{
"absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/interfaces/IOracleSentinel.sol",
"file": "../../protocol/interfaces/IOracleSentinel.sol",
"id": 7878,
"nodeType": "ImportDirective",
"scope": 7916,
"sourceUnit": 24818,
"src": "654:80:43",
"symbolAliases": [
{
"foreign": 7877,
"local": null
}
],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 7879,
"name": "IOracleSentinel",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 24817,
"src": "1033:15:43",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IOracleSentinel_$24817",
"typeString": "contract IOracleSentinel"
}
},
"id": 7880,
"nodeType": "InheritanceSpecifier",
"src": "1033:15:43"
}
],
"contractDependencies": [
24817
],
"contractKind": "contract",
"documentation": "@title AlwaysOnlineOracleSentinel\n@author Dolomite\n * An implementation of the IOracleSentinel interface that always returns `true` for its implementation functions.\nUseful for deployments on networks that don't need an oracle sentinel.",
"fullyImplemented": true,
"id": 7915,
"linearizedBaseContracts": [
7915,
24817
],
"name": "AlwaysOnlineOracleSentinel",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 7889,
"nodeType": "Block",
"src": "1136:70:43",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "416c776179734f6e6c696e654f7261636c6553656e74696e656c3a204e6f7420696d706c656d656e746564",
"id": 7886,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1153:45:43",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_3291c8966b1a389b7825d037b6c91ade5a9ea9e1d6fd60b6463c2687842886b8",
"typeString": "literal_string \"AlwaysOnlineOracleSentinel: Not implemented\""
},
"value": "AlwaysOnlineOracleSentinel: Not implemented"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_stringliteral_3291c8966b1a389b7825d037b6c91ade5a9ea9e1d6fd60b6463c2687842886b8",
"typeString": "literal_string \"AlwaysOnlineOracleSentinel: Not implemented\""
}
],
"id": 7885,
"name": "revert",
"nodeType": "Identifier",
"overloadedDeclarations": [
38112,
38113
],
"referencedDeclaration": 38113,
"src": "1146:6:43",
"typeDescriptions": {
"typeIdentifier": "t_function_revert_pure$_t_string_memory_ptr_$returns$__$",
"typeString": "function (string memory) pure"
}
},
"id": 7887,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1146:53:43",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 7888,
"nodeType": "ExpressionStatement",
"src": "1146:53:43"
}
]
},
"documentation": null,
"id": 7890,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "ownerSetGracePeriod",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 7883,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7882,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 7890,
"src": "1094:7:43",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 7881,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1094:7:43",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1084:42:43"
},
"returnParameters": {
"id": 7884,
"nodeType": "ParameterList",
"parameters": [],
"src": "1136:0:43"
},
"scope": 7915,
"src": "1056:150:43",
"stateMutability": "nonpayable",
"superFunction": 24801,
"visibility": "external"
},
{
"body": {
"id": 7897,
"nodeType": "Block",
"src": "1268:28:43",
"statements": [
{
"expression": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 7895,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1285:4:43",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"functionReturnParameters": 7894,
"id": 7896,
"nodeType": "Return",
"src": "1278:11:43"
}
]
},
"documentation": null,
"id": 7898,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "isBorrowAllowed",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 7891,
"nodeType": "ParameterList",
"parameters": [],
"src": "1236:2:43"
},
"returnParameters": {
"id": 7894,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7893,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 7898,
"src": "1262:4:43",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 7892,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1262:4:43",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1261:6:43"
},
"scope": 7915,
"src": "1212:84:43",
"stateMutability": "view",
"superFunction": 24806,
"visibility": "external"
},
{
"body": {
"id": 7905,
"nodeType": "Block",
"src": "1363:28:43",
"statements": [
{
"expression": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 7903,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1380:4:43",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"functionReturnParameters": 7902,
"id": 7904,
"nodeType": "Return",
"src": "1373:11:43"
}
]
},
"documentation": null,
"id": 7906,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "isLiquidationAllowed",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 7899,
"nodeType": "ParameterList",
"parameters": [],
"src": "1331:2:43"
},
"returnParameters": {
"id": 7902,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7901,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 7906,
"src": "1357:4:43",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 7900,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1357:4:43",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1356:6:43"
},
"scope": 7915,
"src": "1302:89:43",
"stateMutability": "view",
"superFunction": 24811,
"visibility": "external"
},
{
"body": {
"id": 7913,
"nodeType": "Block",
"src": "1452:25:43",
"statements": [
{
"expression": {
"argumentTypes": null,
"hexValue": "30",
"id": 7911,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1469:1:43",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"functionReturnParameters": 7910,
"id": 7912,
"nodeType": "Return",
"src": "1462:8:43"
}
]
},
"documentation": null,
"id": 7914,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "gracePeriod",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 7907,
"nodeType": "ParameterList",
"parameters": [],
"src": "1417:2:43"
},
"returnParameters": {
"id": 7910,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7909,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 7914,
"src": "1443:7:43",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 7908,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1443:7:43",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1442:9:43"
},
"scope": 7915,
"src": "1397:80:43",
"stateMutability": "view",
"superFunction": 24816,
"visibility": "external"
}
],
"scope": 7916,
"src": "994:485:43"
}
],
"src": "595:885:43"
},
"legacyAST": {
"absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/external/oracles/AlwaysOnlineOracleSentinel.sol",
"exportedSymbols": {
"AlwaysOnlineOracleSentinel": [
7915
]
},
"id": 7916,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 7875,
"literals": [
"solidity",
"^",
"0.5",
".7"
],
"nodeType": "PragmaDirective",
"src": "595:23:43"
},
{
"id": 7876,
"literals": [
"experimental",
"ABIEncoderV2"
],
"nodeType": "PragmaDirective",
"src": "619:33:43"
},
{
"absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/protocol/interfaces/IOracleSentinel.sol",
"file": "../../protocol/interfaces/IOracleSentinel.sol",
"id": 7878,
"nodeType": "ImportDirective",
"scope": 7916,
"sourceUnit": 24818,
"src": "654:80:43",
"symbolAliases": [
{
"foreign": 7877,
"local": null
}
],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 7879,
"name": "IOracleSentinel",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 24817,
"src": "1033:15:43",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IOracleSentinel_$24817",
"typeString": "contract IOracleSentinel"
}
},
"id": 7880,
"nodeType": "InheritanceSpecifier",
"src": "1033:15:43"
}
],
"contractDependencies": [
24817
],
"contractKind": "contract",
"documentation": "@title AlwaysOnlineOracleSentinel\n@author Dolomite\n * An implementation of the IOracleSentinel interface that always returns `true` for its implementation functions.\nUseful for deployments on networks that don't need an oracle sentinel.",
"fullyImplemented": true,
"id": 7915,
"linearizedBaseContracts": [
7915,
24817
],
"name": "AlwaysOnlineOracleSentinel",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 7889,
"nodeType": "Block",
"src": "1136:70:43",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "416c776179734f6e6c696e654f7261636c6553656e74696e656c3a204e6f7420696d706c656d656e746564",
"id": 7886,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1153:45:43",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_3291c8966b1a389b7825d037b6c91ade5a9ea9e1d6fd60b6463c2687842886b8",
"typeString": "literal_string \"AlwaysOnlineOracleSentinel: Not implemented\""
},
"value": "AlwaysOnlineOracleSentinel: Not implemented"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_stringliteral_3291c8966b1a389b7825d037b6c91ade5a9ea9e1d6fd60b6463c2687842886b8",
"typeString": "literal_string \"AlwaysOnlineOracleSentinel: Not implemented\""
}
],
"id": 7885,
"name": "revert",
"nodeType": "Identifier",
"overloadedDeclarations": [
38112,
38113
],
"referencedDeclaration": 38113,
"src": "1146:6:43",
"typeDescriptions": {
"typeIdentifier": "t_function_revert_pure$_t_string_memory_ptr_$returns$__$",
"typeString": "function (string memory) pure"
}
},
"id": 7887,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1146:53:43",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 7888,
"nodeType": "ExpressionStatement",
"src": "1146:53:43"
}
]
},
"documentation": null,
"id": 7890,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "ownerSetGracePeriod",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 7883,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7882,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 7890,
"src": "1094:7:43",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 7881,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1094:7:43",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1084:42:43"
},
"returnParameters": {
"id": 7884,
"nodeType": "ParameterList",
"parameters": [],
"src": "1136:0:43"
},
"scope": 7915,
"src": "1056:150:43",
"stateMutability": "nonpayable",
"superFunction": 24801,
"visibility": "external"
},
{
"body": {
"id": 7897,
"nodeType": "Block",
"src": "1268:28:43",
"statements": [
{
"expression": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 7895,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1285:4:43",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"functionReturnParameters": 7894,
"id": 7896,
"nodeType": "Return",
"src": "1278:11:43"
}
]
},
"documentation": null,
"id": 7898,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "isBorrowAllowed",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 7891,
"nodeType": "ParameterList",
"parameters": [],
"src": "1236:2:43"
},
"returnParameters": {
"id": 7894,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7893,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 7898,
"src": "1262:4:43",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 7892,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1262:4:43",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1261:6:43"
},
"scope": 7915,
"src": "1212:84:43",
"stateMutability": "view",
"superFunction": 24806,
"visibility": "external"
},
{
"body": {
"id": 7905,
"nodeType": "Block",
"src": "1363:28:43",
"statements": [
{
"expression": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 7903,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1380:4:43",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"functionReturnParameters": 7902,
"id": 7904,
"nodeType": "Return",
"src": "1373:11:43"
}
]
},
"documentation": null,
"id": 7906,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "isLiquidationAllowed",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 7899,
"nodeType": "ParameterList",
"parameters": [],
"src": "1331:2:43"
},
"returnParameters": {
"id": 7902,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7901,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 7906,
"src": "1357:4:43",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 7900,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1357:4:43",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1356:6:43"
},
"scope": 7915,
"src": "1302:89:43",
"stateMutability": "view",
"superFunction": 24811,
"visibility": "external"
},
{
"body": {
"id": 7913,
"nodeType": "Block",
"src": "1452:25:43",
"statements": [
{
"expression": {
"argumentTypes": null,
"hexValue": "30",
"id": 7911,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1469:1:43",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"functionReturnParameters": 7910,
"id": 7912,
"nodeType": "Return",
"src": "1462:8:43"
}
]
},
"documentation": null,
"id": 7914,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "gracePeriod",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 7907,
"nodeType": "ParameterList",
"parameters": [],
"src": "1417:2:43"
},
"returnParameters": {
"id": 7910,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7909,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 7914,
"src": "1443:7:43",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 7908,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1443:7:43",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1442:9:43"
},
"scope": 7915,
"src": "1397:80:43",
"stateMutability": "view",
"superFunction": 24816,
"visibility": "external"
}
],
"scope": 7916,
"src": "994:485:43"
}
],
"src": "595:885:43"
},
"compiler": {
"name": "solc",
"version": "0.5.16+commit.9c3226ce.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.0.23",
"updatedAt": "2025-06-22T04:01:53.596Z",
"devdoc": {
"author": "Dolomite * An implementation of the IOracleSentinel interface that always returns `true` for its implementation functions. Useful for deployments on networks that don't need an oracle sentinel.",
"methods": {},
"title": "AlwaysOnlineOracleSentinel"
},
"userdoc": {
"methods": {}
}
}