solidity-cron
Version:
[](https://travis-ci.com/Frontier-project/cron) [ public {\n for (uint i = 0; i < accounts.length; i++){\n _mint(accounts[i],initialBalance);\n }\n }\n}",
"sourcePath": "/Users/carlosbuendia/Documents/Projects/consensys/Frontier/cron/contracts/examples/PeriodicToken.sol",
"ast": {
"absolutePath": "/Users/carlosbuendia/Documents/Projects/consensys/Frontier/cron/contracts/examples/PeriodicToken.sol",
"exportedSymbols": {
"Standard20TokenMock": [
910
]
},
"id": 911,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 877,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:6"
},
{
"absolutePath": "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol",
"file": "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol",
"id": 878,
"nodeType": "ImportDirective",
"scope": 911,
"sourceUnit": 1730,
"src": "26:63:6",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 879,
"name": "ERC20",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 1729,
"src": "123:5:6",
"typeDescriptions": {
"typeIdentifier": "t_contract$_ERC20_$1729",
"typeString": "contract ERC20"
}
},
"id": 880,
"nodeType": "InheritanceSpecifier",
"src": "123:5:6"
}
],
"contractDependencies": [
1729,
1798
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 910,
"linearizedBaseContracts": [
910,
1729,
1798
],
"name": "Standard20TokenMock",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 908,
"nodeType": "Block",
"src": "199:116:6",
"statements": [
{
"body": {
"id": 906,
"nodeType": "Block",
"src": "251:58:6",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 900,
"name": "accounts",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 883,
"src": "271:8:6",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_memory_ptr",
"typeString": "address[] memory"
}
},
"id": 902,
"indexExpression": {
"argumentTypes": null,
"id": 901,
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 889,
"src": "280:1:6",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "271:11:6",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 903,
"name": "initialBalance",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 885,
"src": "283:14:6",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 899,
"name": "_mint",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1639,
"src": "265:5:6",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",
"typeString": "function (address,uint256)"
}
},
"id": 904,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "265:33:6",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 905,
"nodeType": "ExpressionStatement",
"src": "265:33:6"
}
]
},
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 895,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 892,
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 889,
"src": "226:1:6",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "<",
"rightExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 893,
"name": "accounts",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 883,
"src": "230:8:6",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_memory_ptr",
"typeString": "address[] memory"
}
},
"id": 894,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "length",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "230:15:6",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "226:19:6",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 907,
"initializationExpression": {
"assignments": [
889
],
"declarations": [
{
"constant": false,
"id": 889,
"name": "i",
"nodeType": "VariableDeclaration",
"scope": 909,
"src": "214:6:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 888,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "214:4:6",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 891,
"initialValue": {
"argumentTypes": null,
"hexValue": "30",
"id": 890,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "223:1:6",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"nodeType": "VariableDeclarationStatement",
"src": "214:10:6"
},
"loopExpression": {
"expression": {
"argumentTypes": null,
"id": 897,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "++",
"prefix": false,
"src": "247:3:6",
"subExpression": {
"argumentTypes": null,
"id": 896,
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 889,
"src": "247:1:6",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 898,
"nodeType": "ExpressionStatement",
"src": "247:3:6"
},
"nodeType": "ForStatement",
"src": "209:100:6"
}
]
},
"documentation": null,
"id": 909,
"implemented": true,
"isConstructor": true,
"isDeclaredConst": false,
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 886,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 883,
"name": "accounts",
"nodeType": "VariableDeclaration",
"scope": 909,
"src": "148:18:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_memory_ptr",
"typeString": "address[]"
},
"typeName": {
"baseType": {
"id": 881,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "148:7:6",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 882,
"length": null,
"nodeType": "ArrayTypeName",
"src": "148:9:6",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
"typeString": "address[]"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 885,
"name": "initialBalance",
"nodeType": "VariableDeclaration",
"scope": 909,
"src": "168:22:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 884,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "168:7:6",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "147:44:6"
},
"payable": false,
"returnParameters": {
"id": 887,
"nodeType": "ParameterList",
"parameters": [],
"src": "199:0:6"
},
"scope": 910,
"src": "136:179:6",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 911,
"src": "91:226:6"
}
],
"src": "0:317:6"
},
"legacyAST": {
"absolutePath": "/Users/carlosbuendia/Documents/Projects/consensys/Frontier/cron/contracts/examples/PeriodicToken.sol",
"exportedSymbols": {
"Standard20TokenMock": [
910
]
},
"id": 911,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 877,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:6"
},
{
"absolutePath": "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol",
"file": "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol",
"id": 878,
"nodeType": "ImportDirective",
"scope": 911,
"sourceUnit": 1730,
"src": "26:63:6",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 879,
"name": "ERC20",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 1729,
"src": "123:5:6",
"typeDescriptions": {
"typeIdentifier": "t_contract$_ERC20_$1729",
"typeString": "contract ERC20"
}
},
"id": 880,
"nodeType": "InheritanceSpecifier",
"src": "123:5:6"
}
],
"contractDependencies": [
1729,
1798
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 910,
"linearizedBaseContracts": [
910,
1729,
1798
],
"name": "Standard20TokenMock",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 908,
"nodeType": "Block",
"src": "199:116:6",
"statements": [
{
"body": {
"id": 906,
"nodeType": "Block",
"src": "251:58:6",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 900,
"name": "accounts",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 883,
"src": "271:8:6",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_memory_ptr",
"typeString": "address[] memory"
}
},
"id": 902,
"indexExpression": {
"argumentTypes": null,
"id": 901,
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 889,
"src": "280:1:6",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "271:11:6",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 903,
"name": "initialBalance",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 885,
"src": "283:14:6",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 899,
"name": "_mint",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1639,
"src": "265:5:6",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",
"typeString": "function (address,uint256)"
}
},
"id": 904,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "265:33:6",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 905,
"nodeType": "ExpressionStatement",
"src": "265:33:6"
}
]
},
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 895,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 892,
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 889,
"src": "226:1:6",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "<",
"rightExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 893,
"name": "accounts",
"nodeType": "Identifier",
"overloadedDeclarations