UNPKG

witnet-solidity-bridge

Version:

Witnet Solidity Bridge contracts for EVM-compatible chains

655 lines 23.7 kB
{ "contractName": "IWitRandomnessAdmin", "abi": [ { "inputs": [], "name": "acceptOwnership", "outputs": [], "stateMutability": "nonpayable", "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": "consumer", "type": "address" }, { "internalType": "uint24", "name": "maxCallbackGasLimit", "type": "uint24" } ], "name": "settleConsumer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint24", "name": "callbackGasLimit", "type": "uint24" }, { "internalType": "uint16", "name": "extraFeePercentage", "type": "uint16" }, { "internalType": "uint16", "name": "minWitnesses", "type": "uint16" }, { "internalType": "uint64", "name": "minInclusionFees", "type": "uint64" } ], "name": "settleQueryParams", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint16", "name": "", "type": "uint16" } ], "name": "settleRandomizeWaitingBlocks", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "transferOwnership", "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\":\"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\":\"consumer\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"maxCallbackGasLimit\",\"type\":\"uint24\"}],\"name\":\"settleConsumer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint24\",\"name\":\"callbackGasLimit\",\"type\":\"uint24\"},{\"internalType\":\"uint16\",\"name\":\"extraFeePercentage\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"minWitnesses\",\"type\":\"uint16\"},{\"internalType\":\"uint64\",\"name\":\"minInclusionFees\",\"type\":\"uint64\"}],\"name\":\"settleQueryParams\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"name\":\"settleRandomizeWaitingBlocks\",\"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/IWitRandomnessAdmin.sol\":\"IWitRandomnessAdmin\"},\"evmVersion\":\"prague\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/interfaces/IWitRandomnessAdmin.sol\":{\"keccak256\":\"0xb5b9b2375509f03db5b1e198089f4b0cf4e4ebbd31a2a7b5d2480a743bebbcd2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0cade769eec375a3ec1cd4d376be54ee48a0e18786543f6ee396c0debfa4c04c\",\"dweb:/ipfs/QmY7AucsWp54PZVgMFjrJRt1n1DKCXb84ZXzTXnRZULYXF\"]}},\"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\ninterface IWitRandomnessAdmin {\r\n function acceptOwnership() external;\r\n function owner() external view returns (address);\r\n function pendingOwner() external returns (address);\r\n function settleConsumer(address consumer, uint24 maxCallbackGasLimit) external;\r\n function settleQueryParams(\r\n uint24 callbackGasLimit,\r\n uint16 extraFeePercentage, \r\n uint16 minWitnesses, \r\n uint64 minInclusionFees\r\n ) external;\r\n function settleRandomizeWaitingBlocks(uint16) external;\r\n function transferOwnership(address) external;\r\n}\r\n", "sourcePath": "C:\\Users\\guill\\github\\guidiaz\\witnet-solidity-bridge\\contracts\\interfaces\\IWitRandomnessAdmin.sol", "ast": { "absolutePath": "project:/contracts/interfaces/IWitRandomnessAdmin.sol", "exportedSymbols": { "IWitRandomnessAdmin": [ 28395 ] }, "id": 28396, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 28353, "literals": [ "solidity", ">=", "0.8", ".0", "<", "0.9", ".0" ], "nodeType": "PragmaDirective", "src": "35:31:86" }, { "abstract": false, "baseContracts": [], "canonicalName": "IWitRandomnessAdmin", "contractDependencies": [], "contractKind": "interface", "fullyImplemented": false, "id": 28395, "linearizedBaseContracts": [ 28395 ], "name": "IWitRandomnessAdmin", "nameLocation": "80:19:86", "nodeType": "ContractDefinition", "nodes": [ { "functionSelector": "79ba5097", "id": 28356, "implemented": false, "kind": "function", "modifiers": [], "name": "acceptOwnership", "nameLocation": "116:15:86", "nodeType": "FunctionDefinition", "parameters": { "id": 28354, "nodeType": "ParameterList", "parameters": [], "src": "131:2:86" }, "returnParameters": { "id": 28355, "nodeType": "ParameterList", "parameters": [], "src": "142:0:86" }, "scope": 28395, "src": "107:36:86", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "8da5cb5b", "id": 28361, "implemented": false, "kind": "function", "modifiers": [], "name": "owner", "nameLocation": "158:5:86", "nodeType": "FunctionDefinition", "parameters": { "id": 28357, "nodeType": "ParameterList", "parameters": [], "src": "163:2:86" }, "returnParameters": { "id": 28360, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 28359, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 28361, "src": "189:7:86", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 28358, "name": "address", "nodeType": "ElementaryTypeName", "src": "189:7:86", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "188:9:86" }, "scope": 28395, "src": "149:49:86", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "e30c3978", "id": 28366, "implemented": false, "kind": "function", "modifiers": [], "name": "pendingOwner", "nameLocation": "213:12:86", "nodeType": "FunctionDefinition", "parameters": { "id": 28362, "nodeType": "ParameterList", "parameters": [], "src": "225:2:86" }, "returnParameters": { "id": 28365, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 28364, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 28366, "src": "246:7:86", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 28363, "name": "address", "nodeType": "ElementaryTypeName", "src": "246:7:86", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "245:9:86" }, "scope": 28395, "src": "204:51:86", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "72587321", "id": 28373, "implemented": false, "kind": "function", "modifiers": [], "name": "settleConsumer", "nameLocation": "270:14:86", "nodeType": "FunctionDefinition", "parameters": { "id": 28371, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 28368, "mutability": "mutable", "name": "consumer", "nameLocation": "293:8:86", "nodeType": "VariableDeclaration", "scope": 28373, "src": "285:16:86", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 28367, "name": "address", "nodeType": "ElementaryTypeName", "src": "285:7:86", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 28370, "mutability": "mutable", "name": "maxCallbackGasLimit", "nameLocation": "310:19:86", "nodeType": "VariableDeclaration", "scope": 28373, "src": "303:26:86", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint24", "typeString": "uint24" }, "typeName": { "id": 28369, "name": "uint24", "nodeType": "ElementaryTypeName", "src": "303:6:86", "typeDescriptions": { "typeIdentifier": "t_uint24", "typeString": "uint24" } }, "visibility": "internal" } ], "src": "284:46:86" }, "returnParameters": { "id": 28372, "nodeType": "ParameterList", "parameters": [], "src": "339:0:86" }, "scope": 28395, "src": "261:79:86", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "cdd02a30", "id": 28384, "implemented": false, "kind": "function", "modifiers": [], "name": "settleQueryParams", "nameLocation": "355:17:86", "nodeType": "FunctionDefinition", "parameters": { "id": 28382, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 28375, "mutability": "mutable", "name": "callbackGasLimit", "nameLocation": "394:16:86", "nodeType": "VariableDeclaration", "scope": 28384, "src": "387:23:86", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint24", "typeString": "uint24" }, "typeName": { "id": 28374, "name": "uint24", "nodeType": "ElementaryTypeName", "src": "387:6:86", "typeDescriptions": { "typeIdentifier": "t_uint24", "typeString": "uint24" } }, "visibility": "internal" }, { "constant": false, "id": 28377, "mutability": "mutable", "name": "extraFeePercentage", "nameLocation": "432:18:86", "nodeType": "VariableDeclaration", "scope": 28384, "src": "425:25:86", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint16", "typeString": "uint16" }, "typeName": { "id": 28376, "name": "uint16", "nodeType": "ElementaryTypeName", "src": "425:6:86", "typeDescriptions": { "typeIdentifier": "t_uint16", "typeString": "uint16" } }, "visibility": "internal" }, { "constant": false, "id": 28379, "mutability": "mutable", "name": "minWitnesses", "nameLocation": "473:12:86", "nodeType": "VariableDeclaration", "scope": 28384, "src": "466:19:86", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint16", "typeString": "uint16" }, "typeName": { "id": 28378, "name": "uint16", "nodeType": "ElementaryTypeName", "src": "466:6:86", "typeDescriptions": { "typeIdentifier": "t_uint16", "typeString": "uint16" } }, "visibility": "internal" }, { "constant": false, "id": 28381, "mutability": "mutable", "name": "minInclusionFees", "nameLocation": "508:16:86", "nodeType": "VariableDeclaration", "scope": 28384, "src": "501:23:86", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint64", "typeString": "uint64" }, "typeName": { "id": 28380, "name": "uint64", "nodeType": "ElementaryTypeName", "src": "501:6:86", "typeDescriptions": { "typeIdentifier": "t_uint64", "typeString": "uint64" } }, "visibility": "internal" } ], "src": "372:163:86" }, "returnParameters": { "id": 28383, "nodeType": "ParameterList", "parameters": [], "src": "544:0:86" }, "scope": 28395, "src": "346:199:86", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "1ab79a37", "id": 28389, "implemented": false, "kind": "function", "modifiers": [], "name": "settleRandomizeWaitingBlocks", "nameLocation": "560:28:86", "nodeType": "FunctionDefinition", "parameters": { "id": 28387, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 28386, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 28389, "src": "589:6:86", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint16", "typeString": "uint16" }, "typeName": { "id": 28385, "name": "uint16", "nodeType": "ElementaryTypeName", "src": "589:6:86", "typeDescriptions": { "typeIdentifier": "t_uint16", "typeString": "uint16" } }, "visibility": "internal" } ], "src": "588:8:86" }, "returnParameters": { "id": 28388, "nodeType": "ParameterList", "parameters": [], "src": "605:0:86" }, "scope": 28395, "src": "551:55:86", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "f2fde38b", "id": 28394, "implemented": false, "kind": "function", "modifiers": [], "name": "transferOwnership", "nameLocation": "621:17:86", "nodeType": "FunctionDefinition", "parameters": { "id": 28392, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 28391, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 28394, "src": "639:7:86", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 28390, "name": "address", "nodeType": "ElementaryTypeName", "src": "639:7:86", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "638:9:86" }, "returnParameters": { "id": 28393, "nodeType": "ParameterList", "parameters": [], "src": "656:0:86" }, "scope": 28395, "src": "612:45:86", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" } ], "scope": 28396, "src": "70:590:86", "usedErrors": [], "usedEvents": [] } ], "src": "35:627:86" }, "compiler": { "name": "solc", "version": "0.8.30+commit.73712a01.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.4.16", "updatedAt": "2025-10-15T14:34:45.917Z", "devdoc": { "kind": "dev", "methods": {}, "version": 1 }, "userdoc": { "kind": "user", "methods": {}, "version": 1 } }