@dolomite-exchange/dolomite-margin
Version:
Ethereum Smart Contracts and TypeScript library used for the DolomiteMargin trading protocol
1,361 lines • 76.4 kB
JSON
{
"contractName": "IArbitrumGasInfo",
"abi": [
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "aggregator",
"type": "address"
}
],
"name": "getPricesInWeiWithAggregator",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "getPricesInWei",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "aggregator",
"type": "address"
}
],
"name": "getPricesInArbGasWithAggregator",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "getPricesInArbGas",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "getGasAccountingParams",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "getL1GasPriceEstimate",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "uint256",
"name": "priceInWei",
"type": "uint256"
}
],
"name": "setL1GasPriceEstimate",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "getCurrentTxL1GasFees",
"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\":\"getCurrentTxL1GasFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getGasAccountingParams\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getL1GasPriceEstimate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getPricesInArbGas\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"aggregator\",\"type\":\"address\"}],\"name\":\"getPricesInArbGasWithAggregator\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getPricesInWei\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"aggregator\",\"type\":\"address\"}],\"name\":\"getPricesInWeiWithAggregator\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"priceInWei\",\"type\":\"uint256\"}],\"name\":\"setL1GasPriceEstimate\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/home/cdc218/projects/dolomite/dolomite-protocol-v2/contracts/external/interfaces/IArbitrumGasInfo.sol\":\"IArbitrumGasInfo\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"/home/cdc218/projects/dolomite/dolomite-protocol-v2/contracts/external/interfaces/IArbitrumGasInfo.sol\":{\"keccak256\":\"0xc36c43d454b86ea5b535746157de92ad7cc06ca44d56d4b8aaba8d6411b1a7c0\",\"urls\":[\"bzz-raw://bc8c60566dbd4149d0a06f746787031e0c4fdf31b1ae0cc6b51c1c776a994b82\",\"dweb:/ipfs/QmNS3yuSXd5KHzREZbRyhfsRvHuzsiH7RcN1DAzcFoA3zb\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"sourceMap": "",
"deployedSourceMap": "",
"source": "pragma solidity >=0.4.21;\n\n\ninterface IArbitrumGasInfo {\n // return gas prices in wei, assuming the specified aggregator is used\n // (\n // per L2 tx,\n // per L1 calldata unit, (zero byte = 4 units, nonzero byte = 16 units)\n // per storage allocation,\n // per ArbGas base,\n // per ArbGas congestion,\n // per ArbGas total\n // )\n function getPricesInWeiWithAggregator(\n address aggregator\n ) external view returns (uint, uint, uint, uint, uint, uint);\n\n // return gas prices in wei, as described above, assuming the caller's preferred aggregator is used\n // if the caller hasn't specified a preferred aggregator, the default aggregator is assumed\n function getPricesInWei() external view returns (uint, uint, uint, uint, uint, uint);\n\n // return prices in ArbGas (per L2 tx, per L1 calldata unit, per storage allocation),\n // assuming the specified aggregator is used\n function getPricesInArbGasWithAggregator(address aggregator) external view returns (uint, uint, uint);\n\n // return gas prices in ArbGas, as described above, assuming the caller's preferred aggregator is used\n // if the caller hasn't specified a preferred aggregator, the default aggregator is assumed\n function getPricesInArbGas() external view returns (uint, uint, uint);\n\n // return gas accounting parameters (speedLimitPerSecond, gasPoolMax, maxTxGasLimit)\n function getGasAccountingParams() external view returns (uint, uint, uint);\n\n // get ArbOS's estimate of the L1 gas price in wei\n function getL1GasPriceEstimate() external view returns(uint);\n\n // set ArbOS's estimate of the L1 gas price in wei\n // reverts unless called by chain owner or designated gas oracle (if any)\n function setL1GasPriceEstimate(uint priceInWei) external;\n\n // get L1 gas fees paid by the current transaction (txBaseFeeWei, calldataFeeWei)\n function getCurrentTxL1GasFees() external view returns(uint);\n}\n",
"sourcePath": "/home/cdc218/projects/dolomite/dolomite-protocol-v2/contracts/external/interfaces/IArbitrumGasInfo.sol",
"ast": {
"absolutePath": "/home/cdc218/projects/dolomite/dolomite-protocol-v2/contracts/external/interfaces/IArbitrumGasInfo.sol",
"exportedSymbols": {
"IArbitrumGasInfo": [
3974
]
},
"id": 3975,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 3897,
"literals": [
"solidity",
">=",
"0.4",
".21"
],
"nodeType": "PragmaDirective",
"src": "0:25:12"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 3974,
"linearizedBaseContracts": [
3974
],
"name": "IArbitrumGasInfo",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 3914,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getPricesInWeiWithAggregator",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3900,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3899,
"name": "aggregator",
"nodeType": "VariableDeclaration",
"scope": 3914,
"src": "484:18:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 3898,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "484:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "474:34:12"
},
"returnParameters": {
"id": 3913,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3902,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3914,
"src": "532:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3901,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "532:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3904,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3914,
"src": "538:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3903,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "538:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3906,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3914,
"src": "544:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3905,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "544:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3908,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3914,
"src": "550:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3907,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "550:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3910,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3914,
"src": "556:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3909,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "556:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3912,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3914,
"src": "562:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3911,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "562:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "531:36:12"
},
"scope": 3974,
"src": "437:131:12",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 3929,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getPricesInWei",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3915,
"nodeType": "ParameterList",
"parameters": [],
"src": "801:2:12"
},
"returnParameters": {
"id": 3928,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3917,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3929,
"src": "827:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3916,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "827:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3919,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3929,
"src": "833:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3918,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "833:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3921,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3929,
"src": "839:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3920,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "839:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3923,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3929,
"src": "845:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3922,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "845:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3925,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3929,
"src": "851:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3924,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "851:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3927,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3929,
"src": "857:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3926,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "857:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "826:36:12"
},
"scope": 3974,
"src": "778:85:12",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 3940,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getPricesInArbGasWithAggregator",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3932,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3931,
"name": "aggregator",
"nodeType": "VariableDeclaration",
"scope": 3940,
"src": "1055:18:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 3930,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1055:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1054:20:12"
},
"returnParameters": {
"id": 3939,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3934,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3940,
"src": "1098:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3933,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1098:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3936,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3940,
"src": "1104:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3935,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1104:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3938,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3940,
"src": "1110:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3937,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1110:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1097:18:12"
},
"scope": 3974,
"src": "1014:102:12",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 3949,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getPricesInArbGas",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3941,
"nodeType": "ParameterList",
"parameters": [],
"src": "1355:2:12"
},
"returnParameters": {
"id": 3948,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3943,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3949,
"src": "1381:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3942,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1381:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3945,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3949,
"src": "1387:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3944,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1387:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3947,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3949,
"src": "1393:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3946,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1393:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1380:18:12"
},
"scope": 3974,
"src": "1329:70:12",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 3958,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getGasAccountingParams",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3950,
"nodeType": "ParameterList",
"parameters": [],
"src": "1525:2:12"
},
"returnParameters": {
"id": 3957,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3952,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3958,
"src": "1551:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3951,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1551:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3954,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3958,
"src": "1557:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3953,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1557:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3956,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3958,
"src": "1563:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3955,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1563:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1550:18:12"
},
"scope": 3974,
"src": "1494:75:12",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 3963,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getL1GasPriceEstimate",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3959,
"nodeType": "ParameterList",
"parameters": [],
"src": "1660:2:12"
},
"returnParameters": {
"id": 3962,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3961,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3963,
"src": "1685:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3960,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1685:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1684:6:12"
},
"scope": 3974,
"src": "1630:61:12",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 3968,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setL1GasPriceEstimate",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3966,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3965,
"name": "priceInWei",
"nodeType": "VariableDeclaration",
"scope": 3968,
"src": "1861:15:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3964,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1861:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1860:17:12"
},
"returnParameters": {
"id": 3967,
"nodeType": "ParameterList",
"parameters": [],
"src": "1886:0:12"
},
"scope": 3974,
"src": "1830:57:12",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 3973,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getCurrentTxL1GasFees",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3969,
"nodeType": "ParameterList",
"parameters": [],
"src": "2009:2:12"
},
"returnParameters": {
"id": 3972,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3971,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3973,
"src": "2034:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3970,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "2034:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "2033:6:12"
},
"scope": 3974,
"src": "1979:61:12",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
}
],
"scope": 3975,
"src": "28:2014:12"
}
],
"src": "0:2043:12"
},
"legacyAST": {
"absolutePath": "/home/cdc218/projects/dolomite/dolomite-protocol-v2/contracts/external/interfaces/IArbitrumGasInfo.sol",
"exportedSymbols": {
"IArbitrumGasInfo": [
3974
]
},
"id": 3975,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 3897,
"literals": [
"solidity",
">=",
"0.4",
".21"
],
"nodeType": "PragmaDirective",
"src": "0:25:12"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 3974,
"linearizedBaseContracts": [
3974
],
"name": "IArbitrumGasInfo",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 3914,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getPricesInWeiWithAggregator",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3900,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3899,
"name": "aggregator",
"nodeType": "VariableDeclaration",
"scope": 3914,
"src": "484:18:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 3898,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "484:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "474:34:12"
},
"returnParameters": {
"id": 3913,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3902,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3914,
"src": "532:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3901,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "532:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3904,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3914,
"src": "538:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3903,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "538:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3906,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3914,
"src": "544:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3905,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "544:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3908,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3914,
"src": "550:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3907,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "550:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3910,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3914,
"src": "556:4:12",
"stateVariab