UNPKG

witnet-solidity-bridge

Version:

Witnet Solidity Bridge contracts for EVM-compatible chains

159 lines 6.94 kB
{ "contractName": "IWitRandomnessTypes", "abi": [], "metadata": "{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/interfaces/IWitRandomnessTypes.sol\":\"IWitRandomnessTypes\"},\"evmVersion\":\"prague\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/interfaces/IWitRandomnessTypes.sol\":{\"keccak256\":\"0x52d825bf6bd6a2515116f993e939108f5412f5a05e304893ba81e9fcbfce4e09\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://60b3db141539544afc2701a873570a7b78639090e36b4bb7a57ae0d0dddeb9f4\",\"dweb:/ipfs/QmTWkwYdF4QMTeCFVcYNi9pWi3PwVeK29xgp946z8xtuiN\"]},\"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.17 <0.9.0;\r\n\r\nimport {Witnet} from \"../libs/Witnet.sol\";\r\n\r\ninterface IWitRandomnessTypes {\r\n /// Randomization status for some specified block number.\r\n enum RandomizeStatus {\r\n Void,\r\n Awaiting,\r\n Ready,\r\n Error,\r\n Finalizing\r\n }\r\n}\r\n", "sourcePath": "C:\\Users\\guill\\github\\guidiaz\\witnet-solidity-bridge\\contracts\\interfaces\\IWitRandomnessTypes.sol", "ast": { "absolutePath": "project:/contracts/interfaces/IWitRandomnessTypes.sol", "exportedSymbols": { "IWitRandomnessTypes": [ 28461 ], "Witnet": [ 40741 ] }, "id": 28462, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 28451, "literals": [ "solidity", ">=", "0.8", ".17", "<", "0.9", ".0" ], "nodeType": "PragmaDirective", "src": "35:32:89" }, { "absolutePath": "project:/contracts/libs/Witnet.sol", "file": "../libs/Witnet.sol", "id": 28453, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 28462, "sourceUnit": 40742, "src": "71:42:89", "symbolAliases": [ { "foreign": { "id": 28452, "name": "Witnet", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 40741, "src": "79:6:89", "typeDescriptions": {} }, "nameLocation": "-1:-1:-1" } ], "unitAlias": "" }, { "abstract": false, "baseContracts": [], "canonicalName": "IWitRandomnessTypes", "contractDependencies": [], "contractKind": "interface", "fullyImplemented": true, "id": 28461, "linearizedBaseContracts": [ 28461 ], "name": "IWitRandomnessTypes", "nameLocation": "127:19:89", "nodeType": "ContractDefinition", "nodes": [ { "canonicalName": "IWitRandomnessTypes.RandomizeStatus", "documentation": { "id": 28454, "nodeType": "StructuredDocumentation", "src": "154:57:89", "text": "Randomization status for some specified block number." }, "id": 28460, "members": [ { "id": 28455, "name": "Void", "nameLocation": "249:4:89", "nodeType": "EnumValue", "src": "249:4:89" }, { "id": 28456, "name": "Awaiting", "nameLocation": "264:8:89", "nodeType": "EnumValue", "src": "264:8:89" }, { "id": 28457, "name": "Ready", "nameLocation": "283:5:89", "nodeType": "EnumValue", "src": "283:5:89" }, { "id": 28458, "name": "Error", "nameLocation": "299:5:89", "nodeType": "EnumValue", "src": "299:5:89" }, { "id": 28459, "name": "Finalizing", "nameLocation": "315:10:89", "nodeType": "EnumValue", "src": "315:10:89" } ], "name": "RandomizeStatus", "nameLocation": "222:15:89", "nodeType": "EnumDefinition", "src": "217:115:89" } ], "scope": 28462, "src": "117:218:89", "usedErrors": [], "usedEvents": [] } ], "src": "35:302:89" }, "compiler": { "name": "solc", "version": "0.8.30+commit.73712a01.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.4.16", "updatedAt": "2025-10-15T14:34:45.919Z", "devdoc": { "kind": "dev", "methods": {}, "version": 1 }, "userdoc": { "kind": "user", "methods": {}, "version": 1 } }