becrypto/build/contracts/IMetaData.json
2023-12-27 14:21:00 +08:00

366 lines
12 KiB
JSON

{
"contractName": "IMetaData",
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "getMetaData",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.8.10+commit.fc410830\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getMetaData\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/interfaces/IMetaData.sol\":\"IMetaData\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/interfaces/IMetaData.sol\":{\"keccak256\":\"0x60a2ea09cbe9ba341f76bd69f5bfeae55efb109ffb2d805167c8d714991a9c08\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1a49c5c6d6f0547cccffe626530771cf5693c3300d082a8c8eb550c683d92e6c\",\"dweb:/ipfs/QmUJfLR4KYiphgXFhLecgNfKhRJYfpar4cF1D68vZs4gVX\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"immutableReferences": {},
"generatedSources": [],
"deployedGeneratedSources": [],
"sourceMap": "",
"deployedSourceMap": "",
"source": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.10;\n\ninterface IMetaData {\n function getMetaData(\n address token,\n uint256 tokenId\n ) external view returns (string memory);\n}\n",
"sourcePath": "/Users/zhl/Documents/workspace/crypto/becrypto/contracts/interfaces/IMetaData.sol",
"ast": {
"absolutePath": "project:/contracts/interfaces/IMetaData.sol",
"exportedSymbols": {
"IMetaData": [
11356
]
},
"id": 11357,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 11346,
"literals": [
"solidity",
"0.8",
".10"
],
"nodeType": "PragmaDirective",
"src": "32:23:53"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IMetaData",
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 11356,
"linearizedBaseContracts": [
11356
],
"name": "IMetaData",
"nameLocation": "67:9:53",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "f666196d",
"id": 11355,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getMetaData",
"nameLocation": "90:11:53",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 11351,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 11348,
"mutability": "mutable",
"name": "token",
"nameLocation": "115:5:53",
"nodeType": "VariableDeclaration",
"scope": 11355,
"src": "107:13:53",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 11347,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "107:7:53",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 11350,
"mutability": "mutable",
"name": "tokenId",
"nameLocation": "134:7:53",
"nodeType": "VariableDeclaration",
"scope": 11355,
"src": "126:15:53",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 11349,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "126:7:53",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "101:44:53"
},
"returnParameters": {
"id": 11354,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 11353,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 11355,
"src": "169:13:53",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 11352,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "169:6:53",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"src": "168:15:53"
},
"scope": 11356,
"src": "81:103:53",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 11357,
"src": "57:129:53",
"usedErrors": []
}
],
"src": "32:155:53"
},
"legacyAST": {
"absolutePath": "project:/contracts/interfaces/IMetaData.sol",
"exportedSymbols": {
"IMetaData": [
11356
]
},
"id": 11357,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 11346,
"literals": [
"solidity",
"0.8",
".10"
],
"nodeType": "PragmaDirective",
"src": "32:23:53"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IMetaData",
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 11356,
"linearizedBaseContracts": [
11356
],
"name": "IMetaData",
"nameLocation": "67:9:53",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "f666196d",
"id": 11355,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getMetaData",
"nameLocation": "90:11:53",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 11351,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 11348,
"mutability": "mutable",
"name": "token",
"nameLocation": "115:5:53",
"nodeType": "VariableDeclaration",
"scope": 11355,
"src": "107:13:53",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 11347,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "107:7:53",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 11350,
"mutability": "mutable",
"name": "tokenId",
"nameLocation": "134:7:53",
"nodeType": "VariableDeclaration",
"scope": 11355,
"src": "126:15:53",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 11349,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "126:7:53",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "101:44:53"
},
"returnParameters": {
"id": 11354,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 11353,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 11355,
"src": "169:13:53",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 11352,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "169:6:53",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"src": "168:15:53"
},
"scope": 11356,
"src": "81:103:53",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 11357,
"src": "57:129:53",
"usedErrors": []
}
],
"src": "32:155:53"
},
"compiler": {
"name": "solc",
"version": "0.8.10+commit.fc410830.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.4.4",
"updatedAt": "2023-12-01T09:03:16.566Z",
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}