@dolomite-exchange/dolomite-margin
Version:
Ethereum Smart Contracts and TypeScript library used for the DolomiteMargin trading protocol
230 lines • 7.47 kB
JSON
{
"contractName": "IMantleGasInfo",
"abi": [
{
"constant": true,
"inputs": [],
"name": "gasPrice",
"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\":\"gasPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/home/cdc218/projects/dolomite-protocol-v2/contracts/external/interfaces/IMantleGasInfo.sol\":\"IMantleGasInfo\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/home/cdc218/projects/dolomite-protocol-v2/contracts/external/interfaces/IMantleGasInfo.sol\":{\"keccak256\":\"0xab3756665d87fb4273c376992c47318a9b48986d9eb9f80e876d5ffe5fa1740f\",\"urls\":[\"bzz-raw://ed6c24722916871eadf788b0b79058186b7a98896d8be1a10fbc65c55623a356\",\"dweb:/ipfs/QmdX5TdHTFzothH3mAKqBqxipLoQwt3NuDou5nh5QX99U2\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"sourceMap": "",
"deployedSourceMap": "",
"source": "pragma solidity >=0.4.21;\n\n\ninterface IMantleGasInfo {\n\n // The total gas price the user should pay to have their transactions included\n function gasPrice() external view returns(uint);\n}\n",
"sourcePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/external/interfaces/IMantleGasInfo.sol",
"ast": {
"absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/external/interfaces/IMantleGasInfo.sol",
"exportedSymbols": {
"IMantleGasInfo": [
4882
]
},
"id": 4883,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 4876,
"literals": [
"solidity",
">=",
"0.4",
".21"
],
"nodeType": "PragmaDirective",
"src": "0:25:31"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 4882,
"linearizedBaseContracts": [
4882
],
"name": "IMantleGasInfo",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 4881,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "gasPrice",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4877,
"nodeType": "ParameterList",
"parameters": [],
"src": "160:2:31"
},
"returnParameters": {
"id": 4880,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4879,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 4881,
"src": "185:4:31",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4878,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "185:4:31",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "184:6:31"
},
"scope": 4882,
"src": "143:48:31",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
}
],
"scope": 4883,
"src": "28:165:31"
}
],
"src": "0:194:31"
},
"legacyAST": {
"absolutePath": "/home/cdc218/projects/dolomite-protocol-v2/contracts/external/interfaces/IMantleGasInfo.sol",
"exportedSymbols": {
"IMantleGasInfo": [
4882
]
},
"id": 4883,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 4876,
"literals": [
"solidity",
">=",
"0.4",
".21"
],
"nodeType": "PragmaDirective",
"src": "0:25:31"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 4882,
"linearizedBaseContracts": [
4882
],
"name": "IMantleGasInfo",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 4881,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "gasPrice",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4877,
"nodeType": "ParameterList",
"parameters": [],
"src": "160:2:31"
},
"returnParameters": {
"id": 4880,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4879,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 4881,
"src": "185:4:31",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4878,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "185:4:31",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "184:6:31"
},
"scope": 4882,
"src": "143:48:31",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
}
],
"scope": 4883,
"src": "28:165:31"
}
],
"src": "0:194:31"
},
"compiler": {
"name": "solc",
"version": "0.5.16+commit.9c3226ce.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.0.23",
"updatedAt": "2025-06-22T04:01:53.532Z",
"devdoc": {
"methods": {}
},
"userdoc": {
"methods": {}
}
}