jcc-solidity-utils
Version:
jcc solidity utils
388 lines • 11.9 kB
JSON
{
"contractName": "IUpgradeable",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "newAddress",
"type": "address"
},
{
"indexed": true,
"name": "oldAddress",
"type": "address"
}
],
"name": "Upgrade",
"type": "event"
},
{
"constant": false,
"inputs": [
{
"name": "newImpl",
"type": "address"
}
],
"name": "upgrade",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"metadata": "",
"bytecode": "0x",
"deployedBytecode": "0x",
"sourceMap": "",
"deployedSourceMap": "",
"source": "pragma solidity >=0.4.24;\n\n/**\n可升级合约接口定义\n */\ninterface IUpgradeable {\n function upgrade(address newImpl) external;\n\n event Upgrade(address indexed newAddress, address indexed oldAddress);\n}\n",
"sourcePath": "/Users/chtian/Documents/01_work/01_develope/jcc/jcc-solidity-utils/contracts/interface/IUpgradeable.sol",
"ast": {
"absolutePath": "/Users/chtian/Documents/01_work/01_develope/jcc/jcc-solidity-utils/contracts/interface/IUpgradeable.sol",
"exportedSymbols": {
"IUpgradeable": [
1307
]
},
"id": 1308,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1295,
"literals": [
"solidity",
">=",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:25:10"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": "可升级合约接口定义",
"fullyImplemented": false,
"id": 1307,
"linearizedBaseContracts": [
1307
],
"name": "IUpgradeable",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 1300,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "upgrade",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1298,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1297,
"name": "newImpl",
"nodeType": "VariableDeclaration",
"scope": 1300,
"src": "107:15:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1296,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "107:7:10",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "106:17:10"
},
"payable": false,
"returnParameters": {
"id": 1299,
"nodeType": "ParameterList",
"parameters": [],
"src": "132:0:10"
},
"scope": 1307,
"src": "90:43:10",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"anonymous": false,
"documentation": null,
"id": 1306,
"name": "Upgrade",
"nodeType": "EventDefinition",
"parameters": {
"id": 1305,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1302,
"indexed": true,
"name": "newAddress",
"nodeType": "VariableDeclaration",
"scope": 1306,
"src": "151:26:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1301,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "151:7:10",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1304,
"indexed": true,
"name": "oldAddress",
"nodeType": "VariableDeclaration",
"scope": 1306,
"src": "179:26:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1303,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "179:7:10",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "150:56:10"
},
"src": "137:70:10"
}
],
"scope": 1308,
"src": "63:146:10"
}
],
"src": "0:210:10"
},
"legacyAST": {
"absolutePath": "/Users/chtian/Documents/01_work/01_develope/jcc/jcc-solidity-utils/contracts/interface/IUpgradeable.sol",
"exportedSymbols": {
"IUpgradeable": [
1307
]
},
"id": 1308,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1295,
"literals": [
"solidity",
">=",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:25:10"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": "可升级合约接口定义",
"fullyImplemented": false,
"id": 1307,
"linearizedBaseContracts": [
1307
],
"name": "IUpgradeable",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 1300,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "upgrade",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1298,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1297,
"name": "newImpl",
"nodeType": "VariableDeclaration",
"scope": 1300,
"src": "107:15:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1296,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "107:7:10",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "106:17:10"
},
"payable": false,
"returnParameters": {
"id": 1299,
"nodeType": "ParameterList",
"parameters": [],
"src": "132:0:10"
},
"scope": 1307,
"src": "90:43:10",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"anonymous": false,
"documentation": null,
"id": 1306,
"name": "Upgrade",
"nodeType": "EventDefinition",
"parameters": {
"id": 1305,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1302,
"indexed": true,
"name": "newAddress",
"nodeType": "VariableDeclaration",
"scope": 1306,
"src": "151:26:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1301,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "151:7:10",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1304,
"indexed": true,
"name": "oldAddress",
"nodeType": "VariableDeclaration",
"scope": 1306,
"src": "179:26:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1303,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "179:7:10",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "150:56:10"
},
"src": "137:70:10"
}
],
"scope": 1308,
"src": "63:146:10"
}
],
"src": "0:210:10"
},
"compiler": {
"name": "solc",
"version": "0.4.24+commit.e67f0147.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.0.16",
"updatedAt": "2021-03-06T09:30:00.951Z",
"devdoc": {
"methods": {}
},
"userdoc": {
"methods": {}
}
}