UNPKG

witnet-solidity-bridge

Version:

Witnet Solidity Bridge contracts for EVM-compatible chains

666 lines 27.3 kB
{ "contractName": "IWitRandomnessAdminV2", "abi": [ { "inputs": [], "name": "acceptOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "baseFeeOverheadPercentage", "outputs": [ { "internalType": "uint16", "name": "", "type": "uint16" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "pendingOwner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint16", "name": "", "type": "uint16" } ], "name": "settleBaseFeeOverheadPercentage", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "uint8", "name": "committeeSize", "type": "uint8" }, { "internalType": "uint64", "name": "witnessingFeeNanoWit", "type": "uint64" } ], "internalType": "struct IWitRandomnessLegacy.RandomizeQueryParams", "name": "", "type": "tuple" } ], "name": "settleWitnetQuerySLA", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"baseFeeOverheadPercentage\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"name\":\"settleBaseFeeOverheadPercentage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint8\",\"name\":\"committeeSize\",\"type\":\"uint8\"},{\"internalType\":\"uint64\",\"name\":\"witnessingFeeNanoWit\",\"type\":\"uint64\"}],\"internalType\":\"struct IWitRandomnessLegacy.RandomizeQueryParams\",\"name\":\"\",\"type\":\"tuple\"}],\"name\":\"settleWitnetQuerySLA\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/interfaces/legacy/IWitRandomnessAdminLegacy.sol\":\"IWitRandomnessAdminV2\"},\"evmVersion\":\"prague\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/WitOracle.sol\":{\"keccak256\":\"0x7f20eab15140df459753dfa8e406b826918b56ebe2c46456f9d04345c02629d1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e0573ce3d48200c71d8235a1a8c055b706420b2037bd21336f3c61713c3b8349\",\"dweb:/ipfs/QmY7BnVaNXFtJs1BFdeaa7dQfvUVoZyfwtv9HuToCxUUHU\"]},\"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/IWitOracleQueriableEvents.sol\":{\"keccak256\":\"0x47c283e931006d35bd2599524f86724e45eae6fad2fdd9cdecd1c85a90ff3f8c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3ad0520f99ec9298536ae9434f58caeb470c10dd3eaab1e4c7ed4cae9a97e2a2\",\"dweb:/ipfs/QmSuYCsSPweZfQc5Fbf9jYDdx4u7gwYCUdjhpcrrxmWZy6\"]},\"project:/contracts/interfaces/IWitOracleRadonRegistry.sol\":{\"keccak256\":\"0x437bbb89129311bd1cc8f6becd333df46109ec53b24d3159be942b225614071f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ef9bcdf4a73cb126885478c994821b7fe2b87d9221b767b4c9342b89b0d6550a\",\"dweb:/ipfs/QmXzZXPMxjSiFpcEnhg6CjLFNxGCpDZt22xpUh7VHxNTGd\"]},\"project:/contracts/interfaces/legacy/IWitRandomnessAdminLegacy.sol\":{\"keccak256\":\"0x81cef6f090e1c39dcdfbddd93180c0460f65c634d81790a9fedd13b133909378\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://48cfb528618fb713bd17aefa4bd13b0e491a5841419880fcd172ec5727491cc5\",\"dweb:/ipfs/Qmds5sQ8BNTNSHKydF6WPKy4evkPSX3uf36tnnDm7PEX1V\"]},\"project:/contracts/interfaces/legacy/IWitRandomnessLegacy.sol\":{\"keccak256\":\"0x6efed45a64d1440b6f855130d30c93d34ced38d9fcd390a15e27f33c347ae05d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://18de98643262a56af0c74897c856c426d8680fd144eb43d9e73e7e25d3185b3e\",\"dweb:/ipfs/QmcgfoVbVNVTgXfAEvztTczNw1t6YgxDaQrZi4ZXw4EA8N\"]},\"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/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\"]}},\"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 \"./IWitRandomnessLegacy.sol\";\r\n\r\ninterface IWitRandomnessAdminV2 {\r\n struct WitParams {\r\n uint16 minWitCommitteeSize;\r\n uint64 minWitInclusionFees;\r\n }\r\n function acceptOwnership() external;\r\n function baseFeeOverheadPercentage() external view returns (uint16);\r\n function owner() external view returns (address);\r\n function pendingOwner() external returns (address);\r\n function transferOwnership(address) external;\r\n function settleBaseFeeOverheadPercentage(uint16) external;\r\n function settleWitnetQuerySLA(IWitRandomnessLegacy.RandomizeQueryParams calldata) external;\r\n}", "sourcePath": "C:\\Users\\guill\\github\\guidiaz\\witnet-solidity-bridge\\contracts\\interfaces\\legacy\\IWitRandomnessAdminLegacy.sol", "ast": { "absolutePath": "project:/contracts/interfaces/legacy/IWitRandomnessAdminLegacy.sol", "exportedSymbols": { "Bech32": [ 31372 ], "IWitAppliance": [ 26514 ], "IWitOracle": [ 26581 ], "IWitOracleAppliance": [ 26593 ], "IWitOracleQueriable": [ 26795 ], "IWitOracleQueriableEvents": [ 26892 ], "IWitOracleRadonRegistry": [ 27394 ], "IWitRandomnessAdminV2": [ 29832 ], "IWitRandomnessLegacy": [ 29984 ], "Secp256k1": [ 32535 ], "WitOracle": [ 678 ], "Witnet": [ 40741 ], "WitnetBuffer": [ 42631 ], "WitnetCBOR": [ 44174 ] }, "id": 29833, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 29791, "literals": [ "solidity", ">=", "0.8", ".0", "<", "0.9", ".0" ], "nodeType": "PragmaDirective", "src": "35:31:108" }, { "absolutePath": "project:/contracts/interfaces/legacy/IWitRandomnessLegacy.sol", "file": "./IWitRandomnessLegacy.sol", "id": 29792, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 29833, "sourceUnit": 29985, "src": "70:36:108", "symbolAliases": [], "unitAlias": "" }, { "abstract": false, "baseContracts": [], "canonicalName": "IWitRandomnessAdminV2", "contractDependencies": [], "contractKind": "interface", "fullyImplemented": false, "id": 29832, "linearizedBaseContracts": [ 29832 ], "name": "IWitRandomnessAdminV2", "nameLocation": "120:21:108", "nodeType": "ContractDefinition", "nodes": [ { "canonicalName": "IWitRandomnessAdminV2.WitParams", "id": 29797, "members": [ { "constant": false, "id": 29794, "mutability": "mutable", "name": "minWitCommitteeSize", "nameLocation": "184:19:108", "nodeType": "VariableDeclaration", "scope": 29797, "src": "177:26:108", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint16", "typeString": "uint16" }, "typeName": { "id": 29793, "name": "uint16", "nodeType": "ElementaryTypeName", "src": "177:6:108", "typeDescriptions": { "typeIdentifier": "t_uint16", "typeString": "uint16" } }, "visibility": "internal" }, { "constant": false, "id": 29796, "mutability": "mutable", "name": "minWitInclusionFees", "nameLocation": "221:19:108", "nodeType": "VariableDeclaration", "scope": 29797, "src": "214:26:108", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint64", "typeString": "uint64" }, "typeName": { "id": 29795, "name": "uint64", "nodeType": "ElementaryTypeName", "src": "214:6:108", "typeDescriptions": { "typeIdentifier": "t_uint64", "typeString": "uint64" } }, "visibility": "internal" } ], "name": "WitParams", "nameLocation": "156:9:108", "nodeType": "StructDefinition", "scope": 29832, "src": "149:99:108", "visibility": "public" }, { "functionSelector": "79ba5097", "id": 29800, "implemented": false, "kind": "function", "modifiers": [], "name": "acceptOwnership", "nameLocation": "263:15:108", "nodeType": "FunctionDefinition", "parameters": { "id": 29798, "nodeType": "ParameterList", "parameters": [], "src": "278:2:108" }, "returnParameters": { "id": 29799, "nodeType": "ParameterList", "parameters": [], "src": "289:0:108" }, "scope": 29832, "src": "254:36:108", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "eb92b29b", "id": 29805, "implemented": false, "kind": "function", "modifiers": [], "name": "baseFeeOverheadPercentage", "nameLocation": "305:25:108", "nodeType": "FunctionDefinition", "parameters": { "id": 29801, "nodeType": "ParameterList", "parameters": [], "src": "330:2:108" }, "returnParameters": { "id": 29804, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 29803, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 29805, "src": "356:6:108", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint16", "typeString": "uint16" }, "typeName": { "id": 29802, "name": "uint16", "nodeType": "ElementaryTypeName", "src": "356:6:108", "typeDescriptions": { "typeIdentifier": "t_uint16", "typeString": "uint16" } }, "visibility": "internal" } ], "src": "355:8:108" }, "scope": 29832, "src": "296:68:108", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "8da5cb5b", "id": 29810, "implemented": false, "kind": "function", "modifiers": [], "name": "owner", "nameLocation": "379:5:108", "nodeType": "FunctionDefinition", "parameters": { "id": 29806, "nodeType": "ParameterList", "parameters": [], "src": "384:2:108" }, "returnParameters": { "id": 29809, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 29808, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 29810, "src": "410:7:108", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 29807, "name": "address", "nodeType": "ElementaryTypeName", "src": "410:7:108", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "409:9:108" }, "scope": 29832, "src": "370:49:108", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "e30c3978", "id": 29815, "implemented": false, "kind": "function", "modifiers": [], "name": "pendingOwner", "nameLocation": "434:12:108", "nodeType": "FunctionDefinition", "parameters": { "id": 29811, "nodeType": "ParameterList", "parameters": [], "src": "446:2:108" }, "returnParameters": { "id": 29814, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 29813, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 29815, "src": "467:7:108", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 29812, "name": "address", "nodeType": "ElementaryTypeName", "src": "467:7:108", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "466:9:108" }, "scope": 29832, "src": "425:51:108", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "f2fde38b", "id": 29820, "implemented": false, "kind": "function", "modifiers": [], "name": "transferOwnership", "nameLocation": "491:17:108", "nodeType": "FunctionDefinition", "parameters": { "id": 29818, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 29817, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 29820, "src": "509:7:108", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 29816, "name": "address", "nodeType": "ElementaryTypeName", "src": "509:7:108", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "508:9:108" }, "returnParameters": { "id": 29819, "nodeType": "ParameterList", "parameters": [], "src": "526:0:108" }, "scope": 29832, "src": "482:45:108", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "b8d38c96", "id": 29825, "implemented": false, "kind": "function", "modifiers": [], "name": "settleBaseFeeOverheadPercentage", "nameLocation": "542:31:108", "nodeType": "FunctionDefinition", "parameters": { "id": 29823, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 29822, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 29825, "src": "574:6:108", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint16", "typeString": "uint16" }, "typeName": { "id": 29821, "name": "uint16", "nodeType": "ElementaryTypeName", "src": "574:6:108", "typeDescriptions": { "typeIdentifier": "t_uint16", "typeString": "uint16" } }, "visibility": "internal" } ], "src": "573:8:108" }, "returnParameters": { "id": 29824, "nodeType": "ParameterList", "parameters": [], "src": "590:0:108" }, "scope": 29832, "src": "533:58:108", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "d2bc459b", "id": 29831, "implemented": false, "kind": "function", "modifiers": [], "name": "settleWitnetQuerySLA", "nameLocation": "606:20:108", "nodeType": "FunctionDefinition", "parameters": { "id": 29829, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 29828, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 29831, "src": "627:50:108", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_struct$_RandomizeQueryParams_$29865_calldata_ptr", "typeString": "struct IWitRandomnessLegacy.RandomizeQueryParams" }, "typeName": { "id": 29827, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 29826, "name": "IWitRandomnessLegacy.RandomizeQueryParams", "nameLocations": [ "627:20:108", "648:20:108" ], "nodeType": "IdentifierPath", "referencedDeclaration": 29865, "src": "627:41:108" }, "referencedDeclaration": 29865, "src": "627:41:108", "typeDescriptions": { "typeIdentifier": "t_struct$_RandomizeQueryParams_$29865_storage_ptr", "typeString": "struct IWitRandomnessLegacy.RandomizeQueryParams" } }, "visibility": "internal" } ], "src": "626:52:108" }, "returnParameters": { "id": 29830, "nodeType": "ParameterList", "parameters": [], "src": "687:0:108" }, "scope": 29832, "src": "597:91:108", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" } ], "scope": 29833, "src": "110:581:108", "usedErrors": [], "usedEvents": [] } ], "src": "35:656:108" }, "compiler": { "name": "solc", "version": "0.8.30+commit.73712a01.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.4.16", "updatedAt": "2025-10-15T14:34:45.939Z", "devdoc": { "kind": "dev", "methods": {}, "version": 1 }, "userdoc": { "kind": "user", "methods": {}, "version": 1 } }