witnet-solidity-bridge
Version:
Witnet Solidity Bridge contracts for EVM-compatible chains
815 lines • 256 kB
JSON
{
"contractName": "OVM_GasPriceOracle",
"abi": [
{
"inputs": [
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
}
],
"name": "getL1Fee",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"getL1Fee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/core/trustable/WitOracleTrustableOvm2.sol\":\"OVM_GasPriceOracle\"},\"evmVersion\":\"prague\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"keccak256\":\"0xdb4d24ee2c087c391d587cd17adfe5b3f9d93b3110b1388c2ab6c7c0ad1dcd05\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ab7b6d5b9e2b88176312967fe0f0e78f3d9a1422fa5e4b64e2440c35869b5d08\",\"dweb:/ipfs/QmXKYWWyzcLg1B2k7Sb1qkEXgLCYfXecR9wYW5obRzWP1Q\"]},\"@openzeppelin/contracts/access/Ownable.sol\":{\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8ed324d3920bb545059d66ab97d43e43ee85fd3bd52e03e401f020afb0b120f6\",\"dweb:/ipfs/QmfEckWLmZkDDcoWrkEvMWhms66xwTLff9DDhegYpvHo1a\"]},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0x74ed01eb66b923d0d0cfe3be84604ac04b76482a55f9dd655e1ef4d367f95bc2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5282825a626cfe924e504274b864a652b0023591fa66f06a067b25b51ba9b303\",\"dweb:/ipfs/QmeCfPykghhMc81VJTrHTC7sF6CRvaA1FXVq2pJhwYp1dV\"]},\"@openzeppelin/contracts/utils/Context.sol\":{\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6a708e8a5bdb1011c2c381c9a5cfd8a9a956d7d0a9dc1bd8bcdaf52f76ef2f12\",\"dweb:/ipfs/Qmax9WHBnVsZP46ZxEMNRQpLQnrdE4dK8LehML1Py8FowF\"]},\"@openzeppelin/contracts/utils/ReentrancyGuard.sol\":{\"keccak256\":\"0x11a5a79827df29e915a12740caf62fe21ebe27c08c9ae3e09abe9ee3ba3866d3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3cf0c69ab827e3251db9ee6a50647d62c90ba580a4d7bbff21f2bea39e7b2f4a\",\"dweb:/ipfs/QmZiKwtKU1SBX4RGfQtY7PZfiapbbu6SZ9vizGQD9UHjRA\"]},\"@openzeppelin/contracts/utils/introspection/ERC165.sol\":{\"keccak256\":\"0x2d9dc2fe26180f74c11c13663647d38e259e45f95eb88f57b61d2160b0109d3e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://81233d1f98060113d9922180bb0f14f8335856fe9f339134b09335e9f678c377\",\"dweb:/ipfs/QmWh6R35SarhAn4z2wH8SU456jJSYL2FgucfTFgbHJJN4E\"]},\"@openzeppelin/contracts/utils/introspection/IERC165.sol\":{\"keccak256\":\"0x8891738ffe910f0cf2da09566928589bf5d63f4524dd734fd9cedbac3274dd5c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://971f954442df5c2ef5b5ebf1eb245d7105d9fbacc7386ee5c796df1d45b21617\",\"dweb:/ipfs/QmadRjHbkicwqwwh61raUEapaVEtaLMcYbQZWs9gUkgj3u\"]},\"project:/contracts/WitOracle.sol\":{\"keccak256\":\"0x7f20eab15140df459753dfa8e406b826918b56ebe2c46456f9d04345c02629d1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e0573ce3d48200c71d8235a1a8c055b706420b2037bd21336f3c61713c3b8349\",\"dweb:/ipfs/QmY7BnVaNXFtJs1BFdeaa7dQfvUVoZyfwtv9HuToCxUUHU\"]},\"project:/contracts/WitOraclePushOnly.sol\":{\"keccak256\":\"0x659b4746c5a773b554b7a94bea3f55a995a8f850d750108302a8face9d1c833c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://291c6b4cd5c0f223ee63cc8cee2e228f47e1344a935eb89b6ef8f993eb5ce18e\",\"dweb:/ipfs/QmeKNLaVURv4N5jz5z67WQ4wyUUucqMaYLZQ2NnuuNyyPS\"]},\"project:/contracts/WitOracleRadonRegistry.sol\":{\"keccak256\":\"0xc9bd0ab02e13b36fe4072868ae978a230c5132a702d6594f11270ec5e7926e09\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8321305b131abec96c492302163d95f8777106f74a0d42f5f50fdf60d2b3a381\",\"dweb:/ipfs/QmRx7FGWPkC41afPuJpBTDQ85wjH95Dbi3qAxVNfNZUsWe\"]},\"project:/contracts/core/WitnetProxy.sol\":{\"keccak256\":\"0x6f0ec2c544192c9439bde88f5ed4efec5bdef506cb0dcb739c29329a798033fe\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ca05338334632aab3aef3c17a4b8686251ec488da49b9fcd3712642e57e0ce2a\",\"dweb:/ipfs/QmZk1uDdytKFii4TXUnJkFBBB3CZVSPKKR85ugFjWUTufS\"]},\"project:/contracts/core/WitnetUpgradableBase.sol\":{\"keccak256\":\"0x4cea0415b77897e151454ce87c1e20b7dc9f232de72b54a6740c90e076f7e1b9\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e0b803611c3a863ac5806b16e7d2a48b0e062fece262c750d121b5e9e17eb082\",\"dweb:/ipfs/QmVhFt1TkbkZ48jLsN5LgnpzpTdoMbfqGyMSJxjaEqisht\"]},\"project:/contracts/core/base/WitOracleBasePushOnly.sol\":{\"keccak256\":\"0xdf4be00f732674d6a1a83fbb5801571690623a17b7388613af3a3debadf9ce2d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d9b4b8a611ed9186249e30fcaeecc1d7bbda50338e794d5b65865f885f20ec6e\",\"dweb:/ipfs/Qme8xqsdQqdyDuy1DYijquG6LGJHqRzyruZ1MR6hPJCxmY\"]},\"project:/contracts/core/base/WitOracleBaseQueriable.sol\":{\"keccak256\":\"0xed332c1131be86c1b97223e0488488f7091fe84f21b88fd2724cb7c0d91397ae\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c8c48b617f0696470db8914a6c8627fc6c85ef09794e2d13accbbe73399442bb\",\"dweb:/ipfs/QmVG1wvboCBWGw2Q2Lr7yqTmBNwzspyD3mTMYkZm57WY31\"]},\"project:/contracts/core/base/WitOracleBaseQueriableTrustable.sol\":{\"keccak256\":\"0x16940ffb1a139c2f223ea78c86769a565956116bc6e941d824621f7b2ab0ae91\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c671c1ed610c1d2be08c8d7547f73a6684f17221625a06821fa7652bf4f6b727\",\"dweb:/ipfs/QmUD2v1zin5hYTVg97eszTMBjo1KaPWK4kmS7eA5cQtjZU\"]},\"project:/contracts/core/trustable/WitOracleTrustableOvm2.sol\":{\"keccak256\":\"0x1e3d768d1af81f92c25c75ef68de9f1fd4a4a6eca68a0f66de3603d8eae0c036\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0b9fb2992d25023524dfb72c37ae32c149bcc674062d7de652c74ed8d949f123\",\"dweb:/ipfs/QmZEZsXvCzYoAJqhuTtJ6aTTKwr9xh5yvx3qR2jX8Tjbui\"]},\"project:/contracts/data/WitOracleDataLib.sol\":{\"keccak256\":\"0x879c513c3cac839300e954d5ffe61c14eaec3052b39898ec2402068169fddd55\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://63f58f4aa26e2a174fb5cee2fd9c06a10c337e6766b804e38bb4bbb3c3d4682d\",\"dweb:/ipfs/QmTjS8hws4VAd3S8dpNmX3zyV7oCF7xJ7AZTRJwrmbhSmi\"]},\"project:/contracts/interfaces/IWitAppliance.sol\":{\"keccak256\":\"0xd207ca54a1049445a3d99eea497d9b34c6dbdd44d771eee825e4c031bd2f447e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f81de32d868ff2881ed6fe97cc897e40b4b11d23cbe53a0e23cf3e68f9c0f0a3\",\"dweb:/ipfs/QmeeXmzmK5MAzt7Hf5DB2L81efKtTzZg9VbQ8sUiTqEk5c\"]},\"project:/contracts/interfaces/IWitOracle.sol\":{\"keccak256\":\"0x26cbe2074c0b3f545a46d95fad5e2280b67edcd958e4ae0b88f3a018aa11b805\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5324bac61f65e3edb01c88b9b75ca17affd593be88da5753a93b3f5304d3f479\",\"dweb:/ipfs/QmcVmNV6smbFiPaxvuN8ShkqbDZsT1wfjnF7f3qs6ke7QG\"]},\"project:/contracts/interfaces/IWitOracleAppliance.sol\":{\"keccak256\":\"0xcd8e57eca7f8042c85a83264e2ff6d1cd7a9f1521831736d7f57bcc7800642e6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5c639668e9439d60770b5df77436088ae7bd0aeb1d1be446552a98b6c29138f0\",\"dweb:/ipfs/QmbN3f5YuKMSd2j9tjay3VEkiYibGWpbfbwRNyrxA8k4o4\"]},\"project:/contracts/interfaces/IWitOracleQueriable.sol\":{\"keccak256\":\"0xdb0da1e377a35a7d620f43cb583a876750a52d91da2b888f48042483ad9c4910\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://edfcdf3e96ec3c5de7438f82e3d5a1dc9af9eb29080044213dccb26ff978354c\",\"dweb:/ipfs/Qmap2FzSysh2fug88eortbsTM7itFygRzKc9HfV43ePMik\"]},\"project:/contracts/interfaces/IWitOracleQueriableConsumer.sol\":{\"keccak256\":\"0xe8143d2387d674022f453b57652998f53cbe4c21fe35e59421428142355c8ebf\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6e6c3e3d3e7168a3fb75b1eca23d078d5240e5b02dac8a449d1ddf79256a34d8\",\"dweb:/ipfs/QmbGk4tQzTogTBVYiT8t3Gqtk6qDs5nyp9Z53GryTjKAm5\"]},\"project:/contracts/interfaces/IWitOracleQueriableEvents.sol\":{\"keccak256\":\"0x47c283e931006d35bd2599524f86724e45eae6fad2fdd9cdecd1c85a90ff3f8c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3ad0520f99ec9298536ae9434f58caeb470c10dd3eaab1e4c7ed4cae9a97e2a2\",\"dweb:/ipfs/QmSuYCsSPweZfQc5Fbf9jYDdx4u7gwYCUdjhpcrrxmWZy6\"]},\"project:/contracts/interfaces/IWitOracleQueriableExperimental.sol\":{\"keccak256\":\"0x57c0007d813ed3e6dd3e0bb128e6ca7a0324214962823c6456e2e37d78ab4070\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b5edc498ccc728327f1f3c80d2decd7ca64920a3aee4faaba08dd354f1256b66\",\"dweb:/ipfs/QmdEJWUtQqTVdFLCiNKUPSe3NwXzuHmG6XzA1VbHHHgdPy\"]},\"project:/contracts/interfaces/IWitOracleQueriableTrustableReporter.sol\":{\"keccak256\":\"0x043a719845d75dccc3c7c046fdd214bb252ab2b85400fbd139ed5cea9469becc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0b1be7cbf990ff4d383b1c0695626af794442f9a48f02e13435793c4316ff011\",\"dweb:/ipfs/QmX3Lq17FMsN2T9K4fAYg6CRTYjwHd6hT1XKjEA2T7QeM5\"]},\"project:/contracts/interfaces/IWitOracleRadonRegistry.sol\":{\"keccak256\":\"0x437bbb89129311bd1cc8f6becd333df46109ec53b24d3159be942b225614071f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ef9bcdf4a73cb126885478c994821b7fe2b87d9221b767b4c9342b89b0d6550a\",\"dweb:/ipfs/QmXzZXPMxjSiFpcEnhg6CjLFNxGCpDZt22xpUh7VHxNTGd\"]},\"project:/contracts/interfaces/IWitOracleRadonRegistryEvents.sol\":{\"keccak256\":\"0x9bd30477aeb33de11c4f1df3cd7451452a90ffed1f6eabd9e643046bf1e60d66\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://18fb38c5528ed2e1bf90ff8d123bf5a9523d0dc49f448d6c39ddad1cd9048d0a\",\"dweb:/ipfs/QmQq1RUwFgnGTk3xDAmN6u2WMPBzvjZNJc7TPYtG6aZfRn\"]},\"project:/contracts/interfaces/IWitOracleTrustableAdmin.sol\":{\"keccak256\":\"0x94b69b5a460d1407746ac70d32a0c5d4fca564b16cbd1940b822dd0ecb5336e9\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a773b9d963647a5591b95c8fb359efd461dc494d1e3a1754cc83343310e07605\",\"dweb:/ipfs/QmU77Zre43r5sVj4DK2FjTda31zWgNDr9sGPug1dRv4ih6\"]},\"project:/contracts/interfaces/legacy/IWitOracleLegacy.sol\":{\"keccak256\":\"0xd2929c9aa5a02d261d6d1a068a6b7231ae58d8f81f081ba89f2d3267a31fbbb5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://956b26323a02cf400c32012586954fc5dbc98b4d5b7a8b0533401cbda8619059\",\"dweb:/ipfs/QmSWdCRwL5t3atFM8osdaohLTqEEmY1FbnR6xrRCmw1GDM\"]},\"project:/contracts/interfaces/legacy/IWitOracleRequest.sol\":{\"keccak256\":\"0x0fb3f0ba03f4f7a0214ecb36df26525564cf51a8a2176cba92c185af8a1d419e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://340b7bdb92c3259519fe120eb3061b393e7a5e9c1b576a2fe4eab020af466b64\",\"dweb:/ipfs/QmRt4wMX9WdxFwfdFMUZ3zKMAW1grS7qLk1x1PDMJdEAVU\"]},\"project:/contracts/interfaces/legacy/IWitOracleRequestTemplate.sol\":{\"keccak256\":\"0x9e065ef5880c64eefff5fcfb1347fde6684e0e311f8c2350a6aefdbd1f8b0f22\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://817de760c7cce9d00dcd4312aea6434d88abddf1c0e68ea7e8fb1e6c5165a445\",\"dweb:/ipfs/QmUNmtn85nFXbje2nRJQY2h65KJCVinDMMU6P2jQmo1Nij\"]},\"project:/contracts/libs/Bech32.sol\":{\"keccak256\":\"0x14618323a0efe7586c20906a2e9cee7ad63baa976ff231c57f7f2d7d3707fb8b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a19f05fe84047a7a6d3d6fc39972b432e6e536aa70472386a9d7a6d9aab64a64\",\"dweb:/ipfs/QmcHwUY66yjiotRH4Q3kbRvSzcHyLQ1yHL3KbtQKiMhtZE\"]},\"project:/contracts/libs/Secp256k1.sol\":{\"keccak256\":\"0xbe686002da5004ff39dd70709f3820eba2afe9323ae9cb894009c161e4b1a666\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://18fab91775216de0707cea9ad285b10be09127461a13432fea358bf9cb2a0c2e\",\"dweb:/ipfs/QmeRUGsgstnM4hxM9hpkBf3L6cE5btirEaowcMxmuw3utj\"]},\"project:/contracts/libs/WitOracleResultStatusLib.sol\":{\"keccak256\":\"0x9ea0a1a68498957ee7baaae50e078ee845dacd031f129b0a3cbf40cd413f3efb\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0836f04c9ed07cb90b54b07b38eb95fba769be0d921e687fe1184d6570ff34e8\",\"dweb:/ipfs/QmPv9g3KGobVdr5bsCv5715V97DmEdTqzz9mhbEZjugqgC\"]},\"project:/contracts/libs/Witnet.sol\":{\"keccak256\":\"0x1d446c3e534e40e676d1763bfb2897fadfac8afed904ab757843d7d6770b0a6c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://338fb1073f17d64e8d31bfe492d9475ce906788ee08e6489ce30413f91dc1328\",\"dweb:/ipfs/QmPe5QX2AGTnQFjse1Xttq4ZYWwYAiXoySb5VUui3PqPhk\"]},\"project:/contracts/libs/WitnetBuffer.sol\":{\"keccak256\":\"0x8e07aebe2954ab3e6f2d8eceedb12db7cf915c1f3e8630f4fa9999cecb1c78ec\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ed6c54cc901183d61546e8fd15bd5ea8ef238ebc915642946071d435dd7481ea\",\"dweb:/ipfs/Qmcaqta7YjUSBbBUGqoh44bsCS6UqqoyHjBuz4qnKBShXM\"]},\"project:/contracts/libs/WitnetCBOR.sol\":{\"keccak256\":\"0xd99308373575cc10fb7f2ceb0f6a8625f3911275c1fa27811fae498d98d03d97\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b4909a999d7b660a2dc54ca957b6eccfa523e2765fc4d6a2574dee7d5cd67b43\",\"dweb:/ipfs/QmWGQT4KDcfSFe1hcHVoWx6E4PhYMaod5iLpJCWBEeShzh\"]},\"project:/contracts/patterns/Initializable.sol\":{\"keccak256\":\"0xaac470e87f361cf15d68d1618d6eb7d4913885d33ccc39c797841a9591d44296\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ef3760b2039feda8715d4bd9f8de8e3885f25573d12ba92f52d626ba880a08bf\",\"dweb:/ipfs/QmP2mfHPBKkjTAKft95sPDb4PBsjfmAwc47Kdcv3xYSf3g\"]},\"project:/contracts/patterns/Ownable.sol\":{\"keccak256\":\"0x494bda32f9a218d9c33ea82112129c0933ab52f57eabfbf0d14a8742a3370800\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6c4cf04ebb052fed9d15cf93ff4523955ee311aa4425ee85f0e80b4489c94e76\",\"dweb:/ipfs/QmfMf4WD7woTaQSTbJxxoan2aXSeY7ovY5NoipSBw5rMPK\"]},\"project:/contracts/patterns/Ownable2Step.sol\":{\"keccak256\":\"0x45ed9d1f98e2a7a5bd1a7040dbd4292f1458fa1cb212d0143718684efa436bd5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://45d347c5ef492b33dcf3953bb3911fe7160a6c812e69ed84d2511f0847e19229\",\"dweb:/ipfs/QmZp3icE2gQBoJp8KorWC1GfGC8mK29sK9fEveKRMNCY1U\"]},\"project:/contracts/patterns/Payable.sol\":{\"keccak256\":\"0x29ce79b9329cc854ddb0ee546e5a17f3cedafa91c7d614f43e8d6537680b1734\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://00d5ce85f66c3c32b8b69bfed2f07f40d14ac72c2f67d2de6601de0be16b5af1\",\"dweb:/ipfs/QmZogwLRBjFUJVSzR8YuMfo3mKg8WvYVbn2QvWXsCVP92V\"]},\"project:/contracts/patterns/Proxiable.sol\":{\"keccak256\":\"0x86032205378fed9ed2bf155eed8ce4bdbb13b7f5960850c6d50954a38b61a3d8\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f89978eda4244a13f42a6092a94ac829bb3e38c92d77d4978b9f32894b187a63\",\"dweb:/ipfs/Qmbc1XaFCvLm3Sxvh7tP29Ug32jBGy3avsCqBGAptxs765\"]},\"project:/contracts/patterns/ReentrancyGuard.sol\":{\"keccak256\":\"0x1470caf4bd78b79f706e28a8a85c95a6e13ec33eda04275e5da84464130831e6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c974fb4dc29718a84f9ab5fa3f8c25c7f889050a38445e16c3ead5ff9d4b4bab\",\"dweb:/ipfs/QmbuGjkSjngbTZMRPijL9p56fP9cK5jMnWsFmvYAQj3qAY\"]},\"project:/contracts/patterns/Upgradeable.sol\":{\"keccak256\":\"0x49d1a83abc7a9b39d224677dde65ead4b7f1104332a94c9e619854b2a6b3a89e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e6a798a953af921a5b4e24e3f78bebae97819a85c90deb12ec505952faa42814\",\"dweb:/ipfs/QmVJhv4x3MXf4aDbMC5Q259K8kZNvxSXzmy8anoow7nS7k\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"immutableReferences": {},
"generatedSources": [],
"deployedGeneratedSources": [],
"sourceMap": "",
"deployedSourceMap": "",
"source": "// SPDX-License-Identifier: MIT\r\n\r\npragma solidity >=0.8.0 <0.9.0;\r\n\r\nimport \"../base/WitOracleBaseQueriableTrustable.sol\";\r\n\r\n// solhint-disable-next-line\r\ninterface OVM_GasPriceOracle {\r\n function getL1Fee(bytes calldata _data) external view returns (uint256);\r\n}\r\n\r\n/// @title Queriable WitOracle \"trustable\" implementation contract for OVM2 chains. \r\n/// @author The Witnet Foundation\r\ncontract WitOracleTrustableOvm2\r\n is \r\n WitOracleBaseQueriableTrustable\r\n{\r\n function class() virtual override public view returns (string memory) {\r\n return type(WitOracleTrustableOvm2).name;\r\n }\r\n\r\n constructor(\r\n EvmImmutables memory _immutables,\r\n WitOracleRadonRegistry _registry,\r\n bytes32 _versionTag\r\n )\r\n WitOracleBaseQueriable(\r\n _immutables,\r\n _registry\r\n )\r\n WitOracleBaseQueriableTrustable(_versionTag)\r\n {\r\n __gasPriceOracleL1 = OVM_GasPriceOracle(0x420000000000000000000000000000000000000F);\r\n }\r\n\r\n OVM_GasPriceOracle immutable internal __gasPriceOracleL1;\r\n\r\n function _getCurrentL1Fee(uint16 _resultMaxSize) virtual internal view returns (uint256) {\r\n return __gasPriceOracleL1.getL1Fee(\r\n abi.encodePacked(\r\n hex\"06eb2c42000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000ffffffffff00000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000ff\",\r\n _resultMaxBuffer(_resultMaxSize)\r\n )\r\n );\r\n }\r\n\r\n function _resultMaxBuffer(uint16 _resultMaxSize) private pure returns (bytes memory) {\r\n unchecked {\r\n uint256[] memory _buffer = new uint256[](_resultMaxSize / 32);\r\n for (uint _ix = 0; _ix < _buffer.length; _ix ++) {\r\n _buffer[_ix] = type(uint256).max;\r\n }\r\n return abi.encodePacked(\r\n _buffer,\r\n uint256((1 << (_resultMaxSize % 32)) - 1)\r\n );\r\n }\r\n }\r\n\r\n\r\n // ================================================================================================================\r\n // --- Overrides 'IWitOracle' -------------------------------------------------------------------------------------\r\n\r\n /// @notice Estimate the minimum reward required for posting a data request.\r\n /// @param _evmGasPrice Expected gas price to pay upon posting the data request.\r\n function estimateBaseFee(uint256 _evmGasPrice)\r\n public view\r\n virtual override\r\n returns (uint256)\r\n {\r\n return _getCurrentL1Fee(32) + WitOracleBaseQueriable.estimateBaseFee(_evmGasPrice);\r\n }\r\n\r\n /// @notice Estimate the minimum reward required for posting a data request with a callback.\r\n /// @param _gasPrice Expected gas price to pay upon posting the data request.\r\n /// @param _callbackGas Maximum gas to be spent when reporting the data request result.\r\n function estimateBaseFeeWithCallback(uint256 _gasPrice, uint24 _callbackGas)\r\n public view\r\n virtual override\r\n returns (uint256)\r\n {\r\n return _getCurrentL1Fee(32) + WitOracleBaseQueriable.estimateBaseFeeWithCallback(_gasPrice, _callbackGas);\r\n }\r\n\r\n /// @notice Estimate the extra reward (i.e. over the base fee) to be paid when posting a new\r\n /// @notice data query in order to avoid getting provable \"too low incentives\" results from\r\n /// @notice the Wit/Oracle blockchain. \r\n /// @dev The extra fee gets calculated in proportion to:\r\n /// @param _evmGasPrice Tentative EVM gas price at the moment the query result is ready.\r\n /// @param _evmWitPrice Tentative nanoWit price in Wei at the moment the query is solved on the Wit/Oracle blockchain.\r\n /// @param _querySLA The query SLA data security parameters as required for the Wit/Oracle blockchain. \r\n function estimateExtraFee(\r\n uint256 _evmGasPrice, \r\n uint256 _evmWitPrice, \r\n Witnet.QuerySLA memory _querySLA\r\n )\r\n public view\r\n virtual override\r\n returns (uint256)\r\n {\r\n return (\r\n _getCurrentL1Fee(_querySLA.witResultMaxSize)\r\n + WitOracleBaseQueriable.estimateExtraFee(\r\n _evmGasPrice,\r\n _evmWitPrice,\r\n _querySLA\r\n )\r\n );\r\n }\r\n\r\n\r\n // ================================================================================================================\r\n // --- Overrides 'IWitOracleLegacy' -------------------------------------------------------------------------------\r\n\r\n /// @notice Estimate the minimum reward required for posting a data request.\r\n /// @dev Underestimates if the size of returned data is greater than `_resultMaxSize`. \r\n /// @param _gasPrice Expected gas price to pay upon posting the data request.\r\n /// @param _resultMaxSize Maximum expected size of returned data (in bytes).\r\n function estimateBaseFee(uint256 _gasPrice, uint16 _resultMaxSize)\r\n public view \r\n virtual override\r\n returns (uint256)\r\n {\r\n return _getCurrentL1Fee(_resultMaxSize) + WitOracleBaseQueriableTrustable.estimateBaseFee(_gasPrice, _resultMaxSize);\r\n }\r\n\r\n\r\n // ================================================================================================================\r\n // --- Overrides 'IWitOracleQueriableTrustableReporter' --------------------------------------------------------------------------\r\n\r\n /// @notice Estimates the actual earnings (or loss), in WEI, that a reporter would get by reporting result to given query,\r\n /// @notice based on the gas price of the calling transaction. Data requesters should consider upgrading the reward on \r\n /// @notice queries providing no actual earnings.\r\n function estimateReportEarnings(\r\n uint256[] calldata _queryIds, \r\n bytes calldata _evmMsgData,\r\n uint256 _evmGasPrice, \r\n uint256 _evmWitPrice\r\n )\r\n external view\r\n virtual override\r\n returns (uint256 _revenues, uint256 _expenses)\r\n {\r\n for (uint _ix = 0; _ix < _queryIds.length; _ix ++) {\r\n uint256 _queryId = _queryIds[_ix];\r\n if (\r\n getQueryStatus(_queryId) == Witnet.QueryStatus.Posted\r\n ) {\r\n WitOracleDataLib.Query storage __query = WitOracleDataLib.seekQuery(_queryId);\r\n if (__query.request.callbackGas > 0) {\r\n _expenses += (\r\n WitOracleBaseQueriable.estimateBaseFeeWithCallback(_evmGasPrice, __query.request.callbackGas)\r\n + WitOracleBaseQueriable.estimateExtraFee(\r\n _evmGasPrice, _evmWitPrice,\r\n Witnet.QuerySLA({\r\n witResultMaxSize: uint16(0),\r\n witCommitteeSize: __query.slaParams.witCommitteeSize,\r\n witUnitaryReward: __query.slaParams.witUnitaryReward\r\n })\r\n )\r\n );\r\n } else {\r\n _expenses += (\r\n WitOracleBaseQueriable.estimateBaseFee(_evmGasPrice)\r\n + WitOracleBaseQueriable.estimateExtraFee(\r\n _evmGasPrice, _evmWitPrice,\r\n __query.slaParams\r\n )\r\n );\r\n }\r\n _expenses += __query.slaParams.witUnitaryReward * _evmWitPrice;\r\n _revenues += Witnet.QueryEvmReward.unwrap(__query.reward);\r\n }\r\n }\r\n _expenses += __gasPriceOracleL1.getL1Fee(_evmMsgData);\r\n }\r\n}\r\n",
"sourcePath": "C:\\Users\\guill\\github\\guidiaz\\witnet-solidity-bridge\\contracts\\core\\trustable\\WitOracleTrustableOvm2.sol",
"ast": {
"absolutePath": "project:/contracts/core/trustable/WitOracleTrustableOvm2.sol",
"exportedSymbols": {
"Bech32": [
31372
],
"Context": [
523
],
"ERC165": [
616
],
"IERC165": [
628
],
"IERC20": [
493
],
"IWitAppliance": [
26514
],
"IWitOracle": [
26581
],
"IWitOracleAppliance": [
26593
],
"IWitOracleLegacy": [
28786
],
"IWitOracleQueriable": [
26795
],
"IWitOracleQueriableConsumer": [
26815
],
"IWitOracleQueriableEvents": [
26892
],
"IWitOracleQueriableExperimental": [
26964
],
"IWitOracleQueriableTrustableReporter": [
27056
],
"IWitOracleRadonRegistry": [
27394
],
"IWitOracleRadonRegistryEvents": [
27414
],
"IWitOracleRequest": [
28922
],
"IWitOracleRequestTemplate": [
29115
],
"IWitOracleTrustableAdmin": [
27628
],
"Initializable": [
267
],
"OVM_GasPriceOracle": [
17036
],
"Ownable": [
415
],
"Ownable2Step": [
45709
],
"Payable": [
45766
],
"Proxiable": [
45810
],
"ReentrancyGuard": [
592
],
"Secp256k1": [
32535
],
"Upgradeable": [
45930
],
"WitOracle": [
678
],
"WitOracleBasePushOnly": [
9455
],
"WitOracleBaseQueriable": [
11059
],
"WitOracleBaseQueriableTrustable": [
12527
],
"WitOracleDataLib": [
20110
],
"WitOraclePushOnly": [
701
],
"WitOracleRadonRegistry": [
726
],
"WitOracleResultStatusLib": [
37119
],
"WitOracleTrustableOvm2": [
17387
],
"Witnet": [
40741
],
"WitnetBuffer": [
42631
],
"WitnetCBOR": [
44174
],
"WitnetProxy": [
8994
],
"WitnetUpgradableBase": [
9373
]
},
"id": 17388,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 17027,
"literals": [
"solidity",
">=",
"0.8",
".0",
"<",
"0.9",
".0"
],
"nodeType": "PragmaDirective",
"src": "35:31:44"
},
{
"absolutePath": "project:/contracts/core/base/WitOracleBaseQueriableTrustable.sol",
"file": "../base/WitOracleBaseQueriableTrustable.sol",
"id": 17028,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 17388,
"sourceUnit": 12528,
"src": "70:53:44",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "OVM_GasPriceOracle",
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 17036,
"linearizedBaseContracts": [
17036
],
"name": "OVM_GasPriceOracle",
"nameLocation": "167:18:44",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "49948e0e",
"id": 17035,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getL1Fee",
"nameLocation": "202:8:44",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 17031,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 17030,
"mutability": "mutable",
"name": "_data",
"nameLocation": "226:5:44",
"nodeType": "VariableDeclaration",
"scope": 17035,
"src": "211:20:44",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 17029,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "211:5:44",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "210:22:44"
},
"returnParameters": {
"id": 17034,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 17033,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 17035,
"src": "256:7:44",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 17032,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "256:7:44",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "255:9:44"
},
"scope": 17036,
"src": "193:72:44",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 17388,
"src": "157:111:44",
"usedErrors": [],
"usedEvents": []
},
{
"abstract": false,
"baseContracts": [
{
"baseName": {
"id": 17038,
"name": "WitOracleBaseQueriableTrustable",
"nameLocations": [
"443:31:44"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 12527,
"src": "443:31:44"
},
"id": 17039,
"nodeType": "InheritanceSpecifier",
"src": "443:31:44"
}
],
"canonicalName": "WitOracleTrustableOvm2",
"contractDependencies": [],
"contractKind": "contract",
"documentation": {
"id": 17037,
"nodeType": "StructuredDocumentation",
"src": "272:121:44",
"text": "@title Queriable WitOracle \"trustable\" implementation contract for OVM2 chains. \n @author The Witnet Foundation"
},
"fullyImplemented": true,
"id": 17387,
"linearizedBaseContracts": [
17387,
12527,
27056,
28786,
27628,
11059,
678,
26892,
26795,
26581,
26514,
45766,
9373,
592,
45930,
45810,
267,
45709,
415,
523
],
"name": "WitOracleTrustableOvm2",
"nameLocation": "402:22:44",
"nodeType": "ContractDefinition",
"nodes": [
{
"baseFunctions": [
26472
],
"body": {
"id": 17050,
"nodeType": "Block",
"src": "553:59:44",
"statements": [
{
"expression": {
"expression": {
"arguments": [
{
"id": 17046,
"name": "WitOracleTrustableOvm2",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 17387,
"src": "576:22:44",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_WitOracleTrustableOvm2_$17387_$",
"typeString": "type(contract WitOracleTrustableOvm2)"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_type$_t_contract$_WitOracleTrustableOvm2_$17387_$",
"typeString": "type(contract WitOracleTrustableOvm2)"
}
],
"id": 17045,
"name": "type",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4294967269,
"src": "571:4:44",
"typeDescriptions": {
"typeIdentifier": "t_function_metatype_pure$__$returns$__$",
"typeString": "function () pure"
}
},
"id": 17047,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "571:28:44",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_magic_meta_type_t_contract$_WitOracleTrustableOvm2_$17387",
"typeString": "type(contract WitOracleTrustableOvm2)"
}
},
"id": 17048,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"memberLocation": "600:4:44",
"memberName": "name",
"nodeType": "MemberAccess",
"src": "571:33:44",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
},
"functionReturnParameters": 17044,
"id": 17049,
"nodeType": "Return",
"src": "564:40:44"
}
]
},
"functionSelector": "bff852fa",
"id": 17051,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "class",
"nameLocation": "492:5:44",
"nodeType": "FunctionDefinition",
"overrides": {
"id": 17041,
"nodeType": "OverrideSpecifier",
"overrides": [],
"src": "508:8:44"
},
"parameters": {
"id": 17040,
"nodeType": "ParameterList",
"parameters": [],
"src": "497:2:44"
},
"returnParameters": {
"id": 17044,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 17043,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 17051,
"src": "538:13:44",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 17042,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "538:6:44",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"src": "537:15:44"
},
"scope": 17387,
"src": "483:129:44",
"stateMutability": "view",
"virtual": true,
"visibility": "public"
},
{
"body": {
"id": 17075,
"nodeType": "Block",
"src": "923:102:44",
"statements": [
{
"expression": {
"id": 17073,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 17069,
"name": "__gasPriceOracleL1",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 17079,
"src": "934:18:44",
"typeDescriptions": {
"typeIdentifier": "t_contract$_OVM_GasPriceOracle_$17036",
"typeString": "contract OVM_GasPriceOracle"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"arguments": [
{
"hexValue": "307834323030303030303030303030303030303030303030303030303030303030303030303030303046",
"id": 17071,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "974:42:44",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"value": "0x420000000000000000000000000000000000000F"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 17070,
"name": "OVM_GasPriceOracle",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 17036,
"src": "955:18:44",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_OVM_GasPriceOracle_$17036_$",
"typeString": "type(contract OVM_GasPriceOracle)"
}
},
"id": 17072,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "955:62:44",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_contract$_OVM_GasPriceOracle_$17036",
"typeString": "contract OVM_GasPriceOracle"
}
},
"src": "934:83:44",
"typeDescriptions": {
"typeIdentifier": "t_contract$_OVM_GasPriceOracle_$17036",
"typeString": "contract OVM_GasPriceOracle"
}
},
"id": 17074,
"nodeType": "ExpressionStatement",
"src": "934:83:44"
}
]
},
"id": 17076,
"implemented": true,
"kind": "constructor",
"modifiers": [
{
"arguments": [
{
"id": 17062,
"name": "_immutables",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 17054,
"src": "817:11:44",
"typeDescriptions": {
"typeIdentifier": "t_struct$_EvmImmutables_$10220_memory_ptr",
"typeString": "struct WitOracleBaseQueriable.EvmImmutables memory"
}
},
{
"id": 17063,
"name": "_registry",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 17057,
"src": "843:9:44",
"typeDescriptions": {
"typeIdentifier": "t_contract$_WitOracleRadonRegistry_$726",
"typeString": "contract WitOracleRadonRegistry"
}
}
],
"id": 17064,
"kind": "baseConstructorSpecifier",
"modifierName": {
"id": 17061,
"name": "WitOracleBaseQueriable",
"nameLocations": [
"780:22:44"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 11059,
"src": "780:22:44"
},
"nodeType": "ModifierInvocation",
"src": "780:83:44"
},
{
"arguments": [
{
"id": 17066,
"name": "_versionTag",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 17059,
"src": "905:11:44",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
}
],
"id": 17067,
"kind": "baseConstructorSpecifier",
"modifierName": {
"id": 17065,
"name": "WitOracleBaseQueriableTrustable",
"nameLocations": [
"873:31:44"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 12527,
"src": "873:31:44"
},
"nodeType": "ModifierInvocation",
"src": "873:44:44"
}
],
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 17060,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 17054,
"mutability": "mutable",
"name": "_immutables",
"nameLocation": "667:11:44",
"nodeType": "VariableDeclaration",
"scope": 17076,
"src": "646:32:44",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_struct$_EvmImmutables_$10220_memory_ptr",
"typeString": "struct WitOracleBaseQueriable.EvmImmutables"
},
"typeName": {
"id": 17053,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 17052,
"name": "EvmImmutables",
"nameLocations": [
"646:13:44"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 10220,
"src": "646:13:44"
},
"referencedDeclaration": 10220,
"src": "646:13:44",
"typeDescriptions": {
"typeIdentifier": "t_struct$_EvmImmutables_$10220_storage_ptr",
"typeString": "struct WitOracleBaseQueriable.EvmImmutables"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 17057,
"mutability": "mutable",
"name": "_registry",
"nameLocation": "716:9:44",
"nodeType": "VariableDeclaration",
"scope": 17076,
"src": "693:32:44",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_WitOracleRadonRegistry_$726",
"typeString": "contract WitOracleRadonRegistry"
},
"typeName": {
"id": 17056,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 17055,
"name": "WitOracleRadonRegistry",
"nameLocations": [
"693:22:44"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 726,
"src": "693:22:44"
},
"referencedDeclaration": 726,
"src": "693:22:44",
"typeDescriptions": {
"typeIdentifier": "t_contract$_WitOracleRadonRegistry_$726",
"typeString": "contract WitOracleRadonRegistry"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 17059,
"mutability": "mutable",
"name": "_versionTag",
"nameLocation": "748:11:44",
"nodeType": "VariableDeclaration",
"scope": 17076,
"src": "740:19:44",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 17058,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "740:7:44",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "631:139:44"
},
"returnParameters": {
"id": 17068,
"nodeType": "ParameterList",
"parameters": [],
"src": "923:0:44"
},
"scope": 17387,
"src": "620:405:44",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
},
{
"constant": false,
"id": 17079,
"mutability": "immutable",
"name": "__gasPriceOracleL1",
"nameLocation": "1071:18:44",
"nodeType": "VariableDeclaration",
"scope": 17387,
"src": "1033:56:44",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_OVM_GasPriceOracle_$17036",
"typeString": "contract OVM_GasPriceOracle"
},
"typeName": {
"id": 17078,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 17077,
"name": "OVM_GasPriceOracle",
"nameLocations": [
"1033:18:44"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 17036,
"src": "1033:18:44"
},
"referencedDeclaration": 1703