345 lines
9.8 KiB
JSON
345 lines
9.8 KiB
JSON
{
|
|
"id": "656afe7208fb9a455c6034bdc0c2e907",
|
|
"_format": "hh-sol-build-info-1",
|
|
"solcVersion": "0.8.20",
|
|
"solcLongVersion": "0.8.20+commit.a1b79de6",
|
|
"input": {
|
|
"language": "Solidity",
|
|
"sources": {
|
|
"contracts/shareable/Storage.sol": {
|
|
"content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\n\ninterface IStorage {\n function storeFile(bytes32 fileHash, string calldata fileUri) external;\n function retrieveFile(bytes32 fileHash) external view returns (string memory fileUri);\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/shareable/Storage.sol": {
|
|
"IStorage": {
|
|
"abi": [
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "fileHash",
|
|
"type": "bytes32"
|
|
}
|
|
],
|
|
"name": "retrieveFile",
|
|
"outputs": [
|
|
{
|
|
"internalType": "string",
|
|
"name": "fileUri",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "fileHash",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"internalType": "string",
|
|
"name": "fileUri",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"name": "storeFile",
|
|
"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": {
|
|
"retrieveFile(bytes32)": "87ebbf67",
|
|
"storeFile(bytes32,string)": "cf4e72c6"
|
|
}
|
|
},
|
|
"metadata": "{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"fileHash\",\"type\":\"bytes32\"}],\"name\":\"retrieveFile\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"fileUri\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"fileHash\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"fileUri\",\"type\":\"string\"}],\"name\":\"storeFile\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/shareable/Storage.sol\":\"IStorage\"},\"evmVersion\":\"shanghai\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/shareable/Storage.sol\":{\"keccak256\":\"0x82187a2c9acd3a25628c840ed78de7ec45092ef9f9ef076114fbbd22f66c83aa\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://330731ebcde699e926e864cbbab7b348c524f8d6596810f9e77fc19b10ed8ae2\",\"dweb:/ipfs/QmW1ZhwAmBEp5NYLbE6WL8s1okJfMjH84q3apG5MkfXmHJ\"]}},\"version\":1}",
|
|
"storageLayout": {
|
|
"storage": [],
|
|
"types": null
|
|
},
|
|
"userdoc": {
|
|
"kind": "user",
|
|
"methods": {},
|
|
"version": 1
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"sources": {
|
|
"contracts/shareable/Storage.sol": {
|
|
"ast": {
|
|
"absolutePath": "contracts/shareable/Storage.sol",
|
|
"exportedSymbols": {
|
|
"IStorage": [
|
|
16
|
|
]
|
|
},
|
|
"id": 17,
|
|
"license": "MIT",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 1,
|
|
"literals": [
|
|
"solidity",
|
|
"^",
|
|
"0.8",
|
|
".20"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "32:24:0"
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"canonicalName": "IStorage",
|
|
"contractDependencies": [],
|
|
"contractKind": "interface",
|
|
"fullyImplemented": false,
|
|
"id": 16,
|
|
"linearizedBaseContracts": [
|
|
16
|
|
],
|
|
"name": "IStorage",
|
|
"nameLocation": "69:8:0",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"functionSelector": "cf4e72c6",
|
|
"id": 8,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "storeFile",
|
|
"nameLocation": "93:9:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 6,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 3,
|
|
"mutability": "mutable",
|
|
"name": "fileHash",
|
|
"nameLocation": "111:8:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 8,
|
|
"src": "103:16:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
"typeName": {
|
|
"id": 2,
|
|
"name": "bytes32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "103:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 5,
|
|
"mutability": "mutable",
|
|
"name": "fileUri",
|
|
"nameLocation": "137:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 8,
|
|
"src": "121:23:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_calldata_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 4,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "121:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "102:43:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 7,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "154:0:0"
|
|
},
|
|
"scope": 16,
|
|
"src": "84:71:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "87ebbf67",
|
|
"id": 15,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "retrieveFile",
|
|
"nameLocation": "169:12:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 11,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 10,
|
|
"mutability": "mutable",
|
|
"name": "fileHash",
|
|
"nameLocation": "190:8:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 15,
|
|
"src": "182:16:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
},
|
|
"typeName": {
|
|
"id": 9,
|
|
"name": "bytes32",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "182:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes32",
|
|
"typeString": "bytes32"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "181:18:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 14,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 13,
|
|
"mutability": "mutable",
|
|
"name": "fileUri",
|
|
"nameLocation": "237:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 15,
|
|
"src": "223:21:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_memory_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 12,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "223:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "222:23:0"
|
|
},
|
|
"scope": 16,
|
|
"src": "160:86:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
}
|
|
],
|
|
"scope": 17,
|
|
"src": "59:189:0",
|
|
"usedErrors": [],
|
|
"usedEvents": []
|
|
}
|
|
],
|
|
"src": "32:217:0"
|
|
},
|
|
"id": 0
|
|
}
|
|
}
|
|
}
|
|
} |