Cipher-Zero/contracts/cipherzero/interfaces/artifacts/build-info/ef22ac9b1ed86ac513a6a7537020e71c.json
2024-09-01 23:29:11 +03:00

323 lines
9.2 KiB
JSON

{
"id": "ef22ac9b1ed86ac513a6a7537020e71c",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.26",
"solcLongVersion": "0.8.26+commit.8a97fa7a",
"input": {
"language": "Solidity",
"sources": {
"contracts/cipherzero/interfaces/IBitTorrent.sol": {
"content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.26;\n\ninterface IBitTorrent {\n function uploadFile(string calldata fileHash) external;\n function getFiles(address user) external view returns (string[] memory);\n}\n"
}
},
"settings": {
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"": [
"ast"
],
"*": [
"abi",
"metadata",
"devdoc",
"userdoc",
"storageLayout",
"evm.legacyAssembly",
"evm.bytecode",
"evm.deployedBytecode",
"evm.methodIdentifiers",
"evm.gasEstimates",
"evm.assembly"
]
}
},
"remappings": []
}
},
"output": {
"contracts": {
"contracts/cipherzero/interfaces/IBitTorrent.sol": {
"IBitTorrent": {
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "getFiles",
"outputs": [
{
"internalType": "string[]",
"name": "",
"type": "string[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "fileHash",
"type": "string"
}
],
"name": "uploadFile",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"evm": {
"assembly": "",
"bytecode": {
"functionDebugData": {},
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"functionDebugData": {},
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"gasEstimates": null,
"legacyAssembly": null,
"methodIdentifiers": {
"getFiles(address)": "433bf37b",
"uploadFile(string)": "e37ffc30"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"getFiles\",\"outputs\":[{\"internalType\":\"string[]\",\"name\":\"\",\"type\":\"string[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"fileHash\",\"type\":\"string\"}],\"name\":\"uploadFile\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/cipherzero/interfaces/IBitTorrent.sol\":\"IBitTorrent\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/cipherzero/interfaces/IBitTorrent.sol\":{\"keccak256\":\"0x05a427c9f86fa86d7cccb9a447cd9fb86382ed84fa354e2995da79e9940e1562\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e13d14cfd062d2f7a4dc2bff24bb1c7045139909e0078b80074ef81ef5b223cf\",\"dweb:/ipfs/QmR99Fs2FAGZzMnQjek7deYAgnnZNav1CP185p5qPayrwX\"]}},\"version\":1}",
"storageLayout": {
"storage": [],
"types": null
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}
}
},
"sources": {
"contracts/cipherzero/interfaces/IBitTorrent.sol": {
"ast": {
"absolutePath": "contracts/cipherzero/interfaces/IBitTorrent.sol",
"exportedSymbols": {
"IBitTorrent": [
15
]
},
"id": 16,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1,
"literals": [
"solidity",
"^",
"0.8",
".26"
],
"nodeType": "PragmaDirective",
"src": "32:24:0"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IBitTorrent",
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 15,
"linearizedBaseContracts": [
15
],
"name": "IBitTorrent",
"nameLocation": "68:11:0",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "e37ffc30",
"id": 6,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "uploadFile",
"nameLocation": "95:10:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3,
"mutability": "mutable",
"name": "fileHash",
"nameLocation": "122:8:0",
"nodeType": "VariableDeclaration",
"scope": 6,
"src": "106:24:0",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_string_calldata_ptr",
"typeString": "string"
},
"typeName": {
"id": 2,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "106:6:0",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"src": "105:26:0"
},
"returnParameters": {
"id": 5,
"nodeType": "ParameterList",
"parameters": [],
"src": "140:0:0"
},
"scope": 15,
"src": "86:55:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "433bf37b",
"id": 14,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getFiles",
"nameLocation": "155:8:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 9,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 8,
"mutability": "mutable",
"name": "user",
"nameLocation": "172:4:0",
"nodeType": "VariableDeclaration",
"scope": 14,
"src": "164:12:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 7,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "164:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "163:14:0"
},
"returnParameters": {
"id": 13,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 12,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 14,
"src": "201:15:0",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr",
"typeString": "string[]"
},
"typeName": {
"baseType": {
"id": 10,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "201:6:0",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"id": 11,
"nodeType": "ArrayTypeName",
"src": "201:8:0",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr",
"typeString": "string[]"
}
},
"visibility": "internal"
}
],
"src": "200:17:0"
},
"scope": 15,
"src": "146:72:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 16,
"src": "58:162:0",
"usedErrors": [],
"usedEvents": []
}
],
"src": "32:189:0"
},
"id": 0
}
}
}
}