UNPKG

jcc-solidity-utils

Version:
1,169 lines 38.8 kB
{ "contractName": "IJccMoacAlarm", "abi": [ { "anonymous": false, "inputs": [ { "indexed": true, "name": "contractAddr", "type": "address" }, { "indexed": true, "name": "_type", "type": "uint256" }, { "indexed": true, "name": "_begin", "type": "uint256" }, { "indexed": false, "name": "_peroid", "type": "uint256" } ], "name": "CreateAlarm", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "contractAddr", "type": "address" } ], "name": "RemoveAlarm", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "contractAddr", "type": "address" }, { "indexed": true, "name": "time", "type": "uint256" } ], "name": "Alarm", "type": "event" }, { "constant": false, "inputs": [ { "name": "_addr", "type": "address" }, { "name": "_type", "type": "uint256" }, { "name": "_begin", "type": "uint256" }, { "name": "_peroid", "type": "uint256" } ], "name": "createAlarm", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_addr", "type": "address" } ], "name": "removeAlarm", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" } ], "metadata": "", "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity >=0.4.24;\n\n/**\n * @dev 支持调用定时合约的接口,用来设置定时任务\n */\ninterface IJccMoacAlarm {\n event CreateAlarm(\n address indexed contractAddr,\n uint256 indexed _type,\n uint256 indexed _begin,\n uint256 _peroid\n );\n event RemoveAlarm(address indexed contractAddr);\n event Alarm(address indexed contractAddr, uint256 indexed time);\n\n function createAlarm(\n address _addr,\n uint256 _type,\n uint256 _begin,\n uint256 _peroid\n ) external returns (bool);\n\n function removeAlarm(address _addr) external returns (bool);\n}\n", "sourcePath": "/Users/chtian/Documents/01_work/01_develope/jcc/jcc-solidity-utils/contracts/interface/IJccMoacAlarm.sol", "ast": { "absolutePath": "/Users/chtian/Documents/01_work/01_develope/jcc/jcc-solidity-utils/contracts/interface/IJccMoacAlarm.sol", "exportedSymbols": { "IJccMoacAlarm": [ 1081 ] }, "id": 1082, "nodeType": "SourceUnit", "nodes": [ { "id": 1040, "literals": [ "solidity", ">=", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:25:7" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": "@dev 支持调用定时合约的接口,用来设置定时任务", "fullyImplemented": false, "id": 1081, "linearizedBaseContracts": [ 1081 ], "name": "IJccMoacAlarm", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "documentation": null, "id": 1050, "name": "CreateAlarm", "nodeType": "EventDefinition", "parameters": { "id": 1049, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1042, "indexed": true, "name": "contractAddr", "nodeType": "VariableDeclaration", "scope": 1050, "src": "155:28:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1041, "name": "address", "nodeType": "ElementaryTypeName", "src": "155:7:7", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1044, "indexed": true, "name": "_type", "nodeType": "VariableDeclaration", "scope": 1050, "src": "189:21:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1043, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "189:7:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1046, "indexed": true, "name": "_begin", "nodeType": "VariableDeclaration", "scope": 1050, "src": "216:22:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1045, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "216:7:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1048, "indexed": false, "name": "_peroid", "nodeType": "VariableDeclaration", "scope": 1050, "src": "244:15:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1047, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "244:7:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "149:114:7" }, "src": "132:132:7" }, { "anonymous": false, "documentation": null, "id": 1054, "name": "RemoveAlarm", "nodeType": "EventDefinition", "parameters": { "id": 1053, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1052, "indexed": true, "name": "contractAddr", "nodeType": "VariableDeclaration", "scope": 1054, "src": "285:28:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1051, "name": "address", "nodeType": "ElementaryTypeName", "src": "285:7:7", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "284:30:7" }, "src": "267:48:7" }, { "anonymous": false, "documentation": null, "id": 1060, "name": "Alarm", "nodeType": "EventDefinition", "parameters": { "id": 1059, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1056, "indexed": true, "name": "contractAddr", "nodeType": "VariableDeclaration", "scope": 1060, "src": "330:28:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1055, "name": "address", "nodeType": "ElementaryTypeName", "src": "330:7:7", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1058, "indexed": true, "name": "time", "nodeType": "VariableDeclaration", "scope": 1060, "src": "360:20:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1057, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "360:7:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "329:52:7" }, "src": "318:64:7" }, { "body": null, "documentation": null, "id": 1073, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "createAlarm", "nodeType": "FunctionDefinition", "parameters": { "id": 1069, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1062, "name": "_addr", "nodeType": "VariableDeclaration", "scope": 1073, "src": "412:13:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1061, "name": "address", "nodeType": "ElementaryTypeName", "src": "412:7:7", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1064, "name": "_type", "nodeType": "VariableDeclaration", "scope": 1073, "src": "431:13:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1063, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "431:7:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1066, "name": "_begin", "nodeType": "VariableDeclaration", "scope": 1073, "src": "450:14:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1065, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "450:7:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1068, "name": "_peroid", "nodeType": "VariableDeclaration", "scope": 1073, "src": "470:15:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1067, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "470:7:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "406:83:7" }, "payable": false, "returnParameters": { "id": 1072, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1071, "name": "", "nodeType": "VariableDeclaration", "scope": 1073, "src": "508:4:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 1070, "name": "bool", "nodeType": "ElementaryTypeName", "src": "508:4:7", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "507:6:7" }, "scope": 1081, "src": "386:128:7", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 1080, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "removeAlarm", "nodeType": "FunctionDefinition", "parameters": { "id": 1076, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1075, "name": "_addr", "nodeType": "VariableDeclaration", "scope": 1080, "src": "539:13:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1074, "name": "address", "nodeType": "ElementaryTypeName", "src": "539:7:7", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "538:15:7" }, "payable": false, "returnParameters": { "id": 1079, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1078, "name": "", "nodeType": "VariableDeclaration", "scope": 1080, "src": "572:4:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 1077, "name": "bool", "nodeType": "ElementaryTypeName", "src": "572:4:7", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "571:6:7" }, "scope": 1081, "src": "518:60:7", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" } ], "scope": 1082, "src": "104:476:7" } ], "src": "0:581:7" }, "legacyAST": { "absolutePath": "/Users/chtian/Documents/01_work/01_develope/jcc/jcc-solidity-utils/contracts/interface/IJccMoacAlarm.sol", "exportedSymbols": { "IJccMoacAlarm": [ 1081 ] }, "id": 1082, "nodeType": "SourceUnit", "nodes": [ { "id": 1040, "literals": [ "solidity", ">=", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:25:7" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": "@dev 支持调用定时合约的接口,用来设置定时任务", "fullyImplemented": false, "id": 1081, "linearizedBaseContracts": [ 1081 ], "name": "IJccMoacAlarm", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "documentation": null, "id": 1050, "name": "CreateAlarm", "nodeType": "EventDefinition", "parameters": { "id": 1049, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1042, "indexed": true, "name": "contractAddr", "nodeType": "VariableDeclaration", "scope": 1050, "src": "155:28:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1041, "name": "address", "nodeType": "ElementaryTypeName", "src": "155:7:7", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1044, "indexed": true, "name": "_type", "nodeType": "VariableDeclaration", "scope": 1050, "src": "189:21:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1043, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "189:7:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1046, "indexed": true, "name": "_begin", "nodeType": "VariableDeclaration", "scope": 1050, "src": "216:22:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1045, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "216:7:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1048, "indexed": false, "name": "_peroid", "nodeType": "VariableDeclaration", "scope": 1050, "src": "244:15:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1047, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "244:7:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "149:114:7" }, "src": "132:132:7" }, { "anonymous": false, "documentation": null, "id": 1054, "name": "RemoveAlarm", "nodeType": "EventDefinition", "parameters": { "id": 1053, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1052, "indexed": true, "name": "contractAddr", "nodeType": "VariableDeclaration", "scope": 1054, "src": "285:28:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1051, "name": "address", "nodeType": "ElementaryTypeName", "src": "285:7:7", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "284:30:7" }, "src": "267:48:7" }, { "anonymous": false, "documentation": null, "id": 1060, "name": "Alarm", "nodeType": "EventDefinition", "parameters": { "id": 1059, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1056, "indexed": true, "name": "contractAddr", "nodeType": "VariableDeclaration", "scope": 1060, "src": "330:28:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1055, "name": "address", "nodeType": "ElementaryTypeName", "src": "330:7:7", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1058, "indexed": true, "name": "time", "nodeType": "VariableDeclaration", "scope": 1060, "src": "360:20:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1057, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "360:7:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "329:52:7" }, "src": "318:64:7" }, { "body": null, "documentation": null, "id": 1073, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "createAlarm", "nodeType": "FunctionDefinition", "parameters": { "id": 1069, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1062, "name": "_addr", "nodeType": "VariableDeclaration", "scope": 1073, "src": "412:13:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1061, "name": "address", "nodeType": "ElementaryTypeName", "src": "412:7:7", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1064, "name": "_type", "nodeType": "VariableDeclaration", "scope": 1073, "src": "431:13:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1063, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "431:7:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1066, "name": "_begin", "nodeType": "VariableDeclaration", "scope": 1073, "src": "450:14:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1065, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "450:7:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1068, "name": "_peroid", "nodeType": "VariableDeclaration", "scope": 1073, "src": "470:15:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1067, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "470:7:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "406:83:7" }, "payable": false, "returnParameters": { "id": 1072, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1071, "name": "", "nodeType": "VariableDeclaration", "scope": 1073, "src": "508:4:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 1070, "name": "bool", "nodeType": "ElementaryTypeName", "src": "508:4:7", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "507:6:7" }, "scope": 1081, "src": "386:128:7", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 1080, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "removeAlarm", "nodeType": "FunctionDefinition", "parameters": { "id": 1076, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1075, "name": "_addr", "nodeType": "VariableDeclaration", "scope": 1080, "src": "539:13:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1074, "name": "address", "nodeType": "ElementaryTypeName", "src": "539:7:7", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "538:15:7" }, "payable": false, "returnParameters": { "id": 1079, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1078, "name": "", "nodeType": "VariableDeclaration", "scope": 1080, "src": "572:4:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 1077, "name": "bool", "nodeType": "ElementaryTypeName", "src": "572:4:7", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "571:6:7" }, "scope": 1081, "src": "518:60:7", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" } ], "scope": 1082, "src": "104:476:7" } ], "src": "0:581:7" }, "compiler": { "name": "solc", "version": "0.4.24+commit.e67f0147.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.0.16", "updatedAt": "2021-03-06T09:30:00.945Z", "devdoc": { "methods": {} }, "userdoc": { "methods": {} } }