UNPKG

@dolomite-exchange/dolomite-margin

Version:

Ethereum Smart Contracts and TypeScript library used for the DolomiteMargin trading protocol

240 lines 9.46 kB
{ "contractName": "IArbitrumSys", "abi": [ { "constant": true, "inputs": [], "name": "arbBlockNumber", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[],\"name\":\"arbBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Dolomite * Arbitrum pre-compile for getting the latest L2 block number\",\"methods\":{\"arbBlockNumber()\":{\"return\":\"block number as a uint\"}},\"title\":\"IArbitrumSys\"},\"userdoc\":{\"methods\":{\"arbBlockNumber()\":{\"notice\":\"Get Arbitrum block number (distinct from L1 block number; Arbitrum genesis block has block number 0)\"}}}},\"settings\":{\"compilationTarget\":{\"/home/cdc218/projects/dolomite-protocol-v2/contracts/external/interfaces/IArbitrumSys.sol\":\"IArbitrumSys\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/home/cdc218/projects/dolomite-protocol-v2/contracts/external/interfaces/IArbitrumSys.sol\":{\"keccak256\":\"0xa5be17c5867f4616d31f13a8974cd441b73e3e65afb1095a7e9626d0b136338b\",\"urls\":[\"bzz-raw://97c99abaace129d781227a525953efe055e0dce963943fb70daa98acbed3130e\",\"dweb:/ipfs/QmRvuJJYPCyGTYJG7AzureXR9WKPXsHAn6RtGZ8ZSmL5Y4\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "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;\n\n\n/**\n * @title IArbitrumSys\n * @author Dolomite\n *\n * Arbitrum pre-compile for getting the latest L2 block number\n */\ninterface IArbitrumSys {\n\n /**\n * Get Arbitrum block number (distinct from L1 block number; Arbitrum genesis block has block number 0)\n *\n * @return block number as a uint\n */\n function arbBlockNumber() external view returns (uint);\n}\n", "sourcePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/external/interfaces/IArbitrumSys.sol", "ast": { "absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/external/interfaces/IArbitrumSys.sol", "exportedSymbols": { "IArbitrumSys": [ 3982 ] }, "id": 3983, "nodeType": "SourceUnit", "nodes": [ { "id": 3976, "literals": [ "solidity", "^", "0.5", ".7" ], "nodeType": "PragmaDirective", "src": "595:23:13" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": "@title IArbitrumSys\n@author Dolomite\n * Arbitrum pre-compile for getting the latest L2 block number", "fullyImplemented": false, "id": 3982, "linearizedBaseContracts": [ 3982 ], "name": "IArbitrumSys", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": "Get Arbitrum block number (distinct from L1 block number; Arbitrum genesis block has block number 0)\n * @return block number as a uint", "id": 3981, "implemented": false, "kind": "function", "modifiers": [], "name": "arbBlockNumber", "nodeType": "FunctionDefinition", "parameters": { "id": 3977, "nodeType": "ParameterList", "parameters": [], "src": "960:2:13" }, "returnParameters": { "id": 3980, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3979, "name": "", "nodeType": "VariableDeclaration", "scope": 3981, "src": "986:4:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 3978, "name": "uint", "nodeType": "ElementaryTypeName", "src": "986:4:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "985:6:13" }, "scope": 3982, "src": "937:55:13", "stateMutability": "view", "superFunction": null, "visibility": "external" } ], "scope": 3983, "src": "738:256:13" } ], "src": "595:400:13" }, "legacyAST": { "absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/external/interfaces/IArbitrumSys.sol", "exportedSymbols": { "IArbitrumSys": [ 3982 ] }, "id": 3983, "nodeType": "SourceUnit", "nodes": [ { "id": 3976, "literals": [ "solidity", "^", "0.5", ".7" ], "nodeType": "PragmaDirective", "src": "595:23:13" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": "@title IArbitrumSys\n@author Dolomite\n * Arbitrum pre-compile for getting the latest L2 block number", "fullyImplemented": false, "id": 3982, "linearizedBaseContracts": [ 3982 ], "name": "IArbitrumSys", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": "Get Arbitrum block number (distinct from L1 block number; Arbitrum genesis block has block number 0)\n * @return block number as a uint", "id": 3981, "implemented": false, "kind": "function", "modifiers": [], "name": "arbBlockNumber", "nodeType": "FunctionDefinition", "parameters": { "id": 3977, "nodeType": "ParameterList", "parameters": [], "src": "960:2:13" }, "returnParameters": { "id": 3980, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3979, "name": "", "nodeType": "VariableDeclaration", "scope": 3981, "src": "986:4:13", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 3978, "name": "uint", "nodeType": "ElementaryTypeName", "src": "986:4:13", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "985:6:13" }, "scope": 3982, "src": "937:55:13", "stateMutability": "view", "superFunction": null, "visibility": "external" } ], "scope": 3983, "src": "738:256:13" } ], "src": "595:400:13" }, "compiler": { "name": "solc", "version": "0.5.16+commit.9c3226ce.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.0.23", "updatedAt": "2025-06-22T04:01:53.506Z", "devdoc": { "author": "Dolomite * Arbitrum pre-compile for getting the latest L2 block number", "methods": { "arbBlockNumber()": { "return": "block number as a uint" } }, "title": "IArbitrumSys" }, "userdoc": { "methods": { "arbBlockNumber()": { "notice": "Get Arbitrum block number (distinct from L1 block number; Arbitrum genesis block has block number 0)" } } } }