From afa81fb86378633af714c6720ff764bf92f7c01b Mon Sep 17 00:00:00 2001 From: Ahmed Ali Date: Thu, 1 Oct 2020 17:18:40 +0200 Subject: [PATCH] prepare for a new release --- artifacts/BConst.json | 2 +- artifacts/BFactory.json | 74 +- artifacts/BMath.json | 2 +- artifacts/BNum.json | 110 +- artifacts/BPool.json | 1302 ++--- artifacts/BToken.json | 230 +- artifacts/BTokenBase.json | 230 +- artifacts/Context.json | 166 +- artifacts/DTFactory.json | 82 +- artifacts/DataTokenTemplate.json | 4625 +++++++++-------- artifacts/Deployer.json | 170 +- artifacts/ERC20.json | 2462 ++++----- artifacts/FixedRateExchange.json | 222 +- artifacts/IERC20.json | 402 +- artifacts/IERC20Template.json | 2 +- artifacts/Metadata.json | 26 +- artifacts/Migrations.json | 10 +- artifacts/OPFCommunityFeeCollector.json | 102 +- artifacts/Ownable.json | 690 +-- artifacts/SafeMath.json | 1198 ++--- artifacts/address.json | 1 - docs/contracts/templates/DataTokenTemplate.md | 4 +- 22 files changed, 6118 insertions(+), 5994 deletions(-) delete mode 100644 artifacts/address.json diff --git a/artifacts/BConst.json b/artifacts/BConst.json index 9e9062b35..985e7ec38 100644 --- a/artifacts/BConst.json +++ b/artifacts/BConst.json @@ -2837,7 +2837,7 @@ }, "networks": {}, "schemaVersion": "3.2.4", - "updatedAt": "2020-10-01T09:28:54.407Z", + "updatedAt": "2020-10-01T15:18:05.044Z", "devdoc": { "methods": {} }, diff --git a/artifacts/BFactory.json b/artifacts/BFactory.json index 4a1053790..99e1de4e4 100644 --- a/artifacts/BFactory.json +++ b/artifacts/BFactory.json @@ -366,7 +366,7 @@ "id": 285, "nodeType": "ImportDirective", "scope": 377, - "sourceUnit": 5723, + "sourceUnit": 5727, "src": "230:31:3", "symbolAliases": [], "unitAlias": "" @@ -398,10 +398,10 @@ "id": 288, "name": "Deployer", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 5722, + "referencedDeclaration": 5726, "src": "679:8:3", "typeDescriptions": { - "typeIdentifier": "t_contract$_Deployer_$5722", + "typeIdentifier": "t_contract$_Deployer_$5726", "typeString": "contract Deployer" } }, @@ -412,7 +412,7 @@ ], "contractDependencies": [ 280, - 5722 + 5726 ], "contractKind": "contract", "documentation": null, @@ -420,7 +420,7 @@ "id": 376, "linearizedBaseContracts": [ 376, - 5722, + 5726, 280 ], "name": "BFactory", @@ -727,10 +727,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1176:7:3", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -913,7 +913,7 @@ "name": "deploy", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5721, + "referencedDeclaration": 5725, "src": "1606:6:3", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$_t_address_$", @@ -1070,10 +1070,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1637:7:3", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -1200,7 +1200,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "1858:3:3", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -1230,7 +1230,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6579, + "referencedDeclaration": 6583, "src": "1894:4:3", "typeDescriptions": { "typeIdentifier": "t_contract$_BFactory_$376", @@ -1420,10 +1420,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1795:7:3", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -1544,7 +1544,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "2119:3:3", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -1716,7 +1716,7 @@ "id": 285, "nodeType": "ImportDirective", "scope": 377, - "sourceUnit": 5723, + "sourceUnit": 5727, "src": "230:31:3", "symbolAliases": [], "unitAlias": "" @@ -1748,10 +1748,10 @@ "id": 288, "name": "Deployer", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 5722, + "referencedDeclaration": 5726, "src": "679:8:3", "typeDescriptions": { - "typeIdentifier": "t_contract$_Deployer_$5722", + "typeIdentifier": "t_contract$_Deployer_$5726", "typeString": "contract Deployer" } }, @@ -1762,7 +1762,7 @@ ], "contractDependencies": [ 280, - 5722 + 5726 ], "contractKind": "contract", "documentation": null, @@ -1770,7 +1770,7 @@ "id": 376, "linearizedBaseContracts": [ 376, - 5722, + 5726, 280 ], "name": "BFactory", @@ -2077,10 +2077,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1176:7:3", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -2263,7 +2263,7 @@ "name": "deploy", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5721, + "referencedDeclaration": 5725, "src": "1606:6:3", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$_t_address_$", @@ -2420,10 +2420,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1637:7:3", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -2550,7 +2550,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "1858:3:3", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -2580,7 +2580,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6579, + "referencedDeclaration": 6583, "src": "1894:4:3", "typeDescriptions": { "typeIdentifier": "t_contract$_BFactory_$376", @@ -2770,10 +2770,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1795:7:3", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -2894,7 +2894,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "2119:3:3", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -3024,7 +3024,7 @@ }, "networks": {}, "schemaVersion": "3.2.4", - "updatedAt": "2020-10-01T09:28:54.408Z", + "updatedAt": "2020-10-01T15:18:05.051Z", "devdoc": { "methods": {} }, diff --git a/artifacts/BMath.json b/artifacts/BMath.json index 29ef379d5..55db40859 100644 --- a/artifacts/BMath.json +++ b/artifacts/BMath.json @@ -16482,7 +16482,7 @@ }, "networks": {}, "schemaVersion": "3.2.4", - "updatedAt": "2020-10-01T09:28:54.410Z", + "updatedAt": "2020-10-01T15:18:05.058Z", "devdoc": { "methods": {} }, diff --git a/artifacts/BNum.json b/artifacts/BNum.json index e0419a18e..610f0d670 100644 --- a/artifacts/BNum.json +++ b/artifacts/BNum.json @@ -781,10 +781,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1062:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -1137,10 +1137,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1263:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -1937,10 +1937,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1663:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -2183,10 +2183,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1758:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -2512,10 +2512,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1945:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -2805,10 +2805,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2014:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -3051,10 +3051,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2126:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -4181,10 +4181,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2827:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -4292,10 +4292,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2892:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -7180,10 +7180,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1062:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -7536,10 +7536,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1263:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -8336,10 +8336,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1663:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -8582,10 +8582,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1758:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -8911,10 +8911,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1945:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -9204,10 +9204,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2014:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -9450,10 +9450,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2126:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -10580,10 +10580,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2827:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -10691,10 +10691,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2892:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -13037,7 +13037,7 @@ }, "networks": {}, "schemaVersion": "3.2.4", - "updatedAt": "2020-10-01T09:28:54.418Z", + "updatedAt": "2020-10-01T15:18:05.076Z", "devdoc": { "methods": {} }, diff --git a/artifacts/BPool.json b/artifacts/BPool.json index 052bf1c1a..0271c612a 100644 --- a/artifacts/BPool.json +++ b/artifacts/BPool.json @@ -1621,7 +1621,7 @@ 1422, 3979, 4285, - 6528 + 6532 ], "contractKind": "contract", "documentation": "@title BPool\n \n@dev Used by the (Ocean version) BFactory contract as a bytecode reference to\n deploy new BPools.\n* This contract is is nearly identical to the BPool.sol contract at [1]\n The only difference is the \"Proxy contract functionality\" section \n given below. We'd inherit from BPool if we could, for simplicity.\n But we can't, because the proxy section needs to access private\n variables declared in BPool, and Solidity disallows this. Therefore\n the best we can do for now is clearly demarcate the proxy section. \n* [1] https://github.com/balancer-labs/balancer-core/contracts/.", @@ -1631,7 +1631,7 @@ 3778, 945, 4285, - 6528, + 6532, 3979, 1422, 280 @@ -2218,7 +2218,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "1707:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -2247,7 +2247,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "1716:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -2276,7 +2276,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "1728:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -2435,10 +2435,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1789:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -2658,10 +2658,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1958:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -3090,10 +3090,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2725:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -3235,7 +3235,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3015:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -3264,7 +3264,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3027:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -3546,10 +3546,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "3471:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -3700,10 +3700,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "3582:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -3811,10 +3811,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "3687:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -3922,10 +3922,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "3739:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -4905,10 +4905,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "4653:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -5059,10 +5059,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "4770:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -5187,7 +5187,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "5127:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -5379,7 +5379,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "5337:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -6362,10 +6362,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "6323:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -6594,10 +6594,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "6525:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -6985,10 +6985,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "6895:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -7379,10 +7379,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "7158:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -7843,10 +7843,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "7617:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -7894,7 +7894,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "7675:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -7970,10 +7970,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "7667:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -8081,10 +8081,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "7733:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -8192,10 +8192,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "7785:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -8491,10 +8491,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "7969:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -8542,7 +8542,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "8082:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -8618,10 +8618,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "8074:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -8859,10 +8859,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "8271:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -8910,7 +8910,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "8329:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -8986,10 +8986,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "8321:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -9182,7 +9182,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "8508:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -9258,10 +9258,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "8500:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -9353,10 +9353,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "8566:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -9480,10 +9480,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "8616:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -9676,7 +9676,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "8801:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -9846,7 +9846,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "9031:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -9922,10 +9922,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "9023:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -10060,10 +10060,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "9089:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -10155,10 +10155,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "9146:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -10282,10 +10282,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "9197:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -10820,7 +10820,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "9696:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -10896,10 +10896,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "9688:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -11018,10 +11018,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "9754:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -11113,10 +11113,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "9811:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -11224,10 +11224,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "9862:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -11335,10 +11335,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "9919:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -11446,10 +11446,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "9976:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -12065,10 +12065,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "10241:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -12696,7 +12696,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "11042:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -12952,7 +12952,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "10708:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -13262,7 +13262,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "11280:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -13338,10 +13338,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "11272:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -13460,10 +13460,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "11338:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -13555,10 +13555,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "11395:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -14590,7 +14590,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "12081:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -15004,10 +15004,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "12361:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -15110,7 +15110,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6577, + "referencedDeclaration": 6581, "src": "12476:4:6", "typeDescriptions": { "typeIdentifier": "t_contract$_BPool_$3778", @@ -15188,10 +15188,10 @@ "name": "IERC20", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6528, + "referencedDeclaration": 6532, "src": "12444:6:6", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_IERC20_$6528_$", + "typeIdentifier": "t_type$_t_contract$_IERC20_$6532_$", "typeString": "type(contract IERC20)" } }, @@ -15205,7 +15205,7 @@ "nodeType": "FunctionCall", "src": "12444:13:6", "typeDescriptions": { - "typeIdentifier": "t_contract$_IERC20_$6528", + "typeIdentifier": "t_contract$_IERC20_$6532", "typeString": "contract IERC20" } }, @@ -15216,7 +15216,7 @@ "lValueRequested": false, "memberName": "balanceOf", "nodeType": "MemberAccess", - "referencedDeclaration": 6473, + "referencedDeclaration": 6477, "src": "12444:23:6", "typeDescriptions": { "typeIdentifier": "t_function_external_view$_t_address_$returns$_t_uint256_$", @@ -15441,10 +15441,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "12640:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -15563,10 +15563,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "12699:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -16163,10 +16163,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "13208:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -16285,10 +16285,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "13267:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -16847,10 +16847,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "13746:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -17131,10 +17131,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "13890:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -17524,10 +17524,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "14126:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -17662,10 +17662,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "14186:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -17887,7 +17887,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "14347:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -18004,7 +18004,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "14409:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -18304,7 +18304,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "14509:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -18565,10 +18565,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "14677:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -19053,10 +19053,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "14936:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -19093,7 +19093,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "15000:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -19658,10 +19658,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "15308:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -19796,10 +19796,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "15369:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -20021,7 +20021,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "15534:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -20138,7 +20138,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "15597:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -20601,10 +20601,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "15932:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -20723,10 +20723,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "15991:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -20802,10 +20802,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "16051:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -21214,10 +21214,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "16232:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -21542,10 +21542,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "16558:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -21884,10 +21884,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "16848:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -22471,10 +22471,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "17243:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -22582,10 +22582,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "17319:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -22746,10 +22746,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "17383:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -22786,7 +22786,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "17538:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -22937,7 +22937,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "17696:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -23041,7 +23041,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "17758:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -23521,10 +23521,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "18131:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -23643,10 +23643,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "18190:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -23722,10 +23722,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "18250:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -24134,10 +24134,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "18431:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -24462,10 +24462,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "18770:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -24804,10 +24804,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "19060:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -25391,10 +25391,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "19452:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -25502,10 +25502,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "19523:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -25666,10 +25666,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "19587:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -25706,7 +25706,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "19742:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -25857,7 +25857,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "19900:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -25961,7 +25961,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "19962:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -26398,10 +26398,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "20283:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -26520,10 +26520,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "20333:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -26727,10 +26727,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "20392:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -27115,10 +27115,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "20804:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -27286,7 +27286,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "20955:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -27444,7 +27444,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "21055:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -27544,7 +27544,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "21116:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -27872,10 +27872,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "21402:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -27994,10 +27994,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "21452:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -28387,10 +28387,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "21787:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -28498,10 +28498,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "21843:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -28705,10 +28705,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "21915:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -28876,7 +28876,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "22133:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -29034,7 +29034,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "22233:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -29134,7 +29134,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "22294:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -29462,10 +29462,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "22581:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -29584,10 +29584,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "22631:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -29972,10 +29972,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "22971:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -30179,10 +30179,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "23046:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -30452,7 +30452,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "23325:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -30556,7 +30556,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "23388:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -30834,7 +30834,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "23545:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -31162,10 +31162,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "23840:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -31284,10 +31284,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "23890:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -31491,10 +31491,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "23950:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -31884,10 +31884,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "24370:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -31995,10 +31995,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "24425:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -32268,7 +32268,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "24630:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -32372,7 +32372,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "24693:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -32650,7 +32650,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "24850:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -32985,7 +32985,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6577, + "referencedDeclaration": 6581, "src": "25239:4:6", "typeDescriptions": { "typeIdentifier": "t_contract$_BPool_$3778", @@ -33084,10 +33084,10 @@ "name": "IERC20", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6528, + "referencedDeclaration": 6532, "src": "25198:6:6", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_IERC20_$6528_$", + "typeIdentifier": "t_type$_t_contract$_IERC20_$6532_$", "typeString": "type(contract IERC20)" } }, @@ -33101,7 +33101,7 @@ "nodeType": "FunctionCall", "src": "25198:13:6", "typeDescriptions": { - "typeIdentifier": "t_contract$_IERC20_$6528", + "typeIdentifier": "t_contract$_IERC20_$6532", "typeString": "contract IERC20" } }, @@ -33112,7 +33112,7 @@ "lValueRequested": false, "memberName": "transferFrom", "nodeType": "MemberAccess", - "referencedDeclaration": 6511, + "referencedDeclaration": 6515, "src": "25198:26:6", "typeDescriptions": { "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$_t_bool_$", @@ -33187,10 +33187,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "25263:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -33431,10 +33431,10 @@ "name": "IERC20", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6528, + "referencedDeclaration": 6532, "src": "25416:6:6", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_IERC20_$6528_$", + "typeIdentifier": "t_type$_t_contract$_IERC20_$6532_$", "typeString": "type(contract IERC20)" } }, @@ -33448,7 +33448,7 @@ "nodeType": "FunctionCall", "src": "25416:13:6", "typeDescriptions": { - "typeIdentifier": "t_contract$_IERC20_$6528", + "typeIdentifier": "t_contract$_IERC20_$6532", "typeString": "contract IERC20" } }, @@ -33459,7 +33459,7 @@ "lValueRequested": false, "memberName": "transfer", "nodeType": "MemberAccess", - "referencedDeclaration": 6482, + "referencedDeclaration": 6486, "src": "25416:22:6", "typeDescriptions": { "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_uint256_$returns$_t_bool_$", @@ -33534,10 +33534,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "25460:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -34309,7 +34309,7 @@ 1422, 3979, 4285, - 6528 + 6532 ], "contractKind": "contract", "documentation": "@title BPool\n \n@dev Used by the (Ocean version) BFactory contract as a bytecode reference to\n deploy new BPools.\n* This contract is is nearly identical to the BPool.sol contract at [1]\n The only difference is the \"Proxy contract functionality\" section \n given below. We'd inherit from BPool if we could, for simplicity.\n But we can't, because the proxy section needs to access private\n variables declared in BPool, and Solidity disallows this. Therefore\n the best we can do for now is clearly demarcate the proxy section. \n* [1] https://github.com/balancer-labs/balancer-core/contracts/.", @@ -34319,7 +34319,7 @@ 3778, 945, 4285, - 6528, + 6532, 3979, 1422, 280 @@ -34906,7 +34906,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "1707:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -34935,7 +34935,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "1716:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -34964,7 +34964,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "1728:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -35123,10 +35123,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1789:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -35346,10 +35346,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1958:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -35778,10 +35778,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2725:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -35923,7 +35923,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3015:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -35952,7 +35952,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3027:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -36234,10 +36234,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "3471:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -36388,10 +36388,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "3582:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -36499,10 +36499,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "3687:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -36610,10 +36610,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "3739:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -37593,10 +37593,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "4653:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -37747,10 +37747,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "4770:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -37875,7 +37875,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "5127:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -38067,7 +38067,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "5337:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -39050,10 +39050,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "6323:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -39282,10 +39282,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "6525:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -39673,10 +39673,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "6895:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -40067,10 +40067,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "7158:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -40531,10 +40531,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "7617:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -40582,7 +40582,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "7675:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -40658,10 +40658,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "7667:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -40769,10 +40769,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "7733:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -40880,10 +40880,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "7785:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -41179,10 +41179,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "7969:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -41230,7 +41230,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "8082:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -41306,10 +41306,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "8074:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -41547,10 +41547,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "8271:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -41598,7 +41598,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "8329:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -41674,10 +41674,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "8321:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -41870,7 +41870,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "8508:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -41946,10 +41946,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "8500:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -42041,10 +42041,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "8566:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -42168,10 +42168,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "8616:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -42364,7 +42364,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "8801:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -42534,7 +42534,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "9031:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -42610,10 +42610,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "9023:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -42748,10 +42748,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "9089:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -42843,10 +42843,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "9146:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -42970,10 +42970,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "9197:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -43508,7 +43508,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "9696:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -43584,10 +43584,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "9688:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -43706,10 +43706,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "9754:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -43801,10 +43801,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "9811:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -43912,10 +43912,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "9862:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -44023,10 +44023,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "9919:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -44134,10 +44134,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "9976:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -44753,10 +44753,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "10241:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -45384,7 +45384,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "11042:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -45640,7 +45640,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "10708:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -45950,7 +45950,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "11280:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -46026,10 +46026,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "11272:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -46148,10 +46148,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "11338:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -46243,10 +46243,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "11395:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -47278,7 +47278,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "12081:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -47692,10 +47692,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "12361:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -47798,7 +47798,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6577, + "referencedDeclaration": 6581, "src": "12476:4:6", "typeDescriptions": { "typeIdentifier": "t_contract$_BPool_$3778", @@ -47876,10 +47876,10 @@ "name": "IERC20", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6528, + "referencedDeclaration": 6532, "src": "12444:6:6", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_IERC20_$6528_$", + "typeIdentifier": "t_type$_t_contract$_IERC20_$6532_$", "typeString": "type(contract IERC20)" } }, @@ -47893,7 +47893,7 @@ "nodeType": "FunctionCall", "src": "12444:13:6", "typeDescriptions": { - "typeIdentifier": "t_contract$_IERC20_$6528", + "typeIdentifier": "t_contract$_IERC20_$6532", "typeString": "contract IERC20" } }, @@ -47904,7 +47904,7 @@ "lValueRequested": false, "memberName": "balanceOf", "nodeType": "MemberAccess", - "referencedDeclaration": 6473, + "referencedDeclaration": 6477, "src": "12444:23:6", "typeDescriptions": { "typeIdentifier": "t_function_external_view$_t_address_$returns$_t_uint256_$", @@ -48129,10 +48129,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "12640:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -48251,10 +48251,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "12699:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -48851,10 +48851,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "13208:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -48973,10 +48973,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "13267:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -49535,10 +49535,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "13746:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -49819,10 +49819,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "13890:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -50212,10 +50212,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "14126:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -50350,10 +50350,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "14186:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -50575,7 +50575,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "14347:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -50692,7 +50692,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "14409:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -50992,7 +50992,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "14509:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -51253,10 +51253,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "14677:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -51741,10 +51741,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "14936:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -51781,7 +51781,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "15000:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -52346,10 +52346,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "15308:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -52484,10 +52484,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "15369:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -52709,7 +52709,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "15534:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -52826,7 +52826,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "15597:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -53289,10 +53289,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "15932:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -53411,10 +53411,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "15991:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -53490,10 +53490,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "16051:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -53902,10 +53902,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "16232:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -54230,10 +54230,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "16558:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -54572,10 +54572,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "16848:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -55159,10 +55159,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "17243:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -55270,10 +55270,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "17319:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -55434,10 +55434,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "17383:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -55474,7 +55474,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "17538:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -55625,7 +55625,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "17696:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -55729,7 +55729,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "17758:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -56209,10 +56209,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "18131:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -56331,10 +56331,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "18190:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -56410,10 +56410,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "18250:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -56822,10 +56822,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "18431:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -57150,10 +57150,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "18770:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -57492,10 +57492,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "19060:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -58079,10 +58079,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "19452:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -58190,10 +58190,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "19523:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -58354,10 +58354,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "19587:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -58394,7 +58394,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "19742:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -58545,7 +58545,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "19900:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -58649,7 +58649,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "19962:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -59086,10 +59086,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "20283:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -59208,10 +59208,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "20333:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -59415,10 +59415,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "20392:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -59803,10 +59803,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "20804:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -59974,7 +59974,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "20955:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -60132,7 +60132,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "21055:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -60232,7 +60232,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "21116:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -60560,10 +60560,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "21402:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -60682,10 +60682,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "21452:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -61075,10 +61075,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "21787:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -61186,10 +61186,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "21843:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -61393,10 +61393,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "21915:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -61564,7 +61564,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "22133:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -61722,7 +61722,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "22233:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -61822,7 +61822,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "22294:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -62150,10 +62150,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "22581:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -62272,10 +62272,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "22631:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -62660,10 +62660,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "22971:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -62867,10 +62867,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "23046:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -63140,7 +63140,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "23325:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -63244,7 +63244,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "23388:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -63522,7 +63522,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "23545:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -63850,10 +63850,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "23840:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -63972,10 +63972,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "23890:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -64179,10 +64179,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "23950:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -64572,10 +64572,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "24370:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -64683,10 +64683,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "24425:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -64956,7 +64956,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "24630:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -65060,7 +65060,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "24693:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -65338,7 +65338,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "24850:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -65673,7 +65673,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6577, + "referencedDeclaration": 6581, "src": "25239:4:6", "typeDescriptions": { "typeIdentifier": "t_contract$_BPool_$3778", @@ -65772,10 +65772,10 @@ "name": "IERC20", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6528, + "referencedDeclaration": 6532, "src": "25198:6:6", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_IERC20_$6528_$", + "typeIdentifier": "t_type$_t_contract$_IERC20_$6532_$", "typeString": "type(contract IERC20)" } }, @@ -65789,7 +65789,7 @@ "nodeType": "FunctionCall", "src": "25198:13:6", "typeDescriptions": { - "typeIdentifier": "t_contract$_IERC20_$6528", + "typeIdentifier": "t_contract$_IERC20_$6532", "typeString": "contract IERC20" } }, @@ -65800,7 +65800,7 @@ "lValueRequested": false, "memberName": "transferFrom", "nodeType": "MemberAccess", - "referencedDeclaration": 6511, + "referencedDeclaration": 6515, "src": "25198:26:6", "typeDescriptions": { "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$_t_bool_$", @@ -65875,10 +65875,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "25263:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -66119,10 +66119,10 @@ "name": "IERC20", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6528, + "referencedDeclaration": 6532, "src": "25416:6:6", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_IERC20_$6528_$", + "typeIdentifier": "t_type$_t_contract$_IERC20_$6532_$", "typeString": "type(contract IERC20)" } }, @@ -66136,7 +66136,7 @@ "nodeType": "FunctionCall", "src": "25416:13:6", "typeDescriptions": { - "typeIdentifier": "t_contract$_IERC20_$6528", + "typeIdentifier": "t_contract$_IERC20_$6532", "typeString": "contract IERC20" } }, @@ -66147,7 +66147,7 @@ "lValueRequested": false, "memberName": "transfer", "nodeType": "MemberAccess", - "referencedDeclaration": 6482, + "referencedDeclaration": 6486, "src": "25416:22:6", "typeDescriptions": { "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_uint256_$returns$_t_bool_$", @@ -66222,10 +66222,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "25460:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -66915,7 +66915,7 @@ }, "networks": {}, "schemaVersion": "3.2.4", - "updatedAt": "2020-10-01T09:28:54.426Z", + "updatedAt": "2020-10-01T15:18:05.088Z", "devdoc": { "details": "Used by the (Ocean version) BFactory contract as a bytecode reference to deploy new BPools. * This contract is is nearly identical to the BPool.sol contract at [1] The only difference is the \"Proxy contract functionality\" section given below. We'd inherit from BPool if we could, for simplicity. But we can't, because the proxy section needs to access private variables declared in BPool, and Solidity disallows this. Therefore the best we can do for now is clearly demarcate the proxy section. * [1] https://github.com/balancer-labs/balancer-core/contracts/.", "methods": {}, diff --git a/artifacts/BToken.json b/artifacts/BToken.json index 50fe166bc..18cad9580 100644 --- a/artifacts/BToken.json +++ b/artifacts/BToken.json @@ -534,7 +534,7 @@ "id": 3782, "nodeType": "ImportDirective", "scope": 4286, - "sourceUnit": 6529, + "sourceUnit": 6533, "src": "688:64:7", "symbolAliases": [], "unitAlias": "" @@ -946,7 +946,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "1853:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -1029,7 +1029,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "1884:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -1310,7 +1310,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "1988:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -1510,7 +1510,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "2094:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -1618,10 +1618,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2056:7:7", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -1679,7 +1679,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "2181:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -1762,7 +1762,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "2212:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -1987,7 +1987,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "2304:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -2313,10 +2313,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2410:7:7", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -2862,7 +2862,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "2684:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -3088,7 +3088,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "2790:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -3300,10 +3300,10 @@ "id": 3982, "name": "IERC20", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 6528, + "referencedDeclaration": 6532, "src": "2843:6:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_IERC20_$6528", + "typeIdentifier": "t_contract$_IERC20_$6532", "typeString": "contract IERC20" } }, @@ -3316,7 +3316,7 @@ 280, 1422, 3979, - 6528 + 6532 ], "contractKind": "contract", "documentation": null, @@ -3324,7 +3324,7 @@ "id": 4285, "linearizedBaseContracts": [ 4285, - 6528, + 6532, 3979, 1422, 280 @@ -3883,7 +3883,7 @@ "scope": 4285, "src": "3252:118:7", "stateMutability": "view", - "superFunction": 6491, + "superFunction": 6495, "visibility": "external" }, { @@ -4017,7 +4017,7 @@ "scope": 4285, "src": "3376:100:7", "stateMutability": "view", - "superFunction": 6473, + "superFunction": 6477, "visibility": "external" }, { @@ -4096,7 +4096,7 @@ "scope": 4285, "src": "3482:86:7", "stateMutability": "view", - "superFunction": 6466, + "superFunction": 6470, "visibility": "public" }, { @@ -4139,7 +4139,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3659:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -4233,7 +4233,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3705:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -4300,9 +4300,9 @@ "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6527 + 6531 ], - "referencedDeclaration": 6527, + "referencedDeclaration": 6531, "src": "3696:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", @@ -4456,7 +4456,7 @@ "scope": 4285, "src": "3574:180:7", "stateMutability": "nonpayable", - "superFunction": 6500, + "superFunction": 6504, "visibility": "external" }, { @@ -4499,7 +4499,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3854:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -4587,7 +4587,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3889:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -4716,7 +4716,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3935:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -4776,7 +4776,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3963:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -4853,9 +4853,9 @@ "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6527 + 6531 ], - "referencedDeclaration": 6527, + "referencedDeclaration": 6531, "src": "3926:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", @@ -5077,7 +5077,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4124:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -5222,7 +5222,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4257:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -5401,7 +5401,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4195:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -5503,7 +5503,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4329:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -5563,7 +5563,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4357:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -5640,9 +5640,9 @@ "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6527 + 6531 ], - "referencedDeclaration": 6527, + "referencedDeclaration": 6531, "src": "4320:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", @@ -5817,7 +5817,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4489:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -6038,7 +6038,7 @@ "scope": 4285, "src": "4408:130:7", "stateMutability": "nonpayable", - "superFunction": 6482, + "superFunction": 6486, "visibility": "external" }, { @@ -6081,7 +6081,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4704:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -6202,7 +6202,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4748:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -6280,10 +6280,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "4683:7:7", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -6427,7 +6427,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4851:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -6533,7 +6533,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4888:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -6719,7 +6719,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4946:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -6807,7 +6807,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4981:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -6911,7 +6911,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "5026:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -6996,7 +6996,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "5059:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -7048,9 +7048,9 @@ "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6527 + 6531 ], - "referencedDeclaration": 6527, + "referencedDeclaration": 6531, "src": "5017:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", @@ -7234,7 +7234,7 @@ "scope": 4285, "src": "4544:565:7", "stateMutability": "nonpayable", - "superFunction": 6511, + "superFunction": 6515, "visibility": "external" } ], @@ -7284,7 +7284,7 @@ "id": 3782, "nodeType": "ImportDirective", "scope": 4286, - "sourceUnit": 6529, + "sourceUnit": 6533, "src": "688:64:7", "symbolAliases": [], "unitAlias": "" @@ -7696,7 +7696,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "1853:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -7779,7 +7779,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "1884:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -8060,7 +8060,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "1988:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -8260,7 +8260,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "2094:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -8368,10 +8368,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2056:7:7", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -8429,7 +8429,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "2181:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -8512,7 +8512,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "2212:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -8737,7 +8737,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "2304:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -9063,10 +9063,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2410:7:7", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -9612,7 +9612,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "2684:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -9838,7 +9838,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "2790:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -10050,10 +10050,10 @@ "id": 3982, "name": "IERC20", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 6528, + "referencedDeclaration": 6532, "src": "2843:6:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_IERC20_$6528", + "typeIdentifier": "t_contract$_IERC20_$6532", "typeString": "contract IERC20" } }, @@ -10066,7 +10066,7 @@ 280, 1422, 3979, - 6528 + 6532 ], "contractKind": "contract", "documentation": null, @@ -10074,7 +10074,7 @@ "id": 4285, "linearizedBaseContracts": [ 4285, - 6528, + 6532, 3979, 1422, 280 @@ -10633,7 +10633,7 @@ "scope": 4285, "src": "3252:118:7", "stateMutability": "view", - "superFunction": 6491, + "superFunction": 6495, "visibility": "external" }, { @@ -10767,7 +10767,7 @@ "scope": 4285, "src": "3376:100:7", "stateMutability": "view", - "superFunction": 6473, + "superFunction": 6477, "visibility": "external" }, { @@ -10846,7 +10846,7 @@ "scope": 4285, "src": "3482:86:7", "stateMutability": "view", - "superFunction": 6466, + "superFunction": 6470, "visibility": "public" }, { @@ -10889,7 +10889,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3659:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -10983,7 +10983,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3705:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -11050,9 +11050,9 @@ "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6527 + 6531 ], - "referencedDeclaration": 6527, + "referencedDeclaration": 6531, "src": "3696:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", @@ -11206,7 +11206,7 @@ "scope": 4285, "src": "3574:180:7", "stateMutability": "nonpayable", - "superFunction": 6500, + "superFunction": 6504, "visibility": "external" }, { @@ -11249,7 +11249,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3854:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -11337,7 +11337,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3889:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -11466,7 +11466,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3935:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -11526,7 +11526,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3963:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -11603,9 +11603,9 @@ "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6527 + 6531 ], - "referencedDeclaration": 6527, + "referencedDeclaration": 6531, "src": "3926:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", @@ -11827,7 +11827,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4124:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -11972,7 +11972,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4257:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -12151,7 +12151,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4195:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -12253,7 +12253,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4329:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -12313,7 +12313,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4357:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -12390,9 +12390,9 @@ "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6527 + 6531 ], - "referencedDeclaration": 6527, + "referencedDeclaration": 6531, "src": "4320:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", @@ -12567,7 +12567,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4489:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -12788,7 +12788,7 @@ "scope": 4285, "src": "4408:130:7", "stateMutability": "nonpayable", - "superFunction": 6482, + "superFunction": 6486, "visibility": "external" }, { @@ -12831,7 +12831,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4704:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -12952,7 +12952,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4748:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -13030,10 +13030,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "4683:7:7", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -13177,7 +13177,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4851:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -13283,7 +13283,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4888:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -13469,7 +13469,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4946:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -13557,7 +13557,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4981:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -13661,7 +13661,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "5026:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -13746,7 +13746,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "5059:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -13798,9 +13798,9 @@ "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6527 + 6531 ], - "referencedDeclaration": 6527, + "referencedDeclaration": 6531, "src": "5017:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", @@ -13984,7 +13984,7 @@ "scope": 4285, "src": "4544:565:7", "stateMutability": "nonpayable", - "superFunction": 6511, + "superFunction": 6515, "visibility": "external" } ], @@ -14000,7 +14000,7 @@ }, "networks": {}, "schemaVersion": "3.2.4", - "updatedAt": "2020-10-01T09:28:54.454Z", + "updatedAt": "2020-10-01T15:18:05.152Z", "devdoc": { "methods": {} }, diff --git a/artifacts/BTokenBase.json b/artifacts/BTokenBase.json index 575ff0b5b..41cb686d8 100644 --- a/artifacts/BTokenBase.json +++ b/artifacts/BTokenBase.json @@ -317,7 +317,7 @@ "id": 3782, "nodeType": "ImportDirective", "scope": 4286, - "sourceUnit": 6529, + "sourceUnit": 6533, "src": "688:64:7", "symbolAliases": [], "unitAlias": "" @@ -729,7 +729,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "1853:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -812,7 +812,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "1884:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -1093,7 +1093,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "1988:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -1293,7 +1293,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "2094:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -1401,10 +1401,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2056:7:7", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -1462,7 +1462,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "2181:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -1545,7 +1545,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "2212:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -1770,7 +1770,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "2304:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -2096,10 +2096,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2410:7:7", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -2645,7 +2645,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "2684:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -2871,7 +2871,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "2790:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -3083,10 +3083,10 @@ "id": 3982, "name": "IERC20", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 6528, + "referencedDeclaration": 6532, "src": "2843:6:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_IERC20_$6528", + "typeIdentifier": "t_contract$_IERC20_$6532", "typeString": "contract IERC20" } }, @@ -3099,7 +3099,7 @@ 280, 1422, 3979, - 6528 + 6532 ], "contractKind": "contract", "documentation": null, @@ -3107,7 +3107,7 @@ "id": 4285, "linearizedBaseContracts": [ 4285, - 6528, + 6532, 3979, 1422, 280 @@ -3666,7 +3666,7 @@ "scope": 4285, "src": "3252:118:7", "stateMutability": "view", - "superFunction": 6491, + "superFunction": 6495, "visibility": "external" }, { @@ -3800,7 +3800,7 @@ "scope": 4285, "src": "3376:100:7", "stateMutability": "view", - "superFunction": 6473, + "superFunction": 6477, "visibility": "external" }, { @@ -3879,7 +3879,7 @@ "scope": 4285, "src": "3482:86:7", "stateMutability": "view", - "superFunction": 6466, + "superFunction": 6470, "visibility": "public" }, { @@ -3922,7 +3922,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3659:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -4016,7 +4016,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3705:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -4083,9 +4083,9 @@ "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6527 + 6531 ], - "referencedDeclaration": 6527, + "referencedDeclaration": 6531, "src": "3696:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", @@ -4239,7 +4239,7 @@ "scope": 4285, "src": "3574:180:7", "stateMutability": "nonpayable", - "superFunction": 6500, + "superFunction": 6504, "visibility": "external" }, { @@ -4282,7 +4282,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3854:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -4370,7 +4370,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3889:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -4499,7 +4499,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3935:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -4559,7 +4559,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3963:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -4636,9 +4636,9 @@ "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6527 + 6531 ], - "referencedDeclaration": 6527, + "referencedDeclaration": 6531, "src": "3926:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", @@ -4860,7 +4860,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4124:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -5005,7 +5005,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4257:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -5184,7 +5184,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4195:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -5286,7 +5286,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4329:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -5346,7 +5346,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4357:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -5423,9 +5423,9 @@ "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6527 + 6531 ], - "referencedDeclaration": 6527, + "referencedDeclaration": 6531, "src": "4320:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", @@ -5600,7 +5600,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4489:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -5821,7 +5821,7 @@ "scope": 4285, "src": "4408:130:7", "stateMutability": "nonpayable", - "superFunction": 6482, + "superFunction": 6486, "visibility": "external" }, { @@ -5864,7 +5864,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4704:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -5985,7 +5985,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4748:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -6063,10 +6063,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "4683:7:7", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -6210,7 +6210,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4851:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -6316,7 +6316,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4888:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -6502,7 +6502,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4946:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -6590,7 +6590,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4981:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -6694,7 +6694,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "5026:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -6779,7 +6779,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "5059:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -6831,9 +6831,9 @@ "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6527 + 6531 ], - "referencedDeclaration": 6527, + "referencedDeclaration": 6531, "src": "5017:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", @@ -7017,7 +7017,7 @@ "scope": 4285, "src": "4544:565:7", "stateMutability": "nonpayable", - "superFunction": 6511, + "superFunction": 6515, "visibility": "external" } ], @@ -7067,7 +7067,7 @@ "id": 3782, "nodeType": "ImportDirective", "scope": 4286, - "sourceUnit": 6529, + "sourceUnit": 6533, "src": "688:64:7", "symbolAliases": [], "unitAlias": "" @@ -7479,7 +7479,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "1853:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -7562,7 +7562,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "1884:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -7843,7 +7843,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "1988:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -8043,7 +8043,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "2094:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -8151,10 +8151,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2056:7:7", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -8212,7 +8212,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "2181:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -8295,7 +8295,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "2212:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -8520,7 +8520,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "2304:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -8846,10 +8846,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2410:7:7", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -9395,7 +9395,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "2684:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -9621,7 +9621,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6571, + "referencedDeclaration": 6575, "src": "2790:4:7", "typeDescriptions": { "typeIdentifier": "t_contract$_BTokenBase_$3979", @@ -9833,10 +9833,10 @@ "id": 3982, "name": "IERC20", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 6528, + "referencedDeclaration": 6532, "src": "2843:6:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_IERC20_$6528", + "typeIdentifier": "t_contract$_IERC20_$6532", "typeString": "contract IERC20" } }, @@ -9849,7 +9849,7 @@ 280, 1422, 3979, - 6528 + 6532 ], "contractKind": "contract", "documentation": null, @@ -9857,7 +9857,7 @@ "id": 4285, "linearizedBaseContracts": [ 4285, - 6528, + 6532, 3979, 1422, 280 @@ -10416,7 +10416,7 @@ "scope": 4285, "src": "3252:118:7", "stateMutability": "view", - "superFunction": 6491, + "superFunction": 6495, "visibility": "external" }, { @@ -10550,7 +10550,7 @@ "scope": 4285, "src": "3376:100:7", "stateMutability": "view", - "superFunction": 6473, + "superFunction": 6477, "visibility": "external" }, { @@ -10629,7 +10629,7 @@ "scope": 4285, "src": "3482:86:7", "stateMutability": "view", - "superFunction": 6466, + "superFunction": 6470, "visibility": "public" }, { @@ -10672,7 +10672,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3659:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -10766,7 +10766,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3705:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -10833,9 +10833,9 @@ "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6527 + 6531 ], - "referencedDeclaration": 6527, + "referencedDeclaration": 6531, "src": "3696:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", @@ -10989,7 +10989,7 @@ "scope": 4285, "src": "3574:180:7", "stateMutability": "nonpayable", - "superFunction": 6500, + "superFunction": 6504, "visibility": "external" }, { @@ -11032,7 +11032,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3854:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -11120,7 +11120,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3889:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -11249,7 +11249,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3935:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -11309,7 +11309,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3963:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -11386,9 +11386,9 @@ "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6527 + 6531 ], - "referencedDeclaration": 6527, + "referencedDeclaration": 6531, "src": "3926:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", @@ -11610,7 +11610,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4124:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -11755,7 +11755,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4257:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -11934,7 +11934,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4195:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -12036,7 +12036,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4329:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -12096,7 +12096,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4357:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -12173,9 +12173,9 @@ "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6527 + 6531 ], - "referencedDeclaration": 6527, + "referencedDeclaration": 6531, "src": "4320:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", @@ -12350,7 +12350,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4489:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -12571,7 +12571,7 @@ "scope": 4285, "src": "4408:130:7", "stateMutability": "nonpayable", - "superFunction": 6482, + "superFunction": 6486, "visibility": "external" }, { @@ -12614,7 +12614,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4704:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -12735,7 +12735,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4748:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -12813,10 +12813,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "4683:7:7", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -12960,7 +12960,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4851:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -13066,7 +13066,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4888:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -13252,7 +13252,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4946:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -13340,7 +13340,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4981:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -13444,7 +13444,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "5026:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -13529,7 +13529,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "5059:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -13581,9 +13581,9 @@ "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6527 + 6531 ], - "referencedDeclaration": 6527, + "referencedDeclaration": 6531, "src": "5017:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", @@ -13767,7 +13767,7 @@ "scope": 4285, "src": "4544:565:7", "stateMutability": "nonpayable", - "superFunction": 6511, + "superFunction": 6515, "visibility": "external" } ], @@ -13783,7 +13783,7 @@ }, "networks": {}, "schemaVersion": "3.2.4", - "updatedAt": "2020-10-01T09:28:54.460Z", + "updatedAt": "2020-10-01T15:18:05.161Z", "devdoc": { "methods": {} }, diff --git a/artifacts/Context.json b/artifacts/Context.json index f2505ef5e..ff000b581 100644 --- a/artifacts/Context.json +++ b/artifacts/Context.json @@ -19,14 +19,14 @@ "absolutePath": "openzeppelin-solidity/contracts/GSN/Context.sol", "exportedSymbols": { "Context": [ - 5749 + 5753 ] }, - "id": 5750, + "id": 5754, "nodeType": "SourceUnit", "nodes": [ { - "id": 5724, + "id": 5728, "literals": [ "solidity", "^", @@ -42,40 +42,40 @@ "contractKind": "contract", "documentation": null, "fullyImplemented": true, - "id": 5749, + "id": 5753, "linearizedBaseContracts": [ - 5749 + 5753 ], "name": "Context", "nodeType": "ContractDefinition", "nodes": [ { "body": { - "id": 5727, + "id": 5731, "nodeType": "Block", "src": "726:3:14", "statements": [] }, "documentation": null, - "id": 5728, + "id": 5732, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { - "id": 5725, + "id": 5729, "nodeType": "ParameterList", "parameters": [], "src": "714:2:14" }, "returnParameters": { - "id": 5726, + "id": 5730, "nodeType": "ParameterList", "parameters": [], "src": "726:0:14" }, - "scope": 5749, + "scope": 5753, "src": "702:27:14", "stateMutability": "nonpayable", "superFunction": null, @@ -83,7 +83,7 @@ }, { "body": { - "id": 5736, + "id": 5740, "nodeType": "Block", "src": "850:34:14", "statements": [ @@ -92,18 +92,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 5733, + "id": 5737, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "867:3:14", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 5734, + "id": 5738, "isConstant": false, "isLValue": false, "isPure": false, @@ -117,36 +117,36 @@ "typeString": "address payable" } }, - "functionReturnParameters": 5732, - "id": 5735, + "functionReturnParameters": 5736, + "id": 5739, "nodeType": "Return", "src": "860:17:14" } ] }, "documentation": null, - "id": 5737, + "id": 5741, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgSender", "nodeType": "FunctionDefinition", "parameters": { - "id": 5729, + "id": 5733, "nodeType": "ParameterList", "parameters": [], "src": "807:2:14" }, "returnParameters": { - "id": 5732, + "id": 5736, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5731, + "id": 5735, "name": "", "nodeType": "VariableDeclaration", - "scope": 5737, + "scope": 5741, "src": "833:15:14", "stateVariable": false, "storageLocation": "default", @@ -155,7 +155,7 @@ "typeString": "address payable" }, "typeName": { - "id": 5730, + "id": 5734, "name": "address", "nodeType": "ElementaryTypeName", "src": "833:15:14", @@ -171,7 +171,7 @@ ], "src": "832:17:14" }, - "scope": 5749, + "scope": 5753, "src": "788:96:14", "stateMutability": "view", "superFunction": null, @@ -179,25 +179,25 @@ }, { "body": { - "id": 5747, + "id": 5751, "nodeType": "Block", "src": "947:165:14", "statements": [ { "expression": { "argumentTypes": null, - "id": 5742, + "id": 5746, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6581, + "referencedDeclaration": 6585, "src": "957:4:14", "typeDescriptions": { - "typeIdentifier": "t_contract$_Context_$5749", + "typeIdentifier": "t_contract$_Context_$5753", "typeString": "contract Context" } }, - "id": 5743, + "id": 5747, "nodeType": "ExpressionStatement", "src": "957:4:14" }, @@ -206,18 +206,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 5744, + "id": 5748, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "1097:3:14", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 5745, + "id": 5749, "isConstant": false, "isLValue": false, "isPure": false, @@ -231,36 +231,36 @@ "typeString": "bytes calldata" } }, - "functionReturnParameters": 5741, - "id": 5746, + "functionReturnParameters": 5745, + "id": 5750, "nodeType": "Return", "src": "1090:15:14" } ] }, "documentation": null, - "id": 5748, + "id": 5752, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgData", "nodeType": "FunctionDefinition", "parameters": { - "id": 5738, + "id": 5742, "nodeType": "ParameterList", "parameters": [], "src": "907:2:14" }, "returnParameters": { - "id": 5741, + "id": 5745, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5740, + "id": 5744, "name": "", "nodeType": "VariableDeclaration", - "scope": 5748, + "scope": 5752, "src": "933:12:14", "stateVariable": false, "storageLocation": "memory", @@ -269,7 +269,7 @@ "typeString": "bytes" }, "typeName": { - "id": 5739, + "id": 5743, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "933:5:14", @@ -284,14 +284,14 @@ ], "src": "932:14:14" }, - "scope": 5749, + "scope": 5753, "src": "890:222:14", "stateMutability": "view", "superFunction": null, "visibility": "internal" } ], - "scope": 5750, + "scope": 5754, "src": "525:589:14" } ], @@ -301,14 +301,14 @@ "absolutePath": "openzeppelin-solidity/contracts/GSN/Context.sol", "exportedSymbols": { "Context": [ - 5749 + 5753 ] }, - "id": 5750, + "id": 5754, "nodeType": "SourceUnit", "nodes": [ { - "id": 5724, + "id": 5728, "literals": [ "solidity", "^", @@ -324,40 +324,40 @@ "contractKind": "contract", "documentation": null, "fullyImplemented": true, - "id": 5749, + "id": 5753, "linearizedBaseContracts": [ - 5749 + 5753 ], "name": "Context", "nodeType": "ContractDefinition", "nodes": [ { "body": { - "id": 5727, + "id": 5731, "nodeType": "Block", "src": "726:3:14", "statements": [] }, "documentation": null, - "id": 5728, + "id": 5732, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { - "id": 5725, + "id": 5729, "nodeType": "ParameterList", "parameters": [], "src": "714:2:14" }, "returnParameters": { - "id": 5726, + "id": 5730, "nodeType": "ParameterList", "parameters": [], "src": "726:0:14" }, - "scope": 5749, + "scope": 5753, "src": "702:27:14", "stateMutability": "nonpayable", "superFunction": null, @@ -365,7 +365,7 @@ }, { "body": { - "id": 5736, + "id": 5740, "nodeType": "Block", "src": "850:34:14", "statements": [ @@ -374,18 +374,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 5733, + "id": 5737, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "867:3:14", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 5734, + "id": 5738, "isConstant": false, "isLValue": false, "isPure": false, @@ -399,36 +399,36 @@ "typeString": "address payable" } }, - "functionReturnParameters": 5732, - "id": 5735, + "functionReturnParameters": 5736, + "id": 5739, "nodeType": "Return", "src": "860:17:14" } ] }, "documentation": null, - "id": 5737, + "id": 5741, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgSender", "nodeType": "FunctionDefinition", "parameters": { - "id": 5729, + "id": 5733, "nodeType": "ParameterList", "parameters": [], "src": "807:2:14" }, "returnParameters": { - "id": 5732, + "id": 5736, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5731, + "id": 5735, "name": "", "nodeType": "VariableDeclaration", - "scope": 5737, + "scope": 5741, "src": "833:15:14", "stateVariable": false, "storageLocation": "default", @@ -437,7 +437,7 @@ "typeString": "address payable" }, "typeName": { - "id": 5730, + "id": 5734, "name": "address", "nodeType": "ElementaryTypeName", "src": "833:15:14", @@ -453,7 +453,7 @@ ], "src": "832:17:14" }, - "scope": 5749, + "scope": 5753, "src": "788:96:14", "stateMutability": "view", "superFunction": null, @@ -461,25 +461,25 @@ }, { "body": { - "id": 5747, + "id": 5751, "nodeType": "Block", "src": "947:165:14", "statements": [ { "expression": { "argumentTypes": null, - "id": 5742, + "id": 5746, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6581, + "referencedDeclaration": 6585, "src": "957:4:14", "typeDescriptions": { - "typeIdentifier": "t_contract$_Context_$5749", + "typeIdentifier": "t_contract$_Context_$5753", "typeString": "contract Context" } }, - "id": 5743, + "id": 5747, "nodeType": "ExpressionStatement", "src": "957:4:14" }, @@ -488,18 +488,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 5744, + "id": 5748, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "1097:3:14", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 5745, + "id": 5749, "isConstant": false, "isLValue": false, "isPure": false, @@ -513,36 +513,36 @@ "typeString": "bytes calldata" } }, - "functionReturnParameters": 5741, - "id": 5746, + "functionReturnParameters": 5745, + "id": 5750, "nodeType": "Return", "src": "1090:15:14" } ] }, "documentation": null, - "id": 5748, + "id": 5752, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgData", "nodeType": "FunctionDefinition", "parameters": { - "id": 5738, + "id": 5742, "nodeType": "ParameterList", "parameters": [], "src": "907:2:14" }, "returnParameters": { - "id": 5741, + "id": 5745, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5740, + "id": 5744, "name": "", "nodeType": "VariableDeclaration", - "scope": 5748, + "scope": 5752, "src": "933:12:14", "stateVariable": false, "storageLocation": "memory", @@ -551,7 +551,7 @@ "typeString": "bytes" }, "typeName": { - "id": 5739, + "id": 5743, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "933:5:14", @@ -566,14 +566,14 @@ ], "src": "932:14:14" }, - "scope": 5749, + "scope": 5753, "src": "890:222:14", "stateMutability": "view", "superFunction": null, "visibility": "internal" } ], - "scope": 5750, + "scope": 5754, "src": "525:589:14" } ], @@ -585,7 +585,7 @@ }, "networks": {}, "schemaVersion": "3.2.4", - "updatedAt": "2020-10-01T09:28:54.480Z", + "updatedAt": "2020-10-01T15:18:05.192Z", "devdoc": { "methods": {} }, diff --git a/artifacts/DTFactory.json b/artifacts/DTFactory.json index 1e1b8ba07..f2b01c7f7 100644 --- a/artifacts/DTFactory.json +++ b/artifacts/DTFactory.json @@ -180,7 +180,7 @@ "id": 2, "nodeType": "ImportDirective", "scope": 159, - "sourceUnit": 5723, + "sourceUnit": 5727, "src": "185:30:0", "symbolAliases": [], "unitAlias": "" @@ -205,10 +205,10 @@ "id": 4, "name": "Deployer", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 5722, + "referencedDeclaration": 5726, "src": "651:8:0", "typeDescriptions": { - "typeIdentifier": "t_contract$_Deployer_$5722", + "typeIdentifier": "t_contract$_Deployer_$5726", "typeString": "contract Deployer" } }, @@ -218,7 +218,7 @@ } ], "contractDependencies": [ - 5722 + 5726 ], "contractKind": "contract", "documentation": "@title DTFactory contract\n@author Ocean Protocol Team\n * @dev Implementation of Ocean DataTokens Factory\n * DTFactory deploys DataToken proxy contracts.\n New DataToken proxy contracts are links to the template contract's bytecode.\n Proxy contract functionality is based on Ocean Protocol custom implementation of ERC1167 standard.", @@ -226,7 +226,7 @@ "id": 158, "linearizedBaseContracts": [ 158, - 5722 + 5726 ], "name": "DTFactory", "nodeType": "ContractDefinition", @@ -844,10 +844,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1528:7:0", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -1140,10 +1140,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2359:7:0", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -1219,7 +1219,7 @@ "name": "deploy", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5721, + "referencedDeclaration": 5725, "src": "2467:6:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$_t_address_$", @@ -1376,10 +1376,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2499:7:0", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -1532,7 +1532,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "2804:3:0", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -1695,10 +1695,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2695:7:0", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -1875,7 +1875,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3155:3:0", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -2369,7 +2369,7 @@ "id": 2, "nodeType": "ImportDirective", "scope": 159, - "sourceUnit": 5723, + "sourceUnit": 5727, "src": "185:30:0", "symbolAliases": [], "unitAlias": "" @@ -2394,10 +2394,10 @@ "id": 4, "name": "Deployer", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 5722, + "referencedDeclaration": 5726, "src": "651:8:0", "typeDescriptions": { - "typeIdentifier": "t_contract$_Deployer_$5722", + "typeIdentifier": "t_contract$_Deployer_$5726", "typeString": "contract Deployer" } }, @@ -2407,7 +2407,7 @@ } ], "contractDependencies": [ - 5722 + 5726 ], "contractKind": "contract", "documentation": "@title DTFactory contract\n@author Ocean Protocol Team\n * @dev Implementation of Ocean DataTokens Factory\n * DTFactory deploys DataToken proxy contracts.\n New DataToken proxy contracts are links to the template contract's bytecode.\n Proxy contract functionality is based on Ocean Protocol custom implementation of ERC1167 standard.", @@ -2415,7 +2415,7 @@ "id": 158, "linearizedBaseContracts": [ 158, - 5722 + 5726 ], "name": "DTFactory", "nodeType": "ContractDefinition", @@ -3033,10 +3033,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1528:7:0", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -3329,10 +3329,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2359:7:0", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -3408,7 +3408,7 @@ "name": "deploy", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5721, + "referencedDeclaration": 5725, "src": "2467:6:0", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$_t_address_$", @@ -3565,10 +3565,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2499:7:0", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -3721,7 +3721,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "2804:3:0", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -3884,10 +3884,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2695:7:0", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -4064,7 +4064,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3155:3:0", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -4538,7 +4538,7 @@ }, "networks": {}, "schemaVersion": "3.2.4", - "updatedAt": "2020-10-01T09:28:54.405Z", + "updatedAt": "2020-10-01T15:18:05.031Z", "devdoc": { "author": "Ocean Protocol Team", "details": "Implementation of Ocean DataTokens Factory * DTFactory deploys DataToken proxy contracts. New DataToken proxy contracts are links to the template contract's bytecode. Proxy contract functionality is based on Ocean Protocol custom implementation of ERC1167 standard.", diff --git a/artifacts/DataTokenTemplate.json b/artifacts/DataTokenTemplate.json index cf12a5ba6..bbd415ee0 100644 --- a/artifacts/DataTokenTemplate.json +++ b/artifacts/DataTokenTemplate.json @@ -269,7 +269,7 @@ }, { "indexed": false, - "name": "startedAt", + "name": "timestamp", "type": "uint256" }, { @@ -313,6 +313,11 @@ "indexed": true, "name": "provider", "type": "address" + }, + { + "indexed": false, + "name": "timestamp", + "type": "uint256" } ], "name": "OrderFinished", @@ -665,21 +670,21 @@ "type": "function" } ], - "metadata": "{\"compiler\":{\"version\":\"0.5.7+commit.6da8b019\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"minter\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"spender\",\"type\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"sender\",\"type\":\"address\"},{\"name\":\"recipient\",\"type\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"BASE_MARKET_FEE_PERCENTAGE\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"amount\",\"type\":\"uint256\"},{\"name\":\"serviceId\",\"type\":\"uint256\"},{\"name\":\"mrktFeeCollector\",\"type\":\"address\"}],\"name\":\"startOrder\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"name\":\"\",\"type\":\"uint8\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"amount\",\"type\":\"uint256\"},{\"name\":\"feePercentage\",\"type\":\"uint256\"}],\"name\":\"calculateFee\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"cap\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"isInitialized\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"spender\",\"type\":\"address\"},{\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"account\",\"type\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"mint\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"newMinter\",\"type\":\"address\"}],\"name\":\"proposeMinter\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"orderTxId\",\"type\":\"bytes32\"},{\"name\":\"consumer\",\"type\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\"},{\"name\":\"serviceId\",\"type\":\"uint256\"}],\"name\":\"finishOrder\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"symbol\",\"type\":\"string\"},{\"name\":\"minterAddress\",\"type\":\"address\"},{\"name\":\"cap\",\"type\":\"uint256\"},{\"name\":\"blob\",\"type\":\"string\"},{\"name\":\"feeCollector\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"spender\",\"type\":\"address\"},{\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"recipient\",\"type\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"account\",\"type\":\"address\"}],\"name\":\"isMinter\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"BASE_COMMUNITY_FEE_PERCENTAGE\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"owner\",\"type\":\"address\"},{\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"approveMinter\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"BASE\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"blob\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"symbol\",\"type\":\"string\"},{\"name\":\"minterAddress\",\"type\":\"address\"},{\"name\":\"cap\",\"type\":\"uint256\"},{\"name\":\"blob\",\"type\":\"string\"},{\"name\":\"feeCollector\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"consumer\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"serviceId\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"startedAt\",\"type\":\"uint256\"},{\"indexed\":true,\"name\":\"mrktFeeCollector\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"marketFee\",\"type\":\"uint256\"}],\"name\":\"OrderStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"orderTxId\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"consumer\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"serviceId\",\"type\":\"uint256\"},{\"indexed\":true,\"name\":\"provider\",\"type\":\"address\"}],\"name\":\"OrderFinished\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"currentMinter\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"newMinter\",\"type\":\"address\"}],\"name\":\"MinterProposed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"currentMinter\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"newMinter\",\"type\":\"address\"}],\"name\":\"MinterApproved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"}],\"devdoc\":{\"details\":\"DataTokenTemplate is an ERC20 compliant token template Used by the factory contract as a bytecode reference to deploy new DataTokens.\",\"methods\":{\"allowance(address,address)\":{\"details\":\"See {IERC20-allowance}.\"},\"approve(address,uint256)\":{\"details\":\"See {IERC20-approve}. * Requirements: * - `spender` cannot be the zero address.\"},\"approveMinter()\":{\"details\":\"approveMinter It approves a new token minter address. Only the current minter can call it.\"},\"balanceOf(address)\":{\"details\":\"See {IERC20-balanceOf}.\"},\"blob()\":{\"details\":\"blob It returns the blob (e.g https://123.com).\",\"return\":\"DataToken blob.\"},\"calculateFee(uint256,uint256)\":{\"details\":\"calculateFee giving a fee percentage, and amount it calculates the actual fee\",\"params\":{\"amount\":\"the amount of token\",\"feePercentage\":\"the fee percentage \"},\"return\":\"the token fee.\"},\"cap()\":{\"details\":\"cap it returns the capital.\",\"return\":\"DataToken cap.\"},\"constructor\":{\"details\":\"constructor Called prior contract deployment\",\"params\":{\"blob\":\"data string refering to the resolver for the metadata\",\"cap\":\"the total ERC20 cap\",\"feeCollector\":\"it is the community fee collector address\",\"minterAddress\":\"refers to an address that has minter role\",\"name\":\"refers to a template DataToken name\",\"symbol\":\"refers to a template DataToken symbol\"}},\"decimals()\":{\"details\":\"decimals It returns the token decimals. how many supported decimal points\",\"return\":\"DataToken decimals.\"},\"decreaseAllowance(address,uint256)\":{\"details\":\"Atomically decreases the allowance granted to `spender` by the caller. * This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. * Emits an {Approval} event indicating the updated allowance. * Requirements: * - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`.\"},\"finishOrder(bytes32,address,uint256,uint256)\":{\"details\":\"finishOrder called by provider prior completing service delivery only if there is a partial or full refund.\",\"params\":{\"amount\":\"refers to amount of tokens that is going to be transfered.\",\"consumer\":\"refers to an address that has consumed that service.\",\"orderTxId\":\"refers to the transaction Id of startOrder acts as a payment reference.\",\"serviceId\":\"service index in the metadata.\"}},\"increaseAllowance(address,uint256)\":{\"details\":\"Atomically increases the allowance granted to `spender` by the caller. * This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. * Emits an {Approval} event indicating the updated allowance. * Requirements: * - `spender` cannot be the zero address.\"},\"initialize(string,string,address,uint256,string,address)\":{\"details\":\"initialize Called prior contract initialization (e.g creating new DataToken instance) Calls private _initialize function. Only if contract is not initialized.\",\"params\":{\"blob\":\"data string refering to the resolver for the metadata\",\"cap\":\"the total ERC20 cap\",\"feeCollector\":\"it is the community fee collector address\",\"minterAddress\":\"refers to an address that has minter rights\",\"name\":\"refers to a new DataToken name\",\"symbol\":\"refers to a nea DataToken symbol\"}},\"isInitialized()\":{\"details\":\"isInitialized It checks whether the contract is initialized.\",\"return\":\"true if the contract is initialized.\"},\"isMinter(address)\":{\"details\":\"isMinter It takes the address and checks whether it has a minter role.\",\"params\":{\"account\":\"refers to the address.\"},\"return\":\"true if account has a minter role.\"},\"mint(address,uint256)\":{\"details\":\"mint Only the minter address can call it. msg.value should be higher than zero and gt or eq minting fee\",\"params\":{\"account\":\"refers to an address that token is going to be minted to.\",\"value\":\"refers to amount of tokens that is going to be minted.\"}},\"minter()\":{\"details\":\"minter\",\"return\":\"minter's address.\"},\"name()\":{\"details\":\"name It returns the token name.\",\"return\":\"DataToken name.\"},\"proposeMinter(address)\":{\"details\":\"proposeMinter It proposes a new token minter address. Only the current minter can call it.\",\"params\":{\"newMinter\":\"refers to a new token minter address.\"}},\"startOrder(uint256,uint256,address)\":{\"details\":\"startOrder called by consumer prior ordering a service consume on a marketplace\",\"params\":{\"amount\":\"refers to amount of tokens that is going to be transfered.\",\"mrktFeeCollector\":\"marketplace fee collector\",\"serviceId\":\"service index in the metadata\"}},\"symbol()\":{\"details\":\"symbol It returns the token symbol.\",\"return\":\"DataToken symbol.\"},\"totalSupply()\":{\"details\":\"See {IERC20-totalSupply}.\"},\"transfer(address,uint256)\":{\"details\":\"See {IERC20-transfer}. * Requirements: * - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"See {IERC20-transferFrom}. * Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; * Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for `sender`'s tokens of at least `amount`.\"}},\"title\":\"DataTokenTemplate \"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/ahmedali/Desktop/work/ocean-contracts/contracts/templates/DataTokenTemplate.sol\":\"DataTokenTemplate\"},\"evmVersion\":\"byzantium\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/ahmedali/Desktop/work/ocean-contracts/contracts/interfaces/IERC20Template.sol\":{\"keccak256\":\"0x022ebed2ba4949e96a05cc394cf690d8fd3190a4733cebe8cbe930ac25cfde18\",\"urls\":[\"bzzr://2fa3d5cae14f0af7d78f6e1d13bc41854082c03ab2f86462ebb09afda88ee6e9\"]},\"/Users/ahmedali/Desktop/work/ocean-contracts/contracts/templates/DataTokenTemplate.sol\":{\"keccak256\":\"0x0c6986ba658623994d1302b5e11193f851f0dd0a37bfde399537ce517c61c54c\",\"urls\":[\"bzzr://4a002cb4194494947854ec5e315fc1be0eee45525a370b0e5c1b2407df065381\"]},\"openzeppelin-solidity/contracts/GSN/Context.sol\":{\"keccak256\":\"0x90a3995645af7562d84b9d69363ffa5ae7217714ab61e951bf7bc450f40e4061\",\"urls\":[\"bzzr://51482c01bddf23793bddee43b60ab9578a62948a4f2082def24ea792a553b055\"]},\"openzeppelin-solidity/contracts/math/SafeMath.sol\":{\"keccak256\":\"0x640b6dee7a4b830bdfd52b5031a07fc2b12209f5b2e29e5d364a7d37f69d8076\",\"urls\":[\"bzzr://292843005e754e752644f767477ec5ad7a1ffc91ddb18c38b8079c62f3993cad\"]},\"openzeppelin-solidity/contracts/token/ERC20/ERC20.sol\":{\"keccak256\":\"0xb15af804e2bc97db51e4e103f13de9fe13f87e6b835d7a88c897966c0e58506e\",\"urls\":[\"bzzr://6200c125af376381ae6c5415b8f3c1cb83889be20a7a51d67ac607487a10313b\"]},\"openzeppelin-solidity/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0xe5bb0f57cff3e299f360052ba50f1ea0fff046df2be070b6943e0e3c3fdad8a9\",\"urls\":[\"bzzr://cf2d583b8dce38d0617fdcd65f2fd9f126fe17b7f683b5a515ea9d2762d8b062\"]}},\"version\":1}", - "bytecode": "0x60806040526007805460a060020a60ff02191690553480156200002157600080fd5b5060405162001ef338038062001ef3833981018060405260c08110156200004757600080fd5b8101908080516401000000008111156200006057600080fd5b820160208101848111156200007457600080fd5b81516401000000008111828201871017156200008f57600080fd5b50509291906020018051640100000000811115620000ac57600080fd5b82016020810184811115620000c057600080fd5b8151640100000000811182820187101715620000db57600080fd5b505060208201516040830151606090930180519295919491926401000000008111156200010757600080fd5b820160208101848111156200011b57600080fd5b81516401000000008111828201871017156200013657600080fd5b505060209091015190925090506200015c86868686868664010000000062000169810204565b5050505050505062000439565b6000600160a060020a038516620001cc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603081526020018062001e306030913960400191505060405180910390fd5b600854600160a060020a03161562000230576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f81526020018062001ec4602f913960400191505060405180910390fd5b600160a060020a03821662000291576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252604081526020018062001e606040913960400191505060405180910390fd5b83620002e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602481526020018062001ea06024913960400191505060405180910390fd5b60068490558651620003039060039060208a019062000394565b5082516200031990600590602086019062000394565b5085516200032f90600490602089019062000394565b505060088054600160a060020a0319908116600160a060020a039687161790915560078054740100000000000000000000000000000000000000009216929095169190911760a060020a60ff02191681179384905560ff930492909216949350505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003d757805160ff191683800117855562000407565b8280016001018555821562000407579182015b8281111562000407578251825591602001919060010190620003ea565b506200041592915062000419565b5090565b6200043691905b8082111562000415576000815560010162000420565b90565b6119e780620004496000396000f3fe608060405234801561001057600080fd5b50600436106101ab576000357c01000000000000000000000000000000000000000000000000000000009004806350d2fcc4116100fb578063a9059cbb116100b4578063dd62ed3e1161008e578063dd62ed3e14610602578063eb40024b14610630578063ec342ad014610638578063fde0e7a814610640576101ab565b8063a9059cbb146105b0578063aa271e1a146105dc578063b2263a5d146102e1576101ab565b806350d2fcc4146103c657806370a08231146103ec5780638ca0c059146104125780639070d2f81461044a57806395d89b411461057c578063a457c2d714610584576101ab565b8063300ae14111610168578063355274ea11610142578063355274ea1461035e578063392e53cd14610366578063395093511461036e57806340c10f191461039a576101ab565b8063300ae141146102e9578063313ce5671461031d57806334e731221461033b576101ab565b806306fdde03146101b0578063075461721461022d578063095ea7b31461025157806318160ddd1461029157806323b872dd146102ab578063294541c7146102e1575b600080fd5b6101b8610648565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101f25781810151838201526020016101da565b50505050905090810190601f16801561021f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102356106df565b60408051600160a060020a039092168252519081900360200190f35b61027d6004803603604081101561026757600080fd5b50600160a060020a0381351690602001356106ee565b604080519115158252519081900360200190f35b61029961070c565b60408051918252519081900360200190f35b61027d600480360360608110156102c157600080fd5b50600160a060020a03813581169160208101359091169060400135610712565b61029961079f565b61031b600480360360608110156102ff57600080fd5b5080359060208101359060400135600160a060020a03166107aa565b005b6103256108a6565b6040805160ff9092168252519081900360200190f35b6102996004803603604081101561035157600080fd5b50803590602001356108ab565b6102996108f6565b61027d6108fc565b61027d6004803603604081101561038457600080fd5b50600160a060020a03813516906020013561091d565b61031b600480360360408110156103b057600080fd5b50600160a060020a038135169060200135610971565b61031b600480360360208110156103dc57600080fd5b5035600160a060020a0316610a3c565b6102996004803603602081101561040257600080fd5b5035600160a060020a0316610af5565b61031b6004803603608081101561042857600080fd5b50803590600160a060020a036020820135169060408101359060600135610b10565b61027d600480360360c081101561046057600080fd5b81019060208101813564010000000081111561047b57600080fd5b82018360208201111561048d57600080fd5b803590602001918460018302840111640100000000831117156104af57600080fd5b9193909290916020810190356401000000008111156104cd57600080fd5b8201836020820111156104df57600080fd5b8035906020019184600183028401116401000000008311171561050157600080fd5b91939092600160a060020a0383351692602081013592919060608101906040013564010000000081111561053457600080fd5b82018360208201111561054657600080fd5b8035906020019184600183028401116401000000008311171561056857600080fd5b919350915035600160a060020a0316610bb1565b6101b8610ccc565b61027d6004803603604081101561059a57600080fd5b50600160a060020a038135169060200135610d2d565b61027d600480360360408110156105c657600080fd5b50600160a060020a038135169060200135610d9b565b61027d600480360360208110156105f257600080fd5b5035600160a060020a0316610daf565b6102996004803603604081101561061857600080fd5b50600160a060020a0381358116916020013516610dc3565b61031b610dee565b610299610eba565b6101b8610ec6565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106d45780601f106106a9576101008083540402835291602001916106d4565b820191906000526020600020905b8154815290600101906020018083116106b757829003601f168201915b505050505090505b90565b600854600160a060020a031690565b60006107026106fb610f27565b8484610f2b565b5060015b92915050565b60025490565b600061071f84848461101d565b6107958461072b610f27565b610790856040518060600160405280602881526020016118f760289139600160a060020a038a16600090815260016020526040812090610769610f27565b600160a060020a03168152602081019190915260400160002054919063ffffffff61117f16565b610f2b565b5060019392505050565b66038d7ea4c6800081565b6000806107c4856103e8670de0b6b3a76400005b046108ab565b6007549091506107dd90600160a060020a031682610d9b565b50600160a060020a0383161561081057610802856103e8670de0b6b3a76400006107be565b915061080e8383610d9b565b505b6000610822828463ffffffff61121916565b60085490915061084a90600160a060020a0316610845888463ffffffff61127616565b610d9b565b5060408051878152602081018790524381830152606081018590529051600160a060020a0386169133917f24c95b9bea47f62df4b9eea32c98c597eccfc5cac47f8477647be875ad925eee9181900360800190a3505050505050565b601290565b6000826108ba57506000610706565b816108c757506000610706565b6108ef670de0b6b3a76400006108e3858563ffffffff6112b816565b9063ffffffff61131416565b9392505050565b60065490565b60075474010000000000000000000000000000000000000000900460ff1690565b600061070261092a610f27565b84610790856001600061093b610f27565b600160a060020a03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61121916565b600854600160a060020a031633146109bd5760405160e560020a62461bcd0281526004018080602001828103825260218152602001806117a06021913960400191505060405180910390fd5b6006546109d8826109cc61070c565b9063ffffffff61121916565b1115610a2e576040805160e560020a62461bcd02815260206004820152601f60248201527f44617461546f6b656e54656d706c6174653a2063617020657863656564656400604482015290519081900360640190fd5b610a388282611356565b5050565b600854600160a060020a03163314610a885760405160e560020a62461bcd0281526004018080602001828103825260218152602001806117a06021913960400191505060405180910390fd5b6009805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383811691909117918290556040805133815292909116602083015280517fa24c529cc8b2d85b7dfb2ed0b4d7e9a816546212138b5d223bee13481e21be6b9281900390910190a150565b600160a060020a031660009081526020819052604090205490565b8115610b5e57610b208383610d9b565b610b5e5760405160e560020a62461bcd0281526004018080602001828103825260298152602001806117e76029913960400191505060405180910390fd5b604080518581526020810184905280820183905290513391600160a060020a038616917fce42555d11c2cca6143e7903829e154e074119544f907b3106e7368358825f199181900360600190a350505050565b60075460009074010000000000000000000000000000000000000000900460ff1615610c115760405160e560020a62461bcd02815260040180806020018281038252603581526020018061176b6035913960400191505060405180910390fd5b610cbe8a8a8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8e018190048102820181019092528c815292508c91508b908190840183828082843760009201919091525050604080516020601f8b018190048102820181019092528981528c93508b9250908a908a90819084018382808284376000920191909152508a9250611449915050565b9a9950505050505050505050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106d45780601f106106a9576101008083540402835291602001916106d4565b6000610702610d3a610f27565b84610790856040518060600160405280602581526020016119976025913960016000610d64610f27565b600160a060020a03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61117f16565b6000610702610da8610f27565b848461101d565b600854600160a060020a0391821691161490565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b600954600160a060020a03163314610e3a5760405160e560020a62461bcd0281526004018080602001828103825260328152602001806118806032913960400191505060405180910390fd5b60085460095460408051600160a060020a03938416815292909116602083015280517f96ab0400119a548d3cc4c74e857d0d9c427fe9df20d3d0d99af10cc292e6c8869281900390910190a1600980546008805473ffffffffffffffffffffffffffffffffffffffff19908116600160a060020a03841617909155169055565b670de0b6b3a764000081565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106d45780601f106106a9576101008083540402835291602001916106d4565b3390565b600160a060020a038316610f735760405160e560020a62461bcd0281526004018080602001828103825260248152602001806119736024913960400191505060405180910390fd5b600160a060020a038216610fbb5760405160e560020a62461bcd0281526004018080602001828103825260228152602001806117496022913960400191505060405180910390fd5b600160a060020a03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600160a060020a0383166110655760405160e560020a62461bcd02815260040180806020018281038252602581526020018061194e6025913960400191505060405180910390fd5b600160a060020a0382166110ad5760405160e560020a62461bcd0281526004018080602001828103825260238152602001806117266023913960400191505060405180910390fd5b6110f0816040518060600160405280602681526020016117c160269139600160a060020a038616600090815260208190526040902054919063ffffffff61117f16565b600160a060020a038085166000908152602081905260408082209390935590841681522054611125908263ffffffff61121916565b600160a060020a038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156112115760405160e560020a62461bcd0281526004018080602001828103825283818151815260200191508051906020019080838360005b838110156111d65781810151838201526020016111be565b50505050905090810190601f1680156112035780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156108ef576040805160e560020a62461bcd02815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60006108ef83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061117f565b6000826112c757506000610706565b828202828482816112d457fe5b04146108ef5760405160e560020a62461bcd0281526004018080602001828103825260218152602001806118b26021913960400191505060405180910390fd5b60006108ef83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611625565b600160a060020a0382166113b4576040805160e560020a62461bcd02815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6002546113c7908263ffffffff61121916565b600255600160a060020a0382166000908152602081905260409020546113f3908263ffffffff61121916565b600160a060020a0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000600160a060020a0385166114935760405160e560020a62461bcd0281526004018080602001828103825260308152602001806118106030913960400191505060405180910390fd5b600854600160a060020a0316156114de5760405160e560020a62461bcd02815260040180806020018281038252602f81526020018061191f602f913960400191505060405180910390fd5b600160a060020a0382166115265760405160e560020a62461bcd0281526004018080602001828103825260408152602001806118406040913960400191505060405180910390fd5b836115655760405160e560020a62461bcd0281526004018080602001828103825260248152602001806118d36024913960400191505060405180910390fd5b6006849055865161157d9060039060208a019061168d565b50825161159190600590602086019061168d565b5085516115a590600490602089019061168d565b50506008805473ffffffffffffffffffffffffffffffffffffffff19908116600160a060020a039687161790915560078054740100000000000000000000000000000000000000009216929095169190911774ff0000000000000000000000000000000000000000191681179384905560ff930492909216949350505050565b600081836116775760405160e560020a62461bcd0281526020600482018181528351602484015283519092839260449091019190850190808383600083156111d65781810151838201526020016111be565b50600083858161168357fe5b0495945050505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106116ce57805160ff19168380011785556116fb565b828001600101855582156116fb579182015b828111156116fb5782518255916020019190600101906116e0565b5061170792915061170b565b5090565b6106dc91905b80821115611707576000815560010161171156fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737344617461546f6b656e54656d706c6174653a20746f6b656e20696e7374616e636520616c726561647920696e697469616c697a656444617461546f6b656e54656d706c6174653a20696e76616c6964206d696e74657245524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636544617461546f6b656e54656d706c6174653a206661696c656420746f2066696e697368206f7264657244617461546f6b656e54656d706c6174653a20496e76616c6964206d696e7465722c20207a65726f206164647265737344617461546f6b656e54656d706c6174653a20496e76616c696420636f6d6d756e6974792066656520636f6c6c6563746f722c207a65726f206164647265737344617461546f6b656e54656d706c6174653a20696e76616c69642070726f706f736564206d696e7465722061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7744617461546f6b656e54656d706c6174653a20496e76616c6964206361702076616c756545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636544617461546f6b656e54656d706c6174653a20496e76616c6964206d696e7465722c207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa165627a7a72305820f5057ec66bc9a784ef4567bedf38fc27d3639f2638d6164ab40eb848c60bd59b002944617461546f6b656e54656d706c6174653a20496e76616c6964206d696e7465722c20207a65726f206164647265737344617461546f6b656e54656d706c6174653a20496e76616c696420636f6d6d756e6974792066656520636f6c6c6563746f722c207a65726f206164647265737344617461546f6b656e54656d706c6174653a20496e76616c6964206361702076616c756544617461546f6b656e54656d706c6174653a20496e76616c6964206d696e7465722c207a65726f2061646472657373", - "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101ab576000357c01000000000000000000000000000000000000000000000000000000009004806350d2fcc4116100fb578063a9059cbb116100b4578063dd62ed3e1161008e578063dd62ed3e14610602578063eb40024b14610630578063ec342ad014610638578063fde0e7a814610640576101ab565b8063a9059cbb146105b0578063aa271e1a146105dc578063b2263a5d146102e1576101ab565b806350d2fcc4146103c657806370a08231146103ec5780638ca0c059146104125780639070d2f81461044a57806395d89b411461057c578063a457c2d714610584576101ab565b8063300ae14111610168578063355274ea11610142578063355274ea1461035e578063392e53cd14610366578063395093511461036e57806340c10f191461039a576101ab565b8063300ae141146102e9578063313ce5671461031d57806334e731221461033b576101ab565b806306fdde03146101b0578063075461721461022d578063095ea7b31461025157806318160ddd1461029157806323b872dd146102ab578063294541c7146102e1575b600080fd5b6101b8610648565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101f25781810151838201526020016101da565b50505050905090810190601f16801561021f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102356106df565b60408051600160a060020a039092168252519081900360200190f35b61027d6004803603604081101561026757600080fd5b50600160a060020a0381351690602001356106ee565b604080519115158252519081900360200190f35b61029961070c565b60408051918252519081900360200190f35b61027d600480360360608110156102c157600080fd5b50600160a060020a03813581169160208101359091169060400135610712565b61029961079f565b61031b600480360360608110156102ff57600080fd5b5080359060208101359060400135600160a060020a03166107aa565b005b6103256108a6565b6040805160ff9092168252519081900360200190f35b6102996004803603604081101561035157600080fd5b50803590602001356108ab565b6102996108f6565b61027d6108fc565b61027d6004803603604081101561038457600080fd5b50600160a060020a03813516906020013561091d565b61031b600480360360408110156103b057600080fd5b50600160a060020a038135169060200135610971565b61031b600480360360208110156103dc57600080fd5b5035600160a060020a0316610a3c565b6102996004803603602081101561040257600080fd5b5035600160a060020a0316610af5565b61031b6004803603608081101561042857600080fd5b50803590600160a060020a036020820135169060408101359060600135610b10565b61027d600480360360c081101561046057600080fd5b81019060208101813564010000000081111561047b57600080fd5b82018360208201111561048d57600080fd5b803590602001918460018302840111640100000000831117156104af57600080fd5b9193909290916020810190356401000000008111156104cd57600080fd5b8201836020820111156104df57600080fd5b8035906020019184600183028401116401000000008311171561050157600080fd5b91939092600160a060020a0383351692602081013592919060608101906040013564010000000081111561053457600080fd5b82018360208201111561054657600080fd5b8035906020019184600183028401116401000000008311171561056857600080fd5b919350915035600160a060020a0316610bb1565b6101b8610ccc565b61027d6004803603604081101561059a57600080fd5b50600160a060020a038135169060200135610d2d565b61027d600480360360408110156105c657600080fd5b50600160a060020a038135169060200135610d9b565b61027d600480360360208110156105f257600080fd5b5035600160a060020a0316610daf565b6102996004803603604081101561061857600080fd5b50600160a060020a0381358116916020013516610dc3565b61031b610dee565b610299610eba565b6101b8610ec6565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106d45780601f106106a9576101008083540402835291602001916106d4565b820191906000526020600020905b8154815290600101906020018083116106b757829003601f168201915b505050505090505b90565b600854600160a060020a031690565b60006107026106fb610f27565b8484610f2b565b5060015b92915050565b60025490565b600061071f84848461101d565b6107958461072b610f27565b610790856040518060600160405280602881526020016118f760289139600160a060020a038a16600090815260016020526040812090610769610f27565b600160a060020a03168152602081019190915260400160002054919063ffffffff61117f16565b610f2b565b5060019392505050565b66038d7ea4c6800081565b6000806107c4856103e8670de0b6b3a76400005b046108ab565b6007549091506107dd90600160a060020a031682610d9b565b50600160a060020a0383161561081057610802856103e8670de0b6b3a76400006107be565b915061080e8383610d9b565b505b6000610822828463ffffffff61121916565b60085490915061084a90600160a060020a0316610845888463ffffffff61127616565b610d9b565b5060408051878152602081018790524381830152606081018590529051600160a060020a0386169133917f24c95b9bea47f62df4b9eea32c98c597eccfc5cac47f8477647be875ad925eee9181900360800190a3505050505050565b601290565b6000826108ba57506000610706565b816108c757506000610706565b6108ef670de0b6b3a76400006108e3858563ffffffff6112b816565b9063ffffffff61131416565b9392505050565b60065490565b60075474010000000000000000000000000000000000000000900460ff1690565b600061070261092a610f27565b84610790856001600061093b610f27565b600160a060020a03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61121916565b600854600160a060020a031633146109bd5760405160e560020a62461bcd0281526004018080602001828103825260218152602001806117a06021913960400191505060405180910390fd5b6006546109d8826109cc61070c565b9063ffffffff61121916565b1115610a2e576040805160e560020a62461bcd02815260206004820152601f60248201527f44617461546f6b656e54656d706c6174653a2063617020657863656564656400604482015290519081900360640190fd5b610a388282611356565b5050565b600854600160a060020a03163314610a885760405160e560020a62461bcd0281526004018080602001828103825260218152602001806117a06021913960400191505060405180910390fd5b6009805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383811691909117918290556040805133815292909116602083015280517fa24c529cc8b2d85b7dfb2ed0b4d7e9a816546212138b5d223bee13481e21be6b9281900390910190a150565b600160a060020a031660009081526020819052604090205490565b8115610b5e57610b208383610d9b565b610b5e5760405160e560020a62461bcd0281526004018080602001828103825260298152602001806117e76029913960400191505060405180910390fd5b604080518581526020810184905280820183905290513391600160a060020a038616917fce42555d11c2cca6143e7903829e154e074119544f907b3106e7368358825f199181900360600190a350505050565b60075460009074010000000000000000000000000000000000000000900460ff1615610c115760405160e560020a62461bcd02815260040180806020018281038252603581526020018061176b6035913960400191505060405180910390fd5b610cbe8a8a8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8e018190048102820181019092528c815292508c91508b908190840183828082843760009201919091525050604080516020601f8b018190048102820181019092528981528c93508b9250908a908a90819084018382808284376000920191909152508a9250611449915050565b9a9950505050505050505050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106d45780601f106106a9576101008083540402835291602001916106d4565b6000610702610d3a610f27565b84610790856040518060600160405280602581526020016119976025913960016000610d64610f27565b600160a060020a03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61117f16565b6000610702610da8610f27565b848461101d565b600854600160a060020a0391821691161490565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b600954600160a060020a03163314610e3a5760405160e560020a62461bcd0281526004018080602001828103825260328152602001806118806032913960400191505060405180910390fd5b60085460095460408051600160a060020a03938416815292909116602083015280517f96ab0400119a548d3cc4c74e857d0d9c427fe9df20d3d0d99af10cc292e6c8869281900390910190a1600980546008805473ffffffffffffffffffffffffffffffffffffffff19908116600160a060020a03841617909155169055565b670de0b6b3a764000081565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106d45780601f106106a9576101008083540402835291602001916106d4565b3390565b600160a060020a038316610f735760405160e560020a62461bcd0281526004018080602001828103825260248152602001806119736024913960400191505060405180910390fd5b600160a060020a038216610fbb5760405160e560020a62461bcd0281526004018080602001828103825260228152602001806117496022913960400191505060405180910390fd5b600160a060020a03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600160a060020a0383166110655760405160e560020a62461bcd02815260040180806020018281038252602581526020018061194e6025913960400191505060405180910390fd5b600160a060020a0382166110ad5760405160e560020a62461bcd0281526004018080602001828103825260238152602001806117266023913960400191505060405180910390fd5b6110f0816040518060600160405280602681526020016117c160269139600160a060020a038616600090815260208190526040902054919063ffffffff61117f16565b600160a060020a038085166000908152602081905260408082209390935590841681522054611125908263ffffffff61121916565b600160a060020a038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156112115760405160e560020a62461bcd0281526004018080602001828103825283818151815260200191508051906020019080838360005b838110156111d65781810151838201526020016111be565b50505050905090810190601f1680156112035780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156108ef576040805160e560020a62461bcd02815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60006108ef83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061117f565b6000826112c757506000610706565b828202828482816112d457fe5b04146108ef5760405160e560020a62461bcd0281526004018080602001828103825260218152602001806118b26021913960400191505060405180910390fd5b60006108ef83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611625565b600160a060020a0382166113b4576040805160e560020a62461bcd02815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6002546113c7908263ffffffff61121916565b600255600160a060020a0382166000908152602081905260409020546113f3908263ffffffff61121916565b600160a060020a0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000600160a060020a0385166114935760405160e560020a62461bcd0281526004018080602001828103825260308152602001806118106030913960400191505060405180910390fd5b600854600160a060020a0316156114de5760405160e560020a62461bcd02815260040180806020018281038252602f81526020018061191f602f913960400191505060405180910390fd5b600160a060020a0382166115265760405160e560020a62461bcd0281526004018080602001828103825260408152602001806118406040913960400191505060405180910390fd5b836115655760405160e560020a62461bcd0281526004018080602001828103825260248152602001806118d36024913960400191505060405180910390fd5b6006849055865161157d9060039060208a019061168d565b50825161159190600590602086019061168d565b5085516115a590600490602089019061168d565b50506008805473ffffffffffffffffffffffffffffffffffffffff19908116600160a060020a039687161790915560078054740100000000000000000000000000000000000000009216929095169190911774ff0000000000000000000000000000000000000000191681179384905560ff930492909216949350505050565b600081836116775760405160e560020a62461bcd0281526020600482018181528351602484015283519092839260449091019190850190808383600083156111d65781810151838201526020016111be565b50600083858161168357fe5b0495945050505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106116ce57805160ff19168380011785556116fb565b828001600101855582156116fb579182015b828111156116fb5782518255916020019190600101906116e0565b5061170792915061170b565b5090565b6106dc91905b80821115611707576000815560010161171156fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737344617461546f6b656e54656d706c6174653a20746f6b656e20696e7374616e636520616c726561647920696e697469616c697a656444617461546f6b656e54656d706c6174653a20696e76616c6964206d696e74657245524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636544617461546f6b656e54656d706c6174653a206661696c656420746f2066696e697368206f7264657244617461546f6b656e54656d706c6174653a20496e76616c6964206d696e7465722c20207a65726f206164647265737344617461546f6b656e54656d706c6174653a20496e76616c696420636f6d6d756e6974792066656520636f6c6c6563746f722c207a65726f206164647265737344617461546f6b656e54656d706c6174653a20696e76616c69642070726f706f736564206d696e7465722061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7744617461546f6b656e54656d706c6174653a20496e76616c6964206361702076616c756545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636544617461546f6b656e54656d706c6174653a20496e76616c6964206d696e7465722c207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa165627a7a72305820f5057ec66bc9a784ef4567bedf38fc27d3639f2638d6164ab40eb848c60bd59b0029", - "sourceMap": "488:10804:12:-;;;775:35;;;-1:-1:-1;;;;;;775:35:12;;;2479:369;5:2:-1;;;;30:1;27;20:12;5:2;2479:369:12;;;;;;;;;;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;2479:369:12;;;;;;19:11:-1;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;213:10;;261:11;244:29;;285:43;;;282:58;-1:-1;233:115;230:2;;;361:1;358;351:12;230:2;0:372;;2479:369:12;;;;;;;19:11:-1;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;213:10;;261:11;244:29;;285:43;;;282:58;-1:-1;233:115;230:2;;;361:1;358;351:12;230:2;-1:-1;;2479:369:12;;;;;;;;;;;;;;;;;;;;19:11:-1;11:20;;8:2;;;44:1;41;34:12;8:2;62:21;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;213:10;;261:11;244:29;;285:43;;;282:58;-1:-1;233:115;230:2;;;361:1;358;351:12;230:2;-1:-1;;2479:369:12;;;;;;;-1:-1:-1;2479:369:12;-1:-1:-1;2694:147:12;2719:4;2737:6;2757:13;2784:3;2479:369;;2694:11;;;;:147;:::i;:::-;;2479:369;;;;;;488:10804;;4333:980;4560:4;-1:-1:-1;;;;;4601:27:12;;4580:123;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4735:7;;-1:-1:-1;;;;;4735:7:12;:21;4714:116;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;4862:26:12;;4841:137;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5010:8;4989:91;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5090:4;:10;;;5110:12;;;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;5132:12:12;;;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;5154:16:12;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;;5180:7:12;:23;;-1:-1:-1;;;;;;5180:23:12;;;-1:-1:-1;;;;;5180:23:12;;;;;;;5213:22;:37;;5260:18;5213:37;;;;;;;;;;-1:-1:-1;;;;;;5260:18:12;;;;;;;;5295:11;;;;;;;4333:980;-1:-1:-1;;;;4333:980:12:o;488:10804::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;488:10804:12;;;-1:-1:-1;488:10804:12;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;", - "deployedSourceMap": "488:10804:12:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;488:10804:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9103:82;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;9103:82:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10415:109;;;:::i;:::-;;;;-1:-1:-1;;;;;10415:109:12;;;;;;;;;;;;;;2500:149:17;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2500:149:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;1559:89;;;:::i;:::-;;;;;;;;;;;;;;;;3107:300;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;3107:300:17;;;;;;;;;;;;;;;;;:::i;998:64:12:-;;;:::i;6218:860::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;6218:860:12;;;;;;;;;;;-1:-1:-1;;;;;6218:860:12;;:::i;:::-;;9760:82;;;:::i;:::-;;;;;;;;;;;;;;;;;;;11016:274;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;11016:274:12;;;;;;;:::i;9946:75::-;;;:::i;10684:88::-;;;:::i;3802:207:17:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;3802:207:17;;;;;;;;:::i;5630:271:12:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;5630:271:12;;;;;;;;:::i;8273:221::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;8273:221:12;-1:-1:-1;;;;;8273:221:12;;:::i;1706:108:17:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1706:108:17;-1:-1:-1;;;;;1706:108:17;;:::i;7577:485:12:-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;7577:485:12;;;-1:-1:-1;;;;;7577:485:12;;;;;;;;;;;;;;;:::i;3425:442::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;3425:442:12;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;3425:442:12;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;3425:442:12;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;3425:442:12;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;3425:442:12;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;3425:442:12;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;3425:442:12;;;;-1:-1:-1;;;;;3425:442:12;;;;;;;;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;3425:442:12;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;3425:442:12;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;3425:442:12;;-1:-1:-1;3425:442:12;-1:-1:-1;3425:442:12;-1:-1:-1;;;;;3425:442:12;;:::i;9300:86::-;;;:::i;4496:258:17:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;4496:258:17;;;;;;;;:::i;2017:155::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2017:155:17;;;;;;;;:::i;10233:107:12:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;10233:107:12;-1:-1:-1;;;;;10233:107:12;;:::i;2230:132:17:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2230:132:17;;;;;;;;;;:::i;8643:351:12:-;;;:::i;882:37::-;;;:::i;9511:82::-;;;:::i;9103:::-;9173:5;9166:12;;;;;;;;-1:-1:-1;;9166:12:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9141:13;;9166:12;;9173:5;;9166:12;;9173:5;9166:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9103:82;;:::o;10415:109::-;10510:7;;-1:-1:-1;;;;;10510:7:12;10415:109;:::o;2500:149:17:-;2566:4;2582:39;2591:12;:10;:12::i;:::-;2605:7;2614:6;2582:8;:39::i;:::-;-1:-1:-1;2638:4:17;2500:149;;;;;:::o;1559:89::-;1629:12;;1559:89;:::o;3107:300::-;3196:4;3212:36;3222:6;3230:9;3241:6;3212:9;:36::i;:::-;3258:121;3267:6;3275:12;:10;:12::i;:::-;3289:89;3327:6;3289:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3289:19:17;;;;;;:11;:19;;;;;;3309:12;:10;:12::i;:::-;-1:-1:-1;;;;;3289:33:17;;;;;;;;;;;;-1:-1:-1;3289:33:17;;;:89;;:37;:89;:::i;:::-;3258:8;:121::i;:::-;-1:-1:-1;3396:4:17;3107:300;;;;;:::o;998:64:12:-;1051:11;998:64;:::o;6218:860::-;6360:17;;6414:86;6440:6;988:4;913:6;981:11;;6414:12;:86::i;:::-;6519:22;;6391:109;;-1:-1:-1;6510:46:12;;-1:-1:-1;;;;;6519:22:12;6391:109;6510:8;:46::i;:::-;-1:-1:-1;;;;;;6569:30:12;;;6566:217;;6626:95;6656:6;1058:4;913:6;1051:11;;6626:95;6614:107;;6735:37;6744:16;6762:9;6735:8;:37::i;:::-;;6566:217;6792:16;6811:27;:12;6828:9;6811:27;:16;:27;:::i;:::-;6857:7;;6792:46;;-1:-1:-1;6848:39:12;;-1:-1:-1;;;;;6857:7:12;6866:20;:6;6792:46;6866:20;:10;:20;:::i;:::-;6848:8;:39::i;:::-;-1:-1:-1;6903:168:12;;;;;;;;;;;;6996:12;6903:168;;;;;;;;;;;;-1:-1:-1;;;;;6903:168:12;;;6929:10;;6903:168;;;;;;;;;6218:860;;;;;;:::o;9760:82::-;723:2;9760:82;:::o;11016:274::-;11143:7;11169:11;11166:24;;-1:-1:-1;11189:1:12;11182:8;;11166:24;11203:18;11200:31;;-1:-1:-1;11230:1:12;11223:8;;11200:31;11248:35;913:6;11248:25;:6;11259:13;11248:25;:10;:25;:::i;:::-;:29;:35;:29;:35;:::i;:::-;11241:42;11016:274;-1:-1:-1;;;11016:274:12:o;9946:75::-;10010:4;;9946:75;:::o;10684:88::-;10754:11;;;;;;;;10684:88::o;3802:207:17:-;3882:4;3898:83;3907:12;:10;:12::i;:::-;3921:7;3930:50;3969:10;3930:11;:25;3942:12;:10;:12::i;:::-;-1:-1:-1;;;;;3930:25:17;;;;;;;;;;;;;;;;;-1:-1:-1;3930:25:17;;;:34;;;;;;;;;;;:50;:38;:50;:::i;5630:271:12:-;1939:7;;-1:-1:-1;;;;;1939:7:12;1925:10;:21;1904:102;;;;-1:-1:-1;;;;;1904:102:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5801:4;;5773:24;5791:5;5773:13;:11;:13::i;:::-;:17;:24;:17;:24;:::i;:::-;:32;;5752:111;;;;;-1:-1:-1;;;;;5752:111:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;5873:21;5879:7;5888:5;5873;:21::i;:::-;5630:271;;:::o;8273:221::-;1939:7;;-1:-1:-1;;;;;1939:7:12;1925:10;:21;1904:102;;;;-1:-1:-1;;;;;1904:102:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8368:15;:27;;-1:-1:-1;;8368:27:12;-1:-1:-1;;;;;8368:27:12;;;;;;;;;;;8410:77;;;8438:10;8410:77;;8462:15;;;;8410:77;;;;;;;;;;;;;;;;8273:221;:::o;1706:108:17:-;-1:-1:-1;;;;;1789:18:17;1763:7;1789:18;;;;;;;;;;;;1706:108::o;7577:485:12:-;7746:11;;7741:159;;7799:26;7808:8;7818:6;7799:8;:26::i;:::-;7774:126;;;;-1:-1:-1;;;;;7774:126:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7916:139;;;;;;;;;;;;;;;;;;;;8035:10;;-1:-1:-1;;;;;7916:139:12;;;;;;;;;;;;7577:485;;;;:::o;3425:442::-;1754:11;;3686:4;;1754:11;;;;;1753:12;1732:112;;;;-1:-1:-1;;;;;1732:112:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3713:147;3738:4;;3713:147;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;;3713:147:12;;;;137:4:-1;3713:147:12;;;;;;;;;;;;;;;;;;-1:-1:-1;3756:6:12;;-1:-1:-1;3756:6:12;;;;3713:147;;3756:6;;;;3713:147;1:33:-1;99:1;81:16;;74:27;;;;-1:-1;;3713:147:12;;;;137:4:-1;3713:147:12;;;;;;;;;;;;;;;;;3776:13;;-1:-1:-1;3803:3:12;;-1:-1:-1;3713:147:12;3820:4;;;;;;3713:147;;3820:4;;;;3713:147;1:33:-1;99:1;81:16;;74:27;;;;-1:-1;3838:12:12;;-1:-1:-1;3713:11:12;;-1:-1:-1;;3713:147:12:i;:::-;3706:154;3425:442;-1:-1:-1;;;;;;;;;;3425:442:12:o;9300:86::-;9372:7;9365:14;;;;;;;;-1:-1:-1;;9365:14:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9340:13;;9365:14;;9372:7;;9365:14;;9372:7;9365:14;;;;;;;;;;;;;;;;;;;;;;;;4496:258:17;4581:4;4597:129;4606:12;:10;:12::i;:::-;4620:7;4629:96;4668:15;4629:96;;;;;;;;;;;;;;;;;:11;:25;4641:12;:10;:12::i;:::-;-1:-1:-1;;;;;4629:25:17;;;;;;;;;;;;;;;;;-1:-1:-1;4629:25:17;;;:34;;;;;;;;;;;:96;;:38;:96;:::i;2017:155::-;2086:4;2102:42;2112:12;:10;:12::i;:::-;2126:9;2137:6;2102:9;:42::i;10233:107:12:-;10314:7;;-1:-1:-1;;;;;10314:18:12;;;:7;;:18;;10233:107::o;2230:132:17:-;-1:-1:-1;;;;;2328:18:17;;;2302:7;2328:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;2230:132::o;8643:351:12:-;8734:15;;-1:-1:-1;;;;;8734:15:12;8720:10;:29;8699:126;;;;-1:-1:-1;;;;;8699:126:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8868:7;;8889:15;;8840:74;;;-1:-1:-1;;;;;8868:7:12;;;8840:74;;8889:15;;;;8840:74;;;;;;;;;;;;;;;;8934:15;;;8924:7;:25;;-1:-1:-1;;8924:25:12;;;-1:-1:-1;;;;;8934:15:12;;8924:25;;;;8959:28;;;8643:351::o;882:37::-;913:6;882:37;:::o;9511:82::-;9581:5;9574:12;;;;;;;;-1:-1:-1;;9574:12:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9549:13;;9574:12;;9581:5;;9574:12;;9581:5;9574:12;;;;;;;;;;;;;;;;;;;;;;;;788:96:14;867:10;788:96;:::o;7350:332:17:-;-1:-1:-1;;;;;7443:19:17;;7435:68;;;;-1:-1:-1;;;;;7435:68:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;7521:21:17;;7513:68;;;;-1:-1:-1;;;;;7513:68:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;7592:18:17;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;7643:32;;;;;;;;;;;;;;;;;7350:332;;;:::o;5228:464::-;-1:-1:-1;;;;;5325:20:17;;5317:70;;;;-1:-1:-1;;;;;5317:70:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5405:23:17;;5397:71;;;;-1:-1:-1;;;;;5397:71:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5499;5521:6;5499:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5499:17:17;;:9;:17;;;;;;;;;;;;:71;;:21;:71;:::i;:::-;-1:-1:-1;;;;;5479:17:17;;;:9;:17;;;;;;;;;;;:91;;;;5603:20;;;;;;;:32;;5628:6;5603:32;:24;:32;:::i;:::-;-1:-1:-1;;;;;5580:20:17;;;:9;:20;;;;;;;;;;;;:55;;;;5650:35;;;;;;;5580:20;;5650:35;;;;;;;;;;;;;5228:464;;;:::o;1732:187:15:-;1818:7;1853:12;1845:6;;;;1837:29;;;;-1:-1:-1;;;;;1837:29:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;1837:29:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1888:5:15;;;1732:187::o;834:176::-;892:7;923:5;;;946:6;;;;938:46;;;;;-1:-1:-1;;;;;938:46:15;;;;;;;;;;;;;;;;;;;;;;;;;;;1274:134;1332:7;1358:43;1362:1;1365;1358:43;;;;;;;;;;;;;;;;;:3;:43::i;2159:459::-;2217:7;2458:6;2454:45;;-1:-1:-1;2487:1:15;2480:8;;2454:45;2521:5;;;2525:1;2521;:5;:1;2544:5;;;;;:10;2536:56;;;;-1:-1:-1;;;;;2536:56:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3073:130;3131:7;3157:39;3161:1;3164;3157:39;;;;;;;;;;;;;;;;;:3;:39::i;5962:302:17:-;-1:-1:-1;;;;;6037:21:17;;6029:65;;;;;-1:-1:-1;;;;;6029:65:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;6120:12;;:24;;6137:6;6120:24;:16;:24;:::i;:::-;6105:12;:39;-1:-1:-1;;;;;6175:18:17;;:9;:18;;;;;;;;;;;:30;;6198:6;6175:30;:22;:30;:::i;:::-;-1:-1:-1;;;;;6154:18:17;;:9;:18;;;;;;;;;;;:51;;;;6220:37;;;;;;;6154:18;;:9;;6220:37;;;;;;;;;;5962:302;;:::o;4333:980:12:-;4560:4;-1:-1:-1;;;;;4601:27:12;;4580:123;;;;-1:-1:-1;;;;;4580:123:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4735:7;;-1:-1:-1;;;;;4735:7:12;:21;4714:116;;;;-1:-1:-1;;;;;4714:116:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;4862:26:12;;4841:137;;;;-1:-1:-1;;;;;4841:137:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5010:8;4989:91;;;;-1:-1:-1;;;;;4989:91:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5090:4;:10;;;5110:12;;;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;5132:12:12;;;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;5154:16:12;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;;5180:7:12;:23;;-1:-1:-1;;5180:23:12;;;-1:-1:-1;;;;;5180:23:12;;;;;;;5213:22;:37;;5260:18;5213:37;;;;;;;;;;-1:-1:-1;;5260:18:12;;;;;;;;5295:11;;;;;;;4333:980;-1:-1:-1;;;;4333:980:12:o;3718:338:15:-;3804:7;3904:12;3897:5;3889:28;;;;-1:-1:-1;;;;;3889:28:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;3889:28:15;;3927:9;3943:1;3939;:5;;;;;;;3718:338;-1:-1:-1;;;;;3718:338:15:o;488:10804:12:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;488:10804:12;;;-1:-1:-1;488:10804:12;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;", - "source": "pragma solidity 0.5.7;\n// Copyright BigchainDB GmbH and Ocean Protocol contributors\n// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)\n// Code is Apache-2.0 and docs are CC-BY-4.0\n\nimport '../interfaces/IERC20Template.sol';\nimport 'openzeppelin-solidity/contracts/token/ERC20/ERC20.sol';\n\n\n/**\n* @title DataTokenTemplate\n* \n* @dev DataTokenTemplate is an ERC20 compliant token template\n* Used by the factory contract as a bytecode reference to \n* deploy new DataTokens.\n*/\ncontract DataTokenTemplate is IERC20Template, ERC20 {\n using SafeMath for uint256;\n\n string private _name;\n string private _symbol;\n string private _blob;\n uint256 private _cap;\n uint8 private constant _decimals = 18;\n address private _communityFeeCollector;\n bool private initialized = false;\n address private _minter;\n address private _proposedMinter;\n uint256 public constant BASE = 10**18;\n uint256 public constant BASE_COMMUNITY_FEE_PERCENTAGE = BASE / 1000;\n uint256 public constant BASE_MARKET_FEE_PERCENTAGE = BASE / 1000;\n\n event OrderStarted(\n address indexed consumer, \n uint256 amount, \n uint256 serviceId, \n uint256 startedAt,\n address indexed mrktFeeCollector,\n uint256 marketFee\n );\n\n event OrderFinished(\n bytes32 orderTxId, \n address indexed consumer, \n uint256 amount, \n uint256 serviceId, \n address indexed provider\n );\n\n event MinterProposed(\n address currentMinter,\n address newMinter\n );\n\n event MinterApproved(\n address currentMinter,\n address newMinter\n );\n\n modifier onlyNotInitialized() {\n require(\n !initialized,\n 'DataTokenTemplate: token instance already initialized'\n );\n _;\n }\n \n modifier onlyMinter() {\n require(\n msg.sender == _minter,\n 'DataTokenTemplate: invalid minter' \n );\n _;\n }\n\n /**\n * @dev constructor\n * Called prior contract deployment\n * @param name refers to a template DataToken name\n * @param symbol refers to a template DataToken symbol\n * @param minterAddress refers to an address that has minter role\n * @param cap the total ERC20 cap\n * @param blob data string refering to the resolver for the metadata\n * @param feeCollector it is the community fee collector address\n */\n constructor(\n string memory name,\n string memory symbol,\n address minterAddress,\n uint256 cap,\n string memory blob,\n address feeCollector\n )\n public\n {\n _initialize(\n name,\n symbol,\n minterAddress,\n cap,\n blob,\n feeCollector\n );\n }\n \n /**\n * @dev initialize\n * Called prior contract initialization (e.g creating new DataToken instance)\n * Calls private _initialize function. Only if contract is not initialized.\n * @param name refers to a new DataToken name\n * @param symbol refers to a nea DataToken symbol\n * @param minterAddress refers to an address that has minter rights\n * @param cap the total ERC20 cap\n * @param blob data string refering to the resolver for the metadata\n * @param feeCollector it is the community fee collector address\n */\n function initialize(\n string calldata name,\n string calldata symbol,\n address minterAddress,\n uint256 cap,\n string calldata blob,\n address feeCollector\n ) \n external\n onlyNotInitialized\n returns(bool)\n {\n return _initialize(\n name,\n symbol,\n minterAddress,\n cap,\n blob,\n feeCollector\n );\n }\n\n /**\n * @dev _initialize\n * Private function called on contract initialization.\n * @param name refers to a new DataToken name\n * @param symbol refers to a nea DataToken symbol\n * @param minterAddress refers to an address that has minter rights\n * @param cap the total ERC20 cap\n * @param blob data string refering to the resolver for the metadata\n * @param feeCollector it is the community fee collector address\n */\n function _initialize(\n string memory name,\n string memory symbol,\n address minterAddress,\n uint256 cap,\n string memory blob,\n address feeCollector\n )\n private\n returns(bool)\n {\n require(\n minterAddress != address(0), \n 'DataTokenTemplate: Invalid minter, zero address'\n );\n\n require(\n _minter == address(0), \n 'DataTokenTemplate: Invalid minter, zero address'\n );\n\n require(\n feeCollector != address(0),\n 'DataTokenTemplate: Invalid community fee collector, zero address'\n );\n\n require(\n cap != 0,\n 'DataTokenTemplate: Invalid cap value'\n );\n _cap = cap;\n _name = name;\n _blob = blob;\n _symbol = symbol;\n _minter = minterAddress;\n _communityFeeCollector = feeCollector;\n initialized = true;\n return initialized;\n }\n\n /**\n * @dev mint\n * Only the minter address can call it.\n * msg.value should be higher than zero and gt or eq minting fee\n * @param account refers to an address that token is going to be minted to.\n * @param value refers to amount of tokens that is going to be minted.\n */\n function mint(\n address account,\n uint256 value\n ) \n external \n onlyMinter \n {\n require(\n totalSupply().add(value) <= _cap, \n 'DataTokenTemplate: cap exceeded'\n );\n _mint(account, value);\n }\n\n /**\n * @dev startOrder\n * called by consumer prior ordering a service consume on a marketplace\n * @param amount refers to amount of tokens that is going to be transfered.\n * @param serviceId service index in the metadata\n * @param mrktFeeCollector marketplace fee collector\n */\n function startOrder(\n uint256 amount,\n uint256 serviceId,\n address mrktFeeCollector\n )\n external\n {\n uint256 marketFee = 0;\n uint256 communityFee = calculateFee(\n amount, \n BASE_COMMUNITY_FEE_PERCENTAGE\n );\n transfer(_communityFeeCollector, communityFee);\n if(mrktFeeCollector != address(0)){\n marketFee = calculateFee(\n amount, \n BASE_MARKET_FEE_PERCENTAGE\n );\n transfer(mrktFeeCollector, marketFee);\n }\n uint256 totalFee = communityFee.add(marketFee);\n transfer(_minter, amount.sub(totalFee));\n\n emit OrderStarted(\n msg.sender,\n amount,\n serviceId,\n block.number,\n mrktFeeCollector,\n marketFee\n );\n }\n\n /**\n * @dev finishOrder\n * called by provider prior completing service delivery only\n * if there is a partial or full refund.\n * @param orderTxId refers to the transaction Id of startOrder acts \n * as a payment reference.\n * @param consumer refers to an address that has consumed that service.\n * @param amount refers to amount of tokens that is going to be transfered.\n * @param serviceId service index in the metadata.\n */\n function finishOrder(\n bytes32 orderTxId, \n address consumer, \n uint256 amount,\n uint256 serviceId\n )\n external\n {\n if ( amount != 0 ) \n require(\n transfer(consumer, amount),\n 'DataTokenTemplate: failed to finish order'\n );\n\n emit OrderFinished(\n orderTxId, \n consumer, \n amount, \n serviceId, \n msg.sender\n );\n }\n\n /**\n * @dev proposeMinter\n * It proposes a new token minter address.\n * Only the current minter can call it.\n * @param newMinter refers to a new token minter address.\n */\n function proposeMinter(address newMinter) \n external \n onlyMinter \n {\n _proposedMinter = newMinter;\n emit MinterProposed(\n msg.sender,\n _proposedMinter\n );\n }\n\n /**\n * @dev approveMinter\n * It approves a new token minter address.\n * Only the current minter can call it.\n */\n function approveMinter()\n external\n {\n require(\n msg.sender == _proposedMinter,\n 'DataTokenTemplate: invalid proposed minter address'\n );\n emit MinterApproved(\n _minter,\n _proposedMinter\n );\n _minter = _proposedMinter;\n _proposedMinter = address(0);\n }\n\n /**\n * @dev name\n * It returns the token name.\n * @return DataToken name.\n */\n function name() external view returns(string memory) {\n return _name;\n }\n\n /**\n * @dev symbol\n * It returns the token symbol.\n * @return DataToken symbol.\n */\n function symbol() external view returns(string memory) {\n return _symbol;\n }\n\n /**\n * @dev blob\n * It returns the blob (e.g https://123.com).\n * @return DataToken blob.\n */\n function blob() external view returns(string memory) {\n return _blob;\n }\n\n /**\n * @dev decimals\n * It returns the token decimals.\n * how many supported decimal points\n * @return DataToken decimals.\n */\n function decimals() external view returns(uint8) {\n return _decimals;\n }\n\n /**\n * @dev cap\n * it returns the capital.\n * @return DataToken cap.\n */\n function cap() external view returns (uint256) {\n return _cap;\n }\n\n /**\n * @dev isMinter\n * It takes the address and checks whether it has a minter role.\n * @param account refers to the address.\n * @return true if account has a minter role.\n */\n function isMinter(address account) external view returns(bool) {\n return (_minter == account);\n } \n\n /**\n * @dev minter\n * @return minter's address.\n */\n function minter()\n external\n view \n returns(address)\n {\n return _minter;\n }\n\n /**\n * @dev isInitialized\n * It checks whether the contract is initialized.\n * @return true if the contract is initialized.\n */ \n function isInitialized() external view returns(bool) {\n return initialized;\n }\n\n /**\n * @dev calculateFee\n * giving a fee percentage, and amount it calculates the actual fee\n * @param amount the amount of token\n * @param feePercentage the fee percentage \n * @return the token fee.\n */ \n function calculateFee(\n uint256 amount,\n uint256 feePercentage\n )\n public\n pure\n returns(uint256)\n {\n if(amount == 0) return 0;\n if(feePercentage == 0) return 0;\n return amount.mul(feePercentage).div(BASE);\n }\n}\n", + "metadata": "{\"compiler\":{\"version\":\"0.5.7+commit.6da8b019\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"minter\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"spender\",\"type\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"sender\",\"type\":\"address\"},{\"name\":\"recipient\",\"type\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"BASE_MARKET_FEE_PERCENTAGE\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"amount\",\"type\":\"uint256\"},{\"name\":\"serviceId\",\"type\":\"uint256\"},{\"name\":\"mrktFeeCollector\",\"type\":\"address\"}],\"name\":\"startOrder\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"name\":\"\",\"type\":\"uint8\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"amount\",\"type\":\"uint256\"},{\"name\":\"feePercentage\",\"type\":\"uint256\"}],\"name\":\"calculateFee\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"cap\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"isInitialized\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"spender\",\"type\":\"address\"},{\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"account\",\"type\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"mint\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"newMinter\",\"type\":\"address\"}],\"name\":\"proposeMinter\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"orderTxId\",\"type\":\"bytes32\"},{\"name\":\"consumer\",\"type\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\"},{\"name\":\"serviceId\",\"type\":\"uint256\"}],\"name\":\"finishOrder\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"symbol\",\"type\":\"string\"},{\"name\":\"minterAddress\",\"type\":\"address\"},{\"name\":\"cap\",\"type\":\"uint256\"},{\"name\":\"blob\",\"type\":\"string\"},{\"name\":\"feeCollector\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"spender\",\"type\":\"address\"},{\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"recipient\",\"type\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"account\",\"type\":\"address\"}],\"name\":\"isMinter\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"BASE_COMMUNITY_FEE_PERCENTAGE\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"owner\",\"type\":\"address\"},{\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"approveMinter\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"BASE\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"blob\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"symbol\",\"type\":\"string\"},{\"name\":\"minterAddress\",\"type\":\"address\"},{\"name\":\"cap\",\"type\":\"uint256\"},{\"name\":\"blob\",\"type\":\"string\"},{\"name\":\"feeCollector\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"consumer\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"serviceId\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"timestamp\",\"type\":\"uint256\"},{\"indexed\":true,\"name\":\"mrktFeeCollector\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"marketFee\",\"type\":\"uint256\"}],\"name\":\"OrderStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"orderTxId\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"consumer\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"serviceId\",\"type\":\"uint256\"},{\"indexed\":true,\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"OrderFinished\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"currentMinter\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"newMinter\",\"type\":\"address\"}],\"name\":\"MinterProposed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"currentMinter\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"newMinter\",\"type\":\"address\"}],\"name\":\"MinterApproved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"}],\"devdoc\":{\"details\":\"DataTokenTemplate is an ERC20 compliant token template Used by the factory contract as a bytecode reference to deploy new DataTokens.\",\"methods\":{\"allowance(address,address)\":{\"details\":\"See {IERC20-allowance}.\"},\"approve(address,uint256)\":{\"details\":\"See {IERC20-approve}. * Requirements: * - `spender` cannot be the zero address.\"},\"approveMinter()\":{\"details\":\"approveMinter It approves a new token minter address. Only the current minter can call it.\"},\"balanceOf(address)\":{\"details\":\"See {IERC20-balanceOf}.\"},\"blob()\":{\"details\":\"blob It returns the blob (e.g https://123.com).\",\"return\":\"DataToken blob.\"},\"calculateFee(uint256,uint256)\":{\"details\":\"calculateFee giving a fee percentage, and amount it calculates the actual fee\",\"params\":{\"amount\":\"the amount of token\",\"feePercentage\":\"the fee percentage \"},\"return\":\"the token fee.\"},\"cap()\":{\"details\":\"cap it returns the capital.\",\"return\":\"DataToken cap.\"},\"constructor\":{\"details\":\"constructor Called prior contract deployment\",\"params\":{\"blob\":\"data string refering to the resolver for the metadata\",\"cap\":\"the total ERC20 cap\",\"feeCollector\":\"it is the community fee collector address\",\"minterAddress\":\"refers to an address that has minter role\",\"name\":\"refers to a template DataToken name\",\"symbol\":\"refers to a template DataToken symbol\"}},\"decimals()\":{\"details\":\"decimals It returns the token decimals. how many supported decimal points\",\"return\":\"DataToken decimals.\"},\"decreaseAllowance(address,uint256)\":{\"details\":\"Atomically decreases the allowance granted to `spender` by the caller. * This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. * Emits an {Approval} event indicating the updated allowance. * Requirements: * - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`.\"},\"finishOrder(bytes32,address,uint256,uint256)\":{\"details\":\"finishOrder called by provider prior completing service delivery only if there is a partial or full refund.\",\"params\":{\"amount\":\"refers to amount of tokens that is going to be transfered.\",\"consumer\":\"refers to an address that has consumed that service.\",\"orderTxId\":\"refers to the transaction Id of startOrder acts as a payment reference.\",\"serviceId\":\"service index in the metadata.\"}},\"increaseAllowance(address,uint256)\":{\"details\":\"Atomically increases the allowance granted to `spender` by the caller. * This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. * Emits an {Approval} event indicating the updated allowance. * Requirements: * - `spender` cannot be the zero address.\"},\"initialize(string,string,address,uint256,string,address)\":{\"details\":\"initialize Called prior contract initialization (e.g creating new DataToken instance) Calls private _initialize function. Only if contract is not initialized.\",\"params\":{\"blob\":\"data string refering to the resolver for the metadata\",\"cap\":\"the total ERC20 cap\",\"feeCollector\":\"it is the community fee collector address\",\"minterAddress\":\"refers to an address that has minter rights\",\"name\":\"refers to a new DataToken name\",\"symbol\":\"refers to a nea DataToken symbol\"}},\"isInitialized()\":{\"details\":\"isInitialized It checks whether the contract is initialized.\",\"return\":\"true if the contract is initialized.\"},\"isMinter(address)\":{\"details\":\"isMinter It takes the address and checks whether it has a minter role.\",\"params\":{\"account\":\"refers to the address.\"},\"return\":\"true if account has a minter role.\"},\"mint(address,uint256)\":{\"details\":\"mint Only the minter address can call it. msg.value should be higher than zero and gt or eq minting fee\",\"params\":{\"account\":\"refers to an address that token is going to be minted to.\",\"value\":\"refers to amount of tokens that is going to be minted.\"}},\"minter()\":{\"details\":\"minter\",\"return\":\"minter's address.\"},\"name()\":{\"details\":\"name It returns the token name.\",\"return\":\"DataToken name.\"},\"proposeMinter(address)\":{\"details\":\"proposeMinter It proposes a new token minter address. Only the current minter can call it.\",\"params\":{\"newMinter\":\"refers to a new token minter address.\"}},\"startOrder(uint256,uint256,address)\":{\"details\":\"startOrder called by consumer prior ordering a service consume on a marketplace\",\"params\":{\"amount\":\"refers to amount of tokens that is going to be transfered.\",\"mrktFeeCollector\":\"marketplace fee collector\",\"serviceId\":\"service index in the metadata\"}},\"symbol()\":{\"details\":\"symbol It returns the token symbol.\",\"return\":\"DataToken symbol.\"},\"totalSupply()\":{\"details\":\"See {IERC20-totalSupply}.\"},\"transfer(address,uint256)\":{\"details\":\"See {IERC20-transfer}. * Requirements: * - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"See {IERC20-transferFrom}. * Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; * Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for `sender`'s tokens of at least `amount`.\"}},\"title\":\"DataTokenTemplate \"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/ahmedali/Desktop/work/ocean-contracts/contracts/templates/DataTokenTemplate.sol\":\"DataTokenTemplate\"},\"evmVersion\":\"byzantium\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/ahmedali/Desktop/work/ocean-contracts/contracts/interfaces/IERC20Template.sol\":{\"keccak256\":\"0x022ebed2ba4949e96a05cc394cf690d8fd3190a4733cebe8cbe930ac25cfde18\",\"urls\":[\"bzzr://2fa3d5cae14f0af7d78f6e1d13bc41854082c03ab2f86462ebb09afda88ee6e9\"]},\"/Users/ahmedali/Desktop/work/ocean-contracts/contracts/templates/DataTokenTemplate.sol\":{\"keccak256\":\"0x1c2c6097cbdfa100832dfe8003cd682de7d334a8988ab3a816237c4eaf5bba84\",\"urls\":[\"bzzr://dce2268c0366c5be94f4f9cb2d7ef4995f1da6a5dec23d2050e15b310fd53ce7\"]},\"openzeppelin-solidity/contracts/GSN/Context.sol\":{\"keccak256\":\"0x90a3995645af7562d84b9d69363ffa5ae7217714ab61e951bf7bc450f40e4061\",\"urls\":[\"bzzr://51482c01bddf23793bddee43b60ab9578a62948a4f2082def24ea792a553b055\"]},\"openzeppelin-solidity/contracts/math/SafeMath.sol\":{\"keccak256\":\"0x640b6dee7a4b830bdfd52b5031a07fc2b12209f5b2e29e5d364a7d37f69d8076\",\"urls\":[\"bzzr://292843005e754e752644f767477ec5ad7a1ffc91ddb18c38b8079c62f3993cad\"]},\"openzeppelin-solidity/contracts/token/ERC20/ERC20.sol\":{\"keccak256\":\"0xb15af804e2bc97db51e4e103f13de9fe13f87e6b835d7a88c897966c0e58506e\",\"urls\":[\"bzzr://6200c125af376381ae6c5415b8f3c1cb83889be20a7a51d67ac607487a10313b\"]},\"openzeppelin-solidity/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0xe5bb0f57cff3e299f360052ba50f1ea0fff046df2be070b6943e0e3c3fdad8a9\",\"urls\":[\"bzzr://cf2d583b8dce38d0617fdcd65f2fd9f126fe17b7f683b5a515ea9d2762d8b062\"]}},\"version\":1}", + "bytecode": "0x60806040526007805460a060020a60ff02191690553480156200002157600080fd5b5060405162001ef938038062001ef9833981018060405260c08110156200004757600080fd5b8101908080516401000000008111156200006057600080fd5b820160208101848111156200007457600080fd5b81516401000000008111828201871017156200008f57600080fd5b50509291906020018051640100000000811115620000ac57600080fd5b82016020810184811115620000c057600080fd5b8151640100000000811182820187101715620000db57600080fd5b505060208201516040830151606090930180519295919491926401000000008111156200010757600080fd5b820160208101848111156200011b57600080fd5b81516401000000008111828201871017156200013657600080fd5b505060209091015190925090506200015c86868686868664010000000062000169810204565b5050505050505062000439565b6000600160a060020a038516620001cc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603081526020018062001e366030913960400191505060405180910390fd5b600854600160a060020a03161562000230576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f81526020018062001eca602f913960400191505060405180910390fd5b600160a060020a03821662000291576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252604081526020018062001e666040913960400191505060405180910390fd5b83620002e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602481526020018062001ea66024913960400191505060405180910390fd5b60068490558651620003039060039060208a019062000394565b5082516200031990600590602086019062000394565b5085516200032f90600490602089019062000394565b505060088054600160a060020a0319908116600160a060020a039687161790915560078054740100000000000000000000000000000000000000009216929095169190911760a060020a60ff02191681179384905560ff930492909216949350505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003d757805160ff191683800117855562000407565b8280016001018555821562000407579182015b8281111562000407578251825591602001919060010190620003ea565b506200041592915062000419565b5090565b6200043691905b8082111562000415576000815560010162000420565b90565b6119ed80620004496000396000f3fe608060405234801561001057600080fd5b50600436106101ab576000357c01000000000000000000000000000000000000000000000000000000009004806350d2fcc4116100fb578063a9059cbb116100b4578063dd62ed3e1161008e578063dd62ed3e14610602578063eb40024b14610630578063ec342ad014610638578063fde0e7a814610640576101ab565b8063a9059cbb146105b0578063aa271e1a146105dc578063b2263a5d146102e1576101ab565b806350d2fcc4146103c657806370a08231146103ec5780638ca0c059146104125780639070d2f81461044a57806395d89b411461057c578063a457c2d714610584576101ab565b8063300ae14111610168578063355274ea11610142578063355274ea1461035e578063392e53cd14610366578063395093511461036e57806340c10f191461039a576101ab565b8063300ae141146102e9578063313ce5671461031d57806334e731221461033b576101ab565b806306fdde03146101b0578063075461721461022d578063095ea7b31461025157806318160ddd1461029157806323b872dd146102ab578063294541c7146102e1575b600080fd5b6101b8610648565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101f25781810151838201526020016101da565b50505050905090810190601f16801561021f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102356106df565b60408051600160a060020a039092168252519081900360200190f35b61027d6004803603604081101561026757600080fd5b50600160a060020a0381351690602001356106ee565b604080519115158252519081900360200190f35b61029961070c565b60408051918252519081900360200190f35b61027d600480360360608110156102c157600080fd5b50600160a060020a03813581169160208101359091169060400135610712565b61029961079f565b61031b600480360360608110156102ff57600080fd5b5080359060208101359060400135600160a060020a03166107aa565b005b6103256108a6565b6040805160ff9092168252519081900360200190f35b6102996004803603604081101561035157600080fd5b50803590602001356108ab565b6102996108f6565b61027d6108fc565b61027d6004803603604081101561038457600080fd5b50600160a060020a03813516906020013561091d565b61031b600480360360408110156103b057600080fd5b50600160a060020a038135169060200135610971565b61031b600480360360208110156103dc57600080fd5b5035600160a060020a0316610a3c565b6102996004803603602081101561040257600080fd5b5035600160a060020a0316610af5565b61031b6004803603608081101561042857600080fd5b50803590600160a060020a036020820135169060408101359060600135610b10565b61027d600480360360c081101561046057600080fd5b81019060208101813564010000000081111561047b57600080fd5b82018360208201111561048d57600080fd5b803590602001918460018302840111640100000000831117156104af57600080fd5b9193909290916020810190356401000000008111156104cd57600080fd5b8201836020820111156104df57600080fd5b8035906020019184600183028401116401000000008311171561050157600080fd5b91939092600160a060020a0383351692602081013592919060608101906040013564010000000081111561053457600080fd5b82018360208201111561054657600080fd5b8035906020019184600183028401116401000000008311171561056857600080fd5b919350915035600160a060020a0316610bb7565b6101b8610cd2565b61027d6004803603604081101561059a57600080fd5b50600160a060020a038135169060200135610d33565b61027d600480360360408110156105c657600080fd5b50600160a060020a038135169060200135610da1565b61027d600480360360208110156105f257600080fd5b5035600160a060020a0316610db5565b6102996004803603604081101561061857600080fd5b50600160a060020a0381358116916020013516610dc9565b61031b610df4565b610299610ec0565b6101b8610ecc565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106d45780601f106106a9576101008083540402835291602001916106d4565b820191906000526020600020905b8154815290600101906020018083116106b757829003601f168201915b505050505090505b90565b600854600160a060020a031690565b60006107026106fb610f2d565b8484610f31565b5060015b92915050565b60025490565b600061071f848484611023565b6107958461072b610f2d565b610790856040518060600160405280602881526020016118fd60289139600160a060020a038a16600090815260016020526040812090610769610f2d565b600160a060020a03168152602081019190915260400160002054919063ffffffff61118516565b610f31565b5060019392505050565b66038d7ea4c6800081565b6000806107c4856103e8670de0b6b3a76400005b046108ab565b6007549091506107dd90600160a060020a031682610da1565b50600160a060020a0383161561081057610802856103e8670de0b6b3a76400006107be565b915061080e8383610da1565b505b6000610822828463ffffffff61121f16565b60085490915061084a90600160a060020a0316610845888463ffffffff61127c16565b610da1565b5060408051878152602081018790524281830152606081018590529051600160a060020a0386169133917f24c95b9bea47f62df4b9eea32c98c597eccfc5cac47f8477647be875ad925eee9181900360800190a3505050505050565b601290565b6000826108ba57506000610706565b816108c757506000610706565b6108ef670de0b6b3a76400006108e3858563ffffffff6112be16565b9063ffffffff61131a16565b9392505050565b60065490565b60075474010000000000000000000000000000000000000000900460ff1690565b600061070261092a610f2d565b84610790856001600061093b610f2d565b600160a060020a03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61121f16565b600854600160a060020a031633146109bd5760405160e560020a62461bcd0281526004018080602001828103825260218152602001806117a66021913960400191505060405180910390fd5b6006546109d8826109cc61070c565b9063ffffffff61121f16565b1115610a2e576040805160e560020a62461bcd02815260206004820152601f60248201527f44617461546f6b656e54656d706c6174653a2063617020657863656564656400604482015290519081900360640190fd5b610a38828261135c565b5050565b600854600160a060020a03163314610a885760405160e560020a62461bcd0281526004018080602001828103825260218152602001806117a66021913960400191505060405180910390fd5b6009805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383811691909117918290556040805133815292909116602083015280517fa24c529cc8b2d85b7dfb2ed0b4d7e9a816546212138b5d223bee13481e21be6b9281900390910190a150565b600160a060020a031660009081526020819052604090205490565b8115610b5e57610b208383610da1565b610b5e5760405160e560020a62461bcd0281526004018080602001828103825260298152602001806117ed6029913960400191505060405180910390fd5b604080518581526020810184905280820183905242606082015290513391600160a060020a038616917f46872661d5d7765097d3a97ca99b7cbfa68b54b6d51904168974901ee607a26d9181900360800190a350505050565b60075460009074010000000000000000000000000000000000000000900460ff1615610c175760405160e560020a62461bcd0281526004018080602001828103825260358152602001806117716035913960400191505060405180910390fd5b610cc48a8a8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8e018190048102820181019092528c815292508c91508b908190840183828082843760009201919091525050604080516020601f8b018190048102820181019092528981528c93508b9250908a908a90819084018382808284376000920191909152508a925061144f915050565b9a9950505050505050505050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106d45780601f106106a9576101008083540402835291602001916106d4565b6000610702610d40610f2d565b846107908560405180606001604052806025815260200161199d6025913960016000610d6a610f2d565b600160a060020a03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61118516565b6000610702610dae610f2d565b8484611023565b600854600160a060020a0391821691161490565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b600954600160a060020a03163314610e405760405160e560020a62461bcd0281526004018080602001828103825260328152602001806118866032913960400191505060405180910390fd5b60085460095460408051600160a060020a03938416815292909116602083015280517f96ab0400119a548d3cc4c74e857d0d9c427fe9df20d3d0d99af10cc292e6c8869281900390910190a1600980546008805473ffffffffffffffffffffffffffffffffffffffff19908116600160a060020a03841617909155169055565b670de0b6b3a764000081565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106d45780601f106106a9576101008083540402835291602001916106d4565b3390565b600160a060020a038316610f795760405160e560020a62461bcd0281526004018080602001828103825260248152602001806119796024913960400191505060405180910390fd5b600160a060020a038216610fc15760405160e560020a62461bcd02815260040180806020018281038252602281526020018061174f6022913960400191505060405180910390fd5b600160a060020a03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600160a060020a03831661106b5760405160e560020a62461bcd0281526004018080602001828103825260258152602001806119546025913960400191505060405180910390fd5b600160a060020a0382166110b35760405160e560020a62461bcd02815260040180806020018281038252602381526020018061172c6023913960400191505060405180910390fd5b6110f6816040518060600160405280602681526020016117c760269139600160a060020a038616600090815260208190526040902054919063ffffffff61118516565b600160a060020a03808516600090815260208190526040808220939093559084168152205461112b908263ffffffff61121f16565b600160a060020a038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156112175760405160e560020a62461bcd0281526004018080602001828103825283818151815260200191508051906020019080838360005b838110156111dc5781810151838201526020016111c4565b50505050905090810190601f1680156112095780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156108ef576040805160e560020a62461bcd02815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60006108ef83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611185565b6000826112cd57506000610706565b828202828482816112da57fe5b04146108ef5760405160e560020a62461bcd0281526004018080602001828103825260218152602001806118b86021913960400191505060405180910390fd5b60006108ef83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061162b565b600160a060020a0382166113ba576040805160e560020a62461bcd02815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6002546113cd908263ffffffff61121f16565b600255600160a060020a0382166000908152602081905260409020546113f9908263ffffffff61121f16565b600160a060020a0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000600160a060020a0385166114995760405160e560020a62461bcd0281526004018080602001828103825260308152602001806118166030913960400191505060405180910390fd5b600854600160a060020a0316156114e45760405160e560020a62461bcd02815260040180806020018281038252602f815260200180611925602f913960400191505060405180910390fd5b600160a060020a03821661152c5760405160e560020a62461bcd0281526004018080602001828103825260408152602001806118466040913960400191505060405180910390fd5b8361156b5760405160e560020a62461bcd0281526004018080602001828103825260248152602001806118d96024913960400191505060405180910390fd5b600684905586516115839060039060208a0190611693565b508251611597906005906020860190611693565b5085516115ab906004906020890190611693565b50506008805473ffffffffffffffffffffffffffffffffffffffff19908116600160a060020a039687161790915560078054740100000000000000000000000000000000000000009216929095169190911774ff0000000000000000000000000000000000000000191681179384905560ff930492909216949350505050565b6000818361167d5760405160e560020a62461bcd0281526020600482018181528351602484015283519092839260449091019190850190808383600083156111dc5781810151838201526020016111c4565b50600083858161168957fe5b0495945050505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106116d457805160ff1916838001178555611701565b82800160010185558215611701579182015b828111156117015782518255916020019190600101906116e6565b5061170d929150611711565b5090565b6106dc91905b8082111561170d576000815560010161171756fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737344617461546f6b656e54656d706c6174653a20746f6b656e20696e7374616e636520616c726561647920696e697469616c697a656444617461546f6b656e54656d706c6174653a20696e76616c6964206d696e74657245524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636544617461546f6b656e54656d706c6174653a206661696c656420746f2066696e697368206f7264657244617461546f6b656e54656d706c6174653a20496e76616c6964206d696e7465722c20207a65726f206164647265737344617461546f6b656e54656d706c6174653a20496e76616c696420636f6d6d756e6974792066656520636f6c6c6563746f722c207a65726f206164647265737344617461546f6b656e54656d706c6174653a20696e76616c69642070726f706f736564206d696e7465722061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7744617461546f6b656e54656d706c6174653a20496e76616c6964206361702076616c756545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636544617461546f6b656e54656d706c6174653a20496e76616c6964206d696e7465722c207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa165627a7a72305820a71244f742ef46f9085ec2e96197f3e0279c57276bc6a9ded305b15c995f8c35002944617461546f6b656e54656d706c6174653a20496e76616c6964206d696e7465722c20207a65726f206164647265737344617461546f6b656e54656d706c6174653a20496e76616c696420636f6d6d756e6974792066656520636f6c6c6563746f722c207a65726f206164647265737344617461546f6b656e54656d706c6174653a20496e76616c6964206361702076616c756544617461546f6b656e54656d706c6174653a20496e76616c6964206d696e7465722c207a65726f2061646472657373", + "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101ab576000357c01000000000000000000000000000000000000000000000000000000009004806350d2fcc4116100fb578063a9059cbb116100b4578063dd62ed3e1161008e578063dd62ed3e14610602578063eb40024b14610630578063ec342ad014610638578063fde0e7a814610640576101ab565b8063a9059cbb146105b0578063aa271e1a146105dc578063b2263a5d146102e1576101ab565b806350d2fcc4146103c657806370a08231146103ec5780638ca0c059146104125780639070d2f81461044a57806395d89b411461057c578063a457c2d714610584576101ab565b8063300ae14111610168578063355274ea11610142578063355274ea1461035e578063392e53cd14610366578063395093511461036e57806340c10f191461039a576101ab565b8063300ae141146102e9578063313ce5671461031d57806334e731221461033b576101ab565b806306fdde03146101b0578063075461721461022d578063095ea7b31461025157806318160ddd1461029157806323b872dd146102ab578063294541c7146102e1575b600080fd5b6101b8610648565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101f25781810151838201526020016101da565b50505050905090810190601f16801561021f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102356106df565b60408051600160a060020a039092168252519081900360200190f35b61027d6004803603604081101561026757600080fd5b50600160a060020a0381351690602001356106ee565b604080519115158252519081900360200190f35b61029961070c565b60408051918252519081900360200190f35b61027d600480360360608110156102c157600080fd5b50600160a060020a03813581169160208101359091169060400135610712565b61029961079f565b61031b600480360360608110156102ff57600080fd5b5080359060208101359060400135600160a060020a03166107aa565b005b6103256108a6565b6040805160ff9092168252519081900360200190f35b6102996004803603604081101561035157600080fd5b50803590602001356108ab565b6102996108f6565b61027d6108fc565b61027d6004803603604081101561038457600080fd5b50600160a060020a03813516906020013561091d565b61031b600480360360408110156103b057600080fd5b50600160a060020a038135169060200135610971565b61031b600480360360208110156103dc57600080fd5b5035600160a060020a0316610a3c565b6102996004803603602081101561040257600080fd5b5035600160a060020a0316610af5565b61031b6004803603608081101561042857600080fd5b50803590600160a060020a036020820135169060408101359060600135610b10565b61027d600480360360c081101561046057600080fd5b81019060208101813564010000000081111561047b57600080fd5b82018360208201111561048d57600080fd5b803590602001918460018302840111640100000000831117156104af57600080fd5b9193909290916020810190356401000000008111156104cd57600080fd5b8201836020820111156104df57600080fd5b8035906020019184600183028401116401000000008311171561050157600080fd5b91939092600160a060020a0383351692602081013592919060608101906040013564010000000081111561053457600080fd5b82018360208201111561054657600080fd5b8035906020019184600183028401116401000000008311171561056857600080fd5b919350915035600160a060020a0316610bb7565b6101b8610cd2565b61027d6004803603604081101561059a57600080fd5b50600160a060020a038135169060200135610d33565b61027d600480360360408110156105c657600080fd5b50600160a060020a038135169060200135610da1565b61027d600480360360208110156105f257600080fd5b5035600160a060020a0316610db5565b6102996004803603604081101561061857600080fd5b50600160a060020a0381358116916020013516610dc9565b61031b610df4565b610299610ec0565b6101b8610ecc565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106d45780601f106106a9576101008083540402835291602001916106d4565b820191906000526020600020905b8154815290600101906020018083116106b757829003601f168201915b505050505090505b90565b600854600160a060020a031690565b60006107026106fb610f2d565b8484610f31565b5060015b92915050565b60025490565b600061071f848484611023565b6107958461072b610f2d565b610790856040518060600160405280602881526020016118fd60289139600160a060020a038a16600090815260016020526040812090610769610f2d565b600160a060020a03168152602081019190915260400160002054919063ffffffff61118516565b610f31565b5060019392505050565b66038d7ea4c6800081565b6000806107c4856103e8670de0b6b3a76400005b046108ab565b6007549091506107dd90600160a060020a031682610da1565b50600160a060020a0383161561081057610802856103e8670de0b6b3a76400006107be565b915061080e8383610da1565b505b6000610822828463ffffffff61121f16565b60085490915061084a90600160a060020a0316610845888463ffffffff61127c16565b610da1565b5060408051878152602081018790524281830152606081018590529051600160a060020a0386169133917f24c95b9bea47f62df4b9eea32c98c597eccfc5cac47f8477647be875ad925eee9181900360800190a3505050505050565b601290565b6000826108ba57506000610706565b816108c757506000610706565b6108ef670de0b6b3a76400006108e3858563ffffffff6112be16565b9063ffffffff61131a16565b9392505050565b60065490565b60075474010000000000000000000000000000000000000000900460ff1690565b600061070261092a610f2d565b84610790856001600061093b610f2d565b600160a060020a03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61121f16565b600854600160a060020a031633146109bd5760405160e560020a62461bcd0281526004018080602001828103825260218152602001806117a66021913960400191505060405180910390fd5b6006546109d8826109cc61070c565b9063ffffffff61121f16565b1115610a2e576040805160e560020a62461bcd02815260206004820152601f60248201527f44617461546f6b656e54656d706c6174653a2063617020657863656564656400604482015290519081900360640190fd5b610a38828261135c565b5050565b600854600160a060020a03163314610a885760405160e560020a62461bcd0281526004018080602001828103825260218152602001806117a66021913960400191505060405180910390fd5b6009805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383811691909117918290556040805133815292909116602083015280517fa24c529cc8b2d85b7dfb2ed0b4d7e9a816546212138b5d223bee13481e21be6b9281900390910190a150565b600160a060020a031660009081526020819052604090205490565b8115610b5e57610b208383610da1565b610b5e5760405160e560020a62461bcd0281526004018080602001828103825260298152602001806117ed6029913960400191505060405180910390fd5b604080518581526020810184905280820183905242606082015290513391600160a060020a038616917f46872661d5d7765097d3a97ca99b7cbfa68b54b6d51904168974901ee607a26d9181900360800190a350505050565b60075460009074010000000000000000000000000000000000000000900460ff1615610c175760405160e560020a62461bcd0281526004018080602001828103825260358152602001806117716035913960400191505060405180910390fd5b610cc48a8a8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8e018190048102820181019092528c815292508c91508b908190840183828082843760009201919091525050604080516020601f8b018190048102820181019092528981528c93508b9250908a908a90819084018382808284376000920191909152508a925061144f915050565b9a9950505050505050505050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106d45780601f106106a9576101008083540402835291602001916106d4565b6000610702610d40610f2d565b846107908560405180606001604052806025815260200161199d6025913960016000610d6a610f2d565b600160a060020a03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61118516565b6000610702610dae610f2d565b8484611023565b600854600160a060020a0391821691161490565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b600954600160a060020a03163314610e405760405160e560020a62461bcd0281526004018080602001828103825260328152602001806118866032913960400191505060405180910390fd5b60085460095460408051600160a060020a03938416815292909116602083015280517f96ab0400119a548d3cc4c74e857d0d9c427fe9df20d3d0d99af10cc292e6c8869281900390910190a1600980546008805473ffffffffffffffffffffffffffffffffffffffff19908116600160a060020a03841617909155169055565b670de0b6b3a764000081565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106d45780601f106106a9576101008083540402835291602001916106d4565b3390565b600160a060020a038316610f795760405160e560020a62461bcd0281526004018080602001828103825260248152602001806119796024913960400191505060405180910390fd5b600160a060020a038216610fc15760405160e560020a62461bcd02815260040180806020018281038252602281526020018061174f6022913960400191505060405180910390fd5b600160a060020a03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600160a060020a03831661106b5760405160e560020a62461bcd0281526004018080602001828103825260258152602001806119546025913960400191505060405180910390fd5b600160a060020a0382166110b35760405160e560020a62461bcd02815260040180806020018281038252602381526020018061172c6023913960400191505060405180910390fd5b6110f6816040518060600160405280602681526020016117c760269139600160a060020a038616600090815260208190526040902054919063ffffffff61118516565b600160a060020a03808516600090815260208190526040808220939093559084168152205461112b908263ffffffff61121f16565b600160a060020a038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156112175760405160e560020a62461bcd0281526004018080602001828103825283818151815260200191508051906020019080838360005b838110156111dc5781810151838201526020016111c4565b50505050905090810190601f1680156112095780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156108ef576040805160e560020a62461bcd02815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60006108ef83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611185565b6000826112cd57506000610706565b828202828482816112da57fe5b04146108ef5760405160e560020a62461bcd0281526004018080602001828103825260218152602001806118b86021913960400191505060405180910390fd5b60006108ef83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061162b565b600160a060020a0382166113ba576040805160e560020a62461bcd02815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6002546113cd908263ffffffff61121f16565b600255600160a060020a0382166000908152602081905260409020546113f9908263ffffffff61121f16565b600160a060020a0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000600160a060020a0385166114995760405160e560020a62461bcd0281526004018080602001828103825260308152602001806118166030913960400191505060405180910390fd5b600854600160a060020a0316156114e45760405160e560020a62461bcd02815260040180806020018281038252602f815260200180611925602f913960400191505060405180910390fd5b600160a060020a03821661152c5760405160e560020a62461bcd0281526004018080602001828103825260408152602001806118466040913960400191505060405180910390fd5b8361156b5760405160e560020a62461bcd0281526004018080602001828103825260248152602001806118d96024913960400191505060405180910390fd5b600684905586516115839060039060208a0190611693565b508251611597906005906020860190611693565b5085516115ab906004906020890190611693565b50506008805473ffffffffffffffffffffffffffffffffffffffff19908116600160a060020a039687161790915560078054740100000000000000000000000000000000000000009216929095169190911774ff0000000000000000000000000000000000000000191681179384905560ff930492909216949350505050565b6000818361167d5760405160e560020a62461bcd0281526020600482018181528351602484015283519092839260449091019190850190808383600083156111dc5781810151838201526020016111c4565b50600083858161168957fe5b0495945050505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106116d457805160ff1916838001178555611701565b82800160010185558215611701579182015b828111156117015782518255916020019190600101906116e6565b5061170d929150611711565b5090565b6106dc91905b8082111561170d576000815560010161171756fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737344617461546f6b656e54656d706c6174653a20746f6b656e20696e7374616e636520616c726561647920696e697469616c697a656444617461546f6b656e54656d706c6174653a20696e76616c6964206d696e74657245524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636544617461546f6b656e54656d706c6174653a206661696c656420746f2066696e697368206f7264657244617461546f6b656e54656d706c6174653a20496e76616c6964206d696e7465722c20207a65726f206164647265737344617461546f6b656e54656d706c6174653a20496e76616c696420636f6d6d756e6974792066656520636f6c6c6563746f722c207a65726f206164647265737344617461546f6b656e54656d706c6174653a20696e76616c69642070726f706f736564206d696e7465722061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7744617461546f6b656e54656d706c6174653a20496e76616c6964206361702076616c756545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636544617461546f6b656e54656d706c6174653a20496e76616c6964206d696e7465722c207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa165627a7a72305820a71244f742ef46f9085ec2e96197f3e0279c57276bc6a9ded305b15c995f8c350029", + "sourceMap": "488:10867:12:-;;;775:35;;;-1:-1:-1;;;;;;775:35:12;;;2510:369;5:2:-1;;;;30:1;27;20:12;5:2;2510:369:12;;;;;;;;;;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;2510:369:12;;;;;;19:11:-1;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;213:10;;261:11;244:29;;285:43;;;282:58;-1:-1;233:115;230:2;;;361:1;358;351:12;230:2;0:372;;2510:369:12;;;;;;;19:11:-1;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;213:10;;261:11;244:29;;285:43;;;282:58;-1:-1;233:115;230:2;;;361:1;358;351:12;230:2;-1:-1;;2510:369:12;;;;;;;;;;;;;;;;;;;;19:11:-1;11:20;;8:2;;;44:1;41;34:12;8:2;62:21;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;213:10;;261:11;244:29;;285:43;;;282:58;-1:-1;233:115;230:2;;;361:1;358;351:12;230:2;-1:-1;;2510:369:12;;;;;;;-1:-1:-1;2510:369:12;-1:-1:-1;2725:147:12;2750:4;2768:6;2788:13;2815:3;2510:369;;2725:11;;;;:147;:::i;:::-;;2510:369;;;;;;488:10867;;4364:980;4591:4;-1:-1:-1;;;;;4632:27:12;;4611:123;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4766:7;;-1:-1:-1;;;;;4766:7:12;:21;4745:116;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;4893:26:12;;4872:137;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5041:8;5020:91;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5121:4;:10;;;5141:12;;;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;5163:12:12;;;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;5185:16:12;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;;5211:7:12;:23;;-1:-1:-1;;;;;;5211:23:12;;;-1:-1:-1;;;;;5211:23:12;;;;;;;5244:22;:37;;5291:18;5244:37;;;;;;;;;;-1:-1:-1;;;;;;5291:18:12;;;;;;;;5326:11;;;;;;;4364:980;-1:-1:-1;;;;4364:980:12:o;488:10867::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;488:10867:12;;;-1:-1:-1;488:10867:12;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;", + "deployedSourceMap": "488:10867:12:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;488:10867:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9166:82;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;9166:82:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10478:109;;;:::i;:::-;;;;-1:-1:-1;;;;;10478:109:12;;;;;;;;;;;;;;2500:149:17;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2500:149:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;1559:89;;;:::i;:::-;;;;;;;;;;;;;;;;3107:300;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;3107:300:17;;;;;;;;;;;;;;;;;:::i;998:64:12:-;;;:::i;6249:863::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;6249:863:12;;;;;;;;;;;-1:-1:-1;;;;;6249:863:12;;:::i;:::-;;9823:82;;;:::i;:::-;;;;;;;;;;;;;;;;;;;11079:274;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;11079:274:12;;;;;;;:::i;10009:75::-;;;:::i;10747:88::-;;;:::i;3802:207:17:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;3802:207:17;;;;;;;;:::i;5661:271:12:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;5661:271:12;;;;;;;;:::i;8336:221::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;8336:221:12;-1:-1:-1;;;;;8336:221:12;;:::i;1706:108:17:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1706:108:17;-1:-1:-1;;;;;1706:108:17;;:::i;7611:514:12:-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;7611:514:12;;;-1:-1:-1;;;;;7611:514:12;;;;;;;;;;;;;;;:::i;3456:442::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;3456:442:12;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;3456:442:12;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;3456:442:12;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;3456:442:12;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;3456:442:12;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;3456:442:12;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;3456:442:12;;;;-1:-1:-1;;;;;3456:442:12;;;;;;;;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;3456:442:12;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;3456:442:12;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;3456:442:12;;-1:-1:-1;3456:442:12;-1:-1:-1;3456:442:12;-1:-1:-1;;;;;3456:442:12;;:::i;9363:86::-;;;:::i;4496:258:17:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;4496:258:17;;;;;;;;:::i;2017:155::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2017:155:17;;;;;;;;:::i;10296:107:12:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;10296:107:12;-1:-1:-1;;;;;10296:107:12;;:::i;2230:132:17:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2230:132:17;;;;;;;;;;:::i;8706:351:12:-;;;:::i;882:37::-;;;:::i;9574:82::-;;;:::i;9166:::-;9236:5;9229:12;;;;;;;;-1:-1:-1;;9229:12:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9204:13;;9229:12;;9236:5;;9229:12;;9236:5;9229:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9166:82;;:::o;10478:109::-;10573:7;;-1:-1:-1;;;;;10573:7:12;10478:109;:::o;2500:149:17:-;2566:4;2582:39;2591:12;:10;:12::i;:::-;2605:7;2614:6;2582:8;:39::i;:::-;-1:-1:-1;2638:4:17;2500:149;;;;;:::o;1559:89::-;1629:12;;1559:89;:::o;3107:300::-;3196:4;3212:36;3222:6;3230:9;3241:6;3212:9;:36::i;:::-;3258:121;3267:6;3275:12;:10;:12::i;:::-;3289:89;3327:6;3289:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3289:19:17;;;;;;:11;:19;;;;;;3309:12;:10;:12::i;:::-;-1:-1:-1;;;;;3289:33:17;;;;;;;;;;;;-1:-1:-1;3289:33:17;;;:89;;:37;:89;:::i;:::-;3258:8;:121::i;:::-;-1:-1:-1;3396:4:17;3107:300;;;;;:::o;998:64:12:-;1051:11;998:64;:::o;6249:863::-;6391:17;;6445:86;6471:6;988:4;913:6;981:11;;6445:12;:86::i;:::-;6550:22;;6422:109;;-1:-1:-1;6541:46:12;;-1:-1:-1;;;;;6550:22:12;6422:109;6541:8;:46::i;:::-;-1:-1:-1;;;;;;6600:30:12;;;6597:217;;6657:95;6687:6;1058:4;913:6;1051:11;;6657:95;6645:107;;6766:37;6775:16;6793:9;6766:8;:37::i;:::-;;6597:217;6823:16;6842:27;:12;6859:9;6842:27;:16;:27;:::i;:::-;6888:7;;6823:46;;-1:-1:-1;6879:39:12;;-1:-1:-1;;;;;6888:7:12;6897:20;:6;6823:46;6897:20;:10;:20;:::i;:::-;6879:8;:39::i;:::-;-1:-1:-1;6934:171:12;;;;;;;;;;;;7027:15;6934:171;;;;;;;;;;;;-1:-1:-1;;;;;6934:171:12;;;6960:10;;6934:171;;;;;;;;;6249:863;;;;;;:::o;9823:82::-;723:2;9823:82;:::o;11079:274::-;11206:7;11232:11;11229:24;;-1:-1:-1;11252:1:12;11245:8;;11229:24;11266:18;11263:31;;-1:-1:-1;11293:1:12;11286:8;;11263:31;11311:35;913:6;11311:25;:6;11322:13;11311:25;:10;:25;:::i;:::-;:29;:35;:29;:35;:::i;:::-;11304:42;11079:274;-1:-1:-1;;;11079:274:12:o;10009:75::-;10073:4;;10009:75;:::o;10747:88::-;10817:11;;;;;;;;10747:88::o;3802:207:17:-;3882:4;3898:83;3907:12;:10;:12::i;:::-;3921:7;3930:50;3969:10;3930:11;:25;3942:12;:10;:12::i;:::-;-1:-1:-1;;;;;3930:25:17;;;;;;;;;;;;;;;;;-1:-1:-1;3930:25:17;;;:34;;;;;;;;;;;:50;:38;:50;:::i;5661:271:12:-;1970:7;;-1:-1:-1;;;;;1970:7:12;1956:10;:21;1935:102;;;;-1:-1:-1;;;;;1935:102:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5832:4;;5804:24;5822:5;5804:13;:11;:13::i;:::-;:17;:24;:17;:24;:::i;:::-;:32;;5783:111;;;;;-1:-1:-1;;;;;5783:111:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;5904:21;5910:7;5919:5;5904;:21::i;:::-;5661:271;;:::o;8336:221::-;1970:7;;-1:-1:-1;;;;;1970:7:12;1956:10;:21;1935:102;;;;-1:-1:-1;;;;;1935:102:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8431:15;:27;;-1:-1:-1;;8431:27:12;-1:-1:-1;;;;;8431:27:12;;;;;;;;;;;8473:77;;;8501:10;8473:77;;8525:15;;;;8473:77;;;;;;;;;;;;;;;;8336:221;:::o;1706:108:17:-;-1:-1:-1;;;;;1789:18:17;1763:7;1789:18;;;;;;;;;;;;1706:108::o;7611:514:12:-;7780:11;;7775:159;;7833:26;7842:8;7852:6;7833:8;:26::i;:::-;7808:126;;;;-1:-1:-1;;;;;7808:126:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7950:168;;;;;;;;;;;;;;;;;;8093:15;7950:168;;;;;;8069:10;;-1:-1:-1;;;;;7950:168:12;;;;;;;;;;;;7611:514;;;;:::o;3456:442::-;1785:11;;3717:4;;1785:11;;;;;1784:12;1763:112;;;;-1:-1:-1;;;;;1763:112:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3744:147;3769:4;;3744:147;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;;3744:147:12;;;;137:4:-1;3744:147:12;;;;;;;;;;;;;;;;;;-1:-1:-1;3787:6:12;;-1:-1:-1;3787:6:12;;;;3744:147;;3787:6;;;;3744:147;1:33:-1;99:1;81:16;;74:27;;;;-1:-1;;3744:147:12;;;;137:4:-1;3744:147:12;;;;;;;;;;;;;;;;;3807:13;;-1:-1:-1;3834:3:12;;-1:-1:-1;3744:147:12;3851:4;;;;;;3744:147;;3851:4;;;;3744:147;1:33:-1;99:1;81:16;;74:27;;;;-1:-1;3869:12:12;;-1:-1:-1;3744:11:12;;-1:-1:-1;;3744:147:12:i;:::-;3737:154;3456:442;-1:-1:-1;;;;;;;;;;3456:442:12:o;9363:86::-;9435:7;9428:14;;;;;;;;-1:-1:-1;;9428:14:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9403:13;;9428:14;;9435:7;;9428:14;;9435:7;9428:14;;;;;;;;;;;;;;;;;;;;;;;;4496:258:17;4581:4;4597:129;4606:12;:10;:12::i;:::-;4620:7;4629:96;4668:15;4629:96;;;;;;;;;;;;;;;;;:11;:25;4641:12;:10;:12::i;:::-;-1:-1:-1;;;;;4629:25:17;;;;;;;;;;;;;;;;;-1:-1:-1;4629:25:17;;;:34;;;;;;;;;;;:96;;:38;:96;:::i;2017:155::-;2086:4;2102:42;2112:12;:10;:12::i;:::-;2126:9;2137:6;2102:9;:42::i;10296:107:12:-;10377:7;;-1:-1:-1;;;;;10377:18:12;;;:7;;:18;;10296:107::o;2230:132:17:-;-1:-1:-1;;;;;2328:18:17;;;2302:7;2328:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;2230:132::o;8706:351:12:-;8797:15;;-1:-1:-1;;;;;8797:15:12;8783:10;:29;8762:126;;;;-1:-1:-1;;;;;8762:126:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8931:7;;8952:15;;8903:74;;;-1:-1:-1;;;;;8931:7:12;;;8903:74;;8952:15;;;;8903:74;;;;;;;;;;;;;;;;8997:15;;;8987:7;:25;;-1:-1:-1;;8987:25:12;;;-1:-1:-1;;;;;8997:15:12;;8987:25;;;;9022:28;;;8706:351::o;882:37::-;913:6;882:37;:::o;9574:82::-;9644:5;9637:12;;;;;;;;-1:-1:-1;;9637:12:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9612:13;;9637:12;;9644:5;;9637:12;;9644:5;9637:12;;;;;;;;;;;;;;;;;;;;;;;;788:96:14;867:10;788:96;:::o;7350:332:17:-;-1:-1:-1;;;;;7443:19:17;;7435:68;;;;-1:-1:-1;;;;;7435:68:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;7521:21:17;;7513:68;;;;-1:-1:-1;;;;;7513:68:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;7592:18:17;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;7643:32;;;;;;;;;;;;;;;;;7350:332;;;:::o;5228:464::-;-1:-1:-1;;;;;5325:20:17;;5317:70;;;;-1:-1:-1;;;;;5317:70:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5405:23:17;;5397:71;;;;-1:-1:-1;;;;;5397:71:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5499;5521:6;5499:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5499:17:17;;:9;:17;;;;;;;;;;;;:71;;:21;:71;:::i;:::-;-1:-1:-1;;;;;5479:17:17;;;:9;:17;;;;;;;;;;;:91;;;;5603:20;;;;;;;:32;;5628:6;5603:32;:24;:32;:::i;:::-;-1:-1:-1;;;;;5580:20:17;;;:9;:20;;;;;;;;;;;;:55;;;;5650:35;;;;;;;5580:20;;5650:35;;;;;;;;;;;;;5228:464;;;:::o;1732:187:15:-;1818:7;1853:12;1845:6;;;;1837:29;;;;-1:-1:-1;;;;;1837:29:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;1837:29:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1888:5:15;;;1732:187::o;834:176::-;892:7;923:5;;;946:6;;;;938:46;;;;;-1:-1:-1;;;;;938:46:15;;;;;;;;;;;;;;;;;;;;;;;;;;;1274:134;1332:7;1358:43;1362:1;1365;1358:43;;;;;;;;;;;;;;;;;:3;:43::i;2159:459::-;2217:7;2458:6;2454:45;;-1:-1:-1;2487:1:15;2480:8;;2454:45;2521:5;;;2525:1;2521;:5;:1;2544:5;;;;;:10;2536:56;;;;-1:-1:-1;;;;;2536:56:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3073:130;3131:7;3157:39;3161:1;3164;3157:39;;;;;;;;;;;;;;;;;:3;:39::i;5962:302:17:-;-1:-1:-1;;;;;6037:21:17;;6029:65;;;;;-1:-1:-1;;;;;6029:65:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;6120:12;;:24;;6137:6;6120:24;:16;:24;:::i;:::-;6105:12;:39;-1:-1:-1;;;;;6175:18:17;;:9;:18;;;;;;;;;;;:30;;6198:6;6175:30;:22;:30;:::i;:::-;-1:-1:-1;;;;;6154:18:17;;:9;:18;;;;;;;;;;;:51;;;;6220:37;;;;;;;6154:18;;:9;;6220:37;;;;;;;;;;5962:302;;:::o;4364:980:12:-;4591:4;-1:-1:-1;;;;;4632:27:12;;4611:123;;;;-1:-1:-1;;;;;4611:123:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4766:7;;-1:-1:-1;;;;;4766:7:12;:21;4745:116;;;;-1:-1:-1;;;;;4745:116:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;4893:26:12;;4872:137;;;;-1:-1:-1;;;;;4872:137:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5041:8;5020:91;;;;-1:-1:-1;;;;;5020:91:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5121:4;:10;;;5141:12;;;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;5163:12:12;;;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;5185:16:12;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;;5211:7:12;:23;;-1:-1:-1;;5211:23:12;;;-1:-1:-1;;;;;5211:23:12;;;;;;;5244:22;:37;;5291:18;5244:37;;;;;;;;;;-1:-1:-1;;5291:18:12;;;;;;;;5326:11;;;;;;;4364:980;-1:-1:-1;;;;4364:980:12:o;3718:338:15:-;3804:7;3904:12;3897:5;3889:28;;;;-1:-1:-1;;;;;3889:28:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;3889:28:15;;3927:9;3943:1;3939;:5;;;;;;;3718:338;-1:-1:-1;;;;;3718:338:15:o;488:10867:12:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;488:10867:12;;;-1:-1:-1;488:10867:12;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;", + "source": "pragma solidity 0.5.7;\n// Copyright BigchainDB GmbH and Ocean Protocol contributors\n// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)\n// Code is Apache-2.0 and docs are CC-BY-4.0\n\nimport '../interfaces/IERC20Template.sol';\nimport 'openzeppelin-solidity/contracts/token/ERC20/ERC20.sol';\n\n\n/**\n* @title DataTokenTemplate\n* \n* @dev DataTokenTemplate is an ERC20 compliant token template\n* Used by the factory contract as a bytecode reference to \n* deploy new DataTokens.\n*/\ncontract DataTokenTemplate is IERC20Template, ERC20 {\n using SafeMath for uint256;\n\n string private _name;\n string private _symbol;\n string private _blob;\n uint256 private _cap;\n uint8 private constant _decimals = 18;\n address private _communityFeeCollector;\n bool private initialized = false;\n address private _minter;\n address private _proposedMinter;\n uint256 public constant BASE = 10**18;\n uint256 public constant BASE_COMMUNITY_FEE_PERCENTAGE = BASE / 1000;\n uint256 public constant BASE_MARKET_FEE_PERCENTAGE = BASE / 1000;\n\n event OrderStarted(\n address indexed consumer, \n uint256 amount, \n uint256 serviceId, \n uint256 timestamp,\n address indexed mrktFeeCollector,\n uint256 marketFee\n );\n\n event OrderFinished(\n bytes32 orderTxId, \n address indexed consumer, \n uint256 amount, \n uint256 serviceId, \n address indexed provider,\n uint256 timestamp\n );\n\n event MinterProposed(\n address currentMinter,\n address newMinter\n );\n\n event MinterApproved(\n address currentMinter,\n address newMinter\n );\n\n modifier onlyNotInitialized() {\n require(\n !initialized,\n 'DataTokenTemplate: token instance already initialized'\n );\n _;\n }\n \n modifier onlyMinter() {\n require(\n msg.sender == _minter,\n 'DataTokenTemplate: invalid minter' \n );\n _;\n }\n\n /**\n * @dev constructor\n * Called prior contract deployment\n * @param name refers to a template DataToken name\n * @param symbol refers to a template DataToken symbol\n * @param minterAddress refers to an address that has minter role\n * @param cap the total ERC20 cap\n * @param blob data string refering to the resolver for the metadata\n * @param feeCollector it is the community fee collector address\n */\n constructor(\n string memory name,\n string memory symbol,\n address minterAddress,\n uint256 cap,\n string memory blob,\n address feeCollector\n )\n public\n {\n _initialize(\n name,\n symbol,\n minterAddress,\n cap,\n blob,\n feeCollector\n );\n }\n \n /**\n * @dev initialize\n * Called prior contract initialization (e.g creating new DataToken instance)\n * Calls private _initialize function. Only if contract is not initialized.\n * @param name refers to a new DataToken name\n * @param symbol refers to a nea DataToken symbol\n * @param minterAddress refers to an address that has minter rights\n * @param cap the total ERC20 cap\n * @param blob data string refering to the resolver for the metadata\n * @param feeCollector it is the community fee collector address\n */\n function initialize(\n string calldata name,\n string calldata symbol,\n address minterAddress,\n uint256 cap,\n string calldata blob,\n address feeCollector\n ) \n external\n onlyNotInitialized\n returns(bool)\n {\n return _initialize(\n name,\n symbol,\n minterAddress,\n cap,\n blob,\n feeCollector\n );\n }\n\n /**\n * @dev _initialize\n * Private function called on contract initialization.\n * @param name refers to a new DataToken name\n * @param symbol refers to a nea DataToken symbol\n * @param minterAddress refers to an address that has minter rights\n * @param cap the total ERC20 cap\n * @param blob data string refering to the resolver for the metadata\n * @param feeCollector it is the community fee collector address\n */\n function _initialize(\n string memory name,\n string memory symbol,\n address minterAddress,\n uint256 cap,\n string memory blob,\n address feeCollector\n )\n private\n returns(bool)\n {\n require(\n minterAddress != address(0), \n 'DataTokenTemplate: Invalid minter, zero address'\n );\n\n require(\n _minter == address(0), \n 'DataTokenTemplate: Invalid minter, zero address'\n );\n\n require(\n feeCollector != address(0),\n 'DataTokenTemplate: Invalid community fee collector, zero address'\n );\n\n require(\n cap != 0,\n 'DataTokenTemplate: Invalid cap value'\n );\n _cap = cap;\n _name = name;\n _blob = blob;\n _symbol = symbol;\n _minter = minterAddress;\n _communityFeeCollector = feeCollector;\n initialized = true;\n return initialized;\n }\n\n /**\n * @dev mint\n * Only the minter address can call it.\n * msg.value should be higher than zero and gt or eq minting fee\n * @param account refers to an address that token is going to be minted to.\n * @param value refers to amount of tokens that is going to be minted.\n */\n function mint(\n address account,\n uint256 value\n ) \n external \n onlyMinter \n {\n require(\n totalSupply().add(value) <= _cap, \n 'DataTokenTemplate: cap exceeded'\n );\n _mint(account, value);\n }\n\n /**\n * @dev startOrder\n * called by consumer prior ordering a service consume on a marketplace\n * @param amount refers to amount of tokens that is going to be transfered.\n * @param serviceId service index in the metadata\n * @param mrktFeeCollector marketplace fee collector\n */\n function startOrder(\n uint256 amount,\n uint256 serviceId,\n address mrktFeeCollector\n )\n external\n {\n uint256 marketFee = 0;\n uint256 communityFee = calculateFee(\n amount, \n BASE_COMMUNITY_FEE_PERCENTAGE\n );\n transfer(_communityFeeCollector, communityFee);\n if(mrktFeeCollector != address(0)){\n marketFee = calculateFee(\n amount, \n BASE_MARKET_FEE_PERCENTAGE\n );\n transfer(mrktFeeCollector, marketFee);\n }\n uint256 totalFee = communityFee.add(marketFee);\n transfer(_minter, amount.sub(totalFee));\n\n emit OrderStarted(\n msg.sender,\n amount,\n serviceId,\n block.timestamp,\n mrktFeeCollector,\n marketFee\n );\n }\n\n /**\n * @dev finishOrder\n * called by provider prior completing service delivery only\n * if there is a partial or full refund.\n * @param orderTxId refers to the transaction Id of startOrder acts \n * as a payment reference.\n * @param consumer refers to an address that has consumed that service.\n * @param amount refers to amount of tokens that is going to be transfered.\n * @param serviceId service index in the metadata.\n */\n function finishOrder(\n bytes32 orderTxId, \n address consumer, \n uint256 amount,\n uint256 serviceId\n )\n external\n {\n if ( amount != 0 ) \n require(\n transfer(consumer, amount),\n 'DataTokenTemplate: failed to finish order'\n );\n\n emit OrderFinished(\n orderTxId, \n consumer, \n amount, \n serviceId, \n msg.sender,\n block.timestamp\n );\n }\n\n /**\n * @dev proposeMinter\n * It proposes a new token minter address.\n * Only the current minter can call it.\n * @param newMinter refers to a new token minter address.\n */\n function proposeMinter(address newMinter) \n external \n onlyMinter \n {\n _proposedMinter = newMinter;\n emit MinterProposed(\n msg.sender,\n _proposedMinter\n );\n }\n\n /**\n * @dev approveMinter\n * It approves a new token minter address.\n * Only the current minter can call it.\n */\n function approveMinter()\n external\n {\n require(\n msg.sender == _proposedMinter,\n 'DataTokenTemplate: invalid proposed minter address'\n );\n emit MinterApproved(\n _minter,\n _proposedMinter\n );\n _minter = _proposedMinter;\n _proposedMinter = address(0);\n }\n\n /**\n * @dev name\n * It returns the token name.\n * @return DataToken name.\n */\n function name() external view returns(string memory) {\n return _name;\n }\n\n /**\n * @dev symbol\n * It returns the token symbol.\n * @return DataToken symbol.\n */\n function symbol() external view returns(string memory) {\n return _symbol;\n }\n\n /**\n * @dev blob\n * It returns the blob (e.g https://123.com).\n * @return DataToken blob.\n */\n function blob() external view returns(string memory) {\n return _blob;\n }\n\n /**\n * @dev decimals\n * It returns the token decimals.\n * how many supported decimal points\n * @return DataToken decimals.\n */\n function decimals() external view returns(uint8) {\n return _decimals;\n }\n\n /**\n * @dev cap\n * it returns the capital.\n * @return DataToken cap.\n */\n function cap() external view returns (uint256) {\n return _cap;\n }\n\n /**\n * @dev isMinter\n * It takes the address and checks whether it has a minter role.\n * @param account refers to the address.\n * @return true if account has a minter role.\n */\n function isMinter(address account) external view returns(bool) {\n return (_minter == account);\n } \n\n /**\n * @dev minter\n * @return minter's address.\n */\n function minter()\n external\n view \n returns(address)\n {\n return _minter;\n }\n\n /**\n * @dev isInitialized\n * It checks whether the contract is initialized.\n * @return true if the contract is initialized.\n */ \n function isInitialized() external view returns(bool) {\n return initialized;\n }\n\n /**\n * @dev calculateFee\n * giving a fee percentage, and amount it calculates the actual fee\n * @param amount the amount of token\n * @param feePercentage the fee percentage \n * @return the token fee.\n */ \n function calculateFee(\n uint256 amount,\n uint256 feePercentage\n )\n public\n pure\n returns(uint256)\n {\n if(amount == 0) return 0;\n if(feePercentage == 0) return 0;\n return amount.mul(feePercentage).div(BASE);\n }\n}\n", "sourcePath": "/Users/ahmedali/Desktop/work/ocean-contracts/contracts/templates/DataTokenTemplate.sol", "ast": { "absolutePath": "/Users/ahmedali/Desktop/work/ocean-contracts/contracts/templates/DataTokenTemplate.sol", "exportedSymbols": { "DataTokenTemplate": [ - 5694 + 5698 ] }, - "id": 5695, + "id": 5699, "nodeType": "SourceUnit", "nodes": [ { @@ -697,7 +702,7 @@ "file": "../interfaces/IERC20Template.sol", "id": 5180, "nodeType": "ImportDirective", - "scope": 5695, + "scope": 5699, "sourceUnit": 5090, "src": "185:42:12", "symbolAliases": [], @@ -708,8 +713,8 @@ "file": "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol", "id": 5181, "nodeType": "ImportDirective", - "scope": 5695, - "sourceUnit": 6460, + "scope": 5699, + "sourceUnit": 6464, "src": "228:63:12", "symbolAliases": [], "unitAlias": "" @@ -741,10 +746,10 @@ "id": 5184, "name": "ERC20", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 6459, + "referencedDeclaration": 6463, "src": "534:5:12", "typeDescriptions": { - "typeIdentifier": "t_contract$_ERC20_$6459", + "typeIdentifier": "t_contract$_ERC20_$6463", "typeString": "contract ERC20" } }, @@ -755,19 +760,19 @@ ], "contractDependencies": [ 5089, - 5749, - 6459, - 6528 + 5753, + 6463, + 6532 ], "contractKind": "contract", "documentation": "@title DataTokenTemplate\n \n@dev DataTokenTemplate is an ERC20 compliant token template\n Used by the factory contract as a bytecode reference to \n deploy new DataTokens.", "fullyImplemented": true, - "id": 5694, + "id": 5698, "linearizedBaseContracts": [ - 5694, - 6459, - 6528, - 5749, + 5698, + 6463, + 6532, + 5753, 5089 ], "name": "DataTokenTemplate", @@ -780,10 +785,10 @@ "id": 5186, "name": "SafeMath", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 5936, + "referencedDeclaration": 5940, "src": "552:8:12", "typeDescriptions": { - "typeIdentifier": "t_contract$_SafeMath_$5936", + "typeIdentifier": "t_contract$_SafeMath_$5940", "typeString": "library SafeMath" } }, @@ -805,7 +810,7 @@ "id": 5190, "name": "_name", "nodeType": "VariableDeclaration", - "scope": 5694, + "scope": 5698, "src": "579:21:12", "stateVariable": true, "storageLocation": "default", @@ -831,7 +836,7 @@ "id": 5192, "name": "_symbol", "nodeType": "VariableDeclaration", - "scope": 5694, + "scope": 5698, "src": "606:23:12", "stateVariable": true, "storageLocation": "default", @@ -857,7 +862,7 @@ "id": 5194, "name": "_blob", "nodeType": "VariableDeclaration", - "scope": 5694, + "scope": 5698, "src": "635:21:12", "stateVariable": true, "storageLocation": "default", @@ -883,7 +888,7 @@ "id": 5196, "name": "_cap", "nodeType": "VariableDeclaration", - "scope": 5694, + "scope": 5698, "src": "662:20:12", "stateVariable": true, "storageLocation": "default", @@ -909,7 +914,7 @@ "id": 5199, "name": "_decimals", "nodeType": "VariableDeclaration", - "scope": 5694, + "scope": 5698, "src": "688:37:12", "stateVariable": true, "storageLocation": "default", @@ -952,7 +957,7 @@ "id": 5201, "name": "_communityFeeCollector", "nodeType": "VariableDeclaration", - "scope": 5694, + "scope": 5698, "src": "731:38:12", "stateVariable": true, "storageLocation": "default", @@ -979,7 +984,7 @@ "id": 5204, "name": "initialized", "nodeType": "VariableDeclaration", - "scope": 5694, + "scope": 5698, "src": "775:35:12", "stateVariable": true, "storageLocation": "default", @@ -1022,7 +1027,7 @@ "id": 5206, "name": "_minter", "nodeType": "VariableDeclaration", - "scope": 5694, + "scope": 5698, "src": "816:23:12", "stateVariable": true, "storageLocation": "default", @@ -1049,7 +1054,7 @@ "id": 5208, "name": "_proposedMinter", "nodeType": "VariableDeclaration", - "scope": 5694, + "scope": 5698, "src": "845:31:12", "stateVariable": true, "storageLocation": "default", @@ -1076,7 +1081,7 @@ "id": 5213, "name": "BASE", "nodeType": "VariableDeclaration", - "scope": 5694, + "scope": 5698, "src": "882:37:12", "stateVariable": true, "storageLocation": "default", @@ -1156,7 +1161,7 @@ "id": 5218, "name": "BASE_COMMUNITY_FEE_PERCENTAGE", "nodeType": "VariableDeclaration", - "scope": 5694, + "scope": 5698, "src": "925:67:12", "stateVariable": true, "storageLocation": "default", @@ -1231,7 +1236,7 @@ "id": 5223, "name": "BASE_MARKET_FEE_PERCENTAGE", "nodeType": "VariableDeclaration", - "scope": 5694, + "scope": 5698, "src": "998:64:12", "stateVariable": true, "storageLocation": "default", @@ -1397,7 +1402,7 @@ "constant": false, "id": 5231, "indexed": false, - "name": "startedAt", + "name": "timestamp", "nodeType": "VariableDeclaration", "scope": 5237, "src": "1201:17:12", @@ -1483,11 +1488,11 @@ { "anonymous": false, "documentation": null, - "id": 5249, + "id": 5251, "name": "OrderFinished", "nodeType": "EventDefinition", "parameters": { - "id": 5248, + "id": 5250, "nodeType": "ParameterList", "parameters": [ { @@ -1496,7 +1501,7 @@ "indexed": false, "name": "orderTxId", "nodeType": "VariableDeclaration", - "scope": 5249, + "scope": 5251, "src": "1341:17:12", "stateVariable": false, "storageLocation": "default", @@ -1523,7 +1528,7 @@ "indexed": true, "name": "consumer", "nodeType": "VariableDeclaration", - "scope": 5249, + "scope": 5251, "src": "1373:24:12", "stateVariable": false, "storageLocation": "default", @@ -1551,7 +1556,7 @@ "indexed": false, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 5249, + "scope": 5251, "src": "1412:14:12", "stateVariable": false, "storageLocation": "default", @@ -1578,7 +1583,7 @@ "indexed": false, "name": "serviceId", "nodeType": "VariableDeclaration", - "scope": 5249, + "scope": 5251, "src": "1441:17:12", "stateVariable": false, "storageLocation": "default", @@ -1605,7 +1610,7 @@ "indexed": true, "name": "provider", "nodeType": "VariableDeclaration", - "scope": 5249, + "scope": 5251, "src": "1473:24:12", "stateVariable": false, "storageLocation": "default", @@ -1626,30 +1631,57 @@ }, "value": null, "visibility": "internal" + }, + { + "constant": false, + "id": 5249, + "indexed": false, + "name": "timestamp", + "nodeType": "VariableDeclaration", + "scope": 5251, + "src": "1511:17:12", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 5248, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1511:7:12", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" } ], - "src": "1327:176:12" + "src": "1327:207:12" }, - "src": "1308:196:12" + "src": "1308:227:12" }, { "anonymous": false, "documentation": null, - "id": 5255, + "id": 5257, "name": "MinterProposed", "nodeType": "EventDefinition", "parameters": { - "id": 5254, + "id": 5256, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5251, + "id": 5253, "indexed": false, "name": "currentMinter", "nodeType": "VariableDeclaration", - "scope": 5255, - "src": "1540:21:12", + "scope": 5257, + "src": "1571:21:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1657,10 +1689,10 @@ "typeString": "address" }, "typeName": { - "id": 5250, + "id": 5252, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1540:7:12", + "src": "1571:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1672,12 +1704,12 @@ }, { "constant": false, - "id": 5253, + "id": 5255, "indexed": false, "name": "newMinter", "nodeType": "VariableDeclaration", - "scope": 5255, - "src": "1571:17:12", + "scope": 5257, + "src": "1602:17:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1685,10 +1717,10 @@ "typeString": "address" }, "typeName": { - "id": 5252, + "id": 5254, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1571:7:12", + "src": "1602:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1699,28 +1731,28 @@ "visibility": "internal" } ], - "src": "1530:64:12" + "src": "1561:64:12" }, - "src": "1510:85:12" + "src": "1541:85:12" }, { "anonymous": false, "documentation": null, - "id": 5261, + "id": 5263, "name": "MinterApproved", "nodeType": "EventDefinition", "parameters": { - "id": 5260, + "id": 5262, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5257, + "id": 5259, "indexed": false, "name": "currentMinter", "nodeType": "VariableDeclaration", - "scope": 5261, - "src": "1631:21:12", + "scope": 5263, + "src": "1662:21:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1728,10 +1760,10 @@ "typeString": "address" }, "typeName": { - "id": 5256, + "id": 5258, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1631:7:12", + "src": "1662:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1743,12 +1775,12 @@ }, { "constant": false, - "id": 5259, + "id": 5261, "indexed": false, "name": "newMinter", "nodeType": "VariableDeclaration", - "scope": 5261, - "src": "1662:17:12", + "scope": 5263, + "src": "1693:17:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1756,10 +1788,10 @@ "typeString": "address" }, "typeName": { - "id": 5258, + "id": 5260, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1662:7:12", + "src": "1693:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1770,15 +1802,15 @@ "visibility": "internal" } ], - "src": "1621:64:12" + "src": "1652:64:12" }, - "src": "1601:85:12" + "src": "1632:85:12" }, { "body": { - "id": 5270, + "id": 5272, "nodeType": "Block", - "src": "1722:140:12", + "src": "1753:140:12", "statements": [ { "expression": { @@ -1786,7 +1818,7 @@ "arguments": [ { "argumentTypes": null, - "id": 5265, + "id": 5267, "isConstant": false, "isLValue": false, "isPure": false, @@ -1794,15 +1826,15 @@ "nodeType": "UnaryOperation", "operator": "!", "prefix": true, - "src": "1753:12:12", + "src": "1784:12:12", "subExpression": { "argumentTypes": null, - "id": 5264, + "id": 5266, "name": "initialized", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5204, - "src": "1754:11:12", + "src": "1785:11:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -1816,14 +1848,14 @@ { "argumentTypes": null, "hexValue": "44617461546f6b656e54656d706c6174653a20746f6b656e20696e7374616e636520616c726561647920696e697469616c697a6564", - "id": 5266, + "id": 5268, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "1779:55:12", + "src": "1810:55:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_3fbe4c86a4c4d9736fd0d2a9400f74e8d124de74cfedc7affa27132fa840428d", @@ -1843,21 +1875,21 @@ "typeString": "literal_string \"DataTokenTemplate: token instance already initialized\"" } ], - "id": 5263, + "id": 5265, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, - "src": "1732:7:12", + "referencedDeclaration": 6551, + "src": "1763:7:12", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5267, + "id": 5269, "isConstant": false, "isLValue": false, "isPure": false, @@ -1865,41 +1897,41 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1732:112:12", + "src": "1763:112:12", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 5268, + "id": 5270, "nodeType": "ExpressionStatement", - "src": "1732:112:12" + "src": "1763:112:12" }, { - "id": 5269, + "id": 5271, "nodeType": "PlaceholderStatement", - "src": "1854:1:12" + "src": "1885:1:12" } ] }, "documentation": null, - "id": 5271, + "id": 5273, "name": "onlyNotInitialized", "nodeType": "ModifierDefinition", "parameters": { - "id": 5262, + "id": 5264, "nodeType": "ParameterList", "parameters": [], - "src": "1719:2:12" + "src": "1750:2:12" }, - "src": "1692:170:12", + "src": "1723:170:12", "visibility": "internal" }, { "body": { - "id": 5282, + "id": 5284, "nodeType": "Block", - "src": "1894:130:12", + "src": "1925:130:12", "statements": [ { "expression": { @@ -1911,7 +1943,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 5277, + "id": 5279, "isConstant": false, "isLValue": false, "isPure": false, @@ -1920,18 +1952,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 5274, + "id": 5276, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, - "src": "1925:3:12", + "referencedDeclaration": 6547, + "src": "1956:3:12", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 5275, + "id": 5277, "isConstant": false, "isLValue": false, "isPure": false, @@ -1939,7 +1971,7 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "1925:10:12", + "src": "1956:10:12", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -1949,18 +1981,18 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 5276, + "id": 5278, "name": "_minter", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5206, - "src": "1939:7:12", + "src": "1970:7:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "1925:21:12", + "src": "1956:21:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -1969,14 +2001,14 @@ { "argumentTypes": null, "hexValue": "44617461546f6b656e54656d706c6174653a20696e76616c6964206d696e746572", - "id": 5278, + "id": 5280, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "1960:35:12", + "src": "1991:35:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_40e35c5de830427b1e8c63a3538e0f1b39d02b02870d69ff7c4ee4488565fe71", @@ -1996,21 +2028,21 @@ "typeString": "literal_string \"DataTokenTemplate: invalid minter\"" } ], - "id": 5273, + "id": 5275, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, - "src": "1904:7:12", + "referencedDeclaration": 6551, + "src": "1935:7:12", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5279, + "id": 5281, "isConstant": false, "isLValue": false, "isPure": false, @@ -2018,41 +2050,41 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1904:102:12", + "src": "1935:102:12", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 5280, + "id": 5282, "nodeType": "ExpressionStatement", - "src": "1904:102:12" + "src": "1935:102:12" }, { - "id": 5281, + "id": 5283, "nodeType": "PlaceholderStatement", - "src": "2016:1:12" + "src": "2047:1:12" } ] }, "documentation": null, - "id": 5283, + "id": 5285, "name": "onlyMinter", "nodeType": "ModifierDefinition", "parameters": { - "id": 5272, + "id": 5274, "nodeType": "ParameterList", "parameters": [], - "src": "1891:2:12" + "src": "1922:2:12" }, - "src": "1872:152:12", + "src": "1903:152:12", "visibility": "internal" }, { "body": { - "id": 5307, + "id": 5309, "nodeType": "Block", - "src": "2684:164:12", + "src": "2715:164:12", "statements": [ { "expression": { @@ -2060,12 +2092,12 @@ "arguments": [ { "argumentTypes": null, - "id": 5299, + "id": 5301, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5285, - "src": "2719:4:12", + "referencedDeclaration": 5287, + "src": "2750:4:12", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" @@ -2073,12 +2105,12 @@ }, { "argumentTypes": null, - "id": 5300, + "id": 5302, "name": "symbol", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5287, - "src": "2737:6:12", + "referencedDeclaration": 5289, + "src": "2768:6:12", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" @@ -2086,12 +2118,12 @@ }, { "argumentTypes": null, - "id": 5301, + "id": 5303, "name": "minterAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5289, - "src": "2757:13:12", + "referencedDeclaration": 5291, + "src": "2788:13:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -2099,12 +2131,12 @@ }, { "argumentTypes": null, - "id": 5302, + "id": 5304, "name": "cap", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5291, - "src": "2784:3:12", + "referencedDeclaration": 5293, + "src": "2815:3:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2112,12 +2144,12 @@ }, { "argumentTypes": null, - "id": 5303, + "id": 5305, "name": "blob", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5293, - "src": "2801:4:12", + "referencedDeclaration": 5295, + "src": "2832:4:12", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" @@ -2125,12 +2157,12 @@ }, { "argumentTypes": null, - "id": 5304, + "id": 5306, "name": "feeCollector", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5295, - "src": "2819:12:12", + "referencedDeclaration": 5297, + "src": "2850:12:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -2164,18 +2196,18 @@ "typeString": "address" } ], - "id": 5298, + "id": 5300, "name": "_initialize", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5419, - "src": "2694:11:12", + "referencedDeclaration": 5421, + "src": "2725:11:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$_t_address_$_t_uint256_$_t_string_memory_ptr_$_t_address_$returns$_t_bool_$", "typeString": "function (string memory,string memory,address,uint256,string memory,address) returns (bool)" } }, - "id": 5305, + "id": 5307, "isConstant": false, "isLValue": false, "isPure": false, @@ -2183,36 +2215,36 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2694:147:12", + "src": "2725:147:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, - "id": 5306, + "id": 5308, "nodeType": "ExpressionStatement", - "src": "2694:147:12" + "src": "2725:147:12" } ] }, "documentation": "@dev constructor\n Called prior contract deployment\n@param name refers to a template DataToken name\n@param symbol refers to a template DataToken symbol\n@param minterAddress refers to an address that has minter role\n@param cap the total ERC20 cap\n@param blob data string refering to the resolver for the metadata\n@param feeCollector it is the community fee collector address", - "id": 5308, + "id": 5310, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { - "id": 5296, + "id": 5298, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5285, + "id": 5287, "name": "name", "nodeType": "VariableDeclaration", - "scope": 5308, - "src": "2500:18:12", + "scope": 5310, + "src": "2531:18:12", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { @@ -2220,10 +2252,10 @@ "typeString": "string" }, "typeName": { - "id": 5284, + "id": 5286, "name": "string", "nodeType": "ElementaryTypeName", - "src": "2500:6:12", + "src": "2531:6:12", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -2234,11 +2266,11 @@ }, { "constant": false, - "id": 5287, + "id": 5289, "name": "symbol", "nodeType": "VariableDeclaration", - "scope": 5308, - "src": "2528:20:12", + "scope": 5310, + "src": "2559:20:12", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { @@ -2246,10 +2278,10 @@ "typeString": "string" }, "typeName": { - "id": 5286, + "id": 5288, "name": "string", "nodeType": "ElementaryTypeName", - "src": "2528:6:12", + "src": "2559:6:12", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -2260,11 +2292,11 @@ }, { "constant": false, - "id": 5289, + "id": 5291, "name": "minterAddress", "nodeType": "VariableDeclaration", - "scope": 5308, - "src": "2558:21:12", + "scope": 5310, + "src": "2589:21:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2272,10 +2304,10 @@ "typeString": "address" }, "typeName": { - "id": 5288, + "id": 5290, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2558:7:12", + "src": "2589:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2287,11 +2319,11 @@ }, { "constant": false, - "id": 5291, + "id": 5293, "name": "cap", "nodeType": "VariableDeclaration", - "scope": 5308, - "src": "2589:11:12", + "scope": 5310, + "src": "2620:11:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2299,10 +2331,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5290, + "id": 5292, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "2589:7:12", + "src": "2620:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2313,11 +2345,11 @@ }, { "constant": false, - "id": 5293, + "id": 5295, "name": "blob", "nodeType": "VariableDeclaration", - "scope": 5308, - "src": "2610:18:12", + "scope": 5310, + "src": "2641:18:12", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { @@ -2325,10 +2357,10 @@ "typeString": "string" }, "typeName": { - "id": 5292, + "id": 5294, "name": "string", "nodeType": "ElementaryTypeName", - "src": "2610:6:12", + "src": "2641:6:12", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -2339,11 +2371,11 @@ }, { "constant": false, - "id": 5295, + "id": 5297, "name": "feeCollector", "nodeType": "VariableDeclaration", - "scope": 5308, - "src": "2638:20:12", + "scope": 5310, + "src": "2669:20:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2351,10 +2383,10 @@ "typeString": "address" }, "typeName": { - "id": 5294, + "id": 5296, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2638:7:12", + "src": "2669:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2365,25 +2397,25 @@ "visibility": "internal" } ], - "src": "2490:174:12" + "src": "2521:174:12" }, "returnParameters": { - "id": 5297, + "id": 5299, "nodeType": "ParameterList", "parameters": [], - "src": "2684:0:12" + "src": "2715:0:12" }, - "scope": 5694, - "src": "2479:369:12", + "scope": 5698, + "src": "2510:369:12", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 5336, + "id": 5338, "nodeType": "Block", - "src": "3696:171:12", + "src": "3727:171:12", "statements": [ { "expression": { @@ -2391,12 +2423,12 @@ "arguments": [ { "argumentTypes": null, - "id": 5328, + "id": 5330, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5310, - "src": "3738:4:12", + "referencedDeclaration": 5312, + "src": "3769:4:12", "typeDescriptions": { "typeIdentifier": "t_string_calldata_ptr", "typeString": "string calldata" @@ -2404,12 +2436,12 @@ }, { "argumentTypes": null, - "id": 5329, + "id": 5331, "name": "symbol", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5312, - "src": "3756:6:12", + "referencedDeclaration": 5314, + "src": "3787:6:12", "typeDescriptions": { "typeIdentifier": "t_string_calldata_ptr", "typeString": "string calldata" @@ -2417,12 +2449,12 @@ }, { "argumentTypes": null, - "id": 5330, + "id": 5332, "name": "minterAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5314, - "src": "3776:13:12", + "referencedDeclaration": 5316, + "src": "3807:13:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -2430,12 +2462,12 @@ }, { "argumentTypes": null, - "id": 5331, + "id": 5333, "name": "cap", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5316, - "src": "3803:3:12", + "referencedDeclaration": 5318, + "src": "3834:3:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2443,12 +2475,12 @@ }, { "argumentTypes": null, - "id": 5332, + "id": 5334, "name": "blob", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5318, - "src": "3820:4:12", + "referencedDeclaration": 5320, + "src": "3851:4:12", "typeDescriptions": { "typeIdentifier": "t_string_calldata_ptr", "typeString": "string calldata" @@ -2456,12 +2488,12 @@ }, { "argumentTypes": null, - "id": 5333, + "id": 5335, "name": "feeCollector", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5320, - "src": "3838:12:12", + "referencedDeclaration": 5322, + "src": "3869:12:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -2495,18 +2527,18 @@ "typeString": "address" } ], - "id": 5327, + "id": 5329, "name": "_initialize", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5419, - "src": "3713:11:12", + "referencedDeclaration": 5421, + "src": "3744:11:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$_t_address_$_t_uint256_$_t_string_memory_ptr_$_t_address_$returns$_t_bool_$", "typeString": "function (string memory,string memory,address,uint256,string memory,address) returns (bool)" } }, - "id": 5334, + "id": 5336, "isConstant": false, "isLValue": false, "isPure": false, @@ -2514,57 +2546,57 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3713:147:12", + "src": "3744:147:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, - "functionReturnParameters": 5326, - "id": 5335, + "functionReturnParameters": 5328, + "id": 5337, "nodeType": "Return", - "src": "3706:154:12" + "src": "3737:154:12" } ] }, "documentation": "@dev initialize\n Called prior contract initialization (e.g creating new DataToken instance)\n Calls private _initialize function. Only if contract is not initialized.\n@param name refers to a new DataToken name\n@param symbol refers to a nea DataToken symbol\n@param minterAddress refers to an address that has minter rights\n@param cap the total ERC20 cap\n@param blob data string refering to the resolver for the metadata\n@param feeCollector it is the community fee collector address", - "id": 5337, + "id": 5339, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, - "id": 5323, + "id": 5325, "modifierName": { "argumentTypes": null, - "id": 5322, + "id": 5324, "name": "onlyNotInitialized", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5271, - "src": "3651:18:12", + "referencedDeclaration": 5273, + "src": "3682:18:12", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "3651:18:12" + "src": "3682:18:12" } ], "name": "initialize", "nodeType": "FunctionDefinition", "parameters": { - "id": 5321, + "id": 5323, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5310, + "id": 5312, "name": "name", "nodeType": "VariableDeclaration", - "scope": 5337, - "src": "3454:20:12", + "scope": 5339, + "src": "3485:20:12", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { @@ -2572,10 +2604,10 @@ "typeString": "string" }, "typeName": { - "id": 5309, + "id": 5311, "name": "string", "nodeType": "ElementaryTypeName", - "src": "3454:6:12", + "src": "3485:6:12", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -2586,11 +2618,11 @@ }, { "constant": false, - "id": 5312, + "id": 5314, "name": "symbol", "nodeType": "VariableDeclaration", - "scope": 5337, - "src": "3484:22:12", + "scope": 5339, + "src": "3515:22:12", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { @@ -2598,10 +2630,10 @@ "typeString": "string" }, "typeName": { - "id": 5311, + "id": 5313, "name": "string", "nodeType": "ElementaryTypeName", - "src": "3484:6:12", + "src": "3515:6:12", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -2612,11 +2644,11 @@ }, { "constant": false, - "id": 5314, + "id": 5316, "name": "minterAddress", "nodeType": "VariableDeclaration", - "scope": 5337, - "src": "3516:21:12", + "scope": 5339, + "src": "3547:21:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2624,10 +2656,10 @@ "typeString": "address" }, "typeName": { - "id": 5313, + "id": 5315, "name": "address", "nodeType": "ElementaryTypeName", - "src": "3516:7:12", + "src": "3547:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2639,11 +2671,11 @@ }, { "constant": false, - "id": 5316, + "id": 5318, "name": "cap", "nodeType": "VariableDeclaration", - "scope": 5337, - "src": "3547:11:12", + "scope": 5339, + "src": "3578:11:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2651,10 +2683,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5315, + "id": 5317, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "3547:7:12", + "src": "3578:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2665,11 +2697,11 @@ }, { "constant": false, - "id": 5318, + "id": 5320, "name": "blob", "nodeType": "VariableDeclaration", - "scope": 5337, - "src": "3568:20:12", + "scope": 5339, + "src": "3599:20:12", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { @@ -2677,10 +2709,10 @@ "typeString": "string" }, "typeName": { - "id": 5317, + "id": 5319, "name": "string", "nodeType": "ElementaryTypeName", - "src": "3568:6:12", + "src": "3599:6:12", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -2691,11 +2723,11 @@ }, { "constant": false, - "id": 5320, + "id": 5322, "name": "feeCollector", "nodeType": "VariableDeclaration", - "scope": 5337, - "src": "3598:20:12", + "scope": 5339, + "src": "3629:20:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2703,10 +2735,10 @@ "typeString": "address" }, "typeName": { - "id": 5319, + "id": 5321, "name": "address", "nodeType": "ElementaryTypeName", - "src": "3598:7:12", + "src": "3629:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2717,19 +2749,19 @@ "visibility": "internal" } ], - "src": "3444:180:12" + "src": "3475:180:12" }, "returnParameters": { - "id": 5326, + "id": 5328, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5325, + "id": 5327, "name": "", "nodeType": "VariableDeclaration", - "scope": 5337, - "src": "3686:4:12", + "scope": 5339, + "src": "3717:4:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2737,10 +2769,10 @@ "typeString": "bool" }, "typeName": { - "id": 5324, + "id": 5326, "name": "bool", "nodeType": "ElementaryTypeName", - "src": "3686:4:12", + "src": "3717:4:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -2750,19 +2782,19 @@ "visibility": "internal" } ], - "src": "3685:6:12" + "src": "3716:6:12" }, - "scope": 5694, - "src": "3425:442:12", + "scope": 5698, + "src": "3456:442:12", "stateMutability": "nonpayable", "superFunction": 5000, "visibility": "external" }, { "body": { - "id": 5418, + "id": 5420, "nodeType": "Block", - "src": "4570:743:12", + "src": "4601:743:12", "statements": [ { "expression": { @@ -2774,19 +2806,19 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 5359, + "id": 5361, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5355, + "id": 5357, "name": "minterAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5343, - "src": "4601:13:12", + "referencedDeclaration": 5345, + "src": "4632:13:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -2800,14 +2832,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 5357, + "id": 5359, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "4626:1:12", + "src": "4657:1:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -2823,20 +2855,20 @@ "typeString": "int_const 0" } ], - "id": 5356, + "id": 5358, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "4618:7:12", + "src": "4649:7:12", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 5358, + "id": 5360, "isConstant": false, "isLValue": false, "isPure": true, @@ -2844,13 +2876,13 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4618:10:12", + "src": "4649:10:12", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, - "src": "4601:27:12", + "src": "4632:27:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -2859,14 +2891,14 @@ { "argumentTypes": null, "hexValue": "44617461546f6b656e54656d706c6174653a20496e76616c6964206d696e7465722c20207a65726f2061646472657373", - "id": 5360, + "id": 5362, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "4643:50:12", + "src": "4674:50:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_79b023297db239e06df0b00bacc5eecb1d80c9686a2e70ed8293de6723d3cfa6", @@ -2886,21 +2918,21 @@ "typeString": "literal_string \"DataTokenTemplate: Invalid minter, zero address\"" } ], - "id": 5354, + "id": 5356, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, - "src": "4580:7:12", + "referencedDeclaration": 6551, + "src": "4611:7:12", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5361, + "id": 5363, "isConstant": false, "isLValue": false, "isPure": false, @@ -2908,15 +2940,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4580:123:12", + "src": "4611:123:12", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 5362, + "id": 5364, "nodeType": "ExpressionStatement", - "src": "4580:123:12" + "src": "4611:123:12" }, { "expression": { @@ -2928,19 +2960,19 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 5368, + "id": 5370, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5364, + "id": 5366, "name": "_minter", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5206, - "src": "4735:7:12", + "src": "4766:7:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -2954,14 +2986,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 5366, + "id": 5368, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "4754:1:12", + "src": "4785:1:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -2977,20 +3009,20 @@ "typeString": "int_const 0" } ], - "id": 5365, + "id": 5367, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "4746:7:12", + "src": "4777:7:12", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 5367, + "id": 5369, "isConstant": false, "isLValue": false, "isPure": true, @@ -2998,13 +3030,13 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4746:10:12", + "src": "4777:10:12", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, - "src": "4735:21:12", + "src": "4766:21:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -3013,14 +3045,14 @@ { "argumentTypes": null, "hexValue": "44617461546f6b656e54656d706c6174653a20496e76616c6964206d696e7465722c207a65726f2061646472657373", - "id": 5369, + "id": 5371, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "4771:49:12", + "src": "4802:49:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_b9b9e16289fbb5851262a16209ee436929da92a7a333eeb45338a6bda1fc88b5", @@ -3040,21 +3072,21 @@ "typeString": "literal_string \"DataTokenTemplate: Invalid minter, zero address\"" } ], - "id": 5363, + "id": 5365, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, - "src": "4714:7:12", + "referencedDeclaration": 6551, + "src": "4745:7:12", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5370, + "id": 5372, "isConstant": false, "isLValue": false, "isPure": false, @@ -3062,15 +3094,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4714:116:12", + "src": "4745:116:12", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 5371, + "id": 5373, "nodeType": "ExpressionStatement", - "src": "4714:116:12" + "src": "4745:116:12" }, { "expression": { @@ -3082,19 +3114,19 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 5377, + "id": 5379, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5373, + "id": 5375, "name": "feeCollector", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5349, - "src": "4862:12:12", + "referencedDeclaration": 5351, + "src": "4893:12:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -3108,14 +3140,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 5375, + "id": 5377, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "4886:1:12", + "src": "4917:1:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -3131,20 +3163,20 @@ "typeString": "int_const 0" } ], - "id": 5374, + "id": 5376, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "4878:7:12", + "src": "4909:7:12", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 5376, + "id": 5378, "isConstant": false, "isLValue": false, "isPure": true, @@ -3152,13 +3184,13 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4878:10:12", + "src": "4909:10:12", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, - "src": "4862:26:12", + "src": "4893:26:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -3167,14 +3199,14 @@ { "argumentTypes": null, "hexValue": "44617461546f6b656e54656d706c6174653a20496e76616c696420636f6d6d756e6974792066656520636f6c6c6563746f722c207a65726f2061646472657373", - "id": 5378, + "id": 5380, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "4902:66:12", + "src": "4933:66:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_79b4d95ff9378609f77ba871e4eb20868d893b58fb0b84eff9a61c2168cec2e8", @@ -3194,21 +3226,21 @@ "typeString": "literal_string \"DataTokenTemplate: Invalid community fee collector, zero address\"" } ], - "id": 5372, + "id": 5374, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, - "src": "4841:7:12", + "referencedDeclaration": 6551, + "src": "4872:7:12", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5379, + "id": 5381, "isConstant": false, "isLValue": false, "isPure": false, @@ -3216,15 +3248,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4841:137:12", + "src": "4872:137:12", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 5380, + "id": 5382, "nodeType": "ExpressionStatement", - "src": "4841:137:12" + "src": "4872:137:12" }, { "expression": { @@ -3236,19 +3268,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5384, + "id": 5386, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5382, + "id": 5384, "name": "cap", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5345, - "src": "5010:3:12", + "referencedDeclaration": 5347, + "src": "5041:3:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3259,14 +3291,14 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 5383, + "id": 5385, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "5017:1:12", + "src": "5048:1:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -3274,7 +3306,7 @@ }, "value": "0" }, - "src": "5010:8:12", + "src": "5041:8:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -3283,14 +3315,14 @@ { "argumentTypes": null, "hexValue": "44617461546f6b656e54656d706c6174653a20496e76616c6964206361702076616c7565", - "id": 5385, + "id": 5387, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "5032:38:12", + "src": "5063:38:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_931eb4f9c6ddf66acc5bb36f4acf3bb199deea0451b189ecfb6b4e252da29b03", @@ -3310,21 +3342,21 @@ "typeString": "literal_string \"DataTokenTemplate: Invalid cap value\"" } ], - "id": 5381, + "id": 5383, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, - "src": "4989:7:12", + "referencedDeclaration": 6551, + "src": "5020:7:12", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5386, + "id": 5388, "isConstant": false, "isLValue": false, "isPure": false, @@ -3332,32 +3364,32 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4989:91:12", + "src": "5020:91:12", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 5387, + "id": 5389, "nodeType": "ExpressionStatement", - "src": "4989:91:12" + "src": "5020:91:12" }, { "expression": { "argumentTypes": null, - "id": 5390, + "id": 5392, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 5388, + "id": 5390, "name": "_cap", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5196, - "src": "5090:4:12", + "src": "5121:4:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3367,43 +3399,43 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 5389, + "id": 5391, "name": "cap", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5345, - "src": "5097:3:12", + "referencedDeclaration": 5347, + "src": "5128:3:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "5090:10:12", + "src": "5121:10:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 5391, + "id": 5393, "nodeType": "ExpressionStatement", - "src": "5090:10:12" + "src": "5121:10:12" }, { "expression": { "argumentTypes": null, - "id": 5394, + "id": 5396, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 5392, + "id": 5394, "name": "_name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5190, - "src": "5110:5:12", + "src": "5141:5:12", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" @@ -3413,43 +3445,43 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 5393, + "id": 5395, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5339, - "src": "5118:4:12", + "referencedDeclaration": 5341, + "src": "5149:4:12", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, - "src": "5110:12:12", + "src": "5141:12:12", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, - "id": 5395, + "id": 5397, "nodeType": "ExpressionStatement", - "src": "5110:12:12" + "src": "5141:12:12" }, { "expression": { "argumentTypes": null, - "id": 5398, + "id": 5400, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 5396, + "id": 5398, "name": "_blob", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5194, - "src": "5132:5:12", + "src": "5163:5:12", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" @@ -3459,43 +3491,43 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 5397, + "id": 5399, "name": "blob", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5347, - "src": "5140:4:12", + "referencedDeclaration": 5349, + "src": "5171:4:12", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, - "src": "5132:12:12", + "src": "5163:12:12", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, - "id": 5399, + "id": 5401, "nodeType": "ExpressionStatement", - "src": "5132:12:12" + "src": "5163:12:12" }, { "expression": { "argumentTypes": null, - "id": 5402, + "id": 5404, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 5400, + "id": 5402, "name": "_symbol", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5192, - "src": "5154:7:12", + "src": "5185:7:12", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" @@ -3505,43 +3537,43 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 5401, + "id": 5403, "name": "symbol", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5341, - "src": "5164:6:12", + "referencedDeclaration": 5343, + "src": "5195:6:12", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, - "src": "5154:16:12", + "src": "5185:16:12", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, - "id": 5403, + "id": 5405, "nodeType": "ExpressionStatement", - "src": "5154:16:12" + "src": "5185:16:12" }, { "expression": { "argumentTypes": null, - "id": 5406, + "id": 5408, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 5404, + "id": 5406, "name": "_minter", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5206, - "src": "5180:7:12", + "src": "5211:7:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -3551,43 +3583,43 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 5405, + "id": 5407, "name": "minterAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5343, - "src": "5190:13:12", + "referencedDeclaration": 5345, + "src": "5221:13:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "5180:23:12", + "src": "5211:23:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "id": 5407, + "id": 5409, "nodeType": "ExpressionStatement", - "src": "5180:23:12" + "src": "5211:23:12" }, { "expression": { "argumentTypes": null, - "id": 5410, + "id": 5412, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 5408, + "id": 5410, "name": "_communityFeeCollector", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5201, - "src": "5213:22:12", + "src": "5244:22:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -3597,43 +3629,43 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 5409, + "id": 5411, "name": "feeCollector", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5349, - "src": "5238:12:12", + "referencedDeclaration": 5351, + "src": "5269:12:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "5213:37:12", + "src": "5244:37:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "id": 5411, + "id": 5413, "nodeType": "ExpressionStatement", - "src": "5213:37:12" + "src": "5244:37:12" }, { "expression": { "argumentTypes": null, - "id": 5414, + "id": 5416, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 5412, + "id": 5414, "name": "initialized", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5204, - "src": "5260:11:12", + "src": "5291:11:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -3644,14 +3676,14 @@ "rightHandSide": { "argumentTypes": null, "hexValue": "74727565", - "id": 5413, + "id": 5415, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", - "src": "5274:4:12", + "src": "5305:4:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", @@ -3659,55 +3691,55 @@ }, "value": "true" }, - "src": "5260:18:12", + "src": "5291:18:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, - "id": 5415, + "id": 5417, "nodeType": "ExpressionStatement", - "src": "5260:18:12" + "src": "5291:18:12" }, { "expression": { "argumentTypes": null, - "id": 5416, + "id": 5418, "name": "initialized", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5204, - "src": "5295:11:12", + "src": "5326:11:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, - "functionReturnParameters": 5353, - "id": 5417, + "functionReturnParameters": 5355, + "id": 5419, "nodeType": "Return", - "src": "5288:18:12" + "src": "5319:18:12" } ] }, "documentation": "@dev _initialize\n Private function called on contract initialization.\n@param name refers to a new DataToken name\n@param symbol refers to a nea DataToken symbol\n@param minterAddress refers to an address that has minter rights\n@param cap the total ERC20 cap\n@param blob data string refering to the resolver for the metadata\n@param feeCollector it is the community fee collector address", - "id": 5419, + "id": 5421, "implemented": true, "kind": "function", "modifiers": [], "name": "_initialize", "nodeType": "FunctionDefinition", "parameters": { - "id": 5350, + "id": 5352, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5339, + "id": 5341, "name": "name", "nodeType": "VariableDeclaration", - "scope": 5419, - "src": "4363:18:12", + "scope": 5421, + "src": "4394:18:12", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { @@ -3715,10 +3747,10 @@ "typeString": "string" }, "typeName": { - "id": 5338, + "id": 5340, "name": "string", "nodeType": "ElementaryTypeName", - "src": "4363:6:12", + "src": "4394:6:12", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -3729,11 +3761,11 @@ }, { "constant": false, - "id": 5341, + "id": 5343, "name": "symbol", "nodeType": "VariableDeclaration", - "scope": 5419, - "src": "4391:20:12", + "scope": 5421, + "src": "4422:20:12", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { @@ -3741,10 +3773,10 @@ "typeString": "string" }, "typeName": { - "id": 5340, + "id": 5342, "name": "string", "nodeType": "ElementaryTypeName", - "src": "4391:6:12", + "src": "4422:6:12", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -3755,11 +3787,11 @@ }, { "constant": false, - "id": 5343, + "id": 5345, "name": "minterAddress", "nodeType": "VariableDeclaration", - "scope": 5419, - "src": "4421:21:12", + "scope": 5421, + "src": "4452:21:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3767,10 +3799,10 @@ "typeString": "address" }, "typeName": { - "id": 5342, + "id": 5344, "name": "address", "nodeType": "ElementaryTypeName", - "src": "4421:7:12", + "src": "4452:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -3782,11 +3814,11 @@ }, { "constant": false, - "id": 5345, + "id": 5347, "name": "cap", "nodeType": "VariableDeclaration", - "scope": 5419, - "src": "4452:11:12", + "scope": 5421, + "src": "4483:11:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3794,10 +3826,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5344, + "id": 5346, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "4452:7:12", + "src": "4483:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3808,11 +3840,11 @@ }, { "constant": false, - "id": 5347, + "id": 5349, "name": "blob", "nodeType": "VariableDeclaration", - "scope": 5419, - "src": "4473:18:12", + "scope": 5421, + "src": "4504:18:12", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { @@ -3820,10 +3852,10 @@ "typeString": "string" }, "typeName": { - "id": 5346, + "id": 5348, "name": "string", "nodeType": "ElementaryTypeName", - "src": "4473:6:12", + "src": "4504:6:12", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -3834,11 +3866,11 @@ }, { "constant": false, - "id": 5349, + "id": 5351, "name": "feeCollector", "nodeType": "VariableDeclaration", - "scope": 5419, - "src": "4501:20:12", + "scope": 5421, + "src": "4532:20:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3846,10 +3878,10 @@ "typeString": "address" }, "typeName": { - "id": 5348, + "id": 5350, "name": "address", "nodeType": "ElementaryTypeName", - "src": "4501:7:12", + "src": "4532:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -3860,19 +3892,19 @@ "visibility": "internal" } ], - "src": "4353:174:12" + "src": "4384:174:12" }, "returnParameters": { - "id": 5353, + "id": 5355, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5352, + "id": 5354, "name": "", "nodeType": "VariableDeclaration", - "scope": 5419, - "src": "4560:4:12", + "scope": 5421, + "src": "4591:4:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3880,10 +3912,10 @@ "typeString": "bool" }, "typeName": { - "id": 5351, + "id": 5353, "name": "bool", "nodeType": "ElementaryTypeName", - "src": "4560:4:12", + "src": "4591:4:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -3893,19 +3925,19 @@ "visibility": "internal" } ], - "src": "4559:6:12" + "src": "4590:6:12" }, - "scope": 5694, - "src": "4333:980:12", + "scope": 5698, + "src": "4364:980:12", "stateMutability": "nonpayable", "superFunction": null, "visibility": "private" }, { "body": { - "id": 5444, + "id": 5446, "nodeType": "Block", - "src": "5742:159:12", + "src": "5773:159:12", "statements": [ { "expression": { @@ -3917,7 +3949,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5435, + "id": 5437, "isConstant": false, "isLValue": false, "isPure": false, @@ -3927,12 +3959,12 @@ "arguments": [ { "argumentTypes": null, - "id": 5432, + "id": 5434, "name": "value", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5423, - "src": "5791:5:12", + "referencedDeclaration": 5425, + "src": "5822:5:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3951,18 +3983,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 5429, + "id": 5431, "name": "totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6086, - "src": "5773:11:12", + "referencedDeclaration": 6090, + "src": "5804:11:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$", "typeString": "function () view returns (uint256)" } }, - "id": 5430, + "id": 5432, "isConstant": false, "isLValue": false, "isPure": false, @@ -3970,27 +4002,27 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5773:13:12", + "src": "5804:13:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 5431, + "id": 5433, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "add", "nodeType": "MemberAccess", - "referencedDeclaration": 5776, - "src": "5773:17:12", + "referencedDeclaration": 5780, + "src": "5804:17:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 5433, + "id": 5435, "isConstant": false, "isLValue": false, "isPure": false, @@ -3998,7 +4030,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5773:24:12", + "src": "5804:24:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4008,18 +4040,18 @@ "operator": "<=", "rightExpression": { "argumentTypes": null, - "id": 5434, + "id": 5436, "name": "_cap", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5196, - "src": "5801:4:12", + "src": "5832:4:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "5773:32:12", + "src": "5804:32:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -4028,14 +4060,14 @@ { "argumentTypes": null, "hexValue": "44617461546f6b656e54656d706c6174653a20636170206578636565646564", - "id": 5436, + "id": 5438, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "5820:33:12", + "src": "5851:33:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_db37e28d4a1d757900849adc30f19972d8f520005ecc78e1ba1f3c9b13636ae7", @@ -4055,21 +4087,21 @@ "typeString": "literal_string \"DataTokenTemplate: cap exceeded\"" } ], - "id": 5428, + "id": 5430, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, - "src": "5752:7:12", + "referencedDeclaration": 6551, + "src": "5783:7:12", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5437, + "id": 5439, "isConstant": false, "isLValue": false, "isPure": false, @@ -4077,15 +4109,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5752:111:12", + "src": "5783:111:12", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 5438, + "id": 5440, "nodeType": "ExpressionStatement", - "src": "5752:111:12" + "src": "5783:111:12" }, { "expression": { @@ -4093,12 +4125,12 @@ "arguments": [ { "argumentTypes": null, - "id": 5440, + "id": 5442, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5421, - "src": "5879:7:12", + "referencedDeclaration": 5423, + "src": "5910:7:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -4106,12 +4138,12 @@ }, { "argumentTypes": null, - "id": 5441, + "id": 5443, "name": "value", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5423, - "src": "5888:5:12", + "referencedDeclaration": 5425, + "src": "5919:5:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4129,18 +4161,18 @@ "typeString": "uint256" } ], - "id": 5439, + "id": 5441, "name": "_mint", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6343, - "src": "5873:5:12", + "referencedDeclaration": 6347, + "src": "5904:5:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,uint256)" } }, - "id": 5442, + "id": 5444, "isConstant": false, "isLValue": false, "isPure": false, @@ -4148,56 +4180,56 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5873:21:12", + "src": "5904:21:12", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 5443, + "id": 5445, "nodeType": "ExpressionStatement", - "src": "5873:21:12" + "src": "5904:21:12" } ] }, "documentation": "@dev mint\n Only the minter address can call it.\n msg.value should be higher than zero and gt or eq minting fee\n@param account refers to an address that token is going to be minted to.\n@param value refers to amount of tokens that is going to be minted.", - "id": 5445, + "id": 5447, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, - "id": 5426, + "id": 5428, "modifierName": { "argumentTypes": null, - "id": 5425, + "id": 5427, "name": "onlyMinter", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5283, - "src": "5726:10:12", + "referencedDeclaration": 5285, + "src": "5757:10:12", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "5726:10:12" + "src": "5757:10:12" } ], "name": "mint", "nodeType": "FunctionDefinition", "parameters": { - "id": 5424, + "id": 5426, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5421, + "id": 5423, "name": "account", "nodeType": "VariableDeclaration", - "scope": 5445, - "src": "5653:15:12", + "scope": 5447, + "src": "5684:15:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4205,10 +4237,10 @@ "typeString": "address" }, "typeName": { - "id": 5420, + "id": 5422, "name": "address", "nodeType": "ElementaryTypeName", - "src": "5653:7:12", + "src": "5684:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -4220,11 +4252,11 @@ }, { "constant": false, - "id": 5423, + "id": 5425, "name": "value", "nodeType": "VariableDeclaration", - "scope": 5445, - "src": "5678:13:12", + "scope": 5447, + "src": "5709:13:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4232,10 +4264,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5422, + "id": 5424, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "5678:7:12", + "src": "5709:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4245,38 +4277,38 @@ "visibility": "internal" } ], - "src": "5643:54:12" + "src": "5674:54:12" }, "returnParameters": { - "id": 5427, + "id": 5429, "nodeType": "ParameterList", "parameters": [], - "src": "5742:0:12" + "src": "5773:0:12" }, - "scope": 5694, - "src": "5630:271:12", + "scope": 5698, + "src": "5661:271:12", "stateMutability": "nonpayable", "superFunction": 5007, "visibility": "external" }, { "body": { - "id": 5515, + "id": 5517, "nodeType": "Block", - "src": "6350:728:12", + "src": "6381:731:12", "statements": [ { "assignments": [ - 5455 + 5457 ], "declarations": [ { "constant": false, - "id": 5455, + "id": 5457, "name": "marketFee", "nodeType": "VariableDeclaration", - "scope": 5515, - "src": "6360:17:12", + "scope": 5517, + "src": "6391:17:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4284,10 +4316,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5454, + "id": 5456, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "6360:7:12", + "src": "6391:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4297,18 +4329,18 @@ "visibility": "internal" } ], - "id": 5457, + "id": 5459, "initialValue": { "argumentTypes": null, "hexValue": "30", - "id": 5456, + "id": 5458, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "6380:1:12", + "src": "6411:1:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -4317,20 +4349,20 @@ "value": "0" }, "nodeType": "VariableDeclarationStatement", - "src": "6360:21:12" + "src": "6391:21:12" }, { "assignments": [ - 5459 + 5461 ], "declarations": [ { "constant": false, - "id": 5459, + "id": 5461, "name": "communityFee", "nodeType": "VariableDeclaration", - "scope": 5515, - "src": "6391:20:12", + "scope": 5517, + "src": "6422:20:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4338,10 +4370,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5458, + "id": 5460, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "6391:7:12", + "src": "6422:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4351,18 +4383,18 @@ "visibility": "internal" } ], - "id": 5464, + "id": 5466, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 5461, + "id": 5463, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5447, - "src": "6440:6:12", + "referencedDeclaration": 5449, + "src": "6471:6:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4370,12 +4402,12 @@ }, { "argumentTypes": null, - "id": 5462, + "id": 5464, "name": "BASE_COMMUNITY_FEE_PERCENTAGE", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5218, - "src": "6461:29:12", + "src": "6492:29:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4393,18 +4425,18 @@ "typeString": "uint256" } ], - "id": 5460, + "id": 5462, "name": "calculateFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5693, - "src": "6414:12:12", + "referencedDeclaration": 5697, + "src": "6445:12:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 5463, + "id": 5465, "isConstant": false, "isLValue": false, "isPure": false, @@ -4412,14 +4444,14 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6414:86:12", + "src": "6445:86:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", - "src": "6391:109:12" + "src": "6422:109:12" }, { "expression": { @@ -4427,12 +4459,12 @@ "arguments": [ { "argumentTypes": null, - "id": 5466, + "id": 5468, "name": "_communityFeeCollector", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5201, - "src": "6519:22:12", + "src": "6550:22:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -4440,12 +4472,12 @@ }, { "argumentTypes": null, - "id": 5467, + "id": 5469, "name": "communityFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5459, - "src": "6543:12:12", + "referencedDeclaration": 5461, + "src": "6574:12:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4463,18 +4495,18 @@ "typeString": "uint256" } ], - "id": 5465, + "id": 5467, "name": "transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6117, - "src": "6510:8:12", + "referencedDeclaration": 6121, + "src": "6541:8:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$_t_bool_$", "typeString": "function (address,uint256) returns (bool)" } }, - "id": 5468, + "id": 5470, "isConstant": false, "isLValue": false, "isPure": false, @@ -4482,15 +4514,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6510:46:12", + "src": "6541:46:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, - "id": 5469, + "id": 5471, "nodeType": "ExpressionStatement", - "src": "6510:46:12" + "src": "6541:46:12" }, { "condition": { @@ -4499,19 +4531,19 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 5474, + "id": 5476, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5470, + "id": 5472, "name": "mrktFeeCollector", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5451, - "src": "6569:16:12", + "referencedDeclaration": 5453, + "src": "6600:16:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -4525,14 +4557,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 5472, + "id": 5474, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "6597:1:12", + "src": "6628:1:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -4548,20 +4580,20 @@ "typeString": "int_const 0" } ], - "id": 5471, + "id": 5473, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "6589:7:12", + "src": "6620:7:12", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 5473, + "id": 5475, "isConstant": false, "isLValue": false, "isPure": true, @@ -4569,43 +4601,43 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6589:10:12", + "src": "6620:10:12", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, - "src": "6569:30:12", + "src": "6600:30:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, - "id": 5488, + "id": 5490, "nodeType": "IfStatement", - "src": "6566:217:12", + "src": "6597:217:12", "trueBody": { - "id": 5487, + "id": 5489, "nodeType": "Block", - "src": "6600:183:12", + "src": "6631:183:12", "statements": [ { "expression": { "argumentTypes": null, - "id": 5480, + "id": 5482, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 5475, + "id": 5477, "name": "marketFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5455, - "src": "6614:9:12", + "referencedDeclaration": 5457, + "src": "6645:9:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4618,12 +4650,12 @@ "arguments": [ { "argumentTypes": null, - "id": 5477, + "id": 5479, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5447, - "src": "6656:6:12", + "referencedDeclaration": 5449, + "src": "6687:6:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4631,12 +4663,12 @@ }, { "argumentTypes": null, - "id": 5478, + "id": 5480, "name": "BASE_MARKET_FEE_PERCENTAGE", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5223, - "src": "6681:26:12", + "src": "6712:26:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4654,18 +4686,18 @@ "typeString": "uint256" } ], - "id": 5476, + "id": 5478, "name": "calculateFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5693, - "src": "6626:12:12", + "referencedDeclaration": 5697, + "src": "6657:12:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 5479, + "id": 5481, "isConstant": false, "isLValue": false, "isPure": false, @@ -4673,21 +4705,21 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6626:95:12", + "src": "6657:95:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "6614:107:12", + "src": "6645:107:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 5481, + "id": 5483, "nodeType": "ExpressionStatement", - "src": "6614:107:12" + "src": "6645:107:12" }, { "expression": { @@ -4695,12 +4727,12 @@ "arguments": [ { "argumentTypes": null, - "id": 5483, + "id": 5485, "name": "mrktFeeCollector", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5451, - "src": "6744:16:12", + "referencedDeclaration": 5453, + "src": "6775:16:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -4708,12 +4740,12 @@ }, { "argumentTypes": null, - "id": 5484, + "id": 5486, "name": "marketFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5455, - "src": "6762:9:12", + "referencedDeclaration": 5457, + "src": "6793:9:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4731,18 +4763,18 @@ "typeString": "uint256" } ], - "id": 5482, + "id": 5484, "name": "transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6117, - "src": "6735:8:12", + "referencedDeclaration": 6121, + "src": "6766:8:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$_t_bool_$", "typeString": "function (address,uint256) returns (bool)" } }, - "id": 5485, + "id": 5487, "isConstant": false, "isLValue": false, "isPure": false, @@ -4750,31 +4782,31 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6735:37:12", + "src": "6766:37:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, - "id": 5486, + "id": 5488, "nodeType": "ExpressionStatement", - "src": "6735:37:12" + "src": "6766:37:12" } ] } }, { "assignments": [ - 5490 + 5492 ], "declarations": [ { "constant": false, - "id": 5490, + "id": 5492, "name": "totalFee", "nodeType": "VariableDeclaration", - "scope": 5515, - "src": "6792:16:12", + "scope": 5517, + "src": "6823:16:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4782,10 +4814,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5489, + "id": 5491, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "6792:7:12", + "src": "6823:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4795,18 +4827,18 @@ "visibility": "internal" } ], - "id": 5495, + "id": 5497, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 5493, + "id": 5495, "name": "marketFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5455, - "src": "6828:9:12", + "referencedDeclaration": 5457, + "src": "6859:9:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4822,32 +4854,32 @@ ], "expression": { "argumentTypes": null, - "id": 5491, + "id": 5493, "name": "communityFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5459, - "src": "6811:12:12", + "referencedDeclaration": 5461, + "src": "6842:12:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 5492, + "id": 5494, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "add", "nodeType": "MemberAccess", - "referencedDeclaration": 5776, - "src": "6811:16:12", + "referencedDeclaration": 5780, + "src": "6842:16:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 5494, + "id": 5496, "isConstant": false, "isLValue": false, "isPure": false, @@ -4855,14 +4887,14 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6811:27:12", + "src": "6842:27:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", - "src": "6792:46:12" + "src": "6823:46:12" }, { "expression": { @@ -4870,12 +4902,12 @@ "arguments": [ { "argumentTypes": null, - "id": 5497, + "id": 5499, "name": "_minter", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5206, - "src": "6857:7:12", + "src": "6888:7:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -4886,12 +4918,12 @@ "arguments": [ { "argumentTypes": null, - "id": 5500, + "id": 5502, "name": "totalFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5490, - "src": "6877:8:12", + "referencedDeclaration": 5492, + "src": "6908:8:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4907,32 +4939,32 @@ ], "expression": { "argumentTypes": null, - "id": 5498, + "id": 5500, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5447, - "src": "6866:6:12", + "referencedDeclaration": 5449, + "src": "6897:6:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 5499, + "id": 5501, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sub", "nodeType": "MemberAccess", - "referencedDeclaration": 5792, - "src": "6866:10:12", + "referencedDeclaration": 5796, + "src": "6897:10:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 5501, + "id": 5503, "isConstant": false, "isLValue": false, "isPure": false, @@ -4940,7 +4972,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6866:20:12", + "src": "6897:20:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4958,18 +4990,18 @@ "typeString": "uint256" } ], - "id": 5496, + "id": 5498, "name": "transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6117, - "src": "6848:8:12", + "referencedDeclaration": 6121, + "src": "6879:8:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$_t_bool_$", "typeString": "function (address,uint256) returns (bool)" } }, - "id": 5502, + "id": 5504, "isConstant": false, "isLValue": false, "isPure": false, @@ -4977,15 +5009,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6848:39:12", + "src": "6879:39:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, - "id": 5503, + "id": 5505, "nodeType": "ExpressionStatement", - "src": "6848:39:12" + "src": "6879:39:12" }, { "eventCall": { @@ -4995,18 +5027,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 5505, + "id": 5507, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, - "src": "6929:3:12", + "referencedDeclaration": 6547, + "src": "6960:3:12", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 5506, + "id": 5508, "isConstant": false, "isLValue": false, "isPure": false, @@ -5014,7 +5046,7 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "6929:10:12", + "src": "6960:10:12", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -5022,12 +5054,12 @@ }, { "argumentTypes": null, - "id": 5507, + "id": 5509, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5447, - "src": "6953:6:12", + "referencedDeclaration": 5449, + "src": "6984:6:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5035,12 +5067,12 @@ }, { "argumentTypes": null, - "id": 5508, + "id": 5510, "name": "serviceId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5449, - "src": "6973:9:12", + "referencedDeclaration": 5451, + "src": "7004:9:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5050,26 +5082,26 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 5509, + "id": 5511, "name": "block", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6533, - "src": "6996:5:12", + "referencedDeclaration": 6537, + "src": "7027:5:12", "typeDescriptions": { "typeIdentifier": "t_magic_block", "typeString": "block" } }, - "id": 5510, + "id": 5512, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, - "memberName": "number", + "memberName": "timestamp", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "6996:12:12", + "src": "7027:15:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5077,12 +5109,12 @@ }, { "argumentTypes": null, - "id": 5511, + "id": 5513, "name": "mrktFeeCollector", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5451, - "src": "7022:16:12", + "referencedDeclaration": 5453, + "src": "7056:16:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -5090,12 +5122,12 @@ }, { "argumentTypes": null, - "id": 5512, + "id": 5514, "name": "marketFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5455, - "src": "7052:9:12", + "referencedDeclaration": 5457, + "src": "7086:9:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5129,18 +5161,18 @@ "typeString": "uint256" } ], - "id": 5504, + "id": 5506, "name": "OrderStarted", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5237, - "src": "6903:12:12", + "src": "6934:12:12", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_uint256_$_t_uint256_$_t_uint256_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,uint256,uint256,uint256,address,uint256)" } }, - "id": 5513, + "id": 5515, "isConstant": false, "isLValue": false, "isPure": false, @@ -5148,36 +5180,36 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6903:168:12", + "src": "6934:171:12", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 5514, + "id": 5516, "nodeType": "EmitStatement", - "src": "6898:173:12" + "src": "6929:176:12" } ] }, "documentation": "@dev startOrder\n called by consumer prior ordering a service consume on a marketplace\n@param amount refers to amount of tokens that is going to be transfered.\n@param serviceId service index in the metadata\n@param mrktFeeCollector marketplace fee collector", - "id": 5516, + "id": 5518, "implemented": true, "kind": "function", "modifiers": [], "name": "startOrder", "nodeType": "FunctionDefinition", "parameters": { - "id": 5452, + "id": 5454, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5447, + "id": 5449, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 5516, - "src": "6247:14:12", + "scope": 5518, + "src": "6278:14:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -5185,10 +5217,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5446, + "id": 5448, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "6247:7:12", + "src": "6278:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5199,11 +5231,11 @@ }, { "constant": false, - "id": 5449, + "id": 5451, "name": "serviceId", "nodeType": "VariableDeclaration", - "scope": 5516, - "src": "6271:17:12", + "scope": 5518, + "src": "6302:17:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -5211,10 +5243,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5448, + "id": 5450, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "6271:7:12", + "src": "6302:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5225,11 +5257,11 @@ }, { "constant": false, - "id": 5451, + "id": 5453, "name": "mrktFeeCollector", "nodeType": "VariableDeclaration", - "scope": 5516, - "src": "6298:24:12", + "scope": 5518, + "src": "6329:24:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -5237,10 +5269,10 @@ "typeString": "address" }, "typeName": { - "id": 5450, + "id": 5452, "name": "address", "nodeType": "ElementaryTypeName", - "src": "6298:7:12", + "src": "6329:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -5251,25 +5283,25 @@ "visibility": "internal" } ], - "src": "6237:91:12" + "src": "6268:91:12" }, "returnParameters": { - "id": 5453, + "id": 5455, "nodeType": "ParameterList", "parameters": [], - "src": "6350:0:12" + "src": "6381:0:12" }, - "scope": 5694, - "src": "6218:860:12", + "scope": 5698, + "src": "6249:863:12", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": { - "id": 5548, + "id": 5552, "nodeType": "Block", - "src": "7731:331:12", + "src": "7765:360:12", "statements": [ { "condition": { @@ -5278,19 +5310,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5529, + "id": 5531, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5527, + "id": 5529, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5522, - "src": "7746:6:12", + "referencedDeclaration": 5524, + "src": "7780:6:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5301,14 +5333,14 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 5528, + "id": 5530, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "7756:1:12", + "src": "7790:1:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -5316,16 +5348,16 @@ }, "value": "0" }, - "src": "7746:11:12", + "src": "7780:11:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, - "id": 5538, + "id": 5540, "nodeType": "IfStatement", - "src": "7741:159:12", + "src": "7775:159:12", "trueBody": { "expression": { "argumentTypes": null, @@ -5335,12 +5367,12 @@ "arguments": [ { "argumentTypes": null, - "id": 5532, + "id": 5534, "name": "consumer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5520, - "src": "7808:8:12", + "referencedDeclaration": 5522, + "src": "7842:8:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -5348,12 +5380,12 @@ }, { "argumentTypes": null, - "id": 5533, + "id": 5535, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5522, - "src": "7818:6:12", + "referencedDeclaration": 5524, + "src": "7852:6:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5371,18 +5403,18 @@ "typeString": "uint256" } ], - "id": 5531, + "id": 5533, "name": "transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6117, - "src": "7799:8:12", + "referencedDeclaration": 6121, + "src": "7833:8:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$_t_bool_$", "typeString": "function (address,uint256) returns (bool)" } }, - "id": 5534, + "id": 5536, "isConstant": false, "isLValue": false, "isPure": false, @@ -5390,7 +5422,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "7799:26:12", + "src": "7833:26:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -5399,14 +5431,14 @@ { "argumentTypes": null, "hexValue": "44617461546f6b656e54656d706c6174653a206661696c656420746f2066696e697368206f72646572", - "id": 5535, + "id": 5537, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "7843:43:12", + "src": "7877:43:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_5beb845327406b92f3857bb14436e4b6862cb87998aca33ed8309c1bf98b5e76", @@ -5426,21 +5458,21 @@ "typeString": "literal_string \"DataTokenTemplate: failed to finish order\"" } ], - "id": 5530, + "id": 5532, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, - "src": "7774:7:12", + "referencedDeclaration": 6551, + "src": "7808:7:12", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5536, + "id": 5538, "isConstant": false, "isLValue": false, "isPure": false, @@ -5448,15 +5480,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "7774:126:12", + "src": "7808:126:12", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 5537, + "id": 5539, "nodeType": "ExpressionStatement", - "src": "7774:126:12" + "src": "7808:126:12" } }, { @@ -5465,12 +5497,12 @@ "arguments": [ { "argumentTypes": null, - "id": 5540, + "id": 5542, "name": "orderTxId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5518, - "src": "7943:9:12", + "referencedDeclaration": 5520, + "src": "7977:9:12", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" @@ -5478,12 +5510,12 @@ }, { "argumentTypes": null, - "id": 5541, + "id": 5543, "name": "consumer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5520, - "src": "7967:8:12", + "referencedDeclaration": 5522, + "src": "8001:8:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -5491,12 +5523,12 @@ }, { "argumentTypes": null, - "id": 5542, + "id": 5544, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5522, - "src": "7990:6:12", + "referencedDeclaration": 5524, + "src": "8024:6:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5504,12 +5536,12 @@ }, { "argumentTypes": null, - "id": 5543, + "id": 5545, "name": "serviceId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5524, - "src": "8011:9:12", + "referencedDeclaration": 5526, + "src": "8045:9:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5519,18 +5551,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 5544, + "id": 5546, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, - "src": "8035:3:12", + "referencedDeclaration": 6547, + "src": "8069:3:12", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 5545, + "id": 5547, "isConstant": false, "isLValue": false, "isPure": false, @@ -5538,11 +5570,40 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "8035:10:12", + "src": "8069:10:12", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "id": 5548, + "name": "block", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 6537, + "src": "8093:5:12", + "typeDescriptions": { + "typeIdentifier": "t_magic_block", + "typeString": "block" + } + }, + "id": 5549, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "timestamp", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "8093:15:12", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } } ], "expression": { @@ -5566,20 +5627,24 @@ { "typeIdentifier": "t_address_payable", "typeString": "address payable" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" } ], - "id": 5539, + "id": 5541, "name": "OrderFinished", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5249, - "src": "7916:13:12", + "referencedDeclaration": 5251, + "src": "7950:13:12", "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_bytes32_$_t_address_$_t_uint256_$_t_uint256_$_t_address_$returns$__$", - "typeString": "function (bytes32,address,uint256,uint256,address)" + "typeIdentifier": "t_function_event_nonpayable$_t_bytes32_$_t_address_$_t_uint256_$_t_uint256_$_t_address_$_t_uint256_$returns$__$", + "typeString": "function (bytes32,address,uint256,uint256,address,uint256)" } }, - "id": 5546, + "id": 5550, "isConstant": false, "isLValue": false, "isPure": false, @@ -5587,36 +5652,36 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "7916:139:12", + "src": "7950:168:12", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 5547, + "id": 5551, "nodeType": "EmitStatement", - "src": "7911:144:12" + "src": "7945:173:12" } ] }, "documentation": "@dev finishOrder\n called by provider prior completing service delivery only\n if there is a partial or full refund.\n@param orderTxId refers to the transaction Id of startOrder acts \n as a payment reference.\n@param consumer refers to an address that has consumed that service.\n@param amount refers to amount of tokens that is going to be transfered.\n@param serviceId service index in the metadata.", - "id": 5549, + "id": 5553, "implemented": true, "kind": "function", "modifiers": [], "name": "finishOrder", "nodeType": "FunctionDefinition", "parameters": { - "id": 5525, + "id": 5527, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5518, + "id": 5520, "name": "orderTxId", "nodeType": "VariableDeclaration", - "scope": 5549, - "src": "7607:17:12", + "scope": 5553, + "src": "7641:17:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -5624,10 +5689,10 @@ "typeString": "bytes32" }, "typeName": { - "id": 5517, + "id": 5519, "name": "bytes32", "nodeType": "ElementaryTypeName", - "src": "7607:7:12", + "src": "7641:7:12", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" @@ -5638,11 +5703,11 @@ }, { "constant": false, - "id": 5520, + "id": 5522, "name": "consumer", "nodeType": "VariableDeclaration", - "scope": 5549, - "src": "7635:16:12", + "scope": 5553, + "src": "7669:16:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -5650,10 +5715,10 @@ "typeString": "address" }, "typeName": { - "id": 5519, + "id": 5521, "name": "address", "nodeType": "ElementaryTypeName", - "src": "7635:7:12", + "src": "7669:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -5665,11 +5730,11 @@ }, { "constant": false, - "id": 5522, + "id": 5524, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 5549, - "src": "7662:14:12", + "scope": 5553, + "src": "7696:14:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -5677,10 +5742,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5521, + "id": 5523, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "7662:7:12", + "src": "7696:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5691,11 +5756,11 @@ }, { "constant": false, - "id": 5524, + "id": 5526, "name": "serviceId", "nodeType": "VariableDeclaration", - "scope": 5549, - "src": "7686:17:12", + "scope": 5553, + "src": "7720:17:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -5703,10 +5768,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5523, + "id": 5525, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "7686:7:12", + "src": "7720:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5716,42 +5781,42 @@ "visibility": "internal" } ], - "src": "7597:112:12" + "src": "7631:112:12" }, "returnParameters": { - "id": 5526, + "id": 5528, "nodeType": "ParameterList", "parameters": [], - "src": "7731:0:12" + "src": "7765:0:12" }, - "scope": 5694, - "src": "7577:485:12", + "scope": 5698, + "src": "7611:514:12", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": { - "id": 5566, + "id": 5570, "nodeType": "Block", - "src": "8358:136:12", + "src": "8421:136:12", "statements": [ { "expression": { "argumentTypes": null, - "id": 5558, + "id": 5562, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 5556, + "id": 5560, "name": "_proposedMinter", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5208, - "src": "8368:15:12", + "src": "8431:15:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -5761,26 +5826,26 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 5557, + "id": 5561, "name": "newMinter", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5551, - "src": "8386:9:12", + "referencedDeclaration": 5555, + "src": "8449:9:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "8368:27:12", + "src": "8431:27:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "id": 5559, + "id": 5563, "nodeType": "ExpressionStatement", - "src": "8368:27:12" + "src": "8431:27:12" }, { "eventCall": { @@ -5790,18 +5855,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 5561, + "id": 5565, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, - "src": "8438:3:12", + "referencedDeclaration": 6547, + "src": "8501:3:12", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 5562, + "id": 5566, "isConstant": false, "isLValue": false, "isPure": false, @@ -5809,7 +5874,7 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "8438:10:12", + "src": "8501:10:12", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -5817,12 +5882,12 @@ }, { "argumentTypes": null, - "id": 5563, + "id": 5567, "name": "_proposedMinter", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5208, - "src": "8462:15:12", + "src": "8525:15:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -5840,18 +5905,18 @@ "typeString": "address" } ], - "id": 5560, + "id": 5564, "name": "MinterProposed", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5255, - "src": "8410:14:12", + "referencedDeclaration": 5257, + "src": "8473:14:12", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$", "typeString": "function (address,address)" } }, - "id": 5564, + "id": 5568, "isConstant": false, "isLValue": false, "isPure": false, @@ -5859,56 +5924,56 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "8410:77:12", + "src": "8473:77:12", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 5565, + "id": 5569, "nodeType": "EmitStatement", - "src": "8405:82:12" + "src": "8468:82:12" } ] }, "documentation": "@dev proposeMinter\n It proposes a new token minter address.\n Only the current minter can call it.\n@param newMinter refers to a new token minter address.", - "id": 5567, + "id": 5571, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, - "id": 5554, + "id": 5558, "modifierName": { "argumentTypes": null, - "id": 5553, + "id": 5557, "name": "onlyMinter", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5283, - "src": "8342:10:12", + "referencedDeclaration": 5285, + "src": "8405:10:12", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "8342:10:12" + "src": "8405:10:12" } ], "name": "proposeMinter", "nodeType": "FunctionDefinition", "parameters": { - "id": 5552, + "id": 5556, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5551, + "id": 5555, "name": "newMinter", "nodeType": "VariableDeclaration", - "scope": 5567, - "src": "8296:17:12", + "scope": 5571, + "src": "8359:17:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -5916,10 +5981,10 @@ "typeString": "address" }, "typeName": { - "id": 5550, + "id": 5554, "name": "address", "nodeType": "ElementaryTypeName", - "src": "8296:7:12", + "src": "8359:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -5930,25 +5995,25 @@ "visibility": "internal" } ], - "src": "8295:19:12" + "src": "8358:19:12" }, "returnParameters": { - "id": 5555, + "id": 5559, "nodeType": "ParameterList", "parameters": [], - "src": "8358:0:12" + "src": "8421:0:12" }, - "scope": 5694, - "src": "8273:221:12", + "scope": 5698, + "src": "8336:221:12", "stateMutability": "nonpayable", "superFunction": 5085, "visibility": "external" }, { "body": { - "id": 5593, + "id": 5597, "nodeType": "Block", - "src": "8689:305:12", + "src": "8752:305:12", "statements": [ { "expression": { @@ -5960,7 +6025,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 5574, + "id": 5578, "isConstant": false, "isLValue": false, "isPure": false, @@ -5969,18 +6034,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 5571, + "id": 5575, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, - "src": "8720:3:12", + "referencedDeclaration": 6547, + "src": "8783:3:12", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 5572, + "id": 5576, "isConstant": false, "isLValue": false, "isPure": false, @@ -5988,7 +6053,7 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "8720:10:12", + "src": "8783:10:12", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -5998,18 +6063,18 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 5573, + "id": 5577, "name": "_proposedMinter", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5208, - "src": "8734:15:12", + "src": "8797:15:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "8720:29:12", + "src": "8783:29:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -6018,14 +6083,14 @@ { "argumentTypes": null, "hexValue": "44617461546f6b656e54656d706c6174653a20696e76616c69642070726f706f736564206d696e7465722061646472657373", - "id": 5575, + "id": 5579, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "8763:52:12", + "src": "8826:52:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_7af8769e1ae364fd1070260138caf964484121753b4fb103f09e0f3de065c059", @@ -6045,21 +6110,21 @@ "typeString": "literal_string \"DataTokenTemplate: invalid proposed minter address\"" } ], - "id": 5570, + "id": 5574, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, - "src": "8699:7:12", + "referencedDeclaration": 6551, + "src": "8762:7:12", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5576, + "id": 5580, "isConstant": false, "isLValue": false, "isPure": false, @@ -6067,15 +6132,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "8699:126:12", + "src": "8762:126:12", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 5577, + "id": 5581, "nodeType": "ExpressionStatement", - "src": "8699:126:12" + "src": "8762:126:12" }, { "eventCall": { @@ -6083,12 +6148,12 @@ "arguments": [ { "argumentTypes": null, - "id": 5579, + "id": 5583, "name": "_minter", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5206, - "src": "8868:7:12", + "src": "8931:7:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -6096,12 +6161,12 @@ }, { "argumentTypes": null, - "id": 5580, + "id": 5584, "name": "_proposedMinter", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5208, - "src": "8889:15:12", + "src": "8952:15:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -6119,18 +6184,18 @@ "typeString": "address" } ], - "id": 5578, + "id": 5582, "name": "MinterApproved", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5261, - "src": "8840:14:12", + "referencedDeclaration": 5263, + "src": "8903:14:12", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$", "typeString": "function (address,address)" } }, - "id": 5581, + "id": 5585, "isConstant": false, "isLValue": false, "isPure": false, @@ -6138,32 +6203,32 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "8840:74:12", + "src": "8903:74:12", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 5582, + "id": 5586, "nodeType": "EmitStatement", - "src": "8835:79:12" + "src": "8898:79:12" }, { "expression": { "argumentTypes": null, - "id": 5585, + "id": 5589, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 5583, + "id": 5587, "name": "_minter", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5206, - "src": "8924:7:12", + "src": "8987:7:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -6173,43 +6238,43 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 5584, + "id": 5588, "name": "_proposedMinter", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5208, - "src": "8934:15:12", + "src": "8997:15:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "8924:25:12", + "src": "8987:25:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "id": 5586, + "id": 5590, "nodeType": "ExpressionStatement", - "src": "8924:25:12" + "src": "8987:25:12" }, { "expression": { "argumentTypes": null, - "id": 5591, + "id": 5595, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 5587, + "id": 5591, "name": "_proposedMinter", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5208, - "src": "8959:15:12", + "src": "9022:15:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -6223,14 +6288,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 5589, + "id": 5593, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "8985:1:12", + "src": "9048:1:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -6246,20 +6311,20 @@ "typeString": "int_const 0" } ], - "id": 5588, + "id": 5592, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "8977:7:12", + "src": "9040:7:12", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 5590, + "id": 5594, "isConstant": false, "isLValue": false, "isPure": true, @@ -6267,100 +6332,100 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "8977:10:12", + "src": "9040:10:12", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, - "src": "8959:28:12", + "src": "9022:28:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "id": 5592, + "id": 5596, "nodeType": "ExpressionStatement", - "src": "8959:28:12" + "src": "9022:28:12" } ] }, "documentation": "@dev approveMinter\n It approves a new token minter address.\n Only the current minter can call it.", - "id": 5594, + "id": 5598, "implemented": true, "kind": "function", "modifiers": [], "name": "approveMinter", "nodeType": "FunctionDefinition", "parameters": { - "id": 5568, + "id": 5572, "nodeType": "ParameterList", "parameters": [], - "src": "8665:2:12" + "src": "8728:2:12" }, "returnParameters": { - "id": 5569, + "id": 5573, "nodeType": "ParameterList", "parameters": [], - "src": "8689:0:12" + "src": "8752:0:12" }, - "scope": 5694, - "src": "8643:351:12", + "scope": 5698, + "src": "8706:351:12", "stateMutability": "nonpayable", "superFunction": 5088, "visibility": "external" }, { "body": { - "id": 5601, + "id": 5605, "nodeType": "Block", - "src": "9156:29:12", + "src": "9219:29:12", "statements": [ { "expression": { "argumentTypes": null, - "id": 5599, + "id": 5603, "name": "_name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5190, - "src": "9173:5:12", + "src": "9236:5:12", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, - "functionReturnParameters": 5598, - "id": 5600, + "functionReturnParameters": 5602, + "id": 5604, "nodeType": "Return", - "src": "9166:12:12" + "src": "9229:12:12" } ] }, "documentation": "@dev name\n It returns the token name.\n@return DataToken name.", - "id": 5602, + "id": 5606, "implemented": true, "kind": "function", "modifiers": [], "name": "name", "nodeType": "FunctionDefinition", "parameters": { - "id": 5595, + "id": 5599, "nodeType": "ParameterList", "parameters": [], - "src": "9116:2:12" + "src": "9179:2:12" }, "returnParameters": { - "id": 5598, + "id": 5602, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5597, + "id": 5601, "name": "", "nodeType": "VariableDeclaration", - "scope": 5602, - "src": "9141:13:12", + "scope": 5606, + "src": "9204:13:12", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { @@ -6368,10 +6433,10 @@ "typeString": "string" }, "typeName": { - "id": 5596, + "id": 5600, "name": "string", "nodeType": "ElementaryTypeName", - "src": "9141:6:12", + "src": "9204:6:12", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -6381,65 +6446,65 @@ "visibility": "internal" } ], - "src": "9140:15:12" + "src": "9203:15:12" }, - "scope": 5694, - "src": "9103:82:12", + "scope": 5698, + "src": "9166:82:12", "stateMutability": "view", "superFunction": 5017, "visibility": "external" }, { "body": { - "id": 5609, + "id": 5613, "nodeType": "Block", - "src": "9355:31:12", + "src": "9418:31:12", "statements": [ { "expression": { "argumentTypes": null, - "id": 5607, + "id": 5611, "name": "_symbol", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5192, - "src": "9372:7:12", + "src": "9435:7:12", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, - "functionReturnParameters": 5606, - "id": 5608, + "functionReturnParameters": 5610, + "id": 5612, "nodeType": "Return", - "src": "9365:14:12" + "src": "9428:14:12" } ] }, "documentation": "@dev symbol\n It returns the token symbol.\n@return DataToken symbol.", - "id": 5610, + "id": 5614, "implemented": true, "kind": "function", "modifiers": [], "name": "symbol", "nodeType": "FunctionDefinition", "parameters": { - "id": 5603, + "id": 5607, "nodeType": "ParameterList", "parameters": [], - "src": "9315:2:12" + "src": "9378:2:12" }, "returnParameters": { - "id": 5606, + "id": 5610, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5605, + "id": 5609, "name": "", "nodeType": "VariableDeclaration", - "scope": 5610, - "src": "9340:13:12", + "scope": 5614, + "src": "9403:13:12", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { @@ -6447,10 +6512,10 @@ "typeString": "string" }, "typeName": { - "id": 5604, + "id": 5608, "name": "string", "nodeType": "ElementaryTypeName", - "src": "9340:6:12", + "src": "9403:6:12", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -6460,65 +6525,65 @@ "visibility": "internal" } ], - "src": "9339:15:12" + "src": "9402:15:12" }, - "scope": 5694, - "src": "9300:86:12", + "scope": 5698, + "src": "9363:86:12", "stateMutability": "view", "superFunction": 5022, "visibility": "external" }, { "body": { - "id": 5617, + "id": 5621, "nodeType": "Block", - "src": "9564:29:12", + "src": "9627:29:12", "statements": [ { "expression": { "argumentTypes": null, - "id": 5615, + "id": 5619, "name": "_blob", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5194, - "src": "9581:5:12", + "src": "9644:5:12", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, - "functionReturnParameters": 5614, - "id": 5616, + "functionReturnParameters": 5618, + "id": 5620, "nodeType": "Return", - "src": "9574:12:12" + "src": "9637:12:12" } ] }, "documentation": "@dev blob\n It returns the blob (e.g https://123.com).\n@return DataToken blob.", - "id": 5618, + "id": 5622, "implemented": true, "kind": "function", "modifiers": [], "name": "blob", "nodeType": "FunctionDefinition", "parameters": { - "id": 5611, + "id": 5615, "nodeType": "ParameterList", "parameters": [], - "src": "9524:2:12" + "src": "9587:2:12" }, "returnParameters": { - "id": 5614, + "id": 5618, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5613, + "id": 5617, "name": "", "nodeType": "VariableDeclaration", - "scope": 5618, - "src": "9549:13:12", + "scope": 5622, + "src": "9612:13:12", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { @@ -6526,10 +6591,10 @@ "typeString": "string" }, "typeName": { - "id": 5612, + "id": 5616, "name": "string", "nodeType": "ElementaryTypeName", - "src": "9549:6:12", + "src": "9612:6:12", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -6539,65 +6604,65 @@ "visibility": "internal" } ], - "src": "9548:15:12" + "src": "9611:15:12" }, - "scope": 5694, - "src": "9511:82:12", + "scope": 5698, + "src": "9574:82:12", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": { - "id": 5625, + "id": 5629, "nodeType": "Block", - "src": "9809:33:12", + "src": "9872:33:12", "statements": [ { "expression": { "argumentTypes": null, - "id": 5623, + "id": 5627, "name": "_decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5199, - "src": "9826:9:12", + "src": "9889:9:12", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, - "functionReturnParameters": 5622, - "id": 5624, + "functionReturnParameters": 5626, + "id": 5628, "nodeType": "Return", - "src": "9819:16:12" + "src": "9882:16:12" } ] }, "documentation": "@dev decimals\n It returns the token decimals.\n how many supported decimal points\n@return DataToken decimals.", - "id": 5626, + "id": 5630, "implemented": true, "kind": "function", "modifiers": [], "name": "decimals", "nodeType": "FunctionDefinition", "parameters": { - "id": 5619, + "id": 5623, "nodeType": "ParameterList", "parameters": [], - "src": "9777:2:12" + "src": "9840:2:12" }, "returnParameters": { - "id": 5622, + "id": 5626, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5621, + "id": 5625, "name": "", "nodeType": "VariableDeclaration", - "scope": 5626, - "src": "9802:5:12", + "scope": 5630, + "src": "9865:5:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6605,10 +6670,10 @@ "typeString": "uint8" }, "typeName": { - "id": 5620, + "id": 5624, "name": "uint8", "nodeType": "ElementaryTypeName", - "src": "9802:5:12", + "src": "9865:5:12", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" @@ -6618,65 +6683,65 @@ "visibility": "internal" } ], - "src": "9801:7:12" + "src": "9864:7:12" }, - "scope": 5694, - "src": "9760:82:12", + "scope": 5698, + "src": "9823:82:12", "stateMutability": "view", "superFunction": 5027, "visibility": "external" }, { "body": { - "id": 5633, + "id": 5637, "nodeType": "Block", - "src": "9993:28:12", + "src": "10056:28:12", "statements": [ { "expression": { "argumentTypes": null, - "id": 5631, + "id": 5635, "name": "_cap", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5196, - "src": "10010:4:12", + "src": "10073:4:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 5630, - "id": 5632, + "functionReturnParameters": 5634, + "id": 5636, "nodeType": "Return", - "src": "10003:11:12" + "src": "10066:11:12" } ] }, "documentation": "@dev cap\n it returns the capital.\n@return DataToken cap.", - "id": 5634, + "id": 5638, "implemented": true, "kind": "function", "modifiers": [], "name": "cap", "nodeType": "FunctionDefinition", "parameters": { - "id": 5627, + "id": 5631, "nodeType": "ParameterList", "parameters": [], - "src": "9958:2:12" + "src": "10021:2:12" }, "returnParameters": { - "id": 5630, + "id": 5634, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5629, + "id": 5633, "name": "", "nodeType": "VariableDeclaration", - "scope": 5634, - "src": "9984:7:12", + "scope": 5638, + "src": "10047:7:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6684,10 +6749,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5628, + "id": 5632, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "9984:7:12", + "src": "10047:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -6697,19 +6762,19 @@ "visibility": "internal" } ], - "src": "9983:9:12" + "src": "10046:9:12" }, - "scope": 5694, - "src": "9946:75:12", + "scope": 5698, + "src": "10009:75:12", "stateMutability": "view", "superFunction": 5032, "visibility": "external" }, { "body": { - "id": 5646, + "id": 5650, "nodeType": "Block", - "src": "10296:44:12", + "src": "10359:44:12", "statements": [ { "expression": { @@ -6721,19 +6786,19 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 5643, + "id": 5647, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5641, + "id": 5645, "name": "_minter", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5206, - "src": "10314:7:12", + "src": "10377:7:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -6743,62 +6808,62 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 5642, + "id": 5646, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5636, - "src": "10325:7:12", + "referencedDeclaration": 5640, + "src": "10388:7:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "10314:18:12", + "src": "10377:18:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], - "id": 5644, + "id": 5648, "isConstant": false, "isInlineArray": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "TupleExpression", - "src": "10313:20:12", + "src": "10376:20:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, - "functionReturnParameters": 5640, - "id": 5645, + "functionReturnParameters": 5644, + "id": 5649, "nodeType": "Return", - "src": "10306:27:12" + "src": "10369:27:12" } ] }, "documentation": "@dev isMinter\n It takes the address and checks whether it has a minter role.\n@param account refers to the address.\n@return true if account has a minter role.", - "id": 5647, + "id": 5651, "implemented": true, "kind": "function", "modifiers": [], "name": "isMinter", "nodeType": "FunctionDefinition", "parameters": { - "id": 5637, + "id": 5641, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5636, + "id": 5640, "name": "account", "nodeType": "VariableDeclaration", - "scope": 5647, - "src": "10251:15:12", + "scope": 5651, + "src": "10314:15:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6806,10 +6871,10 @@ "typeString": "address" }, "typeName": { - "id": 5635, + "id": 5639, "name": "address", "nodeType": "ElementaryTypeName", - "src": "10251:7:12", + "src": "10314:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6820,19 +6885,19 @@ "visibility": "internal" } ], - "src": "10250:17:12" + "src": "10313:17:12" }, "returnParameters": { - "id": 5640, + "id": 5644, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5639, + "id": 5643, "name": "", "nodeType": "VariableDeclaration", - "scope": 5647, - "src": "10290:4:12", + "scope": 5651, + "src": "10353:4:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6840,10 +6905,10 @@ "typeString": "bool" }, "typeName": { - "id": 5638, + "id": 5642, "name": "bool", "nodeType": "ElementaryTypeName", - "src": "10290:4:12", + "src": "10353:4:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -6853,65 +6918,65 @@ "visibility": "internal" } ], - "src": "10289:6:12" + "src": "10352:6:12" }, - "scope": 5694, - "src": "10233:107:12", + "scope": 5698, + "src": "10296:107:12", "stateMutability": "view", "superFunction": 5039, "visibility": "external" }, { "body": { - "id": 5654, + "id": 5658, "nodeType": "Block", - "src": "10493:31:12", + "src": "10556:31:12", "statements": [ { "expression": { "argumentTypes": null, - "id": 5652, + "id": 5656, "name": "_minter", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5206, - "src": "10510:7:12", + "src": "10573:7:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "functionReturnParameters": 5651, - "id": 5653, + "functionReturnParameters": 5655, + "id": 5657, "nodeType": "Return", - "src": "10503:14:12" + "src": "10566:14:12" } ] }, "documentation": "@dev minter\n@return minter's address.", - "id": 5655, + "id": 5659, "implemented": true, "kind": "function", "modifiers": [], "name": "minter", "nodeType": "FunctionDefinition", "parameters": { - "id": 5648, + "id": 5652, "nodeType": "ParameterList", "parameters": [], - "src": "10430:2:12" + "src": "10493:2:12" }, "returnParameters": { - "id": 5651, + "id": 5655, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5650, + "id": 5654, "name": "", "nodeType": "VariableDeclaration", - "scope": 5655, - "src": "10480:7:12", + "scope": 5659, + "src": "10543:7:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6919,10 +6984,10 @@ "typeString": "address" }, "typeName": { - "id": 5649, + "id": 5653, "name": "address", "nodeType": "ElementaryTypeName", - "src": "10480:7:12", + "src": "10543:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6933,65 +6998,65 @@ "visibility": "internal" } ], - "src": "10479:9:12" + "src": "10542:9:12" }, - "scope": 5694, - "src": "10415:109:12", + "scope": 5698, + "src": "10478:109:12", "stateMutability": "view", "superFunction": 5012, "visibility": "external" }, { "body": { - "id": 5662, + "id": 5666, "nodeType": "Block", - "src": "10737:35:12", + "src": "10800:35:12", "statements": [ { "expression": { "argumentTypes": null, - "id": 5660, + "id": 5664, "name": "initialized", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5204, - "src": "10754:11:12", + "src": "10817:11:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, - "functionReturnParameters": 5659, - "id": 5661, + "functionReturnParameters": 5663, + "id": 5665, "nodeType": "Return", - "src": "10747:18:12" + "src": "10810:18:12" } ] }, "documentation": "@dev isInitialized\n It checks whether the contract is initialized.\n@return true if the contract is initialized.", - "id": 5663, + "id": 5667, "implemented": true, "kind": "function", "modifiers": [], "name": "isInitialized", "nodeType": "FunctionDefinition", "parameters": { - "id": 5656, + "id": 5660, "nodeType": "ParameterList", "parameters": [], - "src": "10706:2:12" + "src": "10769:2:12" }, "returnParameters": { - "id": 5659, + "id": 5663, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5658, + "id": 5662, "name": "", "nodeType": "VariableDeclaration", - "scope": 5663, - "src": "10731:4:12", + "scope": 5667, + "src": "10794:4:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6999,10 +7064,10 @@ "typeString": "bool" }, "typeName": { - "id": 5657, + "id": 5661, "name": "bool", "nodeType": "ElementaryTypeName", - "src": "10731:4:12", + "src": "10794:4:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -7012,19 +7077,19 @@ "visibility": "internal" } ], - "src": "10730:6:12" + "src": "10793:6:12" }, - "scope": 5694, - "src": "10684:88:12", + "scope": 5698, + "src": "10747:88:12", "stateMutability": "view", "superFunction": 5044, "visibility": "external" }, { "body": { - "id": 5692, + "id": 5696, "nodeType": "Block", - "src": "11156:134:12", + "src": "11219:134:12", "statements": [ { "condition": { @@ -7033,19 +7098,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5674, + "id": 5678, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5672, + "id": 5676, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5665, - "src": "11169:6:12", + "referencedDeclaration": 5669, + "src": "11232:6:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -7056,14 +7121,14 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 5673, + "id": 5677, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "11179:1:12", + "src": "11242:1:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -7071,28 +7136,28 @@ }, "value": "0" }, - "src": "11169:11:12", + "src": "11232:11:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, - "id": 5677, + "id": 5681, "nodeType": "IfStatement", - "src": "11166:24:12", + "src": "11229:24:12", "trueBody": { "expression": { "argumentTypes": null, "hexValue": "30", - "id": 5675, + "id": 5679, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "11189:1:12", + "src": "11252:1:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -7100,10 +7165,10 @@ }, "value": "0" }, - "functionReturnParameters": 5671, - "id": 5676, + "functionReturnParameters": 5675, + "id": 5680, "nodeType": "Return", - "src": "11182:8:12" + "src": "11245:8:12" } }, { @@ -7113,19 +7178,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5680, + "id": 5684, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5678, + "id": 5682, "name": "feePercentage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5667, - "src": "11203:13:12", + "referencedDeclaration": 5671, + "src": "11266:13:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -7136,14 +7201,14 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 5679, + "id": 5683, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "11220:1:12", + "src": "11283:1:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -7151,28 +7216,28 @@ }, "value": "0" }, - "src": "11203:18:12", + "src": "11266:18:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, - "id": 5683, + "id": 5687, "nodeType": "IfStatement", - "src": "11200:31:12", + "src": "11263:31:12", "trueBody": { "expression": { "argumentTypes": null, "hexValue": "30", - "id": 5681, + "id": 5685, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "11230:1:12", + "src": "11293:1:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -7180,10 +7245,10 @@ }, "value": "0" }, - "functionReturnParameters": 5671, - "id": 5682, + "functionReturnParameters": 5675, + "id": 5686, "nodeType": "Return", - "src": "11223:8:12" + "src": "11286:8:12" } }, { @@ -7192,12 +7257,12 @@ "arguments": [ { "argumentTypes": null, - "id": 5689, + "id": 5693, "name": "BASE", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5213, - "src": "11278:4:12", + "src": "11341:4:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -7216,12 +7281,12 @@ "arguments": [ { "argumentTypes": null, - "id": 5686, + "id": 5690, "name": "feePercentage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5667, - "src": "11259:13:12", + "referencedDeclaration": 5671, + "src": "11322:13:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -7237,32 +7302,32 @@ ], "expression": { "argumentTypes": null, - "id": 5684, + "id": 5688, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5665, - "src": "11248:6:12", + "referencedDeclaration": 5669, + "src": "11311:6:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 5685, + "id": 5689, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "mul", "nodeType": "MemberAccess", - "referencedDeclaration": 5853, - "src": "11248:10:12", + "referencedDeclaration": 5857, + "src": "11311:10:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 5687, + "id": 5691, "isConstant": false, "isLValue": false, "isPure": false, @@ -7270,27 +7335,27 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "11248:25:12", + "src": "11311:25:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 5688, + "id": 5692, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "div", "nodeType": "MemberAccess", - "referencedDeclaration": 5869, - "src": "11248:29:12", + "referencedDeclaration": 5873, + "src": "11311:29:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 5690, + "id": 5694, "isConstant": false, "isLValue": false, "isPure": false, @@ -7298,37 +7363,37 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "11248:35:12", + "src": "11311:35:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 5671, - "id": 5691, + "functionReturnParameters": 5675, + "id": 5695, "nodeType": "Return", - "src": "11241:42:12" + "src": "11304:42:12" } ] }, "documentation": "@dev calculateFee\n giving a fee percentage, and amount it calculates the actual fee\n@param amount the amount of token\n@param feePercentage the fee percentage \n@return the token fee.", - "id": 5693, + "id": 5697, "implemented": true, "kind": "function", "modifiers": [], "name": "calculateFee", "nodeType": "FunctionDefinition", "parameters": { - "id": 5668, + "id": 5672, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5665, + "id": 5669, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 5693, - "src": "11047:14:12", + "scope": 5697, + "src": "11110:14:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -7336,10 +7401,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5664, + "id": 5668, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "11047:7:12", + "src": "11110:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -7350,11 +7415,11 @@ }, { "constant": false, - "id": 5667, + "id": 5671, "name": "feePercentage", "nodeType": "VariableDeclaration", - "scope": 5693, - "src": "11071:21:12", + "scope": 5697, + "src": "11134:21:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -7362,10 +7427,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5666, + "id": 5670, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "11071:7:12", + "src": "11134:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -7375,19 +7440,19 @@ "visibility": "internal" } ], - "src": "11037:61:12" + "src": "11100:61:12" }, "returnParameters": { - "id": 5671, + "id": 5675, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5670, + "id": 5674, "name": "", "nodeType": "VariableDeclaration", - "scope": 5693, - "src": "11143:7:12", + "scope": 5697, + "src": "11206:7:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -7395,10 +7460,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5669, + "id": 5673, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "11143:7:12", + "src": "11206:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -7408,29 +7473,29 @@ "visibility": "internal" } ], - "src": "11142:9:12" + "src": "11205:9:12" }, - "scope": 5694, - "src": "11016:274:12", + "scope": 5698, + "src": "11079:274:12", "stateMutability": "pure", "superFunction": null, "visibility": "public" } ], - "scope": 5695, - "src": "488:10804:12" + "scope": 5699, + "src": "488:10867:12" } ], - "src": "0:11293:12" + "src": "0:11356:12" }, "legacyAST": { "absolutePath": "/Users/ahmedali/Desktop/work/ocean-contracts/contracts/templates/DataTokenTemplate.sol", "exportedSymbols": { "DataTokenTemplate": [ - 5694 + 5698 ] }, - "id": 5695, + "id": 5699, "nodeType": "SourceUnit", "nodes": [ { @@ -7448,7 +7513,7 @@ "file": "../interfaces/IERC20Template.sol", "id": 5180, "nodeType": "ImportDirective", - "scope": 5695, + "scope": 5699, "sourceUnit": 5090, "src": "185:42:12", "symbolAliases": [], @@ -7459,8 +7524,8 @@ "file": "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol", "id": 5181, "nodeType": "ImportDirective", - "scope": 5695, - "sourceUnit": 6460, + "scope": 5699, + "sourceUnit": 6464, "src": "228:63:12", "symbolAliases": [], "unitAlias": "" @@ -7492,10 +7557,10 @@ "id": 5184, "name": "ERC20", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 6459, + "referencedDeclaration": 6463, "src": "534:5:12", "typeDescriptions": { - "typeIdentifier": "t_contract$_ERC20_$6459", + "typeIdentifier": "t_contract$_ERC20_$6463", "typeString": "contract ERC20" } }, @@ -7506,19 +7571,19 @@ ], "contractDependencies": [ 5089, - 5749, - 6459, - 6528 + 5753, + 6463, + 6532 ], "contractKind": "contract", "documentation": "@title DataTokenTemplate\n \n@dev DataTokenTemplate is an ERC20 compliant token template\n Used by the factory contract as a bytecode reference to \n deploy new DataTokens.", "fullyImplemented": true, - "id": 5694, + "id": 5698, "linearizedBaseContracts": [ - 5694, - 6459, - 6528, - 5749, + 5698, + 6463, + 6532, + 5753, 5089 ], "name": "DataTokenTemplate", @@ -7531,10 +7596,10 @@ "id": 5186, "name": "SafeMath", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 5936, + "referencedDeclaration": 5940, "src": "552:8:12", "typeDescriptions": { - "typeIdentifier": "t_contract$_SafeMath_$5936", + "typeIdentifier": "t_contract$_SafeMath_$5940", "typeString": "library SafeMath" } }, @@ -7556,7 +7621,7 @@ "id": 5190, "name": "_name", "nodeType": "VariableDeclaration", - "scope": 5694, + "scope": 5698, "src": "579:21:12", "stateVariable": true, "storageLocation": "default", @@ -7582,7 +7647,7 @@ "id": 5192, "name": "_symbol", "nodeType": "VariableDeclaration", - "scope": 5694, + "scope": 5698, "src": "606:23:12", "stateVariable": true, "storageLocation": "default", @@ -7608,7 +7673,7 @@ "id": 5194, "name": "_blob", "nodeType": "VariableDeclaration", - "scope": 5694, + "scope": 5698, "src": "635:21:12", "stateVariable": true, "storageLocation": "default", @@ -7634,7 +7699,7 @@ "id": 5196, "name": "_cap", "nodeType": "VariableDeclaration", - "scope": 5694, + "scope": 5698, "src": "662:20:12", "stateVariable": true, "storageLocation": "default", @@ -7660,7 +7725,7 @@ "id": 5199, "name": "_decimals", "nodeType": "VariableDeclaration", - "scope": 5694, + "scope": 5698, "src": "688:37:12", "stateVariable": true, "storageLocation": "default", @@ -7703,7 +7768,7 @@ "id": 5201, "name": "_communityFeeCollector", "nodeType": "VariableDeclaration", - "scope": 5694, + "scope": 5698, "src": "731:38:12", "stateVariable": true, "storageLocation": "default", @@ -7730,7 +7795,7 @@ "id": 5204, "name": "initialized", "nodeType": "VariableDeclaration", - "scope": 5694, + "scope": 5698, "src": "775:35:12", "stateVariable": true, "storageLocation": "default", @@ -7773,7 +7838,7 @@ "id": 5206, "name": "_minter", "nodeType": "VariableDeclaration", - "scope": 5694, + "scope": 5698, "src": "816:23:12", "stateVariable": true, "storageLocation": "default", @@ -7800,7 +7865,7 @@ "id": 5208, "name": "_proposedMinter", "nodeType": "VariableDeclaration", - "scope": 5694, + "scope": 5698, "src": "845:31:12", "stateVariable": true, "storageLocation": "default", @@ -7827,7 +7892,7 @@ "id": 5213, "name": "BASE", "nodeType": "VariableDeclaration", - "scope": 5694, + "scope": 5698, "src": "882:37:12", "stateVariable": true, "storageLocation": "default", @@ -7907,7 +7972,7 @@ "id": 5218, "name": "BASE_COMMUNITY_FEE_PERCENTAGE", "nodeType": "VariableDeclaration", - "scope": 5694, + "scope": 5698, "src": "925:67:12", "stateVariable": true, "storageLocation": "default", @@ -7982,7 +8047,7 @@ "id": 5223, "name": "BASE_MARKET_FEE_PERCENTAGE", "nodeType": "VariableDeclaration", - "scope": 5694, + "scope": 5698, "src": "998:64:12", "stateVariable": true, "storageLocation": "default", @@ -8148,7 +8213,7 @@ "constant": false, "id": 5231, "indexed": false, - "name": "startedAt", + "name": "timestamp", "nodeType": "VariableDeclaration", "scope": 5237, "src": "1201:17:12", @@ -8234,11 +8299,11 @@ { "anonymous": false, "documentation": null, - "id": 5249, + "id": 5251, "name": "OrderFinished", "nodeType": "EventDefinition", "parameters": { - "id": 5248, + "id": 5250, "nodeType": "ParameterList", "parameters": [ { @@ -8247,7 +8312,7 @@ "indexed": false, "name": "orderTxId", "nodeType": "VariableDeclaration", - "scope": 5249, + "scope": 5251, "src": "1341:17:12", "stateVariable": false, "storageLocation": "default", @@ -8274,7 +8339,7 @@ "indexed": true, "name": "consumer", "nodeType": "VariableDeclaration", - "scope": 5249, + "scope": 5251, "src": "1373:24:12", "stateVariable": false, "storageLocation": "default", @@ -8302,7 +8367,7 @@ "indexed": false, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 5249, + "scope": 5251, "src": "1412:14:12", "stateVariable": false, "storageLocation": "default", @@ -8329,7 +8394,7 @@ "indexed": false, "name": "serviceId", "nodeType": "VariableDeclaration", - "scope": 5249, + "scope": 5251, "src": "1441:17:12", "stateVariable": false, "storageLocation": "default", @@ -8356,7 +8421,7 @@ "indexed": true, "name": "provider", "nodeType": "VariableDeclaration", - "scope": 5249, + "scope": 5251, "src": "1473:24:12", "stateVariable": false, "storageLocation": "default", @@ -8377,30 +8442,57 @@ }, "value": null, "visibility": "internal" + }, + { + "constant": false, + "id": 5249, + "indexed": false, + "name": "timestamp", + "nodeType": "VariableDeclaration", + "scope": 5251, + "src": "1511:17:12", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 5248, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1511:7:12", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" } ], - "src": "1327:176:12" + "src": "1327:207:12" }, - "src": "1308:196:12" + "src": "1308:227:12" }, { "anonymous": false, "documentation": null, - "id": 5255, + "id": 5257, "name": "MinterProposed", "nodeType": "EventDefinition", "parameters": { - "id": 5254, + "id": 5256, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5251, + "id": 5253, "indexed": false, "name": "currentMinter", "nodeType": "VariableDeclaration", - "scope": 5255, - "src": "1540:21:12", + "scope": 5257, + "src": "1571:21:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -8408,10 +8500,10 @@ "typeString": "address" }, "typeName": { - "id": 5250, + "id": 5252, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1540:7:12", + "src": "1571:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -8423,12 +8515,12 @@ }, { "constant": false, - "id": 5253, + "id": 5255, "indexed": false, "name": "newMinter", "nodeType": "VariableDeclaration", - "scope": 5255, - "src": "1571:17:12", + "scope": 5257, + "src": "1602:17:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -8436,10 +8528,10 @@ "typeString": "address" }, "typeName": { - "id": 5252, + "id": 5254, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1571:7:12", + "src": "1602:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -8450,28 +8542,28 @@ "visibility": "internal" } ], - "src": "1530:64:12" + "src": "1561:64:12" }, - "src": "1510:85:12" + "src": "1541:85:12" }, { "anonymous": false, "documentation": null, - "id": 5261, + "id": 5263, "name": "MinterApproved", "nodeType": "EventDefinition", "parameters": { - "id": 5260, + "id": 5262, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5257, + "id": 5259, "indexed": false, "name": "currentMinter", "nodeType": "VariableDeclaration", - "scope": 5261, - "src": "1631:21:12", + "scope": 5263, + "src": "1662:21:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -8479,10 +8571,10 @@ "typeString": "address" }, "typeName": { - "id": 5256, + "id": 5258, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1631:7:12", + "src": "1662:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -8494,12 +8586,12 @@ }, { "constant": false, - "id": 5259, + "id": 5261, "indexed": false, "name": "newMinter", "nodeType": "VariableDeclaration", - "scope": 5261, - "src": "1662:17:12", + "scope": 5263, + "src": "1693:17:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -8507,10 +8599,10 @@ "typeString": "address" }, "typeName": { - "id": 5258, + "id": 5260, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1662:7:12", + "src": "1693:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -8521,15 +8613,15 @@ "visibility": "internal" } ], - "src": "1621:64:12" + "src": "1652:64:12" }, - "src": "1601:85:12" + "src": "1632:85:12" }, { "body": { - "id": 5270, + "id": 5272, "nodeType": "Block", - "src": "1722:140:12", + "src": "1753:140:12", "statements": [ { "expression": { @@ -8537,7 +8629,7 @@ "arguments": [ { "argumentTypes": null, - "id": 5265, + "id": 5267, "isConstant": false, "isLValue": false, "isPure": false, @@ -8545,15 +8637,15 @@ "nodeType": "UnaryOperation", "operator": "!", "prefix": true, - "src": "1753:12:12", + "src": "1784:12:12", "subExpression": { "argumentTypes": null, - "id": 5264, + "id": 5266, "name": "initialized", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5204, - "src": "1754:11:12", + "src": "1785:11:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -8567,14 +8659,14 @@ { "argumentTypes": null, "hexValue": "44617461546f6b656e54656d706c6174653a20746f6b656e20696e7374616e636520616c726561647920696e697469616c697a6564", - "id": 5266, + "id": 5268, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "1779:55:12", + "src": "1810:55:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_3fbe4c86a4c4d9736fd0d2a9400f74e8d124de74cfedc7affa27132fa840428d", @@ -8594,21 +8686,21 @@ "typeString": "literal_string \"DataTokenTemplate: token instance already initialized\"" } ], - "id": 5263, + "id": 5265, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, - "src": "1732:7:12", + "referencedDeclaration": 6551, + "src": "1763:7:12", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5267, + "id": 5269, "isConstant": false, "isLValue": false, "isPure": false, @@ -8616,41 +8708,41 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1732:112:12", + "src": "1763:112:12", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 5268, + "id": 5270, "nodeType": "ExpressionStatement", - "src": "1732:112:12" + "src": "1763:112:12" }, { - "id": 5269, + "id": 5271, "nodeType": "PlaceholderStatement", - "src": "1854:1:12" + "src": "1885:1:12" } ] }, "documentation": null, - "id": 5271, + "id": 5273, "name": "onlyNotInitialized", "nodeType": "ModifierDefinition", "parameters": { - "id": 5262, + "id": 5264, "nodeType": "ParameterList", "parameters": [], - "src": "1719:2:12" + "src": "1750:2:12" }, - "src": "1692:170:12", + "src": "1723:170:12", "visibility": "internal" }, { "body": { - "id": 5282, + "id": 5284, "nodeType": "Block", - "src": "1894:130:12", + "src": "1925:130:12", "statements": [ { "expression": { @@ -8662,7 +8754,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 5277, + "id": 5279, "isConstant": false, "isLValue": false, "isPure": false, @@ -8671,18 +8763,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 5274, + "id": 5276, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, - "src": "1925:3:12", + "referencedDeclaration": 6547, + "src": "1956:3:12", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 5275, + "id": 5277, "isConstant": false, "isLValue": false, "isPure": false, @@ -8690,7 +8782,7 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "1925:10:12", + "src": "1956:10:12", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -8700,18 +8792,18 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 5276, + "id": 5278, "name": "_minter", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5206, - "src": "1939:7:12", + "src": "1970:7:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "1925:21:12", + "src": "1956:21:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -8720,14 +8812,14 @@ { "argumentTypes": null, "hexValue": "44617461546f6b656e54656d706c6174653a20696e76616c6964206d696e746572", - "id": 5278, + "id": 5280, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "1960:35:12", + "src": "1991:35:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_40e35c5de830427b1e8c63a3538e0f1b39d02b02870d69ff7c4ee4488565fe71", @@ -8747,21 +8839,21 @@ "typeString": "literal_string \"DataTokenTemplate: invalid minter\"" } ], - "id": 5273, + "id": 5275, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, - "src": "1904:7:12", + "referencedDeclaration": 6551, + "src": "1935:7:12", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5279, + "id": 5281, "isConstant": false, "isLValue": false, "isPure": false, @@ -8769,41 +8861,41 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1904:102:12", + "src": "1935:102:12", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 5280, + "id": 5282, "nodeType": "ExpressionStatement", - "src": "1904:102:12" + "src": "1935:102:12" }, { - "id": 5281, + "id": 5283, "nodeType": "PlaceholderStatement", - "src": "2016:1:12" + "src": "2047:1:12" } ] }, "documentation": null, - "id": 5283, + "id": 5285, "name": "onlyMinter", "nodeType": "ModifierDefinition", "parameters": { - "id": 5272, + "id": 5274, "nodeType": "ParameterList", "parameters": [], - "src": "1891:2:12" + "src": "1922:2:12" }, - "src": "1872:152:12", + "src": "1903:152:12", "visibility": "internal" }, { "body": { - "id": 5307, + "id": 5309, "nodeType": "Block", - "src": "2684:164:12", + "src": "2715:164:12", "statements": [ { "expression": { @@ -8811,12 +8903,12 @@ "arguments": [ { "argumentTypes": null, - "id": 5299, + "id": 5301, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5285, - "src": "2719:4:12", + "referencedDeclaration": 5287, + "src": "2750:4:12", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" @@ -8824,12 +8916,12 @@ }, { "argumentTypes": null, - "id": 5300, + "id": 5302, "name": "symbol", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5287, - "src": "2737:6:12", + "referencedDeclaration": 5289, + "src": "2768:6:12", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" @@ -8837,12 +8929,12 @@ }, { "argumentTypes": null, - "id": 5301, + "id": 5303, "name": "minterAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5289, - "src": "2757:13:12", + "referencedDeclaration": 5291, + "src": "2788:13:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -8850,12 +8942,12 @@ }, { "argumentTypes": null, - "id": 5302, + "id": 5304, "name": "cap", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5291, - "src": "2784:3:12", + "referencedDeclaration": 5293, + "src": "2815:3:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -8863,12 +8955,12 @@ }, { "argumentTypes": null, - "id": 5303, + "id": 5305, "name": "blob", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5293, - "src": "2801:4:12", + "referencedDeclaration": 5295, + "src": "2832:4:12", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" @@ -8876,12 +8968,12 @@ }, { "argumentTypes": null, - "id": 5304, + "id": 5306, "name": "feeCollector", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5295, - "src": "2819:12:12", + "referencedDeclaration": 5297, + "src": "2850:12:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -8915,18 +9007,18 @@ "typeString": "address" } ], - "id": 5298, + "id": 5300, "name": "_initialize", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5419, - "src": "2694:11:12", + "referencedDeclaration": 5421, + "src": "2725:11:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$_t_address_$_t_uint256_$_t_string_memory_ptr_$_t_address_$returns$_t_bool_$", "typeString": "function (string memory,string memory,address,uint256,string memory,address) returns (bool)" } }, - "id": 5305, + "id": 5307, "isConstant": false, "isLValue": false, "isPure": false, @@ -8934,36 +9026,36 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2694:147:12", + "src": "2725:147:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, - "id": 5306, + "id": 5308, "nodeType": "ExpressionStatement", - "src": "2694:147:12" + "src": "2725:147:12" } ] }, "documentation": "@dev constructor\n Called prior contract deployment\n@param name refers to a template DataToken name\n@param symbol refers to a template DataToken symbol\n@param minterAddress refers to an address that has minter role\n@param cap the total ERC20 cap\n@param blob data string refering to the resolver for the metadata\n@param feeCollector it is the community fee collector address", - "id": 5308, + "id": 5310, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { - "id": 5296, + "id": 5298, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5285, + "id": 5287, "name": "name", "nodeType": "VariableDeclaration", - "scope": 5308, - "src": "2500:18:12", + "scope": 5310, + "src": "2531:18:12", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { @@ -8971,10 +9063,10 @@ "typeString": "string" }, "typeName": { - "id": 5284, + "id": 5286, "name": "string", "nodeType": "ElementaryTypeName", - "src": "2500:6:12", + "src": "2531:6:12", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -8985,11 +9077,11 @@ }, { "constant": false, - "id": 5287, + "id": 5289, "name": "symbol", "nodeType": "VariableDeclaration", - "scope": 5308, - "src": "2528:20:12", + "scope": 5310, + "src": "2559:20:12", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { @@ -8997,10 +9089,10 @@ "typeString": "string" }, "typeName": { - "id": 5286, + "id": 5288, "name": "string", "nodeType": "ElementaryTypeName", - "src": "2528:6:12", + "src": "2559:6:12", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -9011,11 +9103,11 @@ }, { "constant": false, - "id": 5289, + "id": 5291, "name": "minterAddress", "nodeType": "VariableDeclaration", - "scope": 5308, - "src": "2558:21:12", + "scope": 5310, + "src": "2589:21:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -9023,10 +9115,10 @@ "typeString": "address" }, "typeName": { - "id": 5288, + "id": 5290, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2558:7:12", + "src": "2589:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9038,11 +9130,11 @@ }, { "constant": false, - "id": 5291, + "id": 5293, "name": "cap", "nodeType": "VariableDeclaration", - "scope": 5308, - "src": "2589:11:12", + "scope": 5310, + "src": "2620:11:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -9050,10 +9142,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5290, + "id": 5292, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "2589:7:12", + "src": "2620:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -9064,11 +9156,11 @@ }, { "constant": false, - "id": 5293, + "id": 5295, "name": "blob", "nodeType": "VariableDeclaration", - "scope": 5308, - "src": "2610:18:12", + "scope": 5310, + "src": "2641:18:12", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { @@ -9076,10 +9168,10 @@ "typeString": "string" }, "typeName": { - "id": 5292, + "id": 5294, "name": "string", "nodeType": "ElementaryTypeName", - "src": "2610:6:12", + "src": "2641:6:12", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -9090,11 +9182,11 @@ }, { "constant": false, - "id": 5295, + "id": 5297, "name": "feeCollector", "nodeType": "VariableDeclaration", - "scope": 5308, - "src": "2638:20:12", + "scope": 5310, + "src": "2669:20:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -9102,10 +9194,10 @@ "typeString": "address" }, "typeName": { - "id": 5294, + "id": 5296, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2638:7:12", + "src": "2669:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9116,25 +9208,25 @@ "visibility": "internal" } ], - "src": "2490:174:12" + "src": "2521:174:12" }, "returnParameters": { - "id": 5297, + "id": 5299, "nodeType": "ParameterList", "parameters": [], - "src": "2684:0:12" + "src": "2715:0:12" }, - "scope": 5694, - "src": "2479:369:12", + "scope": 5698, + "src": "2510:369:12", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 5336, + "id": 5338, "nodeType": "Block", - "src": "3696:171:12", + "src": "3727:171:12", "statements": [ { "expression": { @@ -9142,12 +9234,12 @@ "arguments": [ { "argumentTypes": null, - "id": 5328, + "id": 5330, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5310, - "src": "3738:4:12", + "referencedDeclaration": 5312, + "src": "3769:4:12", "typeDescriptions": { "typeIdentifier": "t_string_calldata_ptr", "typeString": "string calldata" @@ -9155,12 +9247,12 @@ }, { "argumentTypes": null, - "id": 5329, + "id": 5331, "name": "symbol", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5312, - "src": "3756:6:12", + "referencedDeclaration": 5314, + "src": "3787:6:12", "typeDescriptions": { "typeIdentifier": "t_string_calldata_ptr", "typeString": "string calldata" @@ -9168,12 +9260,12 @@ }, { "argumentTypes": null, - "id": 5330, + "id": 5332, "name": "minterAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5314, - "src": "3776:13:12", + "referencedDeclaration": 5316, + "src": "3807:13:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -9181,12 +9273,12 @@ }, { "argumentTypes": null, - "id": 5331, + "id": 5333, "name": "cap", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5316, - "src": "3803:3:12", + "referencedDeclaration": 5318, + "src": "3834:3:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -9194,12 +9286,12 @@ }, { "argumentTypes": null, - "id": 5332, + "id": 5334, "name": "blob", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5318, - "src": "3820:4:12", + "referencedDeclaration": 5320, + "src": "3851:4:12", "typeDescriptions": { "typeIdentifier": "t_string_calldata_ptr", "typeString": "string calldata" @@ -9207,12 +9299,12 @@ }, { "argumentTypes": null, - "id": 5333, + "id": 5335, "name": "feeCollector", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5320, - "src": "3838:12:12", + "referencedDeclaration": 5322, + "src": "3869:12:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -9246,18 +9338,18 @@ "typeString": "address" } ], - "id": 5327, + "id": 5329, "name": "_initialize", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5419, - "src": "3713:11:12", + "referencedDeclaration": 5421, + "src": "3744:11:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$_t_address_$_t_uint256_$_t_string_memory_ptr_$_t_address_$returns$_t_bool_$", "typeString": "function (string memory,string memory,address,uint256,string memory,address) returns (bool)" } }, - "id": 5334, + "id": 5336, "isConstant": false, "isLValue": false, "isPure": false, @@ -9265,57 +9357,57 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3713:147:12", + "src": "3744:147:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, - "functionReturnParameters": 5326, - "id": 5335, + "functionReturnParameters": 5328, + "id": 5337, "nodeType": "Return", - "src": "3706:154:12" + "src": "3737:154:12" } ] }, "documentation": "@dev initialize\n Called prior contract initialization (e.g creating new DataToken instance)\n Calls private _initialize function. Only if contract is not initialized.\n@param name refers to a new DataToken name\n@param symbol refers to a nea DataToken symbol\n@param minterAddress refers to an address that has minter rights\n@param cap the total ERC20 cap\n@param blob data string refering to the resolver for the metadata\n@param feeCollector it is the community fee collector address", - "id": 5337, + "id": 5339, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, - "id": 5323, + "id": 5325, "modifierName": { "argumentTypes": null, - "id": 5322, + "id": 5324, "name": "onlyNotInitialized", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5271, - "src": "3651:18:12", + "referencedDeclaration": 5273, + "src": "3682:18:12", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "3651:18:12" + "src": "3682:18:12" } ], "name": "initialize", "nodeType": "FunctionDefinition", "parameters": { - "id": 5321, + "id": 5323, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5310, + "id": 5312, "name": "name", "nodeType": "VariableDeclaration", - "scope": 5337, - "src": "3454:20:12", + "scope": 5339, + "src": "3485:20:12", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { @@ -9323,10 +9415,10 @@ "typeString": "string" }, "typeName": { - "id": 5309, + "id": 5311, "name": "string", "nodeType": "ElementaryTypeName", - "src": "3454:6:12", + "src": "3485:6:12", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -9337,11 +9429,11 @@ }, { "constant": false, - "id": 5312, + "id": 5314, "name": "symbol", "nodeType": "VariableDeclaration", - "scope": 5337, - "src": "3484:22:12", + "scope": 5339, + "src": "3515:22:12", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { @@ -9349,10 +9441,10 @@ "typeString": "string" }, "typeName": { - "id": 5311, + "id": 5313, "name": "string", "nodeType": "ElementaryTypeName", - "src": "3484:6:12", + "src": "3515:6:12", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -9363,11 +9455,11 @@ }, { "constant": false, - "id": 5314, + "id": 5316, "name": "minterAddress", "nodeType": "VariableDeclaration", - "scope": 5337, - "src": "3516:21:12", + "scope": 5339, + "src": "3547:21:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -9375,10 +9467,10 @@ "typeString": "address" }, "typeName": { - "id": 5313, + "id": 5315, "name": "address", "nodeType": "ElementaryTypeName", - "src": "3516:7:12", + "src": "3547:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9390,11 +9482,11 @@ }, { "constant": false, - "id": 5316, + "id": 5318, "name": "cap", "nodeType": "VariableDeclaration", - "scope": 5337, - "src": "3547:11:12", + "scope": 5339, + "src": "3578:11:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -9402,10 +9494,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5315, + "id": 5317, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "3547:7:12", + "src": "3578:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -9416,11 +9508,11 @@ }, { "constant": false, - "id": 5318, + "id": 5320, "name": "blob", "nodeType": "VariableDeclaration", - "scope": 5337, - "src": "3568:20:12", + "scope": 5339, + "src": "3599:20:12", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { @@ -9428,10 +9520,10 @@ "typeString": "string" }, "typeName": { - "id": 5317, + "id": 5319, "name": "string", "nodeType": "ElementaryTypeName", - "src": "3568:6:12", + "src": "3599:6:12", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -9442,11 +9534,11 @@ }, { "constant": false, - "id": 5320, + "id": 5322, "name": "feeCollector", "nodeType": "VariableDeclaration", - "scope": 5337, - "src": "3598:20:12", + "scope": 5339, + "src": "3629:20:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -9454,10 +9546,10 @@ "typeString": "address" }, "typeName": { - "id": 5319, + "id": 5321, "name": "address", "nodeType": "ElementaryTypeName", - "src": "3598:7:12", + "src": "3629:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9468,19 +9560,19 @@ "visibility": "internal" } ], - "src": "3444:180:12" + "src": "3475:180:12" }, "returnParameters": { - "id": 5326, + "id": 5328, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5325, + "id": 5327, "name": "", "nodeType": "VariableDeclaration", - "scope": 5337, - "src": "3686:4:12", + "scope": 5339, + "src": "3717:4:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -9488,10 +9580,10 @@ "typeString": "bool" }, "typeName": { - "id": 5324, + "id": 5326, "name": "bool", "nodeType": "ElementaryTypeName", - "src": "3686:4:12", + "src": "3717:4:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -9501,19 +9593,19 @@ "visibility": "internal" } ], - "src": "3685:6:12" + "src": "3716:6:12" }, - "scope": 5694, - "src": "3425:442:12", + "scope": 5698, + "src": "3456:442:12", "stateMutability": "nonpayable", "superFunction": 5000, "visibility": "external" }, { "body": { - "id": 5418, + "id": 5420, "nodeType": "Block", - "src": "4570:743:12", + "src": "4601:743:12", "statements": [ { "expression": { @@ -9525,19 +9617,19 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 5359, + "id": 5361, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5355, + "id": 5357, "name": "minterAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5343, - "src": "4601:13:12", + "referencedDeclaration": 5345, + "src": "4632:13:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -9551,14 +9643,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 5357, + "id": 5359, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "4626:1:12", + "src": "4657:1:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -9574,20 +9666,20 @@ "typeString": "int_const 0" } ], - "id": 5356, + "id": 5358, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "4618:7:12", + "src": "4649:7:12", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 5358, + "id": 5360, "isConstant": false, "isLValue": false, "isPure": true, @@ -9595,13 +9687,13 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4618:10:12", + "src": "4649:10:12", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, - "src": "4601:27:12", + "src": "4632:27:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -9610,14 +9702,14 @@ { "argumentTypes": null, "hexValue": "44617461546f6b656e54656d706c6174653a20496e76616c6964206d696e7465722c20207a65726f2061646472657373", - "id": 5360, + "id": 5362, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "4643:50:12", + "src": "4674:50:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_79b023297db239e06df0b00bacc5eecb1d80c9686a2e70ed8293de6723d3cfa6", @@ -9637,21 +9729,21 @@ "typeString": "literal_string \"DataTokenTemplate: Invalid minter, zero address\"" } ], - "id": 5354, + "id": 5356, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, - "src": "4580:7:12", + "referencedDeclaration": 6551, + "src": "4611:7:12", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5361, + "id": 5363, "isConstant": false, "isLValue": false, "isPure": false, @@ -9659,15 +9751,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4580:123:12", + "src": "4611:123:12", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 5362, + "id": 5364, "nodeType": "ExpressionStatement", - "src": "4580:123:12" + "src": "4611:123:12" }, { "expression": { @@ -9679,19 +9771,19 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 5368, + "id": 5370, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5364, + "id": 5366, "name": "_minter", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5206, - "src": "4735:7:12", + "src": "4766:7:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -9705,14 +9797,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 5366, + "id": 5368, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "4754:1:12", + "src": "4785:1:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -9728,20 +9820,20 @@ "typeString": "int_const 0" } ], - "id": 5365, + "id": 5367, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "4746:7:12", + "src": "4777:7:12", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 5367, + "id": 5369, "isConstant": false, "isLValue": false, "isPure": true, @@ -9749,13 +9841,13 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4746:10:12", + "src": "4777:10:12", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, - "src": "4735:21:12", + "src": "4766:21:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -9764,14 +9856,14 @@ { "argumentTypes": null, "hexValue": "44617461546f6b656e54656d706c6174653a20496e76616c6964206d696e7465722c207a65726f2061646472657373", - "id": 5369, + "id": 5371, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "4771:49:12", + "src": "4802:49:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_b9b9e16289fbb5851262a16209ee436929da92a7a333eeb45338a6bda1fc88b5", @@ -9791,21 +9883,21 @@ "typeString": "literal_string \"DataTokenTemplate: Invalid minter, zero address\"" } ], - "id": 5363, + "id": 5365, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, - "src": "4714:7:12", + "referencedDeclaration": 6551, + "src": "4745:7:12", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5370, + "id": 5372, "isConstant": false, "isLValue": false, "isPure": false, @@ -9813,15 +9905,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4714:116:12", + "src": "4745:116:12", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 5371, + "id": 5373, "nodeType": "ExpressionStatement", - "src": "4714:116:12" + "src": "4745:116:12" }, { "expression": { @@ -9833,19 +9925,19 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 5377, + "id": 5379, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5373, + "id": 5375, "name": "feeCollector", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5349, - "src": "4862:12:12", + "referencedDeclaration": 5351, + "src": "4893:12:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -9859,14 +9951,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 5375, + "id": 5377, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "4886:1:12", + "src": "4917:1:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -9882,20 +9974,20 @@ "typeString": "int_const 0" } ], - "id": 5374, + "id": 5376, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "4878:7:12", + "src": "4909:7:12", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 5376, + "id": 5378, "isConstant": false, "isLValue": false, "isPure": true, @@ -9903,13 +9995,13 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4878:10:12", + "src": "4909:10:12", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, - "src": "4862:26:12", + "src": "4893:26:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -9918,14 +10010,14 @@ { "argumentTypes": null, "hexValue": "44617461546f6b656e54656d706c6174653a20496e76616c696420636f6d6d756e6974792066656520636f6c6c6563746f722c207a65726f2061646472657373", - "id": 5378, + "id": 5380, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "4902:66:12", + "src": "4933:66:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_79b4d95ff9378609f77ba871e4eb20868d893b58fb0b84eff9a61c2168cec2e8", @@ -9945,21 +10037,21 @@ "typeString": "literal_string \"DataTokenTemplate: Invalid community fee collector, zero address\"" } ], - "id": 5372, + "id": 5374, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, - "src": "4841:7:12", + "referencedDeclaration": 6551, + "src": "4872:7:12", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5379, + "id": 5381, "isConstant": false, "isLValue": false, "isPure": false, @@ -9967,15 +10059,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4841:137:12", + "src": "4872:137:12", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 5380, + "id": 5382, "nodeType": "ExpressionStatement", - "src": "4841:137:12" + "src": "4872:137:12" }, { "expression": { @@ -9987,19 +10079,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5384, + "id": 5386, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5382, + "id": 5384, "name": "cap", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5345, - "src": "5010:3:12", + "referencedDeclaration": 5347, + "src": "5041:3:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -10010,14 +10102,14 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 5383, + "id": 5385, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "5017:1:12", + "src": "5048:1:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -10025,7 +10117,7 @@ }, "value": "0" }, - "src": "5010:8:12", + "src": "5041:8:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -10034,14 +10126,14 @@ { "argumentTypes": null, "hexValue": "44617461546f6b656e54656d706c6174653a20496e76616c6964206361702076616c7565", - "id": 5385, + "id": 5387, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "5032:38:12", + "src": "5063:38:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_931eb4f9c6ddf66acc5bb36f4acf3bb199deea0451b189ecfb6b4e252da29b03", @@ -10061,21 +10153,21 @@ "typeString": "literal_string \"DataTokenTemplate: Invalid cap value\"" } ], - "id": 5381, + "id": 5383, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, - "src": "4989:7:12", + "referencedDeclaration": 6551, + "src": "5020:7:12", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5386, + "id": 5388, "isConstant": false, "isLValue": false, "isPure": false, @@ -10083,32 +10175,32 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4989:91:12", + "src": "5020:91:12", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 5387, + "id": 5389, "nodeType": "ExpressionStatement", - "src": "4989:91:12" + "src": "5020:91:12" }, { "expression": { "argumentTypes": null, - "id": 5390, + "id": 5392, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 5388, + "id": 5390, "name": "_cap", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5196, - "src": "5090:4:12", + "src": "5121:4:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -10118,43 +10210,43 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 5389, + "id": 5391, "name": "cap", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5345, - "src": "5097:3:12", + "referencedDeclaration": 5347, + "src": "5128:3:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "5090:10:12", + "src": "5121:10:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 5391, + "id": 5393, "nodeType": "ExpressionStatement", - "src": "5090:10:12" + "src": "5121:10:12" }, { "expression": { "argumentTypes": null, - "id": 5394, + "id": 5396, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 5392, + "id": 5394, "name": "_name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5190, - "src": "5110:5:12", + "src": "5141:5:12", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" @@ -10164,43 +10256,43 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 5393, + "id": 5395, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5339, - "src": "5118:4:12", + "referencedDeclaration": 5341, + "src": "5149:4:12", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, - "src": "5110:12:12", + "src": "5141:12:12", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, - "id": 5395, + "id": 5397, "nodeType": "ExpressionStatement", - "src": "5110:12:12" + "src": "5141:12:12" }, { "expression": { "argumentTypes": null, - "id": 5398, + "id": 5400, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 5396, + "id": 5398, "name": "_blob", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5194, - "src": "5132:5:12", + "src": "5163:5:12", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" @@ -10210,43 +10302,43 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 5397, + "id": 5399, "name": "blob", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5347, - "src": "5140:4:12", + "referencedDeclaration": 5349, + "src": "5171:4:12", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, - "src": "5132:12:12", + "src": "5163:12:12", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, - "id": 5399, + "id": 5401, "nodeType": "ExpressionStatement", - "src": "5132:12:12" + "src": "5163:12:12" }, { "expression": { "argumentTypes": null, - "id": 5402, + "id": 5404, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 5400, + "id": 5402, "name": "_symbol", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5192, - "src": "5154:7:12", + "src": "5185:7:12", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" @@ -10256,43 +10348,43 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 5401, + "id": 5403, "name": "symbol", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5341, - "src": "5164:6:12", + "referencedDeclaration": 5343, + "src": "5195:6:12", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, - "src": "5154:16:12", + "src": "5185:16:12", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, - "id": 5403, + "id": 5405, "nodeType": "ExpressionStatement", - "src": "5154:16:12" + "src": "5185:16:12" }, { "expression": { "argumentTypes": null, - "id": 5406, + "id": 5408, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 5404, + "id": 5406, "name": "_minter", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5206, - "src": "5180:7:12", + "src": "5211:7:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -10302,43 +10394,43 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 5405, + "id": 5407, "name": "minterAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5343, - "src": "5190:13:12", + "referencedDeclaration": 5345, + "src": "5221:13:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "5180:23:12", + "src": "5211:23:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "id": 5407, + "id": 5409, "nodeType": "ExpressionStatement", - "src": "5180:23:12" + "src": "5211:23:12" }, { "expression": { "argumentTypes": null, - "id": 5410, + "id": 5412, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 5408, + "id": 5410, "name": "_communityFeeCollector", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5201, - "src": "5213:22:12", + "src": "5244:22:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -10348,43 +10440,43 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 5409, + "id": 5411, "name": "feeCollector", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5349, - "src": "5238:12:12", + "referencedDeclaration": 5351, + "src": "5269:12:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "5213:37:12", + "src": "5244:37:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "id": 5411, + "id": 5413, "nodeType": "ExpressionStatement", - "src": "5213:37:12" + "src": "5244:37:12" }, { "expression": { "argumentTypes": null, - "id": 5414, + "id": 5416, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 5412, + "id": 5414, "name": "initialized", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5204, - "src": "5260:11:12", + "src": "5291:11:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -10395,14 +10487,14 @@ "rightHandSide": { "argumentTypes": null, "hexValue": "74727565", - "id": 5413, + "id": 5415, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", - "src": "5274:4:12", + "src": "5305:4:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", @@ -10410,55 +10502,55 @@ }, "value": "true" }, - "src": "5260:18:12", + "src": "5291:18:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, - "id": 5415, + "id": 5417, "nodeType": "ExpressionStatement", - "src": "5260:18:12" + "src": "5291:18:12" }, { "expression": { "argumentTypes": null, - "id": 5416, + "id": 5418, "name": "initialized", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5204, - "src": "5295:11:12", + "src": "5326:11:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, - "functionReturnParameters": 5353, - "id": 5417, + "functionReturnParameters": 5355, + "id": 5419, "nodeType": "Return", - "src": "5288:18:12" + "src": "5319:18:12" } ] }, "documentation": "@dev _initialize\n Private function called on contract initialization.\n@param name refers to a new DataToken name\n@param symbol refers to a nea DataToken symbol\n@param minterAddress refers to an address that has minter rights\n@param cap the total ERC20 cap\n@param blob data string refering to the resolver for the metadata\n@param feeCollector it is the community fee collector address", - "id": 5419, + "id": 5421, "implemented": true, "kind": "function", "modifiers": [], "name": "_initialize", "nodeType": "FunctionDefinition", "parameters": { - "id": 5350, + "id": 5352, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5339, + "id": 5341, "name": "name", "nodeType": "VariableDeclaration", - "scope": 5419, - "src": "4363:18:12", + "scope": 5421, + "src": "4394:18:12", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { @@ -10466,10 +10558,10 @@ "typeString": "string" }, "typeName": { - "id": 5338, + "id": 5340, "name": "string", "nodeType": "ElementaryTypeName", - "src": "4363:6:12", + "src": "4394:6:12", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -10480,11 +10572,11 @@ }, { "constant": false, - "id": 5341, + "id": 5343, "name": "symbol", "nodeType": "VariableDeclaration", - "scope": 5419, - "src": "4391:20:12", + "scope": 5421, + "src": "4422:20:12", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { @@ -10492,10 +10584,10 @@ "typeString": "string" }, "typeName": { - "id": 5340, + "id": 5342, "name": "string", "nodeType": "ElementaryTypeName", - "src": "4391:6:12", + "src": "4422:6:12", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -10506,11 +10598,11 @@ }, { "constant": false, - "id": 5343, + "id": 5345, "name": "minterAddress", "nodeType": "VariableDeclaration", - "scope": 5419, - "src": "4421:21:12", + "scope": 5421, + "src": "4452:21:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -10518,10 +10610,10 @@ "typeString": "address" }, "typeName": { - "id": 5342, + "id": 5344, "name": "address", "nodeType": "ElementaryTypeName", - "src": "4421:7:12", + "src": "4452:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10533,11 +10625,11 @@ }, { "constant": false, - "id": 5345, + "id": 5347, "name": "cap", "nodeType": "VariableDeclaration", - "scope": 5419, - "src": "4452:11:12", + "scope": 5421, + "src": "4483:11:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -10545,10 +10637,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5344, + "id": 5346, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "4452:7:12", + "src": "4483:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -10559,11 +10651,11 @@ }, { "constant": false, - "id": 5347, + "id": 5349, "name": "blob", "nodeType": "VariableDeclaration", - "scope": 5419, - "src": "4473:18:12", + "scope": 5421, + "src": "4504:18:12", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { @@ -10571,10 +10663,10 @@ "typeString": "string" }, "typeName": { - "id": 5346, + "id": 5348, "name": "string", "nodeType": "ElementaryTypeName", - "src": "4473:6:12", + "src": "4504:6:12", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -10585,11 +10677,11 @@ }, { "constant": false, - "id": 5349, + "id": 5351, "name": "feeCollector", "nodeType": "VariableDeclaration", - "scope": 5419, - "src": "4501:20:12", + "scope": 5421, + "src": "4532:20:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -10597,10 +10689,10 @@ "typeString": "address" }, "typeName": { - "id": 5348, + "id": 5350, "name": "address", "nodeType": "ElementaryTypeName", - "src": "4501:7:12", + "src": "4532:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10611,19 +10703,19 @@ "visibility": "internal" } ], - "src": "4353:174:12" + "src": "4384:174:12" }, "returnParameters": { - "id": 5353, + "id": 5355, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5352, + "id": 5354, "name": "", "nodeType": "VariableDeclaration", - "scope": 5419, - "src": "4560:4:12", + "scope": 5421, + "src": "4591:4:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -10631,10 +10723,10 @@ "typeString": "bool" }, "typeName": { - "id": 5351, + "id": 5353, "name": "bool", "nodeType": "ElementaryTypeName", - "src": "4560:4:12", + "src": "4591:4:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -10644,19 +10736,19 @@ "visibility": "internal" } ], - "src": "4559:6:12" + "src": "4590:6:12" }, - "scope": 5694, - "src": "4333:980:12", + "scope": 5698, + "src": "4364:980:12", "stateMutability": "nonpayable", "superFunction": null, "visibility": "private" }, { "body": { - "id": 5444, + "id": 5446, "nodeType": "Block", - "src": "5742:159:12", + "src": "5773:159:12", "statements": [ { "expression": { @@ -10668,7 +10760,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5435, + "id": 5437, "isConstant": false, "isLValue": false, "isPure": false, @@ -10678,12 +10770,12 @@ "arguments": [ { "argumentTypes": null, - "id": 5432, + "id": 5434, "name": "value", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5423, - "src": "5791:5:12", + "referencedDeclaration": 5425, + "src": "5822:5:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -10702,18 +10794,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 5429, + "id": 5431, "name": "totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6086, - "src": "5773:11:12", + "referencedDeclaration": 6090, + "src": "5804:11:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$", "typeString": "function () view returns (uint256)" } }, - "id": 5430, + "id": 5432, "isConstant": false, "isLValue": false, "isPure": false, @@ -10721,27 +10813,27 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5773:13:12", + "src": "5804:13:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 5431, + "id": 5433, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "add", "nodeType": "MemberAccess", - "referencedDeclaration": 5776, - "src": "5773:17:12", + "referencedDeclaration": 5780, + "src": "5804:17:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 5433, + "id": 5435, "isConstant": false, "isLValue": false, "isPure": false, @@ -10749,7 +10841,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5773:24:12", + "src": "5804:24:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -10759,18 +10851,18 @@ "operator": "<=", "rightExpression": { "argumentTypes": null, - "id": 5434, + "id": 5436, "name": "_cap", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5196, - "src": "5801:4:12", + "src": "5832:4:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "5773:32:12", + "src": "5804:32:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -10779,14 +10871,14 @@ { "argumentTypes": null, "hexValue": "44617461546f6b656e54656d706c6174653a20636170206578636565646564", - "id": 5436, + "id": 5438, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "5820:33:12", + "src": "5851:33:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_db37e28d4a1d757900849adc30f19972d8f520005ecc78e1ba1f3c9b13636ae7", @@ -10806,21 +10898,21 @@ "typeString": "literal_string \"DataTokenTemplate: cap exceeded\"" } ], - "id": 5428, + "id": 5430, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, - "src": "5752:7:12", + "referencedDeclaration": 6551, + "src": "5783:7:12", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5437, + "id": 5439, "isConstant": false, "isLValue": false, "isPure": false, @@ -10828,15 +10920,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5752:111:12", + "src": "5783:111:12", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 5438, + "id": 5440, "nodeType": "ExpressionStatement", - "src": "5752:111:12" + "src": "5783:111:12" }, { "expression": { @@ -10844,12 +10936,12 @@ "arguments": [ { "argumentTypes": null, - "id": 5440, + "id": 5442, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5421, - "src": "5879:7:12", + "referencedDeclaration": 5423, + "src": "5910:7:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -10857,12 +10949,12 @@ }, { "argumentTypes": null, - "id": 5441, + "id": 5443, "name": "value", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5423, - "src": "5888:5:12", + "referencedDeclaration": 5425, + "src": "5919:5:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -10880,18 +10972,18 @@ "typeString": "uint256" } ], - "id": 5439, + "id": 5441, "name": "_mint", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6343, - "src": "5873:5:12", + "referencedDeclaration": 6347, + "src": "5904:5:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,uint256)" } }, - "id": 5442, + "id": 5444, "isConstant": false, "isLValue": false, "isPure": false, @@ -10899,56 +10991,56 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5873:21:12", + "src": "5904:21:12", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 5443, + "id": 5445, "nodeType": "ExpressionStatement", - "src": "5873:21:12" + "src": "5904:21:12" } ] }, "documentation": "@dev mint\n Only the minter address can call it.\n msg.value should be higher than zero and gt or eq minting fee\n@param account refers to an address that token is going to be minted to.\n@param value refers to amount of tokens that is going to be minted.", - "id": 5445, + "id": 5447, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, - "id": 5426, + "id": 5428, "modifierName": { "argumentTypes": null, - "id": 5425, + "id": 5427, "name": "onlyMinter", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5283, - "src": "5726:10:12", + "referencedDeclaration": 5285, + "src": "5757:10:12", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "5726:10:12" + "src": "5757:10:12" } ], "name": "mint", "nodeType": "FunctionDefinition", "parameters": { - "id": 5424, + "id": 5426, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5421, + "id": 5423, "name": "account", "nodeType": "VariableDeclaration", - "scope": 5445, - "src": "5653:15:12", + "scope": 5447, + "src": "5684:15:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -10956,10 +11048,10 @@ "typeString": "address" }, "typeName": { - "id": 5420, + "id": 5422, "name": "address", "nodeType": "ElementaryTypeName", - "src": "5653:7:12", + "src": "5684:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10971,11 +11063,11 @@ }, { "constant": false, - "id": 5423, + "id": 5425, "name": "value", "nodeType": "VariableDeclaration", - "scope": 5445, - "src": "5678:13:12", + "scope": 5447, + "src": "5709:13:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -10983,10 +11075,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5422, + "id": 5424, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "5678:7:12", + "src": "5709:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -10996,38 +11088,38 @@ "visibility": "internal" } ], - "src": "5643:54:12" + "src": "5674:54:12" }, "returnParameters": { - "id": 5427, + "id": 5429, "nodeType": "ParameterList", "parameters": [], - "src": "5742:0:12" + "src": "5773:0:12" }, - "scope": 5694, - "src": "5630:271:12", + "scope": 5698, + "src": "5661:271:12", "stateMutability": "nonpayable", "superFunction": 5007, "visibility": "external" }, { "body": { - "id": 5515, + "id": 5517, "nodeType": "Block", - "src": "6350:728:12", + "src": "6381:731:12", "statements": [ { "assignments": [ - 5455 + 5457 ], "declarations": [ { "constant": false, - "id": 5455, + "id": 5457, "name": "marketFee", "nodeType": "VariableDeclaration", - "scope": 5515, - "src": "6360:17:12", + "scope": 5517, + "src": "6391:17:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -11035,10 +11127,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5454, + "id": 5456, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "6360:7:12", + "src": "6391:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -11048,18 +11140,18 @@ "visibility": "internal" } ], - "id": 5457, + "id": 5459, "initialValue": { "argumentTypes": null, "hexValue": "30", - "id": 5456, + "id": 5458, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "6380:1:12", + "src": "6411:1:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -11068,20 +11160,20 @@ "value": "0" }, "nodeType": "VariableDeclarationStatement", - "src": "6360:21:12" + "src": "6391:21:12" }, { "assignments": [ - 5459 + 5461 ], "declarations": [ { "constant": false, - "id": 5459, + "id": 5461, "name": "communityFee", "nodeType": "VariableDeclaration", - "scope": 5515, - "src": "6391:20:12", + "scope": 5517, + "src": "6422:20:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -11089,10 +11181,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5458, + "id": 5460, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "6391:7:12", + "src": "6422:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -11102,18 +11194,18 @@ "visibility": "internal" } ], - "id": 5464, + "id": 5466, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 5461, + "id": 5463, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5447, - "src": "6440:6:12", + "referencedDeclaration": 5449, + "src": "6471:6:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -11121,12 +11213,12 @@ }, { "argumentTypes": null, - "id": 5462, + "id": 5464, "name": "BASE_COMMUNITY_FEE_PERCENTAGE", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5218, - "src": "6461:29:12", + "src": "6492:29:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -11144,18 +11236,18 @@ "typeString": "uint256" } ], - "id": 5460, + "id": 5462, "name": "calculateFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5693, - "src": "6414:12:12", + "referencedDeclaration": 5697, + "src": "6445:12:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 5463, + "id": 5465, "isConstant": false, "isLValue": false, "isPure": false, @@ -11163,14 +11255,14 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6414:86:12", + "src": "6445:86:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", - "src": "6391:109:12" + "src": "6422:109:12" }, { "expression": { @@ -11178,12 +11270,12 @@ "arguments": [ { "argumentTypes": null, - "id": 5466, + "id": 5468, "name": "_communityFeeCollector", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5201, - "src": "6519:22:12", + "src": "6550:22:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -11191,12 +11283,12 @@ }, { "argumentTypes": null, - "id": 5467, + "id": 5469, "name": "communityFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5459, - "src": "6543:12:12", + "referencedDeclaration": 5461, + "src": "6574:12:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -11214,18 +11306,18 @@ "typeString": "uint256" } ], - "id": 5465, + "id": 5467, "name": "transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6117, - "src": "6510:8:12", + "referencedDeclaration": 6121, + "src": "6541:8:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$_t_bool_$", "typeString": "function (address,uint256) returns (bool)" } }, - "id": 5468, + "id": 5470, "isConstant": false, "isLValue": false, "isPure": false, @@ -11233,15 +11325,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6510:46:12", + "src": "6541:46:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, - "id": 5469, + "id": 5471, "nodeType": "ExpressionStatement", - "src": "6510:46:12" + "src": "6541:46:12" }, { "condition": { @@ -11250,19 +11342,19 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 5474, + "id": 5476, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5470, + "id": 5472, "name": "mrktFeeCollector", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5451, - "src": "6569:16:12", + "referencedDeclaration": 5453, + "src": "6600:16:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -11276,14 +11368,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 5472, + "id": 5474, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "6597:1:12", + "src": "6628:1:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -11299,20 +11391,20 @@ "typeString": "int_const 0" } ], - "id": 5471, + "id": 5473, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "6589:7:12", + "src": "6620:7:12", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 5473, + "id": 5475, "isConstant": false, "isLValue": false, "isPure": true, @@ -11320,43 +11412,43 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6589:10:12", + "src": "6620:10:12", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, - "src": "6569:30:12", + "src": "6600:30:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, - "id": 5488, + "id": 5490, "nodeType": "IfStatement", - "src": "6566:217:12", + "src": "6597:217:12", "trueBody": { - "id": 5487, + "id": 5489, "nodeType": "Block", - "src": "6600:183:12", + "src": "6631:183:12", "statements": [ { "expression": { "argumentTypes": null, - "id": 5480, + "id": 5482, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 5475, + "id": 5477, "name": "marketFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5455, - "src": "6614:9:12", + "referencedDeclaration": 5457, + "src": "6645:9:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -11369,12 +11461,12 @@ "arguments": [ { "argumentTypes": null, - "id": 5477, + "id": 5479, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5447, - "src": "6656:6:12", + "referencedDeclaration": 5449, + "src": "6687:6:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -11382,12 +11474,12 @@ }, { "argumentTypes": null, - "id": 5478, + "id": 5480, "name": "BASE_MARKET_FEE_PERCENTAGE", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5223, - "src": "6681:26:12", + "src": "6712:26:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -11405,18 +11497,18 @@ "typeString": "uint256" } ], - "id": 5476, + "id": 5478, "name": "calculateFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5693, - "src": "6626:12:12", + "referencedDeclaration": 5697, + "src": "6657:12:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 5479, + "id": 5481, "isConstant": false, "isLValue": false, "isPure": false, @@ -11424,21 +11516,21 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6626:95:12", + "src": "6657:95:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "6614:107:12", + "src": "6645:107:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 5481, + "id": 5483, "nodeType": "ExpressionStatement", - "src": "6614:107:12" + "src": "6645:107:12" }, { "expression": { @@ -11446,12 +11538,12 @@ "arguments": [ { "argumentTypes": null, - "id": 5483, + "id": 5485, "name": "mrktFeeCollector", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5451, - "src": "6744:16:12", + "referencedDeclaration": 5453, + "src": "6775:16:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -11459,12 +11551,12 @@ }, { "argumentTypes": null, - "id": 5484, + "id": 5486, "name": "marketFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5455, - "src": "6762:9:12", + "referencedDeclaration": 5457, + "src": "6793:9:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -11482,18 +11574,18 @@ "typeString": "uint256" } ], - "id": 5482, + "id": 5484, "name": "transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6117, - "src": "6735:8:12", + "referencedDeclaration": 6121, + "src": "6766:8:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$_t_bool_$", "typeString": "function (address,uint256) returns (bool)" } }, - "id": 5485, + "id": 5487, "isConstant": false, "isLValue": false, "isPure": false, @@ -11501,31 +11593,31 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6735:37:12", + "src": "6766:37:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, - "id": 5486, + "id": 5488, "nodeType": "ExpressionStatement", - "src": "6735:37:12" + "src": "6766:37:12" } ] } }, { "assignments": [ - 5490 + 5492 ], "declarations": [ { "constant": false, - "id": 5490, + "id": 5492, "name": "totalFee", "nodeType": "VariableDeclaration", - "scope": 5515, - "src": "6792:16:12", + "scope": 5517, + "src": "6823:16:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -11533,10 +11625,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5489, + "id": 5491, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "6792:7:12", + "src": "6823:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -11546,18 +11638,18 @@ "visibility": "internal" } ], - "id": 5495, + "id": 5497, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 5493, + "id": 5495, "name": "marketFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5455, - "src": "6828:9:12", + "referencedDeclaration": 5457, + "src": "6859:9:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -11573,32 +11665,32 @@ ], "expression": { "argumentTypes": null, - "id": 5491, + "id": 5493, "name": "communityFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5459, - "src": "6811:12:12", + "referencedDeclaration": 5461, + "src": "6842:12:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 5492, + "id": 5494, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "add", "nodeType": "MemberAccess", - "referencedDeclaration": 5776, - "src": "6811:16:12", + "referencedDeclaration": 5780, + "src": "6842:16:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 5494, + "id": 5496, "isConstant": false, "isLValue": false, "isPure": false, @@ -11606,14 +11698,14 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6811:27:12", + "src": "6842:27:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", - "src": "6792:46:12" + "src": "6823:46:12" }, { "expression": { @@ -11621,12 +11713,12 @@ "arguments": [ { "argumentTypes": null, - "id": 5497, + "id": 5499, "name": "_minter", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5206, - "src": "6857:7:12", + "src": "6888:7:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -11637,12 +11729,12 @@ "arguments": [ { "argumentTypes": null, - "id": 5500, + "id": 5502, "name": "totalFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5490, - "src": "6877:8:12", + "referencedDeclaration": 5492, + "src": "6908:8:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -11658,32 +11750,32 @@ ], "expression": { "argumentTypes": null, - "id": 5498, + "id": 5500, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5447, - "src": "6866:6:12", + "referencedDeclaration": 5449, + "src": "6897:6:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 5499, + "id": 5501, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sub", "nodeType": "MemberAccess", - "referencedDeclaration": 5792, - "src": "6866:10:12", + "referencedDeclaration": 5796, + "src": "6897:10:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 5501, + "id": 5503, "isConstant": false, "isLValue": false, "isPure": false, @@ -11691,7 +11783,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6866:20:12", + "src": "6897:20:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -11709,18 +11801,18 @@ "typeString": "uint256" } ], - "id": 5496, + "id": 5498, "name": "transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6117, - "src": "6848:8:12", + "referencedDeclaration": 6121, + "src": "6879:8:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$_t_bool_$", "typeString": "function (address,uint256) returns (bool)" } }, - "id": 5502, + "id": 5504, "isConstant": false, "isLValue": false, "isPure": false, @@ -11728,15 +11820,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6848:39:12", + "src": "6879:39:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, - "id": 5503, + "id": 5505, "nodeType": "ExpressionStatement", - "src": "6848:39:12" + "src": "6879:39:12" }, { "eventCall": { @@ -11746,18 +11838,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 5505, + "id": 5507, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, - "src": "6929:3:12", + "referencedDeclaration": 6547, + "src": "6960:3:12", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 5506, + "id": 5508, "isConstant": false, "isLValue": false, "isPure": false, @@ -11765,7 +11857,7 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "6929:10:12", + "src": "6960:10:12", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -11773,12 +11865,12 @@ }, { "argumentTypes": null, - "id": 5507, + "id": 5509, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5447, - "src": "6953:6:12", + "referencedDeclaration": 5449, + "src": "6984:6:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -11786,12 +11878,12 @@ }, { "argumentTypes": null, - "id": 5508, + "id": 5510, "name": "serviceId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5449, - "src": "6973:9:12", + "referencedDeclaration": 5451, + "src": "7004:9:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -11801,26 +11893,26 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 5509, + "id": 5511, "name": "block", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6533, - "src": "6996:5:12", + "referencedDeclaration": 6537, + "src": "7027:5:12", "typeDescriptions": { "typeIdentifier": "t_magic_block", "typeString": "block" } }, - "id": 5510, + "id": 5512, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, - "memberName": "number", + "memberName": "timestamp", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "6996:12:12", + "src": "7027:15:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -11828,12 +11920,12 @@ }, { "argumentTypes": null, - "id": 5511, + "id": 5513, "name": "mrktFeeCollector", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5451, - "src": "7022:16:12", + "referencedDeclaration": 5453, + "src": "7056:16:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -11841,12 +11933,12 @@ }, { "argumentTypes": null, - "id": 5512, + "id": 5514, "name": "marketFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5455, - "src": "7052:9:12", + "referencedDeclaration": 5457, + "src": "7086:9:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -11880,18 +11972,18 @@ "typeString": "uint256" } ], - "id": 5504, + "id": 5506, "name": "OrderStarted", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5237, - "src": "6903:12:12", + "src": "6934:12:12", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_uint256_$_t_uint256_$_t_uint256_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,uint256,uint256,uint256,address,uint256)" } }, - "id": 5513, + "id": 5515, "isConstant": false, "isLValue": false, "isPure": false, @@ -11899,36 +11991,36 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6903:168:12", + "src": "6934:171:12", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 5514, + "id": 5516, "nodeType": "EmitStatement", - "src": "6898:173:12" + "src": "6929:176:12" } ] }, "documentation": "@dev startOrder\n called by consumer prior ordering a service consume on a marketplace\n@param amount refers to amount of tokens that is going to be transfered.\n@param serviceId service index in the metadata\n@param mrktFeeCollector marketplace fee collector", - "id": 5516, + "id": 5518, "implemented": true, "kind": "function", "modifiers": [], "name": "startOrder", "nodeType": "FunctionDefinition", "parameters": { - "id": 5452, + "id": 5454, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5447, + "id": 5449, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 5516, - "src": "6247:14:12", + "scope": 5518, + "src": "6278:14:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -11936,10 +12028,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5446, + "id": 5448, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "6247:7:12", + "src": "6278:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -11950,11 +12042,11 @@ }, { "constant": false, - "id": 5449, + "id": 5451, "name": "serviceId", "nodeType": "VariableDeclaration", - "scope": 5516, - "src": "6271:17:12", + "scope": 5518, + "src": "6302:17:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -11962,10 +12054,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5448, + "id": 5450, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "6271:7:12", + "src": "6302:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -11976,11 +12068,11 @@ }, { "constant": false, - "id": 5451, + "id": 5453, "name": "mrktFeeCollector", "nodeType": "VariableDeclaration", - "scope": 5516, - "src": "6298:24:12", + "scope": 5518, + "src": "6329:24:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -11988,10 +12080,10 @@ "typeString": "address" }, "typeName": { - "id": 5450, + "id": 5452, "name": "address", "nodeType": "ElementaryTypeName", - "src": "6298:7:12", + "src": "6329:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -12002,25 +12094,25 @@ "visibility": "internal" } ], - "src": "6237:91:12" + "src": "6268:91:12" }, "returnParameters": { - "id": 5453, + "id": 5455, "nodeType": "ParameterList", "parameters": [], - "src": "6350:0:12" + "src": "6381:0:12" }, - "scope": 5694, - "src": "6218:860:12", + "scope": 5698, + "src": "6249:863:12", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": { - "id": 5548, + "id": 5552, "nodeType": "Block", - "src": "7731:331:12", + "src": "7765:360:12", "statements": [ { "condition": { @@ -12029,19 +12121,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5529, + "id": 5531, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5527, + "id": 5529, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5522, - "src": "7746:6:12", + "referencedDeclaration": 5524, + "src": "7780:6:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -12052,14 +12144,14 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 5528, + "id": 5530, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "7756:1:12", + "src": "7790:1:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -12067,16 +12159,16 @@ }, "value": "0" }, - "src": "7746:11:12", + "src": "7780:11:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, - "id": 5538, + "id": 5540, "nodeType": "IfStatement", - "src": "7741:159:12", + "src": "7775:159:12", "trueBody": { "expression": { "argumentTypes": null, @@ -12086,12 +12178,12 @@ "arguments": [ { "argumentTypes": null, - "id": 5532, + "id": 5534, "name": "consumer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5520, - "src": "7808:8:12", + "referencedDeclaration": 5522, + "src": "7842:8:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -12099,12 +12191,12 @@ }, { "argumentTypes": null, - "id": 5533, + "id": 5535, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5522, - "src": "7818:6:12", + "referencedDeclaration": 5524, + "src": "7852:6:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -12122,18 +12214,18 @@ "typeString": "uint256" } ], - "id": 5531, + "id": 5533, "name": "transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6117, - "src": "7799:8:12", + "referencedDeclaration": 6121, + "src": "7833:8:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$_t_bool_$", "typeString": "function (address,uint256) returns (bool)" } }, - "id": 5534, + "id": 5536, "isConstant": false, "isLValue": false, "isPure": false, @@ -12141,7 +12233,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "7799:26:12", + "src": "7833:26:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -12150,14 +12242,14 @@ { "argumentTypes": null, "hexValue": "44617461546f6b656e54656d706c6174653a206661696c656420746f2066696e697368206f72646572", - "id": 5535, + "id": 5537, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "7843:43:12", + "src": "7877:43:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_5beb845327406b92f3857bb14436e4b6862cb87998aca33ed8309c1bf98b5e76", @@ -12177,21 +12269,21 @@ "typeString": "literal_string \"DataTokenTemplate: failed to finish order\"" } ], - "id": 5530, + "id": 5532, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, - "src": "7774:7:12", + "referencedDeclaration": 6551, + "src": "7808:7:12", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5536, + "id": 5538, "isConstant": false, "isLValue": false, "isPure": false, @@ -12199,15 +12291,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "7774:126:12", + "src": "7808:126:12", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 5537, + "id": 5539, "nodeType": "ExpressionStatement", - "src": "7774:126:12" + "src": "7808:126:12" } }, { @@ -12216,12 +12308,12 @@ "arguments": [ { "argumentTypes": null, - "id": 5540, + "id": 5542, "name": "orderTxId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5518, - "src": "7943:9:12", + "referencedDeclaration": 5520, + "src": "7977:9:12", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" @@ -12229,12 +12321,12 @@ }, { "argumentTypes": null, - "id": 5541, + "id": 5543, "name": "consumer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5520, - "src": "7967:8:12", + "referencedDeclaration": 5522, + "src": "8001:8:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -12242,12 +12334,12 @@ }, { "argumentTypes": null, - "id": 5542, + "id": 5544, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5522, - "src": "7990:6:12", + "referencedDeclaration": 5524, + "src": "8024:6:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -12255,12 +12347,12 @@ }, { "argumentTypes": null, - "id": 5543, + "id": 5545, "name": "serviceId", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5524, - "src": "8011:9:12", + "referencedDeclaration": 5526, + "src": "8045:9:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -12270,18 +12362,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 5544, + "id": 5546, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, - "src": "8035:3:12", + "referencedDeclaration": 6547, + "src": "8069:3:12", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 5545, + "id": 5547, "isConstant": false, "isLValue": false, "isPure": false, @@ -12289,11 +12381,40 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "8035:10:12", + "src": "8069:10:12", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "id": 5548, + "name": "block", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 6537, + "src": "8093:5:12", + "typeDescriptions": { + "typeIdentifier": "t_magic_block", + "typeString": "block" + } + }, + "id": 5549, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "timestamp", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "8093:15:12", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } } ], "expression": { @@ -12317,20 +12438,24 @@ { "typeIdentifier": "t_address_payable", "typeString": "address payable" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" } ], - "id": 5539, + "id": 5541, "name": "OrderFinished", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5249, - "src": "7916:13:12", + "referencedDeclaration": 5251, + "src": "7950:13:12", "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_bytes32_$_t_address_$_t_uint256_$_t_uint256_$_t_address_$returns$__$", - "typeString": "function (bytes32,address,uint256,uint256,address)" + "typeIdentifier": "t_function_event_nonpayable$_t_bytes32_$_t_address_$_t_uint256_$_t_uint256_$_t_address_$_t_uint256_$returns$__$", + "typeString": "function (bytes32,address,uint256,uint256,address,uint256)" } }, - "id": 5546, + "id": 5550, "isConstant": false, "isLValue": false, "isPure": false, @@ -12338,36 +12463,36 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "7916:139:12", + "src": "7950:168:12", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 5547, + "id": 5551, "nodeType": "EmitStatement", - "src": "7911:144:12" + "src": "7945:173:12" } ] }, "documentation": "@dev finishOrder\n called by provider prior completing service delivery only\n if there is a partial or full refund.\n@param orderTxId refers to the transaction Id of startOrder acts \n as a payment reference.\n@param consumer refers to an address that has consumed that service.\n@param amount refers to amount of tokens that is going to be transfered.\n@param serviceId service index in the metadata.", - "id": 5549, + "id": 5553, "implemented": true, "kind": "function", "modifiers": [], "name": "finishOrder", "nodeType": "FunctionDefinition", "parameters": { - "id": 5525, + "id": 5527, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5518, + "id": 5520, "name": "orderTxId", "nodeType": "VariableDeclaration", - "scope": 5549, - "src": "7607:17:12", + "scope": 5553, + "src": "7641:17:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -12375,10 +12500,10 @@ "typeString": "bytes32" }, "typeName": { - "id": 5517, + "id": 5519, "name": "bytes32", "nodeType": "ElementaryTypeName", - "src": "7607:7:12", + "src": "7641:7:12", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" @@ -12389,11 +12514,11 @@ }, { "constant": false, - "id": 5520, + "id": 5522, "name": "consumer", "nodeType": "VariableDeclaration", - "scope": 5549, - "src": "7635:16:12", + "scope": 5553, + "src": "7669:16:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -12401,10 +12526,10 @@ "typeString": "address" }, "typeName": { - "id": 5519, + "id": 5521, "name": "address", "nodeType": "ElementaryTypeName", - "src": "7635:7:12", + "src": "7669:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -12416,11 +12541,11 @@ }, { "constant": false, - "id": 5522, + "id": 5524, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 5549, - "src": "7662:14:12", + "scope": 5553, + "src": "7696:14:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -12428,10 +12553,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5521, + "id": 5523, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "7662:7:12", + "src": "7696:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -12442,11 +12567,11 @@ }, { "constant": false, - "id": 5524, + "id": 5526, "name": "serviceId", "nodeType": "VariableDeclaration", - "scope": 5549, - "src": "7686:17:12", + "scope": 5553, + "src": "7720:17:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -12454,10 +12579,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5523, + "id": 5525, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "7686:7:12", + "src": "7720:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -12467,42 +12592,42 @@ "visibility": "internal" } ], - "src": "7597:112:12" + "src": "7631:112:12" }, "returnParameters": { - "id": 5526, + "id": 5528, "nodeType": "ParameterList", "parameters": [], - "src": "7731:0:12" + "src": "7765:0:12" }, - "scope": 5694, - "src": "7577:485:12", + "scope": 5698, + "src": "7611:514:12", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": { - "id": 5566, + "id": 5570, "nodeType": "Block", - "src": "8358:136:12", + "src": "8421:136:12", "statements": [ { "expression": { "argumentTypes": null, - "id": 5558, + "id": 5562, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 5556, + "id": 5560, "name": "_proposedMinter", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5208, - "src": "8368:15:12", + "src": "8431:15:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -12512,26 +12637,26 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 5557, + "id": 5561, "name": "newMinter", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5551, - "src": "8386:9:12", + "referencedDeclaration": 5555, + "src": "8449:9:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "8368:27:12", + "src": "8431:27:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "id": 5559, + "id": 5563, "nodeType": "ExpressionStatement", - "src": "8368:27:12" + "src": "8431:27:12" }, { "eventCall": { @@ -12541,18 +12666,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 5561, + "id": 5565, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, - "src": "8438:3:12", + "referencedDeclaration": 6547, + "src": "8501:3:12", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 5562, + "id": 5566, "isConstant": false, "isLValue": false, "isPure": false, @@ -12560,7 +12685,7 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "8438:10:12", + "src": "8501:10:12", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -12568,12 +12693,12 @@ }, { "argumentTypes": null, - "id": 5563, + "id": 5567, "name": "_proposedMinter", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5208, - "src": "8462:15:12", + "src": "8525:15:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -12591,18 +12716,18 @@ "typeString": "address" } ], - "id": 5560, + "id": 5564, "name": "MinterProposed", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5255, - "src": "8410:14:12", + "referencedDeclaration": 5257, + "src": "8473:14:12", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$", "typeString": "function (address,address)" } }, - "id": 5564, + "id": 5568, "isConstant": false, "isLValue": false, "isPure": false, @@ -12610,56 +12735,56 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "8410:77:12", + "src": "8473:77:12", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 5565, + "id": 5569, "nodeType": "EmitStatement", - "src": "8405:82:12" + "src": "8468:82:12" } ] }, "documentation": "@dev proposeMinter\n It proposes a new token minter address.\n Only the current minter can call it.\n@param newMinter refers to a new token minter address.", - "id": 5567, + "id": 5571, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, - "id": 5554, + "id": 5558, "modifierName": { "argumentTypes": null, - "id": 5553, + "id": 5557, "name": "onlyMinter", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5283, - "src": "8342:10:12", + "referencedDeclaration": 5285, + "src": "8405:10:12", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "8342:10:12" + "src": "8405:10:12" } ], "name": "proposeMinter", "nodeType": "FunctionDefinition", "parameters": { - "id": 5552, + "id": 5556, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5551, + "id": 5555, "name": "newMinter", "nodeType": "VariableDeclaration", - "scope": 5567, - "src": "8296:17:12", + "scope": 5571, + "src": "8359:17:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -12667,10 +12792,10 @@ "typeString": "address" }, "typeName": { - "id": 5550, + "id": 5554, "name": "address", "nodeType": "ElementaryTypeName", - "src": "8296:7:12", + "src": "8359:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -12681,25 +12806,25 @@ "visibility": "internal" } ], - "src": "8295:19:12" + "src": "8358:19:12" }, "returnParameters": { - "id": 5555, + "id": 5559, "nodeType": "ParameterList", "parameters": [], - "src": "8358:0:12" + "src": "8421:0:12" }, - "scope": 5694, - "src": "8273:221:12", + "scope": 5698, + "src": "8336:221:12", "stateMutability": "nonpayable", "superFunction": 5085, "visibility": "external" }, { "body": { - "id": 5593, + "id": 5597, "nodeType": "Block", - "src": "8689:305:12", + "src": "8752:305:12", "statements": [ { "expression": { @@ -12711,7 +12836,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 5574, + "id": 5578, "isConstant": false, "isLValue": false, "isPure": false, @@ -12720,18 +12845,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 5571, + "id": 5575, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, - "src": "8720:3:12", + "referencedDeclaration": 6547, + "src": "8783:3:12", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 5572, + "id": 5576, "isConstant": false, "isLValue": false, "isPure": false, @@ -12739,7 +12864,7 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "8720:10:12", + "src": "8783:10:12", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -12749,18 +12874,18 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 5573, + "id": 5577, "name": "_proposedMinter", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5208, - "src": "8734:15:12", + "src": "8797:15:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "8720:29:12", + "src": "8783:29:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -12769,14 +12894,14 @@ { "argumentTypes": null, "hexValue": "44617461546f6b656e54656d706c6174653a20696e76616c69642070726f706f736564206d696e7465722061646472657373", - "id": 5575, + "id": 5579, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "8763:52:12", + "src": "8826:52:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_7af8769e1ae364fd1070260138caf964484121753b4fb103f09e0f3de065c059", @@ -12796,21 +12921,21 @@ "typeString": "literal_string \"DataTokenTemplate: invalid proposed minter address\"" } ], - "id": 5570, + "id": 5574, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, - "src": "8699:7:12", + "referencedDeclaration": 6551, + "src": "8762:7:12", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5576, + "id": 5580, "isConstant": false, "isLValue": false, "isPure": false, @@ -12818,15 +12943,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "8699:126:12", + "src": "8762:126:12", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 5577, + "id": 5581, "nodeType": "ExpressionStatement", - "src": "8699:126:12" + "src": "8762:126:12" }, { "eventCall": { @@ -12834,12 +12959,12 @@ "arguments": [ { "argumentTypes": null, - "id": 5579, + "id": 5583, "name": "_minter", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5206, - "src": "8868:7:12", + "src": "8931:7:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -12847,12 +12972,12 @@ }, { "argumentTypes": null, - "id": 5580, + "id": 5584, "name": "_proposedMinter", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5208, - "src": "8889:15:12", + "src": "8952:15:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -12870,18 +12995,18 @@ "typeString": "address" } ], - "id": 5578, + "id": 5582, "name": "MinterApproved", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5261, - "src": "8840:14:12", + "referencedDeclaration": 5263, + "src": "8903:14:12", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$", "typeString": "function (address,address)" } }, - "id": 5581, + "id": 5585, "isConstant": false, "isLValue": false, "isPure": false, @@ -12889,32 +13014,32 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "8840:74:12", + "src": "8903:74:12", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 5582, + "id": 5586, "nodeType": "EmitStatement", - "src": "8835:79:12" + "src": "8898:79:12" }, { "expression": { "argumentTypes": null, - "id": 5585, + "id": 5589, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 5583, + "id": 5587, "name": "_minter", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5206, - "src": "8924:7:12", + "src": "8987:7:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -12924,43 +13049,43 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 5584, + "id": 5588, "name": "_proposedMinter", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5208, - "src": "8934:15:12", + "src": "8997:15:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "8924:25:12", + "src": "8987:25:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "id": 5586, + "id": 5590, "nodeType": "ExpressionStatement", - "src": "8924:25:12" + "src": "8987:25:12" }, { "expression": { "argumentTypes": null, - "id": 5591, + "id": 5595, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 5587, + "id": 5591, "name": "_proposedMinter", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5208, - "src": "8959:15:12", + "src": "9022:15:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -12974,14 +13099,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 5589, + "id": 5593, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "8985:1:12", + "src": "9048:1:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -12997,20 +13122,20 @@ "typeString": "int_const 0" } ], - "id": 5588, + "id": 5592, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "8977:7:12", + "src": "9040:7:12", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 5590, + "id": 5594, "isConstant": false, "isLValue": false, "isPure": true, @@ -13018,100 +13143,100 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "8977:10:12", + "src": "9040:10:12", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, - "src": "8959:28:12", + "src": "9022:28:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "id": 5592, + "id": 5596, "nodeType": "ExpressionStatement", - "src": "8959:28:12" + "src": "9022:28:12" } ] }, "documentation": "@dev approveMinter\n It approves a new token minter address.\n Only the current minter can call it.", - "id": 5594, + "id": 5598, "implemented": true, "kind": "function", "modifiers": [], "name": "approveMinter", "nodeType": "FunctionDefinition", "parameters": { - "id": 5568, + "id": 5572, "nodeType": "ParameterList", "parameters": [], - "src": "8665:2:12" + "src": "8728:2:12" }, "returnParameters": { - "id": 5569, + "id": 5573, "nodeType": "ParameterList", "parameters": [], - "src": "8689:0:12" + "src": "8752:0:12" }, - "scope": 5694, - "src": "8643:351:12", + "scope": 5698, + "src": "8706:351:12", "stateMutability": "nonpayable", "superFunction": 5088, "visibility": "external" }, { "body": { - "id": 5601, + "id": 5605, "nodeType": "Block", - "src": "9156:29:12", + "src": "9219:29:12", "statements": [ { "expression": { "argumentTypes": null, - "id": 5599, + "id": 5603, "name": "_name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5190, - "src": "9173:5:12", + "src": "9236:5:12", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, - "functionReturnParameters": 5598, - "id": 5600, + "functionReturnParameters": 5602, + "id": 5604, "nodeType": "Return", - "src": "9166:12:12" + "src": "9229:12:12" } ] }, "documentation": "@dev name\n It returns the token name.\n@return DataToken name.", - "id": 5602, + "id": 5606, "implemented": true, "kind": "function", "modifiers": [], "name": "name", "nodeType": "FunctionDefinition", "parameters": { - "id": 5595, + "id": 5599, "nodeType": "ParameterList", "parameters": [], - "src": "9116:2:12" + "src": "9179:2:12" }, "returnParameters": { - "id": 5598, + "id": 5602, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5597, + "id": 5601, "name": "", "nodeType": "VariableDeclaration", - "scope": 5602, - "src": "9141:13:12", + "scope": 5606, + "src": "9204:13:12", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { @@ -13119,10 +13244,10 @@ "typeString": "string" }, "typeName": { - "id": 5596, + "id": 5600, "name": "string", "nodeType": "ElementaryTypeName", - "src": "9141:6:12", + "src": "9204:6:12", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -13132,65 +13257,65 @@ "visibility": "internal" } ], - "src": "9140:15:12" + "src": "9203:15:12" }, - "scope": 5694, - "src": "9103:82:12", + "scope": 5698, + "src": "9166:82:12", "stateMutability": "view", "superFunction": 5017, "visibility": "external" }, { "body": { - "id": 5609, + "id": 5613, "nodeType": "Block", - "src": "9355:31:12", + "src": "9418:31:12", "statements": [ { "expression": { "argumentTypes": null, - "id": 5607, + "id": 5611, "name": "_symbol", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5192, - "src": "9372:7:12", + "src": "9435:7:12", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, - "functionReturnParameters": 5606, - "id": 5608, + "functionReturnParameters": 5610, + "id": 5612, "nodeType": "Return", - "src": "9365:14:12" + "src": "9428:14:12" } ] }, "documentation": "@dev symbol\n It returns the token symbol.\n@return DataToken symbol.", - "id": 5610, + "id": 5614, "implemented": true, "kind": "function", "modifiers": [], "name": "symbol", "nodeType": "FunctionDefinition", "parameters": { - "id": 5603, + "id": 5607, "nodeType": "ParameterList", "parameters": [], - "src": "9315:2:12" + "src": "9378:2:12" }, "returnParameters": { - "id": 5606, + "id": 5610, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5605, + "id": 5609, "name": "", "nodeType": "VariableDeclaration", - "scope": 5610, - "src": "9340:13:12", + "scope": 5614, + "src": "9403:13:12", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { @@ -13198,10 +13323,10 @@ "typeString": "string" }, "typeName": { - "id": 5604, + "id": 5608, "name": "string", "nodeType": "ElementaryTypeName", - "src": "9340:6:12", + "src": "9403:6:12", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -13211,65 +13336,65 @@ "visibility": "internal" } ], - "src": "9339:15:12" + "src": "9402:15:12" }, - "scope": 5694, - "src": "9300:86:12", + "scope": 5698, + "src": "9363:86:12", "stateMutability": "view", "superFunction": 5022, "visibility": "external" }, { "body": { - "id": 5617, + "id": 5621, "nodeType": "Block", - "src": "9564:29:12", + "src": "9627:29:12", "statements": [ { "expression": { "argumentTypes": null, - "id": 5615, + "id": 5619, "name": "_blob", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5194, - "src": "9581:5:12", + "src": "9644:5:12", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, - "functionReturnParameters": 5614, - "id": 5616, + "functionReturnParameters": 5618, + "id": 5620, "nodeType": "Return", - "src": "9574:12:12" + "src": "9637:12:12" } ] }, "documentation": "@dev blob\n It returns the blob (e.g https://123.com).\n@return DataToken blob.", - "id": 5618, + "id": 5622, "implemented": true, "kind": "function", "modifiers": [], "name": "blob", "nodeType": "FunctionDefinition", "parameters": { - "id": 5611, + "id": 5615, "nodeType": "ParameterList", "parameters": [], - "src": "9524:2:12" + "src": "9587:2:12" }, "returnParameters": { - "id": 5614, + "id": 5618, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5613, + "id": 5617, "name": "", "nodeType": "VariableDeclaration", - "scope": 5618, - "src": "9549:13:12", + "scope": 5622, + "src": "9612:13:12", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { @@ -13277,10 +13402,10 @@ "typeString": "string" }, "typeName": { - "id": 5612, + "id": 5616, "name": "string", "nodeType": "ElementaryTypeName", - "src": "9549:6:12", + "src": "9612:6:12", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -13290,65 +13415,65 @@ "visibility": "internal" } ], - "src": "9548:15:12" + "src": "9611:15:12" }, - "scope": 5694, - "src": "9511:82:12", + "scope": 5698, + "src": "9574:82:12", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": { - "id": 5625, + "id": 5629, "nodeType": "Block", - "src": "9809:33:12", + "src": "9872:33:12", "statements": [ { "expression": { "argumentTypes": null, - "id": 5623, + "id": 5627, "name": "_decimals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5199, - "src": "9826:9:12", + "src": "9889:9:12", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, - "functionReturnParameters": 5622, - "id": 5624, + "functionReturnParameters": 5626, + "id": 5628, "nodeType": "Return", - "src": "9819:16:12" + "src": "9882:16:12" } ] }, "documentation": "@dev decimals\n It returns the token decimals.\n how many supported decimal points\n@return DataToken decimals.", - "id": 5626, + "id": 5630, "implemented": true, "kind": "function", "modifiers": [], "name": "decimals", "nodeType": "FunctionDefinition", "parameters": { - "id": 5619, + "id": 5623, "nodeType": "ParameterList", "parameters": [], - "src": "9777:2:12" + "src": "9840:2:12" }, "returnParameters": { - "id": 5622, + "id": 5626, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5621, + "id": 5625, "name": "", "nodeType": "VariableDeclaration", - "scope": 5626, - "src": "9802:5:12", + "scope": 5630, + "src": "9865:5:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -13356,10 +13481,10 @@ "typeString": "uint8" }, "typeName": { - "id": 5620, + "id": 5624, "name": "uint8", "nodeType": "ElementaryTypeName", - "src": "9802:5:12", + "src": "9865:5:12", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" @@ -13369,65 +13494,65 @@ "visibility": "internal" } ], - "src": "9801:7:12" + "src": "9864:7:12" }, - "scope": 5694, - "src": "9760:82:12", + "scope": 5698, + "src": "9823:82:12", "stateMutability": "view", "superFunction": 5027, "visibility": "external" }, { "body": { - "id": 5633, + "id": 5637, "nodeType": "Block", - "src": "9993:28:12", + "src": "10056:28:12", "statements": [ { "expression": { "argumentTypes": null, - "id": 5631, + "id": 5635, "name": "_cap", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5196, - "src": "10010:4:12", + "src": "10073:4:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 5630, - "id": 5632, + "functionReturnParameters": 5634, + "id": 5636, "nodeType": "Return", - "src": "10003:11:12" + "src": "10066:11:12" } ] }, "documentation": "@dev cap\n it returns the capital.\n@return DataToken cap.", - "id": 5634, + "id": 5638, "implemented": true, "kind": "function", "modifiers": [], "name": "cap", "nodeType": "FunctionDefinition", "parameters": { - "id": 5627, + "id": 5631, "nodeType": "ParameterList", "parameters": [], - "src": "9958:2:12" + "src": "10021:2:12" }, "returnParameters": { - "id": 5630, + "id": 5634, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5629, + "id": 5633, "name": "", "nodeType": "VariableDeclaration", - "scope": 5634, - "src": "9984:7:12", + "scope": 5638, + "src": "10047:7:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -13435,10 +13560,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5628, + "id": 5632, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "9984:7:12", + "src": "10047:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -13448,19 +13573,19 @@ "visibility": "internal" } ], - "src": "9983:9:12" + "src": "10046:9:12" }, - "scope": 5694, - "src": "9946:75:12", + "scope": 5698, + "src": "10009:75:12", "stateMutability": "view", "superFunction": 5032, "visibility": "external" }, { "body": { - "id": 5646, + "id": 5650, "nodeType": "Block", - "src": "10296:44:12", + "src": "10359:44:12", "statements": [ { "expression": { @@ -13472,19 +13597,19 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 5643, + "id": 5647, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5641, + "id": 5645, "name": "_minter", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5206, - "src": "10314:7:12", + "src": "10377:7:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -13494,62 +13619,62 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 5642, + "id": 5646, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5636, - "src": "10325:7:12", + "referencedDeclaration": 5640, + "src": "10388:7:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "10314:18:12", + "src": "10377:18:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], - "id": 5644, + "id": 5648, "isConstant": false, "isInlineArray": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "TupleExpression", - "src": "10313:20:12", + "src": "10376:20:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, - "functionReturnParameters": 5640, - "id": 5645, + "functionReturnParameters": 5644, + "id": 5649, "nodeType": "Return", - "src": "10306:27:12" + "src": "10369:27:12" } ] }, "documentation": "@dev isMinter\n It takes the address and checks whether it has a minter role.\n@param account refers to the address.\n@return true if account has a minter role.", - "id": 5647, + "id": 5651, "implemented": true, "kind": "function", "modifiers": [], "name": "isMinter", "nodeType": "FunctionDefinition", "parameters": { - "id": 5637, + "id": 5641, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5636, + "id": 5640, "name": "account", "nodeType": "VariableDeclaration", - "scope": 5647, - "src": "10251:15:12", + "scope": 5651, + "src": "10314:15:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -13557,10 +13682,10 @@ "typeString": "address" }, "typeName": { - "id": 5635, + "id": 5639, "name": "address", "nodeType": "ElementaryTypeName", - "src": "10251:7:12", + "src": "10314:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -13571,19 +13696,19 @@ "visibility": "internal" } ], - "src": "10250:17:12" + "src": "10313:17:12" }, "returnParameters": { - "id": 5640, + "id": 5644, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5639, + "id": 5643, "name": "", "nodeType": "VariableDeclaration", - "scope": 5647, - "src": "10290:4:12", + "scope": 5651, + "src": "10353:4:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -13591,10 +13716,10 @@ "typeString": "bool" }, "typeName": { - "id": 5638, + "id": 5642, "name": "bool", "nodeType": "ElementaryTypeName", - "src": "10290:4:12", + "src": "10353:4:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -13604,65 +13729,65 @@ "visibility": "internal" } ], - "src": "10289:6:12" + "src": "10352:6:12" }, - "scope": 5694, - "src": "10233:107:12", + "scope": 5698, + "src": "10296:107:12", "stateMutability": "view", "superFunction": 5039, "visibility": "external" }, { "body": { - "id": 5654, + "id": 5658, "nodeType": "Block", - "src": "10493:31:12", + "src": "10556:31:12", "statements": [ { "expression": { "argumentTypes": null, - "id": 5652, + "id": 5656, "name": "_minter", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5206, - "src": "10510:7:12", + "src": "10573:7:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "functionReturnParameters": 5651, - "id": 5653, + "functionReturnParameters": 5655, + "id": 5657, "nodeType": "Return", - "src": "10503:14:12" + "src": "10566:14:12" } ] }, "documentation": "@dev minter\n@return minter's address.", - "id": 5655, + "id": 5659, "implemented": true, "kind": "function", "modifiers": [], "name": "minter", "nodeType": "FunctionDefinition", "parameters": { - "id": 5648, + "id": 5652, "nodeType": "ParameterList", "parameters": [], - "src": "10430:2:12" + "src": "10493:2:12" }, "returnParameters": { - "id": 5651, + "id": 5655, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5650, + "id": 5654, "name": "", "nodeType": "VariableDeclaration", - "scope": 5655, - "src": "10480:7:12", + "scope": 5659, + "src": "10543:7:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -13670,10 +13795,10 @@ "typeString": "address" }, "typeName": { - "id": 5649, + "id": 5653, "name": "address", "nodeType": "ElementaryTypeName", - "src": "10480:7:12", + "src": "10543:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -13684,65 +13809,65 @@ "visibility": "internal" } ], - "src": "10479:9:12" + "src": "10542:9:12" }, - "scope": 5694, - "src": "10415:109:12", + "scope": 5698, + "src": "10478:109:12", "stateMutability": "view", "superFunction": 5012, "visibility": "external" }, { "body": { - "id": 5662, + "id": 5666, "nodeType": "Block", - "src": "10737:35:12", + "src": "10800:35:12", "statements": [ { "expression": { "argumentTypes": null, - "id": 5660, + "id": 5664, "name": "initialized", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5204, - "src": "10754:11:12", + "src": "10817:11:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, - "functionReturnParameters": 5659, - "id": 5661, + "functionReturnParameters": 5663, + "id": 5665, "nodeType": "Return", - "src": "10747:18:12" + "src": "10810:18:12" } ] }, "documentation": "@dev isInitialized\n It checks whether the contract is initialized.\n@return true if the contract is initialized.", - "id": 5663, + "id": 5667, "implemented": true, "kind": "function", "modifiers": [], "name": "isInitialized", "nodeType": "FunctionDefinition", "parameters": { - "id": 5656, + "id": 5660, "nodeType": "ParameterList", "parameters": [], - "src": "10706:2:12" + "src": "10769:2:12" }, "returnParameters": { - "id": 5659, + "id": 5663, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5658, + "id": 5662, "name": "", "nodeType": "VariableDeclaration", - "scope": 5663, - "src": "10731:4:12", + "scope": 5667, + "src": "10794:4:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -13750,10 +13875,10 @@ "typeString": "bool" }, "typeName": { - "id": 5657, + "id": 5661, "name": "bool", "nodeType": "ElementaryTypeName", - "src": "10731:4:12", + "src": "10794:4:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -13763,19 +13888,19 @@ "visibility": "internal" } ], - "src": "10730:6:12" + "src": "10793:6:12" }, - "scope": 5694, - "src": "10684:88:12", + "scope": 5698, + "src": "10747:88:12", "stateMutability": "view", "superFunction": 5044, "visibility": "external" }, { "body": { - "id": 5692, + "id": 5696, "nodeType": "Block", - "src": "11156:134:12", + "src": "11219:134:12", "statements": [ { "condition": { @@ -13784,19 +13909,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5674, + "id": 5678, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5672, + "id": 5676, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5665, - "src": "11169:6:12", + "referencedDeclaration": 5669, + "src": "11232:6:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -13807,14 +13932,14 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 5673, + "id": 5677, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "11179:1:12", + "src": "11242:1:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -13822,28 +13947,28 @@ }, "value": "0" }, - "src": "11169:11:12", + "src": "11232:11:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, - "id": 5677, + "id": 5681, "nodeType": "IfStatement", - "src": "11166:24:12", + "src": "11229:24:12", "trueBody": { "expression": { "argumentTypes": null, "hexValue": "30", - "id": 5675, + "id": 5679, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "11189:1:12", + "src": "11252:1:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -13851,10 +13976,10 @@ }, "value": "0" }, - "functionReturnParameters": 5671, - "id": 5676, + "functionReturnParameters": 5675, + "id": 5680, "nodeType": "Return", - "src": "11182:8:12" + "src": "11245:8:12" } }, { @@ -13864,19 +13989,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5680, + "id": 5684, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5678, + "id": 5682, "name": "feePercentage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5667, - "src": "11203:13:12", + "referencedDeclaration": 5671, + "src": "11266:13:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -13887,14 +14012,14 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 5679, + "id": 5683, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "11220:1:12", + "src": "11283:1:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -13902,28 +14027,28 @@ }, "value": "0" }, - "src": "11203:18:12", + "src": "11266:18:12", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, - "id": 5683, + "id": 5687, "nodeType": "IfStatement", - "src": "11200:31:12", + "src": "11263:31:12", "trueBody": { "expression": { "argumentTypes": null, "hexValue": "30", - "id": 5681, + "id": 5685, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "11230:1:12", + "src": "11293:1:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -13931,10 +14056,10 @@ }, "value": "0" }, - "functionReturnParameters": 5671, - "id": 5682, + "functionReturnParameters": 5675, + "id": 5686, "nodeType": "Return", - "src": "11223:8:12" + "src": "11286:8:12" } }, { @@ -13943,12 +14068,12 @@ "arguments": [ { "argumentTypes": null, - "id": 5689, + "id": 5693, "name": "BASE", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5213, - "src": "11278:4:12", + "src": "11341:4:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -13967,12 +14092,12 @@ "arguments": [ { "argumentTypes": null, - "id": 5686, + "id": 5690, "name": "feePercentage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5667, - "src": "11259:13:12", + "referencedDeclaration": 5671, + "src": "11322:13:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -13988,32 +14113,32 @@ ], "expression": { "argumentTypes": null, - "id": 5684, + "id": 5688, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5665, - "src": "11248:6:12", + "referencedDeclaration": 5669, + "src": "11311:6:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 5685, + "id": 5689, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "mul", "nodeType": "MemberAccess", - "referencedDeclaration": 5853, - "src": "11248:10:12", + "referencedDeclaration": 5857, + "src": "11311:10:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 5687, + "id": 5691, "isConstant": false, "isLValue": false, "isPure": false, @@ -14021,27 +14146,27 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "11248:25:12", + "src": "11311:25:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 5688, + "id": 5692, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "div", "nodeType": "MemberAccess", - "referencedDeclaration": 5869, - "src": "11248:29:12", + "referencedDeclaration": 5873, + "src": "11311:29:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 5690, + "id": 5694, "isConstant": false, "isLValue": false, "isPure": false, @@ -14049,37 +14174,37 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "11248:35:12", + "src": "11311:35:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 5671, - "id": 5691, + "functionReturnParameters": 5675, + "id": 5695, "nodeType": "Return", - "src": "11241:42:12" + "src": "11304:42:12" } ] }, "documentation": "@dev calculateFee\n giving a fee percentage, and amount it calculates the actual fee\n@param amount the amount of token\n@param feePercentage the fee percentage \n@return the token fee.", - "id": 5693, + "id": 5697, "implemented": true, "kind": "function", "modifiers": [], "name": "calculateFee", "nodeType": "FunctionDefinition", "parameters": { - "id": 5668, + "id": 5672, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5665, + "id": 5669, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 5693, - "src": "11047:14:12", + "scope": 5697, + "src": "11110:14:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -14087,10 +14212,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5664, + "id": 5668, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "11047:7:12", + "src": "11110:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -14101,11 +14226,11 @@ }, { "constant": false, - "id": 5667, + "id": 5671, "name": "feePercentage", "nodeType": "VariableDeclaration", - "scope": 5693, - "src": "11071:21:12", + "scope": 5697, + "src": "11134:21:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -14113,10 +14238,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5666, + "id": 5670, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "11071:7:12", + "src": "11134:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -14126,19 +14251,19 @@ "visibility": "internal" } ], - "src": "11037:61:12" + "src": "11100:61:12" }, "returnParameters": { - "id": 5671, + "id": 5675, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5670, + "id": 5674, "name": "", "nodeType": "VariableDeclaration", - "scope": 5693, - "src": "11143:7:12", + "scope": 5697, + "src": "11206:7:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -14146,10 +14271,10 @@ "typeString": "uint256" }, "typeName": { - "id": 5669, + "id": 5673, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "11143:7:12", + "src": "11206:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -14159,20 +14284,20 @@ "visibility": "internal" } ], - "src": "11142:9:12" + "src": "11205:9:12" }, - "scope": 5694, - "src": "11016:274:12", + "scope": 5698, + "src": "11079:274:12", "stateMutability": "pure", "superFunction": null, "visibility": "public" } ], - "scope": 5695, - "src": "488:10804:12" + "scope": 5699, + "src": "488:10867:12" } ], - "src": "0:11293:12" + "src": "0:11356:12" }, "compiler": { "name": "solc", @@ -14180,7 +14305,7 @@ }, "networks": {}, "schemaVersion": "3.2.4", - "updatedAt": "2020-10-01T09:28:54.474Z", + "updatedAt": "2020-10-01T15:18:05.184Z", "devdoc": { "details": "DataTokenTemplate is an ERC20 compliant token template Used by the factory contract as a bytecode reference to deploy new DataTokens.", "methods": { diff --git a/artifacts/Deployer.json b/artifacts/Deployer.json index 48c6eb171..b3b14f466 100644 --- a/artifacts/Deployer.json +++ b/artifacts/Deployer.json @@ -25,14 +25,14 @@ "absolutePath": "/Users/ahmedali/Desktop/work/ocean-contracts/contracts/utils/Deployer.sol", "exportedSymbols": { "Deployer": [ - 5722 + 5726 ] }, - "id": 5723, + "id": 5727, "nodeType": "SourceUnit", "nodes": [ { - "id": 5696, + "id": 5700, "literals": [ "solidity", "0.5", @@ -47,9 +47,9 @@ "contractKind": "contract", "documentation": "@title Deployer Contract\n@author Ocean Protocol Team\n * @dev Contract Deployer\n This contract allowes factory contract \n to deploy new contract instances using\n the same library pattern in solidity.\n the logic it self is deployed only once, but\n executed in the context of the new storage \n contract (new contract instance)", "fullyImplemented": true, - "id": 5722, + "id": 5726, "linearizedBaseContracts": [ - 5722 + 5726 ], "name": "Deployer", "nodeType": "ContractDefinition", @@ -57,20 +57,20 @@ { "anonymous": false, "documentation": null, - "id": 5700, + "id": 5704, "name": "InstanceDeployed", "nodeType": "EventDefinition", "parameters": { - "id": 5699, + "id": 5703, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5698, + "id": 5702, "indexed": false, "name": "instance", "nodeType": "VariableDeclaration", - "scope": 5700, + "scope": 5704, "src": "615:16:13", "stateVariable": false, "storageLocation": "default", @@ -79,7 +79,7 @@ "typeString": "address" }, "typeName": { - "id": 5697, + "id": 5701, "name": "address", "nodeType": "ElementaryTypeName", "src": "615:7:13", @@ -99,21 +99,21 @@ }, { "body": { - "id": 5720, + "id": 5724, "nodeType": "Block", "src": "912:862:13", "statements": [ { "assignments": [ - 5708 + 5712 ], "declarations": [ { "constant": false, - "id": 5708, + "id": 5712, "name": "targetBytes", "nodeType": "VariableDeclaration", - "scope": 5720, + "scope": 5724, "src": "922:19:13", "stateVariable": false, "storageLocation": "default", @@ -122,7 +122,7 @@ "typeString": "bytes20" }, "typeName": { - "id": 5707, + "id": 5711, "name": "bytes20", "nodeType": "ElementaryTypeName", "src": "922:7:13", @@ -135,17 +135,17 @@ "visibility": "internal" } ], - "id": 5712, + "id": 5716, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 5710, + "id": 5714, "name": "_logic", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5702, + "referencedDeclaration": 5706, "src": "952:6:13", "typeDescriptions": { "typeIdentifier": "t_address", @@ -160,7 +160,7 @@ "typeString": "address" } ], - "id": 5709, + "id": 5713, "isConstant": false, "isLValue": false, "isPure": true, @@ -173,7 +173,7 @@ }, "typeName": "bytes20" }, - "id": 5711, + "id": 5715, "isConstant": false, "isLValue": false, "isPure": false, @@ -194,7 +194,7 @@ "externalReferences": [ { "instance": { - "declaration": 5705, + "declaration": 5709, "isOffset": false, "isSlot": false, "src": "1674:8:13", @@ -203,7 +203,7 @@ }, { "targetBytes": { - "declaration": 5708, + "declaration": 5712, "isOffset": false, "isSlot": false, "src": "1548:11:13", @@ -211,7 +211,7 @@ } } ], - "id": 5713, + "id": 5717, "nodeType": "InlineAssembly", "operations": "{\n let clone := mload(0x40)\n mstore(clone, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)\n mstore(add(clone, 0x14), targetBytes)\n mstore(add(clone, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)\n instance := create(0, clone, 0x37)\n}", "src": "1375:356:13" @@ -225,11 +225,11 @@ "arguments": [ { "argumentTypes": null, - "id": 5716, + "id": 5720, "name": "instance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5705, + "referencedDeclaration": 5709, "src": "1757:8:13", "typeDescriptions": { "typeIdentifier": "t_address", @@ -244,7 +244,7 @@ "typeString": "address" } ], - "id": 5715, + "id": 5719, "isConstant": false, "isLValue": false, "isPure": true, @@ -257,7 +257,7 @@ }, "typeName": "address" }, - "id": 5717, + "id": 5721, "isConstant": false, "isLValue": false, "isPure": false, @@ -279,18 +279,18 @@ "typeString": "address" } ], - "id": 5714, + "id": 5718, "name": "InstanceDeployed", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5700, + "referencedDeclaration": 5704, "src": "1732:16:13", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$", "typeString": "function (address)" } }, - "id": 5718, + "id": 5722, "isConstant": false, "isLValue": false, "isPure": false, @@ -304,29 +304,29 @@ "typeString": "tuple()" } }, - "id": 5719, + "id": 5723, "nodeType": "EmitStatement", "src": "1727:40:13" } ] }, "documentation": "@dev deploy\n deploy new contract instance \n@param _logic the logic contract address\n@return address of the new instance", - "id": 5721, + "id": 5725, "implemented": true, "kind": "function", "modifiers": [], "name": "deploy", "nodeType": "FunctionDefinition", "parameters": { - "id": 5703, + "id": 5707, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5702, + "id": 5706, "name": "_logic", "nodeType": "VariableDeclaration", - "scope": 5721, + "scope": 5725, "src": "836:14:13", "stateVariable": false, "storageLocation": "default", @@ -335,7 +335,7 @@ "typeString": "address" }, "typeName": { - "id": 5701, + "id": 5705, "name": "address", "nodeType": "ElementaryTypeName", "src": "836:7:13", @@ -352,15 +352,15 @@ "src": "826:30:13" }, "returnParameters": { - "id": 5706, + "id": 5710, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5705, + "id": 5709, "name": "instance", "nodeType": "VariableDeclaration", - "scope": 5721, + "scope": 5725, "src": "889:16:13", "stateVariable": false, "storageLocation": "default", @@ -369,7 +369,7 @@ "typeString": "address" }, "typeName": { - "id": 5704, + "id": 5708, "name": "address", "nodeType": "ElementaryTypeName", "src": "889:7:13", @@ -385,14 +385,14 @@ ], "src": "888:18:13" }, - "scope": 5722, + "scope": 5726, "src": "811:963:13", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" } ], - "scope": 5723, + "scope": 5727, "src": "568:1208:13" } ], @@ -402,14 +402,14 @@ "absolutePath": "/Users/ahmedali/Desktop/work/ocean-contracts/contracts/utils/Deployer.sol", "exportedSymbols": { "Deployer": [ - 5722 + 5726 ] }, - "id": 5723, + "id": 5727, "nodeType": "SourceUnit", "nodes": [ { - "id": 5696, + "id": 5700, "literals": [ "solidity", "0.5", @@ -424,9 +424,9 @@ "contractKind": "contract", "documentation": "@title Deployer Contract\n@author Ocean Protocol Team\n * @dev Contract Deployer\n This contract allowes factory contract \n to deploy new contract instances using\n the same library pattern in solidity.\n the logic it self is deployed only once, but\n executed in the context of the new storage \n contract (new contract instance)", "fullyImplemented": true, - "id": 5722, + "id": 5726, "linearizedBaseContracts": [ - 5722 + 5726 ], "name": "Deployer", "nodeType": "ContractDefinition", @@ -434,20 +434,20 @@ { "anonymous": false, "documentation": null, - "id": 5700, + "id": 5704, "name": "InstanceDeployed", "nodeType": "EventDefinition", "parameters": { - "id": 5699, + "id": 5703, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5698, + "id": 5702, "indexed": false, "name": "instance", "nodeType": "VariableDeclaration", - "scope": 5700, + "scope": 5704, "src": "615:16:13", "stateVariable": false, "storageLocation": "default", @@ -456,7 +456,7 @@ "typeString": "address" }, "typeName": { - "id": 5697, + "id": 5701, "name": "address", "nodeType": "ElementaryTypeName", "src": "615:7:13", @@ -476,21 +476,21 @@ }, { "body": { - "id": 5720, + "id": 5724, "nodeType": "Block", "src": "912:862:13", "statements": [ { "assignments": [ - 5708 + 5712 ], "declarations": [ { "constant": false, - "id": 5708, + "id": 5712, "name": "targetBytes", "nodeType": "VariableDeclaration", - "scope": 5720, + "scope": 5724, "src": "922:19:13", "stateVariable": false, "storageLocation": "default", @@ -499,7 +499,7 @@ "typeString": "bytes20" }, "typeName": { - "id": 5707, + "id": 5711, "name": "bytes20", "nodeType": "ElementaryTypeName", "src": "922:7:13", @@ -512,17 +512,17 @@ "visibility": "internal" } ], - "id": 5712, + "id": 5716, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 5710, + "id": 5714, "name": "_logic", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5702, + "referencedDeclaration": 5706, "src": "952:6:13", "typeDescriptions": { "typeIdentifier": "t_address", @@ -537,7 +537,7 @@ "typeString": "address" } ], - "id": 5709, + "id": 5713, "isConstant": false, "isLValue": false, "isPure": true, @@ -550,7 +550,7 @@ }, "typeName": "bytes20" }, - "id": 5711, + "id": 5715, "isConstant": false, "isLValue": false, "isPure": false, @@ -571,7 +571,7 @@ "externalReferences": [ { "instance": { - "declaration": 5705, + "declaration": 5709, "isOffset": false, "isSlot": false, "src": "1674:8:13", @@ -580,7 +580,7 @@ }, { "targetBytes": { - "declaration": 5708, + "declaration": 5712, "isOffset": false, "isSlot": false, "src": "1548:11:13", @@ -588,7 +588,7 @@ } } ], - "id": 5713, + "id": 5717, "nodeType": "InlineAssembly", "operations": "{\n let clone := mload(0x40)\n mstore(clone, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)\n mstore(add(clone, 0x14), targetBytes)\n mstore(add(clone, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)\n instance := create(0, clone, 0x37)\n}", "src": "1375:356:13" @@ -602,11 +602,11 @@ "arguments": [ { "argumentTypes": null, - "id": 5716, + "id": 5720, "name": "instance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5705, + "referencedDeclaration": 5709, "src": "1757:8:13", "typeDescriptions": { "typeIdentifier": "t_address", @@ -621,7 +621,7 @@ "typeString": "address" } ], - "id": 5715, + "id": 5719, "isConstant": false, "isLValue": false, "isPure": true, @@ -634,7 +634,7 @@ }, "typeName": "address" }, - "id": 5717, + "id": 5721, "isConstant": false, "isLValue": false, "isPure": false, @@ -656,18 +656,18 @@ "typeString": "address" } ], - "id": 5714, + "id": 5718, "name": "InstanceDeployed", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5700, + "referencedDeclaration": 5704, "src": "1732:16:13", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$", "typeString": "function (address)" } }, - "id": 5718, + "id": 5722, "isConstant": false, "isLValue": false, "isPure": false, @@ -681,29 +681,29 @@ "typeString": "tuple()" } }, - "id": 5719, + "id": 5723, "nodeType": "EmitStatement", "src": "1727:40:13" } ] }, "documentation": "@dev deploy\n deploy new contract instance \n@param _logic the logic contract address\n@return address of the new instance", - "id": 5721, + "id": 5725, "implemented": true, "kind": "function", "modifiers": [], "name": "deploy", "nodeType": "FunctionDefinition", "parameters": { - "id": 5703, + "id": 5707, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5702, + "id": 5706, "name": "_logic", "nodeType": "VariableDeclaration", - "scope": 5721, + "scope": 5725, "src": "836:14:13", "stateVariable": false, "storageLocation": "default", @@ -712,7 +712,7 @@ "typeString": "address" }, "typeName": { - "id": 5701, + "id": 5705, "name": "address", "nodeType": "ElementaryTypeName", "src": "836:7:13", @@ -729,15 +729,15 @@ "src": "826:30:13" }, "returnParameters": { - "id": 5706, + "id": 5710, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5705, + "id": 5709, "name": "instance", "nodeType": "VariableDeclaration", - "scope": 5721, + "scope": 5725, "src": "889:16:13", "stateVariable": false, "storageLocation": "default", @@ -746,7 +746,7 @@ "typeString": "address" }, "typeName": { - "id": 5704, + "id": 5708, "name": "address", "nodeType": "ElementaryTypeName", "src": "889:7:13", @@ -762,14 +762,14 @@ ], "src": "888:18:13" }, - "scope": 5722, + "scope": 5726, "src": "811:963:13", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" } ], - "scope": 5723, + "scope": 5727, "src": "568:1208:13" } ], @@ -781,7 +781,7 @@ }, "networks": {}, "schemaVersion": "3.2.4", - "updatedAt": "2020-10-01T09:28:54.480Z", + "updatedAt": "2020-10-01T15:18:05.192Z", "devdoc": { "author": "Ocean Protocol Team", "details": "Contract Deployer This contract allowes factory contract to deploy new contract instances using the same library pattern in solidity. the logic it self is deployed only once, but executed in the context of the new storage contract (new contract instance)", diff --git a/artifacts/ERC20.json b/artifacts/ERC20.json index 7b31f2107..71a5f446a 100644 --- a/artifacts/ERC20.json +++ b/artifacts/ERC20.json @@ -232,14 +232,14 @@ "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol", "exportedSymbols": { "ERC20": [ - 6459 + 6463 ] }, - "id": 6460, + "id": 6464, "nodeType": "SourceUnit", "nodes": [ { - "id": 6056, + "id": 6060, "literals": [ "solidity", "^", @@ -252,10 +252,10 @@ { "absolutePath": "openzeppelin-solidity/contracts/GSN/Context.sol", "file": "../../GSN/Context.sol", - "id": 6057, + "id": 6061, "nodeType": "ImportDirective", - "scope": 6460, - "sourceUnit": 5750, + "scope": 6464, + "sourceUnit": 5754, "src": "25:31:17", "symbolAliases": [], "unitAlias": "" @@ -263,10 +263,10 @@ { "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol", "file": "./IERC20.sol", - "id": 6058, + "id": 6062, "nodeType": "ImportDirective", - "scope": 6460, - "sourceUnit": 6529, + "scope": 6464, + "sourceUnit": 6533, "src": "57:22:17", "symbolAliases": [], "unitAlias": "" @@ -274,10 +274,10 @@ { "absolutePath": "openzeppelin-solidity/contracts/math/SafeMath.sol", "file": "../../math/SafeMath.sol", - "id": 6059, + "id": 6063, "nodeType": "ImportDirective", - "scope": 6460, - "sourceUnit": 5937, + "scope": 6464, + "sourceUnit": 5941, "src": "80:33:17", "symbolAliases": [], "unitAlias": "" @@ -288,17 +288,17 @@ "arguments": null, "baseName": { "contractScope": null, - "id": 6060, + "id": 6064, "name": "Context", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 5749, + "referencedDeclaration": 5753, "src": "1286:7:17", "typeDescriptions": { - "typeIdentifier": "t_contract$_Context_$5749", + "typeIdentifier": "t_contract$_Context_$5753", "typeString": "contract Context" } }, - "id": 6061, + "id": 6065, "nodeType": "InheritanceSpecifier", "src": "1286:7:17" }, @@ -306,55 +306,55 @@ "arguments": null, "baseName": { "contractScope": null, - "id": 6062, + "id": 6066, "name": "IERC20", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 6528, + "referencedDeclaration": 6532, "src": "1295:6:17", "typeDescriptions": { - "typeIdentifier": "t_contract$_IERC20_$6528", + "typeIdentifier": "t_contract$_IERC20_$6532", "typeString": "contract IERC20" } }, - "id": 6063, + "id": 6067, "nodeType": "InheritanceSpecifier", "src": "1295:6:17" } ], "contractDependencies": [ - 5749, - 6528 + 5753, + 6532 ], "contractKind": "contract", "documentation": "@dev Implementation of the {IERC20} interface.\n * This implementation is agnostic to the way tokens are created. This means\nthat a supply mechanism has to be added in a derived contract using {_mint}.\nFor a generic mechanism see {ERC20Mintable}.\n * TIP: For a detailed writeup see our guide\nhttps://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How\nto implement supply mechanisms].\n * We have followed general OpenZeppelin guidelines: functions revert instead\nof returning `false` on failure. This behavior is nonetheless conventional\nand does not conflict with the expectations of ERC20 applications.\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\nThis allows applications to reconstruct the allowance for all accounts just\nby listening to said events. Other implementations of the EIP may not emit\nthese events, as it isn't required by the specification.\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\nfunctions have been added to mitigate the well-known issues around setting\nallowances. See {IERC20-approve}.", "fullyImplemented": true, - "id": 6459, + "id": 6463, "linearizedBaseContracts": [ - 6459, - 6528, - 5749 + 6463, + 6532, + 5753 ], "name": "ERC20", "nodeType": "ContractDefinition", "nodes": [ { - "id": 6066, + "id": 6070, "libraryName": { "contractScope": null, - "id": 6064, + "id": 6068, "name": "SafeMath", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 5936, + "referencedDeclaration": 5940, "src": "1314:8:17", "typeDescriptions": { - "typeIdentifier": "t_contract$_SafeMath_$5936", + "typeIdentifier": "t_contract$_SafeMath_$5940", "typeString": "library SafeMath" } }, "nodeType": "UsingForDirective", "src": "1308:27:17", "typeName": { - "id": 6065, + "id": 6069, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1327:7:17", @@ -366,10 +366,10 @@ }, { "constant": false, - "id": 6070, + "id": 6074, "name": "_balances", "nodeType": "VariableDeclaration", - "scope": 6459, + "scope": 6463, "src": "1341:46:17", "stateVariable": true, "storageLocation": "default", @@ -378,9 +378,9 @@ "typeString": "mapping(address => uint256)" }, "typeName": { - "id": 6069, + "id": 6073, "keyType": { - "id": 6067, + "id": 6071, "name": "address", "nodeType": "ElementaryTypeName", "src": "1350:7:17", @@ -396,7 +396,7 @@ "typeString": "mapping(address => uint256)" }, "valueType": { - "id": 6068, + "id": 6072, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1361:7:17", @@ -411,10 +411,10 @@ }, { "constant": false, - "id": 6076, + "id": 6080, "name": "_allowances", "nodeType": "VariableDeclaration", - "scope": 6459, + "scope": 6463, "src": "1394:69:17", "stateVariable": true, "storageLocation": "default", @@ -423,9 +423,9 @@ "typeString": "mapping(address => mapping(address => uint256))" }, "typeName": { - "id": 6075, + "id": 6079, "keyType": { - "id": 6071, + "id": 6075, "name": "address", "nodeType": "ElementaryTypeName", "src": "1403:7:17", @@ -441,9 +441,9 @@ "typeString": "mapping(address => mapping(address => uint256))" }, "valueType": { - "id": 6074, + "id": 6078, "keyType": { - "id": 6072, + "id": 6076, "name": "address", "nodeType": "ElementaryTypeName", "src": "1423:7:17", @@ -459,7 +459,7 @@ "typeString": "mapping(address => uint256)" }, "valueType": { - "id": 6073, + "id": 6077, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1434:7:17", @@ -475,10 +475,10 @@ }, { "constant": false, - "id": 6078, + "id": 6082, "name": "_totalSupply", "nodeType": "VariableDeclaration", - "scope": 6459, + "scope": 6463, "src": "1470:28:17", "stateVariable": true, "storageLocation": "default", @@ -487,7 +487,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6077, + "id": 6081, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1470:7:17", @@ -501,54 +501,54 @@ }, { "body": { - "id": 6085, + "id": 6089, "nodeType": "Block", "src": "1612:36:17", "statements": [ { "expression": { "argumentTypes": null, - "id": 6083, + "id": 6087, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6078, + "referencedDeclaration": 6082, "src": "1629:12:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 6082, - "id": 6084, + "functionReturnParameters": 6086, + "id": 6088, "nodeType": "Return", "src": "1622:19:17" } ] }, "documentation": "@dev See {IERC20-totalSupply}.", - "id": 6086, + "id": 6090, "implemented": true, "kind": "function", "modifiers": [], "name": "totalSupply", "nodeType": "FunctionDefinition", "parameters": { - "id": 6079, + "id": 6083, "nodeType": "ParameterList", "parameters": [], "src": "1579:2:17" }, "returnParameters": { - "id": 6082, + "id": 6086, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6081, + "id": 6085, "name": "", "nodeType": "VariableDeclaration", - "scope": 6086, + "scope": 6090, "src": "1603:7:17", "stateVariable": false, "storageLocation": "default", @@ -557,7 +557,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6080, + "id": 6084, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1603:7:17", @@ -572,15 +572,15 @@ ], "src": "1602:9:17" }, - "scope": 6459, + "scope": 6463, "src": "1559:89:17", "stateMutability": "view", - "superFunction": 6466, + "superFunction": 6470, "visibility": "public" }, { "body": { - "id": 6097, + "id": 6101, "nodeType": "Block", "src": "1772:42:17", "statements": [ @@ -589,25 +589,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6093, + "id": 6097, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6070, + "referencedDeclaration": 6074, "src": "1789:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6095, + "id": 6099, "indexExpression": { "argumentTypes": null, - "id": 6094, + "id": 6098, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6088, + "referencedDeclaration": 6092, "src": "1799:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -625,30 +625,30 @@ "typeString": "uint256" } }, - "functionReturnParameters": 6092, - "id": 6096, + "functionReturnParameters": 6096, + "id": 6100, "nodeType": "Return", "src": "1782:25:17" } ] }, "documentation": "@dev See {IERC20-balanceOf}.", - "id": 6098, + "id": 6102, "implemented": true, "kind": "function", "modifiers": [], "name": "balanceOf", "nodeType": "FunctionDefinition", "parameters": { - "id": 6089, + "id": 6093, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6088, + "id": 6092, "name": "account", "nodeType": "VariableDeclaration", - "scope": 6098, + "scope": 6102, "src": "1725:15:17", "stateVariable": false, "storageLocation": "default", @@ -657,7 +657,7 @@ "typeString": "address" }, "typeName": { - "id": 6087, + "id": 6091, "name": "address", "nodeType": "ElementaryTypeName", "src": "1725:7:17", @@ -674,15 +674,15 @@ "src": "1724:17:17" }, "returnParameters": { - "id": 6092, + "id": 6096, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6091, + "id": 6095, "name": "", "nodeType": "VariableDeclaration", - "scope": 6098, + "scope": 6102, "src": "1763:7:17", "stateVariable": false, "storageLocation": "default", @@ -691,7 +691,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6090, + "id": 6094, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1763:7:17", @@ -706,15 +706,15 @@ ], "src": "1762:9:17" }, - "scope": 6459, + "scope": 6463, "src": "1706:108:17", "stateMutability": "view", - "superFunction": 6473, + "superFunction": 6477, "visibility": "public" }, { "body": { - "id": 6116, + "id": 6120, "nodeType": "Block", "src": "2092:80:17", "statements": [ @@ -727,18 +727,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 6108, + "id": 6112, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5737, + "referencedDeclaration": 5741, "src": "2112:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6109, + "id": 6113, "isConstant": false, "isLValue": false, "isPure": false, @@ -754,11 +754,11 @@ }, { "argumentTypes": null, - "id": 6110, + "id": 6114, "name": "recipient", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6100, + "referencedDeclaration": 6104, "src": "2126:9:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -767,11 +767,11 @@ }, { "argumentTypes": null, - "id": 6111, + "id": 6115, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6102, + "referencedDeclaration": 6106, "src": "2137:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -794,18 +794,18 @@ "typeString": "uint256" } ], - "id": 6107, + "id": 6111, "name": "_transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6300, + "referencedDeclaration": 6304, "src": "2102:9:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6112, + "id": 6116, "isConstant": false, "isLValue": false, "isPure": false, @@ -819,7 +819,7 @@ "typeString": "tuple()" } }, - "id": 6113, + "id": 6117, "nodeType": "ExpressionStatement", "src": "2102:42:17" }, @@ -827,7 +827,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 6114, + "id": 6118, "isConstant": false, "isLValue": false, "isPure": true, @@ -842,30 +842,30 @@ }, "value": "true" }, - "functionReturnParameters": 6106, - "id": 6115, + "functionReturnParameters": 6110, + "id": 6119, "nodeType": "Return", "src": "2154:11:17" } ] }, "documentation": "@dev See {IERC20-transfer}.\n * Requirements:\n * - `recipient` cannot be the zero address.\n- the caller must have a balance of at least `amount`.", - "id": 6117, + "id": 6121, "implemented": true, "kind": "function", "modifiers": [], "name": "transfer", "nodeType": "FunctionDefinition", "parameters": { - "id": 6103, + "id": 6107, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6100, + "id": 6104, "name": "recipient", "nodeType": "VariableDeclaration", - "scope": 6117, + "scope": 6121, "src": "2035:17:17", "stateVariable": false, "storageLocation": "default", @@ -874,7 +874,7 @@ "typeString": "address" }, "typeName": { - "id": 6099, + "id": 6103, "name": "address", "nodeType": "ElementaryTypeName", "src": "2035:7:17", @@ -889,10 +889,10 @@ }, { "constant": false, - "id": 6102, + "id": 6106, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6117, + "scope": 6121, "src": "2054:14:17", "stateVariable": false, "storageLocation": "default", @@ -901,7 +901,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6101, + "id": 6105, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2054:7:17", @@ -917,15 +917,15 @@ "src": "2034:35:17" }, "returnParameters": { - "id": 6106, + "id": 6110, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6105, + "id": 6109, "name": "", "nodeType": "VariableDeclaration", - "scope": 6117, + "scope": 6121, "src": "2086:4:17", "stateVariable": false, "storageLocation": "default", @@ -934,7 +934,7 @@ "typeString": "bool" }, "typeName": { - "id": 6104, + "id": 6108, "name": "bool", "nodeType": "ElementaryTypeName", "src": "2086:4:17", @@ -949,15 +949,15 @@ ], "src": "2085:6:17" }, - "scope": 6459, + "scope": 6463, "src": "2017:155:17", "stateMutability": "nonpayable", - "superFunction": 6482, + "superFunction": 6486, "visibility": "public" }, { "body": { - "id": 6132, + "id": 6136, "nodeType": "Block", "src": "2311:51:17", "statements": [ @@ -968,25 +968,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6126, + "id": 6130, "name": "_allowances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6076, + "referencedDeclaration": 6080, "src": "2328:11:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 6128, + "id": 6132, "indexExpression": { "argumentTypes": null, - "id": 6127, + "id": 6131, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6119, + "referencedDeclaration": 6123, "src": "2340:5:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1004,14 +1004,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 6130, + "id": 6134, "indexExpression": { "argumentTypes": null, - "id": 6129, + "id": 6133, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6121, + "referencedDeclaration": 6125, "src": "2347:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1029,30 +1029,30 @@ "typeString": "uint256" } }, - "functionReturnParameters": 6125, - "id": 6131, + "functionReturnParameters": 6129, + "id": 6135, "nodeType": "Return", "src": "2321:34:17" } ] }, "documentation": "@dev See {IERC20-allowance}.", - "id": 6133, + "id": 6137, "implemented": true, "kind": "function", "modifiers": [], "name": "allowance", "nodeType": "FunctionDefinition", "parameters": { - "id": 6122, + "id": 6126, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6119, + "id": 6123, "name": "owner", "nodeType": "VariableDeclaration", - "scope": 6133, + "scope": 6137, "src": "2249:13:17", "stateVariable": false, "storageLocation": "default", @@ -1061,7 +1061,7 @@ "typeString": "address" }, "typeName": { - "id": 6118, + "id": 6122, "name": "address", "nodeType": "ElementaryTypeName", "src": "2249:7:17", @@ -1076,10 +1076,10 @@ }, { "constant": false, - "id": 6121, + "id": 6125, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6133, + "scope": 6137, "src": "2264:15:17", "stateVariable": false, "storageLocation": "default", @@ -1088,7 +1088,7 @@ "typeString": "address" }, "typeName": { - "id": 6120, + "id": 6124, "name": "address", "nodeType": "ElementaryTypeName", "src": "2264:7:17", @@ -1105,15 +1105,15 @@ "src": "2248:32:17" }, "returnParameters": { - "id": 6125, + "id": 6129, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6124, + "id": 6128, "name": "", "nodeType": "VariableDeclaration", - "scope": 6133, + "scope": 6137, "src": "2302:7:17", "stateVariable": false, "storageLocation": "default", @@ -1122,7 +1122,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6123, + "id": 6127, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2302:7:17", @@ -1137,15 +1137,15 @@ ], "src": "2301:9:17" }, - "scope": 6459, + "scope": 6463, "src": "2230:132:17", "stateMutability": "view", - "superFunction": 6491, + "superFunction": 6495, "visibility": "public" }, { "body": { - "id": 6151, + "id": 6155, "nodeType": "Block", "src": "2572:77:17", "statements": [ @@ -1158,18 +1158,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 6143, + "id": 6147, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5737, + "referencedDeclaration": 5741, "src": "2591:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6144, + "id": 6148, "isConstant": false, "isLValue": false, "isPure": false, @@ -1185,11 +1185,11 @@ }, { "argumentTypes": null, - "id": 6145, + "id": 6149, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6135, + "referencedDeclaration": 6139, "src": "2605:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1198,11 +1198,11 @@ }, { "argumentTypes": null, - "id": 6146, + "id": 6150, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6137, + "referencedDeclaration": 6141, "src": "2614:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1225,18 +1225,18 @@ "typeString": "uint256" } ], - "id": 6142, + "id": 6146, "name": "_approve", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6429, + "referencedDeclaration": 6433, "src": "2582:8:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6147, + "id": 6151, "isConstant": false, "isLValue": false, "isPure": false, @@ -1250,7 +1250,7 @@ "typeString": "tuple()" } }, - "id": 6148, + "id": 6152, "nodeType": "ExpressionStatement", "src": "2582:39:17" }, @@ -1258,7 +1258,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 6149, + "id": 6153, "isConstant": false, "isLValue": false, "isPure": true, @@ -1273,30 +1273,30 @@ }, "value": "true" }, - "functionReturnParameters": 6141, - "id": 6150, + "functionReturnParameters": 6145, + "id": 6154, "nodeType": "Return", "src": "2631:11:17" } ] }, "documentation": "@dev See {IERC20-approve}.\n * Requirements:\n * - `spender` cannot be the zero address.", - "id": 6152, + "id": 6156, "implemented": true, "kind": "function", "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { - "id": 6138, + "id": 6142, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6135, + "id": 6139, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6152, + "scope": 6156, "src": "2517:15:17", "stateVariable": false, "storageLocation": "default", @@ -1305,7 +1305,7 @@ "typeString": "address" }, "typeName": { - "id": 6134, + "id": 6138, "name": "address", "nodeType": "ElementaryTypeName", "src": "2517:7:17", @@ -1320,10 +1320,10 @@ }, { "constant": false, - "id": 6137, + "id": 6141, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6152, + "scope": 6156, "src": "2534:14:17", "stateVariable": false, "storageLocation": "default", @@ -1332,7 +1332,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6136, + "id": 6140, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2534:7:17", @@ -1348,15 +1348,15 @@ "src": "2516:33:17" }, "returnParameters": { - "id": 6141, + "id": 6145, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6140, + "id": 6144, "name": "", "nodeType": "VariableDeclaration", - "scope": 6152, + "scope": 6156, "src": "2566:4:17", "stateVariable": false, "storageLocation": "default", @@ -1365,7 +1365,7 @@ "typeString": "bool" }, "typeName": { - "id": 6139, + "id": 6143, "name": "bool", "nodeType": "ElementaryTypeName", "src": "2566:4:17", @@ -1380,15 +1380,15 @@ ], "src": "2565:6:17" }, - "scope": 6459, + "scope": 6463, "src": "2500:149:17", "stateMutability": "nonpayable", - "superFunction": 6500, + "superFunction": 6504, "visibility": "public" }, { "body": { - "id": 6187, + "id": 6191, "nodeType": "Block", "src": "3202:205:17", "statements": [ @@ -1398,11 +1398,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6164, + "id": 6168, "name": "sender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6154, + "referencedDeclaration": 6158, "src": "3222:6:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1411,11 +1411,11 @@ }, { "argumentTypes": null, - "id": 6165, + "id": 6169, "name": "recipient", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6156, + "referencedDeclaration": 6160, "src": "3230:9:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1424,11 +1424,11 @@ }, { "argumentTypes": null, - "id": 6166, + "id": 6170, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6158, + "referencedDeclaration": 6162, "src": "3241:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1451,18 +1451,18 @@ "typeString": "uint256" } ], - "id": 6163, + "id": 6167, "name": "_transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6300, + "referencedDeclaration": 6304, "src": "3212:9:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6167, + "id": 6171, "isConstant": false, "isLValue": false, "isPure": false, @@ -1476,7 +1476,7 @@ "typeString": "tuple()" } }, - "id": 6168, + "id": 6172, "nodeType": "ExpressionStatement", "src": "3212:36:17" }, @@ -1486,11 +1486,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6170, + "id": 6174, "name": "sender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6154, + "referencedDeclaration": 6158, "src": "3267:6:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1502,18 +1502,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 6171, + "id": 6175, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5737, + "referencedDeclaration": 5741, "src": "3275:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6172, + "id": 6176, "isConstant": false, "isLValue": false, "isPure": false, @@ -1532,11 +1532,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6180, + "id": 6184, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6158, + "referencedDeclaration": 6162, "src": "3327:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1546,7 +1546,7 @@ { "argumentTypes": null, "hexValue": "45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365", - "id": 6181, + "id": 6185, "isConstant": false, "isLValue": false, "isPure": true, @@ -1579,25 +1579,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6173, + "id": 6177, "name": "_allowances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6076, + "referencedDeclaration": 6080, "src": "3289:11:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 6175, + "id": 6179, "indexExpression": { "argumentTypes": null, - "id": 6174, + "id": 6178, "name": "sender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6154, + "referencedDeclaration": 6158, "src": "3301:6:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1615,24 +1615,24 @@ "typeString": "mapping(address => uint256)" } }, - "id": 6178, + "id": 6182, "indexExpression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], - "id": 6176, + "id": 6180, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5737, + "referencedDeclaration": 5741, "src": "3309:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6177, + "id": 6181, "isConstant": false, "isLValue": false, "isPure": false, @@ -1657,21 +1657,21 @@ "typeString": "uint256" } }, - "id": 6179, + "id": 6183, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sub", "nodeType": "MemberAccess", - "referencedDeclaration": 5819, + "referencedDeclaration": 5823, "src": "3289:37:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_string_memory_ptr_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256,string memory) pure returns (uint256)" } }, - "id": 6182, + "id": 6186, "isConstant": false, "isLValue": false, "isPure": false, @@ -1701,18 +1701,18 @@ "typeString": "uint256" } ], - "id": 6169, + "id": 6173, "name": "_approve", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6429, + "referencedDeclaration": 6433, "src": "3258:8:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6183, + "id": 6187, "isConstant": false, "isLValue": false, "isPure": false, @@ -1726,7 +1726,7 @@ "typeString": "tuple()" } }, - "id": 6184, + "id": 6188, "nodeType": "ExpressionStatement", "src": "3258:121:17" }, @@ -1734,7 +1734,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 6185, + "id": 6189, "isConstant": false, "isLValue": false, "isPure": true, @@ -1749,30 +1749,30 @@ }, "value": "true" }, - "functionReturnParameters": 6162, - "id": 6186, + "functionReturnParameters": 6166, + "id": 6190, "nodeType": "Return", "src": "3389:11:17" } ] }, "documentation": "@dev See {IERC20-transferFrom}.\n * Emits an {Approval} event indicating the updated allowance. This is not\nrequired by the EIP. See the note at the beginning of {ERC20};\n * Requirements:\n- `sender` and `recipient` cannot be the zero address.\n- `sender` must have a balance of at least `amount`.\n- the caller must have allowance for `sender`'s tokens of at least\n`amount`.", - "id": 6188, + "id": 6192, "implemented": true, "kind": "function", "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { - "id": 6159, + "id": 6163, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6154, + "id": 6158, "name": "sender", "nodeType": "VariableDeclaration", - "scope": 6188, + "scope": 6192, "src": "3129:14:17", "stateVariable": false, "storageLocation": "default", @@ -1781,7 +1781,7 @@ "typeString": "address" }, "typeName": { - "id": 6153, + "id": 6157, "name": "address", "nodeType": "ElementaryTypeName", "src": "3129:7:17", @@ -1796,10 +1796,10 @@ }, { "constant": false, - "id": 6156, + "id": 6160, "name": "recipient", "nodeType": "VariableDeclaration", - "scope": 6188, + "scope": 6192, "src": "3145:17:17", "stateVariable": false, "storageLocation": "default", @@ -1808,7 +1808,7 @@ "typeString": "address" }, "typeName": { - "id": 6155, + "id": 6159, "name": "address", "nodeType": "ElementaryTypeName", "src": "3145:7:17", @@ -1823,10 +1823,10 @@ }, { "constant": false, - "id": 6158, + "id": 6162, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6188, + "scope": 6192, "src": "3164:14:17", "stateVariable": false, "storageLocation": "default", @@ -1835,7 +1835,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6157, + "id": 6161, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3164:7:17", @@ -1851,15 +1851,15 @@ "src": "3128:51:17" }, "returnParameters": { - "id": 6162, + "id": 6166, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6161, + "id": 6165, "name": "", "nodeType": "VariableDeclaration", - "scope": 6188, + "scope": 6192, "src": "3196:4:17", "stateVariable": false, "storageLocation": "default", @@ -1868,7 +1868,7 @@ "typeString": "bool" }, "typeName": { - "id": 6160, + "id": 6164, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3196:4:17", @@ -1883,15 +1883,15 @@ ], "src": "3195:6:17" }, - "scope": 6459, + "scope": 6463, "src": "3107:300:17", "stateMutability": "nonpayable", - "superFunction": 6511, + "superFunction": 6515, "visibility": "public" }, { "body": { - "id": 6214, + "id": 6218, "nodeType": "Block", "src": "3888:121:17", "statements": [ @@ -1904,18 +1904,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 6198, + "id": 6202, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5737, + "referencedDeclaration": 5741, "src": "3907:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6199, + "id": 6203, "isConstant": false, "isLValue": false, "isPure": false, @@ -1931,11 +1931,11 @@ }, { "argumentTypes": null, - "id": 6200, + "id": 6204, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6190, + "referencedDeclaration": 6194, "src": "3921:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1947,11 +1947,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6208, + "id": 6212, "name": "addedValue", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6192, + "referencedDeclaration": 6196, "src": "3969:10:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1972,35 +1972,35 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6201, + "id": 6205, "name": "_allowances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6076, + "referencedDeclaration": 6080, "src": "3930:11:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 6204, + "id": 6208, "indexExpression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], - "id": 6202, + "id": 6206, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5737, + "referencedDeclaration": 5741, "src": "3942:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6203, + "id": 6207, "isConstant": false, "isLValue": false, "isPure": false, @@ -2025,14 +2025,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 6206, + "id": 6210, "indexExpression": { "argumentTypes": null, - "id": 6205, + "id": 6209, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6190, + "referencedDeclaration": 6194, "src": "3956:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2050,21 +2050,21 @@ "typeString": "uint256" } }, - "id": 6207, + "id": 6211, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "add", "nodeType": "MemberAccess", - "referencedDeclaration": 5776, + "referencedDeclaration": 5780, "src": "3930:38:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 6209, + "id": 6213, "isConstant": false, "isLValue": false, "isPure": false, @@ -2094,18 +2094,18 @@ "typeString": "uint256" } ], - "id": 6197, + "id": 6201, "name": "_approve", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6429, + "referencedDeclaration": 6433, "src": "3898:8:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6210, + "id": 6214, "isConstant": false, "isLValue": false, "isPure": false, @@ -2119,7 +2119,7 @@ "typeString": "tuple()" } }, - "id": 6211, + "id": 6215, "nodeType": "ExpressionStatement", "src": "3898:83:17" }, @@ -2127,7 +2127,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 6212, + "id": 6216, "isConstant": false, "isLValue": false, "isPure": true, @@ -2142,30 +2142,30 @@ }, "value": "true" }, - "functionReturnParameters": 6196, - "id": 6213, + "functionReturnParameters": 6200, + "id": 6217, "nodeType": "Return", "src": "3991:11:17" } ] }, "documentation": "@dev Atomically increases the allowance granted to `spender` by the caller.\n * This is an alternative to {approve} that can be used as a mitigation for\nproblems described in {IERC20-approve}.\n * Emits an {Approval} event indicating the updated allowance.\n * Requirements:\n * - `spender` cannot be the zero address.", - "id": 6215, + "id": 6219, "implemented": true, "kind": "function", "modifiers": [], "name": "increaseAllowance", "nodeType": "FunctionDefinition", "parameters": { - "id": 6193, + "id": 6197, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6190, + "id": 6194, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6215, + "scope": 6219, "src": "3829:15:17", "stateVariable": false, "storageLocation": "default", @@ -2174,7 +2174,7 @@ "typeString": "address" }, "typeName": { - "id": 6189, + "id": 6193, "name": "address", "nodeType": "ElementaryTypeName", "src": "3829:7:17", @@ -2189,10 +2189,10 @@ }, { "constant": false, - "id": 6192, + "id": 6196, "name": "addedValue", "nodeType": "VariableDeclaration", - "scope": 6215, + "scope": 6219, "src": "3846:18:17", "stateVariable": false, "storageLocation": "default", @@ -2201,7 +2201,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6191, + "id": 6195, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3846:7:17", @@ -2217,15 +2217,15 @@ "src": "3828:37:17" }, "returnParameters": { - "id": 6196, + "id": 6200, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6195, + "id": 6199, "name": "", "nodeType": "VariableDeclaration", - "scope": 6215, + "scope": 6219, "src": "3882:4:17", "stateVariable": false, "storageLocation": "default", @@ -2234,7 +2234,7 @@ "typeString": "bool" }, "typeName": { - "id": 6194, + "id": 6198, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3882:4:17", @@ -2249,7 +2249,7 @@ ], "src": "3881:6:17" }, - "scope": 6459, + "scope": 6463, "src": "3802:207:17", "stateMutability": "nonpayable", "superFunction": null, @@ -2257,7 +2257,7 @@ }, { "body": { - "id": 6242, + "id": 6246, "nodeType": "Block", "src": "4587:167:17", "statements": [ @@ -2270,18 +2270,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 6225, + "id": 6229, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5737, + "referencedDeclaration": 5741, "src": "4606:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6226, + "id": 6230, "isConstant": false, "isLValue": false, "isPure": false, @@ -2297,11 +2297,11 @@ }, { "argumentTypes": null, - "id": 6227, + "id": 6231, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6217, + "referencedDeclaration": 6221, "src": "4620:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2313,11 +2313,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6235, + "id": 6239, "name": "subtractedValue", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6219, + "referencedDeclaration": 6223, "src": "4668:15:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2327,7 +2327,7 @@ { "argumentTypes": null, "hexValue": "45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f", - "id": 6236, + "id": 6240, "isConstant": false, "isLValue": false, "isPure": true, @@ -2360,35 +2360,35 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6228, + "id": 6232, "name": "_allowances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6076, + "referencedDeclaration": 6080, "src": "4629:11:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 6231, + "id": 6235, "indexExpression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], - "id": 6229, + "id": 6233, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5737, + "referencedDeclaration": 5741, "src": "4641:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6230, + "id": 6234, "isConstant": false, "isLValue": false, "isPure": false, @@ -2413,14 +2413,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 6233, + "id": 6237, "indexExpression": { "argumentTypes": null, - "id": 6232, + "id": 6236, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6217, + "referencedDeclaration": 6221, "src": "4655:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2438,21 +2438,21 @@ "typeString": "uint256" } }, - "id": 6234, + "id": 6238, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sub", "nodeType": "MemberAccess", - "referencedDeclaration": 5819, + "referencedDeclaration": 5823, "src": "4629:38:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_string_memory_ptr_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256,string memory) pure returns (uint256)" } }, - "id": 6237, + "id": 6241, "isConstant": false, "isLValue": false, "isPure": false, @@ -2482,18 +2482,18 @@ "typeString": "uint256" } ], - "id": 6224, + "id": 6228, "name": "_approve", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6429, + "referencedDeclaration": 6433, "src": "4597:8:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6238, + "id": 6242, "isConstant": false, "isLValue": false, "isPure": false, @@ -2507,7 +2507,7 @@ "typeString": "tuple()" } }, - "id": 6239, + "id": 6243, "nodeType": "ExpressionStatement", "src": "4597:129:17" }, @@ -2515,7 +2515,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 6240, + "id": 6244, "isConstant": false, "isLValue": false, "isPure": true, @@ -2530,30 +2530,30 @@ }, "value": "true" }, - "functionReturnParameters": 6223, - "id": 6241, + "functionReturnParameters": 6227, + "id": 6245, "nodeType": "Return", "src": "4736:11:17" } ] }, "documentation": "@dev Atomically decreases the allowance granted to `spender` by the caller.\n * This is an alternative to {approve} that can be used as a mitigation for\nproblems described in {IERC20-approve}.\n * Emits an {Approval} event indicating the updated allowance.\n * Requirements:\n * - `spender` cannot be the zero address.\n- `spender` must have allowance for the caller of at least\n`subtractedValue`.", - "id": 6243, + "id": 6247, "implemented": true, "kind": "function", "modifiers": [], "name": "decreaseAllowance", "nodeType": "FunctionDefinition", "parameters": { - "id": 6220, + "id": 6224, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6217, + "id": 6221, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6243, + "scope": 6247, "src": "4523:15:17", "stateVariable": false, "storageLocation": "default", @@ -2562,7 +2562,7 @@ "typeString": "address" }, "typeName": { - "id": 6216, + "id": 6220, "name": "address", "nodeType": "ElementaryTypeName", "src": "4523:7:17", @@ -2577,10 +2577,10 @@ }, { "constant": false, - "id": 6219, + "id": 6223, "name": "subtractedValue", "nodeType": "VariableDeclaration", - "scope": 6243, + "scope": 6247, "src": "4540:23:17", "stateVariable": false, "storageLocation": "default", @@ -2589,7 +2589,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6218, + "id": 6222, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "4540:7:17", @@ -2605,15 +2605,15 @@ "src": "4522:42:17" }, "returnParameters": { - "id": 6223, + "id": 6227, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6222, + "id": 6226, "name": "", "nodeType": "VariableDeclaration", - "scope": 6243, + "scope": 6247, "src": "4581:4:17", "stateVariable": false, "storageLocation": "default", @@ -2622,7 +2622,7 @@ "typeString": "bool" }, "typeName": { - "id": 6221, + "id": 6225, "name": "bool", "nodeType": "ElementaryTypeName", "src": "4581:4:17", @@ -2637,7 +2637,7 @@ ], "src": "4580:6:17" }, - "scope": 6459, + "scope": 6463, "src": "4496:258:17", "stateMutability": "nonpayable", "superFunction": null, @@ -2645,7 +2645,7 @@ }, { "body": { - "id": 6299, + "id": 6303, "nodeType": "Block", "src": "5307:385:17", "statements": [ @@ -2659,18 +2659,18 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6257, + "id": 6261, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6253, + "id": 6257, "name": "sender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6245, + "referencedDeclaration": 6249, "src": "5325:6:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2685,7 +2685,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6255, + "id": 6259, "isConstant": false, "isLValue": false, "isPure": true, @@ -2708,7 +2708,7 @@ "typeString": "int_const 0" } ], - "id": 6254, + "id": 6258, "isConstant": false, "isLValue": false, "isPure": true, @@ -2721,7 +2721,7 @@ }, "typeName": "address" }, - "id": 6256, + "id": 6260, "isConstant": false, "isLValue": false, "isPure": true, @@ -2744,7 +2744,7 @@ { "argumentTypes": null, "hexValue": "45524332303a207472616e736665722066726f6d20746865207a65726f2061646472657373", - "id": 6258, + "id": 6262, "isConstant": false, "isLValue": false, "isPure": true, @@ -2771,21 +2771,21 @@ "typeString": "literal_string \"ERC20: transfer from the zero address\"" } ], - "id": 6252, + "id": 6256, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "5317:7:17", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6259, + "id": 6263, "isConstant": false, "isLValue": false, "isPure": false, @@ -2799,7 +2799,7 @@ "typeString": "tuple()" } }, - "id": 6260, + "id": 6264, "nodeType": "ExpressionStatement", "src": "5317:70:17" }, @@ -2813,18 +2813,18 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6266, + "id": 6270, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6262, + "id": 6266, "name": "recipient", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6247, + "referencedDeclaration": 6251, "src": "5405:9:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2839,7 +2839,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6264, + "id": 6268, "isConstant": false, "isLValue": false, "isPure": true, @@ -2862,7 +2862,7 @@ "typeString": "int_const 0" } ], - "id": 6263, + "id": 6267, "isConstant": false, "isLValue": false, "isPure": true, @@ -2875,7 +2875,7 @@ }, "typeName": "address" }, - "id": 6265, + "id": 6269, "isConstant": false, "isLValue": false, "isPure": true, @@ -2898,7 +2898,7 @@ { "argumentTypes": null, "hexValue": "45524332303a207472616e7366657220746f20746865207a65726f2061646472657373", - "id": 6267, + "id": 6271, "isConstant": false, "isLValue": false, "isPure": true, @@ -2925,21 +2925,21 @@ "typeString": "literal_string \"ERC20: transfer to the zero address\"" } ], - "id": 6261, + "id": 6265, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "5397:7:17", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6268, + "id": 6272, "isConstant": false, "isLValue": false, "isPure": false, @@ -2953,14 +2953,14 @@ "typeString": "tuple()" } }, - "id": 6269, + "id": 6273, "nodeType": "ExpressionStatement", "src": "5397:71:17" }, { "expression": { "argumentTypes": null, - "id": 6280, + "id": 6284, "isConstant": false, "isLValue": false, "isPure": false, @@ -2969,25 +2969,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6270, + "id": 6274, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6070, + "referencedDeclaration": 6074, "src": "5479:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6272, + "id": 6276, "indexExpression": { "argumentTypes": null, - "id": 6271, + "id": 6275, "name": "sender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6245, + "referencedDeclaration": 6249, "src": "5489:6:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -3012,11 +3012,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6277, + "id": 6281, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6249, + "referencedDeclaration": 6253, "src": "5521:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3026,7 +3026,7 @@ { "argumentTypes": null, "hexValue": "45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365", - "id": 6278, + "id": 6282, "isConstant": false, "isLValue": false, "isPure": true, @@ -3057,25 +3057,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6273, + "id": 6277, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6070, + "referencedDeclaration": 6074, "src": "5499:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6275, + "id": 6279, "indexExpression": { "argumentTypes": null, - "id": 6274, + "id": 6278, "name": "sender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6245, + "referencedDeclaration": 6249, "src": "5509:6:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -3093,21 +3093,21 @@ "typeString": "uint256" } }, - "id": 6276, + "id": 6280, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sub", "nodeType": "MemberAccess", - "referencedDeclaration": 5819, + "referencedDeclaration": 5823, "src": "5499:21:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_string_memory_ptr_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256,string memory) pure returns (uint256)" } }, - "id": 6279, + "id": 6283, "isConstant": false, "isLValue": false, "isPure": false, @@ -3127,14 +3127,14 @@ "typeString": "uint256" } }, - "id": 6281, + "id": 6285, "nodeType": "ExpressionStatement", "src": "5479:91:17" }, { "expression": { "argumentTypes": null, - "id": 6291, + "id": 6295, "isConstant": false, "isLValue": false, "isPure": false, @@ -3143,25 +3143,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6282, + "id": 6286, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6070, + "referencedDeclaration": 6074, "src": "5580:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6284, + "id": 6288, "indexExpression": { "argumentTypes": null, - "id": 6283, + "id": 6287, "name": "recipient", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6247, + "referencedDeclaration": 6251, "src": "5590:9:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -3186,11 +3186,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6289, + "id": 6293, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6249, + "referencedDeclaration": 6253, "src": "5628:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3209,25 +3209,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6285, + "id": 6289, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6070, + "referencedDeclaration": 6074, "src": "5603:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6287, + "id": 6291, "indexExpression": { "argumentTypes": null, - "id": 6286, + "id": 6290, "name": "recipient", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6247, + "referencedDeclaration": 6251, "src": "5613:9:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -3245,21 +3245,21 @@ "typeString": "uint256" } }, - "id": 6288, + "id": 6292, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "add", "nodeType": "MemberAccess", - "referencedDeclaration": 5776, + "referencedDeclaration": 5780, "src": "5603:24:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 6290, + "id": 6294, "isConstant": false, "isLValue": false, "isPure": false, @@ -3279,7 +3279,7 @@ "typeString": "uint256" } }, - "id": 6292, + "id": 6296, "nodeType": "ExpressionStatement", "src": "5580:55:17" }, @@ -3289,11 +3289,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6294, + "id": 6298, "name": "sender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6245, + "referencedDeclaration": 6249, "src": "5659:6:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -3302,11 +3302,11 @@ }, { "argumentTypes": null, - "id": 6295, + "id": 6299, "name": "recipient", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6247, + "referencedDeclaration": 6251, "src": "5667:9:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -3315,11 +3315,11 @@ }, { "argumentTypes": null, - "id": 6296, + "id": 6300, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6249, + "referencedDeclaration": 6253, "src": "5678:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3342,18 +3342,18 @@ "typeString": "uint256" } ], - "id": 6293, + "id": 6297, "name": "Transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6519, + "referencedDeclaration": 6523, "src": "5650:8:17", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6297, + "id": 6301, "isConstant": false, "isLValue": false, "isPure": false, @@ -3367,29 +3367,29 @@ "typeString": "tuple()" } }, - "id": 6298, + "id": 6302, "nodeType": "EmitStatement", "src": "5645:40:17" } ] }, "documentation": "@dev Moves tokens `amount` from `sender` to `recipient`.\n * This is internal function is equivalent to {transfer}, and can be used to\ne.g. implement automatic token fees, slashing mechanisms, etc.\n * Emits a {Transfer} event.\n * Requirements:\n * - `sender` cannot be the zero address.\n- `recipient` cannot be the zero address.\n- `sender` must have a balance of at least `amount`.", - "id": 6300, + "id": 6304, "implemented": true, "kind": "function", "modifiers": [], "name": "_transfer", "nodeType": "FunctionDefinition", "parameters": { - "id": 6250, + "id": 6254, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6245, + "id": 6249, "name": "sender", "nodeType": "VariableDeclaration", - "scope": 6300, + "scope": 6304, "src": "5247:14:17", "stateVariable": false, "storageLocation": "default", @@ -3398,7 +3398,7 @@ "typeString": "address" }, "typeName": { - "id": 6244, + "id": 6248, "name": "address", "nodeType": "ElementaryTypeName", "src": "5247:7:17", @@ -3413,10 +3413,10 @@ }, { "constant": false, - "id": 6247, + "id": 6251, "name": "recipient", "nodeType": "VariableDeclaration", - "scope": 6300, + "scope": 6304, "src": "5263:17:17", "stateVariable": false, "storageLocation": "default", @@ -3425,7 +3425,7 @@ "typeString": "address" }, "typeName": { - "id": 6246, + "id": 6250, "name": "address", "nodeType": "ElementaryTypeName", "src": "5263:7:17", @@ -3440,10 +3440,10 @@ }, { "constant": false, - "id": 6249, + "id": 6253, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6300, + "scope": 6304, "src": "5282:14:17", "stateVariable": false, "storageLocation": "default", @@ -3452,7 +3452,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6248, + "id": 6252, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5282:7:17", @@ -3468,12 +3468,12 @@ "src": "5246:51:17" }, "returnParameters": { - "id": 6251, + "id": 6255, "nodeType": "ParameterList", "parameters": [], "src": "5307:0:17" }, - "scope": 6459, + "scope": 6463, "src": "5228:464:17", "stateMutability": "nonpayable", "superFunction": null, @@ -3481,7 +3481,7 @@ }, { "body": { - "id": 6342, + "id": 6346, "nodeType": "Block", "src": "6019:245:17", "statements": [ @@ -3495,18 +3495,18 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6312, + "id": 6316, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6308, + "id": 6312, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6302, + "referencedDeclaration": 6306, "src": "6037:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -3521,7 +3521,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6310, + "id": 6314, "isConstant": false, "isLValue": false, "isPure": true, @@ -3544,7 +3544,7 @@ "typeString": "int_const 0" } ], - "id": 6309, + "id": 6313, "isConstant": false, "isLValue": false, "isPure": true, @@ -3557,7 +3557,7 @@ }, "typeName": "address" }, - "id": 6311, + "id": 6315, "isConstant": false, "isLValue": false, "isPure": true, @@ -3580,7 +3580,7 @@ { "argumentTypes": null, "hexValue": "45524332303a206d696e7420746f20746865207a65726f2061646472657373", - "id": 6313, + "id": 6317, "isConstant": false, "isLValue": false, "isPure": true, @@ -3607,21 +3607,21 @@ "typeString": "literal_string \"ERC20: mint to the zero address\"" } ], - "id": 6307, + "id": 6311, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "6029:7:17", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6314, + "id": 6318, "isConstant": false, "isLValue": false, "isPure": false, @@ -3635,25 +3635,25 @@ "typeString": "tuple()" } }, - "id": 6315, + "id": 6319, "nodeType": "ExpressionStatement", "src": "6029:65:17" }, { "expression": { "argumentTypes": null, - "id": 6321, + "id": 6325, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 6316, + "id": 6320, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6078, + "referencedDeclaration": 6082, "src": "6105:12:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3667,11 +3667,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6319, + "id": 6323, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6304, + "referencedDeclaration": 6308, "src": "6137:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3688,32 +3688,32 @@ ], "expression": { "argumentTypes": null, - "id": 6317, + "id": 6321, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6078, + "referencedDeclaration": 6082, "src": "6120:12:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6318, + "id": 6322, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "add", "nodeType": "MemberAccess", - "referencedDeclaration": 5776, + "referencedDeclaration": 5780, "src": "6120:16:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 6320, + "id": 6324, "isConstant": false, "isLValue": false, "isPure": false, @@ -3733,14 +3733,14 @@ "typeString": "uint256" } }, - "id": 6322, + "id": 6326, "nodeType": "ExpressionStatement", "src": "6105:39:17" }, { "expression": { "argumentTypes": null, - "id": 6332, + "id": 6336, "isConstant": false, "isLValue": false, "isPure": false, @@ -3749,25 +3749,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6323, + "id": 6327, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6070, + "referencedDeclaration": 6074, "src": "6154:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6325, + "id": 6329, "indexExpression": { "argumentTypes": null, - "id": 6324, + "id": 6328, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6302, + "referencedDeclaration": 6306, "src": "6164:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -3792,11 +3792,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6330, + "id": 6334, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6304, + "referencedDeclaration": 6308, "src": "6198:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3815,25 +3815,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6326, + "id": 6330, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6070, + "referencedDeclaration": 6074, "src": "6175:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6328, + "id": 6332, "indexExpression": { "argumentTypes": null, - "id": 6327, + "id": 6331, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6302, + "referencedDeclaration": 6306, "src": "6185:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -3851,21 +3851,21 @@ "typeString": "uint256" } }, - "id": 6329, + "id": 6333, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "add", "nodeType": "MemberAccess", - "referencedDeclaration": 5776, + "referencedDeclaration": 5780, "src": "6175:22:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 6331, + "id": 6335, "isConstant": false, "isLValue": false, "isPure": false, @@ -3885,7 +3885,7 @@ "typeString": "uint256" } }, - "id": 6333, + "id": 6337, "nodeType": "ExpressionStatement", "src": "6154:51:17" }, @@ -3899,7 +3899,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6336, + "id": 6340, "isConstant": false, "isLValue": false, "isPure": true, @@ -3922,7 +3922,7 @@ "typeString": "int_const 0" } ], - "id": 6335, + "id": 6339, "isConstant": false, "isLValue": false, "isPure": true, @@ -3935,7 +3935,7 @@ }, "typeName": "address" }, - "id": 6337, + "id": 6341, "isConstant": false, "isLValue": false, "isPure": true, @@ -3951,11 +3951,11 @@ }, { "argumentTypes": null, - "id": 6338, + "id": 6342, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6302, + "referencedDeclaration": 6306, "src": "6241:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -3964,11 +3964,11 @@ }, { "argumentTypes": null, - "id": 6339, + "id": 6343, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6304, + "referencedDeclaration": 6308, "src": "6250:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3991,18 +3991,18 @@ "typeString": "uint256" } ], - "id": 6334, + "id": 6338, "name": "Transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6519, + "referencedDeclaration": 6523, "src": "6220:8:17", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6340, + "id": 6344, "isConstant": false, "isLValue": false, "isPure": false, @@ -4016,29 +4016,29 @@ "typeString": "tuple()" } }, - "id": 6341, + "id": 6345, "nodeType": "EmitStatement", "src": "6215:42:17" } ] }, "documentation": "@dev Creates `amount` tokens and assigns them to `account`, increasing\nthe total supply.\n * Emits a {Transfer} event with `from` set to the zero address.\n * Requirements\n * - `to` cannot be the zero address.", - "id": 6343, + "id": 6347, "implemented": true, "kind": "function", "modifiers": [], "name": "_mint", "nodeType": "FunctionDefinition", "parameters": { - "id": 6305, + "id": 6309, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6302, + "id": 6306, "name": "account", "nodeType": "VariableDeclaration", - "scope": 6343, + "scope": 6347, "src": "5977:15:17", "stateVariable": false, "storageLocation": "default", @@ -4047,7 +4047,7 @@ "typeString": "address" }, "typeName": { - "id": 6301, + "id": 6305, "name": "address", "nodeType": "ElementaryTypeName", "src": "5977:7:17", @@ -4062,10 +4062,10 @@ }, { "constant": false, - "id": 6304, + "id": 6308, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6343, + "scope": 6347, "src": "5994:14:17", "stateVariable": false, "storageLocation": "default", @@ -4074,7 +4074,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6303, + "id": 6307, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5994:7:17", @@ -4090,12 +4090,12 @@ "src": "5976:33:17" }, "returnParameters": { - "id": 6306, + "id": 6310, "nodeType": "ParameterList", "parameters": [], "src": "6019:0:17" }, - "scope": 6459, + "scope": 6463, "src": "5962:302:17", "stateMutability": "nonpayable", "superFunction": null, @@ -4103,7 +4103,7 @@ }, { "body": { - "id": 6386, + "id": 6390, "nodeType": "Block", "src": "6640:285:17", "statements": [ @@ -4117,18 +4117,18 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6355, + "id": 6359, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6351, + "id": 6355, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6345, + "referencedDeclaration": 6349, "src": "6658:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -4143,7 +4143,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6353, + "id": 6357, "isConstant": false, "isLValue": false, "isPure": true, @@ -4166,7 +4166,7 @@ "typeString": "int_const 0" } ], - "id": 6352, + "id": 6356, "isConstant": false, "isLValue": false, "isPure": true, @@ -4179,7 +4179,7 @@ }, "typeName": "address" }, - "id": 6354, + "id": 6358, "isConstant": false, "isLValue": false, "isPure": true, @@ -4202,7 +4202,7 @@ { "argumentTypes": null, "hexValue": "45524332303a206275726e2066726f6d20746865207a65726f2061646472657373", - "id": 6356, + "id": 6360, "isConstant": false, "isLValue": false, "isPure": true, @@ -4229,21 +4229,21 @@ "typeString": "literal_string \"ERC20: burn from the zero address\"" } ], - "id": 6350, + "id": 6354, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "6650:7:17", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6357, + "id": 6361, "isConstant": false, "isLValue": false, "isPure": false, @@ -4257,14 +4257,14 @@ "typeString": "tuple()" } }, - "id": 6358, + "id": 6362, "nodeType": "ExpressionStatement", "src": "6650:67:17" }, { "expression": { "argumentTypes": null, - "id": 6369, + "id": 6373, "isConstant": false, "isLValue": false, "isPure": false, @@ -4273,25 +4273,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6359, + "id": 6363, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6070, + "referencedDeclaration": 6074, "src": "6728:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6361, + "id": 6365, "indexExpression": { "argumentTypes": null, - "id": 6360, + "id": 6364, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6345, + "referencedDeclaration": 6349, "src": "6738:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -4316,11 +4316,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6366, + "id": 6370, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6347, + "referencedDeclaration": 6351, "src": "6772:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4330,7 +4330,7 @@ { "argumentTypes": null, "hexValue": "45524332303a206275726e20616d6f756e7420657863656564732062616c616e6365", - "id": 6367, + "id": 6371, "isConstant": false, "isLValue": false, "isPure": true, @@ -4361,25 +4361,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6362, + "id": 6366, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6070, + "referencedDeclaration": 6074, "src": "6749:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6364, + "id": 6368, "indexExpression": { "argumentTypes": null, - "id": 6363, + "id": 6367, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6345, + "referencedDeclaration": 6349, "src": "6759:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -4397,21 +4397,21 @@ "typeString": "uint256" } }, - "id": 6365, + "id": 6369, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sub", "nodeType": "MemberAccess", - "referencedDeclaration": 5819, + "referencedDeclaration": 5823, "src": "6749:22:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_string_memory_ptr_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256,string memory) pure returns (uint256)" } }, - "id": 6368, + "id": 6372, "isConstant": false, "isLValue": false, "isPure": false, @@ -4431,25 +4431,25 @@ "typeString": "uint256" } }, - "id": 6370, + "id": 6374, "nodeType": "ExpressionStatement", "src": "6728:89:17" }, { "expression": { "argumentTypes": null, - "id": 6376, + "id": 6380, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 6371, + "id": 6375, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6078, + "referencedDeclaration": 6082, "src": "6827:12:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4463,11 +4463,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6374, + "id": 6378, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6347, + "referencedDeclaration": 6351, "src": "6859:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4484,32 +4484,32 @@ ], "expression": { "argumentTypes": null, - "id": 6372, + "id": 6376, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6078, + "referencedDeclaration": 6082, "src": "6842:12:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6373, + "id": 6377, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sub", "nodeType": "MemberAccess", - "referencedDeclaration": 5792, + "referencedDeclaration": 5796, "src": "6842:16:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 6375, + "id": 6379, "isConstant": false, "isLValue": false, "isPure": false, @@ -4529,7 +4529,7 @@ "typeString": "uint256" } }, - "id": 6377, + "id": 6381, "nodeType": "ExpressionStatement", "src": "6827:39:17" }, @@ -4539,11 +4539,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6379, + "id": 6383, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6345, + "referencedDeclaration": 6349, "src": "6890:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -4556,7 +4556,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6381, + "id": 6385, "isConstant": false, "isLValue": false, "isPure": true, @@ -4579,7 +4579,7 @@ "typeString": "int_const 0" } ], - "id": 6380, + "id": 6384, "isConstant": false, "isLValue": false, "isPure": true, @@ -4592,7 +4592,7 @@ }, "typeName": "address" }, - "id": 6382, + "id": 6386, "isConstant": false, "isLValue": false, "isPure": true, @@ -4608,11 +4608,11 @@ }, { "argumentTypes": null, - "id": 6383, + "id": 6387, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6347, + "referencedDeclaration": 6351, "src": "6911:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4635,18 +4635,18 @@ "typeString": "uint256" } ], - "id": 6378, + "id": 6382, "name": "Transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6519, + "referencedDeclaration": 6523, "src": "6881:8:17", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6384, + "id": 6388, "isConstant": false, "isLValue": false, "isPure": false, @@ -4660,29 +4660,29 @@ "typeString": "tuple()" } }, - "id": 6385, + "id": 6389, "nodeType": "EmitStatement", "src": "6876:42:17" } ] }, "documentation": "@dev Destroys `amount` tokens from `account`, reducing the\ntotal supply.\n * Emits a {Transfer} event with `to` set to the zero address.\n * Requirements\n * - `account` cannot be the zero address.\n- `account` must have at least `amount` tokens.", - "id": 6387, + "id": 6391, "implemented": true, "kind": "function", "modifiers": [], "name": "_burn", "nodeType": "FunctionDefinition", "parameters": { - "id": 6348, + "id": 6352, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6345, + "id": 6349, "name": "account", "nodeType": "VariableDeclaration", - "scope": 6387, + "scope": 6391, "src": "6598:15:17", "stateVariable": false, "storageLocation": "default", @@ -4691,7 +4691,7 @@ "typeString": "address" }, "typeName": { - "id": 6344, + "id": 6348, "name": "address", "nodeType": "ElementaryTypeName", "src": "6598:7:17", @@ -4706,10 +4706,10 @@ }, { "constant": false, - "id": 6347, + "id": 6351, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6387, + "scope": 6391, "src": "6615:14:17", "stateVariable": false, "storageLocation": "default", @@ -4718,7 +4718,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6346, + "id": 6350, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "6615:7:17", @@ -4734,12 +4734,12 @@ "src": "6597:33:17" }, "returnParameters": { - "id": 6349, + "id": 6353, "nodeType": "ParameterList", "parameters": [], "src": "6640:0:17" }, - "scope": 6459, + "scope": 6463, "src": "6583:342:17", "stateMutability": "nonpayable", "superFunction": null, @@ -4747,7 +4747,7 @@ }, { "body": { - "id": 6428, + "id": 6432, "nodeType": "Block", "src": "7425:257:17", "statements": [ @@ -4761,18 +4761,18 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6401, + "id": 6405, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6397, + "id": 6401, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6389, + "referencedDeclaration": 6393, "src": "7443:5:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -4787,7 +4787,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6399, + "id": 6403, "isConstant": false, "isLValue": false, "isPure": true, @@ -4810,7 +4810,7 @@ "typeString": "int_const 0" } ], - "id": 6398, + "id": 6402, "isConstant": false, "isLValue": false, "isPure": true, @@ -4823,7 +4823,7 @@ }, "typeName": "address" }, - "id": 6400, + "id": 6404, "isConstant": false, "isLValue": false, "isPure": true, @@ -4846,7 +4846,7 @@ { "argumentTypes": null, "hexValue": "45524332303a20617070726f76652066726f6d20746865207a65726f2061646472657373", - "id": 6402, + "id": 6406, "isConstant": false, "isLValue": false, "isPure": true, @@ -4873,21 +4873,21 @@ "typeString": "literal_string \"ERC20: approve from the zero address\"" } ], - "id": 6396, + "id": 6400, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "7435:7:17", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6403, + "id": 6407, "isConstant": false, "isLValue": false, "isPure": false, @@ -4901,7 +4901,7 @@ "typeString": "tuple()" } }, - "id": 6404, + "id": 6408, "nodeType": "ExpressionStatement", "src": "7435:68:17" }, @@ -4915,18 +4915,18 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6410, + "id": 6414, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6406, + "id": 6410, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6391, + "referencedDeclaration": 6395, "src": "7521:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -4941,7 +4941,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6408, + "id": 6412, "isConstant": false, "isLValue": false, "isPure": true, @@ -4964,7 +4964,7 @@ "typeString": "int_const 0" } ], - "id": 6407, + "id": 6411, "isConstant": false, "isLValue": false, "isPure": true, @@ -4977,7 +4977,7 @@ }, "typeName": "address" }, - "id": 6409, + "id": 6413, "isConstant": false, "isLValue": false, "isPure": true, @@ -5000,7 +5000,7 @@ { "argumentTypes": null, "hexValue": "45524332303a20617070726f766520746f20746865207a65726f2061646472657373", - "id": 6411, + "id": 6415, "isConstant": false, "isLValue": false, "isPure": true, @@ -5027,21 +5027,21 @@ "typeString": "literal_string \"ERC20: approve to the zero address\"" } ], - "id": 6405, + "id": 6409, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "7513:7:17", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6412, + "id": 6416, "isConstant": false, "isLValue": false, "isPure": false, @@ -5055,14 +5055,14 @@ "typeString": "tuple()" } }, - "id": 6413, + "id": 6417, "nodeType": "ExpressionStatement", "src": "7513:68:17" }, { "expression": { "argumentTypes": null, - "id": 6420, + "id": 6424, "isConstant": false, "isLValue": false, "isPure": false, @@ -5073,25 +5073,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6414, + "id": 6418, "name": "_allowances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6076, + "referencedDeclaration": 6080, "src": "7592:11:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 6417, + "id": 6421, "indexExpression": { "argumentTypes": null, - "id": 6415, + "id": 6419, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6389, + "referencedDeclaration": 6393, "src": "7604:5:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -5109,14 +5109,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 6418, + "id": 6422, "indexExpression": { "argumentTypes": null, - "id": 6416, + "id": 6420, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6391, + "referencedDeclaration": 6395, "src": "7611:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -5138,11 +5138,11 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 6419, + "id": 6423, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6393, + "referencedDeclaration": 6397, "src": "7622:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5155,7 +5155,7 @@ "typeString": "uint256" } }, - "id": 6421, + "id": 6425, "nodeType": "ExpressionStatement", "src": "7592:36:17" }, @@ -5165,11 +5165,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6423, + "id": 6427, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6389, + "referencedDeclaration": 6393, "src": "7652:5:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -5178,11 +5178,11 @@ }, { "argumentTypes": null, - "id": 6424, + "id": 6428, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6391, + "referencedDeclaration": 6395, "src": "7659:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -5191,11 +5191,11 @@ }, { "argumentTypes": null, - "id": 6425, + "id": 6429, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6393, + "referencedDeclaration": 6397, "src": "7668:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5218,18 +5218,18 @@ "typeString": "uint256" } ], - "id": 6422, + "id": 6426, "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6527, + "referencedDeclaration": 6531, "src": "7643:8:17", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6426, + "id": 6430, "isConstant": false, "isLValue": false, "isPure": false, @@ -5243,29 +5243,29 @@ "typeString": "tuple()" } }, - "id": 6427, + "id": 6431, "nodeType": "EmitStatement", "src": "7638:37:17" } ] }, "documentation": "@dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.\n * This is internal function is equivalent to `approve`, and can be used to\ne.g. set automatic allowances for certain subsystems, etc.\n * Emits an {Approval} event.\n * Requirements:\n * - `owner` cannot be the zero address.\n- `spender` cannot be the zero address.", - "id": 6429, + "id": 6433, "implemented": true, "kind": "function", "modifiers": [], "name": "_approve", "nodeType": "FunctionDefinition", "parameters": { - "id": 6394, + "id": 6398, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6389, + "id": 6393, "name": "owner", "nodeType": "VariableDeclaration", - "scope": 6429, + "scope": 6433, "src": "7368:13:17", "stateVariable": false, "storageLocation": "default", @@ -5274,7 +5274,7 @@ "typeString": "address" }, "typeName": { - "id": 6388, + "id": 6392, "name": "address", "nodeType": "ElementaryTypeName", "src": "7368:7:17", @@ -5289,10 +5289,10 @@ }, { "constant": false, - "id": 6391, + "id": 6395, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6429, + "scope": 6433, "src": "7383:15:17", "stateVariable": false, "storageLocation": "default", @@ -5301,7 +5301,7 @@ "typeString": "address" }, "typeName": { - "id": 6390, + "id": 6394, "name": "address", "nodeType": "ElementaryTypeName", "src": "7383:7:17", @@ -5316,10 +5316,10 @@ }, { "constant": false, - "id": 6393, + "id": 6397, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6429, + "scope": 6433, "src": "7400:14:17", "stateVariable": false, "storageLocation": "default", @@ -5328,7 +5328,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6392, + "id": 6396, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7400:7:17", @@ -5344,12 +5344,12 @@ "src": "7367:48:17" }, "returnParameters": { - "id": 6395, + "id": 6399, "nodeType": "ParameterList", "parameters": [], "src": "7425:0:17" }, - "scope": 6459, + "scope": 6463, "src": "7350:332:17", "stateMutability": "nonpayable", "superFunction": null, @@ -5357,7 +5357,7 @@ }, { "body": { - "id": 6457, + "id": 6461, "nodeType": "Block", "src": "7921:168:17", "statements": [ @@ -5367,11 +5367,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6437, + "id": 6441, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6431, + "referencedDeclaration": 6435, "src": "7937:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -5380,11 +5380,11 @@ }, { "argumentTypes": null, - "id": 6438, + "id": 6442, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6433, + "referencedDeclaration": 6437, "src": "7946:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5403,18 +5403,18 @@ "typeString": "uint256" } ], - "id": 6436, + "id": 6440, "name": "_burn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6387, + "referencedDeclaration": 6391, "src": "7931:5:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,uint256)" } }, - "id": 6439, + "id": 6443, "isConstant": false, "isLValue": false, "isPure": false, @@ -5428,7 +5428,7 @@ "typeString": "tuple()" } }, - "id": 6440, + "id": 6444, "nodeType": "ExpressionStatement", "src": "7931:22:17" }, @@ -5438,11 +5438,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6442, + "id": 6446, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6431, + "referencedDeclaration": 6435, "src": "7972:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -5454,18 +5454,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 6443, + "id": 6447, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5737, + "referencedDeclaration": 5741, "src": "7981:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6444, + "id": 6448, "isConstant": false, "isLValue": false, "isPure": false, @@ -5484,11 +5484,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6452, + "id": 6456, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6433, + "referencedDeclaration": 6437, "src": "8034:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5498,7 +5498,7 @@ { "argumentTypes": null, "hexValue": "45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e6365", - "id": 6453, + "id": 6457, "isConstant": false, "isLValue": false, "isPure": true, @@ -5531,25 +5531,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6445, + "id": 6449, "name": "_allowances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6076, + "referencedDeclaration": 6080, "src": "7995:11:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 6447, + "id": 6451, "indexExpression": { "argumentTypes": null, - "id": 6446, + "id": 6450, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6431, + "referencedDeclaration": 6435, "src": "8007:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -5567,24 +5567,24 @@ "typeString": "mapping(address => uint256)" } }, - "id": 6450, + "id": 6454, "indexExpression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], - "id": 6448, + "id": 6452, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5737, + "referencedDeclaration": 5741, "src": "8016:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6449, + "id": 6453, "isConstant": false, "isLValue": false, "isPure": false, @@ -5609,21 +5609,21 @@ "typeString": "uint256" } }, - "id": 6451, + "id": 6455, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sub", "nodeType": "MemberAccess", - "referencedDeclaration": 5819, + "referencedDeclaration": 5823, "src": "7995:38:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_string_memory_ptr_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256,string memory) pure returns (uint256)" } }, - "id": 6454, + "id": 6458, "isConstant": false, "isLValue": false, "isPure": false, @@ -5653,18 +5653,18 @@ "typeString": "uint256" } ], - "id": 6441, + "id": 6445, "name": "_approve", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6429, + "referencedDeclaration": 6433, "src": "7963:8:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6455, + "id": 6459, "isConstant": false, "isLValue": false, "isPure": false, @@ -5678,29 +5678,29 @@ "typeString": "tuple()" } }, - "id": 6456, + "id": 6460, "nodeType": "ExpressionStatement", "src": "7963:119:17" } ] }, "documentation": "@dev Destroys `amount` tokens from `account`.`amount` is then deducted\nfrom the caller's allowance.\n * See {_burn} and {_approve}.", - "id": 6458, + "id": 6462, "implemented": true, "kind": "function", "modifiers": [], "name": "_burnFrom", "nodeType": "FunctionDefinition", "parameters": { - "id": 6434, + "id": 6438, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6431, + "id": 6435, "name": "account", "nodeType": "VariableDeclaration", - "scope": 6458, + "scope": 6462, "src": "7879:15:17", "stateVariable": false, "storageLocation": "default", @@ -5709,7 +5709,7 @@ "typeString": "address" }, "typeName": { - "id": 6430, + "id": 6434, "name": "address", "nodeType": "ElementaryTypeName", "src": "7879:7:17", @@ -5724,10 +5724,10 @@ }, { "constant": false, - "id": 6433, + "id": 6437, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6458, + "scope": 6462, "src": "7896:14:17", "stateVariable": false, "storageLocation": "default", @@ -5736,7 +5736,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6432, + "id": 6436, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7896:7:17", @@ -5752,19 +5752,19 @@ "src": "7878:33:17" }, "returnParameters": { - "id": 6435, + "id": 6439, "nodeType": "ParameterList", "parameters": [], "src": "7921:0:17" }, - "scope": 6459, + "scope": 6463, "src": "7860:229:17", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" } ], - "scope": 6460, + "scope": 6464, "src": "1268:6823:17" } ], @@ -5774,14 +5774,14 @@ "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol", "exportedSymbols": { "ERC20": [ - 6459 + 6463 ] }, - "id": 6460, + "id": 6464, "nodeType": "SourceUnit", "nodes": [ { - "id": 6056, + "id": 6060, "literals": [ "solidity", "^", @@ -5794,10 +5794,10 @@ { "absolutePath": "openzeppelin-solidity/contracts/GSN/Context.sol", "file": "../../GSN/Context.sol", - "id": 6057, + "id": 6061, "nodeType": "ImportDirective", - "scope": 6460, - "sourceUnit": 5750, + "scope": 6464, + "sourceUnit": 5754, "src": "25:31:17", "symbolAliases": [], "unitAlias": "" @@ -5805,10 +5805,10 @@ { "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol", "file": "./IERC20.sol", - "id": 6058, + "id": 6062, "nodeType": "ImportDirective", - "scope": 6460, - "sourceUnit": 6529, + "scope": 6464, + "sourceUnit": 6533, "src": "57:22:17", "symbolAliases": [], "unitAlias": "" @@ -5816,10 +5816,10 @@ { "absolutePath": "openzeppelin-solidity/contracts/math/SafeMath.sol", "file": "../../math/SafeMath.sol", - "id": 6059, + "id": 6063, "nodeType": "ImportDirective", - "scope": 6460, - "sourceUnit": 5937, + "scope": 6464, + "sourceUnit": 5941, "src": "80:33:17", "symbolAliases": [], "unitAlias": "" @@ -5830,17 +5830,17 @@ "arguments": null, "baseName": { "contractScope": null, - "id": 6060, + "id": 6064, "name": "Context", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 5749, + "referencedDeclaration": 5753, "src": "1286:7:17", "typeDescriptions": { - "typeIdentifier": "t_contract$_Context_$5749", + "typeIdentifier": "t_contract$_Context_$5753", "typeString": "contract Context" } }, - "id": 6061, + "id": 6065, "nodeType": "InheritanceSpecifier", "src": "1286:7:17" }, @@ -5848,55 +5848,55 @@ "arguments": null, "baseName": { "contractScope": null, - "id": 6062, + "id": 6066, "name": "IERC20", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 6528, + "referencedDeclaration": 6532, "src": "1295:6:17", "typeDescriptions": { - "typeIdentifier": "t_contract$_IERC20_$6528", + "typeIdentifier": "t_contract$_IERC20_$6532", "typeString": "contract IERC20" } }, - "id": 6063, + "id": 6067, "nodeType": "InheritanceSpecifier", "src": "1295:6:17" } ], "contractDependencies": [ - 5749, - 6528 + 5753, + 6532 ], "contractKind": "contract", "documentation": "@dev Implementation of the {IERC20} interface.\n * This implementation is agnostic to the way tokens are created. This means\nthat a supply mechanism has to be added in a derived contract using {_mint}.\nFor a generic mechanism see {ERC20Mintable}.\n * TIP: For a detailed writeup see our guide\nhttps://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How\nto implement supply mechanisms].\n * We have followed general OpenZeppelin guidelines: functions revert instead\nof returning `false` on failure. This behavior is nonetheless conventional\nand does not conflict with the expectations of ERC20 applications.\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\nThis allows applications to reconstruct the allowance for all accounts just\nby listening to said events. Other implementations of the EIP may not emit\nthese events, as it isn't required by the specification.\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\nfunctions have been added to mitigate the well-known issues around setting\nallowances. See {IERC20-approve}.", "fullyImplemented": true, - "id": 6459, + "id": 6463, "linearizedBaseContracts": [ - 6459, - 6528, - 5749 + 6463, + 6532, + 5753 ], "name": "ERC20", "nodeType": "ContractDefinition", "nodes": [ { - "id": 6066, + "id": 6070, "libraryName": { "contractScope": null, - "id": 6064, + "id": 6068, "name": "SafeMath", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 5936, + "referencedDeclaration": 5940, "src": "1314:8:17", "typeDescriptions": { - "typeIdentifier": "t_contract$_SafeMath_$5936", + "typeIdentifier": "t_contract$_SafeMath_$5940", "typeString": "library SafeMath" } }, "nodeType": "UsingForDirective", "src": "1308:27:17", "typeName": { - "id": 6065, + "id": 6069, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1327:7:17", @@ -5908,10 +5908,10 @@ }, { "constant": false, - "id": 6070, + "id": 6074, "name": "_balances", "nodeType": "VariableDeclaration", - "scope": 6459, + "scope": 6463, "src": "1341:46:17", "stateVariable": true, "storageLocation": "default", @@ -5920,9 +5920,9 @@ "typeString": "mapping(address => uint256)" }, "typeName": { - "id": 6069, + "id": 6073, "keyType": { - "id": 6067, + "id": 6071, "name": "address", "nodeType": "ElementaryTypeName", "src": "1350:7:17", @@ -5938,7 +5938,7 @@ "typeString": "mapping(address => uint256)" }, "valueType": { - "id": 6068, + "id": 6072, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1361:7:17", @@ -5953,10 +5953,10 @@ }, { "constant": false, - "id": 6076, + "id": 6080, "name": "_allowances", "nodeType": "VariableDeclaration", - "scope": 6459, + "scope": 6463, "src": "1394:69:17", "stateVariable": true, "storageLocation": "default", @@ -5965,9 +5965,9 @@ "typeString": "mapping(address => mapping(address => uint256))" }, "typeName": { - "id": 6075, + "id": 6079, "keyType": { - "id": 6071, + "id": 6075, "name": "address", "nodeType": "ElementaryTypeName", "src": "1403:7:17", @@ -5983,9 +5983,9 @@ "typeString": "mapping(address => mapping(address => uint256))" }, "valueType": { - "id": 6074, + "id": 6078, "keyType": { - "id": 6072, + "id": 6076, "name": "address", "nodeType": "ElementaryTypeName", "src": "1423:7:17", @@ -6001,7 +6001,7 @@ "typeString": "mapping(address => uint256)" }, "valueType": { - "id": 6073, + "id": 6077, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1434:7:17", @@ -6017,10 +6017,10 @@ }, { "constant": false, - "id": 6078, + "id": 6082, "name": "_totalSupply", "nodeType": "VariableDeclaration", - "scope": 6459, + "scope": 6463, "src": "1470:28:17", "stateVariable": true, "storageLocation": "default", @@ -6029,7 +6029,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6077, + "id": 6081, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1470:7:17", @@ -6043,54 +6043,54 @@ }, { "body": { - "id": 6085, + "id": 6089, "nodeType": "Block", "src": "1612:36:17", "statements": [ { "expression": { "argumentTypes": null, - "id": 6083, + "id": 6087, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6078, + "referencedDeclaration": 6082, "src": "1629:12:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 6082, - "id": 6084, + "functionReturnParameters": 6086, + "id": 6088, "nodeType": "Return", "src": "1622:19:17" } ] }, "documentation": "@dev See {IERC20-totalSupply}.", - "id": 6086, + "id": 6090, "implemented": true, "kind": "function", "modifiers": [], "name": "totalSupply", "nodeType": "FunctionDefinition", "parameters": { - "id": 6079, + "id": 6083, "nodeType": "ParameterList", "parameters": [], "src": "1579:2:17" }, "returnParameters": { - "id": 6082, + "id": 6086, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6081, + "id": 6085, "name": "", "nodeType": "VariableDeclaration", - "scope": 6086, + "scope": 6090, "src": "1603:7:17", "stateVariable": false, "storageLocation": "default", @@ -6099,7 +6099,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6080, + "id": 6084, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1603:7:17", @@ -6114,15 +6114,15 @@ ], "src": "1602:9:17" }, - "scope": 6459, + "scope": 6463, "src": "1559:89:17", "stateMutability": "view", - "superFunction": 6466, + "superFunction": 6470, "visibility": "public" }, { "body": { - "id": 6097, + "id": 6101, "nodeType": "Block", "src": "1772:42:17", "statements": [ @@ -6131,25 +6131,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6093, + "id": 6097, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6070, + "referencedDeclaration": 6074, "src": "1789:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6095, + "id": 6099, "indexExpression": { "argumentTypes": null, - "id": 6094, + "id": 6098, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6088, + "referencedDeclaration": 6092, "src": "1799:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6167,30 +6167,30 @@ "typeString": "uint256" } }, - "functionReturnParameters": 6092, - "id": 6096, + "functionReturnParameters": 6096, + "id": 6100, "nodeType": "Return", "src": "1782:25:17" } ] }, "documentation": "@dev See {IERC20-balanceOf}.", - "id": 6098, + "id": 6102, "implemented": true, "kind": "function", "modifiers": [], "name": "balanceOf", "nodeType": "FunctionDefinition", "parameters": { - "id": 6089, + "id": 6093, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6088, + "id": 6092, "name": "account", "nodeType": "VariableDeclaration", - "scope": 6098, + "scope": 6102, "src": "1725:15:17", "stateVariable": false, "storageLocation": "default", @@ -6199,7 +6199,7 @@ "typeString": "address" }, "typeName": { - "id": 6087, + "id": 6091, "name": "address", "nodeType": "ElementaryTypeName", "src": "1725:7:17", @@ -6216,15 +6216,15 @@ "src": "1724:17:17" }, "returnParameters": { - "id": 6092, + "id": 6096, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6091, + "id": 6095, "name": "", "nodeType": "VariableDeclaration", - "scope": 6098, + "scope": 6102, "src": "1763:7:17", "stateVariable": false, "storageLocation": "default", @@ -6233,7 +6233,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6090, + "id": 6094, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1763:7:17", @@ -6248,15 +6248,15 @@ ], "src": "1762:9:17" }, - "scope": 6459, + "scope": 6463, "src": "1706:108:17", "stateMutability": "view", - "superFunction": 6473, + "superFunction": 6477, "visibility": "public" }, { "body": { - "id": 6116, + "id": 6120, "nodeType": "Block", "src": "2092:80:17", "statements": [ @@ -6269,18 +6269,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 6108, + "id": 6112, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5737, + "referencedDeclaration": 5741, "src": "2112:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6109, + "id": 6113, "isConstant": false, "isLValue": false, "isPure": false, @@ -6296,11 +6296,11 @@ }, { "argumentTypes": null, - "id": 6110, + "id": 6114, "name": "recipient", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6100, + "referencedDeclaration": 6104, "src": "2126:9:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6309,11 +6309,11 @@ }, { "argumentTypes": null, - "id": 6111, + "id": 6115, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6102, + "referencedDeclaration": 6106, "src": "2137:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6336,18 +6336,18 @@ "typeString": "uint256" } ], - "id": 6107, + "id": 6111, "name": "_transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6300, + "referencedDeclaration": 6304, "src": "2102:9:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6112, + "id": 6116, "isConstant": false, "isLValue": false, "isPure": false, @@ -6361,7 +6361,7 @@ "typeString": "tuple()" } }, - "id": 6113, + "id": 6117, "nodeType": "ExpressionStatement", "src": "2102:42:17" }, @@ -6369,7 +6369,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 6114, + "id": 6118, "isConstant": false, "isLValue": false, "isPure": true, @@ -6384,30 +6384,30 @@ }, "value": "true" }, - "functionReturnParameters": 6106, - "id": 6115, + "functionReturnParameters": 6110, + "id": 6119, "nodeType": "Return", "src": "2154:11:17" } ] }, "documentation": "@dev See {IERC20-transfer}.\n * Requirements:\n * - `recipient` cannot be the zero address.\n- the caller must have a balance of at least `amount`.", - "id": 6117, + "id": 6121, "implemented": true, "kind": "function", "modifiers": [], "name": "transfer", "nodeType": "FunctionDefinition", "parameters": { - "id": 6103, + "id": 6107, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6100, + "id": 6104, "name": "recipient", "nodeType": "VariableDeclaration", - "scope": 6117, + "scope": 6121, "src": "2035:17:17", "stateVariable": false, "storageLocation": "default", @@ -6416,7 +6416,7 @@ "typeString": "address" }, "typeName": { - "id": 6099, + "id": 6103, "name": "address", "nodeType": "ElementaryTypeName", "src": "2035:7:17", @@ -6431,10 +6431,10 @@ }, { "constant": false, - "id": 6102, + "id": 6106, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6117, + "scope": 6121, "src": "2054:14:17", "stateVariable": false, "storageLocation": "default", @@ -6443,7 +6443,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6101, + "id": 6105, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2054:7:17", @@ -6459,15 +6459,15 @@ "src": "2034:35:17" }, "returnParameters": { - "id": 6106, + "id": 6110, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6105, + "id": 6109, "name": "", "nodeType": "VariableDeclaration", - "scope": 6117, + "scope": 6121, "src": "2086:4:17", "stateVariable": false, "storageLocation": "default", @@ -6476,7 +6476,7 @@ "typeString": "bool" }, "typeName": { - "id": 6104, + "id": 6108, "name": "bool", "nodeType": "ElementaryTypeName", "src": "2086:4:17", @@ -6491,15 +6491,15 @@ ], "src": "2085:6:17" }, - "scope": 6459, + "scope": 6463, "src": "2017:155:17", "stateMutability": "nonpayable", - "superFunction": 6482, + "superFunction": 6486, "visibility": "public" }, { "body": { - "id": 6132, + "id": 6136, "nodeType": "Block", "src": "2311:51:17", "statements": [ @@ -6510,25 +6510,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6126, + "id": 6130, "name": "_allowances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6076, + "referencedDeclaration": 6080, "src": "2328:11:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 6128, + "id": 6132, "indexExpression": { "argumentTypes": null, - "id": 6127, + "id": 6131, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6119, + "referencedDeclaration": 6123, "src": "2340:5:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6546,14 +6546,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 6130, + "id": 6134, "indexExpression": { "argumentTypes": null, - "id": 6129, + "id": 6133, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6121, + "referencedDeclaration": 6125, "src": "2347:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6571,30 +6571,30 @@ "typeString": "uint256" } }, - "functionReturnParameters": 6125, - "id": 6131, + "functionReturnParameters": 6129, + "id": 6135, "nodeType": "Return", "src": "2321:34:17" } ] }, "documentation": "@dev See {IERC20-allowance}.", - "id": 6133, + "id": 6137, "implemented": true, "kind": "function", "modifiers": [], "name": "allowance", "nodeType": "FunctionDefinition", "parameters": { - "id": 6122, + "id": 6126, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6119, + "id": 6123, "name": "owner", "nodeType": "VariableDeclaration", - "scope": 6133, + "scope": 6137, "src": "2249:13:17", "stateVariable": false, "storageLocation": "default", @@ -6603,7 +6603,7 @@ "typeString": "address" }, "typeName": { - "id": 6118, + "id": 6122, "name": "address", "nodeType": "ElementaryTypeName", "src": "2249:7:17", @@ -6618,10 +6618,10 @@ }, { "constant": false, - "id": 6121, + "id": 6125, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6133, + "scope": 6137, "src": "2264:15:17", "stateVariable": false, "storageLocation": "default", @@ -6630,7 +6630,7 @@ "typeString": "address" }, "typeName": { - "id": 6120, + "id": 6124, "name": "address", "nodeType": "ElementaryTypeName", "src": "2264:7:17", @@ -6647,15 +6647,15 @@ "src": "2248:32:17" }, "returnParameters": { - "id": 6125, + "id": 6129, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6124, + "id": 6128, "name": "", "nodeType": "VariableDeclaration", - "scope": 6133, + "scope": 6137, "src": "2302:7:17", "stateVariable": false, "storageLocation": "default", @@ -6664,7 +6664,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6123, + "id": 6127, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2302:7:17", @@ -6679,15 +6679,15 @@ ], "src": "2301:9:17" }, - "scope": 6459, + "scope": 6463, "src": "2230:132:17", "stateMutability": "view", - "superFunction": 6491, + "superFunction": 6495, "visibility": "public" }, { "body": { - "id": 6151, + "id": 6155, "nodeType": "Block", "src": "2572:77:17", "statements": [ @@ -6700,18 +6700,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 6143, + "id": 6147, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5737, + "referencedDeclaration": 5741, "src": "2591:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6144, + "id": 6148, "isConstant": false, "isLValue": false, "isPure": false, @@ -6727,11 +6727,11 @@ }, { "argumentTypes": null, - "id": 6145, + "id": 6149, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6135, + "referencedDeclaration": 6139, "src": "2605:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6740,11 +6740,11 @@ }, { "argumentTypes": null, - "id": 6146, + "id": 6150, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6137, + "referencedDeclaration": 6141, "src": "2614:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6767,18 +6767,18 @@ "typeString": "uint256" } ], - "id": 6142, + "id": 6146, "name": "_approve", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6429, + "referencedDeclaration": 6433, "src": "2582:8:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6147, + "id": 6151, "isConstant": false, "isLValue": false, "isPure": false, @@ -6792,7 +6792,7 @@ "typeString": "tuple()" } }, - "id": 6148, + "id": 6152, "nodeType": "ExpressionStatement", "src": "2582:39:17" }, @@ -6800,7 +6800,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 6149, + "id": 6153, "isConstant": false, "isLValue": false, "isPure": true, @@ -6815,30 +6815,30 @@ }, "value": "true" }, - "functionReturnParameters": 6141, - "id": 6150, + "functionReturnParameters": 6145, + "id": 6154, "nodeType": "Return", "src": "2631:11:17" } ] }, "documentation": "@dev See {IERC20-approve}.\n * Requirements:\n * - `spender` cannot be the zero address.", - "id": 6152, + "id": 6156, "implemented": true, "kind": "function", "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { - "id": 6138, + "id": 6142, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6135, + "id": 6139, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6152, + "scope": 6156, "src": "2517:15:17", "stateVariable": false, "storageLocation": "default", @@ -6847,7 +6847,7 @@ "typeString": "address" }, "typeName": { - "id": 6134, + "id": 6138, "name": "address", "nodeType": "ElementaryTypeName", "src": "2517:7:17", @@ -6862,10 +6862,10 @@ }, { "constant": false, - "id": 6137, + "id": 6141, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6152, + "scope": 6156, "src": "2534:14:17", "stateVariable": false, "storageLocation": "default", @@ -6874,7 +6874,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6136, + "id": 6140, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2534:7:17", @@ -6890,15 +6890,15 @@ "src": "2516:33:17" }, "returnParameters": { - "id": 6141, + "id": 6145, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6140, + "id": 6144, "name": "", "nodeType": "VariableDeclaration", - "scope": 6152, + "scope": 6156, "src": "2566:4:17", "stateVariable": false, "storageLocation": "default", @@ -6907,7 +6907,7 @@ "typeString": "bool" }, "typeName": { - "id": 6139, + "id": 6143, "name": "bool", "nodeType": "ElementaryTypeName", "src": "2566:4:17", @@ -6922,15 +6922,15 @@ ], "src": "2565:6:17" }, - "scope": 6459, + "scope": 6463, "src": "2500:149:17", "stateMutability": "nonpayable", - "superFunction": 6500, + "superFunction": 6504, "visibility": "public" }, { "body": { - "id": 6187, + "id": 6191, "nodeType": "Block", "src": "3202:205:17", "statements": [ @@ -6940,11 +6940,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6164, + "id": 6168, "name": "sender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6154, + "referencedDeclaration": 6158, "src": "3222:6:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6953,11 +6953,11 @@ }, { "argumentTypes": null, - "id": 6165, + "id": 6169, "name": "recipient", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6156, + "referencedDeclaration": 6160, "src": "3230:9:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6966,11 +6966,11 @@ }, { "argumentTypes": null, - "id": 6166, + "id": 6170, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6158, + "referencedDeclaration": 6162, "src": "3241:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6993,18 +6993,18 @@ "typeString": "uint256" } ], - "id": 6163, + "id": 6167, "name": "_transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6300, + "referencedDeclaration": 6304, "src": "3212:9:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6167, + "id": 6171, "isConstant": false, "isLValue": false, "isPure": false, @@ -7018,7 +7018,7 @@ "typeString": "tuple()" } }, - "id": 6168, + "id": 6172, "nodeType": "ExpressionStatement", "src": "3212:36:17" }, @@ -7028,11 +7028,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6170, + "id": 6174, "name": "sender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6154, + "referencedDeclaration": 6158, "src": "3267:6:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -7044,18 +7044,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 6171, + "id": 6175, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5737, + "referencedDeclaration": 5741, "src": "3275:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6172, + "id": 6176, "isConstant": false, "isLValue": false, "isPure": false, @@ -7074,11 +7074,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6180, + "id": 6184, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6158, + "referencedDeclaration": 6162, "src": "3327:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7088,7 +7088,7 @@ { "argumentTypes": null, "hexValue": "45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365", - "id": 6181, + "id": 6185, "isConstant": false, "isLValue": false, "isPure": true, @@ -7121,25 +7121,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6173, + "id": 6177, "name": "_allowances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6076, + "referencedDeclaration": 6080, "src": "3289:11:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 6175, + "id": 6179, "indexExpression": { "argumentTypes": null, - "id": 6174, + "id": 6178, "name": "sender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6154, + "referencedDeclaration": 6158, "src": "3301:6:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -7157,24 +7157,24 @@ "typeString": "mapping(address => uint256)" } }, - "id": 6178, + "id": 6182, "indexExpression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], - "id": 6176, + "id": 6180, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5737, + "referencedDeclaration": 5741, "src": "3309:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6177, + "id": 6181, "isConstant": false, "isLValue": false, "isPure": false, @@ -7199,21 +7199,21 @@ "typeString": "uint256" } }, - "id": 6179, + "id": 6183, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sub", "nodeType": "MemberAccess", - "referencedDeclaration": 5819, + "referencedDeclaration": 5823, "src": "3289:37:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_string_memory_ptr_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256,string memory) pure returns (uint256)" } }, - "id": 6182, + "id": 6186, "isConstant": false, "isLValue": false, "isPure": false, @@ -7243,18 +7243,18 @@ "typeString": "uint256" } ], - "id": 6169, + "id": 6173, "name": "_approve", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6429, + "referencedDeclaration": 6433, "src": "3258:8:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6183, + "id": 6187, "isConstant": false, "isLValue": false, "isPure": false, @@ -7268,7 +7268,7 @@ "typeString": "tuple()" } }, - "id": 6184, + "id": 6188, "nodeType": "ExpressionStatement", "src": "3258:121:17" }, @@ -7276,7 +7276,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 6185, + "id": 6189, "isConstant": false, "isLValue": false, "isPure": true, @@ -7291,30 +7291,30 @@ }, "value": "true" }, - "functionReturnParameters": 6162, - "id": 6186, + "functionReturnParameters": 6166, + "id": 6190, "nodeType": "Return", "src": "3389:11:17" } ] }, "documentation": "@dev See {IERC20-transferFrom}.\n * Emits an {Approval} event indicating the updated allowance. This is not\nrequired by the EIP. See the note at the beginning of {ERC20};\n * Requirements:\n- `sender` and `recipient` cannot be the zero address.\n- `sender` must have a balance of at least `amount`.\n- the caller must have allowance for `sender`'s tokens of at least\n`amount`.", - "id": 6188, + "id": 6192, "implemented": true, "kind": "function", "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { - "id": 6159, + "id": 6163, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6154, + "id": 6158, "name": "sender", "nodeType": "VariableDeclaration", - "scope": 6188, + "scope": 6192, "src": "3129:14:17", "stateVariable": false, "storageLocation": "default", @@ -7323,7 +7323,7 @@ "typeString": "address" }, "typeName": { - "id": 6153, + "id": 6157, "name": "address", "nodeType": "ElementaryTypeName", "src": "3129:7:17", @@ -7338,10 +7338,10 @@ }, { "constant": false, - "id": 6156, + "id": 6160, "name": "recipient", "nodeType": "VariableDeclaration", - "scope": 6188, + "scope": 6192, "src": "3145:17:17", "stateVariable": false, "storageLocation": "default", @@ -7350,7 +7350,7 @@ "typeString": "address" }, "typeName": { - "id": 6155, + "id": 6159, "name": "address", "nodeType": "ElementaryTypeName", "src": "3145:7:17", @@ -7365,10 +7365,10 @@ }, { "constant": false, - "id": 6158, + "id": 6162, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6188, + "scope": 6192, "src": "3164:14:17", "stateVariable": false, "storageLocation": "default", @@ -7377,7 +7377,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6157, + "id": 6161, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3164:7:17", @@ -7393,15 +7393,15 @@ "src": "3128:51:17" }, "returnParameters": { - "id": 6162, + "id": 6166, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6161, + "id": 6165, "name": "", "nodeType": "VariableDeclaration", - "scope": 6188, + "scope": 6192, "src": "3196:4:17", "stateVariable": false, "storageLocation": "default", @@ -7410,7 +7410,7 @@ "typeString": "bool" }, "typeName": { - "id": 6160, + "id": 6164, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3196:4:17", @@ -7425,15 +7425,15 @@ ], "src": "3195:6:17" }, - "scope": 6459, + "scope": 6463, "src": "3107:300:17", "stateMutability": "nonpayable", - "superFunction": 6511, + "superFunction": 6515, "visibility": "public" }, { "body": { - "id": 6214, + "id": 6218, "nodeType": "Block", "src": "3888:121:17", "statements": [ @@ -7446,18 +7446,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 6198, + "id": 6202, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5737, + "referencedDeclaration": 5741, "src": "3907:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6199, + "id": 6203, "isConstant": false, "isLValue": false, "isPure": false, @@ -7473,11 +7473,11 @@ }, { "argumentTypes": null, - "id": 6200, + "id": 6204, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6190, + "referencedDeclaration": 6194, "src": "3921:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -7489,11 +7489,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6208, + "id": 6212, "name": "addedValue", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6192, + "referencedDeclaration": 6196, "src": "3969:10:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7514,35 +7514,35 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6201, + "id": 6205, "name": "_allowances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6076, + "referencedDeclaration": 6080, "src": "3930:11:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 6204, + "id": 6208, "indexExpression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], - "id": 6202, + "id": 6206, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5737, + "referencedDeclaration": 5741, "src": "3942:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6203, + "id": 6207, "isConstant": false, "isLValue": false, "isPure": false, @@ -7567,14 +7567,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 6206, + "id": 6210, "indexExpression": { "argumentTypes": null, - "id": 6205, + "id": 6209, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6190, + "referencedDeclaration": 6194, "src": "3956:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -7592,21 +7592,21 @@ "typeString": "uint256" } }, - "id": 6207, + "id": 6211, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "add", "nodeType": "MemberAccess", - "referencedDeclaration": 5776, + "referencedDeclaration": 5780, "src": "3930:38:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 6209, + "id": 6213, "isConstant": false, "isLValue": false, "isPure": false, @@ -7636,18 +7636,18 @@ "typeString": "uint256" } ], - "id": 6197, + "id": 6201, "name": "_approve", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6429, + "referencedDeclaration": 6433, "src": "3898:8:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6210, + "id": 6214, "isConstant": false, "isLValue": false, "isPure": false, @@ -7661,7 +7661,7 @@ "typeString": "tuple()" } }, - "id": 6211, + "id": 6215, "nodeType": "ExpressionStatement", "src": "3898:83:17" }, @@ -7669,7 +7669,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 6212, + "id": 6216, "isConstant": false, "isLValue": false, "isPure": true, @@ -7684,30 +7684,30 @@ }, "value": "true" }, - "functionReturnParameters": 6196, - "id": 6213, + "functionReturnParameters": 6200, + "id": 6217, "nodeType": "Return", "src": "3991:11:17" } ] }, "documentation": "@dev Atomically increases the allowance granted to `spender` by the caller.\n * This is an alternative to {approve} that can be used as a mitigation for\nproblems described in {IERC20-approve}.\n * Emits an {Approval} event indicating the updated allowance.\n * Requirements:\n * - `spender` cannot be the zero address.", - "id": 6215, + "id": 6219, "implemented": true, "kind": "function", "modifiers": [], "name": "increaseAllowance", "nodeType": "FunctionDefinition", "parameters": { - "id": 6193, + "id": 6197, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6190, + "id": 6194, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6215, + "scope": 6219, "src": "3829:15:17", "stateVariable": false, "storageLocation": "default", @@ -7716,7 +7716,7 @@ "typeString": "address" }, "typeName": { - "id": 6189, + "id": 6193, "name": "address", "nodeType": "ElementaryTypeName", "src": "3829:7:17", @@ -7731,10 +7731,10 @@ }, { "constant": false, - "id": 6192, + "id": 6196, "name": "addedValue", "nodeType": "VariableDeclaration", - "scope": 6215, + "scope": 6219, "src": "3846:18:17", "stateVariable": false, "storageLocation": "default", @@ -7743,7 +7743,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6191, + "id": 6195, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3846:7:17", @@ -7759,15 +7759,15 @@ "src": "3828:37:17" }, "returnParameters": { - "id": 6196, + "id": 6200, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6195, + "id": 6199, "name": "", "nodeType": "VariableDeclaration", - "scope": 6215, + "scope": 6219, "src": "3882:4:17", "stateVariable": false, "storageLocation": "default", @@ -7776,7 +7776,7 @@ "typeString": "bool" }, "typeName": { - "id": 6194, + "id": 6198, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3882:4:17", @@ -7791,7 +7791,7 @@ ], "src": "3881:6:17" }, - "scope": 6459, + "scope": 6463, "src": "3802:207:17", "stateMutability": "nonpayable", "superFunction": null, @@ -7799,7 +7799,7 @@ }, { "body": { - "id": 6242, + "id": 6246, "nodeType": "Block", "src": "4587:167:17", "statements": [ @@ -7812,18 +7812,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 6225, + "id": 6229, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5737, + "referencedDeclaration": 5741, "src": "4606:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6226, + "id": 6230, "isConstant": false, "isLValue": false, "isPure": false, @@ -7839,11 +7839,11 @@ }, { "argumentTypes": null, - "id": 6227, + "id": 6231, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6217, + "referencedDeclaration": 6221, "src": "4620:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -7855,11 +7855,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6235, + "id": 6239, "name": "subtractedValue", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6219, + "referencedDeclaration": 6223, "src": "4668:15:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7869,7 +7869,7 @@ { "argumentTypes": null, "hexValue": "45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f", - "id": 6236, + "id": 6240, "isConstant": false, "isLValue": false, "isPure": true, @@ -7902,35 +7902,35 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6228, + "id": 6232, "name": "_allowances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6076, + "referencedDeclaration": 6080, "src": "4629:11:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 6231, + "id": 6235, "indexExpression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], - "id": 6229, + "id": 6233, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5737, + "referencedDeclaration": 5741, "src": "4641:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6230, + "id": 6234, "isConstant": false, "isLValue": false, "isPure": false, @@ -7955,14 +7955,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 6233, + "id": 6237, "indexExpression": { "argumentTypes": null, - "id": 6232, + "id": 6236, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6217, + "referencedDeclaration": 6221, "src": "4655:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -7980,21 +7980,21 @@ "typeString": "uint256" } }, - "id": 6234, + "id": 6238, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sub", "nodeType": "MemberAccess", - "referencedDeclaration": 5819, + "referencedDeclaration": 5823, "src": "4629:38:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_string_memory_ptr_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256,string memory) pure returns (uint256)" } }, - "id": 6237, + "id": 6241, "isConstant": false, "isLValue": false, "isPure": false, @@ -8024,18 +8024,18 @@ "typeString": "uint256" } ], - "id": 6224, + "id": 6228, "name": "_approve", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6429, + "referencedDeclaration": 6433, "src": "4597:8:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6238, + "id": 6242, "isConstant": false, "isLValue": false, "isPure": false, @@ -8049,7 +8049,7 @@ "typeString": "tuple()" } }, - "id": 6239, + "id": 6243, "nodeType": "ExpressionStatement", "src": "4597:129:17" }, @@ -8057,7 +8057,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 6240, + "id": 6244, "isConstant": false, "isLValue": false, "isPure": true, @@ -8072,30 +8072,30 @@ }, "value": "true" }, - "functionReturnParameters": 6223, - "id": 6241, + "functionReturnParameters": 6227, + "id": 6245, "nodeType": "Return", "src": "4736:11:17" } ] }, "documentation": "@dev Atomically decreases the allowance granted to `spender` by the caller.\n * This is an alternative to {approve} that can be used as a mitigation for\nproblems described in {IERC20-approve}.\n * Emits an {Approval} event indicating the updated allowance.\n * Requirements:\n * - `spender` cannot be the zero address.\n- `spender` must have allowance for the caller of at least\n`subtractedValue`.", - "id": 6243, + "id": 6247, "implemented": true, "kind": "function", "modifiers": [], "name": "decreaseAllowance", "nodeType": "FunctionDefinition", "parameters": { - "id": 6220, + "id": 6224, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6217, + "id": 6221, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6243, + "scope": 6247, "src": "4523:15:17", "stateVariable": false, "storageLocation": "default", @@ -8104,7 +8104,7 @@ "typeString": "address" }, "typeName": { - "id": 6216, + "id": 6220, "name": "address", "nodeType": "ElementaryTypeName", "src": "4523:7:17", @@ -8119,10 +8119,10 @@ }, { "constant": false, - "id": 6219, + "id": 6223, "name": "subtractedValue", "nodeType": "VariableDeclaration", - "scope": 6243, + "scope": 6247, "src": "4540:23:17", "stateVariable": false, "storageLocation": "default", @@ -8131,7 +8131,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6218, + "id": 6222, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "4540:7:17", @@ -8147,15 +8147,15 @@ "src": "4522:42:17" }, "returnParameters": { - "id": 6223, + "id": 6227, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6222, + "id": 6226, "name": "", "nodeType": "VariableDeclaration", - "scope": 6243, + "scope": 6247, "src": "4581:4:17", "stateVariable": false, "storageLocation": "default", @@ -8164,7 +8164,7 @@ "typeString": "bool" }, "typeName": { - "id": 6221, + "id": 6225, "name": "bool", "nodeType": "ElementaryTypeName", "src": "4581:4:17", @@ -8179,7 +8179,7 @@ ], "src": "4580:6:17" }, - "scope": 6459, + "scope": 6463, "src": "4496:258:17", "stateMutability": "nonpayable", "superFunction": null, @@ -8187,7 +8187,7 @@ }, { "body": { - "id": 6299, + "id": 6303, "nodeType": "Block", "src": "5307:385:17", "statements": [ @@ -8201,18 +8201,18 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6257, + "id": 6261, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6253, + "id": 6257, "name": "sender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6245, + "referencedDeclaration": 6249, "src": "5325:6:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -8227,7 +8227,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6255, + "id": 6259, "isConstant": false, "isLValue": false, "isPure": true, @@ -8250,7 +8250,7 @@ "typeString": "int_const 0" } ], - "id": 6254, + "id": 6258, "isConstant": false, "isLValue": false, "isPure": true, @@ -8263,7 +8263,7 @@ }, "typeName": "address" }, - "id": 6256, + "id": 6260, "isConstant": false, "isLValue": false, "isPure": true, @@ -8286,7 +8286,7 @@ { "argumentTypes": null, "hexValue": "45524332303a207472616e736665722066726f6d20746865207a65726f2061646472657373", - "id": 6258, + "id": 6262, "isConstant": false, "isLValue": false, "isPure": true, @@ -8313,21 +8313,21 @@ "typeString": "literal_string \"ERC20: transfer from the zero address\"" } ], - "id": 6252, + "id": 6256, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "5317:7:17", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6259, + "id": 6263, "isConstant": false, "isLValue": false, "isPure": false, @@ -8341,7 +8341,7 @@ "typeString": "tuple()" } }, - "id": 6260, + "id": 6264, "nodeType": "ExpressionStatement", "src": "5317:70:17" }, @@ -8355,18 +8355,18 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6266, + "id": 6270, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6262, + "id": 6266, "name": "recipient", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6247, + "referencedDeclaration": 6251, "src": "5405:9:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -8381,7 +8381,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6264, + "id": 6268, "isConstant": false, "isLValue": false, "isPure": true, @@ -8404,7 +8404,7 @@ "typeString": "int_const 0" } ], - "id": 6263, + "id": 6267, "isConstant": false, "isLValue": false, "isPure": true, @@ -8417,7 +8417,7 @@ }, "typeName": "address" }, - "id": 6265, + "id": 6269, "isConstant": false, "isLValue": false, "isPure": true, @@ -8440,7 +8440,7 @@ { "argumentTypes": null, "hexValue": "45524332303a207472616e7366657220746f20746865207a65726f2061646472657373", - "id": 6267, + "id": 6271, "isConstant": false, "isLValue": false, "isPure": true, @@ -8467,21 +8467,21 @@ "typeString": "literal_string \"ERC20: transfer to the zero address\"" } ], - "id": 6261, + "id": 6265, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "5397:7:17", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6268, + "id": 6272, "isConstant": false, "isLValue": false, "isPure": false, @@ -8495,14 +8495,14 @@ "typeString": "tuple()" } }, - "id": 6269, + "id": 6273, "nodeType": "ExpressionStatement", "src": "5397:71:17" }, { "expression": { "argumentTypes": null, - "id": 6280, + "id": 6284, "isConstant": false, "isLValue": false, "isPure": false, @@ -8511,25 +8511,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6270, + "id": 6274, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6070, + "referencedDeclaration": 6074, "src": "5479:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6272, + "id": 6276, "indexExpression": { "argumentTypes": null, - "id": 6271, + "id": 6275, "name": "sender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6245, + "referencedDeclaration": 6249, "src": "5489:6:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -8554,11 +8554,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6277, + "id": 6281, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6249, + "referencedDeclaration": 6253, "src": "5521:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8568,7 +8568,7 @@ { "argumentTypes": null, "hexValue": "45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365", - "id": 6278, + "id": 6282, "isConstant": false, "isLValue": false, "isPure": true, @@ -8599,25 +8599,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6273, + "id": 6277, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6070, + "referencedDeclaration": 6074, "src": "5499:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6275, + "id": 6279, "indexExpression": { "argumentTypes": null, - "id": 6274, + "id": 6278, "name": "sender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6245, + "referencedDeclaration": 6249, "src": "5509:6:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -8635,21 +8635,21 @@ "typeString": "uint256" } }, - "id": 6276, + "id": 6280, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sub", "nodeType": "MemberAccess", - "referencedDeclaration": 5819, + "referencedDeclaration": 5823, "src": "5499:21:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_string_memory_ptr_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256,string memory) pure returns (uint256)" } }, - "id": 6279, + "id": 6283, "isConstant": false, "isLValue": false, "isPure": false, @@ -8669,14 +8669,14 @@ "typeString": "uint256" } }, - "id": 6281, + "id": 6285, "nodeType": "ExpressionStatement", "src": "5479:91:17" }, { "expression": { "argumentTypes": null, - "id": 6291, + "id": 6295, "isConstant": false, "isLValue": false, "isPure": false, @@ -8685,25 +8685,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6282, + "id": 6286, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6070, + "referencedDeclaration": 6074, "src": "5580:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6284, + "id": 6288, "indexExpression": { "argumentTypes": null, - "id": 6283, + "id": 6287, "name": "recipient", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6247, + "referencedDeclaration": 6251, "src": "5590:9:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -8728,11 +8728,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6289, + "id": 6293, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6249, + "referencedDeclaration": 6253, "src": "5628:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8751,25 +8751,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6285, + "id": 6289, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6070, + "referencedDeclaration": 6074, "src": "5603:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6287, + "id": 6291, "indexExpression": { "argumentTypes": null, - "id": 6286, + "id": 6290, "name": "recipient", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6247, + "referencedDeclaration": 6251, "src": "5613:9:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -8787,21 +8787,21 @@ "typeString": "uint256" } }, - "id": 6288, + "id": 6292, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "add", "nodeType": "MemberAccess", - "referencedDeclaration": 5776, + "referencedDeclaration": 5780, "src": "5603:24:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 6290, + "id": 6294, "isConstant": false, "isLValue": false, "isPure": false, @@ -8821,7 +8821,7 @@ "typeString": "uint256" } }, - "id": 6292, + "id": 6296, "nodeType": "ExpressionStatement", "src": "5580:55:17" }, @@ -8831,11 +8831,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6294, + "id": 6298, "name": "sender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6245, + "referencedDeclaration": 6249, "src": "5659:6:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -8844,11 +8844,11 @@ }, { "argumentTypes": null, - "id": 6295, + "id": 6299, "name": "recipient", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6247, + "referencedDeclaration": 6251, "src": "5667:9:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -8857,11 +8857,11 @@ }, { "argumentTypes": null, - "id": 6296, + "id": 6300, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6249, + "referencedDeclaration": 6253, "src": "5678:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8884,18 +8884,18 @@ "typeString": "uint256" } ], - "id": 6293, + "id": 6297, "name": "Transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6519, + "referencedDeclaration": 6523, "src": "5650:8:17", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6297, + "id": 6301, "isConstant": false, "isLValue": false, "isPure": false, @@ -8909,29 +8909,29 @@ "typeString": "tuple()" } }, - "id": 6298, + "id": 6302, "nodeType": "EmitStatement", "src": "5645:40:17" } ] }, "documentation": "@dev Moves tokens `amount` from `sender` to `recipient`.\n * This is internal function is equivalent to {transfer}, and can be used to\ne.g. implement automatic token fees, slashing mechanisms, etc.\n * Emits a {Transfer} event.\n * Requirements:\n * - `sender` cannot be the zero address.\n- `recipient` cannot be the zero address.\n- `sender` must have a balance of at least `amount`.", - "id": 6300, + "id": 6304, "implemented": true, "kind": "function", "modifiers": [], "name": "_transfer", "nodeType": "FunctionDefinition", "parameters": { - "id": 6250, + "id": 6254, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6245, + "id": 6249, "name": "sender", "nodeType": "VariableDeclaration", - "scope": 6300, + "scope": 6304, "src": "5247:14:17", "stateVariable": false, "storageLocation": "default", @@ -8940,7 +8940,7 @@ "typeString": "address" }, "typeName": { - "id": 6244, + "id": 6248, "name": "address", "nodeType": "ElementaryTypeName", "src": "5247:7:17", @@ -8955,10 +8955,10 @@ }, { "constant": false, - "id": 6247, + "id": 6251, "name": "recipient", "nodeType": "VariableDeclaration", - "scope": 6300, + "scope": 6304, "src": "5263:17:17", "stateVariable": false, "storageLocation": "default", @@ -8967,7 +8967,7 @@ "typeString": "address" }, "typeName": { - "id": 6246, + "id": 6250, "name": "address", "nodeType": "ElementaryTypeName", "src": "5263:7:17", @@ -8982,10 +8982,10 @@ }, { "constant": false, - "id": 6249, + "id": 6253, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6300, + "scope": 6304, "src": "5282:14:17", "stateVariable": false, "storageLocation": "default", @@ -8994,7 +8994,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6248, + "id": 6252, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5282:7:17", @@ -9010,12 +9010,12 @@ "src": "5246:51:17" }, "returnParameters": { - "id": 6251, + "id": 6255, "nodeType": "ParameterList", "parameters": [], "src": "5307:0:17" }, - "scope": 6459, + "scope": 6463, "src": "5228:464:17", "stateMutability": "nonpayable", "superFunction": null, @@ -9023,7 +9023,7 @@ }, { "body": { - "id": 6342, + "id": 6346, "nodeType": "Block", "src": "6019:245:17", "statements": [ @@ -9037,18 +9037,18 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6312, + "id": 6316, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6308, + "id": 6312, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6302, + "referencedDeclaration": 6306, "src": "6037:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9063,7 +9063,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6310, + "id": 6314, "isConstant": false, "isLValue": false, "isPure": true, @@ -9086,7 +9086,7 @@ "typeString": "int_const 0" } ], - "id": 6309, + "id": 6313, "isConstant": false, "isLValue": false, "isPure": true, @@ -9099,7 +9099,7 @@ }, "typeName": "address" }, - "id": 6311, + "id": 6315, "isConstant": false, "isLValue": false, "isPure": true, @@ -9122,7 +9122,7 @@ { "argumentTypes": null, "hexValue": "45524332303a206d696e7420746f20746865207a65726f2061646472657373", - "id": 6313, + "id": 6317, "isConstant": false, "isLValue": false, "isPure": true, @@ -9149,21 +9149,21 @@ "typeString": "literal_string \"ERC20: mint to the zero address\"" } ], - "id": 6307, + "id": 6311, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "6029:7:17", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6314, + "id": 6318, "isConstant": false, "isLValue": false, "isPure": false, @@ -9177,25 +9177,25 @@ "typeString": "tuple()" } }, - "id": 6315, + "id": 6319, "nodeType": "ExpressionStatement", "src": "6029:65:17" }, { "expression": { "argumentTypes": null, - "id": 6321, + "id": 6325, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 6316, + "id": 6320, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6078, + "referencedDeclaration": 6082, "src": "6105:12:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9209,11 +9209,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6319, + "id": 6323, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6304, + "referencedDeclaration": 6308, "src": "6137:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9230,32 +9230,32 @@ ], "expression": { "argumentTypes": null, - "id": 6317, + "id": 6321, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6078, + "referencedDeclaration": 6082, "src": "6120:12:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6318, + "id": 6322, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "add", "nodeType": "MemberAccess", - "referencedDeclaration": 5776, + "referencedDeclaration": 5780, "src": "6120:16:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 6320, + "id": 6324, "isConstant": false, "isLValue": false, "isPure": false, @@ -9275,14 +9275,14 @@ "typeString": "uint256" } }, - "id": 6322, + "id": 6326, "nodeType": "ExpressionStatement", "src": "6105:39:17" }, { "expression": { "argumentTypes": null, - "id": 6332, + "id": 6336, "isConstant": false, "isLValue": false, "isPure": false, @@ -9291,25 +9291,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6323, + "id": 6327, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6070, + "referencedDeclaration": 6074, "src": "6154:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6325, + "id": 6329, "indexExpression": { "argumentTypes": null, - "id": 6324, + "id": 6328, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6302, + "referencedDeclaration": 6306, "src": "6164:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9334,11 +9334,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6330, + "id": 6334, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6304, + "referencedDeclaration": 6308, "src": "6198:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9357,25 +9357,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6326, + "id": 6330, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6070, + "referencedDeclaration": 6074, "src": "6175:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6328, + "id": 6332, "indexExpression": { "argumentTypes": null, - "id": 6327, + "id": 6331, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6302, + "referencedDeclaration": 6306, "src": "6185:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9393,21 +9393,21 @@ "typeString": "uint256" } }, - "id": 6329, + "id": 6333, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "add", "nodeType": "MemberAccess", - "referencedDeclaration": 5776, + "referencedDeclaration": 5780, "src": "6175:22:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 6331, + "id": 6335, "isConstant": false, "isLValue": false, "isPure": false, @@ -9427,7 +9427,7 @@ "typeString": "uint256" } }, - "id": 6333, + "id": 6337, "nodeType": "ExpressionStatement", "src": "6154:51:17" }, @@ -9441,7 +9441,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6336, + "id": 6340, "isConstant": false, "isLValue": false, "isPure": true, @@ -9464,7 +9464,7 @@ "typeString": "int_const 0" } ], - "id": 6335, + "id": 6339, "isConstant": false, "isLValue": false, "isPure": true, @@ -9477,7 +9477,7 @@ }, "typeName": "address" }, - "id": 6337, + "id": 6341, "isConstant": false, "isLValue": false, "isPure": true, @@ -9493,11 +9493,11 @@ }, { "argumentTypes": null, - "id": 6338, + "id": 6342, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6302, + "referencedDeclaration": 6306, "src": "6241:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9506,11 +9506,11 @@ }, { "argumentTypes": null, - "id": 6339, + "id": 6343, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6304, + "referencedDeclaration": 6308, "src": "6250:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9533,18 +9533,18 @@ "typeString": "uint256" } ], - "id": 6334, + "id": 6338, "name": "Transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6519, + "referencedDeclaration": 6523, "src": "6220:8:17", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6340, + "id": 6344, "isConstant": false, "isLValue": false, "isPure": false, @@ -9558,29 +9558,29 @@ "typeString": "tuple()" } }, - "id": 6341, + "id": 6345, "nodeType": "EmitStatement", "src": "6215:42:17" } ] }, "documentation": "@dev Creates `amount` tokens and assigns them to `account`, increasing\nthe total supply.\n * Emits a {Transfer} event with `from` set to the zero address.\n * Requirements\n * - `to` cannot be the zero address.", - "id": 6343, + "id": 6347, "implemented": true, "kind": "function", "modifiers": [], "name": "_mint", "nodeType": "FunctionDefinition", "parameters": { - "id": 6305, + "id": 6309, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6302, + "id": 6306, "name": "account", "nodeType": "VariableDeclaration", - "scope": 6343, + "scope": 6347, "src": "5977:15:17", "stateVariable": false, "storageLocation": "default", @@ -9589,7 +9589,7 @@ "typeString": "address" }, "typeName": { - "id": 6301, + "id": 6305, "name": "address", "nodeType": "ElementaryTypeName", "src": "5977:7:17", @@ -9604,10 +9604,10 @@ }, { "constant": false, - "id": 6304, + "id": 6308, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6343, + "scope": 6347, "src": "5994:14:17", "stateVariable": false, "storageLocation": "default", @@ -9616,7 +9616,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6303, + "id": 6307, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5994:7:17", @@ -9632,12 +9632,12 @@ "src": "5976:33:17" }, "returnParameters": { - "id": 6306, + "id": 6310, "nodeType": "ParameterList", "parameters": [], "src": "6019:0:17" }, - "scope": 6459, + "scope": 6463, "src": "5962:302:17", "stateMutability": "nonpayable", "superFunction": null, @@ -9645,7 +9645,7 @@ }, { "body": { - "id": 6386, + "id": 6390, "nodeType": "Block", "src": "6640:285:17", "statements": [ @@ -9659,18 +9659,18 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6355, + "id": 6359, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6351, + "id": 6355, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6345, + "referencedDeclaration": 6349, "src": "6658:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9685,7 +9685,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6353, + "id": 6357, "isConstant": false, "isLValue": false, "isPure": true, @@ -9708,7 +9708,7 @@ "typeString": "int_const 0" } ], - "id": 6352, + "id": 6356, "isConstant": false, "isLValue": false, "isPure": true, @@ -9721,7 +9721,7 @@ }, "typeName": "address" }, - "id": 6354, + "id": 6358, "isConstant": false, "isLValue": false, "isPure": true, @@ -9744,7 +9744,7 @@ { "argumentTypes": null, "hexValue": "45524332303a206275726e2066726f6d20746865207a65726f2061646472657373", - "id": 6356, + "id": 6360, "isConstant": false, "isLValue": false, "isPure": true, @@ -9771,21 +9771,21 @@ "typeString": "literal_string \"ERC20: burn from the zero address\"" } ], - "id": 6350, + "id": 6354, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "6650:7:17", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6357, + "id": 6361, "isConstant": false, "isLValue": false, "isPure": false, @@ -9799,14 +9799,14 @@ "typeString": "tuple()" } }, - "id": 6358, + "id": 6362, "nodeType": "ExpressionStatement", "src": "6650:67:17" }, { "expression": { "argumentTypes": null, - "id": 6369, + "id": 6373, "isConstant": false, "isLValue": false, "isPure": false, @@ -9815,25 +9815,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6359, + "id": 6363, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6070, + "referencedDeclaration": 6074, "src": "6728:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6361, + "id": 6365, "indexExpression": { "argumentTypes": null, - "id": 6360, + "id": 6364, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6345, + "referencedDeclaration": 6349, "src": "6738:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9858,11 +9858,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6366, + "id": 6370, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6347, + "referencedDeclaration": 6351, "src": "6772:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9872,7 +9872,7 @@ { "argumentTypes": null, "hexValue": "45524332303a206275726e20616d6f756e7420657863656564732062616c616e6365", - "id": 6367, + "id": 6371, "isConstant": false, "isLValue": false, "isPure": true, @@ -9903,25 +9903,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6362, + "id": 6366, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6070, + "referencedDeclaration": 6074, "src": "6749:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6364, + "id": 6368, "indexExpression": { "argumentTypes": null, - "id": 6363, + "id": 6367, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6345, + "referencedDeclaration": 6349, "src": "6759:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9939,21 +9939,21 @@ "typeString": "uint256" } }, - "id": 6365, + "id": 6369, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sub", "nodeType": "MemberAccess", - "referencedDeclaration": 5819, + "referencedDeclaration": 5823, "src": "6749:22:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_string_memory_ptr_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256,string memory) pure returns (uint256)" } }, - "id": 6368, + "id": 6372, "isConstant": false, "isLValue": false, "isPure": false, @@ -9973,25 +9973,25 @@ "typeString": "uint256" } }, - "id": 6370, + "id": 6374, "nodeType": "ExpressionStatement", "src": "6728:89:17" }, { "expression": { "argumentTypes": null, - "id": 6376, + "id": 6380, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 6371, + "id": 6375, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6078, + "referencedDeclaration": 6082, "src": "6827:12:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10005,11 +10005,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6374, + "id": 6378, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6347, + "referencedDeclaration": 6351, "src": "6859:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10026,32 +10026,32 @@ ], "expression": { "argumentTypes": null, - "id": 6372, + "id": 6376, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6078, + "referencedDeclaration": 6082, "src": "6842:12:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6373, + "id": 6377, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sub", "nodeType": "MemberAccess", - "referencedDeclaration": 5792, + "referencedDeclaration": 5796, "src": "6842:16:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 6375, + "id": 6379, "isConstant": false, "isLValue": false, "isPure": false, @@ -10071,7 +10071,7 @@ "typeString": "uint256" } }, - "id": 6377, + "id": 6381, "nodeType": "ExpressionStatement", "src": "6827:39:17" }, @@ -10081,11 +10081,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6379, + "id": 6383, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6345, + "referencedDeclaration": 6349, "src": "6890:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10098,7 +10098,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6381, + "id": 6385, "isConstant": false, "isLValue": false, "isPure": true, @@ -10121,7 +10121,7 @@ "typeString": "int_const 0" } ], - "id": 6380, + "id": 6384, "isConstant": false, "isLValue": false, "isPure": true, @@ -10134,7 +10134,7 @@ }, "typeName": "address" }, - "id": 6382, + "id": 6386, "isConstant": false, "isLValue": false, "isPure": true, @@ -10150,11 +10150,11 @@ }, { "argumentTypes": null, - "id": 6383, + "id": 6387, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6347, + "referencedDeclaration": 6351, "src": "6911:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10177,18 +10177,18 @@ "typeString": "uint256" } ], - "id": 6378, + "id": 6382, "name": "Transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6519, + "referencedDeclaration": 6523, "src": "6881:8:17", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6384, + "id": 6388, "isConstant": false, "isLValue": false, "isPure": false, @@ -10202,29 +10202,29 @@ "typeString": "tuple()" } }, - "id": 6385, + "id": 6389, "nodeType": "EmitStatement", "src": "6876:42:17" } ] }, "documentation": "@dev Destroys `amount` tokens from `account`, reducing the\ntotal supply.\n * Emits a {Transfer} event with `to` set to the zero address.\n * Requirements\n * - `account` cannot be the zero address.\n- `account` must have at least `amount` tokens.", - "id": 6387, + "id": 6391, "implemented": true, "kind": "function", "modifiers": [], "name": "_burn", "nodeType": "FunctionDefinition", "parameters": { - "id": 6348, + "id": 6352, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6345, + "id": 6349, "name": "account", "nodeType": "VariableDeclaration", - "scope": 6387, + "scope": 6391, "src": "6598:15:17", "stateVariable": false, "storageLocation": "default", @@ -10233,7 +10233,7 @@ "typeString": "address" }, "typeName": { - "id": 6344, + "id": 6348, "name": "address", "nodeType": "ElementaryTypeName", "src": "6598:7:17", @@ -10248,10 +10248,10 @@ }, { "constant": false, - "id": 6347, + "id": 6351, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6387, + "scope": 6391, "src": "6615:14:17", "stateVariable": false, "storageLocation": "default", @@ -10260,7 +10260,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6346, + "id": 6350, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "6615:7:17", @@ -10276,12 +10276,12 @@ "src": "6597:33:17" }, "returnParameters": { - "id": 6349, + "id": 6353, "nodeType": "ParameterList", "parameters": [], "src": "6640:0:17" }, - "scope": 6459, + "scope": 6463, "src": "6583:342:17", "stateMutability": "nonpayable", "superFunction": null, @@ -10289,7 +10289,7 @@ }, { "body": { - "id": 6428, + "id": 6432, "nodeType": "Block", "src": "7425:257:17", "statements": [ @@ -10303,18 +10303,18 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6401, + "id": 6405, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6397, + "id": 6401, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6389, + "referencedDeclaration": 6393, "src": "7443:5:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10329,7 +10329,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6399, + "id": 6403, "isConstant": false, "isLValue": false, "isPure": true, @@ -10352,7 +10352,7 @@ "typeString": "int_const 0" } ], - "id": 6398, + "id": 6402, "isConstant": false, "isLValue": false, "isPure": true, @@ -10365,7 +10365,7 @@ }, "typeName": "address" }, - "id": 6400, + "id": 6404, "isConstant": false, "isLValue": false, "isPure": true, @@ -10388,7 +10388,7 @@ { "argumentTypes": null, "hexValue": "45524332303a20617070726f76652066726f6d20746865207a65726f2061646472657373", - "id": 6402, + "id": 6406, "isConstant": false, "isLValue": false, "isPure": true, @@ -10415,21 +10415,21 @@ "typeString": "literal_string \"ERC20: approve from the zero address\"" } ], - "id": 6396, + "id": 6400, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "7435:7:17", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6403, + "id": 6407, "isConstant": false, "isLValue": false, "isPure": false, @@ -10443,7 +10443,7 @@ "typeString": "tuple()" } }, - "id": 6404, + "id": 6408, "nodeType": "ExpressionStatement", "src": "7435:68:17" }, @@ -10457,18 +10457,18 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6410, + "id": 6414, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6406, + "id": 6410, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6391, + "referencedDeclaration": 6395, "src": "7521:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10483,7 +10483,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6408, + "id": 6412, "isConstant": false, "isLValue": false, "isPure": true, @@ -10506,7 +10506,7 @@ "typeString": "int_const 0" } ], - "id": 6407, + "id": 6411, "isConstant": false, "isLValue": false, "isPure": true, @@ -10519,7 +10519,7 @@ }, "typeName": "address" }, - "id": 6409, + "id": 6413, "isConstant": false, "isLValue": false, "isPure": true, @@ -10542,7 +10542,7 @@ { "argumentTypes": null, "hexValue": "45524332303a20617070726f766520746f20746865207a65726f2061646472657373", - "id": 6411, + "id": 6415, "isConstant": false, "isLValue": false, "isPure": true, @@ -10569,21 +10569,21 @@ "typeString": "literal_string \"ERC20: approve to the zero address\"" } ], - "id": 6405, + "id": 6409, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "7513:7:17", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6412, + "id": 6416, "isConstant": false, "isLValue": false, "isPure": false, @@ -10597,14 +10597,14 @@ "typeString": "tuple()" } }, - "id": 6413, + "id": 6417, "nodeType": "ExpressionStatement", "src": "7513:68:17" }, { "expression": { "argumentTypes": null, - "id": 6420, + "id": 6424, "isConstant": false, "isLValue": false, "isPure": false, @@ -10615,25 +10615,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6414, + "id": 6418, "name": "_allowances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6076, + "referencedDeclaration": 6080, "src": "7592:11:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 6417, + "id": 6421, "indexExpression": { "argumentTypes": null, - "id": 6415, + "id": 6419, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6389, + "referencedDeclaration": 6393, "src": "7604:5:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10651,14 +10651,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 6418, + "id": 6422, "indexExpression": { "argumentTypes": null, - "id": 6416, + "id": 6420, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6391, + "referencedDeclaration": 6395, "src": "7611:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10680,11 +10680,11 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 6419, + "id": 6423, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6393, + "referencedDeclaration": 6397, "src": "7622:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10697,7 +10697,7 @@ "typeString": "uint256" } }, - "id": 6421, + "id": 6425, "nodeType": "ExpressionStatement", "src": "7592:36:17" }, @@ -10707,11 +10707,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6423, + "id": 6427, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6389, + "referencedDeclaration": 6393, "src": "7652:5:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10720,11 +10720,11 @@ }, { "argumentTypes": null, - "id": 6424, + "id": 6428, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6391, + "referencedDeclaration": 6395, "src": "7659:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10733,11 +10733,11 @@ }, { "argumentTypes": null, - "id": 6425, + "id": 6429, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6393, + "referencedDeclaration": 6397, "src": "7668:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10760,18 +10760,18 @@ "typeString": "uint256" } ], - "id": 6422, + "id": 6426, "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6527, + "referencedDeclaration": 6531, "src": "7643:8:17", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6426, + "id": 6430, "isConstant": false, "isLValue": false, "isPure": false, @@ -10785,29 +10785,29 @@ "typeString": "tuple()" } }, - "id": 6427, + "id": 6431, "nodeType": "EmitStatement", "src": "7638:37:17" } ] }, "documentation": "@dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.\n * This is internal function is equivalent to `approve`, and can be used to\ne.g. set automatic allowances for certain subsystems, etc.\n * Emits an {Approval} event.\n * Requirements:\n * - `owner` cannot be the zero address.\n- `spender` cannot be the zero address.", - "id": 6429, + "id": 6433, "implemented": true, "kind": "function", "modifiers": [], "name": "_approve", "nodeType": "FunctionDefinition", "parameters": { - "id": 6394, + "id": 6398, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6389, + "id": 6393, "name": "owner", "nodeType": "VariableDeclaration", - "scope": 6429, + "scope": 6433, "src": "7368:13:17", "stateVariable": false, "storageLocation": "default", @@ -10816,7 +10816,7 @@ "typeString": "address" }, "typeName": { - "id": 6388, + "id": 6392, "name": "address", "nodeType": "ElementaryTypeName", "src": "7368:7:17", @@ -10831,10 +10831,10 @@ }, { "constant": false, - "id": 6391, + "id": 6395, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6429, + "scope": 6433, "src": "7383:15:17", "stateVariable": false, "storageLocation": "default", @@ -10843,7 +10843,7 @@ "typeString": "address" }, "typeName": { - "id": 6390, + "id": 6394, "name": "address", "nodeType": "ElementaryTypeName", "src": "7383:7:17", @@ -10858,10 +10858,10 @@ }, { "constant": false, - "id": 6393, + "id": 6397, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6429, + "scope": 6433, "src": "7400:14:17", "stateVariable": false, "storageLocation": "default", @@ -10870,7 +10870,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6392, + "id": 6396, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7400:7:17", @@ -10886,12 +10886,12 @@ "src": "7367:48:17" }, "returnParameters": { - "id": 6395, + "id": 6399, "nodeType": "ParameterList", "parameters": [], "src": "7425:0:17" }, - "scope": 6459, + "scope": 6463, "src": "7350:332:17", "stateMutability": "nonpayable", "superFunction": null, @@ -10899,7 +10899,7 @@ }, { "body": { - "id": 6457, + "id": 6461, "nodeType": "Block", "src": "7921:168:17", "statements": [ @@ -10909,11 +10909,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6437, + "id": 6441, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6431, + "referencedDeclaration": 6435, "src": "7937:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10922,11 +10922,11 @@ }, { "argumentTypes": null, - "id": 6438, + "id": 6442, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6433, + "referencedDeclaration": 6437, "src": "7946:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10945,18 +10945,18 @@ "typeString": "uint256" } ], - "id": 6436, + "id": 6440, "name": "_burn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6387, + "referencedDeclaration": 6391, "src": "7931:5:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,uint256)" } }, - "id": 6439, + "id": 6443, "isConstant": false, "isLValue": false, "isPure": false, @@ -10970,7 +10970,7 @@ "typeString": "tuple()" } }, - "id": 6440, + "id": 6444, "nodeType": "ExpressionStatement", "src": "7931:22:17" }, @@ -10980,11 +10980,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6442, + "id": 6446, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6431, + "referencedDeclaration": 6435, "src": "7972:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10996,18 +10996,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 6443, + "id": 6447, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5737, + "referencedDeclaration": 5741, "src": "7981:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6444, + "id": 6448, "isConstant": false, "isLValue": false, "isPure": false, @@ -11026,11 +11026,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6452, + "id": 6456, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6433, + "referencedDeclaration": 6437, "src": "8034:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11040,7 +11040,7 @@ { "argumentTypes": null, "hexValue": "45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e6365", - "id": 6453, + "id": 6457, "isConstant": false, "isLValue": false, "isPure": true, @@ -11073,25 +11073,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6445, + "id": 6449, "name": "_allowances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6076, + "referencedDeclaration": 6080, "src": "7995:11:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 6447, + "id": 6451, "indexExpression": { "argumentTypes": null, - "id": 6446, + "id": 6450, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6431, + "referencedDeclaration": 6435, "src": "8007:7:17", "typeDescriptions": { "typeIdentifier": "t_address", @@ -11109,24 +11109,24 @@ "typeString": "mapping(address => uint256)" } }, - "id": 6450, + "id": 6454, "indexExpression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], - "id": 6448, + "id": 6452, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5737, + "referencedDeclaration": 5741, "src": "8016:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6449, + "id": 6453, "isConstant": false, "isLValue": false, "isPure": false, @@ -11151,21 +11151,21 @@ "typeString": "uint256" } }, - "id": 6451, + "id": 6455, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sub", "nodeType": "MemberAccess", - "referencedDeclaration": 5819, + "referencedDeclaration": 5823, "src": "7995:38:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_string_memory_ptr_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256,string memory) pure returns (uint256)" } }, - "id": 6454, + "id": 6458, "isConstant": false, "isLValue": false, "isPure": false, @@ -11195,18 +11195,18 @@ "typeString": "uint256" } ], - "id": 6441, + "id": 6445, "name": "_approve", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6429, + "referencedDeclaration": 6433, "src": "7963:8:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6455, + "id": 6459, "isConstant": false, "isLValue": false, "isPure": false, @@ -11220,29 +11220,29 @@ "typeString": "tuple()" } }, - "id": 6456, + "id": 6460, "nodeType": "ExpressionStatement", "src": "7963:119:17" } ] }, "documentation": "@dev Destroys `amount` tokens from `account`.`amount` is then deducted\nfrom the caller's allowance.\n * See {_burn} and {_approve}.", - "id": 6458, + "id": 6462, "implemented": true, "kind": "function", "modifiers": [], "name": "_burnFrom", "nodeType": "FunctionDefinition", "parameters": { - "id": 6434, + "id": 6438, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6431, + "id": 6435, "name": "account", "nodeType": "VariableDeclaration", - "scope": 6458, + "scope": 6462, "src": "7879:15:17", "stateVariable": false, "storageLocation": "default", @@ -11251,7 +11251,7 @@ "typeString": "address" }, "typeName": { - "id": 6430, + "id": 6434, "name": "address", "nodeType": "ElementaryTypeName", "src": "7879:7:17", @@ -11266,10 +11266,10 @@ }, { "constant": false, - "id": 6433, + "id": 6437, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6458, + "scope": 6462, "src": "7896:14:17", "stateVariable": false, "storageLocation": "default", @@ -11278,7 +11278,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6432, + "id": 6436, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7896:7:17", @@ -11294,19 +11294,19 @@ "src": "7878:33:17" }, "returnParameters": { - "id": 6435, + "id": 6439, "nodeType": "ParameterList", "parameters": [], "src": "7921:0:17" }, - "scope": 6459, + "scope": 6463, "src": "7860:229:17", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" } ], - "scope": 6460, + "scope": 6464, "src": "1268:6823:17" } ], @@ -11318,7 +11318,7 @@ }, "networks": {}, "schemaVersion": "3.2.4", - "updatedAt": "2020-10-01T09:28:54.483Z", + "updatedAt": "2020-10-01T15:18:05.195Z", "devdoc": { "details": "Implementation of the {IERC20} interface. * This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20Mintable}. * TIP: For a detailed writeup see our guide https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How to implement supply mechanisms]. * We have followed general OpenZeppelin guidelines: functions revert instead of returning `false` on failure. This behavior is nonetheless conventional and does not conflict with the expectations of ERC20 applications. * Additionally, an {Approval} event is emitted on calls to {transferFrom}. This allows applications to reconstruct the allowance for all accounts just by listening to said events. Other implementations of the EIP may not emit these events, as it isn't required by the specification. * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} functions have been added to mitigate the well-known issues around setting allowances. See {IERC20-approve}.", "methods": { diff --git a/artifacts/FixedRateExchange.json b/artifacts/FixedRateExchange.json index b527ce35f..d9c8c43ee 100644 --- a/artifacts/FixedRateExchange.json +++ b/artifacts/FixedRateExchange.json @@ -407,7 +407,7 @@ "id": 4402, "nodeType": "ImportDirective", "scope": 4982, - "sourceUnit": 5937, + "sourceUnit": 5941, "src": "228:59:9", "symbolAliases": [], "unitAlias": "" @@ -432,10 +432,10 @@ "id": 4403, "name": "SafeMath", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 5936, + "referencedDeclaration": 5940, "src": "569:8:9", "typeDescriptions": { - "typeIdentifier": "t_contract$_SafeMath_$5936", + "typeIdentifier": "t_contract$_SafeMath_$5940", "typeString": "library SafeMath" } }, @@ -1008,10 +1008,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1008:7:9", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -1170,7 +1170,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "1345:3:9", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -1231,10 +1231,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1285:7:9", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -1952,10 +1952,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2646:7:9", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -2106,10 +2106,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2777:7:9", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -2217,10 +2217,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2908:7:9", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -2333,10 +2333,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "3042:7:9", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -2656,10 +2656,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "3160:7:9", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -2754,7 +2754,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3448:3:9", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -2950,10 +2950,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "3478:7:9", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -3057,7 +3057,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3702:3:9", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -3303,7 +3303,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3978:3:9", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -3415,7 +3415,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4092:3:9", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -3659,7 +3659,7 @@ "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6530, + "referencedDeclaration": 6534, "src": "4637:3:9", "typeDescriptions": { "typeIdentifier": "t_magic_abi", @@ -3706,7 +3706,7 @@ "name": "keccak256", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6537, + "referencedDeclaration": 6541, "src": "4614:9:9", "typeDescriptions": { "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$", @@ -4008,7 +4008,7 @@ "lValueRequested": false, "memberName": "mul", "nodeType": "MemberAccess", - "referencedDeclaration": 5853, + "referencedDeclaration": 5857, "src": "5289:19:9", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", @@ -4036,7 +4036,7 @@ "lValueRequested": false, "memberName": "div", "nodeType": "MemberAccess", - "referencedDeclaration": 5869, + "referencedDeclaration": 5873, "src": "5289:69:9", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", @@ -4302,10 +4302,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "5782:7:9", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -4447,7 +4447,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "6077:3:9", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -4707,10 +4707,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "5978:7:9", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -4806,7 +4806,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "6439:3:9", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -5010,10 +5010,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "6287:7:9", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -5063,7 +5063,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "6647:3:9", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -5462,10 +5462,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "7385:7:9", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -5604,7 +5604,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "7603:3:9", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -5984,7 +5984,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "8291:3:9", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -6175,7 +6175,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "8119:3:9", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -6906,7 +6906,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6589, + "referencedDeclaration": 6593, "src": "9367:4:9", "typeDescriptions": { "typeIdentifier": "t_contract$_FixedRateExchange_$4981", @@ -8335,7 +8335,7 @@ "id": 4402, "nodeType": "ImportDirective", "scope": 4982, - "sourceUnit": 5937, + "sourceUnit": 5941, "src": "228:59:9", "symbolAliases": [], "unitAlias": "" @@ -8360,10 +8360,10 @@ "id": 4403, "name": "SafeMath", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 5936, + "referencedDeclaration": 5940, "src": "569:8:9", "typeDescriptions": { - "typeIdentifier": "t_contract$_SafeMath_$5936", + "typeIdentifier": "t_contract$_SafeMath_$5940", "typeString": "library SafeMath" } }, @@ -8936,10 +8936,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1008:7:9", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -9098,7 +9098,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "1345:3:9", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -9159,10 +9159,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1285:7:9", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -9880,10 +9880,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2646:7:9", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -10034,10 +10034,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2777:7:9", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -10145,10 +10145,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2908:7:9", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -10261,10 +10261,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "3042:7:9", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -10584,10 +10584,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "3160:7:9", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -10682,7 +10682,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3448:3:9", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -10878,10 +10878,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "3478:7:9", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -10985,7 +10985,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3702:3:9", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -11231,7 +11231,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "3978:3:9", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -11343,7 +11343,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "4092:3:9", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -11587,7 +11587,7 @@ "name": "abi", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6530, + "referencedDeclaration": 6534, "src": "4637:3:9", "typeDescriptions": { "typeIdentifier": "t_magic_abi", @@ -11634,7 +11634,7 @@ "name": "keccak256", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6537, + "referencedDeclaration": 6541, "src": "4614:9:9", "typeDescriptions": { "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$", @@ -11936,7 +11936,7 @@ "lValueRequested": false, "memberName": "mul", "nodeType": "MemberAccess", - "referencedDeclaration": 5853, + "referencedDeclaration": 5857, "src": "5289:19:9", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", @@ -11964,7 +11964,7 @@ "lValueRequested": false, "memberName": "div", "nodeType": "MemberAccess", - "referencedDeclaration": 5869, + "referencedDeclaration": 5873, "src": "5289:69:9", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", @@ -12230,10 +12230,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "5782:7:9", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -12375,7 +12375,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "6077:3:9", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -12635,10 +12635,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "5978:7:9", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -12734,7 +12734,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "6439:3:9", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -12938,10 +12938,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "6287:7:9", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -12991,7 +12991,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "6647:3:9", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -13390,10 +13390,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "7385:7:9", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -13532,7 +13532,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "7603:3:9", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -13912,7 +13912,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "8291:3:9", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -14103,7 +14103,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "8119:3:9", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -14834,7 +14834,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6589, + "referencedDeclaration": 6593, "src": "9367:4:9", "typeDescriptions": { "typeIdentifier": "t_contract$_FixedRateExchange_$4981", @@ -16232,7 +16232,7 @@ }, "networks": {}, "schemaVersion": "3.2.4", - "updatedAt": "2020-10-01T09:28:54.466Z", + "updatedAt": "2020-10-01T15:18:05.172Z", "devdoc": { "details": "FixedRateExchange is a fixed rate exchange Contract Marketplaces uses this contract to allow consumers exchanging datatokens with ocean token using a fixed exchange rate.", "methods": { diff --git a/artifacts/IERC20.json b/artifacts/IERC20.json index db4a82f2f..86ab25221 100644 --- a/artifacts/IERC20.json +++ b/artifacts/IERC20.json @@ -186,14 +186,14 @@ "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol", "exportedSymbols": { "IERC20": [ - 6528 + 6532 ] }, - "id": 6529, + "id": 6533, "nodeType": "SourceUnit", "nodes": [ { - "id": 6461, + "id": 6465, "literals": [ "solidity", "^", @@ -209,9 +209,9 @@ "contractKind": "interface", "documentation": "@dev Interface of the ERC20 standard as defined in the EIP. Does not include\nthe optional functions; to access them see {ERC20Detailed}.", "fullyImplemented": false, - "id": 6528, + "id": 6532, "linearizedBaseContracts": [ - 6528 + 6532 ], "name": "IERC20", "nodeType": "ContractDefinition", @@ -219,28 +219,28 @@ { "body": null, "documentation": "@dev Returns the amount of tokens in existence.", - "id": 6466, + "id": 6470, "implemented": false, "kind": "function", "modifiers": [], "name": "totalSupply", "nodeType": "FunctionDefinition", "parameters": { - "id": 6462, + "id": 6466, "nodeType": "ParameterList", "parameters": [], "src": "290:2:18" }, "returnParameters": { - "id": 6465, + "id": 6469, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6464, + "id": 6468, "name": "", "nodeType": "VariableDeclaration", - "scope": 6466, + "scope": 6470, "src": "316:7:18", "stateVariable": false, "storageLocation": "default", @@ -249,7 +249,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6463, + "id": 6467, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "316:7:18", @@ -264,7 +264,7 @@ ], "src": "315:9:18" }, - "scope": 6528, + "scope": 6532, "src": "270:55:18", "stateMutability": "view", "superFunction": null, @@ -273,22 +273,22 @@ { "body": null, "documentation": "@dev Returns the amount of tokens owned by `account`.", - "id": 6473, + "id": 6477, "implemented": false, "kind": "function", "modifiers": [], "name": "balanceOf", "nodeType": "FunctionDefinition", "parameters": { - "id": 6469, + "id": 6473, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6468, + "id": 6472, "name": "account", "nodeType": "VariableDeclaration", - "scope": 6473, + "scope": 6477, "src": "427:15:18", "stateVariable": false, "storageLocation": "default", @@ -297,7 +297,7 @@ "typeString": "address" }, "typeName": { - "id": 6467, + "id": 6471, "name": "address", "nodeType": "ElementaryTypeName", "src": "427:7:18", @@ -314,15 +314,15 @@ "src": "426:17:18" }, "returnParameters": { - "id": 6472, + "id": 6476, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6471, + "id": 6475, "name": "", "nodeType": "VariableDeclaration", - "scope": 6473, + "scope": 6477, "src": "467:7:18", "stateVariable": false, "storageLocation": "default", @@ -331,7 +331,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6470, + "id": 6474, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "467:7:18", @@ -346,7 +346,7 @@ ], "src": "466:9:18" }, - "scope": 6528, + "scope": 6532, "src": "408:68:18", "stateMutability": "view", "superFunction": 5071, @@ -355,22 +355,22 @@ { "body": null, "documentation": "@dev Moves `amount` tokens from the caller's account to `recipient`.\n * Returns a boolean value indicating whether the operation succeeded.\n * Emits a {Transfer} event.", - "id": 6482, + "id": 6486, "implemented": false, "kind": "function", "modifiers": [], "name": "transfer", "nodeType": "FunctionDefinition", "parameters": { - "id": 6478, + "id": 6482, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6475, + "id": 6479, "name": "recipient", "nodeType": "VariableDeclaration", - "scope": 6482, + "scope": 6486, "src": "714:17:18", "stateVariable": false, "storageLocation": "default", @@ -379,7 +379,7 @@ "typeString": "address" }, "typeName": { - "id": 6474, + "id": 6478, "name": "address", "nodeType": "ElementaryTypeName", "src": "714:7:18", @@ -394,10 +394,10 @@ }, { "constant": false, - "id": 6477, + "id": 6481, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6482, + "scope": 6486, "src": "733:14:18", "stateVariable": false, "storageLocation": "default", @@ -406,7 +406,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6476, + "id": 6480, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "733:7:18", @@ -422,15 +422,15 @@ "src": "713:35:18" }, "returnParameters": { - "id": 6481, + "id": 6485, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6480, + "id": 6484, "name": "", "nodeType": "VariableDeclaration", - "scope": 6482, + "scope": 6486, "src": "767:4:18", "stateVariable": false, "storageLocation": "default", @@ -439,7 +439,7 @@ "typeString": "bool" }, "typeName": { - "id": 6479, + "id": 6483, "name": "bool", "nodeType": "ElementaryTypeName", "src": "767:4:18", @@ -454,7 +454,7 @@ ], "src": "766:6:18" }, - "scope": 6528, + "scope": 6532, "src": "696:77:18", "stateMutability": "nonpayable", "superFunction": 5080, @@ -463,22 +463,22 @@ { "body": null, "documentation": "@dev Returns the remaining number of tokens that `spender` will be\nallowed to spend on behalf of `owner` through {transferFrom}. This is\nzero by default.\n * This value changes when {approve} or {transferFrom} are called.", - "id": 6491, + "id": 6495, "implemented": false, "kind": "function", "modifiers": [], "name": "allowance", "nodeType": "FunctionDefinition", "parameters": { - "id": 6487, + "id": 6491, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6484, + "id": 6488, "name": "owner", "nodeType": "VariableDeclaration", - "scope": 6491, + "scope": 6495, "src": "1067:13:18", "stateVariable": false, "storageLocation": "default", @@ -487,7 +487,7 @@ "typeString": "address" }, "typeName": { - "id": 6483, + "id": 6487, "name": "address", "nodeType": "ElementaryTypeName", "src": "1067:7:18", @@ -502,10 +502,10 @@ }, { "constant": false, - "id": 6486, + "id": 6490, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6491, + "scope": 6495, "src": "1082:15:18", "stateVariable": false, "storageLocation": "default", @@ -514,7 +514,7 @@ "typeString": "address" }, "typeName": { - "id": 6485, + "id": 6489, "name": "address", "nodeType": "ElementaryTypeName", "src": "1082:7:18", @@ -531,15 +531,15 @@ "src": "1066:32:18" }, "returnParameters": { - "id": 6490, + "id": 6494, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6489, + "id": 6493, "name": "", "nodeType": "VariableDeclaration", - "scope": 6491, + "scope": 6495, "src": "1122:7:18", "stateVariable": false, "storageLocation": "default", @@ -548,7 +548,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6488, + "id": 6492, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1122:7:18", @@ -563,7 +563,7 @@ ], "src": "1121:9:18" }, - "scope": 6528, + "scope": 6532, "src": "1048:83:18", "stateMutability": "view", "superFunction": 5053, @@ -572,22 +572,22 @@ { "body": null, "documentation": "@dev Sets `amount` as the allowance of `spender` over the caller's tokens.\n * Returns a boolean value indicating whether the operation succeeded.\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\nthat someone may use both the old and the new allowance by unfortunate\ntransaction ordering. One possible solution to mitigate this race\ncondition is to first reduce the spender's allowance to 0 and set the\ndesired value afterwards:\nhttps://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n * Emits an {Approval} event.", - "id": 6500, + "id": 6504, "implemented": false, "kind": "function", "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { - "id": 6496, + "id": 6500, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6493, + "id": 6497, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6500, + "scope": 6504, "src": "1801:15:18", "stateVariable": false, "storageLocation": "default", @@ -596,7 +596,7 @@ "typeString": "address" }, "typeName": { - "id": 6492, + "id": 6496, "name": "address", "nodeType": "ElementaryTypeName", "src": "1801:7:18", @@ -611,10 +611,10 @@ }, { "constant": false, - "id": 6495, + "id": 6499, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6500, + "scope": 6504, "src": "1818:14:18", "stateVariable": false, "storageLocation": "default", @@ -623,7 +623,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6494, + "id": 6498, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1818:7:18", @@ -639,15 +639,15 @@ "src": "1800:33:18" }, "returnParameters": { - "id": 6499, + "id": 6503, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6498, + "id": 6502, "name": "", "nodeType": "VariableDeclaration", - "scope": 6500, + "scope": 6504, "src": "1852:4:18", "stateVariable": false, "storageLocation": "default", @@ -656,7 +656,7 @@ "typeString": "bool" }, "typeName": { - "id": 6497, + "id": 6501, "name": "bool", "nodeType": "ElementaryTypeName", "src": "1852:4:18", @@ -671,7 +671,7 @@ ], "src": "1851:6:18" }, - "scope": 6528, + "scope": 6532, "src": "1784:74:18", "stateMutability": "nonpayable", "superFunction": null, @@ -680,22 +680,22 @@ { "body": null, "documentation": "@dev Moves `amount` tokens from `sender` to `recipient` using the\nallowance mechanism. `amount` is then deducted from the caller's\nallowance.\n * Returns a boolean value indicating whether the operation succeeded.\n * Emits a {Transfer} event.", - "id": 6511, + "id": 6515, "implemented": false, "kind": "function", "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { - "id": 6507, + "id": 6511, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6502, + "id": 6506, "name": "sender", "nodeType": "VariableDeclaration", - "scope": 6511, + "scope": 6515, "src": "2187:14:18", "stateVariable": false, "storageLocation": "default", @@ -704,7 +704,7 @@ "typeString": "address" }, "typeName": { - "id": 6501, + "id": 6505, "name": "address", "nodeType": "ElementaryTypeName", "src": "2187:7:18", @@ -719,10 +719,10 @@ }, { "constant": false, - "id": 6504, + "id": 6508, "name": "recipient", "nodeType": "VariableDeclaration", - "scope": 6511, + "scope": 6515, "src": "2203:17:18", "stateVariable": false, "storageLocation": "default", @@ -731,7 +731,7 @@ "typeString": "address" }, "typeName": { - "id": 6503, + "id": 6507, "name": "address", "nodeType": "ElementaryTypeName", "src": "2203:7:18", @@ -746,10 +746,10 @@ }, { "constant": false, - "id": 6506, + "id": 6510, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6511, + "scope": 6515, "src": "2222:14:18", "stateVariable": false, "storageLocation": "default", @@ -758,7 +758,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6505, + "id": 6509, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2222:7:18", @@ -774,15 +774,15 @@ "src": "2186:51:18" }, "returnParameters": { - "id": 6510, + "id": 6514, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6509, + "id": 6513, "name": "", "nodeType": "VariableDeclaration", - "scope": 6511, + "scope": 6515, "src": "2256:4:18", "stateVariable": false, "storageLocation": "default", @@ -791,7 +791,7 @@ "typeString": "bool" }, "typeName": { - "id": 6508, + "id": 6512, "name": "bool", "nodeType": "ElementaryTypeName", "src": "2256:4:18", @@ -806,7 +806,7 @@ ], "src": "2255:6:18" }, - "scope": 6528, + "scope": 6532, "src": "2165:97:18", "stateMutability": "nonpayable", "superFunction": 5064, @@ -815,20 +815,20 @@ { "anonymous": false, "documentation": "@dev Emitted when `value` tokens are moved from one account (`from`) to\nanother (`to`).\n * Note that `value` may be zero.", - "id": 6519, + "id": 6523, "name": "Transfer", "nodeType": "EventDefinition", "parameters": { - "id": 6518, + "id": 6522, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6513, + "id": 6517, "indexed": true, "name": "from", "nodeType": "VariableDeclaration", - "scope": 6519, + "scope": 6523, "src": "2446:20:18", "stateVariable": false, "storageLocation": "default", @@ -837,7 +837,7 @@ "typeString": "address" }, "typeName": { - "id": 6512, + "id": 6516, "name": "address", "nodeType": "ElementaryTypeName", "src": "2446:7:18", @@ -852,11 +852,11 @@ }, { "constant": false, - "id": 6515, + "id": 6519, "indexed": true, "name": "to", "nodeType": "VariableDeclaration", - "scope": 6519, + "scope": 6523, "src": "2468:18:18", "stateVariable": false, "storageLocation": "default", @@ -865,7 +865,7 @@ "typeString": "address" }, "typeName": { - "id": 6514, + "id": 6518, "name": "address", "nodeType": "ElementaryTypeName", "src": "2468:7:18", @@ -880,11 +880,11 @@ }, { "constant": false, - "id": 6517, + "id": 6521, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", - "scope": 6519, + "scope": 6523, "src": "2488:13:18", "stateVariable": false, "storageLocation": "default", @@ -893,7 +893,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6516, + "id": 6520, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2488:7:18", @@ -913,20 +913,20 @@ { "anonymous": false, "documentation": "@dev Emitted when the allowance of a `spender` for an `owner` is set by\na call to {approve}. `value` is the new allowance.", - "id": 6527, + "id": 6531, "name": "Approval", "nodeType": "EventDefinition", "parameters": { - "id": 6526, + "id": 6530, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6521, + "id": 6525, "indexed": true, "name": "owner", "nodeType": "VariableDeclaration", - "scope": 6527, + "scope": 6531, "src": "2677:21:18", "stateVariable": false, "storageLocation": "default", @@ -935,7 +935,7 @@ "typeString": "address" }, "typeName": { - "id": 6520, + "id": 6524, "name": "address", "nodeType": "ElementaryTypeName", "src": "2677:7:18", @@ -950,11 +950,11 @@ }, { "constant": false, - "id": 6523, + "id": 6527, "indexed": true, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6527, + "scope": 6531, "src": "2700:23:18", "stateVariable": false, "storageLocation": "default", @@ -963,7 +963,7 @@ "typeString": "address" }, "typeName": { - "id": 6522, + "id": 6526, "name": "address", "nodeType": "ElementaryTypeName", "src": "2700:7:18", @@ -978,11 +978,11 @@ }, { "constant": false, - "id": 6525, + "id": 6529, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", - "scope": 6527, + "scope": 6531, "src": "2725:13:18", "stateVariable": false, "storageLocation": "default", @@ -991,7 +991,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6524, + "id": 6528, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2725:7:18", @@ -1009,7 +1009,7 @@ "src": "2662:78:18" } ], - "scope": 6529, + "scope": 6533, "src": "176:2566:18" } ], @@ -1019,14 +1019,14 @@ "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol", "exportedSymbols": { "IERC20": [ - 6528 + 6532 ] }, - "id": 6529, + "id": 6533, "nodeType": "SourceUnit", "nodes": [ { - "id": 6461, + "id": 6465, "literals": [ "solidity", "^", @@ -1042,9 +1042,9 @@ "contractKind": "interface", "documentation": "@dev Interface of the ERC20 standard as defined in the EIP. Does not include\nthe optional functions; to access them see {ERC20Detailed}.", "fullyImplemented": false, - "id": 6528, + "id": 6532, "linearizedBaseContracts": [ - 6528 + 6532 ], "name": "IERC20", "nodeType": "ContractDefinition", @@ -1052,28 +1052,28 @@ { "body": null, "documentation": "@dev Returns the amount of tokens in existence.", - "id": 6466, + "id": 6470, "implemented": false, "kind": "function", "modifiers": [], "name": "totalSupply", "nodeType": "FunctionDefinition", "parameters": { - "id": 6462, + "id": 6466, "nodeType": "ParameterList", "parameters": [], "src": "290:2:18" }, "returnParameters": { - "id": 6465, + "id": 6469, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6464, + "id": 6468, "name": "", "nodeType": "VariableDeclaration", - "scope": 6466, + "scope": 6470, "src": "316:7:18", "stateVariable": false, "storageLocation": "default", @@ -1082,7 +1082,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6463, + "id": 6467, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "316:7:18", @@ -1097,7 +1097,7 @@ ], "src": "315:9:18" }, - "scope": 6528, + "scope": 6532, "src": "270:55:18", "stateMutability": "view", "superFunction": null, @@ -1106,22 +1106,22 @@ { "body": null, "documentation": "@dev Returns the amount of tokens owned by `account`.", - "id": 6473, + "id": 6477, "implemented": false, "kind": "function", "modifiers": [], "name": "balanceOf", "nodeType": "FunctionDefinition", "parameters": { - "id": 6469, + "id": 6473, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6468, + "id": 6472, "name": "account", "nodeType": "VariableDeclaration", - "scope": 6473, + "scope": 6477, "src": "427:15:18", "stateVariable": false, "storageLocation": "default", @@ -1130,7 +1130,7 @@ "typeString": "address" }, "typeName": { - "id": 6467, + "id": 6471, "name": "address", "nodeType": "ElementaryTypeName", "src": "427:7:18", @@ -1147,15 +1147,15 @@ "src": "426:17:18" }, "returnParameters": { - "id": 6472, + "id": 6476, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6471, + "id": 6475, "name": "", "nodeType": "VariableDeclaration", - "scope": 6473, + "scope": 6477, "src": "467:7:18", "stateVariable": false, "storageLocation": "default", @@ -1164,7 +1164,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6470, + "id": 6474, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "467:7:18", @@ -1179,7 +1179,7 @@ ], "src": "466:9:18" }, - "scope": 6528, + "scope": 6532, "src": "408:68:18", "stateMutability": "view", "superFunction": 5071, @@ -1188,22 +1188,22 @@ { "body": null, "documentation": "@dev Moves `amount` tokens from the caller's account to `recipient`.\n * Returns a boolean value indicating whether the operation succeeded.\n * Emits a {Transfer} event.", - "id": 6482, + "id": 6486, "implemented": false, "kind": "function", "modifiers": [], "name": "transfer", "nodeType": "FunctionDefinition", "parameters": { - "id": 6478, + "id": 6482, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6475, + "id": 6479, "name": "recipient", "nodeType": "VariableDeclaration", - "scope": 6482, + "scope": 6486, "src": "714:17:18", "stateVariable": false, "storageLocation": "default", @@ -1212,7 +1212,7 @@ "typeString": "address" }, "typeName": { - "id": 6474, + "id": 6478, "name": "address", "nodeType": "ElementaryTypeName", "src": "714:7:18", @@ -1227,10 +1227,10 @@ }, { "constant": false, - "id": 6477, + "id": 6481, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6482, + "scope": 6486, "src": "733:14:18", "stateVariable": false, "storageLocation": "default", @@ -1239,7 +1239,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6476, + "id": 6480, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "733:7:18", @@ -1255,15 +1255,15 @@ "src": "713:35:18" }, "returnParameters": { - "id": 6481, + "id": 6485, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6480, + "id": 6484, "name": "", "nodeType": "VariableDeclaration", - "scope": 6482, + "scope": 6486, "src": "767:4:18", "stateVariable": false, "storageLocation": "default", @@ -1272,7 +1272,7 @@ "typeString": "bool" }, "typeName": { - "id": 6479, + "id": 6483, "name": "bool", "nodeType": "ElementaryTypeName", "src": "767:4:18", @@ -1287,7 +1287,7 @@ ], "src": "766:6:18" }, - "scope": 6528, + "scope": 6532, "src": "696:77:18", "stateMutability": "nonpayable", "superFunction": 5080, @@ -1296,22 +1296,22 @@ { "body": null, "documentation": "@dev Returns the remaining number of tokens that `spender` will be\nallowed to spend on behalf of `owner` through {transferFrom}. This is\nzero by default.\n * This value changes when {approve} or {transferFrom} are called.", - "id": 6491, + "id": 6495, "implemented": false, "kind": "function", "modifiers": [], "name": "allowance", "nodeType": "FunctionDefinition", "parameters": { - "id": 6487, + "id": 6491, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6484, + "id": 6488, "name": "owner", "nodeType": "VariableDeclaration", - "scope": 6491, + "scope": 6495, "src": "1067:13:18", "stateVariable": false, "storageLocation": "default", @@ -1320,7 +1320,7 @@ "typeString": "address" }, "typeName": { - "id": 6483, + "id": 6487, "name": "address", "nodeType": "ElementaryTypeName", "src": "1067:7:18", @@ -1335,10 +1335,10 @@ }, { "constant": false, - "id": 6486, + "id": 6490, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6491, + "scope": 6495, "src": "1082:15:18", "stateVariable": false, "storageLocation": "default", @@ -1347,7 +1347,7 @@ "typeString": "address" }, "typeName": { - "id": 6485, + "id": 6489, "name": "address", "nodeType": "ElementaryTypeName", "src": "1082:7:18", @@ -1364,15 +1364,15 @@ "src": "1066:32:18" }, "returnParameters": { - "id": 6490, + "id": 6494, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6489, + "id": 6493, "name": "", "nodeType": "VariableDeclaration", - "scope": 6491, + "scope": 6495, "src": "1122:7:18", "stateVariable": false, "storageLocation": "default", @@ -1381,7 +1381,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6488, + "id": 6492, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1122:7:18", @@ -1396,7 +1396,7 @@ ], "src": "1121:9:18" }, - "scope": 6528, + "scope": 6532, "src": "1048:83:18", "stateMutability": "view", "superFunction": 5053, @@ -1405,22 +1405,22 @@ { "body": null, "documentation": "@dev Sets `amount` as the allowance of `spender` over the caller's tokens.\n * Returns a boolean value indicating whether the operation succeeded.\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\nthat someone may use both the old and the new allowance by unfortunate\ntransaction ordering. One possible solution to mitigate this race\ncondition is to first reduce the spender's allowance to 0 and set the\ndesired value afterwards:\nhttps://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n * Emits an {Approval} event.", - "id": 6500, + "id": 6504, "implemented": false, "kind": "function", "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { - "id": 6496, + "id": 6500, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6493, + "id": 6497, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6500, + "scope": 6504, "src": "1801:15:18", "stateVariable": false, "storageLocation": "default", @@ -1429,7 +1429,7 @@ "typeString": "address" }, "typeName": { - "id": 6492, + "id": 6496, "name": "address", "nodeType": "ElementaryTypeName", "src": "1801:7:18", @@ -1444,10 +1444,10 @@ }, { "constant": false, - "id": 6495, + "id": 6499, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6500, + "scope": 6504, "src": "1818:14:18", "stateVariable": false, "storageLocation": "default", @@ -1456,7 +1456,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6494, + "id": 6498, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1818:7:18", @@ -1472,15 +1472,15 @@ "src": "1800:33:18" }, "returnParameters": { - "id": 6499, + "id": 6503, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6498, + "id": 6502, "name": "", "nodeType": "VariableDeclaration", - "scope": 6500, + "scope": 6504, "src": "1852:4:18", "stateVariable": false, "storageLocation": "default", @@ -1489,7 +1489,7 @@ "typeString": "bool" }, "typeName": { - "id": 6497, + "id": 6501, "name": "bool", "nodeType": "ElementaryTypeName", "src": "1852:4:18", @@ -1504,7 +1504,7 @@ ], "src": "1851:6:18" }, - "scope": 6528, + "scope": 6532, "src": "1784:74:18", "stateMutability": "nonpayable", "superFunction": null, @@ -1513,22 +1513,22 @@ { "body": null, "documentation": "@dev Moves `amount` tokens from `sender` to `recipient` using the\nallowance mechanism. `amount` is then deducted from the caller's\nallowance.\n * Returns a boolean value indicating whether the operation succeeded.\n * Emits a {Transfer} event.", - "id": 6511, + "id": 6515, "implemented": false, "kind": "function", "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { - "id": 6507, + "id": 6511, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6502, + "id": 6506, "name": "sender", "nodeType": "VariableDeclaration", - "scope": 6511, + "scope": 6515, "src": "2187:14:18", "stateVariable": false, "storageLocation": "default", @@ -1537,7 +1537,7 @@ "typeString": "address" }, "typeName": { - "id": 6501, + "id": 6505, "name": "address", "nodeType": "ElementaryTypeName", "src": "2187:7:18", @@ -1552,10 +1552,10 @@ }, { "constant": false, - "id": 6504, + "id": 6508, "name": "recipient", "nodeType": "VariableDeclaration", - "scope": 6511, + "scope": 6515, "src": "2203:17:18", "stateVariable": false, "storageLocation": "default", @@ -1564,7 +1564,7 @@ "typeString": "address" }, "typeName": { - "id": 6503, + "id": 6507, "name": "address", "nodeType": "ElementaryTypeName", "src": "2203:7:18", @@ -1579,10 +1579,10 @@ }, { "constant": false, - "id": 6506, + "id": 6510, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6511, + "scope": 6515, "src": "2222:14:18", "stateVariable": false, "storageLocation": "default", @@ -1591,7 +1591,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6505, + "id": 6509, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2222:7:18", @@ -1607,15 +1607,15 @@ "src": "2186:51:18" }, "returnParameters": { - "id": 6510, + "id": 6514, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6509, + "id": 6513, "name": "", "nodeType": "VariableDeclaration", - "scope": 6511, + "scope": 6515, "src": "2256:4:18", "stateVariable": false, "storageLocation": "default", @@ -1624,7 +1624,7 @@ "typeString": "bool" }, "typeName": { - "id": 6508, + "id": 6512, "name": "bool", "nodeType": "ElementaryTypeName", "src": "2256:4:18", @@ -1639,7 +1639,7 @@ ], "src": "2255:6:18" }, - "scope": 6528, + "scope": 6532, "src": "2165:97:18", "stateMutability": "nonpayable", "superFunction": 5064, @@ -1648,20 +1648,20 @@ { "anonymous": false, "documentation": "@dev Emitted when `value` tokens are moved from one account (`from`) to\nanother (`to`).\n * Note that `value` may be zero.", - "id": 6519, + "id": 6523, "name": "Transfer", "nodeType": "EventDefinition", "parameters": { - "id": 6518, + "id": 6522, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6513, + "id": 6517, "indexed": true, "name": "from", "nodeType": "VariableDeclaration", - "scope": 6519, + "scope": 6523, "src": "2446:20:18", "stateVariable": false, "storageLocation": "default", @@ -1670,7 +1670,7 @@ "typeString": "address" }, "typeName": { - "id": 6512, + "id": 6516, "name": "address", "nodeType": "ElementaryTypeName", "src": "2446:7:18", @@ -1685,11 +1685,11 @@ }, { "constant": false, - "id": 6515, + "id": 6519, "indexed": true, "name": "to", "nodeType": "VariableDeclaration", - "scope": 6519, + "scope": 6523, "src": "2468:18:18", "stateVariable": false, "storageLocation": "default", @@ -1698,7 +1698,7 @@ "typeString": "address" }, "typeName": { - "id": 6514, + "id": 6518, "name": "address", "nodeType": "ElementaryTypeName", "src": "2468:7:18", @@ -1713,11 +1713,11 @@ }, { "constant": false, - "id": 6517, + "id": 6521, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", - "scope": 6519, + "scope": 6523, "src": "2488:13:18", "stateVariable": false, "storageLocation": "default", @@ -1726,7 +1726,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6516, + "id": 6520, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2488:7:18", @@ -1746,20 +1746,20 @@ { "anonymous": false, "documentation": "@dev Emitted when the allowance of a `spender` for an `owner` is set by\na call to {approve}. `value` is the new allowance.", - "id": 6527, + "id": 6531, "name": "Approval", "nodeType": "EventDefinition", "parameters": { - "id": 6526, + "id": 6530, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6521, + "id": 6525, "indexed": true, "name": "owner", "nodeType": "VariableDeclaration", - "scope": 6527, + "scope": 6531, "src": "2677:21:18", "stateVariable": false, "storageLocation": "default", @@ -1768,7 +1768,7 @@ "typeString": "address" }, "typeName": { - "id": 6520, + "id": 6524, "name": "address", "nodeType": "ElementaryTypeName", "src": "2677:7:18", @@ -1783,11 +1783,11 @@ }, { "constant": false, - "id": 6523, + "id": 6527, "indexed": true, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6527, + "scope": 6531, "src": "2700:23:18", "stateVariable": false, "storageLocation": "default", @@ -1796,7 +1796,7 @@ "typeString": "address" }, "typeName": { - "id": 6522, + "id": 6526, "name": "address", "nodeType": "ElementaryTypeName", "src": "2700:7:18", @@ -1811,11 +1811,11 @@ }, { "constant": false, - "id": 6525, + "id": 6529, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", - "scope": 6527, + "scope": 6531, "src": "2725:13:18", "stateVariable": false, "storageLocation": "default", @@ -1824,7 +1824,7 @@ "typeString": "uint256" }, "typeName": { - "id": 6524, + "id": 6528, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2725:7:18", @@ -1842,7 +1842,7 @@ "src": "2662:78:18" } ], - "scope": 6529, + "scope": 6533, "src": "176:2566:18" } ], @@ -1854,7 +1854,7 @@ }, "networks": {}, "schemaVersion": "3.2.4", - "updatedAt": "2020-10-01T09:28:54.488Z", + "updatedAt": "2020-10-01T15:18:05.198Z", "devdoc": { "details": "Interface of the ERC20 standard as defined in the EIP. Does not include the optional functions; to access them see {ERC20Detailed}.", "methods": { diff --git a/artifacts/IERC20Template.json b/artifacts/IERC20Template.json index d5fa0443a..fbdf21a6c 100644 --- a/artifacts/IERC20Template.json +++ b/artifacts/IERC20Template.json @@ -2806,7 +2806,7 @@ }, "networks": {}, "schemaVersion": "3.2.4", - "updatedAt": "2020-10-01T09:28:54.472Z", + "updatedAt": "2020-10-01T15:18:05.181Z", "devdoc": { "methods": {} }, diff --git a/artifacts/Metadata.json b/artifacts/Metadata.json index 9308348a4..32cfcd22e 100644 --- a/artifacts/Metadata.json +++ b/artifacts/Metadata.json @@ -565,7 +565,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "993:3:11", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -626,10 +626,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "954:7:11", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -733,7 +733,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "1587:3:11", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -1001,7 +1001,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "2169:3:11", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -1703,7 +1703,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "993:3:11", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -1764,10 +1764,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "954:7:11", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -1871,7 +1871,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "1587:3:11", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -2139,7 +2139,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "2169:3:11", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -2389,7 +2389,7 @@ }, "networks": {}, "schemaVersion": "3.2.4", - "updatedAt": "2020-10-01T09:28:54.473Z", + "updatedAt": "2020-10-01T15:18:05.182Z", "devdoc": { "details": "Metadata stands for Decentralized Document. It allows publishers to publish their dataset metadata in decentralized way. It follows the Ocean DID Document standard: https://github.com/oceanprotocol/OEPs/blob/master/7/v0.2/README.md", "methods": { diff --git a/artifacts/Migrations.json b/artifacts/Migrations.json index 5dc76e1c7..5191db17f 100644 --- a/artifacts/Migrations.json +++ b/artifacts/Migrations.json @@ -184,7 +184,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "173:3:1", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -268,7 +268,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "235:3:1", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -595,7 +595,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "173:3:1", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -679,7 +679,7 @@ "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6543, + "referencedDeclaration": 6547, "src": "235:3:1", "typeDescriptions": { "typeIdentifier": "t_magic_message", @@ -885,7 +885,7 @@ }, "networks": {}, "schemaVersion": "3.2.4", - "updatedAt": "2020-10-01T09:28:54.407Z", + "updatedAt": "2020-10-01T15:18:05.036Z", "devdoc": { "methods": {} }, diff --git a/artifacts/OPFCommunityFeeCollector.json b/artifacts/OPFCommunityFeeCollector.json index 8b04e4fd2..27c51e54d 100644 --- a/artifacts/OPFCommunityFeeCollector.json +++ b/artifacts/OPFCommunityFeeCollector.json @@ -172,7 +172,7 @@ "id": 4289, "nodeType": "ImportDirective", "scope": 4399, - "sourceUnit": 6055, + "sourceUnit": 6059, "src": "228:63:8", "symbolAliases": [], "unitAlias": "" @@ -186,10 +186,10 @@ "id": 4290, "name": "Ownable", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 6054, + "referencedDeclaration": 6058, "src": "653:7:8", "typeDescriptions": { - "typeIdentifier": "t_contract$_Ownable_$6054", + "typeIdentifier": "t_contract$_Ownable_$6058", "typeString": "contract Ownable" } }, @@ -199,8 +199,8 @@ } ], "contractDependencies": [ - 5749, - 6054 + 5753, + 6058 ], "contractKind": "contract", "documentation": "@title OPFCommunityFeeCollector\n@dev Ocean Protocol Foundation Community Fee Collector contract\n allows consumers to pay very small fee as part of the exchange of \n data tokens with ocean token in order to support the community of \n ocean protocol and provide a sustainble development.", @@ -208,8 +208,8 @@ "id": 4398, "linearizedBaseContracts": [ 4398, - 6054, - 5749 + 6058, + 5753 ], "name": "OPFCommunityFeeCollector", "nodeType": "ContractDefinition", @@ -480,10 +480,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1110:7:8", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -583,7 +583,7 @@ "name": "transferOwnership", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6029, + "referencedDeclaration": 6033, "src": "1343:17:8", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$", @@ -624,10 +624,10 @@ "name": "Ownable", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6054, + "referencedDeclaration": 6058, "src": "1086:7:8", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_Ownable_$6054_$", + "typeIdentifier": "t_type$_t_contract$_Ownable_$6058_$", "typeString": "type(contract Ownable)" } }, @@ -763,7 +763,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6585, + "referencedDeclaration": 6589, "src": "1778:4:8", "typeDescriptions": { "typeIdentifier": "t_contract$_OPFCommunityFeeCollector_$4398", @@ -1031,10 +1031,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2063:7:8", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -1091,7 +1091,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6585, + "referencedDeclaration": 6589, "src": "2354:4:8", "typeDescriptions": { "typeIdentifier": "t_contract$_OPFCommunityFeeCollector_$4398", @@ -1341,10 +1341,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2203:7:8", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -1556,10 +1556,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2757:7:8", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -1646,7 +1646,7 @@ "name": "onlyOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, + "referencedDeclaration": 5991, "src": "2732:9:8", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", @@ -1750,7 +1750,7 @@ "id": 4289, "nodeType": "ImportDirective", "scope": 4399, - "sourceUnit": 6055, + "sourceUnit": 6059, "src": "228:63:8", "symbolAliases": [], "unitAlias": "" @@ -1764,10 +1764,10 @@ "id": 4290, "name": "Ownable", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 6054, + "referencedDeclaration": 6058, "src": "653:7:8", "typeDescriptions": { - "typeIdentifier": "t_contract$_Ownable_$6054", + "typeIdentifier": "t_contract$_Ownable_$6058", "typeString": "contract Ownable" } }, @@ -1777,8 +1777,8 @@ } ], "contractDependencies": [ - 5749, - 6054 + 5753, + 6058 ], "contractKind": "contract", "documentation": "@title OPFCommunityFeeCollector\n@dev Ocean Protocol Foundation Community Fee Collector contract\n allows consumers to pay very small fee as part of the exchange of \n data tokens with ocean token in order to support the community of \n ocean protocol and provide a sustainble development.", @@ -1786,8 +1786,8 @@ "id": 4398, "linearizedBaseContracts": [ 4398, - 6054, - 5749 + 6058, + 5753 ], "name": "OPFCommunityFeeCollector", "nodeType": "ContractDefinition", @@ -2058,10 +2058,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1110:7:8", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -2161,7 +2161,7 @@ "name": "transferOwnership", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6029, + "referencedDeclaration": 6033, "src": "1343:17:8", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$", @@ -2202,10 +2202,10 @@ "name": "Ownable", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6054, + "referencedDeclaration": 6058, "src": "1086:7:8", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_Ownable_$6054_$", + "typeIdentifier": "t_type$_t_contract$_Ownable_$6058_$", "typeString": "type(contract Ownable)" } }, @@ -2341,7 +2341,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6585, + "referencedDeclaration": 6589, "src": "1778:4:8", "typeDescriptions": { "typeIdentifier": "t_contract$_OPFCommunityFeeCollector_$4398", @@ -2609,10 +2609,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2063:7:8", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -2669,7 +2669,7 @@ "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6585, + "referencedDeclaration": 6589, "src": "2354:4:8", "typeDescriptions": { "typeIdentifier": "t_contract$_OPFCommunityFeeCollector_$4398", @@ -2919,10 +2919,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2203:7:8", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -3134,10 +3134,10 @@ "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2757:7:8", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", @@ -3224,7 +3224,7 @@ "name": "onlyOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, + "referencedDeclaration": 5991, "src": "2732:9:8", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", @@ -3296,7 +3296,7 @@ }, "networks": {}, "schemaVersion": "3.2.4", - "updatedAt": "2020-10-01T09:28:54.465Z", + "updatedAt": "2020-10-01T15:18:05.169Z", "devdoc": { "details": "Ocean Protocol Foundation Community Fee Collector contract allows consumers to pay very small fee as part of the exchange of data tokens with ocean token in order to support the community of ocean protocol and provide a sustainble development.", "methods": { diff --git a/artifacts/Ownable.json b/artifacts/Ownable.json index 6be7326c9..2a0441ae1 100644 --- a/artifacts/Ownable.json +++ b/artifacts/Ownable.json @@ -87,14 +87,14 @@ "absolutePath": "openzeppelin-solidity/contracts/ownership/Ownable.sol", "exportedSymbols": { "Ownable": [ - 6054 + 6058 ] }, - "id": 6055, + "id": 6059, "nodeType": "SourceUnit", "nodes": [ { - "id": 5938, + "id": 5942, "literals": [ "solidity", "^", @@ -107,10 +107,10 @@ { "absolutePath": "openzeppelin-solidity/contracts/GSN/Context.sol", "file": "../GSN/Context.sol", - "id": 5939, + "id": 5943, "nodeType": "ImportDirective", - "scope": 6055, - "sourceUnit": 5750, + "scope": 6059, + "sourceUnit": 5754, "src": "25:28:16", "symbolAliases": [], "unitAlias": "" @@ -121,41 +121,41 @@ "arguments": null, "baseName": { "contractScope": null, - "id": 5940, + "id": 5944, "name": "Context", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 5749, + "referencedDeclaration": 5753, "src": "435:7:16", "typeDescriptions": { - "typeIdentifier": "t_contract$_Context_$5749", + "typeIdentifier": "t_contract$_Context_$5753", "typeString": "contract Context" } }, - "id": 5941, + "id": 5945, "nodeType": "InheritanceSpecifier", "src": "435:7:16" } ], "contractDependencies": [ - 5749 + 5753 ], "contractKind": "contract", "documentation": "@dev Contract module which provides a basic access control mechanism, where\nthere is an account (an owner) that can be granted exclusive access to\nspecific functions.\n * This module is used through inheritance. It will make available the modifier\n`onlyOwner`, which can be applied to your functions to restrict their use to\nthe owner.", "fullyImplemented": true, - "id": 6054, + "id": 6058, "linearizedBaseContracts": [ - 6054, - 5749 + 6058, + 5753 ], "name": "Ownable", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, - "id": 5943, + "id": 5947, "name": "_owner", "nodeType": "VariableDeclaration", - "scope": 6054, + "scope": 6058, "src": "449:22:16", "stateVariable": true, "storageLocation": "default", @@ -164,7 +164,7 @@ "typeString": "address" }, "typeName": { - "id": 5942, + "id": 5946, "name": "address", "nodeType": "ElementaryTypeName", "src": "449:7:16", @@ -180,20 +180,20 @@ { "anonymous": false, "documentation": null, - "id": 5949, + "id": 5953, "name": "OwnershipTransferred", "nodeType": "EventDefinition", "parameters": { - "id": 5948, + "id": 5952, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5945, + "id": 5949, "indexed": true, "name": "previousOwner", "nodeType": "VariableDeclaration", - "scope": 5949, + "scope": 5953, "src": "505:29:16", "stateVariable": false, "storageLocation": "default", @@ -202,7 +202,7 @@ "typeString": "address" }, "typeName": { - "id": 5944, + "id": 5948, "name": "address", "nodeType": "ElementaryTypeName", "src": "505:7:16", @@ -217,11 +217,11 @@ }, { "constant": false, - "id": 5947, + "id": 5951, "indexed": true, "name": "newOwner", "nodeType": "VariableDeclaration", - "scope": 5949, + "scope": 5953, "src": "536:24:16", "stateVariable": false, "storageLocation": "default", @@ -230,7 +230,7 @@ "typeString": "address" }, "typeName": { - "id": 5946, + "id": 5950, "name": "address", "nodeType": "ElementaryTypeName", "src": "536:7:16", @@ -250,21 +250,21 @@ }, { "body": { - "id": 5968, + "id": 5972, "nodeType": "Block", "src": "688:135:16", "statements": [ { "assignments": [ - 5953 + 5957 ], "declarations": [ { "constant": false, - "id": 5953, + "id": 5957, "name": "msgSender", "nodeType": "VariableDeclaration", - "scope": 5968, + "scope": 5972, "src": "698:17:16", "stateVariable": false, "storageLocation": "default", @@ -273,7 +273,7 @@ "typeString": "address" }, "typeName": { - "id": 5952, + "id": 5956, "name": "address", "nodeType": "ElementaryTypeName", "src": "698:7:16", @@ -287,24 +287,24 @@ "visibility": "internal" } ], - "id": 5956, + "id": 5960, "initialValue": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], - "id": 5954, + "id": 5958, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5737, + "referencedDeclaration": 5741, "src": "718:10:16", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 5955, + "id": 5959, "isConstant": false, "isLValue": false, "isPure": false, @@ -324,18 +324,18 @@ { "expression": { "argumentTypes": null, - "id": 5959, + "id": 5963, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 5957, + "id": 5961, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5943, + "referencedDeclaration": 5947, "src": "740:6:16", "typeDescriptions": { "typeIdentifier": "t_address", @@ -346,11 +346,11 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 5958, + "id": 5962, "name": "msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5953, + "referencedDeclaration": 5957, "src": "749:9:16", "typeDescriptions": { "typeIdentifier": "t_address", @@ -363,7 +363,7 @@ "typeString": "address" } }, - "id": 5960, + "id": 5964, "nodeType": "ExpressionStatement", "src": "740:18:16" }, @@ -377,7 +377,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 5963, + "id": 5967, "isConstant": false, "isLValue": false, "isPure": true, @@ -400,7 +400,7 @@ "typeString": "int_const 0" } ], - "id": 5962, + "id": 5966, "isConstant": false, "isLValue": false, "isPure": true, @@ -413,7 +413,7 @@ }, "typeName": "address" }, - "id": 5964, + "id": 5968, "isConstant": false, "isLValue": false, "isPure": true, @@ -429,11 +429,11 @@ }, { "argumentTypes": null, - "id": 5965, + "id": 5969, "name": "msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5953, + "referencedDeclaration": 5957, "src": "806:9:16", "typeDescriptions": { "typeIdentifier": "t_address", @@ -452,18 +452,18 @@ "typeString": "address" } ], - "id": 5961, + "id": 5965, "name": "OwnershipTransferred", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5949, + "referencedDeclaration": 5953, "src": "773:20:16", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$", "typeString": "function (address,address)" } }, - "id": 5966, + "id": 5970, "isConstant": false, "isLValue": false, "isPure": false, @@ -477,32 +477,32 @@ "typeString": "tuple()" } }, - "id": 5967, + "id": 5971, "nodeType": "EmitStatement", "src": "768:48:16" } ] }, "documentation": "@dev Initializes the contract setting the deployer as the initial owner.", - "id": 5969, + "id": 5973, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { - "id": 5950, + "id": 5954, "nodeType": "ParameterList", "parameters": [], "src": "676:2:16" }, "returnParameters": { - "id": 5951, + "id": 5955, "nodeType": "ParameterList", "parameters": [], "src": "688:0:16" }, - "scope": 6054, + "scope": 6058, "src": "664:159:16", "stateMutability": "nonpayable", "superFunction": null, @@ -510,54 +510,54 @@ }, { "body": { - "id": 5976, + "id": 5980, "nodeType": "Block", "src": "946:30:16", "statements": [ { "expression": { "argumentTypes": null, - "id": 5974, + "id": 5978, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5943, + "referencedDeclaration": 5947, "src": "963:6:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "functionReturnParameters": 5973, - "id": 5975, + "functionReturnParameters": 5977, + "id": 5979, "nodeType": "Return", "src": "956:13:16" } ] }, "documentation": "@dev Returns the address of the current owner.", - "id": 5977, + "id": 5981, "implemented": true, "kind": "function", "modifiers": [], "name": "owner", "nodeType": "FunctionDefinition", "parameters": { - "id": 5970, + "id": 5974, "nodeType": "ParameterList", "parameters": [], "src": "913:2:16" }, "returnParameters": { - "id": 5973, + "id": 5977, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5972, + "id": 5976, "name": "", "nodeType": "VariableDeclaration", - "scope": 5977, + "scope": 5981, "src": "937:7:16", "stateVariable": false, "storageLocation": "default", @@ -566,7 +566,7 @@ "typeString": "address" }, "typeName": { - "id": 5971, + "id": 5975, "name": "address", "nodeType": "ElementaryTypeName", "src": "937:7:16", @@ -582,7 +582,7 @@ ], "src": "936:9:16" }, - "scope": 6054, + "scope": 6058, "src": "899:77:16", "stateMutability": "view", "superFunction": null, @@ -590,7 +590,7 @@ }, { "body": { - "id": 5986, + "id": 5990, "nodeType": "Block", "src": "1085:82:16", "statements": [ @@ -603,18 +603,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 5980, + "id": 5984, "name": "isOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5998, + "referencedDeclaration": 6002, "src": "1103:7:16", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_bool_$", "typeString": "function () view returns (bool)" } }, - "id": 5981, + "id": 5985, "isConstant": false, "isLValue": false, "isPure": false, @@ -631,7 +631,7 @@ { "argumentTypes": null, "hexValue": "4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572", - "id": 5982, + "id": 5986, "isConstant": false, "isLValue": false, "isPure": true, @@ -658,21 +658,21 @@ "typeString": "literal_string \"Ownable: caller is not the owner\"" } ], - "id": 5979, + "id": 5983, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1095:7:16", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5983, + "id": 5987, "isConstant": false, "isLValue": false, "isPure": false, @@ -686,23 +686,23 @@ "typeString": "tuple()" } }, - "id": 5984, + "id": 5988, "nodeType": "ExpressionStatement", "src": "1095:54:16" }, { - "id": 5985, + "id": 5989, "nodeType": "PlaceholderStatement", "src": "1159:1:16" } ] }, "documentation": "@dev Throws if called by any account other than the owner.", - "id": 5987, + "id": 5991, "name": "onlyOwner", "nodeType": "ModifierDefinition", "parameters": { - "id": 5978, + "id": 5982, "nodeType": "ParameterList", "parameters": [], "src": "1082:2:16" @@ -712,7 +712,7 @@ }, { "body": { - "id": 5997, + "id": 6001, "nodeType": "Block", "src": "1296:46:16", "statements": [ @@ -723,7 +723,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 5995, + "id": 5999, "isConstant": false, "isLValue": false, "isPure": false, @@ -733,18 +733,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 5992, + "id": 5996, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5737, + "referencedDeclaration": 5741, "src": "1313:10:16", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 5993, + "id": 5997, "isConstant": false, "isLValue": false, "isPure": false, @@ -762,11 +762,11 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 5994, + "id": 5998, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5943, + "referencedDeclaration": 5947, "src": "1329:6:16", "typeDescriptions": { "typeIdentifier": "t_address", @@ -779,36 +779,36 @@ "typeString": "bool" } }, - "functionReturnParameters": 5991, - "id": 5996, + "functionReturnParameters": 5995, + "id": 6000, "nodeType": "Return", "src": "1306:29:16" } ] }, "documentation": "@dev Returns true if the caller is the current owner.", - "id": 5998, + "id": 6002, "implemented": true, "kind": "function", "modifiers": [], "name": "isOwner", "nodeType": "FunctionDefinition", "parameters": { - "id": 5988, + "id": 5992, "nodeType": "ParameterList", "parameters": [], "src": "1266:2:16" }, "returnParameters": { - "id": 5991, + "id": 5995, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5990, + "id": 5994, "name": "", "nodeType": "VariableDeclaration", - "scope": 5998, + "scope": 6002, "src": "1290:4:16", "stateVariable": false, "storageLocation": "default", @@ -817,7 +817,7 @@ "typeString": "bool" }, "typeName": { - "id": 5989, + "id": 5993, "name": "bool", "nodeType": "ElementaryTypeName", "src": "1290:4:16", @@ -832,7 +832,7 @@ ], "src": "1289:6:16" }, - "scope": 6054, + "scope": 6058, "src": "1250:92:16", "stateMutability": "view", "superFunction": null, @@ -840,7 +840,7 @@ }, { "body": { - "id": 6016, + "id": 6020, "nodeType": "Block", "src": "1730:91:16", "statements": [ @@ -850,11 +850,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6004, + "id": 6008, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5943, + "referencedDeclaration": 5947, "src": "1766:6:16", "typeDescriptions": { "typeIdentifier": "t_address", @@ -867,7 +867,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6006, + "id": 6010, "isConstant": false, "isLValue": false, "isPure": true, @@ -890,7 +890,7 @@ "typeString": "int_const 0" } ], - "id": 6005, + "id": 6009, "isConstant": false, "isLValue": false, "isPure": true, @@ -903,7 +903,7 @@ }, "typeName": "address" }, - "id": 6007, + "id": 6011, "isConstant": false, "isLValue": false, "isPure": true, @@ -929,18 +929,18 @@ "typeString": "address payable" } ], - "id": 6003, + "id": 6007, "name": "OwnershipTransferred", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5949, + "referencedDeclaration": 5953, "src": "1745:20:16", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$", "typeString": "function (address,address)" } }, - "id": 6008, + "id": 6012, "isConstant": false, "isLValue": false, "isPure": false, @@ -954,25 +954,25 @@ "typeString": "tuple()" } }, - "id": 6009, + "id": 6013, "nodeType": "EmitStatement", "src": "1740:45:16" }, { "expression": { "argumentTypes": null, - "id": 6014, + "id": 6018, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 6010, + "id": 6014, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5943, + "referencedDeclaration": 5947, "src": "1795:6:16", "typeDescriptions": { "typeIdentifier": "t_address", @@ -987,7 +987,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6012, + "id": 6016, "isConstant": false, "isLValue": false, "isPure": true, @@ -1010,7 +1010,7 @@ "typeString": "int_const 0" } ], - "id": 6011, + "id": 6015, "isConstant": false, "isLValue": false, "isPure": true, @@ -1023,7 +1023,7 @@ }, "typeName": "address" }, - "id": 6013, + "id": 6017, "isConstant": false, "isLValue": false, "isPure": true, @@ -1043,27 +1043,27 @@ "typeString": "address" } }, - "id": 6015, + "id": 6019, "nodeType": "ExpressionStatement", "src": "1795:19:16" } ] }, "documentation": "@dev Leaves the contract without owner. It will not be possible to call\n`onlyOwner` functions anymore. Can only be called by the current owner.\n * NOTE: Renouncing ownership will leave the contract without an owner,\nthereby removing any functionality that is only available to the owner.", - "id": 6017, + "id": 6021, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, - "id": 6001, + "id": 6005, "modifierName": { "argumentTypes": null, - "id": 6000, + "id": 6004, "name": "onlyOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, + "referencedDeclaration": 5991, "src": "1720:9:16", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", @@ -1077,18 +1077,18 @@ "name": "renounceOwnership", "nodeType": "FunctionDefinition", "parameters": { - "id": 5999, + "id": 6003, "nodeType": "ParameterList", "parameters": [], "src": "1710:2:16" }, "returnParameters": { - "id": 6002, + "id": 6006, "nodeType": "ParameterList", "parameters": [], "src": "1730:0:16" }, - "scope": 6054, + "scope": 6058, "src": "1684:137:16", "stateMutability": "nonpayable", "superFunction": null, @@ -1096,7 +1096,7 @@ }, { "body": { - "id": 6028, + "id": 6032, "nodeType": "Block", "src": "2032:45:16", "statements": [ @@ -1106,11 +1106,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6025, + "id": 6029, "name": "newOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6019, + "referencedDeclaration": 6023, "src": "2061:8:16", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1125,18 +1125,18 @@ "typeString": "address" } ], - "id": 6024, + "id": 6028, "name": "_transferOwnership", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6053, + "referencedDeclaration": 6057, "src": "2042:18:16", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$", "typeString": "function (address)" } }, - "id": 6026, + "id": 6030, "isConstant": false, "isLValue": false, "isPure": false, @@ -1150,27 +1150,27 @@ "typeString": "tuple()" } }, - "id": 6027, + "id": 6031, "nodeType": "ExpressionStatement", "src": "2042:28:16" } ] }, "documentation": "@dev Transfers ownership of the contract to a new account (`newOwner`).\nCan only be called by the current owner.", - "id": 6029, + "id": 6033, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, - "id": 6022, + "id": 6026, "modifierName": { "argumentTypes": null, - "id": 6021, + "id": 6025, "name": "onlyOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, + "referencedDeclaration": 5991, "src": "2022:9:16", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", @@ -1184,15 +1184,15 @@ "name": "transferOwnership", "nodeType": "FunctionDefinition", "parameters": { - "id": 6020, + "id": 6024, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6019, + "id": 6023, "name": "newOwner", "nodeType": "VariableDeclaration", - "scope": 6029, + "scope": 6033, "src": "1997:16:16", "stateVariable": false, "storageLocation": "default", @@ -1201,7 +1201,7 @@ "typeString": "address" }, "typeName": { - "id": 6018, + "id": 6022, "name": "address", "nodeType": "ElementaryTypeName", "src": "1997:7:16", @@ -1218,12 +1218,12 @@ "src": "1996:18:16" }, "returnParameters": { - "id": 6023, + "id": 6027, "nodeType": "ParameterList", "parameters": [], "src": "2032:0:16" }, - "scope": 6054, + "scope": 6058, "src": "1970:107:16", "stateMutability": "nonpayable", "superFunction": null, @@ -1231,7 +1231,7 @@ }, { "body": { - "id": 6052, + "id": 6056, "nodeType": "Block", "src": "2233:170:16", "statements": [ @@ -1245,18 +1245,18 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6039, + "id": 6043, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6035, + "id": 6039, "name": "newOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6031, + "referencedDeclaration": 6035, "src": "2251:8:16", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1271,7 +1271,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6037, + "id": 6041, "isConstant": false, "isLValue": false, "isPure": true, @@ -1294,7 +1294,7 @@ "typeString": "int_const 0" } ], - "id": 6036, + "id": 6040, "isConstant": false, "isLValue": false, "isPure": true, @@ -1307,7 +1307,7 @@ }, "typeName": "address" }, - "id": 6038, + "id": 6042, "isConstant": false, "isLValue": false, "isPure": true, @@ -1330,7 +1330,7 @@ { "argumentTypes": null, "hexValue": "4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373", - "id": 6040, + "id": 6044, "isConstant": false, "isLValue": false, "isPure": true, @@ -1357,21 +1357,21 @@ "typeString": "literal_string \"Ownable: new owner is the zero address\"" } ], - "id": 6034, + "id": 6038, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2243:7:16", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6041, + "id": 6045, "isConstant": false, "isLValue": false, "isPure": false, @@ -1385,7 +1385,7 @@ "typeString": "tuple()" } }, - "id": 6042, + "id": 6046, "nodeType": "ExpressionStatement", "src": "2243:73:16" }, @@ -1395,11 +1395,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6044, + "id": 6048, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5943, + "referencedDeclaration": 5947, "src": "2352:6:16", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1408,11 +1408,11 @@ }, { "argumentTypes": null, - "id": 6045, + "id": 6049, "name": "newOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6031, + "referencedDeclaration": 6035, "src": "2360:8:16", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1431,18 +1431,18 @@ "typeString": "address" } ], - "id": 6043, + "id": 6047, "name": "OwnershipTransferred", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5949, + "referencedDeclaration": 5953, "src": "2331:20:16", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$", "typeString": "function (address,address)" } }, - "id": 6046, + "id": 6050, "isConstant": false, "isLValue": false, "isPure": false, @@ -1456,25 +1456,25 @@ "typeString": "tuple()" } }, - "id": 6047, + "id": 6051, "nodeType": "EmitStatement", "src": "2326:43:16" }, { "expression": { "argumentTypes": null, - "id": 6050, + "id": 6054, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 6048, + "id": 6052, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5943, + "referencedDeclaration": 5947, "src": "2379:6:16", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1485,11 +1485,11 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 6049, + "id": 6053, "name": "newOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6031, + "referencedDeclaration": 6035, "src": "2388:8:16", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1502,29 +1502,29 @@ "typeString": "address" } }, - "id": 6051, + "id": 6055, "nodeType": "ExpressionStatement", "src": "2379:17:16" } ] }, "documentation": "@dev Transfers ownership of the contract to a new account (`newOwner`).", - "id": 6053, + "id": 6057, "implemented": true, "kind": "function", "modifiers": [], "name": "_transferOwnership", "nodeType": "FunctionDefinition", "parameters": { - "id": 6032, + "id": 6036, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6031, + "id": 6035, "name": "newOwner", "nodeType": "VariableDeclaration", - "scope": 6053, + "scope": 6057, "src": "2206:16:16", "stateVariable": false, "storageLocation": "default", @@ -1533,7 +1533,7 @@ "typeString": "address" }, "typeName": { - "id": 6030, + "id": 6034, "name": "address", "nodeType": "ElementaryTypeName", "src": "2206:7:16", @@ -1550,19 +1550,19 @@ "src": "2205:18:16" }, "returnParameters": { - "id": 6033, + "id": 6037, "nodeType": "ParameterList", "parameters": [], "src": "2233:0:16" }, - "scope": 6054, + "scope": 6058, "src": "2178:225:16", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" } ], - "scope": 6055, + "scope": 6059, "src": "415:1990:16" } ], @@ -1572,14 +1572,14 @@ "absolutePath": "openzeppelin-solidity/contracts/ownership/Ownable.sol", "exportedSymbols": { "Ownable": [ - 6054 + 6058 ] }, - "id": 6055, + "id": 6059, "nodeType": "SourceUnit", "nodes": [ { - "id": 5938, + "id": 5942, "literals": [ "solidity", "^", @@ -1592,10 +1592,10 @@ { "absolutePath": "openzeppelin-solidity/contracts/GSN/Context.sol", "file": "../GSN/Context.sol", - "id": 5939, + "id": 5943, "nodeType": "ImportDirective", - "scope": 6055, - "sourceUnit": 5750, + "scope": 6059, + "sourceUnit": 5754, "src": "25:28:16", "symbolAliases": [], "unitAlias": "" @@ -1606,41 +1606,41 @@ "arguments": null, "baseName": { "contractScope": null, - "id": 5940, + "id": 5944, "name": "Context", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 5749, + "referencedDeclaration": 5753, "src": "435:7:16", "typeDescriptions": { - "typeIdentifier": "t_contract$_Context_$5749", + "typeIdentifier": "t_contract$_Context_$5753", "typeString": "contract Context" } }, - "id": 5941, + "id": 5945, "nodeType": "InheritanceSpecifier", "src": "435:7:16" } ], "contractDependencies": [ - 5749 + 5753 ], "contractKind": "contract", "documentation": "@dev Contract module which provides a basic access control mechanism, where\nthere is an account (an owner) that can be granted exclusive access to\nspecific functions.\n * This module is used through inheritance. It will make available the modifier\n`onlyOwner`, which can be applied to your functions to restrict their use to\nthe owner.", "fullyImplemented": true, - "id": 6054, + "id": 6058, "linearizedBaseContracts": [ - 6054, - 5749 + 6058, + 5753 ], "name": "Ownable", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, - "id": 5943, + "id": 5947, "name": "_owner", "nodeType": "VariableDeclaration", - "scope": 6054, + "scope": 6058, "src": "449:22:16", "stateVariable": true, "storageLocation": "default", @@ -1649,7 +1649,7 @@ "typeString": "address" }, "typeName": { - "id": 5942, + "id": 5946, "name": "address", "nodeType": "ElementaryTypeName", "src": "449:7:16", @@ -1665,20 +1665,20 @@ { "anonymous": false, "documentation": null, - "id": 5949, + "id": 5953, "name": "OwnershipTransferred", "nodeType": "EventDefinition", "parameters": { - "id": 5948, + "id": 5952, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5945, + "id": 5949, "indexed": true, "name": "previousOwner", "nodeType": "VariableDeclaration", - "scope": 5949, + "scope": 5953, "src": "505:29:16", "stateVariable": false, "storageLocation": "default", @@ -1687,7 +1687,7 @@ "typeString": "address" }, "typeName": { - "id": 5944, + "id": 5948, "name": "address", "nodeType": "ElementaryTypeName", "src": "505:7:16", @@ -1702,11 +1702,11 @@ }, { "constant": false, - "id": 5947, + "id": 5951, "indexed": true, "name": "newOwner", "nodeType": "VariableDeclaration", - "scope": 5949, + "scope": 5953, "src": "536:24:16", "stateVariable": false, "storageLocation": "default", @@ -1715,7 +1715,7 @@ "typeString": "address" }, "typeName": { - "id": 5946, + "id": 5950, "name": "address", "nodeType": "ElementaryTypeName", "src": "536:7:16", @@ -1735,21 +1735,21 @@ }, { "body": { - "id": 5968, + "id": 5972, "nodeType": "Block", "src": "688:135:16", "statements": [ { "assignments": [ - 5953 + 5957 ], "declarations": [ { "constant": false, - "id": 5953, + "id": 5957, "name": "msgSender", "nodeType": "VariableDeclaration", - "scope": 5968, + "scope": 5972, "src": "698:17:16", "stateVariable": false, "storageLocation": "default", @@ -1758,7 +1758,7 @@ "typeString": "address" }, "typeName": { - "id": 5952, + "id": 5956, "name": "address", "nodeType": "ElementaryTypeName", "src": "698:7:16", @@ -1772,24 +1772,24 @@ "visibility": "internal" } ], - "id": 5956, + "id": 5960, "initialValue": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], - "id": 5954, + "id": 5958, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5737, + "referencedDeclaration": 5741, "src": "718:10:16", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 5955, + "id": 5959, "isConstant": false, "isLValue": false, "isPure": false, @@ -1809,18 +1809,18 @@ { "expression": { "argumentTypes": null, - "id": 5959, + "id": 5963, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 5957, + "id": 5961, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5943, + "referencedDeclaration": 5947, "src": "740:6:16", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1831,11 +1831,11 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 5958, + "id": 5962, "name": "msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5953, + "referencedDeclaration": 5957, "src": "749:9:16", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1848,7 +1848,7 @@ "typeString": "address" } }, - "id": 5960, + "id": 5964, "nodeType": "ExpressionStatement", "src": "740:18:16" }, @@ -1862,7 +1862,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 5963, + "id": 5967, "isConstant": false, "isLValue": false, "isPure": true, @@ -1885,7 +1885,7 @@ "typeString": "int_const 0" } ], - "id": 5962, + "id": 5966, "isConstant": false, "isLValue": false, "isPure": true, @@ -1898,7 +1898,7 @@ }, "typeName": "address" }, - "id": 5964, + "id": 5968, "isConstant": false, "isLValue": false, "isPure": true, @@ -1914,11 +1914,11 @@ }, { "argumentTypes": null, - "id": 5965, + "id": 5969, "name": "msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5953, + "referencedDeclaration": 5957, "src": "806:9:16", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1937,18 +1937,18 @@ "typeString": "address" } ], - "id": 5961, + "id": 5965, "name": "OwnershipTransferred", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5949, + "referencedDeclaration": 5953, "src": "773:20:16", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$", "typeString": "function (address,address)" } }, - "id": 5966, + "id": 5970, "isConstant": false, "isLValue": false, "isPure": false, @@ -1962,32 +1962,32 @@ "typeString": "tuple()" } }, - "id": 5967, + "id": 5971, "nodeType": "EmitStatement", "src": "768:48:16" } ] }, "documentation": "@dev Initializes the contract setting the deployer as the initial owner.", - "id": 5969, + "id": 5973, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { - "id": 5950, + "id": 5954, "nodeType": "ParameterList", "parameters": [], "src": "676:2:16" }, "returnParameters": { - "id": 5951, + "id": 5955, "nodeType": "ParameterList", "parameters": [], "src": "688:0:16" }, - "scope": 6054, + "scope": 6058, "src": "664:159:16", "stateMutability": "nonpayable", "superFunction": null, @@ -1995,54 +1995,54 @@ }, { "body": { - "id": 5976, + "id": 5980, "nodeType": "Block", "src": "946:30:16", "statements": [ { "expression": { "argumentTypes": null, - "id": 5974, + "id": 5978, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5943, + "referencedDeclaration": 5947, "src": "963:6:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "functionReturnParameters": 5973, - "id": 5975, + "functionReturnParameters": 5977, + "id": 5979, "nodeType": "Return", "src": "956:13:16" } ] }, "documentation": "@dev Returns the address of the current owner.", - "id": 5977, + "id": 5981, "implemented": true, "kind": "function", "modifiers": [], "name": "owner", "nodeType": "FunctionDefinition", "parameters": { - "id": 5970, + "id": 5974, "nodeType": "ParameterList", "parameters": [], "src": "913:2:16" }, "returnParameters": { - "id": 5973, + "id": 5977, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5972, + "id": 5976, "name": "", "nodeType": "VariableDeclaration", - "scope": 5977, + "scope": 5981, "src": "937:7:16", "stateVariable": false, "storageLocation": "default", @@ -2051,7 +2051,7 @@ "typeString": "address" }, "typeName": { - "id": 5971, + "id": 5975, "name": "address", "nodeType": "ElementaryTypeName", "src": "937:7:16", @@ -2067,7 +2067,7 @@ ], "src": "936:9:16" }, - "scope": 6054, + "scope": 6058, "src": "899:77:16", "stateMutability": "view", "superFunction": null, @@ -2075,7 +2075,7 @@ }, { "body": { - "id": 5986, + "id": 5990, "nodeType": "Block", "src": "1085:82:16", "statements": [ @@ -2088,18 +2088,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 5980, + "id": 5984, "name": "isOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5998, + "referencedDeclaration": 6002, "src": "1103:7:16", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_bool_$", "typeString": "function () view returns (bool)" } }, - "id": 5981, + "id": 5985, "isConstant": false, "isLValue": false, "isPure": false, @@ -2116,7 +2116,7 @@ { "argumentTypes": null, "hexValue": "4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572", - "id": 5982, + "id": 5986, "isConstant": false, "isLValue": false, "isPure": true, @@ -2143,21 +2143,21 @@ "typeString": "literal_string \"Ownable: caller is not the owner\"" } ], - "id": 5979, + "id": 5983, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1095:7:16", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5983, + "id": 5987, "isConstant": false, "isLValue": false, "isPure": false, @@ -2171,23 +2171,23 @@ "typeString": "tuple()" } }, - "id": 5984, + "id": 5988, "nodeType": "ExpressionStatement", "src": "1095:54:16" }, { - "id": 5985, + "id": 5989, "nodeType": "PlaceholderStatement", "src": "1159:1:16" } ] }, "documentation": "@dev Throws if called by any account other than the owner.", - "id": 5987, + "id": 5991, "name": "onlyOwner", "nodeType": "ModifierDefinition", "parameters": { - "id": 5978, + "id": 5982, "nodeType": "ParameterList", "parameters": [], "src": "1082:2:16" @@ -2197,7 +2197,7 @@ }, { "body": { - "id": 5997, + "id": 6001, "nodeType": "Block", "src": "1296:46:16", "statements": [ @@ -2208,7 +2208,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 5995, + "id": 5999, "isConstant": false, "isLValue": false, "isPure": false, @@ -2218,18 +2218,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 5992, + "id": 5996, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5737, + "referencedDeclaration": 5741, "src": "1313:10:16", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 5993, + "id": 5997, "isConstant": false, "isLValue": false, "isPure": false, @@ -2247,11 +2247,11 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 5994, + "id": 5998, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5943, + "referencedDeclaration": 5947, "src": "1329:6:16", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2264,36 +2264,36 @@ "typeString": "bool" } }, - "functionReturnParameters": 5991, - "id": 5996, + "functionReturnParameters": 5995, + "id": 6000, "nodeType": "Return", "src": "1306:29:16" } ] }, "documentation": "@dev Returns true if the caller is the current owner.", - "id": 5998, + "id": 6002, "implemented": true, "kind": "function", "modifiers": [], "name": "isOwner", "nodeType": "FunctionDefinition", "parameters": { - "id": 5988, + "id": 5992, "nodeType": "ParameterList", "parameters": [], "src": "1266:2:16" }, "returnParameters": { - "id": 5991, + "id": 5995, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5990, + "id": 5994, "name": "", "nodeType": "VariableDeclaration", - "scope": 5998, + "scope": 6002, "src": "1290:4:16", "stateVariable": false, "storageLocation": "default", @@ -2302,7 +2302,7 @@ "typeString": "bool" }, "typeName": { - "id": 5989, + "id": 5993, "name": "bool", "nodeType": "ElementaryTypeName", "src": "1290:4:16", @@ -2317,7 +2317,7 @@ ], "src": "1289:6:16" }, - "scope": 6054, + "scope": 6058, "src": "1250:92:16", "stateMutability": "view", "superFunction": null, @@ -2325,7 +2325,7 @@ }, { "body": { - "id": 6016, + "id": 6020, "nodeType": "Block", "src": "1730:91:16", "statements": [ @@ -2335,11 +2335,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6004, + "id": 6008, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5943, + "referencedDeclaration": 5947, "src": "1766:6:16", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2352,7 +2352,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6006, + "id": 6010, "isConstant": false, "isLValue": false, "isPure": true, @@ -2375,7 +2375,7 @@ "typeString": "int_const 0" } ], - "id": 6005, + "id": 6009, "isConstant": false, "isLValue": false, "isPure": true, @@ -2388,7 +2388,7 @@ }, "typeName": "address" }, - "id": 6007, + "id": 6011, "isConstant": false, "isLValue": false, "isPure": true, @@ -2414,18 +2414,18 @@ "typeString": "address payable" } ], - "id": 6003, + "id": 6007, "name": "OwnershipTransferred", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5949, + "referencedDeclaration": 5953, "src": "1745:20:16", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$", "typeString": "function (address,address)" } }, - "id": 6008, + "id": 6012, "isConstant": false, "isLValue": false, "isPure": false, @@ -2439,25 +2439,25 @@ "typeString": "tuple()" } }, - "id": 6009, + "id": 6013, "nodeType": "EmitStatement", "src": "1740:45:16" }, { "expression": { "argumentTypes": null, - "id": 6014, + "id": 6018, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 6010, + "id": 6014, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5943, + "referencedDeclaration": 5947, "src": "1795:6:16", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2472,7 +2472,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6012, + "id": 6016, "isConstant": false, "isLValue": false, "isPure": true, @@ -2495,7 +2495,7 @@ "typeString": "int_const 0" } ], - "id": 6011, + "id": 6015, "isConstant": false, "isLValue": false, "isPure": true, @@ -2508,7 +2508,7 @@ }, "typeName": "address" }, - "id": 6013, + "id": 6017, "isConstant": false, "isLValue": false, "isPure": true, @@ -2528,27 +2528,27 @@ "typeString": "address" } }, - "id": 6015, + "id": 6019, "nodeType": "ExpressionStatement", "src": "1795:19:16" } ] }, "documentation": "@dev Leaves the contract without owner. It will not be possible to call\n`onlyOwner` functions anymore. Can only be called by the current owner.\n * NOTE: Renouncing ownership will leave the contract without an owner,\nthereby removing any functionality that is only available to the owner.", - "id": 6017, + "id": 6021, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, - "id": 6001, + "id": 6005, "modifierName": { "argumentTypes": null, - "id": 6000, + "id": 6004, "name": "onlyOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, + "referencedDeclaration": 5991, "src": "1720:9:16", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", @@ -2562,18 +2562,18 @@ "name": "renounceOwnership", "nodeType": "FunctionDefinition", "parameters": { - "id": 5999, + "id": 6003, "nodeType": "ParameterList", "parameters": [], "src": "1710:2:16" }, "returnParameters": { - "id": 6002, + "id": 6006, "nodeType": "ParameterList", "parameters": [], "src": "1730:0:16" }, - "scope": 6054, + "scope": 6058, "src": "1684:137:16", "stateMutability": "nonpayable", "superFunction": null, @@ -2581,7 +2581,7 @@ }, { "body": { - "id": 6028, + "id": 6032, "nodeType": "Block", "src": "2032:45:16", "statements": [ @@ -2591,11 +2591,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6025, + "id": 6029, "name": "newOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6019, + "referencedDeclaration": 6023, "src": "2061:8:16", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2610,18 +2610,18 @@ "typeString": "address" } ], - "id": 6024, + "id": 6028, "name": "_transferOwnership", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6053, + "referencedDeclaration": 6057, "src": "2042:18:16", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$", "typeString": "function (address)" } }, - "id": 6026, + "id": 6030, "isConstant": false, "isLValue": false, "isPure": false, @@ -2635,27 +2635,27 @@ "typeString": "tuple()" } }, - "id": 6027, + "id": 6031, "nodeType": "ExpressionStatement", "src": "2042:28:16" } ] }, "documentation": "@dev Transfers ownership of the contract to a new account (`newOwner`).\nCan only be called by the current owner.", - "id": 6029, + "id": 6033, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, - "id": 6022, + "id": 6026, "modifierName": { "argumentTypes": null, - "id": 6021, + "id": 6025, "name": "onlyOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, + "referencedDeclaration": 5991, "src": "2022:9:16", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", @@ -2669,15 +2669,15 @@ "name": "transferOwnership", "nodeType": "FunctionDefinition", "parameters": { - "id": 6020, + "id": 6024, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6019, + "id": 6023, "name": "newOwner", "nodeType": "VariableDeclaration", - "scope": 6029, + "scope": 6033, "src": "1997:16:16", "stateVariable": false, "storageLocation": "default", @@ -2686,7 +2686,7 @@ "typeString": "address" }, "typeName": { - "id": 6018, + "id": 6022, "name": "address", "nodeType": "ElementaryTypeName", "src": "1997:7:16", @@ -2703,12 +2703,12 @@ "src": "1996:18:16" }, "returnParameters": { - "id": 6023, + "id": 6027, "nodeType": "ParameterList", "parameters": [], "src": "2032:0:16" }, - "scope": 6054, + "scope": 6058, "src": "1970:107:16", "stateMutability": "nonpayable", "superFunction": null, @@ -2716,7 +2716,7 @@ }, { "body": { - "id": 6052, + "id": 6056, "nodeType": "Block", "src": "2233:170:16", "statements": [ @@ -2730,18 +2730,18 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6039, + "id": 6043, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6035, + "id": 6039, "name": "newOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6031, + "referencedDeclaration": 6035, "src": "2251:8:16", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2756,7 +2756,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6037, + "id": 6041, "isConstant": false, "isLValue": false, "isPure": true, @@ -2779,7 +2779,7 @@ "typeString": "int_const 0" } ], - "id": 6036, + "id": 6040, "isConstant": false, "isLValue": false, "isPure": true, @@ -2792,7 +2792,7 @@ }, "typeName": "address" }, - "id": 6038, + "id": 6042, "isConstant": false, "isLValue": false, "isPure": true, @@ -2815,7 +2815,7 @@ { "argumentTypes": null, "hexValue": "4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373", - "id": 6040, + "id": 6044, "isConstant": false, "isLValue": false, "isPure": true, @@ -2842,21 +2842,21 @@ "typeString": "literal_string \"Ownable: new owner is the zero address\"" } ], - "id": 6034, + "id": 6038, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2243:7:16", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6041, + "id": 6045, "isConstant": false, "isLValue": false, "isPure": false, @@ -2870,7 +2870,7 @@ "typeString": "tuple()" } }, - "id": 6042, + "id": 6046, "nodeType": "ExpressionStatement", "src": "2243:73:16" }, @@ -2880,11 +2880,11 @@ "arguments": [ { "argumentTypes": null, - "id": 6044, + "id": 6048, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5943, + "referencedDeclaration": 5947, "src": "2352:6:16", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2893,11 +2893,11 @@ }, { "argumentTypes": null, - "id": 6045, + "id": 6049, "name": "newOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6031, + "referencedDeclaration": 6035, "src": "2360:8:16", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2916,18 +2916,18 @@ "typeString": "address" } ], - "id": 6043, + "id": 6047, "name": "OwnershipTransferred", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5949, + "referencedDeclaration": 5953, "src": "2331:20:16", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$", "typeString": "function (address,address)" } }, - "id": 6046, + "id": 6050, "isConstant": false, "isLValue": false, "isPure": false, @@ -2941,25 +2941,25 @@ "typeString": "tuple()" } }, - "id": 6047, + "id": 6051, "nodeType": "EmitStatement", "src": "2326:43:16" }, { "expression": { "argumentTypes": null, - "id": 6050, + "id": 6054, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 6048, + "id": 6052, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5943, + "referencedDeclaration": 5947, "src": "2379:6:16", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2970,11 +2970,11 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 6049, + "id": 6053, "name": "newOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6031, + "referencedDeclaration": 6035, "src": "2388:8:16", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2987,29 +2987,29 @@ "typeString": "address" } }, - "id": 6051, + "id": 6055, "nodeType": "ExpressionStatement", "src": "2379:17:16" } ] }, "documentation": "@dev Transfers ownership of the contract to a new account (`newOwner`).", - "id": 6053, + "id": 6057, "implemented": true, "kind": "function", "modifiers": [], "name": "_transferOwnership", "nodeType": "FunctionDefinition", "parameters": { - "id": 6032, + "id": 6036, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6031, + "id": 6035, "name": "newOwner", "nodeType": "VariableDeclaration", - "scope": 6053, + "scope": 6057, "src": "2206:16:16", "stateVariable": false, "storageLocation": "default", @@ -3018,7 +3018,7 @@ "typeString": "address" }, "typeName": { - "id": 6030, + "id": 6034, "name": "address", "nodeType": "ElementaryTypeName", "src": "2206:7:16", @@ -3035,19 +3035,19 @@ "src": "2205:18:16" }, "returnParameters": { - "id": 6033, + "id": 6037, "nodeType": "ParameterList", "parameters": [], "src": "2233:0:16" }, - "scope": 6054, + "scope": 6058, "src": "2178:225:16", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" } ], - "scope": 6055, + "scope": 6059, "src": "415:1990:16" } ], @@ -3059,7 +3059,7 @@ }, "networks": {}, "schemaVersion": "3.2.4", - "updatedAt": "2020-10-01T09:28:54.482Z", + "updatedAt": "2020-10-01T15:18:05.194Z", "devdoc": { "details": "Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. * This module is used through inheritance. It will make available the modifier `onlyOwner`, which can be applied to your functions to restrict their use to the owner.", "methods": { diff --git a/artifacts/SafeMath.json b/artifacts/SafeMath.json index 9d97eb266..2934a517c 100644 --- a/artifacts/SafeMath.json +++ b/artifacts/SafeMath.json @@ -12,14 +12,14 @@ "absolutePath": "openzeppelin-solidity/contracts/math/SafeMath.sol", "exportedSymbols": { "SafeMath": [ - 5936 + 5940 ] }, - "id": 5937, + "id": 5941, "nodeType": "SourceUnit", "nodes": [ { - "id": 5751, + "id": 5755, "literals": [ "solidity", "^", @@ -35,30 +35,30 @@ "contractKind": "library", "documentation": "@dev Wrappers over Solidity's arithmetic operations with added overflow\nchecks.\n * Arithmetic operations in Solidity wrap on overflow. This can easily result\nin bugs, because programmers usually assume that an overflow raises an\nerror, which is the standard behavior in high level programming languages.\n`SafeMath` restores this intuition by reverting the transaction when an\noperation overflows.\n * Using this library instead of the unchecked operations eliminates an entire\nclass of bugs, so it's recommended to use it always.", "fullyImplemented": true, - "id": 5936, + "id": 5940, "linearizedBaseContracts": [ - 5936 + 5940 ], "name": "SafeMath", "nodeType": "ContractDefinition", "nodes": [ { "body": { - "id": 5775, + "id": 5779, "nodeType": "Block", "src": "901:109:15", "statements": [ { "assignments": [ - 5761 + 5765 ], "declarations": [ { "constant": false, - "id": 5761, + "id": 5765, "name": "c", "nodeType": "VariableDeclaration", - "scope": 5775, + "scope": 5779, "src": "911:9:15", "stateVariable": false, "storageLocation": "default", @@ -67,7 +67,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5760, + "id": 5764, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "911:7:15", @@ -80,25 +80,25 @@ "visibility": "internal" } ], - "id": 5765, + "id": 5769, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5764, + "id": 5768, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5762, + "id": 5766, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5753, + "referencedDeclaration": 5757, "src": "923:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -109,11 +109,11 @@ "operator": "+", "rightExpression": { "argumentTypes": null, - "id": 5763, + "id": 5767, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5755, + "referencedDeclaration": 5759, "src": "927:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -139,18 +139,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5769, + "id": 5773, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5767, + "id": 5771, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5761, + "referencedDeclaration": 5765, "src": "946:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -161,11 +161,11 @@ "operator": ">=", "rightExpression": { "argumentTypes": null, - "id": 5768, + "id": 5772, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5753, + "referencedDeclaration": 5757, "src": "951:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -181,7 +181,7 @@ { "argumentTypes": null, "hexValue": "536166654d6174683a206164646974696f6e206f766572666c6f77", - "id": 5770, + "id": 5774, "isConstant": false, "isLValue": false, "isPure": true, @@ -208,21 +208,21 @@ "typeString": "literal_string \"SafeMath: addition overflow\"" } ], - "id": 5766, + "id": 5770, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "938:7:15", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5771, + "id": 5775, "isConstant": false, "isLValue": false, "isPure": false, @@ -236,48 +236,48 @@ "typeString": "tuple()" } }, - "id": 5772, + "id": 5776, "nodeType": "ExpressionStatement", "src": "938:46:15" }, { "expression": { "argumentTypes": null, - "id": 5773, + "id": 5777, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5761, + "referencedDeclaration": 5765, "src": "1002:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 5759, - "id": 5774, + "functionReturnParameters": 5763, + "id": 5778, "nodeType": "Return", "src": "995:8:15" } ] }, "documentation": "@dev Returns the addition of two unsigned integers, reverting on\noverflow.\n * Counterpart to Solidity's `+` operator.\n * Requirements:\n- Addition cannot overflow.", - "id": 5776, + "id": 5780, "implemented": true, "kind": "function", "modifiers": [], "name": "add", "nodeType": "FunctionDefinition", "parameters": { - "id": 5756, + "id": 5760, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5753, + "id": 5757, "name": "a", "nodeType": "VariableDeclaration", - "scope": 5776, + "scope": 5780, "src": "847:9:15", "stateVariable": false, "storageLocation": "default", @@ -286,7 +286,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5752, + "id": 5756, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "847:7:15", @@ -300,10 +300,10 @@ }, { "constant": false, - "id": 5755, + "id": 5759, "name": "b", "nodeType": "VariableDeclaration", - "scope": 5776, + "scope": 5780, "src": "858:9:15", "stateVariable": false, "storageLocation": "default", @@ -312,7 +312,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5754, + "id": 5758, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "858:7:15", @@ -328,15 +328,15 @@ "src": "846:22:15" }, "returnParameters": { - "id": 5759, + "id": 5763, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5758, + "id": 5762, "name": "", "nodeType": "VariableDeclaration", - "scope": 5776, + "scope": 5780, "src": "892:7:15", "stateVariable": false, "storageLocation": "default", @@ -345,7 +345,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5757, + "id": 5761, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "892:7:15", @@ -360,7 +360,7 @@ ], "src": "891:9:15" }, - "scope": 5936, + "scope": 5940, "src": "834:176:15", "stateMutability": "pure", "superFunction": null, @@ -368,7 +368,7 @@ }, { "body": { - "id": 5791, + "id": 5795, "nodeType": "Block", "src": "1341:67:15", "statements": [ @@ -378,11 +378,11 @@ "arguments": [ { "argumentTypes": null, - "id": 5786, + "id": 5790, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5778, + "referencedDeclaration": 5782, "src": "1362:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -391,11 +391,11 @@ }, { "argumentTypes": null, - "id": 5787, + "id": 5791, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5780, + "referencedDeclaration": 5784, "src": "1365:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -405,7 +405,7 @@ { "argumentTypes": null, "hexValue": "536166654d6174683a207375627472616374696f6e206f766572666c6f77", - "id": 5788, + "id": 5792, "isConstant": false, "isLValue": false, "isPure": true, @@ -436,21 +436,21 @@ "typeString": "literal_string \"SafeMath: subtraction overflow\"" } ], - "id": 5785, + "id": 5789, "name": "sub", "nodeType": "Identifier", "overloadedDeclarations": [ - 5792, - 5819 + 5796, + 5823 ], - "referencedDeclaration": 5819, + "referencedDeclaration": 5823, "src": "1358:3:15", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_string_memory_ptr_$returns$_t_uint256_$", "typeString": "function (uint256,uint256,string memory) pure returns (uint256)" } }, - "id": 5789, + "id": 5793, "isConstant": false, "isLValue": false, "isPure": false, @@ -464,30 +464,30 @@ "typeString": "uint256" } }, - "functionReturnParameters": 5784, - "id": 5790, + "functionReturnParameters": 5788, + "id": 5794, "nodeType": "Return", "src": "1351:50:15" } ] }, "documentation": "@dev Returns the subtraction of two unsigned integers, reverting on\noverflow (when the result is negative).\n * Counterpart to Solidity's `-` operator.\n * Requirements:\n- Subtraction cannot overflow.", - "id": 5792, + "id": 5796, "implemented": true, "kind": "function", "modifiers": [], "name": "sub", "nodeType": "FunctionDefinition", "parameters": { - "id": 5781, + "id": 5785, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5778, + "id": 5782, "name": "a", "nodeType": "VariableDeclaration", - "scope": 5792, + "scope": 5796, "src": "1287:9:15", "stateVariable": false, "storageLocation": "default", @@ -496,7 +496,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5777, + "id": 5781, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1287:7:15", @@ -510,10 +510,10 @@ }, { "constant": false, - "id": 5780, + "id": 5784, "name": "b", "nodeType": "VariableDeclaration", - "scope": 5792, + "scope": 5796, "src": "1298:9:15", "stateVariable": false, "storageLocation": "default", @@ -522,7 +522,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5779, + "id": 5783, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1298:7:15", @@ -538,15 +538,15 @@ "src": "1286:22:15" }, "returnParameters": { - "id": 5784, + "id": 5788, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5783, + "id": 5787, "name": "", "nodeType": "VariableDeclaration", - "scope": 5792, + "scope": 5796, "src": "1332:7:15", "stateVariable": false, "storageLocation": "default", @@ -555,7 +555,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5782, + "id": 5786, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1332:7:15", @@ -570,7 +570,7 @@ ], "src": "1331:9:15" }, - "scope": 5936, + "scope": 5940, "src": "1274:134:15", "stateMutability": "pure", "superFunction": null, @@ -578,7 +578,7 @@ }, { "body": { - "id": 5818, + "id": 5822, "nodeType": "Block", "src": "1827:92:15", "statements": [ @@ -592,18 +592,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5806, + "id": 5810, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5804, + "id": 5808, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5796, + "referencedDeclaration": 5800, "src": "1845:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -614,11 +614,11 @@ "operator": "<=", "rightExpression": { "argumentTypes": null, - "id": 5805, + "id": 5809, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5794, + "referencedDeclaration": 5798, "src": "1850:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -633,11 +633,11 @@ }, { "argumentTypes": null, - "id": 5807, + "id": 5811, "name": "errorMessage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5798, + "referencedDeclaration": 5802, "src": "1853:12:15", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -656,21 +656,21 @@ "typeString": "string memory" } ], - "id": 5803, + "id": 5807, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1837:7:15", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5808, + "id": 5812, "isConstant": false, "isLValue": false, "isPure": false, @@ -684,21 +684,21 @@ "typeString": "tuple()" } }, - "id": 5809, + "id": 5813, "nodeType": "ExpressionStatement", "src": "1837:29:15" }, { "assignments": [ - 5811 + 5815 ], "declarations": [ { "constant": false, - "id": 5811, + "id": 5815, "name": "c", "nodeType": "VariableDeclaration", - "scope": 5818, + "scope": 5822, "src": "1876:9:15", "stateVariable": false, "storageLocation": "default", @@ -707,7 +707,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5810, + "id": 5814, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1876:7:15", @@ -720,25 +720,25 @@ "visibility": "internal" } ], - "id": 5815, + "id": 5819, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5814, + "id": 5818, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5812, + "id": 5816, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5794, + "referencedDeclaration": 5798, "src": "1888:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -749,11 +749,11 @@ "operator": "-", "rightExpression": { "argumentTypes": null, - "id": 5813, + "id": 5817, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5796, + "referencedDeclaration": 5800, "src": "1892:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -772,41 +772,41 @@ { "expression": { "argumentTypes": null, - "id": 5816, + "id": 5820, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5811, + "referencedDeclaration": 5815, "src": "1911:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 5802, - "id": 5817, + "functionReturnParameters": 5806, + "id": 5821, "nodeType": "Return", "src": "1904:8:15" } ] }, "documentation": "@dev Returns the subtraction of two unsigned integers, reverting with custom message on\noverflow (when the result is negative).\n * Counterpart to Solidity's `-` operator.\n * Requirements:\n- Subtraction cannot overflow.\n * _Available since v2.4.0._", - "id": 5819, + "id": 5823, "implemented": true, "kind": "function", "modifiers": [], "name": "sub", "nodeType": "FunctionDefinition", "parameters": { - "id": 5799, + "id": 5803, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5794, + "id": 5798, "name": "a", "nodeType": "VariableDeclaration", - "scope": 5819, + "scope": 5823, "src": "1745:9:15", "stateVariable": false, "storageLocation": "default", @@ -815,7 +815,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5793, + "id": 5797, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1745:7:15", @@ -829,10 +829,10 @@ }, { "constant": false, - "id": 5796, + "id": 5800, "name": "b", "nodeType": "VariableDeclaration", - "scope": 5819, + "scope": 5823, "src": "1756:9:15", "stateVariable": false, "storageLocation": "default", @@ -841,7 +841,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5795, + "id": 5799, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1756:7:15", @@ -855,10 +855,10 @@ }, { "constant": false, - "id": 5798, + "id": 5802, "name": "errorMessage", "nodeType": "VariableDeclaration", - "scope": 5819, + "scope": 5823, "src": "1767:26:15", "stateVariable": false, "storageLocation": "memory", @@ -867,7 +867,7 @@ "typeString": "string" }, "typeName": { - "id": 5797, + "id": 5801, "name": "string", "nodeType": "ElementaryTypeName", "src": "1767:6:15", @@ -883,15 +883,15 @@ "src": "1744:50:15" }, "returnParameters": { - "id": 5802, + "id": 5806, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5801, + "id": 5805, "name": "", "nodeType": "VariableDeclaration", - "scope": 5819, + "scope": 5823, "src": "1818:7:15", "stateVariable": false, "storageLocation": "default", @@ -900,7 +900,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5800, + "id": 5804, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1818:7:15", @@ -915,7 +915,7 @@ ], "src": "1817:9:15" }, - "scope": 5936, + "scope": 5940, "src": "1732:187:15", "stateMutability": "pure", "superFunction": null, @@ -923,7 +923,7 @@ }, { "body": { - "id": 5852, + "id": 5856, "nodeType": "Block", "src": "2226:392:15", "statements": [ @@ -934,18 +934,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5830, + "id": 5834, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5828, + "id": 5832, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5821, + "referencedDeclaration": 5825, "src": "2458:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -957,7 +957,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 5829, + "id": 5833, "isConstant": false, "isLValue": false, "isPure": true, @@ -979,11 +979,11 @@ } }, "falseBody": null, - "id": 5834, + "id": 5838, "nodeType": "IfStatement", "src": "2454:45:15", "trueBody": { - "id": 5833, + "id": 5837, "nodeType": "Block", "src": "2466:33:15", "statements": [ @@ -991,7 +991,7 @@ "expression": { "argumentTypes": null, "hexValue": "30", - "id": 5831, + "id": 5835, "isConstant": false, "isLValue": false, "isPure": true, @@ -1006,8 +1006,8 @@ }, "value": "0" }, - "functionReturnParameters": 5827, - "id": 5832, + "functionReturnParameters": 5831, + "id": 5836, "nodeType": "Return", "src": "2480:8:15" } @@ -1016,15 +1016,15 @@ }, { "assignments": [ - 5836 + 5840 ], "declarations": [ { "constant": false, - "id": 5836, + "id": 5840, "name": "c", "nodeType": "VariableDeclaration", - "scope": 5852, + "scope": 5856, "src": "2509:9:15", "stateVariable": false, "storageLocation": "default", @@ -1033,7 +1033,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5835, + "id": 5839, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2509:7:15", @@ -1046,25 +1046,25 @@ "visibility": "internal" } ], - "id": 5840, + "id": 5844, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5839, + "id": 5843, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5837, + "id": 5841, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5821, + "referencedDeclaration": 5825, "src": "2521:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1075,11 +1075,11 @@ "operator": "*", "rightExpression": { "argumentTypes": null, - "id": 5838, + "id": 5842, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5823, + "referencedDeclaration": 5827, "src": "2525:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1105,7 +1105,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5846, + "id": 5850, "isConstant": false, "isLValue": false, "isPure": false, @@ -1116,18 +1116,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5844, + "id": 5848, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5842, + "id": 5846, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5836, + "referencedDeclaration": 5840, "src": "2544:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1138,11 +1138,11 @@ "operator": "/", "rightExpression": { "argumentTypes": null, - "id": 5843, + "id": 5847, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5821, + "referencedDeclaration": 5825, "src": "2548:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1159,11 +1159,11 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 5845, + "id": 5849, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5823, + "referencedDeclaration": 5827, "src": "2553:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1179,7 +1179,7 @@ { "argumentTypes": null, "hexValue": "536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77", - "id": 5847, + "id": 5851, "isConstant": false, "isLValue": false, "isPure": true, @@ -1206,21 +1206,21 @@ "typeString": "literal_string \"SafeMath: multiplication overflow\"" } ], - "id": 5841, + "id": 5845, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2536:7:15", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5848, + "id": 5852, "isConstant": false, "isLValue": false, "isPure": false, @@ -1234,48 +1234,48 @@ "typeString": "tuple()" } }, - "id": 5849, + "id": 5853, "nodeType": "ExpressionStatement", "src": "2536:56:15" }, { "expression": { "argumentTypes": null, - "id": 5850, + "id": 5854, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5836, + "referencedDeclaration": 5840, "src": "2610:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 5827, - "id": 5851, + "functionReturnParameters": 5831, + "id": 5855, "nodeType": "Return", "src": "2603:8:15" } ] }, "documentation": "@dev Returns the multiplication of two unsigned integers, reverting on\noverflow.\n * Counterpart to Solidity's `*` operator.\n * Requirements:\n- Multiplication cannot overflow.", - "id": 5853, + "id": 5857, "implemented": true, "kind": "function", "modifiers": [], "name": "mul", "nodeType": "FunctionDefinition", "parameters": { - "id": 5824, + "id": 5828, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5821, + "id": 5825, "name": "a", "nodeType": "VariableDeclaration", - "scope": 5853, + "scope": 5857, "src": "2172:9:15", "stateVariable": false, "storageLocation": "default", @@ -1284,7 +1284,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5820, + "id": 5824, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2172:7:15", @@ -1298,10 +1298,10 @@ }, { "constant": false, - "id": 5823, + "id": 5827, "name": "b", "nodeType": "VariableDeclaration", - "scope": 5853, + "scope": 5857, "src": "2183:9:15", "stateVariable": false, "storageLocation": "default", @@ -1310,7 +1310,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5822, + "id": 5826, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2183:7:15", @@ -1326,15 +1326,15 @@ "src": "2171:22:15" }, "returnParameters": { - "id": 5827, + "id": 5831, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5826, + "id": 5830, "name": "", "nodeType": "VariableDeclaration", - "scope": 5853, + "scope": 5857, "src": "2217:7:15", "stateVariable": false, "storageLocation": "default", @@ -1343,7 +1343,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5825, + "id": 5829, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2217:7:15", @@ -1358,7 +1358,7 @@ ], "src": "2216:9:15" }, - "scope": 5936, + "scope": 5940, "src": "2159:459:15", "stateMutability": "pure", "superFunction": null, @@ -1366,7 +1366,7 @@ }, { "body": { - "id": 5868, + "id": 5872, "nodeType": "Block", "src": "3140:63:15", "statements": [ @@ -1376,11 +1376,11 @@ "arguments": [ { "argumentTypes": null, - "id": 5863, + "id": 5867, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5855, + "referencedDeclaration": 5859, "src": "3161:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1389,11 +1389,11 @@ }, { "argumentTypes": null, - "id": 5864, + "id": 5868, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5857, + "referencedDeclaration": 5861, "src": "3164:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1403,7 +1403,7 @@ { "argumentTypes": null, "hexValue": "536166654d6174683a206469766973696f6e206279207a65726f", - "id": 5865, + "id": 5869, "isConstant": false, "isLValue": false, "isPure": true, @@ -1434,21 +1434,21 @@ "typeString": "literal_string \"SafeMath: division by zero\"" } ], - "id": 5862, + "id": 5866, "name": "div", "nodeType": "Identifier", "overloadedDeclarations": [ - 5869, - 5896 + 5873, + 5900 ], - "referencedDeclaration": 5896, + "referencedDeclaration": 5900, "src": "3157:3:15", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_string_memory_ptr_$returns$_t_uint256_$", "typeString": "function (uint256,uint256,string memory) pure returns (uint256)" } }, - "id": 5866, + "id": 5870, "isConstant": false, "isLValue": false, "isPure": false, @@ -1462,30 +1462,30 @@ "typeString": "uint256" } }, - "functionReturnParameters": 5861, - "id": 5867, + "functionReturnParameters": 5865, + "id": 5871, "nodeType": "Return", "src": "3150:46:15" } ] }, "documentation": "@dev Returns the integer division of two unsigned integers. Reverts on\ndivision by zero. The result is rounded towards zero.\n * Counterpart to Solidity's `/` operator. Note: this function uses a\n`revert` opcode (which leaves remaining gas untouched) while Solidity\nuses an invalid opcode to revert (consuming all remaining gas).\n * Requirements:\n- The divisor cannot be zero.", - "id": 5869, + "id": 5873, "implemented": true, "kind": "function", "modifiers": [], "name": "div", "nodeType": "FunctionDefinition", "parameters": { - "id": 5858, + "id": 5862, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5855, + "id": 5859, "name": "a", "nodeType": "VariableDeclaration", - "scope": 5869, + "scope": 5873, "src": "3086:9:15", "stateVariable": false, "storageLocation": "default", @@ -1494,7 +1494,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5854, + "id": 5858, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3086:7:15", @@ -1508,10 +1508,10 @@ }, { "constant": false, - "id": 5857, + "id": 5861, "name": "b", "nodeType": "VariableDeclaration", - "scope": 5869, + "scope": 5873, "src": "3097:9:15", "stateVariable": false, "storageLocation": "default", @@ -1520,7 +1520,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5856, + "id": 5860, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3097:7:15", @@ -1536,15 +1536,15 @@ "src": "3085:22:15" }, "returnParameters": { - "id": 5861, + "id": 5865, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5860, + "id": 5864, "name": "", "nodeType": "VariableDeclaration", - "scope": 5869, + "scope": 5873, "src": "3131:7:15", "stateVariable": false, "storageLocation": "default", @@ -1553,7 +1553,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5859, + "id": 5863, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3131:7:15", @@ -1568,7 +1568,7 @@ ], "src": "3130:9:15" }, - "scope": 5936, + "scope": 5940, "src": "3073:130:15", "stateMutability": "pure", "superFunction": null, @@ -1576,7 +1576,7 @@ }, { "body": { - "id": 5895, + "id": 5899, "nodeType": "Block", "src": "3813:243:15", "statements": [ @@ -1590,18 +1590,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5883, + "id": 5887, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5881, + "id": 5885, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5873, + "referencedDeclaration": 5877, "src": "3897:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1613,7 +1613,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 5882, + "id": 5886, "isConstant": false, "isLValue": false, "isPure": true, @@ -1636,11 +1636,11 @@ }, { "argumentTypes": null, - "id": 5884, + "id": 5888, "name": "errorMessage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5875, + "referencedDeclaration": 5879, "src": "3904:12:15", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -1659,21 +1659,21 @@ "typeString": "string memory" } ], - "id": 5880, + "id": 5884, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "3889:7:15", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5885, + "id": 5889, "isConstant": false, "isLValue": false, "isPure": false, @@ -1687,21 +1687,21 @@ "typeString": "tuple()" } }, - "id": 5886, + "id": 5890, "nodeType": "ExpressionStatement", "src": "3889:28:15" }, { "assignments": [ - 5888 + 5892 ], "declarations": [ { "constant": false, - "id": 5888, + "id": 5892, "name": "c", "nodeType": "VariableDeclaration", - "scope": 5895, + "scope": 5899, "src": "3927:9:15", "stateVariable": false, "storageLocation": "default", @@ -1710,7 +1710,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5887, + "id": 5891, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3927:7:15", @@ -1723,25 +1723,25 @@ "visibility": "internal" } ], - "id": 5892, + "id": 5896, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5891, + "id": 5895, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5889, + "id": 5893, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5871, + "referencedDeclaration": 5875, "src": "3939:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1752,11 +1752,11 @@ "operator": "/", "rightExpression": { "argumentTypes": null, - "id": 5890, + "id": 5894, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5873, + "referencedDeclaration": 5877, "src": "3943:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1775,41 +1775,41 @@ { "expression": { "argumentTypes": null, - "id": 5893, + "id": 5897, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5888, + "referencedDeclaration": 5892, "src": "4048:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 5879, - "id": 5894, + "functionReturnParameters": 5883, + "id": 5898, "nodeType": "Return", "src": "4041:8:15" } ] }, "documentation": "@dev Returns the integer division of two unsigned integers. Reverts with custom message on\ndivision by zero. The result is rounded towards zero.\n * Counterpart to Solidity's `/` operator. Note: this function uses a\n`revert` opcode (which leaves remaining gas untouched) while Solidity\nuses an invalid opcode to revert (consuming all remaining gas).\n * Requirements:\n- The divisor cannot be zero.\n * _Available since v2.4.0._", - "id": 5896, + "id": 5900, "implemented": true, "kind": "function", "modifiers": [], "name": "div", "nodeType": "FunctionDefinition", "parameters": { - "id": 5876, + "id": 5880, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5871, + "id": 5875, "name": "a", "nodeType": "VariableDeclaration", - "scope": 5896, + "scope": 5900, "src": "3731:9:15", "stateVariable": false, "storageLocation": "default", @@ -1818,7 +1818,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5870, + "id": 5874, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3731:7:15", @@ -1832,10 +1832,10 @@ }, { "constant": false, - "id": 5873, + "id": 5877, "name": "b", "nodeType": "VariableDeclaration", - "scope": 5896, + "scope": 5900, "src": "3742:9:15", "stateVariable": false, "storageLocation": "default", @@ -1844,7 +1844,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5872, + "id": 5876, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3742:7:15", @@ -1858,10 +1858,10 @@ }, { "constant": false, - "id": 5875, + "id": 5879, "name": "errorMessage", "nodeType": "VariableDeclaration", - "scope": 5896, + "scope": 5900, "src": "3753:26:15", "stateVariable": false, "storageLocation": "memory", @@ -1870,7 +1870,7 @@ "typeString": "string" }, "typeName": { - "id": 5874, + "id": 5878, "name": "string", "nodeType": "ElementaryTypeName", "src": "3753:6:15", @@ -1886,15 +1886,15 @@ "src": "3730:50:15" }, "returnParameters": { - "id": 5879, + "id": 5883, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5878, + "id": 5882, "name": "", "nodeType": "VariableDeclaration", - "scope": 5896, + "scope": 5900, "src": "3804:7:15", "stateVariable": false, "storageLocation": "default", @@ -1903,7 +1903,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5877, + "id": 5881, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3804:7:15", @@ -1918,7 +1918,7 @@ ], "src": "3803:9:15" }, - "scope": 5936, + "scope": 5940, "src": "3718:338:15", "stateMutability": "pure", "superFunction": null, @@ -1926,7 +1926,7 @@ }, { "body": { - "id": 5911, + "id": 5915, "nodeType": "Block", "src": "4567:61:15", "statements": [ @@ -1936,11 +1936,11 @@ "arguments": [ { "argumentTypes": null, - "id": 5906, + "id": 5910, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5898, + "referencedDeclaration": 5902, "src": "4588:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1949,11 +1949,11 @@ }, { "argumentTypes": null, - "id": 5907, + "id": 5911, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5900, + "referencedDeclaration": 5904, "src": "4591:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1963,7 +1963,7 @@ { "argumentTypes": null, "hexValue": "536166654d6174683a206d6f64756c6f206279207a65726f", - "id": 5908, + "id": 5912, "isConstant": false, "isLValue": false, "isPure": true, @@ -1994,21 +1994,21 @@ "typeString": "literal_string \"SafeMath: modulo by zero\"" } ], - "id": 5905, + "id": 5909, "name": "mod", "nodeType": "Identifier", "overloadedDeclarations": [ - 5912, - 5935 + 5916, + 5939 ], - "referencedDeclaration": 5935, + "referencedDeclaration": 5939, "src": "4584:3:15", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_string_memory_ptr_$returns$_t_uint256_$", "typeString": "function (uint256,uint256,string memory) pure returns (uint256)" } }, - "id": 5909, + "id": 5913, "isConstant": false, "isLValue": false, "isPure": false, @@ -2022,30 +2022,30 @@ "typeString": "uint256" } }, - "functionReturnParameters": 5904, - "id": 5910, + "functionReturnParameters": 5908, + "id": 5914, "nodeType": "Return", "src": "4577:44:15" } ] }, "documentation": "@dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\nReverts when dividing by zero.\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\nopcode (which leaves remaining gas untouched) while Solidity uses an\ninvalid opcode to revert (consuming all remaining gas).\n * Requirements:\n- The divisor cannot be zero.", - "id": 5912, + "id": 5916, "implemented": true, "kind": "function", "modifiers": [], "name": "mod", "nodeType": "FunctionDefinition", "parameters": { - "id": 5901, + "id": 5905, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5898, + "id": 5902, "name": "a", "nodeType": "VariableDeclaration", - "scope": 5912, + "scope": 5916, "src": "4513:9:15", "stateVariable": false, "storageLocation": "default", @@ -2054,7 +2054,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5897, + "id": 5901, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "4513:7:15", @@ -2068,10 +2068,10 @@ }, { "constant": false, - "id": 5900, + "id": 5904, "name": "b", "nodeType": "VariableDeclaration", - "scope": 5912, + "scope": 5916, "src": "4524:9:15", "stateVariable": false, "storageLocation": "default", @@ -2080,7 +2080,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5899, + "id": 5903, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "4524:7:15", @@ -2096,15 +2096,15 @@ "src": "4512:22:15" }, "returnParameters": { - "id": 5904, + "id": 5908, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5903, + "id": 5907, "name": "", "nodeType": "VariableDeclaration", - "scope": 5912, + "scope": 5916, "src": "4558:7:15", "stateVariable": false, "storageLocation": "default", @@ -2113,7 +2113,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5902, + "id": 5906, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "4558:7:15", @@ -2128,7 +2128,7 @@ ], "src": "4557:9:15" }, - "scope": 5936, + "scope": 5940, "src": "4500:128:15", "stateMutability": "pure", "superFunction": null, @@ -2136,7 +2136,7 @@ }, { "body": { - "id": 5934, + "id": 5938, "nodeType": "Block", "src": "5227:68:15", "statements": [ @@ -2150,18 +2150,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5926, + "id": 5930, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5924, + "id": 5928, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5916, + "referencedDeclaration": 5920, "src": "5245:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2173,7 +2173,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 5925, + "id": 5929, "isConstant": false, "isLValue": false, "isPure": true, @@ -2196,11 +2196,11 @@ }, { "argumentTypes": null, - "id": 5927, + "id": 5931, "name": "errorMessage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5918, + "referencedDeclaration": 5922, "src": "5253:12:15", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -2219,21 +2219,21 @@ "typeString": "string memory" } ], - "id": 5923, + "id": 5927, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "5237:7:15", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5928, + "id": 5932, "isConstant": false, "isLValue": false, "isPure": false, @@ -2247,7 +2247,7 @@ "typeString": "tuple()" } }, - "id": 5929, + "id": 5933, "nodeType": "ExpressionStatement", "src": "5237:29:15" }, @@ -2258,18 +2258,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5932, + "id": 5936, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5930, + "id": 5934, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5914, + "referencedDeclaration": 5918, "src": "5283:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2280,11 +2280,11 @@ "operator": "%", "rightExpression": { "argumentTypes": null, - "id": 5931, + "id": 5935, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5916, + "referencedDeclaration": 5920, "src": "5287:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2297,30 +2297,30 @@ "typeString": "uint256" } }, - "functionReturnParameters": 5922, - "id": 5933, + "functionReturnParameters": 5926, + "id": 5937, "nodeType": "Return", "src": "5276:12:15" } ] }, "documentation": "@dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\nReverts with custom message when dividing by zero.\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\nopcode (which leaves remaining gas untouched) while Solidity uses an\ninvalid opcode to revert (consuming all remaining gas).\n * Requirements:\n- The divisor cannot be zero.\n * _Available since v2.4.0._", - "id": 5935, + "id": 5939, "implemented": true, "kind": "function", "modifiers": [], "name": "mod", "nodeType": "FunctionDefinition", "parameters": { - "id": 5919, + "id": 5923, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5914, + "id": 5918, "name": "a", "nodeType": "VariableDeclaration", - "scope": 5935, + "scope": 5939, "src": "5145:9:15", "stateVariable": false, "storageLocation": "default", @@ -2329,7 +2329,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5913, + "id": 5917, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5145:7:15", @@ -2343,10 +2343,10 @@ }, { "constant": false, - "id": 5916, + "id": 5920, "name": "b", "nodeType": "VariableDeclaration", - "scope": 5935, + "scope": 5939, "src": "5156:9:15", "stateVariable": false, "storageLocation": "default", @@ -2355,7 +2355,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5915, + "id": 5919, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5156:7:15", @@ -2369,10 +2369,10 @@ }, { "constant": false, - "id": 5918, + "id": 5922, "name": "errorMessage", "nodeType": "VariableDeclaration", - "scope": 5935, + "scope": 5939, "src": "5167:26:15", "stateVariable": false, "storageLocation": "memory", @@ -2381,7 +2381,7 @@ "typeString": "string" }, "typeName": { - "id": 5917, + "id": 5921, "name": "string", "nodeType": "ElementaryTypeName", "src": "5167:6:15", @@ -2397,15 +2397,15 @@ "src": "5144:50:15" }, "returnParameters": { - "id": 5922, + "id": 5926, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5921, + "id": 5925, "name": "", "nodeType": "VariableDeclaration", - "scope": 5935, + "scope": 5939, "src": "5218:7:15", "stateVariable": false, "storageLocation": "default", @@ -2414,7 +2414,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5920, + "id": 5924, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5218:7:15", @@ -2429,14 +2429,14 @@ ], "src": "5217:9:15" }, - "scope": 5936, + "scope": 5940, "src": "5132:163:15", "stateMutability": "pure", "superFunction": null, "visibility": "internal" } ], - "scope": 5937, + "scope": 5941, "src": "589:4708:15" } ], @@ -2446,14 +2446,14 @@ "absolutePath": "openzeppelin-solidity/contracts/math/SafeMath.sol", "exportedSymbols": { "SafeMath": [ - 5936 + 5940 ] }, - "id": 5937, + "id": 5941, "nodeType": "SourceUnit", "nodes": [ { - "id": 5751, + "id": 5755, "literals": [ "solidity", "^", @@ -2469,30 +2469,30 @@ "contractKind": "library", "documentation": "@dev Wrappers over Solidity's arithmetic operations with added overflow\nchecks.\n * Arithmetic operations in Solidity wrap on overflow. This can easily result\nin bugs, because programmers usually assume that an overflow raises an\nerror, which is the standard behavior in high level programming languages.\n`SafeMath` restores this intuition by reverting the transaction when an\noperation overflows.\n * Using this library instead of the unchecked operations eliminates an entire\nclass of bugs, so it's recommended to use it always.", "fullyImplemented": true, - "id": 5936, + "id": 5940, "linearizedBaseContracts": [ - 5936 + 5940 ], "name": "SafeMath", "nodeType": "ContractDefinition", "nodes": [ { "body": { - "id": 5775, + "id": 5779, "nodeType": "Block", "src": "901:109:15", "statements": [ { "assignments": [ - 5761 + 5765 ], "declarations": [ { "constant": false, - "id": 5761, + "id": 5765, "name": "c", "nodeType": "VariableDeclaration", - "scope": 5775, + "scope": 5779, "src": "911:9:15", "stateVariable": false, "storageLocation": "default", @@ -2501,7 +2501,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5760, + "id": 5764, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "911:7:15", @@ -2514,25 +2514,25 @@ "visibility": "internal" } ], - "id": 5765, + "id": 5769, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5764, + "id": 5768, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5762, + "id": 5766, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5753, + "referencedDeclaration": 5757, "src": "923:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2543,11 +2543,11 @@ "operator": "+", "rightExpression": { "argumentTypes": null, - "id": 5763, + "id": 5767, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5755, + "referencedDeclaration": 5759, "src": "927:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2573,18 +2573,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5769, + "id": 5773, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5767, + "id": 5771, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5761, + "referencedDeclaration": 5765, "src": "946:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2595,11 +2595,11 @@ "operator": ">=", "rightExpression": { "argumentTypes": null, - "id": 5768, + "id": 5772, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5753, + "referencedDeclaration": 5757, "src": "951:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2615,7 +2615,7 @@ { "argumentTypes": null, "hexValue": "536166654d6174683a206164646974696f6e206f766572666c6f77", - "id": 5770, + "id": 5774, "isConstant": false, "isLValue": false, "isPure": true, @@ -2642,21 +2642,21 @@ "typeString": "literal_string \"SafeMath: addition overflow\"" } ], - "id": 5766, + "id": 5770, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "938:7:15", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5771, + "id": 5775, "isConstant": false, "isLValue": false, "isPure": false, @@ -2670,48 +2670,48 @@ "typeString": "tuple()" } }, - "id": 5772, + "id": 5776, "nodeType": "ExpressionStatement", "src": "938:46:15" }, { "expression": { "argumentTypes": null, - "id": 5773, + "id": 5777, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5761, + "referencedDeclaration": 5765, "src": "1002:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 5759, - "id": 5774, + "functionReturnParameters": 5763, + "id": 5778, "nodeType": "Return", "src": "995:8:15" } ] }, "documentation": "@dev Returns the addition of two unsigned integers, reverting on\noverflow.\n * Counterpart to Solidity's `+` operator.\n * Requirements:\n- Addition cannot overflow.", - "id": 5776, + "id": 5780, "implemented": true, "kind": "function", "modifiers": [], "name": "add", "nodeType": "FunctionDefinition", "parameters": { - "id": 5756, + "id": 5760, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5753, + "id": 5757, "name": "a", "nodeType": "VariableDeclaration", - "scope": 5776, + "scope": 5780, "src": "847:9:15", "stateVariable": false, "storageLocation": "default", @@ -2720,7 +2720,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5752, + "id": 5756, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "847:7:15", @@ -2734,10 +2734,10 @@ }, { "constant": false, - "id": 5755, + "id": 5759, "name": "b", "nodeType": "VariableDeclaration", - "scope": 5776, + "scope": 5780, "src": "858:9:15", "stateVariable": false, "storageLocation": "default", @@ -2746,7 +2746,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5754, + "id": 5758, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "858:7:15", @@ -2762,15 +2762,15 @@ "src": "846:22:15" }, "returnParameters": { - "id": 5759, + "id": 5763, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5758, + "id": 5762, "name": "", "nodeType": "VariableDeclaration", - "scope": 5776, + "scope": 5780, "src": "892:7:15", "stateVariable": false, "storageLocation": "default", @@ -2779,7 +2779,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5757, + "id": 5761, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "892:7:15", @@ -2794,7 +2794,7 @@ ], "src": "891:9:15" }, - "scope": 5936, + "scope": 5940, "src": "834:176:15", "stateMutability": "pure", "superFunction": null, @@ -2802,7 +2802,7 @@ }, { "body": { - "id": 5791, + "id": 5795, "nodeType": "Block", "src": "1341:67:15", "statements": [ @@ -2812,11 +2812,11 @@ "arguments": [ { "argumentTypes": null, - "id": 5786, + "id": 5790, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5778, + "referencedDeclaration": 5782, "src": "1362:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2825,11 +2825,11 @@ }, { "argumentTypes": null, - "id": 5787, + "id": 5791, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5780, + "referencedDeclaration": 5784, "src": "1365:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2839,7 +2839,7 @@ { "argumentTypes": null, "hexValue": "536166654d6174683a207375627472616374696f6e206f766572666c6f77", - "id": 5788, + "id": 5792, "isConstant": false, "isLValue": false, "isPure": true, @@ -2870,21 +2870,21 @@ "typeString": "literal_string \"SafeMath: subtraction overflow\"" } ], - "id": 5785, + "id": 5789, "name": "sub", "nodeType": "Identifier", "overloadedDeclarations": [ - 5792, - 5819 + 5796, + 5823 ], - "referencedDeclaration": 5819, + "referencedDeclaration": 5823, "src": "1358:3:15", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_string_memory_ptr_$returns$_t_uint256_$", "typeString": "function (uint256,uint256,string memory) pure returns (uint256)" } }, - "id": 5789, + "id": 5793, "isConstant": false, "isLValue": false, "isPure": false, @@ -2898,30 +2898,30 @@ "typeString": "uint256" } }, - "functionReturnParameters": 5784, - "id": 5790, + "functionReturnParameters": 5788, + "id": 5794, "nodeType": "Return", "src": "1351:50:15" } ] }, "documentation": "@dev Returns the subtraction of two unsigned integers, reverting on\noverflow (when the result is negative).\n * Counterpart to Solidity's `-` operator.\n * Requirements:\n- Subtraction cannot overflow.", - "id": 5792, + "id": 5796, "implemented": true, "kind": "function", "modifiers": [], "name": "sub", "nodeType": "FunctionDefinition", "parameters": { - "id": 5781, + "id": 5785, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5778, + "id": 5782, "name": "a", "nodeType": "VariableDeclaration", - "scope": 5792, + "scope": 5796, "src": "1287:9:15", "stateVariable": false, "storageLocation": "default", @@ -2930,7 +2930,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5777, + "id": 5781, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1287:7:15", @@ -2944,10 +2944,10 @@ }, { "constant": false, - "id": 5780, + "id": 5784, "name": "b", "nodeType": "VariableDeclaration", - "scope": 5792, + "scope": 5796, "src": "1298:9:15", "stateVariable": false, "storageLocation": "default", @@ -2956,7 +2956,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5779, + "id": 5783, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1298:7:15", @@ -2972,15 +2972,15 @@ "src": "1286:22:15" }, "returnParameters": { - "id": 5784, + "id": 5788, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5783, + "id": 5787, "name": "", "nodeType": "VariableDeclaration", - "scope": 5792, + "scope": 5796, "src": "1332:7:15", "stateVariable": false, "storageLocation": "default", @@ -2989,7 +2989,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5782, + "id": 5786, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1332:7:15", @@ -3004,7 +3004,7 @@ ], "src": "1331:9:15" }, - "scope": 5936, + "scope": 5940, "src": "1274:134:15", "stateMutability": "pure", "superFunction": null, @@ -3012,7 +3012,7 @@ }, { "body": { - "id": 5818, + "id": 5822, "nodeType": "Block", "src": "1827:92:15", "statements": [ @@ -3026,18 +3026,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5806, + "id": 5810, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5804, + "id": 5808, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5796, + "referencedDeclaration": 5800, "src": "1845:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3048,11 +3048,11 @@ "operator": "<=", "rightExpression": { "argumentTypes": null, - "id": 5805, + "id": 5809, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5794, + "referencedDeclaration": 5798, "src": "1850:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3067,11 +3067,11 @@ }, { "argumentTypes": null, - "id": 5807, + "id": 5811, "name": "errorMessage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5798, + "referencedDeclaration": 5802, "src": "1853:12:15", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -3090,21 +3090,21 @@ "typeString": "string memory" } ], - "id": 5803, + "id": 5807, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "1837:7:15", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5808, + "id": 5812, "isConstant": false, "isLValue": false, "isPure": false, @@ -3118,21 +3118,21 @@ "typeString": "tuple()" } }, - "id": 5809, + "id": 5813, "nodeType": "ExpressionStatement", "src": "1837:29:15" }, { "assignments": [ - 5811 + 5815 ], "declarations": [ { "constant": false, - "id": 5811, + "id": 5815, "name": "c", "nodeType": "VariableDeclaration", - "scope": 5818, + "scope": 5822, "src": "1876:9:15", "stateVariable": false, "storageLocation": "default", @@ -3141,7 +3141,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5810, + "id": 5814, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1876:7:15", @@ -3154,25 +3154,25 @@ "visibility": "internal" } ], - "id": 5815, + "id": 5819, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5814, + "id": 5818, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5812, + "id": 5816, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5794, + "referencedDeclaration": 5798, "src": "1888:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3183,11 +3183,11 @@ "operator": "-", "rightExpression": { "argumentTypes": null, - "id": 5813, + "id": 5817, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5796, + "referencedDeclaration": 5800, "src": "1892:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3206,41 +3206,41 @@ { "expression": { "argumentTypes": null, - "id": 5816, + "id": 5820, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5811, + "referencedDeclaration": 5815, "src": "1911:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 5802, - "id": 5817, + "functionReturnParameters": 5806, + "id": 5821, "nodeType": "Return", "src": "1904:8:15" } ] }, "documentation": "@dev Returns the subtraction of two unsigned integers, reverting with custom message on\noverflow (when the result is negative).\n * Counterpart to Solidity's `-` operator.\n * Requirements:\n- Subtraction cannot overflow.\n * _Available since v2.4.0._", - "id": 5819, + "id": 5823, "implemented": true, "kind": "function", "modifiers": [], "name": "sub", "nodeType": "FunctionDefinition", "parameters": { - "id": 5799, + "id": 5803, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5794, + "id": 5798, "name": "a", "nodeType": "VariableDeclaration", - "scope": 5819, + "scope": 5823, "src": "1745:9:15", "stateVariable": false, "storageLocation": "default", @@ -3249,7 +3249,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5793, + "id": 5797, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1745:7:15", @@ -3263,10 +3263,10 @@ }, { "constant": false, - "id": 5796, + "id": 5800, "name": "b", "nodeType": "VariableDeclaration", - "scope": 5819, + "scope": 5823, "src": "1756:9:15", "stateVariable": false, "storageLocation": "default", @@ -3275,7 +3275,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5795, + "id": 5799, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1756:7:15", @@ -3289,10 +3289,10 @@ }, { "constant": false, - "id": 5798, + "id": 5802, "name": "errorMessage", "nodeType": "VariableDeclaration", - "scope": 5819, + "scope": 5823, "src": "1767:26:15", "stateVariable": false, "storageLocation": "memory", @@ -3301,7 +3301,7 @@ "typeString": "string" }, "typeName": { - "id": 5797, + "id": 5801, "name": "string", "nodeType": "ElementaryTypeName", "src": "1767:6:15", @@ -3317,15 +3317,15 @@ "src": "1744:50:15" }, "returnParameters": { - "id": 5802, + "id": 5806, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5801, + "id": 5805, "name": "", "nodeType": "VariableDeclaration", - "scope": 5819, + "scope": 5823, "src": "1818:7:15", "stateVariable": false, "storageLocation": "default", @@ -3334,7 +3334,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5800, + "id": 5804, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1818:7:15", @@ -3349,7 +3349,7 @@ ], "src": "1817:9:15" }, - "scope": 5936, + "scope": 5940, "src": "1732:187:15", "stateMutability": "pure", "superFunction": null, @@ -3357,7 +3357,7 @@ }, { "body": { - "id": 5852, + "id": 5856, "nodeType": "Block", "src": "2226:392:15", "statements": [ @@ -3368,18 +3368,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5830, + "id": 5834, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5828, + "id": 5832, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5821, + "referencedDeclaration": 5825, "src": "2458:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3391,7 +3391,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 5829, + "id": 5833, "isConstant": false, "isLValue": false, "isPure": true, @@ -3413,11 +3413,11 @@ } }, "falseBody": null, - "id": 5834, + "id": 5838, "nodeType": "IfStatement", "src": "2454:45:15", "trueBody": { - "id": 5833, + "id": 5837, "nodeType": "Block", "src": "2466:33:15", "statements": [ @@ -3425,7 +3425,7 @@ "expression": { "argumentTypes": null, "hexValue": "30", - "id": 5831, + "id": 5835, "isConstant": false, "isLValue": false, "isPure": true, @@ -3440,8 +3440,8 @@ }, "value": "0" }, - "functionReturnParameters": 5827, - "id": 5832, + "functionReturnParameters": 5831, + "id": 5836, "nodeType": "Return", "src": "2480:8:15" } @@ -3450,15 +3450,15 @@ }, { "assignments": [ - 5836 + 5840 ], "declarations": [ { "constant": false, - "id": 5836, + "id": 5840, "name": "c", "nodeType": "VariableDeclaration", - "scope": 5852, + "scope": 5856, "src": "2509:9:15", "stateVariable": false, "storageLocation": "default", @@ -3467,7 +3467,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5835, + "id": 5839, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2509:7:15", @@ -3480,25 +3480,25 @@ "visibility": "internal" } ], - "id": 5840, + "id": 5844, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5839, + "id": 5843, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5837, + "id": 5841, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5821, + "referencedDeclaration": 5825, "src": "2521:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3509,11 +3509,11 @@ "operator": "*", "rightExpression": { "argumentTypes": null, - "id": 5838, + "id": 5842, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5823, + "referencedDeclaration": 5827, "src": "2525:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3539,7 +3539,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5846, + "id": 5850, "isConstant": false, "isLValue": false, "isPure": false, @@ -3550,18 +3550,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5844, + "id": 5848, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5842, + "id": 5846, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5836, + "referencedDeclaration": 5840, "src": "2544:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3572,11 +3572,11 @@ "operator": "/", "rightExpression": { "argumentTypes": null, - "id": 5843, + "id": 5847, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5821, + "referencedDeclaration": 5825, "src": "2548:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3593,11 +3593,11 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 5845, + "id": 5849, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5823, + "referencedDeclaration": 5827, "src": "2553:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3613,7 +3613,7 @@ { "argumentTypes": null, "hexValue": "536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77", - "id": 5847, + "id": 5851, "isConstant": false, "isLValue": false, "isPure": true, @@ -3640,21 +3640,21 @@ "typeString": "literal_string \"SafeMath: multiplication overflow\"" } ], - "id": 5841, + "id": 5845, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "2536:7:15", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5848, + "id": 5852, "isConstant": false, "isLValue": false, "isPure": false, @@ -3668,48 +3668,48 @@ "typeString": "tuple()" } }, - "id": 5849, + "id": 5853, "nodeType": "ExpressionStatement", "src": "2536:56:15" }, { "expression": { "argumentTypes": null, - "id": 5850, + "id": 5854, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5836, + "referencedDeclaration": 5840, "src": "2610:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 5827, - "id": 5851, + "functionReturnParameters": 5831, + "id": 5855, "nodeType": "Return", "src": "2603:8:15" } ] }, "documentation": "@dev Returns the multiplication of two unsigned integers, reverting on\noverflow.\n * Counterpart to Solidity's `*` operator.\n * Requirements:\n- Multiplication cannot overflow.", - "id": 5853, + "id": 5857, "implemented": true, "kind": "function", "modifiers": [], "name": "mul", "nodeType": "FunctionDefinition", "parameters": { - "id": 5824, + "id": 5828, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5821, + "id": 5825, "name": "a", "nodeType": "VariableDeclaration", - "scope": 5853, + "scope": 5857, "src": "2172:9:15", "stateVariable": false, "storageLocation": "default", @@ -3718,7 +3718,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5820, + "id": 5824, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2172:7:15", @@ -3732,10 +3732,10 @@ }, { "constant": false, - "id": 5823, + "id": 5827, "name": "b", "nodeType": "VariableDeclaration", - "scope": 5853, + "scope": 5857, "src": "2183:9:15", "stateVariable": false, "storageLocation": "default", @@ -3744,7 +3744,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5822, + "id": 5826, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2183:7:15", @@ -3760,15 +3760,15 @@ "src": "2171:22:15" }, "returnParameters": { - "id": 5827, + "id": 5831, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5826, + "id": 5830, "name": "", "nodeType": "VariableDeclaration", - "scope": 5853, + "scope": 5857, "src": "2217:7:15", "stateVariable": false, "storageLocation": "default", @@ -3777,7 +3777,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5825, + "id": 5829, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2217:7:15", @@ -3792,7 +3792,7 @@ ], "src": "2216:9:15" }, - "scope": 5936, + "scope": 5940, "src": "2159:459:15", "stateMutability": "pure", "superFunction": null, @@ -3800,7 +3800,7 @@ }, { "body": { - "id": 5868, + "id": 5872, "nodeType": "Block", "src": "3140:63:15", "statements": [ @@ -3810,11 +3810,11 @@ "arguments": [ { "argumentTypes": null, - "id": 5863, + "id": 5867, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5855, + "referencedDeclaration": 5859, "src": "3161:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3823,11 +3823,11 @@ }, { "argumentTypes": null, - "id": 5864, + "id": 5868, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5857, + "referencedDeclaration": 5861, "src": "3164:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3837,7 +3837,7 @@ { "argumentTypes": null, "hexValue": "536166654d6174683a206469766973696f6e206279207a65726f", - "id": 5865, + "id": 5869, "isConstant": false, "isLValue": false, "isPure": true, @@ -3868,21 +3868,21 @@ "typeString": "literal_string \"SafeMath: division by zero\"" } ], - "id": 5862, + "id": 5866, "name": "div", "nodeType": "Identifier", "overloadedDeclarations": [ - 5869, - 5896 + 5873, + 5900 ], - "referencedDeclaration": 5896, + "referencedDeclaration": 5900, "src": "3157:3:15", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_string_memory_ptr_$returns$_t_uint256_$", "typeString": "function (uint256,uint256,string memory) pure returns (uint256)" } }, - "id": 5866, + "id": 5870, "isConstant": false, "isLValue": false, "isPure": false, @@ -3896,30 +3896,30 @@ "typeString": "uint256" } }, - "functionReturnParameters": 5861, - "id": 5867, + "functionReturnParameters": 5865, + "id": 5871, "nodeType": "Return", "src": "3150:46:15" } ] }, "documentation": "@dev Returns the integer division of two unsigned integers. Reverts on\ndivision by zero. The result is rounded towards zero.\n * Counterpart to Solidity's `/` operator. Note: this function uses a\n`revert` opcode (which leaves remaining gas untouched) while Solidity\nuses an invalid opcode to revert (consuming all remaining gas).\n * Requirements:\n- The divisor cannot be zero.", - "id": 5869, + "id": 5873, "implemented": true, "kind": "function", "modifiers": [], "name": "div", "nodeType": "FunctionDefinition", "parameters": { - "id": 5858, + "id": 5862, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5855, + "id": 5859, "name": "a", "nodeType": "VariableDeclaration", - "scope": 5869, + "scope": 5873, "src": "3086:9:15", "stateVariable": false, "storageLocation": "default", @@ -3928,7 +3928,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5854, + "id": 5858, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3086:7:15", @@ -3942,10 +3942,10 @@ }, { "constant": false, - "id": 5857, + "id": 5861, "name": "b", "nodeType": "VariableDeclaration", - "scope": 5869, + "scope": 5873, "src": "3097:9:15", "stateVariable": false, "storageLocation": "default", @@ -3954,7 +3954,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5856, + "id": 5860, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3097:7:15", @@ -3970,15 +3970,15 @@ "src": "3085:22:15" }, "returnParameters": { - "id": 5861, + "id": 5865, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5860, + "id": 5864, "name": "", "nodeType": "VariableDeclaration", - "scope": 5869, + "scope": 5873, "src": "3131:7:15", "stateVariable": false, "storageLocation": "default", @@ -3987,7 +3987,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5859, + "id": 5863, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3131:7:15", @@ -4002,7 +4002,7 @@ ], "src": "3130:9:15" }, - "scope": 5936, + "scope": 5940, "src": "3073:130:15", "stateMutability": "pure", "superFunction": null, @@ -4010,7 +4010,7 @@ }, { "body": { - "id": 5895, + "id": 5899, "nodeType": "Block", "src": "3813:243:15", "statements": [ @@ -4024,18 +4024,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5883, + "id": 5887, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5881, + "id": 5885, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5873, + "referencedDeclaration": 5877, "src": "3897:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4047,7 +4047,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 5882, + "id": 5886, "isConstant": false, "isLValue": false, "isPure": true, @@ -4070,11 +4070,11 @@ }, { "argumentTypes": null, - "id": 5884, + "id": 5888, "name": "errorMessage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5875, + "referencedDeclaration": 5879, "src": "3904:12:15", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -4093,21 +4093,21 @@ "typeString": "string memory" } ], - "id": 5880, + "id": 5884, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "3889:7:15", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5885, + "id": 5889, "isConstant": false, "isLValue": false, "isPure": false, @@ -4121,21 +4121,21 @@ "typeString": "tuple()" } }, - "id": 5886, + "id": 5890, "nodeType": "ExpressionStatement", "src": "3889:28:15" }, { "assignments": [ - 5888 + 5892 ], "declarations": [ { "constant": false, - "id": 5888, + "id": 5892, "name": "c", "nodeType": "VariableDeclaration", - "scope": 5895, + "scope": 5899, "src": "3927:9:15", "stateVariable": false, "storageLocation": "default", @@ -4144,7 +4144,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5887, + "id": 5891, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3927:7:15", @@ -4157,25 +4157,25 @@ "visibility": "internal" } ], - "id": 5892, + "id": 5896, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5891, + "id": 5895, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5889, + "id": 5893, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5871, + "referencedDeclaration": 5875, "src": "3939:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4186,11 +4186,11 @@ "operator": "/", "rightExpression": { "argumentTypes": null, - "id": 5890, + "id": 5894, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5873, + "referencedDeclaration": 5877, "src": "3943:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4209,41 +4209,41 @@ { "expression": { "argumentTypes": null, - "id": 5893, + "id": 5897, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5888, + "referencedDeclaration": 5892, "src": "4048:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 5879, - "id": 5894, + "functionReturnParameters": 5883, + "id": 5898, "nodeType": "Return", "src": "4041:8:15" } ] }, "documentation": "@dev Returns the integer division of two unsigned integers. Reverts with custom message on\ndivision by zero. The result is rounded towards zero.\n * Counterpart to Solidity's `/` operator. Note: this function uses a\n`revert` opcode (which leaves remaining gas untouched) while Solidity\nuses an invalid opcode to revert (consuming all remaining gas).\n * Requirements:\n- The divisor cannot be zero.\n * _Available since v2.4.0._", - "id": 5896, + "id": 5900, "implemented": true, "kind": "function", "modifiers": [], "name": "div", "nodeType": "FunctionDefinition", "parameters": { - "id": 5876, + "id": 5880, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5871, + "id": 5875, "name": "a", "nodeType": "VariableDeclaration", - "scope": 5896, + "scope": 5900, "src": "3731:9:15", "stateVariable": false, "storageLocation": "default", @@ -4252,7 +4252,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5870, + "id": 5874, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3731:7:15", @@ -4266,10 +4266,10 @@ }, { "constant": false, - "id": 5873, + "id": 5877, "name": "b", "nodeType": "VariableDeclaration", - "scope": 5896, + "scope": 5900, "src": "3742:9:15", "stateVariable": false, "storageLocation": "default", @@ -4278,7 +4278,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5872, + "id": 5876, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3742:7:15", @@ -4292,10 +4292,10 @@ }, { "constant": false, - "id": 5875, + "id": 5879, "name": "errorMessage", "nodeType": "VariableDeclaration", - "scope": 5896, + "scope": 5900, "src": "3753:26:15", "stateVariable": false, "storageLocation": "memory", @@ -4304,7 +4304,7 @@ "typeString": "string" }, "typeName": { - "id": 5874, + "id": 5878, "name": "string", "nodeType": "ElementaryTypeName", "src": "3753:6:15", @@ -4320,15 +4320,15 @@ "src": "3730:50:15" }, "returnParameters": { - "id": 5879, + "id": 5883, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5878, + "id": 5882, "name": "", "nodeType": "VariableDeclaration", - "scope": 5896, + "scope": 5900, "src": "3804:7:15", "stateVariable": false, "storageLocation": "default", @@ -4337,7 +4337,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5877, + "id": 5881, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3804:7:15", @@ -4352,7 +4352,7 @@ ], "src": "3803:9:15" }, - "scope": 5936, + "scope": 5940, "src": "3718:338:15", "stateMutability": "pure", "superFunction": null, @@ -4360,7 +4360,7 @@ }, { "body": { - "id": 5911, + "id": 5915, "nodeType": "Block", "src": "4567:61:15", "statements": [ @@ -4370,11 +4370,11 @@ "arguments": [ { "argumentTypes": null, - "id": 5906, + "id": 5910, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5898, + "referencedDeclaration": 5902, "src": "4588:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4383,11 +4383,11 @@ }, { "argumentTypes": null, - "id": 5907, + "id": 5911, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5900, + "referencedDeclaration": 5904, "src": "4591:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4397,7 +4397,7 @@ { "argumentTypes": null, "hexValue": "536166654d6174683a206d6f64756c6f206279207a65726f", - "id": 5908, + "id": 5912, "isConstant": false, "isLValue": false, "isPure": true, @@ -4428,21 +4428,21 @@ "typeString": "literal_string \"SafeMath: modulo by zero\"" } ], - "id": 5905, + "id": 5909, "name": "mod", "nodeType": "Identifier", "overloadedDeclarations": [ - 5912, - 5935 + 5916, + 5939 ], - "referencedDeclaration": 5935, + "referencedDeclaration": 5939, "src": "4584:3:15", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_string_memory_ptr_$returns$_t_uint256_$", "typeString": "function (uint256,uint256,string memory) pure returns (uint256)" } }, - "id": 5909, + "id": 5913, "isConstant": false, "isLValue": false, "isPure": false, @@ -4456,30 +4456,30 @@ "typeString": "uint256" } }, - "functionReturnParameters": 5904, - "id": 5910, + "functionReturnParameters": 5908, + "id": 5914, "nodeType": "Return", "src": "4577:44:15" } ] }, "documentation": "@dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\nReverts when dividing by zero.\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\nopcode (which leaves remaining gas untouched) while Solidity uses an\ninvalid opcode to revert (consuming all remaining gas).\n * Requirements:\n- The divisor cannot be zero.", - "id": 5912, + "id": 5916, "implemented": true, "kind": "function", "modifiers": [], "name": "mod", "nodeType": "FunctionDefinition", "parameters": { - "id": 5901, + "id": 5905, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5898, + "id": 5902, "name": "a", "nodeType": "VariableDeclaration", - "scope": 5912, + "scope": 5916, "src": "4513:9:15", "stateVariable": false, "storageLocation": "default", @@ -4488,7 +4488,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5897, + "id": 5901, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "4513:7:15", @@ -4502,10 +4502,10 @@ }, { "constant": false, - "id": 5900, + "id": 5904, "name": "b", "nodeType": "VariableDeclaration", - "scope": 5912, + "scope": 5916, "src": "4524:9:15", "stateVariable": false, "storageLocation": "default", @@ -4514,7 +4514,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5899, + "id": 5903, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "4524:7:15", @@ -4530,15 +4530,15 @@ "src": "4512:22:15" }, "returnParameters": { - "id": 5904, + "id": 5908, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5903, + "id": 5907, "name": "", "nodeType": "VariableDeclaration", - "scope": 5912, + "scope": 5916, "src": "4558:7:15", "stateVariable": false, "storageLocation": "default", @@ -4547,7 +4547,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5902, + "id": 5906, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "4558:7:15", @@ -4562,7 +4562,7 @@ ], "src": "4557:9:15" }, - "scope": 5936, + "scope": 5940, "src": "4500:128:15", "stateMutability": "pure", "superFunction": null, @@ -4570,7 +4570,7 @@ }, { "body": { - "id": 5934, + "id": 5938, "nodeType": "Block", "src": "5227:68:15", "statements": [ @@ -4584,18 +4584,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5926, + "id": 5930, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5924, + "id": 5928, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5916, + "referencedDeclaration": 5920, "src": "5245:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4607,7 +4607,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 5925, + "id": 5929, "isConstant": false, "isLValue": false, "isPure": true, @@ -4630,11 +4630,11 @@ }, { "argumentTypes": null, - "id": 5927, + "id": 5931, "name": "errorMessage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5918, + "referencedDeclaration": 5922, "src": "5253:12:15", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", @@ -4653,21 +4653,21 @@ "typeString": "string memory" } ], - "id": 5923, + "id": 5927, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6546, - 6547 + 6550, + 6551 ], - "referencedDeclaration": 6547, + "referencedDeclaration": 6551, "src": "5237:7:15", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 5928, + "id": 5932, "isConstant": false, "isLValue": false, "isPure": false, @@ -4681,7 +4681,7 @@ "typeString": "tuple()" } }, - "id": 5929, + "id": 5933, "nodeType": "ExpressionStatement", "src": "5237:29:15" }, @@ -4692,18 +4692,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 5932, + "id": 5936, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 5930, + "id": 5934, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5914, + "referencedDeclaration": 5918, "src": "5283:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4714,11 +4714,11 @@ "operator": "%", "rightExpression": { "argumentTypes": null, - "id": 5931, + "id": 5935, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5916, + "referencedDeclaration": 5920, "src": "5287:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4731,30 +4731,30 @@ "typeString": "uint256" } }, - "functionReturnParameters": 5922, - "id": 5933, + "functionReturnParameters": 5926, + "id": 5937, "nodeType": "Return", "src": "5276:12:15" } ] }, "documentation": "@dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\nReverts with custom message when dividing by zero.\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\nopcode (which leaves remaining gas untouched) while Solidity uses an\ninvalid opcode to revert (consuming all remaining gas).\n * Requirements:\n- The divisor cannot be zero.\n * _Available since v2.4.0._", - "id": 5935, + "id": 5939, "implemented": true, "kind": "function", "modifiers": [], "name": "mod", "nodeType": "FunctionDefinition", "parameters": { - "id": 5919, + "id": 5923, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5914, + "id": 5918, "name": "a", "nodeType": "VariableDeclaration", - "scope": 5935, + "scope": 5939, "src": "5145:9:15", "stateVariable": false, "storageLocation": "default", @@ -4763,7 +4763,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5913, + "id": 5917, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5145:7:15", @@ -4777,10 +4777,10 @@ }, { "constant": false, - "id": 5916, + "id": 5920, "name": "b", "nodeType": "VariableDeclaration", - "scope": 5935, + "scope": 5939, "src": "5156:9:15", "stateVariable": false, "storageLocation": "default", @@ -4789,7 +4789,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5915, + "id": 5919, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5156:7:15", @@ -4803,10 +4803,10 @@ }, { "constant": false, - "id": 5918, + "id": 5922, "name": "errorMessage", "nodeType": "VariableDeclaration", - "scope": 5935, + "scope": 5939, "src": "5167:26:15", "stateVariable": false, "storageLocation": "memory", @@ -4815,7 +4815,7 @@ "typeString": "string" }, "typeName": { - "id": 5917, + "id": 5921, "name": "string", "nodeType": "ElementaryTypeName", "src": "5167:6:15", @@ -4831,15 +4831,15 @@ "src": "5144:50:15" }, "returnParameters": { - "id": 5922, + "id": 5926, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5921, + "id": 5925, "name": "", "nodeType": "VariableDeclaration", - "scope": 5935, + "scope": 5939, "src": "5218:7:15", "stateVariable": false, "storageLocation": "default", @@ -4848,7 +4848,7 @@ "typeString": "uint256" }, "typeName": { - "id": 5920, + "id": 5924, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5218:7:15", @@ -4863,14 +4863,14 @@ ], "src": "5217:9:15" }, - "scope": 5936, + "scope": 5940, "src": "5132:163:15", "stateMutability": "pure", "superFunction": null, "visibility": "internal" } ], - "scope": 5937, + "scope": 5941, "src": "589:4708:15" } ], @@ -4882,7 +4882,7 @@ }, "networks": {}, "schemaVersion": "3.2.4", - "updatedAt": "2020-10-01T09:28:54.481Z", + "updatedAt": "2020-10-01T15:18:05.193Z", "devdoc": { "details": "Wrappers over Solidity's arithmetic operations with added overflow checks. * Arithmetic operations in Solidity wrap on overflow. This can easily result in bugs, because programmers usually assume that an overflow raises an error, which is the standard behavior in high level programming languages. `SafeMath` restores this intuition by reverting the transaction when an operation overflows. * Using this library instead of the unchecked operations eliminates an entire class of bugs, so it's recommended to use it always.", "methods": {} diff --git a/artifacts/address.json b/artifacts/address.json deleted file mode 100644 index 990264d1c..000000000 --- a/artifacts/address.json +++ /dev/null @@ -1 +0,0 @@ -{"ganache":{"DTFactory":"0x241D0f315d2bfe32b90282e6863AC22A309EbFa0","BFactory":"0xf32E0784F5D127471883aF938c50349A97aF7085","FixedRateExchange":"0x223B65841d5BAE99c615D0Da7980b2Fc0aFF1dB2","Metadata":"0x0220D0b4FfCC4A14C7601215aA23da06d5b1c921"}} \ No newline at end of file diff --git a/docs/contracts/templates/DataTokenTemplate.md b/docs/contracts/templates/DataTokenTemplate.md index 1a1ff2beb..3d86c9ac5 100644 --- a/docs/contracts/templates/DataTokenTemplate.md +++ b/docs/contracts/templates/DataTokenTemplate.md @@ -152,13 +152,13 @@ giving a fee percentage, and amount it calculates the actual fee -### `OrderStarted(address consumer, uint256 amount, uint256 serviceId, uint256 startedAt, address mrktFeeCollector, uint256 marketFee)` +### `OrderStarted(address consumer, uint256 amount, uint256 serviceId, uint256 timestamp, address mrktFeeCollector, uint256 marketFee)` -### `OrderFinished(bytes32 orderTxId, address consumer, uint256 amount, uint256 serviceId, address provider)` +### `OrderFinished(bytes32 orderTxId, address consumer, uint256 amount, uint256 serviceId, address provider, uint256 timestamp)`