witnet-solidity-bridge
Version:
Witnet Solidity Bridge contracts for EVM-compatible chains
573 lines • 21.3 kB
JSON
{
"contractName": "IWitnetRandomnessAdmin",
"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 WitnetV2.RadonSLA",
"name": "",
"type": "tuple"
}
],
"name": "settleWitnetQuerySLA",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.8.25+commit.b61c2a91\"},\"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 WitnetV2.RadonSLA\",\"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/IWitnetRandomnessAdmin.sol\":\"IWitnetRandomnessAdmin\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/interfaces/IWitnetRandomnessAdmin.sol\":{\"keccak256\":\"0x496cd3d89fb8bb44dc627da202372fab60a5422b12d00fe97582a8fa1e6fd856\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://99f15e8dc494e45e3a9540f3c8ca1d996faed9ae1de3d931d5e7acd87ca15adc\",\"dweb:/ipfs/QmYEQx7KtDRiUzUDfLRm1WnguF6LkiYtLVq6nkRg9CraS4\"]},\"project:/contracts/libs/Witnet.sol\":{\"keccak256\":\"0x65a87375dd79d63a83fb454b7199b6c999bd59c50b3b59d521c5c4d45a7d3cc3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ca865b681d810c2fc5c3672ea6343c3bdf6fd71764ab824d25994744dc85866b\",\"dweb:/ipfs/QmPGcP3xGTNZfsQ9GSKdujNLRVs8dWDdubyUko1rbQqJNv\"]},\"project:/contracts/libs/WitnetBuffer.sol\":{\"keccak256\":\"0xa14570492eb5a313ddbacae0185c850ec99c67211eb33989a5e21d31bf06a150\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e83c11edb49cab6a767c0b685825bc22ece0d3d2897e0d54fe1923df5cc76ba5\",\"dweb:/ipfs/QmdLDgCc3tnKbgRrXwfNzsg6uUDirNmjvBB8V3iMmnD69a\"]},\"project:/contracts/libs/WitnetCBOR.sol\":{\"keccak256\":\"0xb346547ff731163beea2c657c52675cdf7936691d566a76a045577cf9c34ade0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6d4b5b6424a033584b41f1204d635db98fda9ca9bd2a614c9d82539a3e4e6529\",\"dweb:/ipfs/QmW6Qy3wWpzHSECYaCPaf9LWGfPqWDKVoP2kPSNNQu7LMQ\"]},\"project:/contracts/libs/WitnetV2.sol\":{\"keccak256\":\"0xb276a6da373bfbe9cd942dd7e59979cda898215d1e36ab3df95a6d6cc6ff770f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://bc4890876b9bc64f501ccdd48408bb63724865cb2ce8d2057f6b318540adce7c\",\"dweb:/ipfs/QmPMHPdbCsKBavhiLcaDgQ9EjNSvwwzv8TKffotcCv1ctP\"]}},\"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 \"../libs/WitnetV2.sol\";\r\n\r\ninterface IWitnetRandomnessAdmin {\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(WitnetV2.RadonSLA calldata) external;\r\n}",
"sourcePath": "C:\\Users\\guill\\github\\witnet\\witnet-solidity-bridge\\contracts\\interfaces\\IWitnetRandomnessAdmin.sol",
"ast": {
"absolutePath": "project:/contracts/interfaces/IWitnetRandomnessAdmin.sol",
"exportedSymbols": {
"IWitnetRandomnessAdmin": [
13677
],
"Witnet": [
17557
],
"WitnetBuffer": [
19191
],
"WitnetCBOR": [
20734
],
"WitnetV2": [
23640
]
},
"id": 13678,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 13641,
"literals": [
"solidity",
">=",
"0.8",
".0",
"<",
"0.9",
".0"
],
"nodeType": "PragmaDirective",
"src": "35:31:56"
},
{
"absolutePath": "project:/contracts/libs/WitnetV2.sol",
"file": "../libs/WitnetV2.sol",
"id": 13642,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 13678,
"sourceUnit": 23641,
"src": "70:30:56",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IWitnetRandomnessAdmin",
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 13677,
"linearizedBaseContracts": [
13677
],
"name": "IWitnetRandomnessAdmin",
"nameLocation": "114:22:56",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "79ba5097",
"id": 13645,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "acceptOwnership",
"nameLocation": "153:15:56",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 13643,
"nodeType": "ParameterList",
"parameters": [],
"src": "168:2:56"
},
"returnParameters": {
"id": 13644,
"nodeType": "ParameterList",
"parameters": [],
"src": "179:0:56"
},
"scope": 13677,
"src": "144:36:56",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "eb92b29b",
"id": 13650,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "baseFeeOverheadPercentage",
"nameLocation": "195:25:56",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 13646,
"nodeType": "ParameterList",
"parameters": [],
"src": "220:2:56"
},
"returnParameters": {
"id": 13649,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13648,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 13650,
"src": "246:6:56",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 13647,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "246:6:56",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
}
],
"src": "245:8:56"
},
"scope": 13677,
"src": "186:68:56",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "8da5cb5b",
"id": 13655,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "owner",
"nameLocation": "269:5:56",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 13651,
"nodeType": "ParameterList",
"parameters": [],
"src": "274:2:56"
},
"returnParameters": {
"id": 13654,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13653,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 13655,
"src": "300:7:56",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 13652,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "300:7:56",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "299:9:56"
},
"scope": 13677,
"src": "260:49:56",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "e30c3978",
"id": 13660,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "pendingOwner",
"nameLocation": "324:12:56",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 13656,
"nodeType": "ParameterList",
"parameters": [],
"src": "336:2:56"
},
"returnParameters": {
"id": 13659,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13658,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 13660,
"src": "357:7:56",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 13657,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "357:7:56",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "356:9:56"
},
"scope": 13677,
"src": "315:51:56",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "f2fde38b",
"id": 13665,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transferOwnership",
"nameLocation": "381:17:56",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 13663,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13662,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 13665,
"src": "399:7:56",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 13661,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "399:7:56",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "398:9:56"
},
"returnParameters": {
"id": 13664,
"nodeType": "ParameterList",
"parameters": [],
"src": "416:0:56"
},
"scope": 13677,
"src": "372:45:56",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "b8d38c96",
"id": 13670,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "settleBaseFeeOverheadPercentage",
"nameLocation": "432:31:56",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 13668,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13667,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 13670,
"src": "464:6:56",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 13666,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "464:6:56",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
}
],
"src": "463:8:56"
},
"returnParameters": {
"id": 13669,
"nodeType": "ParameterList",
"parameters": [],
"src": "480:0:56"
},
"scope": 13677,
"src": "423:58:56",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "d2bc459b",
"id": 13676,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "settleWitnetQuerySLA",
"nameLocation": "496:20:56",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 13674,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13673,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 13676,
"src": "517:26:56",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_struct$_RadonSLA_$23503_calldata_ptr",
"typeString": "struct WitnetV2.RadonSLA"
},
"typeName": {
"id": 13672,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 13671,
"name": "WitnetV2.RadonSLA",
"nameLocations": [
"517:8:56",
"526:8:56"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 23503,
"src": "517:17:56"
},
"referencedDeclaration": 23503,
"src": "517:17:56",
"typeDescriptions": {
"typeIdentifier": "t_struct$_RadonSLA_$23503_storage_ptr",
"typeString": "struct WitnetV2.RadonSLA"
}
},
"visibility": "internal"
}
],
"src": "516:28:56"
},
"returnParameters": {
"id": 13675,
"nodeType": "ParameterList",
"parameters": [],
"src": "553:0:56"
},
"scope": 13677,
"src": "487:67:56",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 13678,
"src": "104:453:56",
"usedErrors": [],
"usedEvents": []
}
],
"src": "35:522:56"
},
"compiler": {
"name": "solc",
"version": "0.8.25+commit.b61c2a91.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.4.16",
"updatedAt": "2024-12-05T09:36:04.511Z",
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}