diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 8243773f1..03457c3a7 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.5.2 +current_version = 0.5.3 [bumpversion:file:setup.cfg] diff --git a/CHANGELOG.md b/CHANGELOG.md index ac7edc8c5..1e67fa305 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). +#### [v0.5.3](https://github.com/oceanprotocol/ocean-contracts/compare/v0.5.2...v0.5.3) + +- Allow a payer to initiate a startOrder for another consumer [`#233`](https://github.com/oceanprotocol/ocean-contracts/pull/233) +- Release/v0.5.2 [`#232`](https://github.com/oceanprotocol/ocean-contracts/pull/232) +- Prepare v0.5.3 [`9f56df5`](https://github.com/oceanprotocol/ocean-contracts/commit/9f56df541a72c244e7628f376db984c81d2fd404) +- add consumer & payer [`4ed79a3`](https://github.com/oceanprotocol/ocean-contracts/commit/4ed79a328154bf77937c40b1ad4f958c8f5ace11) + #### [v0.5.2](https://github.com/oceanprotocol/ocean-contracts/compare/v0.5.1...v0.5.2) > 1 October 2020 @@ -50,8 +57,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - fix/startOrder [`#215`](https://github.com/oceanprotocol/ocean-contracts/pull/215) - Release/v0.4.3 [`#210`](https://github.com/oceanprotocol/ocean-contracts/pull/210) -- prepare for a new release [`07ac707`](https://github.com/oceanprotocol/ocean-contracts/commit/07ac7075f6b493dde8c111fd57d8ea9e85dcf096) -- fix (#214) [`a0cdef3`](https://github.com/oceanprotocol/ocean-contracts/commit/a0cdef3fae0a08558e4561f0eadfbf9539dff8eb) +- prepare for new release. [`3d5bfbd`](https://github.com/oceanprotocol/ocean-contracts/commit/3d5bfbd9ba29ec0ece04224a4b40dfec368d6b91) +- update package contracts version. [`bbd5891`](https://github.com/oceanprotocol/ocean-contracts/commit/bbd58919089b55dd145c57923cc0d165a9ed4d8a) +- update for rinkeby deployment [`28fc20f`](https://github.com/oceanprotocol/ocean-contracts/commit/28fc20fb4ad0de82ccc4d4cefc7dafe644fe1ebc) #### [v0.4.3](https://github.com/oceanprotocol/ocean-contracts/compare/v0.4.2...v0.4.3) diff --git a/artifacts/BConst.json b/artifacts/BConst.json index 199a94eea..03d14edaf 100644 --- a/artifacts/BConst.json +++ b/artifacts/BConst.json @@ -237,14 +237,14 @@ "absolutePath": "/ocean/ocean-contracts/contracts/balancer/BConst.sol", "exportedSymbols": { "BConst": [ - 284 + 280 ] }, - "id": 285, + "id": 281, "nodeType": "SourceUnit", "nodes": [ { - "id": 201, + "id": 197, "literals": [ "solidity", "0.5", @@ -259,19 +259,19 @@ "contractKind": "contract", "documentation": null, "fullyImplemented": true, - "id": 284, + "id": 280, "linearizedBaseContracts": [ - 284 + 280 ], "name": "BConst", "nodeType": "ContractDefinition", "nodes": [ { "constant": true, - "id": 206, + "id": 202, "name": "BONE", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "689:47:2", "stateVariable": true, "storageLocation": "default", @@ -280,7 +280,7 @@ "typeString": "uint256" }, "typeName": { - "id": 202, + "id": 198, "name": "uint", "nodeType": "ElementaryTypeName", "src": "689:4:2", @@ -295,7 +295,7 @@ "typeIdentifier": "t_rational_1000000000000000000_by_1", "typeString": "int_const 1000000000000000000" }, - "id": 205, + "id": 201, "isConstant": false, "isLValue": false, "isPure": true, @@ -303,7 +303,7 @@ "leftExpression": { "argumentTypes": null, "hexValue": "3130", - "id": 203, + "id": 199, "isConstant": false, "isLValue": false, "isPure": true, @@ -323,7 +323,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "3138", - "id": 204, + "id": 200, "isConstant": false, "isLValue": false, "isPure": true, @@ -348,10 +348,10 @@ }, { "constant": true, - "id": 209, + "id": 205, "name": "MIN_BOUND_TOKENS", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "743:42:2", "stateVariable": true, "storageLocation": "default", @@ -360,7 +360,7 @@ "typeString": "uint256" }, "typeName": { - "id": 207, + "id": 203, "name": "uint", "nodeType": "ElementaryTypeName", "src": "743:4:2", @@ -372,7 +372,7 @@ "value": { "argumentTypes": null, "hexValue": "32", - "id": 208, + "id": 204, "isConstant": false, "isLValue": false, "isPure": true, @@ -391,10 +391,10 @@ }, { "constant": true, - "id": 212, + "id": 208, "name": "MAX_BOUND_TOKENS", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "791:42:2", "stateVariable": true, "storageLocation": "default", @@ -403,7 +403,7 @@ "typeString": "uint256" }, "typeName": { - "id": 210, + "id": 206, "name": "uint", "nodeType": "ElementaryTypeName", "src": "791:4:2", @@ -415,7 +415,7 @@ "value": { "argumentTypes": null, "hexValue": "38", - "id": 211, + "id": 207, "isConstant": false, "isLValue": false, "isPure": true, @@ -434,10 +434,10 @@ }, { "constant": true, - "id": 219, + "id": 215, "name": "MIN_FEE", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "840:53:2", "stateVariable": true, "storageLocation": "default", @@ -446,7 +446,7 @@ "typeString": "uint256" }, "typeName": { - "id": 213, + "id": 209, "name": "uint", "nodeType": "ElementaryTypeName", "src": "840:4:2", @@ -461,18 +461,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 218, + "id": 214, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 214, + "id": 210, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "881:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -487,7 +487,7 @@ "typeIdentifier": "t_rational_1000000_by_1", "typeString": "int_const 1000000" }, - "id": 217, + "id": 213, "isConstant": false, "isLValue": false, "isPure": true, @@ -495,7 +495,7 @@ "leftExpression": { "argumentTypes": null, "hexValue": "3130", - "id": 215, + "id": 211, "isConstant": false, "isLValue": false, "isPure": true, @@ -515,7 +515,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "36", - "id": 216, + "id": 212, "isConstant": false, "isLValue": false, "isPure": true, @@ -546,10 +546,10 @@ }, { "constant": true, - "id": 224, + "id": 220, "name": "MAX_FEE", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "899:50:2", "stateVariable": true, "storageLocation": "default", @@ -558,7 +558,7 @@ "typeString": "uint256" }, "typeName": { - "id": 220, + "id": 216, "name": "uint", "nodeType": "ElementaryTypeName", "src": "899:4:2", @@ -573,18 +573,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 223, + "id": 219, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 221, + "id": 217, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "940:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -596,7 +596,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "3130", - "id": 222, + "id": 218, "isConstant": false, "isLValue": false, "isPure": true, @@ -621,10 +621,10 @@ }, { "constant": true, - "id": 227, + "id": 223, "name": "EXIT_FEE", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "955:42:2", "stateVariable": true, "storageLocation": "default", @@ -633,7 +633,7 @@ "typeString": "uint256" }, "typeName": { - "id": 225, + "id": 221, "name": "uint", "nodeType": "ElementaryTypeName", "src": "955:4:2", @@ -645,7 +645,7 @@ "value": { "argumentTypes": null, "hexValue": "30", - "id": 226, + "id": 222, "isConstant": false, "isLValue": false, "isPure": true, @@ -664,10 +664,10 @@ }, { "constant": true, - "id": 230, + "id": 226, "name": "MIN_WEIGHT", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "1004:45:2", "stateVariable": true, "storageLocation": "default", @@ -676,7 +676,7 @@ "typeString": "uint256" }, "typeName": { - "id": 228, + "id": 224, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1004:4:2", @@ -687,11 +687,11 @@ }, "value": { "argumentTypes": null, - "id": 229, + "id": 225, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "1045:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -702,10 +702,10 @@ }, { "constant": true, - "id": 235, + "id": 231, "name": "MAX_WEIGHT", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "1055:50:2", "stateVariable": true, "storageLocation": "default", @@ -714,7 +714,7 @@ "typeString": "uint256" }, "typeName": { - "id": 231, + "id": 227, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1055:4:2", @@ -729,18 +729,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 234, + "id": 230, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 232, + "id": 228, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "1096:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -752,7 +752,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "3530", - "id": 233, + "id": 229, "isConstant": false, "isLValue": false, "isPure": true, @@ -777,10 +777,10 @@ }, { "constant": true, - "id": 240, + "id": 236, "name": "MAX_TOTAL_WEIGHT", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "1111:50:2", "stateVariable": true, "storageLocation": "default", @@ -789,7 +789,7 @@ "typeString": "uint256" }, "typeName": { - "id": 236, + "id": 232, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1111:4:2", @@ -804,18 +804,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 239, + "id": 235, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 237, + "id": 233, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "1152:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -827,7 +827,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "3530", - "id": 238, + "id": 234, "isConstant": false, "isLValue": false, "isPure": true, @@ -852,10 +852,10 @@ }, { "constant": true, - "id": 247, + "id": 243, "name": "MIN_BALANCE", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "1167:54:2", "stateVariable": true, "storageLocation": "default", @@ -864,7 +864,7 @@ "typeString": "uint256" }, "typeName": { - "id": 241, + "id": 237, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1167:4:2", @@ -879,18 +879,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 246, + "id": 242, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 242, + "id": 238, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "1208:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -905,7 +905,7 @@ "typeIdentifier": "t_rational_1000000000000_by_1", "typeString": "int_const 1000000000000" }, - "id": 245, + "id": 241, "isConstant": false, "isLValue": false, "isPure": true, @@ -913,7 +913,7 @@ "leftExpression": { "argumentTypes": null, "hexValue": "3130", - "id": 243, + "id": 239, "isConstant": false, "isLValue": false, "isPure": true, @@ -933,7 +933,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "3132", - "id": 244, + "id": 240, "isConstant": false, "isLValue": false, "isPure": true, @@ -964,10 +964,10 @@ }, { "constant": true, - "id": 252, + "id": 248, "name": "INIT_POOL_SUPPLY", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "1228:51:2", "stateVariable": true, "storageLocation": "default", @@ -976,7 +976,7 @@ "typeString": "uint256" }, "typeName": { - "id": 248, + "id": 244, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1228:4:2", @@ -991,18 +991,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 251, + "id": 247, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 249, + "id": 245, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "1269:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1014,7 +1014,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "313030", - "id": 250, + "id": 246, "isConstant": false, "isLValue": false, "isPure": true, @@ -1039,10 +1039,10 @@ }, { "constant": true, - "id": 255, + "id": 251, "name": "MIN_BPOW_BASE", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "1286:46:2", "stateVariable": true, "storageLocation": "default", @@ -1051,7 +1051,7 @@ "typeString": "uint256" }, "typeName": { - "id": 253, + "id": 249, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1286:4:2", @@ -1063,7 +1063,7 @@ "value": { "argumentTypes": null, "hexValue": "31", - "id": 254, + "id": 250, "isConstant": false, "isLValue": false, "isPure": true, @@ -1082,10 +1082,10 @@ }, { "constant": true, - "id": 263, + "id": 259, "name": "MAX_BPOW_BASE", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "1338:59:2", "stateVariable": true, "storageLocation": "default", @@ -1094,7 +1094,7 @@ "typeString": "uint256" }, "typeName": { - "id": 256, + "id": 252, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1338:4:2", @@ -1109,7 +1109,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 262, + "id": 258, "isConstant": false, "isLValue": false, "isPure": true, @@ -1123,7 +1123,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 259, + "id": 255, "isConstant": false, "isLValue": false, "isPure": true, @@ -1131,7 +1131,7 @@ "leftExpression": { "argumentTypes": null, "hexValue": "32", - "id": 257, + "id": 253, "isConstant": false, "isLValue": false, "isPure": true, @@ -1150,11 +1150,11 @@ "operator": "*", "rightExpression": { "argumentTypes": null, - "id": 258, + "id": 254, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "1384:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1168,7 +1168,7 @@ } } ], - "id": 260, + "id": 256, "isConstant": false, "isInlineArray": false, "isLValue": false, @@ -1186,7 +1186,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "31", - "id": 261, + "id": 257, "isConstant": false, "isLValue": false, "isPure": true, @@ -1211,10 +1211,10 @@ }, { "constant": true, - "id": 270, + "id": 266, "name": "BPOW_PRECISION", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "1403:54:2", "stateVariable": true, "storageLocation": "default", @@ -1223,7 +1223,7 @@ "typeString": "uint256" }, "typeName": { - "id": 264, + "id": 260, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1403:4:2", @@ -1238,18 +1238,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 269, + "id": 265, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 265, + "id": 261, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "1444:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1264,7 +1264,7 @@ "typeIdentifier": "t_rational_10000000000_by_1", "typeString": "int_const 10000000000" }, - "id": 268, + "id": 264, "isConstant": false, "isLValue": false, "isPure": true, @@ -1272,7 +1272,7 @@ "leftExpression": { "argumentTypes": null, "hexValue": "3130", - "id": 266, + "id": 262, "isConstant": false, "isLValue": false, "isPure": true, @@ -1292,7 +1292,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "3130", - "id": 267, + "id": 263, "isConstant": false, "isLValue": false, "isPure": true, @@ -1323,10 +1323,10 @@ }, { "constant": true, - "id": 275, + "id": 271, "name": "MAX_IN_RATIO", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "1464:49:2", "stateVariable": true, "storageLocation": "default", @@ -1335,7 +1335,7 @@ "typeString": "uint256" }, "typeName": { - "id": 271, + "id": 267, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1464:4:2", @@ -1350,18 +1350,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 274, + "id": 270, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 272, + "id": 268, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "1505:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1373,7 +1373,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "32", - "id": 273, + "id": 269, "isConstant": false, "isLValue": false, "isPure": true, @@ -1398,10 +1398,10 @@ }, { "constant": true, - "id": 283, + "id": 279, "name": "MAX_OUT_RATIO", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "1519:59:2", "stateVariable": true, "storageLocation": "default", @@ -1410,7 +1410,7 @@ "typeString": "uint256" }, "typeName": { - "id": 276, + "id": 272, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1519:4:2", @@ -1425,7 +1425,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 282, + "id": 278, "isConstant": false, "isLValue": false, "isPure": true, @@ -1439,18 +1439,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 279, + "id": 275, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 277, + "id": 273, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "1561:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1462,7 +1462,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "33", - "id": 278, + "id": 274, "isConstant": false, "isLValue": false, "isPure": true, @@ -1484,7 +1484,7 @@ } } ], - "id": 280, + "id": 276, "isConstant": false, "isInlineArray": false, "isLValue": false, @@ -1502,7 +1502,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "31", - "id": 281, + "id": 277, "isConstant": false, "isLValue": false, "isPure": true, @@ -1526,7 +1526,7 @@ "visibility": "public" } ], - "scope": 285, + "scope": 281, "src": "667:914:2" } ], @@ -1536,14 +1536,14 @@ "absolutePath": "/ocean/ocean-contracts/contracts/balancer/BConst.sol", "exportedSymbols": { "BConst": [ - 284 + 280 ] }, - "id": 285, + "id": 281, "nodeType": "SourceUnit", "nodes": [ { - "id": 201, + "id": 197, "literals": [ "solidity", "0.5", @@ -1558,19 +1558,19 @@ "contractKind": "contract", "documentation": null, "fullyImplemented": true, - "id": 284, + "id": 280, "linearizedBaseContracts": [ - 284 + 280 ], "name": "BConst", "nodeType": "ContractDefinition", "nodes": [ { "constant": true, - "id": 206, + "id": 202, "name": "BONE", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "689:47:2", "stateVariable": true, "storageLocation": "default", @@ -1579,7 +1579,7 @@ "typeString": "uint256" }, "typeName": { - "id": 202, + "id": 198, "name": "uint", "nodeType": "ElementaryTypeName", "src": "689:4:2", @@ -1594,7 +1594,7 @@ "typeIdentifier": "t_rational_1000000000000000000_by_1", "typeString": "int_const 1000000000000000000" }, - "id": 205, + "id": 201, "isConstant": false, "isLValue": false, "isPure": true, @@ -1602,7 +1602,7 @@ "leftExpression": { "argumentTypes": null, "hexValue": "3130", - "id": 203, + "id": 199, "isConstant": false, "isLValue": false, "isPure": true, @@ -1622,7 +1622,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "3138", - "id": 204, + "id": 200, "isConstant": false, "isLValue": false, "isPure": true, @@ -1647,10 +1647,10 @@ }, { "constant": true, - "id": 209, + "id": 205, "name": "MIN_BOUND_TOKENS", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "743:42:2", "stateVariable": true, "storageLocation": "default", @@ -1659,7 +1659,7 @@ "typeString": "uint256" }, "typeName": { - "id": 207, + "id": 203, "name": "uint", "nodeType": "ElementaryTypeName", "src": "743:4:2", @@ -1671,7 +1671,7 @@ "value": { "argumentTypes": null, "hexValue": "32", - "id": 208, + "id": 204, "isConstant": false, "isLValue": false, "isPure": true, @@ -1690,10 +1690,10 @@ }, { "constant": true, - "id": 212, + "id": 208, "name": "MAX_BOUND_TOKENS", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "791:42:2", "stateVariable": true, "storageLocation": "default", @@ -1702,7 +1702,7 @@ "typeString": "uint256" }, "typeName": { - "id": 210, + "id": 206, "name": "uint", "nodeType": "ElementaryTypeName", "src": "791:4:2", @@ -1714,7 +1714,7 @@ "value": { "argumentTypes": null, "hexValue": "38", - "id": 211, + "id": 207, "isConstant": false, "isLValue": false, "isPure": true, @@ -1733,10 +1733,10 @@ }, { "constant": true, - "id": 219, + "id": 215, "name": "MIN_FEE", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "840:53:2", "stateVariable": true, "storageLocation": "default", @@ -1745,7 +1745,7 @@ "typeString": "uint256" }, "typeName": { - "id": 213, + "id": 209, "name": "uint", "nodeType": "ElementaryTypeName", "src": "840:4:2", @@ -1760,18 +1760,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 218, + "id": 214, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 214, + "id": 210, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "881:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1786,7 +1786,7 @@ "typeIdentifier": "t_rational_1000000_by_1", "typeString": "int_const 1000000" }, - "id": 217, + "id": 213, "isConstant": false, "isLValue": false, "isPure": true, @@ -1794,7 +1794,7 @@ "leftExpression": { "argumentTypes": null, "hexValue": "3130", - "id": 215, + "id": 211, "isConstant": false, "isLValue": false, "isPure": true, @@ -1814,7 +1814,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "36", - "id": 216, + "id": 212, "isConstant": false, "isLValue": false, "isPure": true, @@ -1845,10 +1845,10 @@ }, { "constant": true, - "id": 224, + "id": 220, "name": "MAX_FEE", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "899:50:2", "stateVariable": true, "storageLocation": "default", @@ -1857,7 +1857,7 @@ "typeString": "uint256" }, "typeName": { - "id": 220, + "id": 216, "name": "uint", "nodeType": "ElementaryTypeName", "src": "899:4:2", @@ -1872,18 +1872,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 223, + "id": 219, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 221, + "id": 217, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "940:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1895,7 +1895,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "3130", - "id": 222, + "id": 218, "isConstant": false, "isLValue": false, "isPure": true, @@ -1920,10 +1920,10 @@ }, { "constant": true, - "id": 227, + "id": 223, "name": "EXIT_FEE", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "955:42:2", "stateVariable": true, "storageLocation": "default", @@ -1932,7 +1932,7 @@ "typeString": "uint256" }, "typeName": { - "id": 225, + "id": 221, "name": "uint", "nodeType": "ElementaryTypeName", "src": "955:4:2", @@ -1944,7 +1944,7 @@ "value": { "argumentTypes": null, "hexValue": "30", - "id": 226, + "id": 222, "isConstant": false, "isLValue": false, "isPure": true, @@ -1963,10 +1963,10 @@ }, { "constant": true, - "id": 230, + "id": 226, "name": "MIN_WEIGHT", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "1004:45:2", "stateVariable": true, "storageLocation": "default", @@ -1975,7 +1975,7 @@ "typeString": "uint256" }, "typeName": { - "id": 228, + "id": 224, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1004:4:2", @@ -1986,11 +1986,11 @@ }, "value": { "argumentTypes": null, - "id": 229, + "id": 225, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "1045:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2001,10 +2001,10 @@ }, { "constant": true, - "id": 235, + "id": 231, "name": "MAX_WEIGHT", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "1055:50:2", "stateVariable": true, "storageLocation": "default", @@ -2013,7 +2013,7 @@ "typeString": "uint256" }, "typeName": { - "id": 231, + "id": 227, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1055:4:2", @@ -2028,18 +2028,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 234, + "id": 230, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 232, + "id": 228, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "1096:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2051,7 +2051,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "3530", - "id": 233, + "id": 229, "isConstant": false, "isLValue": false, "isPure": true, @@ -2076,10 +2076,10 @@ }, { "constant": true, - "id": 240, + "id": 236, "name": "MAX_TOTAL_WEIGHT", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "1111:50:2", "stateVariable": true, "storageLocation": "default", @@ -2088,7 +2088,7 @@ "typeString": "uint256" }, "typeName": { - "id": 236, + "id": 232, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1111:4:2", @@ -2103,18 +2103,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 239, + "id": 235, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 237, + "id": 233, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "1152:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2126,7 +2126,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "3530", - "id": 238, + "id": 234, "isConstant": false, "isLValue": false, "isPure": true, @@ -2151,10 +2151,10 @@ }, { "constant": true, - "id": 247, + "id": 243, "name": "MIN_BALANCE", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "1167:54:2", "stateVariable": true, "storageLocation": "default", @@ -2163,7 +2163,7 @@ "typeString": "uint256" }, "typeName": { - "id": 241, + "id": 237, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1167:4:2", @@ -2178,18 +2178,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 246, + "id": 242, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 242, + "id": 238, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "1208:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2204,7 +2204,7 @@ "typeIdentifier": "t_rational_1000000000000_by_1", "typeString": "int_const 1000000000000" }, - "id": 245, + "id": 241, "isConstant": false, "isLValue": false, "isPure": true, @@ -2212,7 +2212,7 @@ "leftExpression": { "argumentTypes": null, "hexValue": "3130", - "id": 243, + "id": 239, "isConstant": false, "isLValue": false, "isPure": true, @@ -2232,7 +2232,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "3132", - "id": 244, + "id": 240, "isConstant": false, "isLValue": false, "isPure": true, @@ -2263,10 +2263,10 @@ }, { "constant": true, - "id": 252, + "id": 248, "name": "INIT_POOL_SUPPLY", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "1228:51:2", "stateVariable": true, "storageLocation": "default", @@ -2275,7 +2275,7 @@ "typeString": "uint256" }, "typeName": { - "id": 248, + "id": 244, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1228:4:2", @@ -2290,18 +2290,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 251, + "id": 247, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 249, + "id": 245, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "1269:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2313,7 +2313,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "313030", - "id": 250, + "id": 246, "isConstant": false, "isLValue": false, "isPure": true, @@ -2338,10 +2338,10 @@ }, { "constant": true, - "id": 255, + "id": 251, "name": "MIN_BPOW_BASE", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "1286:46:2", "stateVariable": true, "storageLocation": "default", @@ -2350,7 +2350,7 @@ "typeString": "uint256" }, "typeName": { - "id": 253, + "id": 249, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1286:4:2", @@ -2362,7 +2362,7 @@ "value": { "argumentTypes": null, "hexValue": "31", - "id": 254, + "id": 250, "isConstant": false, "isLValue": false, "isPure": true, @@ -2381,10 +2381,10 @@ }, { "constant": true, - "id": 263, + "id": 259, "name": "MAX_BPOW_BASE", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "1338:59:2", "stateVariable": true, "storageLocation": "default", @@ -2393,7 +2393,7 @@ "typeString": "uint256" }, "typeName": { - "id": 256, + "id": 252, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1338:4:2", @@ -2408,7 +2408,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 262, + "id": 258, "isConstant": false, "isLValue": false, "isPure": true, @@ -2422,7 +2422,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 259, + "id": 255, "isConstant": false, "isLValue": false, "isPure": true, @@ -2430,7 +2430,7 @@ "leftExpression": { "argumentTypes": null, "hexValue": "32", - "id": 257, + "id": 253, "isConstant": false, "isLValue": false, "isPure": true, @@ -2449,11 +2449,11 @@ "operator": "*", "rightExpression": { "argumentTypes": null, - "id": 258, + "id": 254, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "1384:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2467,7 +2467,7 @@ } } ], - "id": 260, + "id": 256, "isConstant": false, "isInlineArray": false, "isLValue": false, @@ -2485,7 +2485,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "31", - "id": 261, + "id": 257, "isConstant": false, "isLValue": false, "isPure": true, @@ -2510,10 +2510,10 @@ }, { "constant": true, - "id": 270, + "id": 266, "name": "BPOW_PRECISION", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "1403:54:2", "stateVariable": true, "storageLocation": "default", @@ -2522,7 +2522,7 @@ "typeString": "uint256" }, "typeName": { - "id": 264, + "id": 260, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1403:4:2", @@ -2537,18 +2537,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 269, + "id": 265, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 265, + "id": 261, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "1444:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2563,7 +2563,7 @@ "typeIdentifier": "t_rational_10000000000_by_1", "typeString": "int_const 10000000000" }, - "id": 268, + "id": 264, "isConstant": false, "isLValue": false, "isPure": true, @@ -2571,7 +2571,7 @@ "leftExpression": { "argumentTypes": null, "hexValue": "3130", - "id": 266, + "id": 262, "isConstant": false, "isLValue": false, "isPure": true, @@ -2591,7 +2591,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "3130", - "id": 267, + "id": 263, "isConstant": false, "isLValue": false, "isPure": true, @@ -2622,10 +2622,10 @@ }, { "constant": true, - "id": 275, + "id": 271, "name": "MAX_IN_RATIO", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "1464:49:2", "stateVariable": true, "storageLocation": "default", @@ -2634,7 +2634,7 @@ "typeString": "uint256" }, "typeName": { - "id": 271, + "id": 267, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1464:4:2", @@ -2649,18 +2649,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 274, + "id": 270, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 272, + "id": 268, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "1505:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2672,7 +2672,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "32", - "id": 273, + "id": 269, "isConstant": false, "isLValue": false, "isPure": true, @@ -2697,10 +2697,10 @@ }, { "constant": true, - "id": 283, + "id": 279, "name": "MAX_OUT_RATIO", "nodeType": "VariableDeclaration", - "scope": 284, + "scope": 280, "src": "1519:59:2", "stateVariable": true, "storageLocation": "default", @@ -2709,7 +2709,7 @@ "typeString": "uint256" }, "typeName": { - "id": 276, + "id": 272, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1519:4:2", @@ -2724,7 +2724,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 282, + "id": 278, "isConstant": false, "isLValue": false, "isPure": true, @@ -2738,18 +2738,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 279, + "id": 275, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 277, + "id": 273, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "1561:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2761,7 +2761,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "33", - "id": 278, + "id": 274, "isConstant": false, "isLValue": false, "isPure": true, @@ -2783,7 +2783,7 @@ } } ], - "id": 280, + "id": 276, "isConstant": false, "isInlineArray": false, "isLValue": false, @@ -2801,7 +2801,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "31", - "id": 281, + "id": 277, "isConstant": false, "isLValue": false, "isPure": true, @@ -2825,7 +2825,7 @@ "visibility": "public" } ], - "scope": 285, + "scope": 281, "src": "667:914:2" } ], @@ -2837,7 +2837,7 @@ }, "networks": {}, "schemaVersion": "3.2.0", - "updatedAt": "2020-09-11T10:54:21.615Z", + "updatedAt": "2020-10-02T11:33:45.705Z", "devdoc": { "methods": {} }, diff --git a/artifacts/BFactory.json b/artifacts/BFactory.json index 86fe9d7d3..648d9d165 100644 --- a/artifacts/BFactory.json +++ b/artifacts/BFactory.json @@ -3024,7 +3024,7 @@ }, "networks": {}, "schemaVersion": "3.2.0", - "updatedAt": "2020-10-02T05:02:46.047Z", + "updatedAt": "2020-10-02T11:33:45.707Z", "devdoc": { "methods": {} }, diff --git a/artifacts/BMath.json b/artifacts/BMath.json index 03a0b929c..1a5b7d145 100644 --- a/artifacts/BMath.json +++ b/artifacts/BMath.json @@ -506,14 +506,14 @@ "absolutePath": "/ocean/ocean-contracts/contracts/balancer/BMath.sol", "exportedSymbols": { "BMath": [ - 961 + 945 ] }, - "id": 962, + "id": 946, "nodeType": "SourceUnit", "nodes": [ { - "id": 394, + "id": 378, "literals": [ "solidity", "0.5", @@ -525,10 +525,10 @@ { "absolutePath": "/ocean/ocean-contracts/contracts/balancer/BNum.sol", "file": "./BNum.sol", - "id": 395, + "id": 379, "nodeType": "ImportDirective", - "scope": 962, - "sourceUnit": 1439, + "scope": 946, + "sourceUnit": 1423, "src": "667:20:4", "symbolAliases": [], "unitAlias": "" @@ -539,17 +539,17 @@ "arguments": null, "baseName": { "contractScope": null, - "id": 396, + "id": 380, "name": "BConst", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 284, + "referencedDeclaration": 280, "src": "707:6:4", "typeDescriptions": { - "typeIdentifier": "t_contract$_BConst_$284", + "typeIdentifier": "t_contract$_BConst_$280", "typeString": "contract BConst" } }, - "id": 397, + "id": 381, "nodeType": "InheritanceSpecifier", "src": "707:6:4" }, @@ -557,54 +557,54 @@ "arguments": null, "baseName": { "contractScope": null, - "id": 398, + "id": 382, "name": "BNum", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 1438, + "referencedDeclaration": 1422, "src": "715:4:4", "typeDescriptions": { - "typeIdentifier": "t_contract$_BNum_$1438", + "typeIdentifier": "t_contract$_BNum_$1422", "typeString": "contract BNum" } }, - "id": 399, + "id": 383, "nodeType": "InheritanceSpecifier", "src": "715:4:4" } ], "contractDependencies": [ - 284, - 1438 + 280, + 1422 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, - "id": 961, + "id": 945, "linearizedBaseContracts": [ - 961, - 1438, - 284 + 945, + 1422, + 280 ], "name": "BMath", "nodeType": "ContractDefinition", "nodes": [ { "body": { - "id": 453, + "id": 437, "nodeType": "Block", "src": "1850:270:4", "statements": [ { "assignments": [ - 415 + 399 ], "declarations": [ { "constant": false, - "id": 415, + "id": 399, "name": "numer", "nodeType": "VariableDeclaration", - "scope": 453, + "scope": 437, "src": "1860:10:4", "stateVariable": false, "storageLocation": "default", @@ -613,7 +613,7 @@ "typeString": "uint256" }, "typeName": { - "id": 414, + "id": 398, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1860:4:4", @@ -626,17 +626,17 @@ "visibility": "internal" } ], - "id": 420, + "id": 404, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 417, + "id": 401, "name": "tokenBalanceIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 401, + "referencedDeclaration": 385, "src": "1878:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -645,11 +645,11 @@ }, { "argumentTypes": null, - "id": 418, + "id": 402, "name": "tokenWeightIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 403, + "referencedDeclaration": 387, "src": "1894:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -668,18 +668,18 @@ "typeString": "uint256" } ], - "id": 416, + "id": 400, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "1873:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 419, + "id": 403, "isConstant": false, "isLValue": false, "isPure": false, @@ -698,15 +698,15 @@ }, { "assignments": [ - 422 + 406 ], "declarations": [ { "constant": false, - "id": 422, + "id": 406, "name": "denom", "nodeType": "VariableDeclaration", - "scope": 453, + "scope": 437, "src": "1918:10:4", "stateVariable": false, "storageLocation": "default", @@ -715,7 +715,7 @@ "typeString": "uint256" }, "typeName": { - "id": 421, + "id": 405, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1918:4:4", @@ -728,17 +728,17 @@ "visibility": "internal" } ], - "id": 427, + "id": 411, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 424, + "id": 408, "name": "tokenBalanceOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 405, + "referencedDeclaration": 389, "src": "1936:15:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -747,11 +747,11 @@ }, { "argumentTypes": null, - "id": 425, + "id": 409, "name": "tokenWeightOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 407, + "referencedDeclaration": 391, "src": "1953:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -770,18 +770,18 @@ "typeString": "uint256" } ], - "id": 423, + "id": 407, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "1931:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 426, + "id": 410, "isConstant": false, "isLValue": false, "isPure": false, @@ -800,15 +800,15 @@ }, { "assignments": [ - 429 + 413 ], "declarations": [ { "constant": false, - "id": 429, + "id": 413, "name": "ratio", "nodeType": "VariableDeclaration", - "scope": 453, + "scope": 437, "src": "1978:10:4", "stateVariable": false, "storageLocation": "default", @@ -817,7 +817,7 @@ "typeString": "uint256" }, "typeName": { - "id": 428, + "id": 412, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1978:4:4", @@ -830,17 +830,17 @@ "visibility": "internal" } ], - "id": 434, + "id": 418, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 431, + "id": 415, "name": "numer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 415, + "referencedDeclaration": 399, "src": "1996:5:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -849,11 +849,11 @@ }, { "argumentTypes": null, - "id": 432, + "id": 416, "name": "denom", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 422, + "referencedDeclaration": 406, "src": "2003:5:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -872,18 +872,18 @@ "typeString": "uint256" } ], - "id": 430, + "id": 414, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "1991:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 433, + "id": 417, "isConstant": false, "isLValue": false, "isPure": false, @@ -902,15 +902,15 @@ }, { "assignments": [ - 436 + 420 ], "declarations": [ { "constant": false, - "id": 436, + "id": 420, "name": "scale", "nodeType": "VariableDeclaration", - "scope": 453, + "scope": 437, "src": "2019:10:4", "stateVariable": false, "storageLocation": "default", @@ -919,7 +919,7 @@ "typeString": "uint256" }, "typeName": { - "id": 435, + "id": 419, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2019:4:4", @@ -932,17 +932,17 @@ "visibility": "internal" } ], - "id": 444, + "id": 428, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 438, + "id": 422, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "2037:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -954,11 +954,11 @@ "arguments": [ { "argumentTypes": null, - "id": 440, + "id": 424, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "2048:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -967,11 +967,11 @@ }, { "argumentTypes": null, - "id": 441, + "id": 425, "name": "swapFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 409, + "referencedDeclaration": 393, "src": "2054:7:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -990,18 +990,18 @@ "typeString": "uint256" } ], - "id": 439, + "id": 423, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "2043:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 442, + "id": 426, "isConstant": false, "isLValue": false, "isPure": false, @@ -1027,18 +1027,18 @@ "typeString": "uint256" } ], - "id": 437, + "id": 421, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "2032:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 443, + "id": 427, "isConstant": false, "isLValue": false, "isPure": false, @@ -1061,18 +1061,18 @@ "components": [ { "argumentTypes": null, - "id": 450, + "id": 434, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 445, + "id": 429, "name": "spotPrice", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 412, + "referencedDeclaration": 396, "src": "2082:9:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1086,11 +1086,11 @@ "arguments": [ { "argumentTypes": null, - "id": 447, + "id": 431, "name": "ratio", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 429, + "referencedDeclaration": 413, "src": "2099:5:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1099,11 +1099,11 @@ }, { "argumentTypes": null, - "id": 448, + "id": 432, "name": "scale", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 436, + "referencedDeclaration": 420, "src": "2106:5:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1122,18 +1122,18 @@ "typeString": "uint256" } ], - "id": 446, + "id": 430, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "2094:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 449, + "id": 433, "isConstant": false, "isLValue": false, "isPure": false, @@ -1154,7 +1154,7 @@ } } ], - "id": 451, + "id": 435, "isConstant": false, "isInlineArray": false, "isLValue": false, @@ -1167,30 +1167,30 @@ "typeString": "uint256" } }, - "functionReturnParameters": 413, - "id": 452, + "functionReturnParameters": 397, + "id": 436, "nodeType": "Return", "src": "2073:40:4" } ] }, "documentation": "********************************************************************************************\n// calcSpotPrice //\n// sP = spotPrice //\n// bI = tokenBalanceIn ( bI / wI ) 1 //\n// bO = tokenBalanceOut sP = ----------- * ---------- //\n// wI = tokenWeightIn ( bO / wO ) ( 1 - sF ) //\n// wO = tokenWeightOut //\n// sF = swapFee //*********************************************************************************************", - "id": 454, + "id": 438, "implemented": true, "kind": "function", "modifiers": [], "name": "calcSpotPrice", "nodeType": "FunctionDefinition", "parameters": { - "id": 410, + "id": 394, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 401, + "id": 385, "name": "tokenBalanceIn", "nodeType": "VariableDeclaration", - "scope": 454, + "scope": 438, "src": "1658:19:4", "stateVariable": false, "storageLocation": "default", @@ -1199,7 +1199,7 @@ "typeString": "uint256" }, "typeName": { - "id": 400, + "id": 384, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1658:4:4", @@ -1213,10 +1213,10 @@ }, { "constant": false, - "id": 403, + "id": 387, "name": "tokenWeightIn", "nodeType": "VariableDeclaration", - "scope": 454, + "scope": 438, "src": "1687:18:4", "stateVariable": false, "storageLocation": "default", @@ -1225,7 +1225,7 @@ "typeString": "uint256" }, "typeName": { - "id": 402, + "id": 386, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1687:4:4", @@ -1239,10 +1239,10 @@ }, { "constant": false, - "id": 405, + "id": 389, "name": "tokenBalanceOut", "nodeType": "VariableDeclaration", - "scope": 454, + "scope": 438, "src": "1715:20:4", "stateVariable": false, "storageLocation": "default", @@ -1251,7 +1251,7 @@ "typeString": "uint256" }, "typeName": { - "id": 404, + "id": 388, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1715:4:4", @@ -1265,10 +1265,10 @@ }, { "constant": false, - "id": 407, + "id": 391, "name": "tokenWeightOut", "nodeType": "VariableDeclaration", - "scope": 454, + "scope": 438, "src": "1745:19:4", "stateVariable": false, "storageLocation": "default", @@ -1277,7 +1277,7 @@ "typeString": "uint256" }, "typeName": { - "id": 406, + "id": 390, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1745:4:4", @@ -1291,10 +1291,10 @@ }, { "constant": false, - "id": 409, + "id": 393, "name": "swapFee", "nodeType": "VariableDeclaration", - "scope": 454, + "scope": 438, "src": "1774:12:4", "stateVariable": false, "storageLocation": "default", @@ -1303,7 +1303,7 @@ "typeString": "uint256" }, "typeName": { - "id": 408, + "id": 392, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1774:4:4", @@ -1319,15 +1319,15 @@ "src": "1648:144:4" }, "returnParameters": { - "id": 413, + "id": 397, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 412, + "id": 396, "name": "spotPrice", "nodeType": "VariableDeclaration", - "scope": 454, + "scope": 438, "src": "1830:14:4", "stateVariable": false, "storageLocation": "default", @@ -1336,7 +1336,7 @@ "typeString": "uint256" }, "typeName": { - "id": 411, + "id": 395, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1830:4:4", @@ -1351,7 +1351,7 @@ ], "src": "1829:16:4" }, - "scope": 961, + "scope": 945, "src": "1626:494:4", "stateMutability": "pure", "superFunction": null, @@ -1359,21 +1359,21 @@ }, { "body": { - "id": 525, + "id": 509, "nodeType": "Block", "src": "3384:406:4", "statements": [ { "assignments": [ - 472 + 456 ], "declarations": [ { "constant": false, - "id": 472, + "id": 456, "name": "weightRatio", "nodeType": "VariableDeclaration", - "scope": 525, + "scope": 509, "src": "3394:16:4", "stateVariable": false, "storageLocation": "default", @@ -1382,7 +1382,7 @@ "typeString": "uint256" }, "typeName": { - "id": 471, + "id": 455, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3394:4:4", @@ -1395,17 +1395,17 @@ "visibility": "internal" } ], - "id": 477, + "id": 461, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 474, + "id": 458, "name": "tokenWeightIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 458, + "referencedDeclaration": 442, "src": "3418:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1414,11 +1414,11 @@ }, { "argumentTypes": null, - "id": 475, + "id": 459, "name": "tokenWeightOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 462, + "referencedDeclaration": 446, "src": "3433:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1437,18 +1437,18 @@ "typeString": "uint256" } ], - "id": 473, + "id": 457, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "3413:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 476, + "id": 460, "isConstant": false, "isLValue": false, "isPure": false, @@ -1467,15 +1467,15 @@ }, { "assignments": [ - 479 + 463 ], "declarations": [ { "constant": false, - "id": 479, + "id": 463, "name": "adjustedIn", "nodeType": "VariableDeclaration", - "scope": 525, + "scope": 509, "src": "3458:15:4", "stateVariable": false, "storageLocation": "default", @@ -1484,7 +1484,7 @@ "typeString": "uint256" }, "typeName": { - "id": 478, + "id": 462, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3458:4:4", @@ -1497,17 +1497,17 @@ "visibility": "internal" } ], - "id": 484, + "id": 468, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 481, + "id": 465, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "3481:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1516,11 +1516,11 @@ }, { "argumentTypes": null, - "id": 482, + "id": 466, "name": "swapFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 466, + "referencedDeclaration": 450, "src": "3487:7:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1539,18 +1539,18 @@ "typeString": "uint256" } ], - "id": 480, + "id": 464, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "3476:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 483, + "id": 467, "isConstant": false, "isLValue": false, "isPure": false, @@ -1570,18 +1570,18 @@ { "expression": { "argumentTypes": null, - "id": 490, + "id": 474, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 485, + "id": 469, "name": "adjustedIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 479, + "referencedDeclaration": 463, "src": "3505:10:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1595,11 +1595,11 @@ "arguments": [ { "argumentTypes": null, - "id": 487, + "id": 471, "name": "tokenAmountIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 464, + "referencedDeclaration": 448, "src": "3523:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1608,11 +1608,11 @@ }, { "argumentTypes": null, - "id": 488, + "id": 472, "name": "adjustedIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 479, + "referencedDeclaration": 463, "src": "3538:10:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1631,18 +1631,18 @@ "typeString": "uint256" } ], - "id": 486, + "id": 470, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "3518:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 489, + "id": 473, "isConstant": false, "isLValue": false, "isPure": false, @@ -1662,21 +1662,21 @@ "typeString": "uint256" } }, - "id": 491, + "id": 475, "nodeType": "ExpressionStatement", "src": "3505:44:4" }, { "assignments": [ - 493 + 477 ], "declarations": [ { "constant": false, - "id": 493, + "id": 477, "name": "y", "nodeType": "VariableDeclaration", - "scope": 525, + "scope": 509, "src": "3559:6:4", "stateVariable": false, "storageLocation": "default", @@ -1685,7 +1685,7 @@ "typeString": "uint256" }, "typeName": { - "id": 492, + "id": 476, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3559:4:4", @@ -1698,17 +1698,17 @@ "visibility": "internal" } ], - "id": 501, + "id": 485, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 495, + "id": 479, "name": "tokenBalanceIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 456, + "referencedDeclaration": 440, "src": "3573:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1720,11 +1720,11 @@ "arguments": [ { "argumentTypes": null, - "id": 497, + "id": 481, "name": "tokenBalanceIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 456, + "referencedDeclaration": 440, "src": "3594:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1733,11 +1733,11 @@ }, { "argumentTypes": null, - "id": 498, + "id": 482, "name": "adjustedIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 479, + "referencedDeclaration": 463, "src": "3610:10:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1756,18 +1756,18 @@ "typeString": "uint256" } ], - "id": 496, + "id": 480, "name": "badd", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1017, + "referencedDeclaration": 1001, "src": "3589:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 499, + "id": 483, "isConstant": false, "isLValue": false, "isPure": false, @@ -1793,18 +1793,18 @@ "typeString": "uint256" } ], - "id": 494, + "id": 478, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "3568:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 500, + "id": 484, "isConstant": false, "isLValue": false, "isPure": false, @@ -1823,15 +1823,15 @@ }, { "assignments": [ - 503 + 487 ], "declarations": [ { "constant": false, - "id": 503, + "id": 487, "name": "foo", "nodeType": "VariableDeclaration", - "scope": 525, + "scope": 509, "src": "3632:8:4", "stateVariable": false, "storageLocation": "default", @@ -1840,7 +1840,7 @@ "typeString": "uint256" }, "typeName": { - "id": 502, + "id": 486, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3632:4:4", @@ -1853,17 +1853,17 @@ "visibility": "internal" } ], - "id": 508, + "id": 492, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 505, + "id": 489, "name": "y", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 493, + "referencedDeclaration": 477, "src": "3648:1:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1872,11 +1872,11 @@ }, { "argumentTypes": null, - "id": 506, + "id": 490, "name": "weightRatio", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 472, + "referencedDeclaration": 456, "src": "3651:11:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1895,18 +1895,18 @@ "typeString": "uint256" } ], - "id": 504, + "id": 488, "name": "bpow", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1314, + "referencedDeclaration": 1298, "src": "3643:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 507, + "id": 491, "isConstant": false, "isLValue": false, "isPure": false, @@ -1925,15 +1925,15 @@ }, { "assignments": [ - 510 + 494 ], "declarations": [ { "constant": false, - "id": 510, + "id": 494, "name": "bar", "nodeType": "VariableDeclaration", - "scope": 525, + "scope": 509, "src": "3673:8:4", "stateVariable": false, "storageLocation": "default", @@ -1942,7 +1942,7 @@ "typeString": "uint256" }, "typeName": { - "id": 509, + "id": 493, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3673:4:4", @@ -1955,17 +1955,17 @@ "visibility": "internal" } ], - "id": 515, + "id": 499, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 512, + "id": 496, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "3689:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1974,11 +1974,11 @@ }, { "argumentTypes": null, - "id": 513, + "id": 497, "name": "foo", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 503, + "referencedDeclaration": 487, "src": "3695:3:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1997,18 +1997,18 @@ "typeString": "uint256" } ], - "id": 511, + "id": 495, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "3684:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 514, + "id": 498, "isConstant": false, "isLValue": false, "isPure": false, @@ -2028,18 +2028,18 @@ { "expression": { "argumentTypes": null, - "id": 521, + "id": 505, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 516, + "id": 500, "name": "tokenAmountOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 469, + "referencedDeclaration": 453, "src": "3709:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2053,11 +2053,11 @@ "arguments": [ { "argumentTypes": null, - "id": 518, + "id": 502, "name": "tokenBalanceOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 460, + "referencedDeclaration": 444, "src": "3731:15:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2066,11 +2066,11 @@ }, { "argumentTypes": null, - "id": 519, + "id": 503, "name": "bar", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 510, + "referencedDeclaration": 494, "src": "3748:3:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2089,18 +2089,18 @@ "typeString": "uint256" } ], - "id": 517, + "id": 501, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "3726:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 520, + "id": 504, "isConstant": false, "isLValue": false, "isPure": false, @@ -2120,48 +2120,48 @@ "typeString": "uint256" } }, - "id": 522, + "id": 506, "nodeType": "ExpressionStatement", "src": "3709:43:4" }, { "expression": { "argumentTypes": null, - "id": 523, + "id": 507, "name": "tokenAmountOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 469, + "referencedDeclaration": 453, "src": "3769:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 470, - "id": 524, + "functionReturnParameters": 454, + "id": 508, "nodeType": "Return", "src": "3762:21:4" } ] }, "documentation": "********************************************************************************************\n// calcOutGivenIn //\n// aO = tokenAmountOut //\n// bO = tokenBalanceOut //\n// bI = tokenBalanceIn / / bI \\ (wI / wO) \\ //\n// aI = tokenAmountIn aO = bO * | 1 - | -------------------------- | ^ | //\n// wI = tokenWeightIn \\ \\ ( bI + ( aI * ( 1 - sF )) / / //\n// wO = tokenWeightOut //\n// sF = swapFee //*********************************************************************************************", - "id": 526, + "id": 510, "implemented": true, "kind": "function", "modifiers": [], "name": "calcOutGivenIn", "nodeType": "FunctionDefinition", "parameters": { - "id": 467, + "id": 451, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 456, + "id": 440, "name": "tokenBalanceIn", "nodeType": "VariableDeclaration", - "scope": 526, + "scope": 510, "src": "3159:19:4", "stateVariable": false, "storageLocation": "default", @@ -2170,7 +2170,7 @@ "typeString": "uint256" }, "typeName": { - "id": 455, + "id": 439, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3159:4:4", @@ -2184,10 +2184,10 @@ }, { "constant": false, - "id": 458, + "id": 442, "name": "tokenWeightIn", "nodeType": "VariableDeclaration", - "scope": 526, + "scope": 510, "src": "3188:18:4", "stateVariable": false, "storageLocation": "default", @@ -2196,7 +2196,7 @@ "typeString": "uint256" }, "typeName": { - "id": 457, + "id": 441, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3188:4:4", @@ -2210,10 +2210,10 @@ }, { "constant": false, - "id": 460, + "id": 444, "name": "tokenBalanceOut", "nodeType": "VariableDeclaration", - "scope": 526, + "scope": 510, "src": "3216:20:4", "stateVariable": false, "storageLocation": "default", @@ -2222,7 +2222,7 @@ "typeString": "uint256" }, "typeName": { - "id": 459, + "id": 443, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3216:4:4", @@ -2236,10 +2236,10 @@ }, { "constant": false, - "id": 462, + "id": 446, "name": "tokenWeightOut", "nodeType": "VariableDeclaration", - "scope": 526, + "scope": 510, "src": "3246:19:4", "stateVariable": false, "storageLocation": "default", @@ -2248,7 +2248,7 @@ "typeString": "uint256" }, "typeName": { - "id": 461, + "id": 445, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3246:4:4", @@ -2262,10 +2262,10 @@ }, { "constant": false, - "id": 464, + "id": 448, "name": "tokenAmountIn", "nodeType": "VariableDeclaration", - "scope": 526, + "scope": 510, "src": "3275:18:4", "stateVariable": false, "storageLocation": "default", @@ -2274,7 +2274,7 @@ "typeString": "uint256" }, "typeName": { - "id": 463, + "id": 447, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3275:4:4", @@ -2288,10 +2288,10 @@ }, { "constant": false, - "id": 466, + "id": 450, "name": "swapFee", "nodeType": "VariableDeclaration", - "scope": 526, + "scope": 510, "src": "3303:12:4", "stateVariable": false, "storageLocation": "default", @@ -2300,7 +2300,7 @@ "typeString": "uint256" }, "typeName": { - "id": 465, + "id": 449, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3303:4:4", @@ -2316,15 +2316,15 @@ "src": "3149:172:4" }, "returnParameters": { - "id": 470, + "id": 454, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 469, + "id": 453, "name": "tokenAmountOut", "nodeType": "VariableDeclaration", - "scope": 526, + "scope": 510, "src": "3359:19:4", "stateVariable": false, "storageLocation": "default", @@ -2333,7 +2333,7 @@ "typeString": "uint256" }, "typeName": { - "id": 468, + "id": 452, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3359:4:4", @@ -2348,7 +2348,7 @@ ], "src": "3358:21:4" }, - "scope": 961, + "scope": 945, "src": "3126:664:4", "stateMutability": "pure", "superFunction": null, @@ -2356,21 +2356,21 @@ }, { "body": { - "id": 597, + "id": 581, "nodeType": "Block", "src": "5054:395:4", "statements": [ { "assignments": [ - 544 + 528 ], "declarations": [ { "constant": false, - "id": 544, + "id": 528, "name": "weightRatio", "nodeType": "VariableDeclaration", - "scope": 597, + "scope": 581, "src": "5064:16:4", "stateVariable": false, "storageLocation": "default", @@ -2379,7 +2379,7 @@ "typeString": "uint256" }, "typeName": { - "id": 543, + "id": 527, "name": "uint", "nodeType": "ElementaryTypeName", "src": "5064:4:4", @@ -2392,17 +2392,17 @@ "visibility": "internal" } ], - "id": 549, + "id": 533, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 546, + "id": 530, "name": "tokenWeightOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 534, + "referencedDeclaration": 518, "src": "5088:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2411,11 +2411,11 @@ }, { "argumentTypes": null, - "id": 547, + "id": 531, "name": "tokenWeightIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 530, + "referencedDeclaration": 514, "src": "5104:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2434,18 +2434,18 @@ "typeString": "uint256" } ], - "id": 545, + "id": 529, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "5083:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 548, + "id": 532, "isConstant": false, "isLValue": false, "isPure": false, @@ -2464,15 +2464,15 @@ }, { "assignments": [ - 551 + 535 ], "declarations": [ { "constant": false, - "id": 551, + "id": 535, "name": "diff", "nodeType": "VariableDeclaration", - "scope": 597, + "scope": 581, "src": "5128:9:4", "stateVariable": false, "storageLocation": "default", @@ -2481,7 +2481,7 @@ "typeString": "uint256" }, "typeName": { - "id": 550, + "id": 534, "name": "uint", "nodeType": "ElementaryTypeName", "src": "5128:4:4", @@ -2494,17 +2494,17 @@ "visibility": "internal" } ], - "id": 556, + "id": 540, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 553, + "id": 537, "name": "tokenBalanceOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 532, + "referencedDeclaration": 516, "src": "5145:15:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2513,11 +2513,11 @@ }, { "argumentTypes": null, - "id": 554, + "id": 538, "name": "tokenAmountOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 536, + "referencedDeclaration": 520, "src": "5162:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2536,18 +2536,18 @@ "typeString": "uint256" } ], - "id": 552, + "id": 536, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "5140:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 555, + "id": 539, "isConstant": false, "isLValue": false, "isPure": false, @@ -2566,15 +2566,15 @@ }, { "assignments": [ - 558 + 542 ], "declarations": [ { "constant": false, - "id": 558, + "id": 542, "name": "y", "nodeType": "VariableDeclaration", - "scope": 597, + "scope": 581, "src": "5187:6:4", "stateVariable": false, "storageLocation": "default", @@ -2583,7 +2583,7 @@ "typeString": "uint256" }, "typeName": { - "id": 557, + "id": 541, "name": "uint", "nodeType": "ElementaryTypeName", "src": "5187:4:4", @@ -2596,17 +2596,17 @@ "visibility": "internal" } ], - "id": 563, + "id": 547, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 560, + "id": 544, "name": "tokenBalanceOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 532, + "referencedDeclaration": 516, "src": "5201:15:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2615,11 +2615,11 @@ }, { "argumentTypes": null, - "id": 561, + "id": 545, "name": "diff", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 551, + "referencedDeclaration": 535, "src": "5218:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2638,18 +2638,18 @@ "typeString": "uint256" } ], - "id": 559, + "id": 543, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "5196:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 562, + "id": 546, "isConstant": false, "isLValue": false, "isPure": false, @@ -2668,15 +2668,15 @@ }, { "assignments": [ - 565 + 549 ], "declarations": [ { "constant": false, - "id": 565, + "id": 549, "name": "foo", "nodeType": "VariableDeclaration", - "scope": 597, + "scope": 581, "src": "5233:8:4", "stateVariable": false, "storageLocation": "default", @@ -2685,7 +2685,7 @@ "typeString": "uint256" }, "typeName": { - "id": 564, + "id": 548, "name": "uint", "nodeType": "ElementaryTypeName", "src": "5233:4:4", @@ -2698,17 +2698,17 @@ "visibility": "internal" } ], - "id": 570, + "id": 554, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 567, + "id": 551, "name": "y", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 558, + "referencedDeclaration": 542, "src": "5249:1:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2717,11 +2717,11 @@ }, { "argumentTypes": null, - "id": 568, + "id": 552, "name": "weightRatio", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 544, + "referencedDeclaration": 528, "src": "5252:11:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2740,18 +2740,18 @@ "typeString": "uint256" } ], - "id": 566, + "id": 550, "name": "bpow", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1314, + "referencedDeclaration": 1298, "src": "5244:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 569, + "id": 553, "isConstant": false, "isLValue": false, "isPure": false, @@ -2771,18 +2771,18 @@ { "expression": { "argumentTypes": null, - "id": 576, + "id": 560, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 571, + "id": 555, "name": "foo", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 565, + "referencedDeclaration": 549, "src": "5274:3:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2796,11 +2796,11 @@ "arguments": [ { "argumentTypes": null, - "id": 573, + "id": 557, "name": "foo", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 565, + "referencedDeclaration": 549, "src": "5285:3:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2809,11 +2809,11 @@ }, { "argumentTypes": null, - "id": 574, + "id": 558, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "5290:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2832,18 +2832,18 @@ "typeString": "uint256" } ], - "id": 572, + "id": 556, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "5280:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 575, + "id": 559, "isConstant": false, "isLValue": false, "isPure": false, @@ -2863,25 +2863,25 @@ "typeString": "uint256" } }, - "id": 577, + "id": 561, "nodeType": "ExpressionStatement", "src": "5274:21:4" }, { "expression": { "argumentTypes": null, - "id": 583, + "id": 567, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 578, + "id": 562, "name": "tokenAmountIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 541, + "referencedDeclaration": 525, "src": "5305:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2895,11 +2895,11 @@ "arguments": [ { "argumentTypes": null, - "id": 580, + "id": 564, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "5326:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2908,11 +2908,11 @@ }, { "argumentTypes": null, - "id": 581, + "id": 565, "name": "swapFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 538, + "referencedDeclaration": 522, "src": "5332:7:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2931,18 +2931,18 @@ "typeString": "uint256" } ], - "id": 579, + "id": 563, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "5321:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 582, + "id": 566, "isConstant": false, "isLValue": false, "isPure": false, @@ -2962,25 +2962,25 @@ "typeString": "uint256" } }, - "id": 584, + "id": 568, "nodeType": "ExpressionStatement", "src": "5305:35:4" }, { "expression": { "argumentTypes": null, - "id": 593, + "id": 577, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 585, + "id": 569, "name": "tokenAmountIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 541, + "referencedDeclaration": 525, "src": "5350:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2997,11 +2997,11 @@ "arguments": [ { "argumentTypes": null, - "id": 588, + "id": 572, "name": "tokenBalanceIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 528, + "referencedDeclaration": 512, "src": "5376:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3010,11 +3010,11 @@ }, { "argumentTypes": null, - "id": 589, + "id": 573, "name": "foo", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 565, + "referencedDeclaration": 549, "src": "5392:3:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3033,18 +3033,18 @@ "typeString": "uint256" } ], - "id": 587, + "id": 571, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "5371:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 590, + "id": 574, "isConstant": false, "isLValue": false, "isPure": false, @@ -3060,11 +3060,11 @@ }, { "argumentTypes": null, - "id": 591, + "id": 575, "name": "tokenAmountIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 541, + "referencedDeclaration": 525, "src": "5398:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3083,18 +3083,18 @@ "typeString": "uint256" } ], - "id": 586, + "id": 570, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "5366:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 592, + "id": 576, "isConstant": false, "isLValue": false, "isPure": false, @@ -3114,48 +3114,48 @@ "typeString": "uint256" } }, - "id": 594, + "id": 578, "nodeType": "ExpressionStatement", "src": "5350:62:4" }, { "expression": { "argumentTypes": null, - "id": 595, + "id": 579, "name": "tokenAmountIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 541, + "referencedDeclaration": 525, "src": "5429:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 542, - "id": 596, + "functionReturnParameters": 526, + "id": 580, "nodeType": "Return", "src": "5422:20:4" } ] }, "documentation": "********************************************************************************************\n// calcInGivenOut //\n// aI = tokenAmountIn //\n// bO = tokenBalanceOut / / bO \\ (wO / wI) \\ //\n// bI = tokenBalanceIn bI * | | ------------ | ^ - 1 | //\n// aO = tokenAmountOut aI = \\ \\ ( bO - aO ) / / //\n// wI = tokenWeightIn -------------------------------------------- //\n// wO = tokenWeightOut ( 1 - sF ) //\n// sF = swapFee //*********************************************************************************************", - "id": 598, + "id": 582, "implemented": true, "kind": "function", "modifiers": [], "name": "calcInGivenOut", "nodeType": "FunctionDefinition", "parameters": { - "id": 539, + "id": 523, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 528, + "id": 512, "name": "tokenBalanceIn", "nodeType": "VariableDeclaration", - "scope": 598, + "scope": 582, "src": "4829:19:4", "stateVariable": false, "storageLocation": "default", @@ -3164,7 +3164,7 @@ "typeString": "uint256" }, "typeName": { - "id": 527, + "id": 511, "name": "uint", "nodeType": "ElementaryTypeName", "src": "4829:4:4", @@ -3178,10 +3178,10 @@ }, { "constant": false, - "id": 530, + "id": 514, "name": "tokenWeightIn", "nodeType": "VariableDeclaration", - "scope": 598, + "scope": 582, "src": "4858:18:4", "stateVariable": false, "storageLocation": "default", @@ -3190,7 +3190,7 @@ "typeString": "uint256" }, "typeName": { - "id": 529, + "id": 513, "name": "uint", "nodeType": "ElementaryTypeName", "src": "4858:4:4", @@ -3204,10 +3204,10 @@ }, { "constant": false, - "id": 532, + "id": 516, "name": "tokenBalanceOut", "nodeType": "VariableDeclaration", - "scope": 598, + "scope": 582, "src": "4886:20:4", "stateVariable": false, "storageLocation": "default", @@ -3216,7 +3216,7 @@ "typeString": "uint256" }, "typeName": { - "id": 531, + "id": 515, "name": "uint", "nodeType": "ElementaryTypeName", "src": "4886:4:4", @@ -3230,10 +3230,10 @@ }, { "constant": false, - "id": 534, + "id": 518, "name": "tokenWeightOut", "nodeType": "VariableDeclaration", - "scope": 598, + "scope": 582, "src": "4916:19:4", "stateVariable": false, "storageLocation": "default", @@ -3242,7 +3242,7 @@ "typeString": "uint256" }, "typeName": { - "id": 533, + "id": 517, "name": "uint", "nodeType": "ElementaryTypeName", "src": "4916:4:4", @@ -3256,10 +3256,10 @@ }, { "constant": false, - "id": 536, + "id": 520, "name": "tokenAmountOut", "nodeType": "VariableDeclaration", - "scope": 598, + "scope": 582, "src": "4945:19:4", "stateVariable": false, "storageLocation": "default", @@ -3268,7 +3268,7 @@ "typeString": "uint256" }, "typeName": { - "id": 535, + "id": 519, "name": "uint", "nodeType": "ElementaryTypeName", "src": "4945:4:4", @@ -3282,10 +3282,10 @@ }, { "constant": false, - "id": 538, + "id": 522, "name": "swapFee", "nodeType": "VariableDeclaration", - "scope": 598, + "scope": 582, "src": "4974:12:4", "stateVariable": false, "storageLocation": "default", @@ -3294,7 +3294,7 @@ "typeString": "uint256" }, "typeName": { - "id": 537, + "id": 521, "name": "uint", "nodeType": "ElementaryTypeName", "src": "4974:4:4", @@ -3310,15 +3310,15 @@ "src": "4819:173:4" }, "returnParameters": { - "id": 542, + "id": 526, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 541, + "id": 525, "name": "tokenAmountIn", "nodeType": "VariableDeclaration", - "scope": 598, + "scope": 582, "src": "5030:18:4", "stateVariable": false, "storageLocation": "default", @@ -3327,7 +3327,7 @@ "typeString": "uint256" }, "typeName": { - "id": 540, + "id": 524, "name": "uint", "nodeType": "ElementaryTypeName", "src": "5030:4:4", @@ -3342,7 +3342,7 @@ ], "src": "5029:20:4" }, - "scope": 961, + "scope": 945, "src": "4796:653:4", "stateMutability": "pure", "superFunction": null, @@ -3350,21 +3350,21 @@ }, { "body": { - "id": 679, + "id": 663, "nodeType": "Block", "src": "6714:881:4", "statements": [ { "assignments": [ - 616 + 600 ], "declarations": [ { "constant": false, - "id": 616, + "id": 600, "name": "normalizedWeight", "nodeType": "VariableDeclaration", - "scope": 679, + "scope": 663, "src": "6968:21:4", "stateVariable": false, "storageLocation": "default", @@ -3373,7 +3373,7 @@ "typeString": "uint256" }, "typeName": { - "id": 615, + "id": 599, "name": "uint", "nodeType": "ElementaryTypeName", "src": "6968:4:4", @@ -3386,17 +3386,17 @@ "visibility": "internal" } ], - "id": 621, + "id": 605, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 618, + "id": 602, "name": "tokenWeightIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 602, + "referencedDeclaration": 586, "src": "6997:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3405,11 +3405,11 @@ }, { "argumentTypes": null, - "id": 619, + "id": 603, "name": "totalWeight", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 606, + "referencedDeclaration": 590, "src": "7012:11:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3428,18 +3428,18 @@ "typeString": "uint256" } ], - "id": 617, + "id": 601, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "6992:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 620, + "id": 604, "isConstant": false, "isLValue": false, "isPure": false, @@ -3458,15 +3458,15 @@ }, { "assignments": [ - 623 + 607 ], "declarations": [ { "constant": false, - "id": 623, + "id": 607, "name": "zaz", "nodeType": "VariableDeclaration", - "scope": 679, + "scope": 663, "src": "7034:8:4", "stateVariable": false, "storageLocation": "default", @@ -3475,7 +3475,7 @@ "typeString": "uint256" }, "typeName": { - "id": 622, + "id": 606, "name": "uint", "nodeType": "ElementaryTypeName", "src": "7034:4:4", @@ -3488,7 +3488,7 @@ "visibility": "internal" } ], - "id": 631, + "id": 615, "initialValue": { "argumentTypes": null, "arguments": [ @@ -3497,11 +3497,11 @@ "arguments": [ { "argumentTypes": null, - "id": 626, + "id": 610, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "7055:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3510,11 +3510,11 @@ }, { "argumentTypes": null, - "id": 627, + "id": 611, "name": "normalizedWeight", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 616, + "referencedDeclaration": 600, "src": "7061:16:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3533,18 +3533,18 @@ "typeString": "uint256" } ], - "id": 625, + "id": 609, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "7050:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 628, + "id": 612, "isConstant": false, "isLValue": false, "isPure": false, @@ -3560,11 +3560,11 @@ }, { "argumentTypes": null, - "id": 629, + "id": 613, "name": "swapFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 610, + "referencedDeclaration": 594, "src": "7080:7:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3583,18 +3583,18 @@ "typeString": "uint256" } ], - "id": 624, + "id": 608, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "7045:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 630, + "id": 614, "isConstant": false, "isLValue": false, "isPure": false, @@ -3613,15 +3613,15 @@ }, { "assignments": [ - 633 + 617 ], "declarations": [ { "constant": false, - "id": 633, + "id": 617, "name": "tokenAmountInAfterFee", "nodeType": "VariableDeclaration", - "scope": 679, + "scope": 663, "src": "7099:26:4", "stateVariable": false, "storageLocation": "default", @@ -3630,7 +3630,7 @@ "typeString": "uint256" }, "typeName": { - "id": 632, + "id": 616, "name": "uint", "nodeType": "ElementaryTypeName", "src": "7099:4:4", @@ -3643,17 +3643,17 @@ "visibility": "internal" } ], - "id": 641, + "id": 625, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 635, + "id": 619, "name": "tokenAmountIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 608, + "referencedDeclaration": 592, "src": "7133:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3665,11 +3665,11 @@ "arguments": [ { "argumentTypes": null, - "id": 637, + "id": 621, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "7153:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3678,11 +3678,11 @@ }, { "argumentTypes": null, - "id": 638, + "id": 622, "name": "zaz", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 623, + "referencedDeclaration": 607, "src": "7159:3:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3701,18 +3701,18 @@ "typeString": "uint256" } ], - "id": 636, + "id": 620, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "7148:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 639, + "id": 623, "isConstant": false, "isLValue": false, "isPure": false, @@ -3738,18 +3738,18 @@ "typeString": "uint256" } ], - "id": 634, + "id": 618, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "7128:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 640, + "id": 624, "isConstant": false, "isLValue": false, "isPure": false, @@ -3768,15 +3768,15 @@ }, { "assignments": [ - 643 + 627 ], "declarations": [ { "constant": false, - "id": 643, + "id": 627, "name": "newTokenBalanceIn", "nodeType": "VariableDeclaration", - "scope": 679, + "scope": 663, "src": "7175:22:4", "stateVariable": false, "storageLocation": "default", @@ -3785,7 +3785,7 @@ "typeString": "uint256" }, "typeName": { - "id": 642, + "id": 626, "name": "uint", "nodeType": "ElementaryTypeName", "src": "7175:4:4", @@ -3798,17 +3798,17 @@ "visibility": "internal" } ], - "id": 648, + "id": 632, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 645, + "id": 629, "name": "tokenBalanceIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 600, + "referencedDeclaration": 584, "src": "7205:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3817,11 +3817,11 @@ }, { "argumentTypes": null, - "id": 646, + "id": 630, "name": "tokenAmountInAfterFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 633, + "referencedDeclaration": 617, "src": "7221:21:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3840,18 +3840,18 @@ "typeString": "uint256" } ], - "id": 644, + "id": 628, "name": "badd", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1017, + "referencedDeclaration": 1001, "src": "7200:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 647, + "id": 631, "isConstant": false, "isLValue": false, "isPure": false, @@ -3870,15 +3870,15 @@ }, { "assignments": [ - 650 + 634 ], "declarations": [ { "constant": false, - "id": 650, + "id": 634, "name": "tokenInRatio", "nodeType": "VariableDeclaration", - "scope": 679, + "scope": 663, "src": "7253:17:4", "stateVariable": false, "storageLocation": "default", @@ -3887,7 +3887,7 @@ "typeString": "uint256" }, "typeName": { - "id": 649, + "id": 633, "name": "uint", "nodeType": "ElementaryTypeName", "src": "7253:4:4", @@ -3900,17 +3900,17 @@ "visibility": "internal" } ], - "id": 655, + "id": 639, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 652, + "id": 636, "name": "newTokenBalanceIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 643, + "referencedDeclaration": 627, "src": "7278:17:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3919,11 +3919,11 @@ }, { "argumentTypes": null, - "id": 653, + "id": 637, "name": "tokenBalanceIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 600, + "referencedDeclaration": 584, "src": "7297:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3942,18 +3942,18 @@ "typeString": "uint256" } ], - "id": 651, + "id": 635, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "7273:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 654, + "id": 638, "isConstant": false, "isLValue": false, "isPure": false, @@ -3972,15 +3972,15 @@ }, { "assignments": [ - 657 + 641 ], "declarations": [ { "constant": false, - "id": 657, + "id": 641, "name": "poolRatio", "nodeType": "VariableDeclaration", - "scope": 679, + "scope": 663, "src": "7390:14:4", "stateVariable": false, "storageLocation": "default", @@ -3989,7 +3989,7 @@ "typeString": "uint256" }, "typeName": { - "id": 656, + "id": 640, "name": "uint", "nodeType": "ElementaryTypeName", "src": "7390:4:4", @@ -4002,17 +4002,17 @@ "visibility": "internal" } ], - "id": 662, + "id": 646, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 659, + "id": 643, "name": "tokenInRatio", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 650, + "referencedDeclaration": 634, "src": "7412:12:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4021,11 +4021,11 @@ }, { "argumentTypes": null, - "id": 660, + "id": 644, "name": "normalizedWeight", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 616, + "referencedDeclaration": 600, "src": "7426:16:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4044,18 +4044,18 @@ "typeString": "uint256" } ], - "id": 658, + "id": 642, "name": "bpow", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1314, + "referencedDeclaration": 1298, "src": "7407:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 661, + "id": 645, "isConstant": false, "isLValue": false, "isPure": false, @@ -4074,15 +4074,15 @@ }, { "assignments": [ - 664 + 648 ], "declarations": [ { "constant": false, - "id": 664, + "id": 648, "name": "newPoolSupply", "nodeType": "VariableDeclaration", - "scope": 679, + "scope": 663, "src": "7453:18:4", "stateVariable": false, "storageLocation": "default", @@ -4091,7 +4091,7 @@ "typeString": "uint256" }, "typeName": { - "id": 663, + "id": 647, "name": "uint", "nodeType": "ElementaryTypeName", "src": "7453:4:4", @@ -4104,17 +4104,17 @@ "visibility": "internal" } ], - "id": 669, + "id": 653, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 666, + "id": 650, "name": "poolRatio", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 657, + "referencedDeclaration": 641, "src": "7479:9:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4123,11 +4123,11 @@ }, { "argumentTypes": null, - "id": 667, + "id": 651, "name": "poolSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 604, + "referencedDeclaration": 588, "src": "7490:10:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4146,18 +4146,18 @@ "typeString": "uint256" } ], - "id": 665, + "id": 649, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "7474:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 668, + "id": 652, "isConstant": false, "isLValue": false, "isPure": false, @@ -4177,18 +4177,18 @@ { "expression": { "argumentTypes": null, - "id": 675, + "id": 659, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 670, + "id": 654, "name": "poolAmountOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 613, + "referencedDeclaration": 597, "src": "7511:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4202,11 +4202,11 @@ "arguments": [ { "argumentTypes": null, - "id": 672, + "id": 656, "name": "newPoolSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 664, + "referencedDeclaration": 648, "src": "7532:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4215,11 +4215,11 @@ }, { "argumentTypes": null, - "id": 673, + "id": 657, "name": "poolSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 604, + "referencedDeclaration": 588, "src": "7547:10:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4238,18 +4238,18 @@ "typeString": "uint256" } ], - "id": 671, + "id": 655, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "7527:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 674, + "id": 658, "isConstant": false, "isLValue": false, "isPure": false, @@ -4269,48 +4269,48 @@ "typeString": "uint256" } }, - "id": 676, + "id": 660, "nodeType": "ExpressionStatement", "src": "7511:47:4" }, { "expression": { "argumentTypes": null, - "id": 677, + "id": 661, "name": "poolAmountOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 613, + "referencedDeclaration": 597, "src": "7575:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 614, - "id": 678, + "functionReturnParameters": 598, + "id": 662, "nodeType": "Return", "src": "7568:20:4" } ] }, "documentation": "********************************************************************************************\n// calcPoolOutGivenSingleIn //\n// pAo = poolAmountOut / \\ //\n// tAi = tokenAmountIn /// / // wI \\ \\\\ \\ wI \\ //\n// wI = tokenWeightIn //| tAi *| 1 - || 1 - -- | * sF || + tBi \\ -- \\ //\n// tW = totalWeight pAo=|| \\ \\ \\\\ tW / // | ^ tW | * pS - pS //\n// tBi = tokenBalanceIn \\\\ ------------------------------------- / / //\n// pS = poolSupply \\\\ tBi / / //\n// sF = swapFee \\ / //*********************************************************************************************", - "id": 680, + "id": 664, "implemented": true, "kind": "function", "modifiers": [], "name": "calcPoolOutGivenSingleIn", "nodeType": "FunctionDefinition", "parameters": { - "id": 611, + "id": 595, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 600, + "id": 584, "name": "tokenBalanceIn", "nodeType": "VariableDeclaration", - "scope": 680, + "scope": 664, "src": "6498:19:4", "stateVariable": false, "storageLocation": "default", @@ -4319,7 +4319,7 @@ "typeString": "uint256" }, "typeName": { - "id": 599, + "id": 583, "name": "uint", "nodeType": "ElementaryTypeName", "src": "6498:4:4", @@ -4333,10 +4333,10 @@ }, { "constant": false, - "id": 602, + "id": 586, "name": "tokenWeightIn", "nodeType": "VariableDeclaration", - "scope": 680, + "scope": 664, "src": "6527:18:4", "stateVariable": false, "storageLocation": "default", @@ -4345,7 +4345,7 @@ "typeString": "uint256" }, "typeName": { - "id": 601, + "id": 585, "name": "uint", "nodeType": "ElementaryTypeName", "src": "6527:4:4", @@ -4359,10 +4359,10 @@ }, { "constant": false, - "id": 604, + "id": 588, "name": "poolSupply", "nodeType": "VariableDeclaration", - "scope": 680, + "scope": 664, "src": "6555:15:4", "stateVariable": false, "storageLocation": "default", @@ -4371,7 +4371,7 @@ "typeString": "uint256" }, "typeName": { - "id": 603, + "id": 587, "name": "uint", "nodeType": "ElementaryTypeName", "src": "6555:4:4", @@ -4385,10 +4385,10 @@ }, { "constant": false, - "id": 606, + "id": 590, "name": "totalWeight", "nodeType": "VariableDeclaration", - "scope": 680, + "scope": 664, "src": "6580:16:4", "stateVariable": false, "storageLocation": "default", @@ -4397,7 +4397,7 @@ "typeString": "uint256" }, "typeName": { - "id": 605, + "id": 589, "name": "uint", "nodeType": "ElementaryTypeName", "src": "6580:4:4", @@ -4411,10 +4411,10 @@ }, { "constant": false, - "id": 608, + "id": 592, "name": "tokenAmountIn", "nodeType": "VariableDeclaration", - "scope": 680, + "scope": 664, "src": "6606:18:4", "stateVariable": false, "storageLocation": "default", @@ -4423,7 +4423,7 @@ "typeString": "uint256" }, "typeName": { - "id": 607, + "id": 591, "name": "uint", "nodeType": "ElementaryTypeName", "src": "6606:4:4", @@ -4437,10 +4437,10 @@ }, { "constant": false, - "id": 610, + "id": 594, "name": "swapFee", "nodeType": "VariableDeclaration", - "scope": 680, + "scope": 664, "src": "6634:12:4", "stateVariable": false, "storageLocation": "default", @@ -4449,7 +4449,7 @@ "typeString": "uint256" }, "typeName": { - "id": 609, + "id": 593, "name": "uint", "nodeType": "ElementaryTypeName", "src": "6634:4:4", @@ -4465,15 +4465,15 @@ "src": "6488:164:4" }, "returnParameters": { - "id": 614, + "id": 598, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 613, + "id": 597, "name": "poolAmountOut", "nodeType": "VariableDeclaration", - "scope": 680, + "scope": 664, "src": "6690:18:4", "stateVariable": false, "storageLocation": "default", @@ -4482,7 +4482,7 @@ "typeString": "uint256" }, "typeName": { - "id": 612, + "id": 596, "name": "uint", "nodeType": "ElementaryTypeName", "src": "6690:4:4", @@ -4497,7 +4497,7 @@ ], "src": "6689:20:4" }, - "scope": 961, + "scope": 945, "src": "6455:1140:4", "stateMutability": "pure", "superFunction": null, @@ -4505,21 +4505,21 @@ }, { "body": { - "id": 768, + "id": 752, "nodeType": "Block", "src": "8860:908:4", "statements": [ { "assignments": [ - 698 + 682 ], "declarations": [ { "constant": false, - "id": 698, + "id": 682, "name": "normalizedWeight", "nodeType": "VariableDeclaration", - "scope": 768, + "scope": 752, "src": "8870:21:4", "stateVariable": false, "storageLocation": "default", @@ -4528,7 +4528,7 @@ "typeString": "uint256" }, "typeName": { - "id": 697, + "id": 681, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8870:4:4", @@ -4541,17 +4541,17 @@ "visibility": "internal" } ], - "id": 703, + "id": 687, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 700, + "id": 684, "name": "tokenWeightIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 684, + "referencedDeclaration": 668, "src": "8899:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4560,11 +4560,11 @@ }, { "argumentTypes": null, - "id": 701, + "id": 685, "name": "totalWeight", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 688, + "referencedDeclaration": 672, "src": "8914:11:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4583,18 +4583,18 @@ "typeString": "uint256" } ], - "id": 699, + "id": 683, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "8894:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 702, + "id": 686, "isConstant": false, "isLValue": false, "isPure": false, @@ -4613,15 +4613,15 @@ }, { "assignments": [ - 705 + 689 ], "declarations": [ { "constant": false, - "id": 705, + "id": 689, "name": "newPoolSupply", "nodeType": "VariableDeclaration", - "scope": 768, + "scope": 752, "src": "8936:18:4", "stateVariable": false, "storageLocation": "default", @@ -4630,7 +4630,7 @@ "typeString": "uint256" }, "typeName": { - "id": 704, + "id": 688, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8936:4:4", @@ -4643,17 +4643,17 @@ "visibility": "internal" } ], - "id": 710, + "id": 694, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 707, + "id": 691, "name": "poolSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 686, + "referencedDeclaration": 670, "src": "8962:10:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4662,11 +4662,11 @@ }, { "argumentTypes": null, - "id": 708, + "id": 692, "name": "poolAmountOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 690, + "referencedDeclaration": 674, "src": "8974:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4685,18 +4685,18 @@ "typeString": "uint256" } ], - "id": 706, + "id": 690, "name": "badd", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1017, + "referencedDeclaration": 1001, "src": "8957:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 709, + "id": 693, "isConstant": false, "isLValue": false, "isPure": false, @@ -4715,15 +4715,15 @@ }, { "assignments": [ - 712 + 696 ], "declarations": [ { "constant": false, - "id": 712, + "id": 696, "name": "poolRatio", "nodeType": "VariableDeclaration", - "scope": 768, + "scope": 752, "src": "8998:14:4", "stateVariable": false, "storageLocation": "default", @@ -4732,7 +4732,7 @@ "typeString": "uint256" }, "typeName": { - "id": 711, + "id": 695, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8998:4:4", @@ -4745,17 +4745,17 @@ "visibility": "internal" } ], - "id": 717, + "id": 701, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 714, + "id": 698, "name": "newPoolSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 705, + "referencedDeclaration": 689, "src": "9020:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4764,11 +4764,11 @@ }, { "argumentTypes": null, - "id": 715, + "id": 699, "name": "poolSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 686, + "referencedDeclaration": 670, "src": "9035:10:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4787,18 +4787,18 @@ "typeString": "uint256" } ], - "id": 713, + "id": 697, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "9015:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 716, + "id": 700, "isConstant": false, "isLValue": false, "isPure": false, @@ -4817,15 +4817,15 @@ }, { "assignments": [ - 719 + 703 ], "declarations": [ { "constant": false, - "id": 719, + "id": 703, "name": "boo", "nodeType": "VariableDeclaration", - "scope": 768, + "scope": 752, "src": "9121:8:4", "stateVariable": false, "storageLocation": "default", @@ -4834,7 +4834,7 @@ "typeString": "uint256" }, "typeName": { - "id": 718, + "id": 702, "name": "uint", "nodeType": "ElementaryTypeName", "src": "9121:4:4", @@ -4847,17 +4847,17 @@ "visibility": "internal" } ], - "id": 724, + "id": 708, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 721, + "id": 705, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "9137:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4866,11 +4866,11 @@ }, { "argumentTypes": null, - "id": 722, + "id": 706, "name": "normalizedWeight", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 698, + "referencedDeclaration": 682, "src": "9143:16:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4889,18 +4889,18 @@ "typeString": "uint256" } ], - "id": 720, + "id": 704, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "9132:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 723, + "id": 707, "isConstant": false, "isLValue": false, "isPure": false, @@ -4919,15 +4919,15 @@ }, { "assignments": [ - 726 + 710 ], "declarations": [ { "constant": false, - "id": 726, + "id": 710, "name": "tokenInRatio", "nodeType": "VariableDeclaration", - "scope": 768, + "scope": 752, "src": "9171:17:4", "stateVariable": false, "storageLocation": "default", @@ -4936,7 +4936,7 @@ "typeString": "uint256" }, "typeName": { - "id": 725, + "id": 709, "name": "uint", "nodeType": "ElementaryTypeName", "src": "9171:4:4", @@ -4949,17 +4949,17 @@ "visibility": "internal" } ], - "id": 731, + "id": 715, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 728, + "id": 712, "name": "poolRatio", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 712, + "referencedDeclaration": 696, "src": "9196:9:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4968,11 +4968,11 @@ }, { "argumentTypes": null, - "id": 729, + "id": 713, "name": "boo", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 719, + "referencedDeclaration": 703, "src": "9207:3:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4991,18 +4991,18 @@ "typeString": "uint256" } ], - "id": 727, + "id": 711, "name": "bpow", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1314, + "referencedDeclaration": 1298, "src": "9191:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 730, + "id": 714, "isConstant": false, "isLValue": false, "isPure": false, @@ -5021,15 +5021,15 @@ }, { "assignments": [ - 733 + 717 ], "declarations": [ { "constant": false, - "id": 733, + "id": 717, "name": "newTokenBalanceIn", "nodeType": "VariableDeclaration", - "scope": 768, + "scope": 752, "src": "9221:22:4", "stateVariable": false, "storageLocation": "default", @@ -5038,7 +5038,7 @@ "typeString": "uint256" }, "typeName": { - "id": 732, + "id": 716, "name": "uint", "nodeType": "ElementaryTypeName", "src": "9221:4:4", @@ -5051,17 +5051,17 @@ "visibility": "internal" } ], - "id": 738, + "id": 722, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 735, + "id": 719, "name": "tokenInRatio", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 726, + "referencedDeclaration": 710, "src": "9251:12:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5070,11 +5070,11 @@ }, { "argumentTypes": null, - "id": 736, + "id": 720, "name": "tokenBalanceIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 682, + "referencedDeclaration": 666, "src": "9265:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5093,18 +5093,18 @@ "typeString": "uint256" } ], - "id": 734, + "id": 718, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "9246:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 737, + "id": 721, "isConstant": false, "isLValue": false, "isPure": false, @@ -5123,15 +5123,15 @@ }, { "assignments": [ - 740 + 724 ], "declarations": [ { "constant": false, - "id": 740, + "id": 724, "name": "tokenAmountInAfterFee", "nodeType": "VariableDeclaration", - "scope": 768, + "scope": 752, "src": "9290:26:4", "stateVariable": false, "storageLocation": "default", @@ -5140,7 +5140,7 @@ "typeString": "uint256" }, "typeName": { - "id": 739, + "id": 723, "name": "uint", "nodeType": "ElementaryTypeName", "src": "9290:4:4", @@ -5153,17 +5153,17 @@ "visibility": "internal" } ], - "id": 745, + "id": 729, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 742, + "id": 726, "name": "newTokenBalanceIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 733, + "referencedDeclaration": 717, "src": "9324:17:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5172,11 +5172,11 @@ }, { "argumentTypes": null, - "id": 743, + "id": 727, "name": "tokenBalanceIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 682, + "referencedDeclaration": 666, "src": "9343:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5195,18 +5195,18 @@ "typeString": "uint256" } ], - "id": 741, + "id": 725, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "9319:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 744, + "id": 728, "isConstant": false, "isLValue": false, "isPure": false, @@ -5225,15 +5225,15 @@ }, { "assignments": [ - 747 + 731 ], "declarations": [ { "constant": false, - "id": 747, + "id": 731, "name": "zar", "nodeType": "VariableDeclaration", - "scope": 768, + "scope": 752, "src": "9607:8:4", "stateVariable": false, "storageLocation": "default", @@ -5242,7 +5242,7 @@ "typeString": "uint256" }, "typeName": { - "id": 746, + "id": 730, "name": "uint", "nodeType": "ElementaryTypeName", "src": "9607:4:4", @@ -5255,7 +5255,7 @@ "visibility": "internal" } ], - "id": 755, + "id": 739, "initialValue": { "argumentTypes": null, "arguments": [ @@ -5264,11 +5264,11 @@ "arguments": [ { "argumentTypes": null, - "id": 750, + "id": 734, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "9628:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5277,11 +5277,11 @@ }, { "argumentTypes": null, - "id": 751, + "id": 735, "name": "normalizedWeight", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 698, + "referencedDeclaration": 682, "src": "9634:16:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5300,18 +5300,18 @@ "typeString": "uint256" } ], - "id": 749, + "id": 733, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "9623:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 752, + "id": 736, "isConstant": false, "isLValue": false, "isPure": false, @@ -5327,11 +5327,11 @@ }, { "argumentTypes": null, - "id": 753, + "id": 737, "name": "swapFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 692, + "referencedDeclaration": 676, "src": "9653:7:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5350,18 +5350,18 @@ "typeString": "uint256" } ], - "id": 748, + "id": 732, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "9618:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 754, + "id": 738, "isConstant": false, "isLValue": false, "isPure": false, @@ -5381,18 +5381,18 @@ { "expression": { "argumentTypes": null, - "id": 764, + "id": 748, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 756, + "id": 740, "name": "tokenAmountIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 695, + "referencedDeclaration": 679, "src": "9671:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5406,11 +5406,11 @@ "arguments": [ { "argumentTypes": null, - "id": 758, + "id": 742, "name": "tokenAmountInAfterFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 740, + "referencedDeclaration": 724, "src": "9692:21:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5422,11 +5422,11 @@ "arguments": [ { "argumentTypes": null, - "id": 760, + "id": 744, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "9720:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5435,11 +5435,11 @@ }, { "argumentTypes": null, - "id": 761, + "id": 745, "name": "zar", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 747, + "referencedDeclaration": 731, "src": "9726:3:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5458,18 +5458,18 @@ "typeString": "uint256" } ], - "id": 759, + "id": 743, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "9715:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 762, + "id": 746, "isConstant": false, "isLValue": false, "isPure": false, @@ -5495,18 +5495,18 @@ "typeString": "uint256" } ], - "id": 757, + "id": 741, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "9687:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 763, + "id": 747, "isConstant": false, "isLValue": false, "isPure": false, @@ -5526,48 +5526,48 @@ "typeString": "uint256" } }, - "id": 765, + "id": 749, "nodeType": "ExpressionStatement", "src": "9671:60:4" }, { "expression": { "argumentTypes": null, - "id": 766, + "id": 750, "name": "tokenAmountIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 695, + "referencedDeclaration": 679, "src": "9748:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 696, - "id": 767, + "functionReturnParameters": 680, + "id": 751, "nodeType": "Return", "src": "9741:20:4" } ] }, "documentation": "********************************************************************************************\n// calcSingleInGivenPoolOut //\n// tAi = tokenAmountIn //(pS + pAo)\\ / 1 \\\\ //\n// pS = poolSupply || --------- | ^ | --------- || * bI - bI //\n// pAo = poolAmountOut \\\\ pS / \\(wI / tW)// //\n// bI = balanceIn tAi = -------------------------------------------- //\n// wI = weightIn / wI \\ //\n// tW = totalWeight | 1 - ---- | * sF //\n// sF = swapFee \\ tW / //*********************************************************************************************", - "id": 769, + "id": 753, "implemented": true, "kind": "function", "modifiers": [], "name": "calcSingleInGivenPoolOut", "nodeType": "FunctionDefinition", "parameters": { - "id": 693, + "id": 677, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 682, + "id": 666, "name": "tokenBalanceIn", "nodeType": "VariableDeclaration", - "scope": 769, + "scope": 753, "src": "8644:19:4", "stateVariable": false, "storageLocation": "default", @@ -5576,7 +5576,7 @@ "typeString": "uint256" }, "typeName": { - "id": 681, + "id": 665, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8644:4:4", @@ -5590,10 +5590,10 @@ }, { "constant": false, - "id": 684, + "id": 668, "name": "tokenWeightIn", "nodeType": "VariableDeclaration", - "scope": 769, + "scope": 753, "src": "8673:18:4", "stateVariable": false, "storageLocation": "default", @@ -5602,7 +5602,7 @@ "typeString": "uint256" }, "typeName": { - "id": 683, + "id": 667, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8673:4:4", @@ -5616,10 +5616,10 @@ }, { "constant": false, - "id": 686, + "id": 670, "name": "poolSupply", "nodeType": "VariableDeclaration", - "scope": 769, + "scope": 753, "src": "8701:15:4", "stateVariable": false, "storageLocation": "default", @@ -5628,7 +5628,7 @@ "typeString": "uint256" }, "typeName": { - "id": 685, + "id": 669, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8701:4:4", @@ -5642,10 +5642,10 @@ }, { "constant": false, - "id": 688, + "id": 672, "name": "totalWeight", "nodeType": "VariableDeclaration", - "scope": 769, + "scope": 753, "src": "8726:16:4", "stateVariable": false, "storageLocation": "default", @@ -5654,7 +5654,7 @@ "typeString": "uint256" }, "typeName": { - "id": 687, + "id": 671, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8726:4:4", @@ -5668,10 +5668,10 @@ }, { "constant": false, - "id": 690, + "id": 674, "name": "poolAmountOut", "nodeType": "VariableDeclaration", - "scope": 769, + "scope": 753, "src": "8752:18:4", "stateVariable": false, "storageLocation": "default", @@ -5680,7 +5680,7 @@ "typeString": "uint256" }, "typeName": { - "id": 689, + "id": 673, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8752:4:4", @@ -5694,10 +5694,10 @@ }, { "constant": false, - "id": 692, + "id": 676, "name": "swapFee", "nodeType": "VariableDeclaration", - "scope": 769, + "scope": 753, "src": "8780:12:4", "stateVariable": false, "storageLocation": "default", @@ -5706,7 +5706,7 @@ "typeString": "uint256" }, "typeName": { - "id": 691, + "id": 675, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8780:4:4", @@ -5722,15 +5722,15 @@ "src": "8634:164:4" }, "returnParameters": { - "id": 696, + "id": 680, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 695, + "id": 679, "name": "tokenAmountIn", "nodeType": "VariableDeclaration", - "scope": 769, + "scope": 753, "src": "8836:18:4", "stateVariable": false, "storageLocation": "default", @@ -5739,7 +5739,7 @@ "typeString": "uint256" }, "typeName": { - "id": 694, + "id": 678, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8836:4:4", @@ -5754,7 +5754,7 @@ ], "src": "8835:20:4" }, - "scope": 961, + "scope": 945, "src": "8601:1167:4", "stateMutability": "pure", "superFunction": null, @@ -5762,21 +5762,21 @@ }, { "body": { - "id": 863, + "id": 847, "nodeType": "Block", "src": "11135:1043:4", "statements": [ { "assignments": [ - 787 + 771 ], "declarations": [ { "constant": false, - "id": 787, + "id": 771, "name": "normalizedWeight", "nodeType": "VariableDeclaration", - "scope": 863, + "scope": 847, "src": "11145:21:4", "stateVariable": false, "storageLocation": "default", @@ -5785,7 +5785,7 @@ "typeString": "uint256" }, "typeName": { - "id": 786, + "id": 770, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11145:4:4", @@ -5798,17 +5798,17 @@ "visibility": "internal" } ], - "id": 792, + "id": 776, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 789, + "id": 773, "name": "tokenWeightOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 773, + "referencedDeclaration": 757, "src": "11174:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5817,11 +5817,11 @@ }, { "argumentTypes": null, - "id": 790, + "id": 774, "name": "totalWeight", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 777, + "referencedDeclaration": 761, "src": "11190:11:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5840,18 +5840,18 @@ "typeString": "uint256" } ], - "id": 788, + "id": 772, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "11169:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 791, + "id": 775, "isConstant": false, "isLValue": false, "isPure": false, @@ -5870,15 +5870,15 @@ }, { "assignments": [ - 794 + 778 ], "declarations": [ { "constant": false, - "id": 794, + "id": 778, "name": "poolAmountInAfterExitFee", "nodeType": "VariableDeclaration", - "scope": 863, + "scope": 847, "src": "11307:29:4", "stateVariable": false, "storageLocation": "default", @@ -5887,7 +5887,7 @@ "typeString": "uint256" }, "typeName": { - "id": 793, + "id": 777, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11307:4:4", @@ -5900,17 +5900,17 @@ "visibility": "internal" } ], - "id": 802, + "id": 786, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 796, + "id": 780, "name": "poolAmountIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 779, + "referencedDeclaration": 763, "src": "11357:12:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5922,11 +5922,11 @@ "arguments": [ { "argumentTypes": null, - "id": 798, + "id": 782, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "11389:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5935,11 +5935,11 @@ }, { "argumentTypes": null, - "id": 799, + "id": 783, "name": "EXIT_FEE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 227, + "referencedDeclaration": 223, "src": "11395:8:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5958,18 +5958,18 @@ "typeString": "uint256" } ], - "id": 797, + "id": 781, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "11384:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 800, + "id": 784, "isConstant": false, "isLValue": false, "isPure": false, @@ -5995,18 +5995,18 @@ "typeString": "uint256" } ], - "id": 795, + "id": 779, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "11339:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 801, + "id": 785, "isConstant": false, "isLValue": false, "isPure": false, @@ -6025,15 +6025,15 @@ }, { "assignments": [ - 804 + 788 ], "declarations": [ { "constant": false, - "id": 804, + "id": 788, "name": "newPoolSupply", "nodeType": "VariableDeclaration", - "scope": 863, + "scope": 847, "src": "11424:18:4", "stateVariable": false, "storageLocation": "default", @@ -6042,7 +6042,7 @@ "typeString": "uint256" }, "typeName": { - "id": 803, + "id": 787, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11424:4:4", @@ -6055,17 +6055,17 @@ "visibility": "internal" } ], - "id": 809, + "id": 793, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 806, + "id": 790, "name": "poolSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 775, + "referencedDeclaration": 759, "src": "11450:10:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6074,11 +6074,11 @@ }, { "argumentTypes": null, - "id": 807, + "id": 791, "name": "poolAmountInAfterExitFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 794, + "referencedDeclaration": 778, "src": "11462:24:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6097,18 +6097,18 @@ "typeString": "uint256" } ], - "id": 805, + "id": 789, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "11445:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 808, + "id": 792, "isConstant": false, "isLValue": false, "isPure": false, @@ -6127,15 +6127,15 @@ }, { "assignments": [ - 811 + 795 ], "declarations": [ { "constant": false, - "id": 811, + "id": 795, "name": "poolRatio", "nodeType": "VariableDeclaration", - "scope": 863, + "scope": 847, "src": "11497:14:4", "stateVariable": false, "storageLocation": "default", @@ -6144,7 +6144,7 @@ "typeString": "uint256" }, "typeName": { - "id": 810, + "id": 794, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11497:4:4", @@ -6157,17 +6157,17 @@ "visibility": "internal" } ], - "id": 816, + "id": 800, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 813, + "id": 797, "name": "newPoolSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 804, + "referencedDeclaration": 788, "src": "11519:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6176,11 +6176,11 @@ }, { "argumentTypes": null, - "id": 814, + "id": 798, "name": "poolSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 775, + "referencedDeclaration": 759, "src": "11534:10:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6199,18 +6199,18 @@ "typeString": "uint256" } ], - "id": 812, + "id": 796, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "11514:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 815, + "id": 799, "isConstant": false, "isLValue": false, "isPure": false, @@ -6229,15 +6229,15 @@ }, { "assignments": [ - 818 + 802 ], "declarations": [ { "constant": false, - "id": 818, + "id": 802, "name": "tokenOutRatio", "nodeType": "VariableDeclaration", - "scope": 863, + "scope": 847, "src": "11615:18:4", "stateVariable": false, "storageLocation": "default", @@ -6246,7 +6246,7 @@ "typeString": "uint256" }, "typeName": { - "id": 817, + "id": 801, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11615:4:4", @@ -6259,17 +6259,17 @@ "visibility": "internal" } ], - "id": 826, + "id": 810, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 820, + "id": 804, "name": "poolRatio", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 811, + "referencedDeclaration": 795, "src": "11641:9:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6281,11 +6281,11 @@ "arguments": [ { "argumentTypes": null, - "id": 822, + "id": 806, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "11657:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6294,11 +6294,11 @@ }, { "argumentTypes": null, - "id": 823, + "id": 807, "name": "normalizedWeight", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 787, + "referencedDeclaration": 771, "src": "11663:16:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6317,18 +6317,18 @@ "typeString": "uint256" } ], - "id": 821, + "id": 805, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "11652:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 824, + "id": 808, "isConstant": false, "isLValue": false, "isPure": false, @@ -6354,18 +6354,18 @@ "typeString": "uint256" } ], - "id": 819, + "id": 803, "name": "bpow", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1314, + "referencedDeclaration": 1298, "src": "11636:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 825, + "id": 809, "isConstant": false, "isLValue": false, "isPure": false, @@ -6384,15 +6384,15 @@ }, { "assignments": [ - 828 + 812 ], "declarations": [ { "constant": false, - "id": 828, + "id": 812, "name": "newTokenBalanceOut", "nodeType": "VariableDeclaration", - "scope": 863, + "scope": 847, "src": "11691:23:4", "stateVariable": false, "storageLocation": "default", @@ -6401,7 +6401,7 @@ "typeString": "uint256" }, "typeName": { - "id": 827, + "id": 811, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11691:4:4", @@ -6414,17 +6414,17 @@ "visibility": "internal" } ], - "id": 833, + "id": 817, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 830, + "id": 814, "name": "tokenOutRatio", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 818, + "referencedDeclaration": 802, "src": "11722:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6433,11 +6433,11 @@ }, { "argumentTypes": null, - "id": 831, + "id": 815, "name": "tokenBalanceOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 771, + "referencedDeclaration": 755, "src": "11737:15:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6456,18 +6456,18 @@ "typeString": "uint256" } ], - "id": 829, + "id": 813, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "11717:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 832, + "id": 816, "isConstant": false, "isLValue": false, "isPure": false, @@ -6486,15 +6486,15 @@ }, { "assignments": [ - 835 + 819 ], "declarations": [ { "constant": false, - "id": 835, + "id": 819, "name": "tokenAmountOutBeforeSwapFee", "nodeType": "VariableDeclaration", - "scope": 863, + "scope": 847, "src": "11764:32:4", "stateVariable": false, "storageLocation": "default", @@ -6503,7 +6503,7 @@ "typeString": "uint256" }, "typeName": { - "id": 834, + "id": 818, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11764:4:4", @@ -6516,17 +6516,17 @@ "visibility": "internal" } ], - "id": 840, + "id": 824, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 837, + "id": 821, "name": "tokenBalanceOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 771, + "referencedDeclaration": 755, "src": "11817:15:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6535,11 +6535,11 @@ }, { "argumentTypes": null, - "id": 838, + "id": 822, "name": "newTokenBalanceOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 828, + "referencedDeclaration": 812, "src": "11847:18:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6558,18 +6558,18 @@ "typeString": "uint256" } ], - "id": 836, + "id": 820, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "11799:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 839, + "id": 823, "isConstant": false, "isLValue": false, "isPure": false, @@ -6588,15 +6588,15 @@ }, { "assignments": [ - 842 + 826 ], "declarations": [ { "constant": false, - "id": 842, + "id": 826, "name": "zaz", "nodeType": "VariableDeclaration", - "scope": 863, + "scope": 847, "src": "12008:8:4", "stateVariable": false, "storageLocation": "default", @@ -6605,7 +6605,7 @@ "typeString": "uint256" }, "typeName": { - "id": 841, + "id": 825, "name": "uint", "nodeType": "ElementaryTypeName", "src": "12008:4:4", @@ -6618,7 +6618,7 @@ "visibility": "internal" } ], - "id": 850, + "id": 834, "initialValue": { "argumentTypes": null, "arguments": [ @@ -6627,11 +6627,11 @@ "arguments": [ { "argumentTypes": null, - "id": 845, + "id": 829, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "12029:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6640,11 +6640,11 @@ }, { "argumentTypes": null, - "id": 846, + "id": 830, "name": "normalizedWeight", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 787, + "referencedDeclaration": 771, "src": "12035:16:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6663,18 +6663,18 @@ "typeString": "uint256" } ], - "id": 844, + "id": 828, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "12024:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 847, + "id": 831, "isConstant": false, "isLValue": false, "isPure": false, @@ -6690,11 +6690,11 @@ }, { "argumentTypes": null, - "id": 848, + "id": 832, "name": "swapFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 781, + "referencedDeclaration": 765, "src": "12054:7:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6713,18 +6713,18 @@ "typeString": "uint256" } ], - "id": 843, + "id": 827, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "12019:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 849, + "id": 833, "isConstant": false, "isLValue": false, "isPure": false, @@ -6744,18 +6744,18 @@ { "expression": { "argumentTypes": null, - "id": 859, + "id": 843, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 851, + "id": 835, "name": "tokenAmountOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 784, + "referencedDeclaration": 768, "src": "12073:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6769,11 +6769,11 @@ "arguments": [ { "argumentTypes": null, - "id": 853, + "id": 837, "name": "tokenAmountOutBeforeSwapFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 835, + "referencedDeclaration": 819, "src": "12095:27:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6785,11 +6785,11 @@ "arguments": [ { "argumentTypes": null, - "id": 855, + "id": 839, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "12129:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6798,11 +6798,11 @@ }, { "argumentTypes": null, - "id": 856, + "id": 840, "name": "zaz", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 842, + "referencedDeclaration": 826, "src": "12135:3:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6821,18 +6821,18 @@ "typeString": "uint256" } ], - "id": 854, + "id": 838, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "12124:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 857, + "id": 841, "isConstant": false, "isLValue": false, "isPure": false, @@ -6858,18 +6858,18 @@ "typeString": "uint256" } ], - "id": 852, + "id": 836, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "12090:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 858, + "id": 842, "isConstant": false, "isLValue": false, "isPure": false, @@ -6889,48 +6889,48 @@ "typeString": "uint256" } }, - "id": 860, + "id": 844, "nodeType": "ExpressionStatement", "src": "12073:67:4" }, { "expression": { "argumentTypes": null, - "id": 861, + "id": 845, "name": "tokenAmountOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 784, + "referencedDeclaration": 768, "src": "12157:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 785, - "id": 862, + "functionReturnParameters": 769, + "id": 846, "nodeType": "Return", "src": "12150:21:4" } ] }, "documentation": "********************************************************************************************\n// calcSingleOutGivenPoolIn //\n// tAo = tokenAmountOut / / \\\\ //\n// bO = tokenBalanceOut / // pS - (pAi * (1 - eF)) \\ / 1 \\ \\\\ //\n// pAi = poolAmountIn | bO - || ----------------------- | ^ | --------- | * b0 || //\n// ps = poolSupply \\ \\\\ pS / \\(wO / tW)/ // //\n// wI = tokenWeightIn tAo = \\ \\ // //\n// tW = totalWeight / / wO \\ \\ //\n// sF = swapFee * | 1 - | 1 - ---- | * sF | //\n// eF = exitFee \\ \\ tW / / //*********************************************************************************************", - "id": 864, + "id": 848, "implemented": true, "kind": "function", "modifiers": [], "name": "calcSingleOutGivenPoolIn", "nodeType": "FunctionDefinition", "parameters": { - "id": 782, + "id": 766, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 771, + "id": 755, "name": "tokenBalanceOut", "nodeType": "VariableDeclaration", - "scope": 864, + "scope": 848, "src": "10917:20:4", "stateVariable": false, "storageLocation": "default", @@ -6939,7 +6939,7 @@ "typeString": "uint256" }, "typeName": { - "id": 770, + "id": 754, "name": "uint", "nodeType": "ElementaryTypeName", "src": "10917:4:4", @@ -6953,10 +6953,10 @@ }, { "constant": false, - "id": 773, + "id": 757, "name": "tokenWeightOut", "nodeType": "VariableDeclaration", - "scope": 864, + "scope": 848, "src": "10947:19:4", "stateVariable": false, "storageLocation": "default", @@ -6965,7 +6965,7 @@ "typeString": "uint256" }, "typeName": { - "id": 772, + "id": 756, "name": "uint", "nodeType": "ElementaryTypeName", "src": "10947:4:4", @@ -6979,10 +6979,10 @@ }, { "constant": false, - "id": 775, + "id": 759, "name": "poolSupply", "nodeType": "VariableDeclaration", - "scope": 864, + "scope": 848, "src": "10976:15:4", "stateVariable": false, "storageLocation": "default", @@ -6991,7 +6991,7 @@ "typeString": "uint256" }, "typeName": { - "id": 774, + "id": 758, "name": "uint", "nodeType": "ElementaryTypeName", "src": "10976:4:4", @@ -7005,10 +7005,10 @@ }, { "constant": false, - "id": 777, + "id": 761, "name": "totalWeight", "nodeType": "VariableDeclaration", - "scope": 864, + "scope": 848, "src": "11001:16:4", "stateVariable": false, "storageLocation": "default", @@ -7017,7 +7017,7 @@ "typeString": "uint256" }, "typeName": { - "id": 776, + "id": 760, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11001:4:4", @@ -7031,10 +7031,10 @@ }, { "constant": false, - "id": 779, + "id": 763, "name": "poolAmountIn", "nodeType": "VariableDeclaration", - "scope": 864, + "scope": 848, "src": "11027:17:4", "stateVariable": false, "storageLocation": "default", @@ -7043,7 +7043,7 @@ "typeString": "uint256" }, "typeName": { - "id": 778, + "id": 762, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11027:4:4", @@ -7057,10 +7057,10 @@ }, { "constant": false, - "id": 781, + "id": 765, "name": "swapFee", "nodeType": "VariableDeclaration", - "scope": 864, + "scope": 848, "src": "11054:12:4", "stateVariable": false, "storageLocation": "default", @@ -7069,7 +7069,7 @@ "typeString": "uint256" }, "typeName": { - "id": 780, + "id": 764, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11054:4:4", @@ -7085,15 +7085,15 @@ "src": "10907:165:4" }, "returnParameters": { - "id": 785, + "id": 769, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 784, + "id": 768, "name": "tokenAmountOut", "nodeType": "VariableDeclaration", - "scope": 864, + "scope": 848, "src": "11110:19:4", "stateVariable": false, "storageLocation": "default", @@ -7102,7 +7102,7 @@ "typeString": "uint256" }, "typeName": { - "id": 783, + "id": 767, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11110:4:4", @@ -7117,7 +7117,7 @@ ], "src": "11109:21:4" }, - "scope": 961, + "scope": 945, "src": "10874:1304:4", "stateMutability": "pure", "superFunction": null, @@ -7125,21 +7125,21 @@ }, { "body": { - "id": 959, + "id": 943, "nodeType": "Block", "src": "13545:1063:4", "statements": [ { "assignments": [ - 882 + 866 ], "declarations": [ { "constant": false, - "id": 882, + "id": 866, "name": "normalizedWeight", "nodeType": "VariableDeclaration", - "scope": 959, + "scope": 943, "src": "13609:21:4", "stateVariable": false, "storageLocation": "default", @@ -7148,7 +7148,7 @@ "typeString": "uint256" }, "typeName": { - "id": 881, + "id": 865, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13609:4:4", @@ -7161,17 +7161,17 @@ "visibility": "internal" } ], - "id": 887, + "id": 871, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 884, + "id": 868, "name": "tokenWeightOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 868, + "referencedDeclaration": 852, "src": "13638:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7180,11 +7180,11 @@ }, { "argumentTypes": null, - "id": 885, + "id": 869, "name": "totalWeight", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 872, + "referencedDeclaration": 856, "src": "13654:11:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7203,18 +7203,18 @@ "typeString": "uint256" } ], - "id": 883, + "id": 867, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "13633:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 886, + "id": 870, "isConstant": false, "isLValue": false, "isPure": false, @@ -7233,15 +7233,15 @@ }, { "assignments": [ - 889 + 873 ], "declarations": [ { "constant": false, - "id": 889, + "id": 873, "name": "zoo", "nodeType": "VariableDeclaration", - "scope": 959, + "scope": 943, "src": "13747:8:4", "stateVariable": false, "storageLocation": "default", @@ -7250,7 +7250,7 @@ "typeString": "uint256" }, "typeName": { - "id": 888, + "id": 872, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13747:4:4", @@ -7263,17 +7263,17 @@ "visibility": "internal" } ], - "id": 894, + "id": 878, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 891, + "id": 875, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "13763:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7282,11 +7282,11 @@ }, { "argumentTypes": null, - "id": 892, + "id": 876, "name": "normalizedWeight", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 882, + "referencedDeclaration": 866, "src": "13769:16:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7305,18 +7305,18 @@ "typeString": "uint256" } ], - "id": 890, + "id": 874, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "13758:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 893, + "id": 877, "isConstant": false, "isLValue": false, "isPure": false, @@ -7335,15 +7335,15 @@ }, { "assignments": [ - 896 + 880 ], "declarations": [ { "constant": false, - "id": 896, + "id": 880, "name": "zar", "nodeType": "VariableDeclaration", - "scope": 959, + "scope": 943, "src": "13796:8:4", "stateVariable": false, "storageLocation": "default", @@ -7352,7 +7352,7 @@ "typeString": "uint256" }, "typeName": { - "id": 895, + "id": 879, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13796:4:4", @@ -7365,17 +7365,17 @@ "visibility": "internal" } ], - "id": 901, + "id": 885, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 898, + "id": 882, "name": "zoo", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 889, + "referencedDeclaration": 873, "src": "13812:3:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7384,11 +7384,11 @@ }, { "argumentTypes": null, - "id": 899, + "id": 883, "name": "swapFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 876, + "referencedDeclaration": 860, "src": "13817:7:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7407,18 +7407,18 @@ "typeString": "uint256" } ], - "id": 897, + "id": 881, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "13807:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 900, + "id": 884, "isConstant": false, "isLValue": false, "isPure": false, @@ -7437,15 +7437,15 @@ }, { "assignments": [ - 903 + 887 ], "declarations": [ { "constant": false, - "id": 903, + "id": 887, "name": "tokenAmountOutBeforeSwapFee", "nodeType": "VariableDeclaration", - "scope": 959, + "scope": 943, "src": "13836:32:4", "stateVariable": false, "storageLocation": "default", @@ -7454,7 +7454,7 @@ "typeString": "uint256" }, "typeName": { - "id": 902, + "id": 886, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13836:4:4", @@ -7467,17 +7467,17 @@ "visibility": "internal" } ], - "id": 911, + "id": 895, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 905, + "id": 889, "name": "tokenAmountOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 874, + "referencedDeclaration": 858, "src": "13889:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7489,11 +7489,11 @@ "arguments": [ { "argumentTypes": null, - "id": 907, + "id": 891, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "13923:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7502,11 +7502,11 @@ }, { "argumentTypes": null, - "id": 908, + "id": 892, "name": "zar", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 896, + "referencedDeclaration": 880, "src": "13929:3:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7525,18 +7525,18 @@ "typeString": "uint256" } ], - "id": 906, + "id": 890, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "13918:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 909, + "id": 893, "isConstant": false, "isLValue": false, "isPure": false, @@ -7562,18 +7562,18 @@ "typeString": "uint256" } ], - "id": 904, + "id": 888, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "13871:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 910, + "id": 894, "isConstant": false, "isLValue": false, "isPure": false, @@ -7592,15 +7592,15 @@ }, { "assignments": [ - 913 + 897 ], "declarations": [ { "constant": false, - "id": 913, + "id": 897, "name": "newTokenBalanceOut", "nodeType": "VariableDeclaration", - "scope": 959, + "scope": 943, "src": "13954:23:4", "stateVariable": false, "storageLocation": "default", @@ -7609,7 +7609,7 @@ "typeString": "uint256" }, "typeName": { - "id": 912, + "id": 896, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13954:4:4", @@ -7622,17 +7622,17 @@ "visibility": "internal" } ], - "id": 918, + "id": 902, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 915, + "id": 899, "name": "tokenBalanceOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 866, + "referencedDeclaration": 850, "src": "13998:15:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7641,11 +7641,11 @@ }, { "argumentTypes": null, - "id": 916, + "id": 900, "name": "tokenAmountOutBeforeSwapFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 903, + "referencedDeclaration": 887, "src": "14028:27:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7664,18 +7664,18 @@ "typeString": "uint256" } ], - "id": 914, + "id": 898, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "13980:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 917, + "id": 901, "isConstant": false, "isLValue": false, "isPure": false, @@ -7694,15 +7694,15 @@ }, { "assignments": [ - 920 + 904 ], "declarations": [ { "constant": false, - "id": 920, + "id": 904, "name": "tokenOutRatio", "nodeType": "VariableDeclaration", - "scope": 959, + "scope": 943, "src": "14075:18:4", "stateVariable": false, "storageLocation": "default", @@ -7711,7 +7711,7 @@ "typeString": "uint256" }, "typeName": { - "id": 919, + "id": 903, "name": "uint", "nodeType": "ElementaryTypeName", "src": "14075:4:4", @@ -7724,17 +7724,17 @@ "visibility": "internal" } ], - "id": 925, + "id": 909, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 922, + "id": 906, "name": "newTokenBalanceOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 913, + "referencedDeclaration": 897, "src": "14101:18:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7743,11 +7743,11 @@ }, { "argumentTypes": null, - "id": 923, + "id": 907, "name": "tokenBalanceOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 866, + "referencedDeclaration": 850, "src": "14121:15:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7766,18 +7766,18 @@ "typeString": "uint256" } ], - "id": 921, + "id": 905, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "14096:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 924, + "id": 908, "isConstant": false, "isLValue": false, "isPure": false, @@ -7796,15 +7796,15 @@ }, { "assignments": [ - 927 + 911 ], "declarations": [ { "constant": false, - "id": 927, + "id": 911, "name": "poolRatio", "nodeType": "VariableDeclaration", - "scope": 959, + "scope": 943, "src": "14214:14:4", "stateVariable": false, "storageLocation": "default", @@ -7813,7 +7813,7 @@ "typeString": "uint256" }, "typeName": { - "id": 926, + "id": 910, "name": "uint", "nodeType": "ElementaryTypeName", "src": "14214:4:4", @@ -7826,17 +7826,17 @@ "visibility": "internal" } ], - "id": 932, + "id": 916, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 929, + "id": 913, "name": "tokenOutRatio", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 920, + "referencedDeclaration": 904, "src": "14236:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7845,11 +7845,11 @@ }, { "argumentTypes": null, - "id": 930, + "id": 914, "name": "normalizedWeight", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 882, + "referencedDeclaration": 866, "src": "14251:16:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7868,18 +7868,18 @@ "typeString": "uint256" } ], - "id": 928, + "id": 912, "name": "bpow", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1314, + "referencedDeclaration": 1298, "src": "14231:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 931, + "id": 915, "isConstant": false, "isLValue": false, "isPure": false, @@ -7898,15 +7898,15 @@ }, { "assignments": [ - 934 + 918 ], "declarations": [ { "constant": false, - "id": 934, + "id": 918, "name": "newPoolSupply", "nodeType": "VariableDeclaration", - "scope": 959, + "scope": 943, "src": "14278:18:4", "stateVariable": false, "storageLocation": "default", @@ -7915,7 +7915,7 @@ "typeString": "uint256" }, "typeName": { - "id": 933, + "id": 917, "name": "uint", "nodeType": "ElementaryTypeName", "src": "14278:4:4", @@ -7928,17 +7928,17 @@ "visibility": "internal" } ], - "id": 939, + "id": 923, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 936, + "id": 920, "name": "poolRatio", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 927, + "referencedDeclaration": 911, "src": "14304:9:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7947,11 +7947,11 @@ }, { "argumentTypes": null, - "id": 937, + "id": 921, "name": "poolSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 870, + "referencedDeclaration": 854, "src": "14315:10:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7970,18 +7970,18 @@ "typeString": "uint256" } ], - "id": 935, + "id": 919, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "14299:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 938, + "id": 922, "isConstant": false, "isLValue": false, "isPure": false, @@ -8000,15 +8000,15 @@ }, { "assignments": [ - 941 + 925 ], "declarations": [ { "constant": false, - "id": 941, + "id": 925, "name": "poolAmountInAfterExitFee", "nodeType": "VariableDeclaration", - "scope": 959, + "scope": 943, "src": "14336:29:4", "stateVariable": false, "storageLocation": "default", @@ -8017,7 +8017,7 @@ "typeString": "uint256" }, "typeName": { - "id": 940, + "id": 924, "name": "uint", "nodeType": "ElementaryTypeName", "src": "14336:4:4", @@ -8030,17 +8030,17 @@ "visibility": "internal" } ], - "id": 946, + "id": 930, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 943, + "id": 927, "name": "poolSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 870, + "referencedDeclaration": 854, "src": "14373:10:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8049,11 +8049,11 @@ }, { "argumentTypes": null, - "id": 944, + "id": 928, "name": "newPoolSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 934, + "referencedDeclaration": 918, "src": "14385:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8072,18 +8072,18 @@ "typeString": "uint256" } ], - "id": 942, + "id": 926, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "14368:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 945, + "id": 929, "isConstant": false, "isLValue": false, "isPure": false, @@ -8103,18 +8103,18 @@ { "expression": { "argumentTypes": null, - "id": 955, + "id": 939, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 947, + "id": 931, "name": "poolAmountIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 879, + "referencedDeclaration": 863, "src": "14505:12:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8128,11 +8128,11 @@ "arguments": [ { "argumentTypes": null, - "id": 949, + "id": 933, "name": "poolAmountInAfterExitFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 941, + "referencedDeclaration": 925, "src": "14525:24:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8144,11 +8144,11 @@ "arguments": [ { "argumentTypes": null, - "id": 951, + "id": 935, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "14556:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8157,11 +8157,11 @@ }, { "argumentTypes": null, - "id": 952, + "id": 936, "name": "EXIT_FEE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 227, + "referencedDeclaration": 223, "src": "14562:8:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8180,18 +8180,18 @@ "typeString": "uint256" } ], - "id": 950, + "id": 934, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "14551:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 953, + "id": 937, "isConstant": false, "isLValue": false, "isPure": false, @@ -8217,18 +8217,18 @@ "typeString": "uint256" } ], - "id": 948, + "id": 932, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "14520:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 954, + "id": 938, "isConstant": false, "isLValue": false, "isPure": false, @@ -8248,48 +8248,48 @@ "typeString": "uint256" } }, - "id": 956, + "id": 940, "nodeType": "ExpressionStatement", "src": "14505:67:4" }, { "expression": { "argumentTypes": null, - "id": 957, + "id": 941, "name": "poolAmountIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 879, + "referencedDeclaration": 863, "src": "14589:12:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 880, - "id": 958, + "functionReturnParameters": 864, + "id": 942, "nodeType": "Return", "src": "14582:19:4" } ] }, "documentation": "********************************************************************************************\n// calcPoolInGivenSingleOut //\n// pAi = poolAmountIn // / tAo \\\\ / wO \\ \\ //\n// bO = tokenBalanceOut // | bO - -------------------------- |\\ | ---- | \\ //\n// tAo = tokenAmountOut pS - || \\ 1 - ((1 - (tO / tW)) * sF)/ | ^ \\ tW / * pS | //\n// ps = poolSupply \\\\ -----------------------------------/ / //\n// wO = tokenWeightOut pAi = \\\\ bO / / //\n// tW = totalWeight ------------------------------------------------------------- //\n// sF = swapFee ( 1 - eF ) //\n// eF = exitFee //*********************************************************************************************", - "id": 960, + "id": 944, "implemented": true, "kind": "function", "modifiers": [], "name": "calcPoolInGivenSingleOut", "nodeType": "FunctionDefinition", "parameters": { - "id": 877, + "id": 861, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 866, + "id": 850, "name": "tokenBalanceOut", "nodeType": "VariableDeclaration", - "scope": 960, + "scope": 944, "src": "13327:20:4", "stateVariable": false, "storageLocation": "default", @@ -8298,7 +8298,7 @@ "typeString": "uint256" }, "typeName": { - "id": 865, + "id": 849, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13327:4:4", @@ -8312,10 +8312,10 @@ }, { "constant": false, - "id": 868, + "id": 852, "name": "tokenWeightOut", "nodeType": "VariableDeclaration", - "scope": 960, + "scope": 944, "src": "13357:19:4", "stateVariable": false, "storageLocation": "default", @@ -8324,7 +8324,7 @@ "typeString": "uint256" }, "typeName": { - "id": 867, + "id": 851, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13357:4:4", @@ -8338,10 +8338,10 @@ }, { "constant": false, - "id": 870, + "id": 854, "name": "poolSupply", "nodeType": "VariableDeclaration", - "scope": 960, + "scope": 944, "src": "13386:15:4", "stateVariable": false, "storageLocation": "default", @@ -8350,7 +8350,7 @@ "typeString": "uint256" }, "typeName": { - "id": 869, + "id": 853, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13386:4:4", @@ -8364,10 +8364,10 @@ }, { "constant": false, - "id": 872, + "id": 856, "name": "totalWeight", "nodeType": "VariableDeclaration", - "scope": 960, + "scope": 944, "src": "13411:16:4", "stateVariable": false, "storageLocation": "default", @@ -8376,7 +8376,7 @@ "typeString": "uint256" }, "typeName": { - "id": 871, + "id": 855, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13411:4:4", @@ -8390,10 +8390,10 @@ }, { "constant": false, - "id": 874, + "id": 858, "name": "tokenAmountOut", "nodeType": "VariableDeclaration", - "scope": 960, + "scope": 944, "src": "13437:19:4", "stateVariable": false, "storageLocation": "default", @@ -8402,7 +8402,7 @@ "typeString": "uint256" }, "typeName": { - "id": 873, + "id": 857, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13437:4:4", @@ -8416,10 +8416,10 @@ }, { "constant": false, - "id": 876, + "id": 860, "name": "swapFee", "nodeType": "VariableDeclaration", - "scope": 960, + "scope": 944, "src": "13466:12:4", "stateVariable": false, "storageLocation": "default", @@ -8428,7 +8428,7 @@ "typeString": "uint256" }, "typeName": { - "id": 875, + "id": 859, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13466:4:4", @@ -8444,15 +8444,15 @@ "src": "13317:167:4" }, "returnParameters": { - "id": 880, + "id": 864, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 879, + "id": 863, "name": "poolAmountIn", "nodeType": "VariableDeclaration", - "scope": 960, + "scope": 944, "src": "13522:17:4", "stateVariable": false, "storageLocation": "default", @@ -8461,7 +8461,7 @@ "typeString": "uint256" }, "typeName": { - "id": 878, + "id": 862, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13522:4:4", @@ -8476,14 +8476,14 @@ ], "src": "13521:19:4" }, - "scope": 961, + "scope": 945, "src": "13284:1324:4", "stateMutability": "pure", "superFunction": null, "visibility": "public" } ], - "scope": 962, + "scope": 946, "src": "689:13923:4" } ], @@ -8493,14 +8493,14 @@ "absolutePath": "/ocean/ocean-contracts/contracts/balancer/BMath.sol", "exportedSymbols": { "BMath": [ - 961 + 945 ] }, - "id": 962, + "id": 946, "nodeType": "SourceUnit", "nodes": [ { - "id": 394, + "id": 378, "literals": [ "solidity", "0.5", @@ -8512,10 +8512,10 @@ { "absolutePath": "/ocean/ocean-contracts/contracts/balancer/BNum.sol", "file": "./BNum.sol", - "id": 395, + "id": 379, "nodeType": "ImportDirective", - "scope": 962, - "sourceUnit": 1439, + "scope": 946, + "sourceUnit": 1423, "src": "667:20:4", "symbolAliases": [], "unitAlias": "" @@ -8526,17 +8526,17 @@ "arguments": null, "baseName": { "contractScope": null, - "id": 396, + "id": 380, "name": "BConst", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 284, + "referencedDeclaration": 280, "src": "707:6:4", "typeDescriptions": { - "typeIdentifier": "t_contract$_BConst_$284", + "typeIdentifier": "t_contract$_BConst_$280", "typeString": "contract BConst" } }, - "id": 397, + "id": 381, "nodeType": "InheritanceSpecifier", "src": "707:6:4" }, @@ -8544,54 +8544,54 @@ "arguments": null, "baseName": { "contractScope": null, - "id": 398, + "id": 382, "name": "BNum", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 1438, + "referencedDeclaration": 1422, "src": "715:4:4", "typeDescriptions": { - "typeIdentifier": "t_contract$_BNum_$1438", + "typeIdentifier": "t_contract$_BNum_$1422", "typeString": "contract BNum" } }, - "id": 399, + "id": 383, "nodeType": "InheritanceSpecifier", "src": "715:4:4" } ], "contractDependencies": [ - 284, - 1438 + 280, + 1422 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, - "id": 961, + "id": 945, "linearizedBaseContracts": [ - 961, - 1438, - 284 + 945, + 1422, + 280 ], "name": "BMath", "nodeType": "ContractDefinition", "nodes": [ { "body": { - "id": 453, + "id": 437, "nodeType": "Block", "src": "1850:270:4", "statements": [ { "assignments": [ - 415 + 399 ], "declarations": [ { "constant": false, - "id": 415, + "id": 399, "name": "numer", "nodeType": "VariableDeclaration", - "scope": 453, + "scope": 437, "src": "1860:10:4", "stateVariable": false, "storageLocation": "default", @@ -8600,7 +8600,7 @@ "typeString": "uint256" }, "typeName": { - "id": 414, + "id": 398, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1860:4:4", @@ -8613,17 +8613,17 @@ "visibility": "internal" } ], - "id": 420, + "id": 404, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 417, + "id": 401, "name": "tokenBalanceIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 401, + "referencedDeclaration": 385, "src": "1878:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8632,11 +8632,11 @@ }, { "argumentTypes": null, - "id": 418, + "id": 402, "name": "tokenWeightIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 403, + "referencedDeclaration": 387, "src": "1894:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8655,18 +8655,18 @@ "typeString": "uint256" } ], - "id": 416, + "id": 400, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "1873:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 419, + "id": 403, "isConstant": false, "isLValue": false, "isPure": false, @@ -8685,15 +8685,15 @@ }, { "assignments": [ - 422 + 406 ], "declarations": [ { "constant": false, - "id": 422, + "id": 406, "name": "denom", "nodeType": "VariableDeclaration", - "scope": 453, + "scope": 437, "src": "1918:10:4", "stateVariable": false, "storageLocation": "default", @@ -8702,7 +8702,7 @@ "typeString": "uint256" }, "typeName": { - "id": 421, + "id": 405, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1918:4:4", @@ -8715,17 +8715,17 @@ "visibility": "internal" } ], - "id": 427, + "id": 411, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 424, + "id": 408, "name": "tokenBalanceOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 405, + "referencedDeclaration": 389, "src": "1936:15:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8734,11 +8734,11 @@ }, { "argumentTypes": null, - "id": 425, + "id": 409, "name": "tokenWeightOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 407, + "referencedDeclaration": 391, "src": "1953:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8757,18 +8757,18 @@ "typeString": "uint256" } ], - "id": 423, + "id": 407, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "1931:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 426, + "id": 410, "isConstant": false, "isLValue": false, "isPure": false, @@ -8787,15 +8787,15 @@ }, { "assignments": [ - 429 + 413 ], "declarations": [ { "constant": false, - "id": 429, + "id": 413, "name": "ratio", "nodeType": "VariableDeclaration", - "scope": 453, + "scope": 437, "src": "1978:10:4", "stateVariable": false, "storageLocation": "default", @@ -8804,7 +8804,7 @@ "typeString": "uint256" }, "typeName": { - "id": 428, + "id": 412, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1978:4:4", @@ -8817,17 +8817,17 @@ "visibility": "internal" } ], - "id": 434, + "id": 418, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 431, + "id": 415, "name": "numer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 415, + "referencedDeclaration": 399, "src": "1996:5:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8836,11 +8836,11 @@ }, { "argumentTypes": null, - "id": 432, + "id": 416, "name": "denom", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 422, + "referencedDeclaration": 406, "src": "2003:5:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8859,18 +8859,18 @@ "typeString": "uint256" } ], - "id": 430, + "id": 414, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "1991:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 433, + "id": 417, "isConstant": false, "isLValue": false, "isPure": false, @@ -8889,15 +8889,15 @@ }, { "assignments": [ - 436 + 420 ], "declarations": [ { "constant": false, - "id": 436, + "id": 420, "name": "scale", "nodeType": "VariableDeclaration", - "scope": 453, + "scope": 437, "src": "2019:10:4", "stateVariable": false, "storageLocation": "default", @@ -8906,7 +8906,7 @@ "typeString": "uint256" }, "typeName": { - "id": 435, + "id": 419, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2019:4:4", @@ -8919,17 +8919,17 @@ "visibility": "internal" } ], - "id": 444, + "id": 428, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 438, + "id": 422, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "2037:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8941,11 +8941,11 @@ "arguments": [ { "argumentTypes": null, - "id": 440, + "id": 424, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "2048:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8954,11 +8954,11 @@ }, { "argumentTypes": null, - "id": 441, + "id": 425, "name": "swapFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 409, + "referencedDeclaration": 393, "src": "2054:7:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8977,18 +8977,18 @@ "typeString": "uint256" } ], - "id": 439, + "id": 423, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "2043:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 442, + "id": 426, "isConstant": false, "isLValue": false, "isPure": false, @@ -9014,18 +9014,18 @@ "typeString": "uint256" } ], - "id": 437, + "id": 421, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "2032:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 443, + "id": 427, "isConstant": false, "isLValue": false, "isPure": false, @@ -9048,18 +9048,18 @@ "components": [ { "argumentTypes": null, - "id": 450, + "id": 434, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 445, + "id": 429, "name": "spotPrice", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 412, + "referencedDeclaration": 396, "src": "2082:9:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9073,11 +9073,11 @@ "arguments": [ { "argumentTypes": null, - "id": 447, + "id": 431, "name": "ratio", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 429, + "referencedDeclaration": 413, "src": "2099:5:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9086,11 +9086,11 @@ }, { "argumentTypes": null, - "id": 448, + "id": 432, "name": "scale", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 436, + "referencedDeclaration": 420, "src": "2106:5:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9109,18 +9109,18 @@ "typeString": "uint256" } ], - "id": 446, + "id": 430, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "2094:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 449, + "id": 433, "isConstant": false, "isLValue": false, "isPure": false, @@ -9141,7 +9141,7 @@ } } ], - "id": 451, + "id": 435, "isConstant": false, "isInlineArray": false, "isLValue": false, @@ -9154,30 +9154,30 @@ "typeString": "uint256" } }, - "functionReturnParameters": 413, - "id": 452, + "functionReturnParameters": 397, + "id": 436, "nodeType": "Return", "src": "2073:40:4" } ] }, "documentation": "********************************************************************************************\n// calcSpotPrice //\n// sP = spotPrice //\n// bI = tokenBalanceIn ( bI / wI ) 1 //\n// bO = tokenBalanceOut sP = ----------- * ---------- //\n// wI = tokenWeightIn ( bO / wO ) ( 1 - sF ) //\n// wO = tokenWeightOut //\n// sF = swapFee //*********************************************************************************************", - "id": 454, + "id": 438, "implemented": true, "kind": "function", "modifiers": [], "name": "calcSpotPrice", "nodeType": "FunctionDefinition", "parameters": { - "id": 410, + "id": 394, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 401, + "id": 385, "name": "tokenBalanceIn", "nodeType": "VariableDeclaration", - "scope": 454, + "scope": 438, "src": "1658:19:4", "stateVariable": false, "storageLocation": "default", @@ -9186,7 +9186,7 @@ "typeString": "uint256" }, "typeName": { - "id": 400, + "id": 384, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1658:4:4", @@ -9200,10 +9200,10 @@ }, { "constant": false, - "id": 403, + "id": 387, "name": "tokenWeightIn", "nodeType": "VariableDeclaration", - "scope": 454, + "scope": 438, "src": "1687:18:4", "stateVariable": false, "storageLocation": "default", @@ -9212,7 +9212,7 @@ "typeString": "uint256" }, "typeName": { - "id": 402, + "id": 386, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1687:4:4", @@ -9226,10 +9226,10 @@ }, { "constant": false, - "id": 405, + "id": 389, "name": "tokenBalanceOut", "nodeType": "VariableDeclaration", - "scope": 454, + "scope": 438, "src": "1715:20:4", "stateVariable": false, "storageLocation": "default", @@ -9238,7 +9238,7 @@ "typeString": "uint256" }, "typeName": { - "id": 404, + "id": 388, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1715:4:4", @@ -9252,10 +9252,10 @@ }, { "constant": false, - "id": 407, + "id": 391, "name": "tokenWeightOut", "nodeType": "VariableDeclaration", - "scope": 454, + "scope": 438, "src": "1745:19:4", "stateVariable": false, "storageLocation": "default", @@ -9264,7 +9264,7 @@ "typeString": "uint256" }, "typeName": { - "id": 406, + "id": 390, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1745:4:4", @@ -9278,10 +9278,10 @@ }, { "constant": false, - "id": 409, + "id": 393, "name": "swapFee", "nodeType": "VariableDeclaration", - "scope": 454, + "scope": 438, "src": "1774:12:4", "stateVariable": false, "storageLocation": "default", @@ -9290,7 +9290,7 @@ "typeString": "uint256" }, "typeName": { - "id": 408, + "id": 392, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1774:4:4", @@ -9306,15 +9306,15 @@ "src": "1648:144:4" }, "returnParameters": { - "id": 413, + "id": 397, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 412, + "id": 396, "name": "spotPrice", "nodeType": "VariableDeclaration", - "scope": 454, + "scope": 438, "src": "1830:14:4", "stateVariable": false, "storageLocation": "default", @@ -9323,7 +9323,7 @@ "typeString": "uint256" }, "typeName": { - "id": 411, + "id": 395, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1830:4:4", @@ -9338,7 +9338,7 @@ ], "src": "1829:16:4" }, - "scope": 961, + "scope": 945, "src": "1626:494:4", "stateMutability": "pure", "superFunction": null, @@ -9346,21 +9346,21 @@ }, { "body": { - "id": 525, + "id": 509, "nodeType": "Block", "src": "3384:406:4", "statements": [ { "assignments": [ - 472 + 456 ], "declarations": [ { "constant": false, - "id": 472, + "id": 456, "name": "weightRatio", "nodeType": "VariableDeclaration", - "scope": 525, + "scope": 509, "src": "3394:16:4", "stateVariable": false, "storageLocation": "default", @@ -9369,7 +9369,7 @@ "typeString": "uint256" }, "typeName": { - "id": 471, + "id": 455, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3394:4:4", @@ -9382,17 +9382,17 @@ "visibility": "internal" } ], - "id": 477, + "id": 461, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 474, + "id": 458, "name": "tokenWeightIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 458, + "referencedDeclaration": 442, "src": "3418:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9401,11 +9401,11 @@ }, { "argumentTypes": null, - "id": 475, + "id": 459, "name": "tokenWeightOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 462, + "referencedDeclaration": 446, "src": "3433:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9424,18 +9424,18 @@ "typeString": "uint256" } ], - "id": 473, + "id": 457, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "3413:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 476, + "id": 460, "isConstant": false, "isLValue": false, "isPure": false, @@ -9454,15 +9454,15 @@ }, { "assignments": [ - 479 + 463 ], "declarations": [ { "constant": false, - "id": 479, + "id": 463, "name": "adjustedIn", "nodeType": "VariableDeclaration", - "scope": 525, + "scope": 509, "src": "3458:15:4", "stateVariable": false, "storageLocation": "default", @@ -9471,7 +9471,7 @@ "typeString": "uint256" }, "typeName": { - "id": 478, + "id": 462, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3458:4:4", @@ -9484,17 +9484,17 @@ "visibility": "internal" } ], - "id": 484, + "id": 468, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 481, + "id": 465, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "3481:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9503,11 +9503,11 @@ }, { "argumentTypes": null, - "id": 482, + "id": 466, "name": "swapFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 466, + "referencedDeclaration": 450, "src": "3487:7:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9526,18 +9526,18 @@ "typeString": "uint256" } ], - "id": 480, + "id": 464, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "3476:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 483, + "id": 467, "isConstant": false, "isLValue": false, "isPure": false, @@ -9557,18 +9557,18 @@ { "expression": { "argumentTypes": null, - "id": 490, + "id": 474, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 485, + "id": 469, "name": "adjustedIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 479, + "referencedDeclaration": 463, "src": "3505:10:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9582,11 +9582,11 @@ "arguments": [ { "argumentTypes": null, - "id": 487, + "id": 471, "name": "tokenAmountIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 464, + "referencedDeclaration": 448, "src": "3523:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9595,11 +9595,11 @@ }, { "argumentTypes": null, - "id": 488, + "id": 472, "name": "adjustedIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 479, + "referencedDeclaration": 463, "src": "3538:10:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9618,18 +9618,18 @@ "typeString": "uint256" } ], - "id": 486, + "id": 470, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "3518:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 489, + "id": 473, "isConstant": false, "isLValue": false, "isPure": false, @@ -9649,21 +9649,21 @@ "typeString": "uint256" } }, - "id": 491, + "id": 475, "nodeType": "ExpressionStatement", "src": "3505:44:4" }, { "assignments": [ - 493 + 477 ], "declarations": [ { "constant": false, - "id": 493, + "id": 477, "name": "y", "nodeType": "VariableDeclaration", - "scope": 525, + "scope": 509, "src": "3559:6:4", "stateVariable": false, "storageLocation": "default", @@ -9672,7 +9672,7 @@ "typeString": "uint256" }, "typeName": { - "id": 492, + "id": 476, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3559:4:4", @@ -9685,17 +9685,17 @@ "visibility": "internal" } ], - "id": 501, + "id": 485, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 495, + "id": 479, "name": "tokenBalanceIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 456, + "referencedDeclaration": 440, "src": "3573:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9707,11 +9707,11 @@ "arguments": [ { "argumentTypes": null, - "id": 497, + "id": 481, "name": "tokenBalanceIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 456, + "referencedDeclaration": 440, "src": "3594:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9720,11 +9720,11 @@ }, { "argumentTypes": null, - "id": 498, + "id": 482, "name": "adjustedIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 479, + "referencedDeclaration": 463, "src": "3610:10:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9743,18 +9743,18 @@ "typeString": "uint256" } ], - "id": 496, + "id": 480, "name": "badd", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1017, + "referencedDeclaration": 1001, "src": "3589:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 499, + "id": 483, "isConstant": false, "isLValue": false, "isPure": false, @@ -9780,18 +9780,18 @@ "typeString": "uint256" } ], - "id": 494, + "id": 478, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "3568:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 500, + "id": 484, "isConstant": false, "isLValue": false, "isPure": false, @@ -9810,15 +9810,15 @@ }, { "assignments": [ - 503 + 487 ], "declarations": [ { "constant": false, - "id": 503, + "id": 487, "name": "foo", "nodeType": "VariableDeclaration", - "scope": 525, + "scope": 509, "src": "3632:8:4", "stateVariable": false, "storageLocation": "default", @@ -9827,7 +9827,7 @@ "typeString": "uint256" }, "typeName": { - "id": 502, + "id": 486, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3632:4:4", @@ -9840,17 +9840,17 @@ "visibility": "internal" } ], - "id": 508, + "id": 492, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 505, + "id": 489, "name": "y", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 493, + "referencedDeclaration": 477, "src": "3648:1:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9859,11 +9859,11 @@ }, { "argumentTypes": null, - "id": 506, + "id": 490, "name": "weightRatio", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 472, + "referencedDeclaration": 456, "src": "3651:11:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9882,18 +9882,18 @@ "typeString": "uint256" } ], - "id": 504, + "id": 488, "name": "bpow", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1314, + "referencedDeclaration": 1298, "src": "3643:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 507, + "id": 491, "isConstant": false, "isLValue": false, "isPure": false, @@ -9912,15 +9912,15 @@ }, { "assignments": [ - 510 + 494 ], "declarations": [ { "constant": false, - "id": 510, + "id": 494, "name": "bar", "nodeType": "VariableDeclaration", - "scope": 525, + "scope": 509, "src": "3673:8:4", "stateVariable": false, "storageLocation": "default", @@ -9929,7 +9929,7 @@ "typeString": "uint256" }, "typeName": { - "id": 509, + "id": 493, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3673:4:4", @@ -9942,17 +9942,17 @@ "visibility": "internal" } ], - "id": 515, + "id": 499, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 512, + "id": 496, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "3689:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9961,11 +9961,11 @@ }, { "argumentTypes": null, - "id": 513, + "id": 497, "name": "foo", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 503, + "referencedDeclaration": 487, "src": "3695:3:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9984,18 +9984,18 @@ "typeString": "uint256" } ], - "id": 511, + "id": 495, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "3684:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 514, + "id": 498, "isConstant": false, "isLValue": false, "isPure": false, @@ -10015,18 +10015,18 @@ { "expression": { "argumentTypes": null, - "id": 521, + "id": 505, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 516, + "id": 500, "name": "tokenAmountOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 469, + "referencedDeclaration": 453, "src": "3709:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10040,11 +10040,11 @@ "arguments": [ { "argumentTypes": null, - "id": 518, + "id": 502, "name": "tokenBalanceOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 460, + "referencedDeclaration": 444, "src": "3731:15:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10053,11 +10053,11 @@ }, { "argumentTypes": null, - "id": 519, + "id": 503, "name": "bar", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 510, + "referencedDeclaration": 494, "src": "3748:3:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10076,18 +10076,18 @@ "typeString": "uint256" } ], - "id": 517, + "id": 501, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "3726:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 520, + "id": 504, "isConstant": false, "isLValue": false, "isPure": false, @@ -10107,48 +10107,48 @@ "typeString": "uint256" } }, - "id": 522, + "id": 506, "nodeType": "ExpressionStatement", "src": "3709:43:4" }, { "expression": { "argumentTypes": null, - "id": 523, + "id": 507, "name": "tokenAmountOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 469, + "referencedDeclaration": 453, "src": "3769:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 470, - "id": 524, + "functionReturnParameters": 454, + "id": 508, "nodeType": "Return", "src": "3762:21:4" } ] }, "documentation": "********************************************************************************************\n// calcOutGivenIn //\n// aO = tokenAmountOut //\n// bO = tokenBalanceOut //\n// bI = tokenBalanceIn / / bI \\ (wI / wO) \\ //\n// aI = tokenAmountIn aO = bO * | 1 - | -------------------------- | ^ | //\n// wI = tokenWeightIn \\ \\ ( bI + ( aI * ( 1 - sF )) / / //\n// wO = tokenWeightOut //\n// sF = swapFee //*********************************************************************************************", - "id": 526, + "id": 510, "implemented": true, "kind": "function", "modifiers": [], "name": "calcOutGivenIn", "nodeType": "FunctionDefinition", "parameters": { - "id": 467, + "id": 451, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 456, + "id": 440, "name": "tokenBalanceIn", "nodeType": "VariableDeclaration", - "scope": 526, + "scope": 510, "src": "3159:19:4", "stateVariable": false, "storageLocation": "default", @@ -10157,7 +10157,7 @@ "typeString": "uint256" }, "typeName": { - "id": 455, + "id": 439, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3159:4:4", @@ -10171,10 +10171,10 @@ }, { "constant": false, - "id": 458, + "id": 442, "name": "tokenWeightIn", "nodeType": "VariableDeclaration", - "scope": 526, + "scope": 510, "src": "3188:18:4", "stateVariable": false, "storageLocation": "default", @@ -10183,7 +10183,7 @@ "typeString": "uint256" }, "typeName": { - "id": 457, + "id": 441, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3188:4:4", @@ -10197,10 +10197,10 @@ }, { "constant": false, - "id": 460, + "id": 444, "name": "tokenBalanceOut", "nodeType": "VariableDeclaration", - "scope": 526, + "scope": 510, "src": "3216:20:4", "stateVariable": false, "storageLocation": "default", @@ -10209,7 +10209,7 @@ "typeString": "uint256" }, "typeName": { - "id": 459, + "id": 443, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3216:4:4", @@ -10223,10 +10223,10 @@ }, { "constant": false, - "id": 462, + "id": 446, "name": "tokenWeightOut", "nodeType": "VariableDeclaration", - "scope": 526, + "scope": 510, "src": "3246:19:4", "stateVariable": false, "storageLocation": "default", @@ -10235,7 +10235,7 @@ "typeString": "uint256" }, "typeName": { - "id": 461, + "id": 445, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3246:4:4", @@ -10249,10 +10249,10 @@ }, { "constant": false, - "id": 464, + "id": 448, "name": "tokenAmountIn", "nodeType": "VariableDeclaration", - "scope": 526, + "scope": 510, "src": "3275:18:4", "stateVariable": false, "storageLocation": "default", @@ -10261,7 +10261,7 @@ "typeString": "uint256" }, "typeName": { - "id": 463, + "id": 447, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3275:4:4", @@ -10275,10 +10275,10 @@ }, { "constant": false, - "id": 466, + "id": 450, "name": "swapFee", "nodeType": "VariableDeclaration", - "scope": 526, + "scope": 510, "src": "3303:12:4", "stateVariable": false, "storageLocation": "default", @@ -10287,7 +10287,7 @@ "typeString": "uint256" }, "typeName": { - "id": 465, + "id": 449, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3303:4:4", @@ -10303,15 +10303,15 @@ "src": "3149:172:4" }, "returnParameters": { - "id": 470, + "id": 454, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 469, + "id": 453, "name": "tokenAmountOut", "nodeType": "VariableDeclaration", - "scope": 526, + "scope": 510, "src": "3359:19:4", "stateVariable": false, "storageLocation": "default", @@ -10320,7 +10320,7 @@ "typeString": "uint256" }, "typeName": { - "id": 468, + "id": 452, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3359:4:4", @@ -10335,7 +10335,7 @@ ], "src": "3358:21:4" }, - "scope": 961, + "scope": 945, "src": "3126:664:4", "stateMutability": "pure", "superFunction": null, @@ -10343,21 +10343,21 @@ }, { "body": { - "id": 597, + "id": 581, "nodeType": "Block", "src": "5054:395:4", "statements": [ { "assignments": [ - 544 + 528 ], "declarations": [ { "constant": false, - "id": 544, + "id": 528, "name": "weightRatio", "nodeType": "VariableDeclaration", - "scope": 597, + "scope": 581, "src": "5064:16:4", "stateVariable": false, "storageLocation": "default", @@ -10366,7 +10366,7 @@ "typeString": "uint256" }, "typeName": { - "id": 543, + "id": 527, "name": "uint", "nodeType": "ElementaryTypeName", "src": "5064:4:4", @@ -10379,17 +10379,17 @@ "visibility": "internal" } ], - "id": 549, + "id": 533, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 546, + "id": 530, "name": "tokenWeightOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 534, + "referencedDeclaration": 518, "src": "5088:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10398,11 +10398,11 @@ }, { "argumentTypes": null, - "id": 547, + "id": 531, "name": "tokenWeightIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 530, + "referencedDeclaration": 514, "src": "5104:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10421,18 +10421,18 @@ "typeString": "uint256" } ], - "id": 545, + "id": 529, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "5083:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 548, + "id": 532, "isConstant": false, "isLValue": false, "isPure": false, @@ -10451,15 +10451,15 @@ }, { "assignments": [ - 551 + 535 ], "declarations": [ { "constant": false, - "id": 551, + "id": 535, "name": "diff", "nodeType": "VariableDeclaration", - "scope": 597, + "scope": 581, "src": "5128:9:4", "stateVariable": false, "storageLocation": "default", @@ -10468,7 +10468,7 @@ "typeString": "uint256" }, "typeName": { - "id": 550, + "id": 534, "name": "uint", "nodeType": "ElementaryTypeName", "src": "5128:4:4", @@ -10481,17 +10481,17 @@ "visibility": "internal" } ], - "id": 556, + "id": 540, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 553, + "id": 537, "name": "tokenBalanceOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 532, + "referencedDeclaration": 516, "src": "5145:15:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10500,11 +10500,11 @@ }, { "argumentTypes": null, - "id": 554, + "id": 538, "name": "tokenAmountOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 536, + "referencedDeclaration": 520, "src": "5162:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10523,18 +10523,18 @@ "typeString": "uint256" } ], - "id": 552, + "id": 536, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "5140:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 555, + "id": 539, "isConstant": false, "isLValue": false, "isPure": false, @@ -10553,15 +10553,15 @@ }, { "assignments": [ - 558 + 542 ], "declarations": [ { "constant": false, - "id": 558, + "id": 542, "name": "y", "nodeType": "VariableDeclaration", - "scope": 597, + "scope": 581, "src": "5187:6:4", "stateVariable": false, "storageLocation": "default", @@ -10570,7 +10570,7 @@ "typeString": "uint256" }, "typeName": { - "id": 557, + "id": 541, "name": "uint", "nodeType": "ElementaryTypeName", "src": "5187:4:4", @@ -10583,17 +10583,17 @@ "visibility": "internal" } ], - "id": 563, + "id": 547, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 560, + "id": 544, "name": "tokenBalanceOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 532, + "referencedDeclaration": 516, "src": "5201:15:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10602,11 +10602,11 @@ }, { "argumentTypes": null, - "id": 561, + "id": 545, "name": "diff", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 551, + "referencedDeclaration": 535, "src": "5218:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10625,18 +10625,18 @@ "typeString": "uint256" } ], - "id": 559, + "id": 543, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "5196:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 562, + "id": 546, "isConstant": false, "isLValue": false, "isPure": false, @@ -10655,15 +10655,15 @@ }, { "assignments": [ - 565 + 549 ], "declarations": [ { "constant": false, - "id": 565, + "id": 549, "name": "foo", "nodeType": "VariableDeclaration", - "scope": 597, + "scope": 581, "src": "5233:8:4", "stateVariable": false, "storageLocation": "default", @@ -10672,7 +10672,7 @@ "typeString": "uint256" }, "typeName": { - "id": 564, + "id": 548, "name": "uint", "nodeType": "ElementaryTypeName", "src": "5233:4:4", @@ -10685,17 +10685,17 @@ "visibility": "internal" } ], - "id": 570, + "id": 554, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 567, + "id": 551, "name": "y", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 558, + "referencedDeclaration": 542, "src": "5249:1:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10704,11 +10704,11 @@ }, { "argumentTypes": null, - "id": 568, + "id": 552, "name": "weightRatio", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 544, + "referencedDeclaration": 528, "src": "5252:11:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10727,18 +10727,18 @@ "typeString": "uint256" } ], - "id": 566, + "id": 550, "name": "bpow", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1314, + "referencedDeclaration": 1298, "src": "5244:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 569, + "id": 553, "isConstant": false, "isLValue": false, "isPure": false, @@ -10758,18 +10758,18 @@ { "expression": { "argumentTypes": null, - "id": 576, + "id": 560, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 571, + "id": 555, "name": "foo", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 565, + "referencedDeclaration": 549, "src": "5274:3:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10783,11 +10783,11 @@ "arguments": [ { "argumentTypes": null, - "id": 573, + "id": 557, "name": "foo", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 565, + "referencedDeclaration": 549, "src": "5285:3:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10796,11 +10796,11 @@ }, { "argumentTypes": null, - "id": 574, + "id": 558, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "5290:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10819,18 +10819,18 @@ "typeString": "uint256" } ], - "id": 572, + "id": 556, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "5280:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 575, + "id": 559, "isConstant": false, "isLValue": false, "isPure": false, @@ -10850,25 +10850,25 @@ "typeString": "uint256" } }, - "id": 577, + "id": 561, "nodeType": "ExpressionStatement", "src": "5274:21:4" }, { "expression": { "argumentTypes": null, - "id": 583, + "id": 567, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 578, + "id": 562, "name": "tokenAmountIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 541, + "referencedDeclaration": 525, "src": "5305:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10882,11 +10882,11 @@ "arguments": [ { "argumentTypes": null, - "id": 580, + "id": 564, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "5326:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10895,11 +10895,11 @@ }, { "argumentTypes": null, - "id": 581, + "id": 565, "name": "swapFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 538, + "referencedDeclaration": 522, "src": "5332:7:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10918,18 +10918,18 @@ "typeString": "uint256" } ], - "id": 579, + "id": 563, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "5321:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 582, + "id": 566, "isConstant": false, "isLValue": false, "isPure": false, @@ -10949,25 +10949,25 @@ "typeString": "uint256" } }, - "id": 584, + "id": 568, "nodeType": "ExpressionStatement", "src": "5305:35:4" }, { "expression": { "argumentTypes": null, - "id": 593, + "id": 577, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 585, + "id": 569, "name": "tokenAmountIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 541, + "referencedDeclaration": 525, "src": "5350:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10984,11 +10984,11 @@ "arguments": [ { "argumentTypes": null, - "id": 588, + "id": 572, "name": "tokenBalanceIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 528, + "referencedDeclaration": 512, "src": "5376:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10997,11 +10997,11 @@ }, { "argumentTypes": null, - "id": 589, + "id": 573, "name": "foo", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 565, + "referencedDeclaration": 549, "src": "5392:3:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11020,18 +11020,18 @@ "typeString": "uint256" } ], - "id": 587, + "id": 571, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "5371:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 590, + "id": 574, "isConstant": false, "isLValue": false, "isPure": false, @@ -11047,11 +11047,11 @@ }, { "argumentTypes": null, - "id": 591, + "id": 575, "name": "tokenAmountIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 541, + "referencedDeclaration": 525, "src": "5398:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11070,18 +11070,18 @@ "typeString": "uint256" } ], - "id": 586, + "id": 570, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "5366:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 592, + "id": 576, "isConstant": false, "isLValue": false, "isPure": false, @@ -11101,48 +11101,48 @@ "typeString": "uint256" } }, - "id": 594, + "id": 578, "nodeType": "ExpressionStatement", "src": "5350:62:4" }, { "expression": { "argumentTypes": null, - "id": 595, + "id": 579, "name": "tokenAmountIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 541, + "referencedDeclaration": 525, "src": "5429:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 542, - "id": 596, + "functionReturnParameters": 526, + "id": 580, "nodeType": "Return", "src": "5422:20:4" } ] }, "documentation": "********************************************************************************************\n// calcInGivenOut //\n// aI = tokenAmountIn //\n// bO = tokenBalanceOut / / bO \\ (wO / wI) \\ //\n// bI = tokenBalanceIn bI * | | ------------ | ^ - 1 | //\n// aO = tokenAmountOut aI = \\ \\ ( bO - aO ) / / //\n// wI = tokenWeightIn -------------------------------------------- //\n// wO = tokenWeightOut ( 1 - sF ) //\n// sF = swapFee //*********************************************************************************************", - "id": 598, + "id": 582, "implemented": true, "kind": "function", "modifiers": [], "name": "calcInGivenOut", "nodeType": "FunctionDefinition", "parameters": { - "id": 539, + "id": 523, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 528, + "id": 512, "name": "tokenBalanceIn", "nodeType": "VariableDeclaration", - "scope": 598, + "scope": 582, "src": "4829:19:4", "stateVariable": false, "storageLocation": "default", @@ -11151,7 +11151,7 @@ "typeString": "uint256" }, "typeName": { - "id": 527, + "id": 511, "name": "uint", "nodeType": "ElementaryTypeName", "src": "4829:4:4", @@ -11165,10 +11165,10 @@ }, { "constant": false, - "id": 530, + "id": 514, "name": "tokenWeightIn", "nodeType": "VariableDeclaration", - "scope": 598, + "scope": 582, "src": "4858:18:4", "stateVariable": false, "storageLocation": "default", @@ -11177,7 +11177,7 @@ "typeString": "uint256" }, "typeName": { - "id": 529, + "id": 513, "name": "uint", "nodeType": "ElementaryTypeName", "src": "4858:4:4", @@ -11191,10 +11191,10 @@ }, { "constant": false, - "id": 532, + "id": 516, "name": "tokenBalanceOut", "nodeType": "VariableDeclaration", - "scope": 598, + "scope": 582, "src": "4886:20:4", "stateVariable": false, "storageLocation": "default", @@ -11203,7 +11203,7 @@ "typeString": "uint256" }, "typeName": { - "id": 531, + "id": 515, "name": "uint", "nodeType": "ElementaryTypeName", "src": "4886:4:4", @@ -11217,10 +11217,10 @@ }, { "constant": false, - "id": 534, + "id": 518, "name": "tokenWeightOut", "nodeType": "VariableDeclaration", - "scope": 598, + "scope": 582, "src": "4916:19:4", "stateVariable": false, "storageLocation": "default", @@ -11229,7 +11229,7 @@ "typeString": "uint256" }, "typeName": { - "id": 533, + "id": 517, "name": "uint", "nodeType": "ElementaryTypeName", "src": "4916:4:4", @@ -11243,10 +11243,10 @@ }, { "constant": false, - "id": 536, + "id": 520, "name": "tokenAmountOut", "nodeType": "VariableDeclaration", - "scope": 598, + "scope": 582, "src": "4945:19:4", "stateVariable": false, "storageLocation": "default", @@ -11255,7 +11255,7 @@ "typeString": "uint256" }, "typeName": { - "id": 535, + "id": 519, "name": "uint", "nodeType": "ElementaryTypeName", "src": "4945:4:4", @@ -11269,10 +11269,10 @@ }, { "constant": false, - "id": 538, + "id": 522, "name": "swapFee", "nodeType": "VariableDeclaration", - "scope": 598, + "scope": 582, "src": "4974:12:4", "stateVariable": false, "storageLocation": "default", @@ -11281,7 +11281,7 @@ "typeString": "uint256" }, "typeName": { - "id": 537, + "id": 521, "name": "uint", "nodeType": "ElementaryTypeName", "src": "4974:4:4", @@ -11297,15 +11297,15 @@ "src": "4819:173:4" }, "returnParameters": { - "id": 542, + "id": 526, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 541, + "id": 525, "name": "tokenAmountIn", "nodeType": "VariableDeclaration", - "scope": 598, + "scope": 582, "src": "5030:18:4", "stateVariable": false, "storageLocation": "default", @@ -11314,7 +11314,7 @@ "typeString": "uint256" }, "typeName": { - "id": 540, + "id": 524, "name": "uint", "nodeType": "ElementaryTypeName", "src": "5030:4:4", @@ -11329,7 +11329,7 @@ ], "src": "5029:20:4" }, - "scope": 961, + "scope": 945, "src": "4796:653:4", "stateMutability": "pure", "superFunction": null, @@ -11337,21 +11337,21 @@ }, { "body": { - "id": 679, + "id": 663, "nodeType": "Block", "src": "6714:881:4", "statements": [ { "assignments": [ - 616 + 600 ], "declarations": [ { "constant": false, - "id": 616, + "id": 600, "name": "normalizedWeight", "nodeType": "VariableDeclaration", - "scope": 679, + "scope": 663, "src": "6968:21:4", "stateVariable": false, "storageLocation": "default", @@ -11360,7 +11360,7 @@ "typeString": "uint256" }, "typeName": { - "id": 615, + "id": 599, "name": "uint", "nodeType": "ElementaryTypeName", "src": "6968:4:4", @@ -11373,17 +11373,17 @@ "visibility": "internal" } ], - "id": 621, + "id": 605, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 618, + "id": 602, "name": "tokenWeightIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 602, + "referencedDeclaration": 586, "src": "6997:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11392,11 +11392,11 @@ }, { "argumentTypes": null, - "id": 619, + "id": 603, "name": "totalWeight", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 606, + "referencedDeclaration": 590, "src": "7012:11:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11415,18 +11415,18 @@ "typeString": "uint256" } ], - "id": 617, + "id": 601, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "6992:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 620, + "id": 604, "isConstant": false, "isLValue": false, "isPure": false, @@ -11445,15 +11445,15 @@ }, { "assignments": [ - 623 + 607 ], "declarations": [ { "constant": false, - "id": 623, + "id": 607, "name": "zaz", "nodeType": "VariableDeclaration", - "scope": 679, + "scope": 663, "src": "7034:8:4", "stateVariable": false, "storageLocation": "default", @@ -11462,7 +11462,7 @@ "typeString": "uint256" }, "typeName": { - "id": 622, + "id": 606, "name": "uint", "nodeType": "ElementaryTypeName", "src": "7034:4:4", @@ -11475,7 +11475,7 @@ "visibility": "internal" } ], - "id": 631, + "id": 615, "initialValue": { "argumentTypes": null, "arguments": [ @@ -11484,11 +11484,11 @@ "arguments": [ { "argumentTypes": null, - "id": 626, + "id": 610, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "7055:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11497,11 +11497,11 @@ }, { "argumentTypes": null, - "id": 627, + "id": 611, "name": "normalizedWeight", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 616, + "referencedDeclaration": 600, "src": "7061:16:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11520,18 +11520,18 @@ "typeString": "uint256" } ], - "id": 625, + "id": 609, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "7050:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 628, + "id": 612, "isConstant": false, "isLValue": false, "isPure": false, @@ -11547,11 +11547,11 @@ }, { "argumentTypes": null, - "id": 629, + "id": 613, "name": "swapFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 610, + "referencedDeclaration": 594, "src": "7080:7:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11570,18 +11570,18 @@ "typeString": "uint256" } ], - "id": 624, + "id": 608, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "7045:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 630, + "id": 614, "isConstant": false, "isLValue": false, "isPure": false, @@ -11600,15 +11600,15 @@ }, { "assignments": [ - 633 + 617 ], "declarations": [ { "constant": false, - "id": 633, + "id": 617, "name": "tokenAmountInAfterFee", "nodeType": "VariableDeclaration", - "scope": 679, + "scope": 663, "src": "7099:26:4", "stateVariable": false, "storageLocation": "default", @@ -11617,7 +11617,7 @@ "typeString": "uint256" }, "typeName": { - "id": 632, + "id": 616, "name": "uint", "nodeType": "ElementaryTypeName", "src": "7099:4:4", @@ -11630,17 +11630,17 @@ "visibility": "internal" } ], - "id": 641, + "id": 625, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 635, + "id": 619, "name": "tokenAmountIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 608, + "referencedDeclaration": 592, "src": "7133:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11652,11 +11652,11 @@ "arguments": [ { "argumentTypes": null, - "id": 637, + "id": 621, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "7153:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11665,11 +11665,11 @@ }, { "argumentTypes": null, - "id": 638, + "id": 622, "name": "zaz", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 623, + "referencedDeclaration": 607, "src": "7159:3:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11688,18 +11688,18 @@ "typeString": "uint256" } ], - "id": 636, + "id": 620, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "7148:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 639, + "id": 623, "isConstant": false, "isLValue": false, "isPure": false, @@ -11725,18 +11725,18 @@ "typeString": "uint256" } ], - "id": 634, + "id": 618, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "7128:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 640, + "id": 624, "isConstant": false, "isLValue": false, "isPure": false, @@ -11755,15 +11755,15 @@ }, { "assignments": [ - 643 + 627 ], "declarations": [ { "constant": false, - "id": 643, + "id": 627, "name": "newTokenBalanceIn", "nodeType": "VariableDeclaration", - "scope": 679, + "scope": 663, "src": "7175:22:4", "stateVariable": false, "storageLocation": "default", @@ -11772,7 +11772,7 @@ "typeString": "uint256" }, "typeName": { - "id": 642, + "id": 626, "name": "uint", "nodeType": "ElementaryTypeName", "src": "7175:4:4", @@ -11785,17 +11785,17 @@ "visibility": "internal" } ], - "id": 648, + "id": 632, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 645, + "id": 629, "name": "tokenBalanceIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 600, + "referencedDeclaration": 584, "src": "7205:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11804,11 +11804,11 @@ }, { "argumentTypes": null, - "id": 646, + "id": 630, "name": "tokenAmountInAfterFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 633, + "referencedDeclaration": 617, "src": "7221:21:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11827,18 +11827,18 @@ "typeString": "uint256" } ], - "id": 644, + "id": 628, "name": "badd", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1017, + "referencedDeclaration": 1001, "src": "7200:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 647, + "id": 631, "isConstant": false, "isLValue": false, "isPure": false, @@ -11857,15 +11857,15 @@ }, { "assignments": [ - 650 + 634 ], "declarations": [ { "constant": false, - "id": 650, + "id": 634, "name": "tokenInRatio", "nodeType": "VariableDeclaration", - "scope": 679, + "scope": 663, "src": "7253:17:4", "stateVariable": false, "storageLocation": "default", @@ -11874,7 +11874,7 @@ "typeString": "uint256" }, "typeName": { - "id": 649, + "id": 633, "name": "uint", "nodeType": "ElementaryTypeName", "src": "7253:4:4", @@ -11887,17 +11887,17 @@ "visibility": "internal" } ], - "id": 655, + "id": 639, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 652, + "id": 636, "name": "newTokenBalanceIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 643, + "referencedDeclaration": 627, "src": "7278:17:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11906,11 +11906,11 @@ }, { "argumentTypes": null, - "id": 653, + "id": 637, "name": "tokenBalanceIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 600, + "referencedDeclaration": 584, "src": "7297:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11929,18 +11929,18 @@ "typeString": "uint256" } ], - "id": 651, + "id": 635, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "7273:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 654, + "id": 638, "isConstant": false, "isLValue": false, "isPure": false, @@ -11959,15 +11959,15 @@ }, { "assignments": [ - 657 + 641 ], "declarations": [ { "constant": false, - "id": 657, + "id": 641, "name": "poolRatio", "nodeType": "VariableDeclaration", - "scope": 679, + "scope": 663, "src": "7390:14:4", "stateVariable": false, "storageLocation": "default", @@ -11976,7 +11976,7 @@ "typeString": "uint256" }, "typeName": { - "id": 656, + "id": 640, "name": "uint", "nodeType": "ElementaryTypeName", "src": "7390:4:4", @@ -11989,17 +11989,17 @@ "visibility": "internal" } ], - "id": 662, + "id": 646, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 659, + "id": 643, "name": "tokenInRatio", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 650, + "referencedDeclaration": 634, "src": "7412:12:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12008,11 +12008,11 @@ }, { "argumentTypes": null, - "id": 660, + "id": 644, "name": "normalizedWeight", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 616, + "referencedDeclaration": 600, "src": "7426:16:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12031,18 +12031,18 @@ "typeString": "uint256" } ], - "id": 658, + "id": 642, "name": "bpow", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1314, + "referencedDeclaration": 1298, "src": "7407:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 661, + "id": 645, "isConstant": false, "isLValue": false, "isPure": false, @@ -12061,15 +12061,15 @@ }, { "assignments": [ - 664 + 648 ], "declarations": [ { "constant": false, - "id": 664, + "id": 648, "name": "newPoolSupply", "nodeType": "VariableDeclaration", - "scope": 679, + "scope": 663, "src": "7453:18:4", "stateVariable": false, "storageLocation": "default", @@ -12078,7 +12078,7 @@ "typeString": "uint256" }, "typeName": { - "id": 663, + "id": 647, "name": "uint", "nodeType": "ElementaryTypeName", "src": "7453:4:4", @@ -12091,17 +12091,17 @@ "visibility": "internal" } ], - "id": 669, + "id": 653, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 666, + "id": 650, "name": "poolRatio", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 657, + "referencedDeclaration": 641, "src": "7479:9:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12110,11 +12110,11 @@ }, { "argumentTypes": null, - "id": 667, + "id": 651, "name": "poolSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 604, + "referencedDeclaration": 588, "src": "7490:10:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12133,18 +12133,18 @@ "typeString": "uint256" } ], - "id": 665, + "id": 649, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "7474:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 668, + "id": 652, "isConstant": false, "isLValue": false, "isPure": false, @@ -12164,18 +12164,18 @@ { "expression": { "argumentTypes": null, - "id": 675, + "id": 659, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 670, + "id": 654, "name": "poolAmountOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 613, + "referencedDeclaration": 597, "src": "7511:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12189,11 +12189,11 @@ "arguments": [ { "argumentTypes": null, - "id": 672, + "id": 656, "name": "newPoolSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 664, + "referencedDeclaration": 648, "src": "7532:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12202,11 +12202,11 @@ }, { "argumentTypes": null, - "id": 673, + "id": 657, "name": "poolSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 604, + "referencedDeclaration": 588, "src": "7547:10:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12225,18 +12225,18 @@ "typeString": "uint256" } ], - "id": 671, + "id": 655, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "7527:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 674, + "id": 658, "isConstant": false, "isLValue": false, "isPure": false, @@ -12256,48 +12256,48 @@ "typeString": "uint256" } }, - "id": 676, + "id": 660, "nodeType": "ExpressionStatement", "src": "7511:47:4" }, { "expression": { "argumentTypes": null, - "id": 677, + "id": 661, "name": "poolAmountOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 613, + "referencedDeclaration": 597, "src": "7575:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 614, - "id": 678, + "functionReturnParameters": 598, + "id": 662, "nodeType": "Return", "src": "7568:20:4" } ] }, "documentation": "********************************************************************************************\n// calcPoolOutGivenSingleIn //\n// pAo = poolAmountOut / \\ //\n// tAi = tokenAmountIn /// / // wI \\ \\\\ \\ wI \\ //\n// wI = tokenWeightIn //| tAi *| 1 - || 1 - -- | * sF || + tBi \\ -- \\ //\n// tW = totalWeight pAo=|| \\ \\ \\\\ tW / // | ^ tW | * pS - pS //\n// tBi = tokenBalanceIn \\\\ ------------------------------------- / / //\n// pS = poolSupply \\\\ tBi / / //\n// sF = swapFee \\ / //*********************************************************************************************", - "id": 680, + "id": 664, "implemented": true, "kind": "function", "modifiers": [], "name": "calcPoolOutGivenSingleIn", "nodeType": "FunctionDefinition", "parameters": { - "id": 611, + "id": 595, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 600, + "id": 584, "name": "tokenBalanceIn", "nodeType": "VariableDeclaration", - "scope": 680, + "scope": 664, "src": "6498:19:4", "stateVariable": false, "storageLocation": "default", @@ -12306,7 +12306,7 @@ "typeString": "uint256" }, "typeName": { - "id": 599, + "id": 583, "name": "uint", "nodeType": "ElementaryTypeName", "src": "6498:4:4", @@ -12320,10 +12320,10 @@ }, { "constant": false, - "id": 602, + "id": 586, "name": "tokenWeightIn", "nodeType": "VariableDeclaration", - "scope": 680, + "scope": 664, "src": "6527:18:4", "stateVariable": false, "storageLocation": "default", @@ -12332,7 +12332,7 @@ "typeString": "uint256" }, "typeName": { - "id": 601, + "id": 585, "name": "uint", "nodeType": "ElementaryTypeName", "src": "6527:4:4", @@ -12346,10 +12346,10 @@ }, { "constant": false, - "id": 604, + "id": 588, "name": "poolSupply", "nodeType": "VariableDeclaration", - "scope": 680, + "scope": 664, "src": "6555:15:4", "stateVariable": false, "storageLocation": "default", @@ -12358,7 +12358,7 @@ "typeString": "uint256" }, "typeName": { - "id": 603, + "id": 587, "name": "uint", "nodeType": "ElementaryTypeName", "src": "6555:4:4", @@ -12372,10 +12372,10 @@ }, { "constant": false, - "id": 606, + "id": 590, "name": "totalWeight", "nodeType": "VariableDeclaration", - "scope": 680, + "scope": 664, "src": "6580:16:4", "stateVariable": false, "storageLocation": "default", @@ -12384,7 +12384,7 @@ "typeString": "uint256" }, "typeName": { - "id": 605, + "id": 589, "name": "uint", "nodeType": "ElementaryTypeName", "src": "6580:4:4", @@ -12398,10 +12398,10 @@ }, { "constant": false, - "id": 608, + "id": 592, "name": "tokenAmountIn", "nodeType": "VariableDeclaration", - "scope": 680, + "scope": 664, "src": "6606:18:4", "stateVariable": false, "storageLocation": "default", @@ -12410,7 +12410,7 @@ "typeString": "uint256" }, "typeName": { - "id": 607, + "id": 591, "name": "uint", "nodeType": "ElementaryTypeName", "src": "6606:4:4", @@ -12424,10 +12424,10 @@ }, { "constant": false, - "id": 610, + "id": 594, "name": "swapFee", "nodeType": "VariableDeclaration", - "scope": 680, + "scope": 664, "src": "6634:12:4", "stateVariable": false, "storageLocation": "default", @@ -12436,7 +12436,7 @@ "typeString": "uint256" }, "typeName": { - "id": 609, + "id": 593, "name": "uint", "nodeType": "ElementaryTypeName", "src": "6634:4:4", @@ -12452,15 +12452,15 @@ "src": "6488:164:4" }, "returnParameters": { - "id": 614, + "id": 598, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 613, + "id": 597, "name": "poolAmountOut", "nodeType": "VariableDeclaration", - "scope": 680, + "scope": 664, "src": "6690:18:4", "stateVariable": false, "storageLocation": "default", @@ -12469,7 +12469,7 @@ "typeString": "uint256" }, "typeName": { - "id": 612, + "id": 596, "name": "uint", "nodeType": "ElementaryTypeName", "src": "6690:4:4", @@ -12484,7 +12484,7 @@ ], "src": "6689:20:4" }, - "scope": 961, + "scope": 945, "src": "6455:1140:4", "stateMutability": "pure", "superFunction": null, @@ -12492,21 +12492,21 @@ }, { "body": { - "id": 768, + "id": 752, "nodeType": "Block", "src": "8860:908:4", "statements": [ { "assignments": [ - 698 + 682 ], "declarations": [ { "constant": false, - "id": 698, + "id": 682, "name": "normalizedWeight", "nodeType": "VariableDeclaration", - "scope": 768, + "scope": 752, "src": "8870:21:4", "stateVariable": false, "storageLocation": "default", @@ -12515,7 +12515,7 @@ "typeString": "uint256" }, "typeName": { - "id": 697, + "id": 681, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8870:4:4", @@ -12528,17 +12528,17 @@ "visibility": "internal" } ], - "id": 703, + "id": 687, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 700, + "id": 684, "name": "tokenWeightIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 684, + "referencedDeclaration": 668, "src": "8899:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12547,11 +12547,11 @@ }, { "argumentTypes": null, - "id": 701, + "id": 685, "name": "totalWeight", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 688, + "referencedDeclaration": 672, "src": "8914:11:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12570,18 +12570,18 @@ "typeString": "uint256" } ], - "id": 699, + "id": 683, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "8894:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 702, + "id": 686, "isConstant": false, "isLValue": false, "isPure": false, @@ -12600,15 +12600,15 @@ }, { "assignments": [ - 705 + 689 ], "declarations": [ { "constant": false, - "id": 705, + "id": 689, "name": "newPoolSupply", "nodeType": "VariableDeclaration", - "scope": 768, + "scope": 752, "src": "8936:18:4", "stateVariable": false, "storageLocation": "default", @@ -12617,7 +12617,7 @@ "typeString": "uint256" }, "typeName": { - "id": 704, + "id": 688, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8936:4:4", @@ -12630,17 +12630,17 @@ "visibility": "internal" } ], - "id": 710, + "id": 694, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 707, + "id": 691, "name": "poolSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 686, + "referencedDeclaration": 670, "src": "8962:10:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12649,11 +12649,11 @@ }, { "argumentTypes": null, - "id": 708, + "id": 692, "name": "poolAmountOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 690, + "referencedDeclaration": 674, "src": "8974:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12672,18 +12672,18 @@ "typeString": "uint256" } ], - "id": 706, + "id": 690, "name": "badd", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1017, + "referencedDeclaration": 1001, "src": "8957:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 709, + "id": 693, "isConstant": false, "isLValue": false, "isPure": false, @@ -12702,15 +12702,15 @@ }, { "assignments": [ - 712 + 696 ], "declarations": [ { "constant": false, - "id": 712, + "id": 696, "name": "poolRatio", "nodeType": "VariableDeclaration", - "scope": 768, + "scope": 752, "src": "8998:14:4", "stateVariable": false, "storageLocation": "default", @@ -12719,7 +12719,7 @@ "typeString": "uint256" }, "typeName": { - "id": 711, + "id": 695, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8998:4:4", @@ -12732,17 +12732,17 @@ "visibility": "internal" } ], - "id": 717, + "id": 701, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 714, + "id": 698, "name": "newPoolSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 705, + "referencedDeclaration": 689, "src": "9020:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12751,11 +12751,11 @@ }, { "argumentTypes": null, - "id": 715, + "id": 699, "name": "poolSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 686, + "referencedDeclaration": 670, "src": "9035:10:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12774,18 +12774,18 @@ "typeString": "uint256" } ], - "id": 713, + "id": 697, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "9015:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 716, + "id": 700, "isConstant": false, "isLValue": false, "isPure": false, @@ -12804,15 +12804,15 @@ }, { "assignments": [ - 719 + 703 ], "declarations": [ { "constant": false, - "id": 719, + "id": 703, "name": "boo", "nodeType": "VariableDeclaration", - "scope": 768, + "scope": 752, "src": "9121:8:4", "stateVariable": false, "storageLocation": "default", @@ -12821,7 +12821,7 @@ "typeString": "uint256" }, "typeName": { - "id": 718, + "id": 702, "name": "uint", "nodeType": "ElementaryTypeName", "src": "9121:4:4", @@ -12834,17 +12834,17 @@ "visibility": "internal" } ], - "id": 724, + "id": 708, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 721, + "id": 705, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "9137:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12853,11 +12853,11 @@ }, { "argumentTypes": null, - "id": 722, + "id": 706, "name": "normalizedWeight", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 698, + "referencedDeclaration": 682, "src": "9143:16:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12876,18 +12876,18 @@ "typeString": "uint256" } ], - "id": 720, + "id": 704, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "9132:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 723, + "id": 707, "isConstant": false, "isLValue": false, "isPure": false, @@ -12906,15 +12906,15 @@ }, { "assignments": [ - 726 + 710 ], "declarations": [ { "constant": false, - "id": 726, + "id": 710, "name": "tokenInRatio", "nodeType": "VariableDeclaration", - "scope": 768, + "scope": 752, "src": "9171:17:4", "stateVariable": false, "storageLocation": "default", @@ -12923,7 +12923,7 @@ "typeString": "uint256" }, "typeName": { - "id": 725, + "id": 709, "name": "uint", "nodeType": "ElementaryTypeName", "src": "9171:4:4", @@ -12936,17 +12936,17 @@ "visibility": "internal" } ], - "id": 731, + "id": 715, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 728, + "id": 712, "name": "poolRatio", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 712, + "referencedDeclaration": 696, "src": "9196:9:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12955,11 +12955,11 @@ }, { "argumentTypes": null, - "id": 729, + "id": 713, "name": "boo", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 719, + "referencedDeclaration": 703, "src": "9207:3:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12978,18 +12978,18 @@ "typeString": "uint256" } ], - "id": 727, + "id": 711, "name": "bpow", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1314, + "referencedDeclaration": 1298, "src": "9191:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 730, + "id": 714, "isConstant": false, "isLValue": false, "isPure": false, @@ -13008,15 +13008,15 @@ }, { "assignments": [ - 733 + 717 ], "declarations": [ { "constant": false, - "id": 733, + "id": 717, "name": "newTokenBalanceIn", "nodeType": "VariableDeclaration", - "scope": 768, + "scope": 752, "src": "9221:22:4", "stateVariable": false, "storageLocation": "default", @@ -13025,7 +13025,7 @@ "typeString": "uint256" }, "typeName": { - "id": 732, + "id": 716, "name": "uint", "nodeType": "ElementaryTypeName", "src": "9221:4:4", @@ -13038,17 +13038,17 @@ "visibility": "internal" } ], - "id": 738, + "id": 722, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 735, + "id": 719, "name": "tokenInRatio", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 726, + "referencedDeclaration": 710, "src": "9251:12:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13057,11 +13057,11 @@ }, { "argumentTypes": null, - "id": 736, + "id": 720, "name": "tokenBalanceIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 682, + "referencedDeclaration": 666, "src": "9265:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13080,18 +13080,18 @@ "typeString": "uint256" } ], - "id": 734, + "id": 718, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "9246:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 737, + "id": 721, "isConstant": false, "isLValue": false, "isPure": false, @@ -13110,15 +13110,15 @@ }, { "assignments": [ - 740 + 724 ], "declarations": [ { "constant": false, - "id": 740, + "id": 724, "name": "tokenAmountInAfterFee", "nodeType": "VariableDeclaration", - "scope": 768, + "scope": 752, "src": "9290:26:4", "stateVariable": false, "storageLocation": "default", @@ -13127,7 +13127,7 @@ "typeString": "uint256" }, "typeName": { - "id": 739, + "id": 723, "name": "uint", "nodeType": "ElementaryTypeName", "src": "9290:4:4", @@ -13140,17 +13140,17 @@ "visibility": "internal" } ], - "id": 745, + "id": 729, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 742, + "id": 726, "name": "newTokenBalanceIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 733, + "referencedDeclaration": 717, "src": "9324:17:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13159,11 +13159,11 @@ }, { "argumentTypes": null, - "id": 743, + "id": 727, "name": "tokenBalanceIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 682, + "referencedDeclaration": 666, "src": "9343:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13182,18 +13182,18 @@ "typeString": "uint256" } ], - "id": 741, + "id": 725, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "9319:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 744, + "id": 728, "isConstant": false, "isLValue": false, "isPure": false, @@ -13212,15 +13212,15 @@ }, { "assignments": [ - 747 + 731 ], "declarations": [ { "constant": false, - "id": 747, + "id": 731, "name": "zar", "nodeType": "VariableDeclaration", - "scope": 768, + "scope": 752, "src": "9607:8:4", "stateVariable": false, "storageLocation": "default", @@ -13229,7 +13229,7 @@ "typeString": "uint256" }, "typeName": { - "id": 746, + "id": 730, "name": "uint", "nodeType": "ElementaryTypeName", "src": "9607:4:4", @@ -13242,7 +13242,7 @@ "visibility": "internal" } ], - "id": 755, + "id": 739, "initialValue": { "argumentTypes": null, "arguments": [ @@ -13251,11 +13251,11 @@ "arguments": [ { "argumentTypes": null, - "id": 750, + "id": 734, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "9628:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13264,11 +13264,11 @@ }, { "argumentTypes": null, - "id": 751, + "id": 735, "name": "normalizedWeight", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 698, + "referencedDeclaration": 682, "src": "9634:16:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13287,18 +13287,18 @@ "typeString": "uint256" } ], - "id": 749, + "id": 733, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "9623:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 752, + "id": 736, "isConstant": false, "isLValue": false, "isPure": false, @@ -13314,11 +13314,11 @@ }, { "argumentTypes": null, - "id": 753, + "id": 737, "name": "swapFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 692, + "referencedDeclaration": 676, "src": "9653:7:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13337,18 +13337,18 @@ "typeString": "uint256" } ], - "id": 748, + "id": 732, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "9618:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 754, + "id": 738, "isConstant": false, "isLValue": false, "isPure": false, @@ -13368,18 +13368,18 @@ { "expression": { "argumentTypes": null, - "id": 764, + "id": 748, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 756, + "id": 740, "name": "tokenAmountIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 695, + "referencedDeclaration": 679, "src": "9671:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13393,11 +13393,11 @@ "arguments": [ { "argumentTypes": null, - "id": 758, + "id": 742, "name": "tokenAmountInAfterFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 740, + "referencedDeclaration": 724, "src": "9692:21:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13409,11 +13409,11 @@ "arguments": [ { "argumentTypes": null, - "id": 760, + "id": 744, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "9720:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13422,11 +13422,11 @@ }, { "argumentTypes": null, - "id": 761, + "id": 745, "name": "zar", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 747, + "referencedDeclaration": 731, "src": "9726:3:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13445,18 +13445,18 @@ "typeString": "uint256" } ], - "id": 759, + "id": 743, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "9715:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 762, + "id": 746, "isConstant": false, "isLValue": false, "isPure": false, @@ -13482,18 +13482,18 @@ "typeString": "uint256" } ], - "id": 757, + "id": 741, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "9687:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 763, + "id": 747, "isConstant": false, "isLValue": false, "isPure": false, @@ -13513,48 +13513,48 @@ "typeString": "uint256" } }, - "id": 765, + "id": 749, "nodeType": "ExpressionStatement", "src": "9671:60:4" }, { "expression": { "argumentTypes": null, - "id": 766, + "id": 750, "name": "tokenAmountIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 695, + "referencedDeclaration": 679, "src": "9748:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 696, - "id": 767, + "functionReturnParameters": 680, + "id": 751, "nodeType": "Return", "src": "9741:20:4" } ] }, "documentation": "********************************************************************************************\n// calcSingleInGivenPoolOut //\n// tAi = tokenAmountIn //(pS + pAo)\\ / 1 \\\\ //\n// pS = poolSupply || --------- | ^ | --------- || * bI - bI //\n// pAo = poolAmountOut \\\\ pS / \\(wI / tW)// //\n// bI = balanceIn tAi = -------------------------------------------- //\n// wI = weightIn / wI \\ //\n// tW = totalWeight | 1 - ---- | * sF //\n// sF = swapFee \\ tW / //*********************************************************************************************", - "id": 769, + "id": 753, "implemented": true, "kind": "function", "modifiers": [], "name": "calcSingleInGivenPoolOut", "nodeType": "FunctionDefinition", "parameters": { - "id": 693, + "id": 677, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 682, + "id": 666, "name": "tokenBalanceIn", "nodeType": "VariableDeclaration", - "scope": 769, + "scope": 753, "src": "8644:19:4", "stateVariable": false, "storageLocation": "default", @@ -13563,7 +13563,7 @@ "typeString": "uint256" }, "typeName": { - "id": 681, + "id": 665, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8644:4:4", @@ -13577,10 +13577,10 @@ }, { "constant": false, - "id": 684, + "id": 668, "name": "tokenWeightIn", "nodeType": "VariableDeclaration", - "scope": 769, + "scope": 753, "src": "8673:18:4", "stateVariable": false, "storageLocation": "default", @@ -13589,7 +13589,7 @@ "typeString": "uint256" }, "typeName": { - "id": 683, + "id": 667, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8673:4:4", @@ -13603,10 +13603,10 @@ }, { "constant": false, - "id": 686, + "id": 670, "name": "poolSupply", "nodeType": "VariableDeclaration", - "scope": 769, + "scope": 753, "src": "8701:15:4", "stateVariable": false, "storageLocation": "default", @@ -13615,7 +13615,7 @@ "typeString": "uint256" }, "typeName": { - "id": 685, + "id": 669, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8701:4:4", @@ -13629,10 +13629,10 @@ }, { "constant": false, - "id": 688, + "id": 672, "name": "totalWeight", "nodeType": "VariableDeclaration", - "scope": 769, + "scope": 753, "src": "8726:16:4", "stateVariable": false, "storageLocation": "default", @@ -13641,7 +13641,7 @@ "typeString": "uint256" }, "typeName": { - "id": 687, + "id": 671, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8726:4:4", @@ -13655,10 +13655,10 @@ }, { "constant": false, - "id": 690, + "id": 674, "name": "poolAmountOut", "nodeType": "VariableDeclaration", - "scope": 769, + "scope": 753, "src": "8752:18:4", "stateVariable": false, "storageLocation": "default", @@ -13667,7 +13667,7 @@ "typeString": "uint256" }, "typeName": { - "id": 689, + "id": 673, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8752:4:4", @@ -13681,10 +13681,10 @@ }, { "constant": false, - "id": 692, + "id": 676, "name": "swapFee", "nodeType": "VariableDeclaration", - "scope": 769, + "scope": 753, "src": "8780:12:4", "stateVariable": false, "storageLocation": "default", @@ -13693,7 +13693,7 @@ "typeString": "uint256" }, "typeName": { - "id": 691, + "id": 675, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8780:4:4", @@ -13709,15 +13709,15 @@ "src": "8634:164:4" }, "returnParameters": { - "id": 696, + "id": 680, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 695, + "id": 679, "name": "tokenAmountIn", "nodeType": "VariableDeclaration", - "scope": 769, + "scope": 753, "src": "8836:18:4", "stateVariable": false, "storageLocation": "default", @@ -13726,7 +13726,7 @@ "typeString": "uint256" }, "typeName": { - "id": 694, + "id": 678, "name": "uint", "nodeType": "ElementaryTypeName", "src": "8836:4:4", @@ -13741,7 +13741,7 @@ ], "src": "8835:20:4" }, - "scope": 961, + "scope": 945, "src": "8601:1167:4", "stateMutability": "pure", "superFunction": null, @@ -13749,21 +13749,21 @@ }, { "body": { - "id": 863, + "id": 847, "nodeType": "Block", "src": "11135:1043:4", "statements": [ { "assignments": [ - 787 + 771 ], "declarations": [ { "constant": false, - "id": 787, + "id": 771, "name": "normalizedWeight", "nodeType": "VariableDeclaration", - "scope": 863, + "scope": 847, "src": "11145:21:4", "stateVariable": false, "storageLocation": "default", @@ -13772,7 +13772,7 @@ "typeString": "uint256" }, "typeName": { - "id": 786, + "id": 770, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11145:4:4", @@ -13785,17 +13785,17 @@ "visibility": "internal" } ], - "id": 792, + "id": 776, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 789, + "id": 773, "name": "tokenWeightOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 773, + "referencedDeclaration": 757, "src": "11174:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13804,11 +13804,11 @@ }, { "argumentTypes": null, - "id": 790, + "id": 774, "name": "totalWeight", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 777, + "referencedDeclaration": 761, "src": "11190:11:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13827,18 +13827,18 @@ "typeString": "uint256" } ], - "id": 788, + "id": 772, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "11169:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 791, + "id": 775, "isConstant": false, "isLValue": false, "isPure": false, @@ -13857,15 +13857,15 @@ }, { "assignments": [ - 794 + 778 ], "declarations": [ { "constant": false, - "id": 794, + "id": 778, "name": "poolAmountInAfterExitFee", "nodeType": "VariableDeclaration", - "scope": 863, + "scope": 847, "src": "11307:29:4", "stateVariable": false, "storageLocation": "default", @@ -13874,7 +13874,7 @@ "typeString": "uint256" }, "typeName": { - "id": 793, + "id": 777, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11307:4:4", @@ -13887,17 +13887,17 @@ "visibility": "internal" } ], - "id": 802, + "id": 786, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 796, + "id": 780, "name": "poolAmountIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 779, + "referencedDeclaration": 763, "src": "11357:12:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13909,11 +13909,11 @@ "arguments": [ { "argumentTypes": null, - "id": 798, + "id": 782, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "11389:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13922,11 +13922,11 @@ }, { "argumentTypes": null, - "id": 799, + "id": 783, "name": "EXIT_FEE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 227, + "referencedDeclaration": 223, "src": "11395:8:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13945,18 +13945,18 @@ "typeString": "uint256" } ], - "id": 797, + "id": 781, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "11384:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 800, + "id": 784, "isConstant": false, "isLValue": false, "isPure": false, @@ -13982,18 +13982,18 @@ "typeString": "uint256" } ], - "id": 795, + "id": 779, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "11339:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 801, + "id": 785, "isConstant": false, "isLValue": false, "isPure": false, @@ -14012,15 +14012,15 @@ }, { "assignments": [ - 804 + 788 ], "declarations": [ { "constant": false, - "id": 804, + "id": 788, "name": "newPoolSupply", "nodeType": "VariableDeclaration", - "scope": 863, + "scope": 847, "src": "11424:18:4", "stateVariable": false, "storageLocation": "default", @@ -14029,7 +14029,7 @@ "typeString": "uint256" }, "typeName": { - "id": 803, + "id": 787, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11424:4:4", @@ -14042,17 +14042,17 @@ "visibility": "internal" } ], - "id": 809, + "id": 793, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 806, + "id": 790, "name": "poolSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 775, + "referencedDeclaration": 759, "src": "11450:10:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -14061,11 +14061,11 @@ }, { "argumentTypes": null, - "id": 807, + "id": 791, "name": "poolAmountInAfterExitFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 794, + "referencedDeclaration": 778, "src": "11462:24:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -14084,18 +14084,18 @@ "typeString": "uint256" } ], - "id": 805, + "id": 789, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "11445:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 808, + "id": 792, "isConstant": false, "isLValue": false, "isPure": false, @@ -14114,15 +14114,15 @@ }, { "assignments": [ - 811 + 795 ], "declarations": [ { "constant": false, - "id": 811, + "id": 795, "name": "poolRatio", "nodeType": "VariableDeclaration", - "scope": 863, + "scope": 847, "src": "11497:14:4", "stateVariable": false, "storageLocation": "default", @@ -14131,7 +14131,7 @@ "typeString": "uint256" }, "typeName": { - "id": 810, + "id": 794, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11497:4:4", @@ -14144,17 +14144,17 @@ "visibility": "internal" } ], - "id": 816, + "id": 800, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 813, + "id": 797, "name": "newPoolSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 804, + "referencedDeclaration": 788, "src": "11519:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -14163,11 +14163,11 @@ }, { "argumentTypes": null, - "id": 814, + "id": 798, "name": "poolSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 775, + "referencedDeclaration": 759, "src": "11534:10:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -14186,18 +14186,18 @@ "typeString": "uint256" } ], - "id": 812, + "id": 796, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "11514:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 815, + "id": 799, "isConstant": false, "isLValue": false, "isPure": false, @@ -14216,15 +14216,15 @@ }, { "assignments": [ - 818 + 802 ], "declarations": [ { "constant": false, - "id": 818, + "id": 802, "name": "tokenOutRatio", "nodeType": "VariableDeclaration", - "scope": 863, + "scope": 847, "src": "11615:18:4", "stateVariable": false, "storageLocation": "default", @@ -14233,7 +14233,7 @@ "typeString": "uint256" }, "typeName": { - "id": 817, + "id": 801, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11615:4:4", @@ -14246,17 +14246,17 @@ "visibility": "internal" } ], - "id": 826, + "id": 810, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 820, + "id": 804, "name": "poolRatio", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 811, + "referencedDeclaration": 795, "src": "11641:9:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -14268,11 +14268,11 @@ "arguments": [ { "argumentTypes": null, - "id": 822, + "id": 806, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "11657:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -14281,11 +14281,11 @@ }, { "argumentTypes": null, - "id": 823, + "id": 807, "name": "normalizedWeight", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 787, + "referencedDeclaration": 771, "src": "11663:16:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -14304,18 +14304,18 @@ "typeString": "uint256" } ], - "id": 821, + "id": 805, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "11652:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 824, + "id": 808, "isConstant": false, "isLValue": false, "isPure": false, @@ -14341,18 +14341,18 @@ "typeString": "uint256" } ], - "id": 819, + "id": 803, "name": "bpow", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1314, + "referencedDeclaration": 1298, "src": "11636:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 825, + "id": 809, "isConstant": false, "isLValue": false, "isPure": false, @@ -14371,15 +14371,15 @@ }, { "assignments": [ - 828 + 812 ], "declarations": [ { "constant": false, - "id": 828, + "id": 812, "name": "newTokenBalanceOut", "nodeType": "VariableDeclaration", - "scope": 863, + "scope": 847, "src": "11691:23:4", "stateVariable": false, "storageLocation": "default", @@ -14388,7 +14388,7 @@ "typeString": "uint256" }, "typeName": { - "id": 827, + "id": 811, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11691:4:4", @@ -14401,17 +14401,17 @@ "visibility": "internal" } ], - "id": 833, + "id": 817, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 830, + "id": 814, "name": "tokenOutRatio", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 818, + "referencedDeclaration": 802, "src": "11722:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -14420,11 +14420,11 @@ }, { "argumentTypes": null, - "id": 831, + "id": 815, "name": "tokenBalanceOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 771, + "referencedDeclaration": 755, "src": "11737:15:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -14443,18 +14443,18 @@ "typeString": "uint256" } ], - "id": 829, + "id": 813, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "11717:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 832, + "id": 816, "isConstant": false, "isLValue": false, "isPure": false, @@ -14473,15 +14473,15 @@ }, { "assignments": [ - 835 + 819 ], "declarations": [ { "constant": false, - "id": 835, + "id": 819, "name": "tokenAmountOutBeforeSwapFee", "nodeType": "VariableDeclaration", - "scope": 863, + "scope": 847, "src": "11764:32:4", "stateVariable": false, "storageLocation": "default", @@ -14490,7 +14490,7 @@ "typeString": "uint256" }, "typeName": { - "id": 834, + "id": 818, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11764:4:4", @@ -14503,17 +14503,17 @@ "visibility": "internal" } ], - "id": 840, + "id": 824, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 837, + "id": 821, "name": "tokenBalanceOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 771, + "referencedDeclaration": 755, "src": "11817:15:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -14522,11 +14522,11 @@ }, { "argumentTypes": null, - "id": 838, + "id": 822, "name": "newTokenBalanceOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 828, + "referencedDeclaration": 812, "src": "11847:18:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -14545,18 +14545,18 @@ "typeString": "uint256" } ], - "id": 836, + "id": 820, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "11799:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 839, + "id": 823, "isConstant": false, "isLValue": false, "isPure": false, @@ -14575,15 +14575,15 @@ }, { "assignments": [ - 842 + 826 ], "declarations": [ { "constant": false, - "id": 842, + "id": 826, "name": "zaz", "nodeType": "VariableDeclaration", - "scope": 863, + "scope": 847, "src": "12008:8:4", "stateVariable": false, "storageLocation": "default", @@ -14592,7 +14592,7 @@ "typeString": "uint256" }, "typeName": { - "id": 841, + "id": 825, "name": "uint", "nodeType": "ElementaryTypeName", "src": "12008:4:4", @@ -14605,7 +14605,7 @@ "visibility": "internal" } ], - "id": 850, + "id": 834, "initialValue": { "argumentTypes": null, "arguments": [ @@ -14614,11 +14614,11 @@ "arguments": [ { "argumentTypes": null, - "id": 845, + "id": 829, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "12029:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -14627,11 +14627,11 @@ }, { "argumentTypes": null, - "id": 846, + "id": 830, "name": "normalizedWeight", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 787, + "referencedDeclaration": 771, "src": "12035:16:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -14650,18 +14650,18 @@ "typeString": "uint256" } ], - "id": 844, + "id": 828, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "12024:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 847, + "id": 831, "isConstant": false, "isLValue": false, "isPure": false, @@ -14677,11 +14677,11 @@ }, { "argumentTypes": null, - "id": 848, + "id": 832, "name": "swapFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 781, + "referencedDeclaration": 765, "src": "12054:7:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -14700,18 +14700,18 @@ "typeString": "uint256" } ], - "id": 843, + "id": 827, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "12019:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 849, + "id": 833, "isConstant": false, "isLValue": false, "isPure": false, @@ -14731,18 +14731,18 @@ { "expression": { "argumentTypes": null, - "id": 859, + "id": 843, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 851, + "id": 835, "name": "tokenAmountOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 784, + "referencedDeclaration": 768, "src": "12073:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -14756,11 +14756,11 @@ "arguments": [ { "argumentTypes": null, - "id": 853, + "id": 837, "name": "tokenAmountOutBeforeSwapFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 835, + "referencedDeclaration": 819, "src": "12095:27:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -14772,11 +14772,11 @@ "arguments": [ { "argumentTypes": null, - "id": 855, + "id": 839, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "12129:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -14785,11 +14785,11 @@ }, { "argumentTypes": null, - "id": 856, + "id": 840, "name": "zaz", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 842, + "referencedDeclaration": 826, "src": "12135:3:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -14808,18 +14808,18 @@ "typeString": "uint256" } ], - "id": 854, + "id": 838, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "12124:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 857, + "id": 841, "isConstant": false, "isLValue": false, "isPure": false, @@ -14845,18 +14845,18 @@ "typeString": "uint256" } ], - "id": 852, + "id": 836, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "12090:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 858, + "id": 842, "isConstant": false, "isLValue": false, "isPure": false, @@ -14876,48 +14876,48 @@ "typeString": "uint256" } }, - "id": 860, + "id": 844, "nodeType": "ExpressionStatement", "src": "12073:67:4" }, { "expression": { "argumentTypes": null, - "id": 861, + "id": 845, "name": "tokenAmountOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 784, + "referencedDeclaration": 768, "src": "12157:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 785, - "id": 862, + "functionReturnParameters": 769, + "id": 846, "nodeType": "Return", "src": "12150:21:4" } ] }, "documentation": "********************************************************************************************\n// calcSingleOutGivenPoolIn //\n// tAo = tokenAmountOut / / \\\\ //\n// bO = tokenBalanceOut / // pS - (pAi * (1 - eF)) \\ / 1 \\ \\\\ //\n// pAi = poolAmountIn | bO - || ----------------------- | ^ | --------- | * b0 || //\n// ps = poolSupply \\ \\\\ pS / \\(wO / tW)/ // //\n// wI = tokenWeightIn tAo = \\ \\ // //\n// tW = totalWeight / / wO \\ \\ //\n// sF = swapFee * | 1 - | 1 - ---- | * sF | //\n// eF = exitFee \\ \\ tW / / //*********************************************************************************************", - "id": 864, + "id": 848, "implemented": true, "kind": "function", "modifiers": [], "name": "calcSingleOutGivenPoolIn", "nodeType": "FunctionDefinition", "parameters": { - "id": 782, + "id": 766, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 771, + "id": 755, "name": "tokenBalanceOut", "nodeType": "VariableDeclaration", - "scope": 864, + "scope": 848, "src": "10917:20:4", "stateVariable": false, "storageLocation": "default", @@ -14926,7 +14926,7 @@ "typeString": "uint256" }, "typeName": { - "id": 770, + "id": 754, "name": "uint", "nodeType": "ElementaryTypeName", "src": "10917:4:4", @@ -14940,10 +14940,10 @@ }, { "constant": false, - "id": 773, + "id": 757, "name": "tokenWeightOut", "nodeType": "VariableDeclaration", - "scope": 864, + "scope": 848, "src": "10947:19:4", "stateVariable": false, "storageLocation": "default", @@ -14952,7 +14952,7 @@ "typeString": "uint256" }, "typeName": { - "id": 772, + "id": 756, "name": "uint", "nodeType": "ElementaryTypeName", "src": "10947:4:4", @@ -14966,10 +14966,10 @@ }, { "constant": false, - "id": 775, + "id": 759, "name": "poolSupply", "nodeType": "VariableDeclaration", - "scope": 864, + "scope": 848, "src": "10976:15:4", "stateVariable": false, "storageLocation": "default", @@ -14978,7 +14978,7 @@ "typeString": "uint256" }, "typeName": { - "id": 774, + "id": 758, "name": "uint", "nodeType": "ElementaryTypeName", "src": "10976:4:4", @@ -14992,10 +14992,10 @@ }, { "constant": false, - "id": 777, + "id": 761, "name": "totalWeight", "nodeType": "VariableDeclaration", - "scope": 864, + "scope": 848, "src": "11001:16:4", "stateVariable": false, "storageLocation": "default", @@ -15004,7 +15004,7 @@ "typeString": "uint256" }, "typeName": { - "id": 776, + "id": 760, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11001:4:4", @@ -15018,10 +15018,10 @@ }, { "constant": false, - "id": 779, + "id": 763, "name": "poolAmountIn", "nodeType": "VariableDeclaration", - "scope": 864, + "scope": 848, "src": "11027:17:4", "stateVariable": false, "storageLocation": "default", @@ -15030,7 +15030,7 @@ "typeString": "uint256" }, "typeName": { - "id": 778, + "id": 762, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11027:4:4", @@ -15044,10 +15044,10 @@ }, { "constant": false, - "id": 781, + "id": 765, "name": "swapFee", "nodeType": "VariableDeclaration", - "scope": 864, + "scope": 848, "src": "11054:12:4", "stateVariable": false, "storageLocation": "default", @@ -15056,7 +15056,7 @@ "typeString": "uint256" }, "typeName": { - "id": 780, + "id": 764, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11054:4:4", @@ -15072,15 +15072,15 @@ "src": "10907:165:4" }, "returnParameters": { - "id": 785, + "id": 769, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 784, + "id": 768, "name": "tokenAmountOut", "nodeType": "VariableDeclaration", - "scope": 864, + "scope": 848, "src": "11110:19:4", "stateVariable": false, "storageLocation": "default", @@ -15089,7 +15089,7 @@ "typeString": "uint256" }, "typeName": { - "id": 783, + "id": 767, "name": "uint", "nodeType": "ElementaryTypeName", "src": "11110:4:4", @@ -15104,7 +15104,7 @@ ], "src": "11109:21:4" }, - "scope": 961, + "scope": 945, "src": "10874:1304:4", "stateMutability": "pure", "superFunction": null, @@ -15112,21 +15112,21 @@ }, { "body": { - "id": 959, + "id": 943, "nodeType": "Block", "src": "13545:1063:4", "statements": [ { "assignments": [ - 882 + 866 ], "declarations": [ { "constant": false, - "id": 882, + "id": 866, "name": "normalizedWeight", "nodeType": "VariableDeclaration", - "scope": 959, + "scope": 943, "src": "13609:21:4", "stateVariable": false, "storageLocation": "default", @@ -15135,7 +15135,7 @@ "typeString": "uint256" }, "typeName": { - "id": 881, + "id": 865, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13609:4:4", @@ -15148,17 +15148,17 @@ "visibility": "internal" } ], - "id": 887, + "id": 871, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 884, + "id": 868, "name": "tokenWeightOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 868, + "referencedDeclaration": 852, "src": "13638:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -15167,11 +15167,11 @@ }, { "argumentTypes": null, - "id": 885, + "id": 869, "name": "totalWeight", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 872, + "referencedDeclaration": 856, "src": "13654:11:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -15190,18 +15190,18 @@ "typeString": "uint256" } ], - "id": 883, + "id": 867, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "13633:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 886, + "id": 870, "isConstant": false, "isLValue": false, "isPure": false, @@ -15220,15 +15220,15 @@ }, { "assignments": [ - 889 + 873 ], "declarations": [ { "constant": false, - "id": 889, + "id": 873, "name": "zoo", "nodeType": "VariableDeclaration", - "scope": 959, + "scope": 943, "src": "13747:8:4", "stateVariable": false, "storageLocation": "default", @@ -15237,7 +15237,7 @@ "typeString": "uint256" }, "typeName": { - "id": 888, + "id": 872, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13747:4:4", @@ -15250,17 +15250,17 @@ "visibility": "internal" } ], - "id": 894, + "id": 878, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 891, + "id": 875, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "13763:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -15269,11 +15269,11 @@ }, { "argumentTypes": null, - "id": 892, + "id": 876, "name": "normalizedWeight", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 882, + "referencedDeclaration": 866, "src": "13769:16:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -15292,18 +15292,18 @@ "typeString": "uint256" } ], - "id": 890, + "id": 874, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "13758:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 893, + "id": 877, "isConstant": false, "isLValue": false, "isPure": false, @@ -15322,15 +15322,15 @@ }, { "assignments": [ - 896 + 880 ], "declarations": [ { "constant": false, - "id": 896, + "id": 880, "name": "zar", "nodeType": "VariableDeclaration", - "scope": 959, + "scope": 943, "src": "13796:8:4", "stateVariable": false, "storageLocation": "default", @@ -15339,7 +15339,7 @@ "typeString": "uint256" }, "typeName": { - "id": 895, + "id": 879, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13796:4:4", @@ -15352,17 +15352,17 @@ "visibility": "internal" } ], - "id": 901, + "id": 885, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 898, + "id": 882, "name": "zoo", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 889, + "referencedDeclaration": 873, "src": "13812:3:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -15371,11 +15371,11 @@ }, { "argumentTypes": null, - "id": 899, + "id": 883, "name": "swapFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 876, + "referencedDeclaration": 860, "src": "13817:7:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -15394,18 +15394,18 @@ "typeString": "uint256" } ], - "id": 897, + "id": 881, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "13807:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 900, + "id": 884, "isConstant": false, "isLValue": false, "isPure": false, @@ -15424,15 +15424,15 @@ }, { "assignments": [ - 903 + 887 ], "declarations": [ { "constant": false, - "id": 903, + "id": 887, "name": "tokenAmountOutBeforeSwapFee", "nodeType": "VariableDeclaration", - "scope": 959, + "scope": 943, "src": "13836:32:4", "stateVariable": false, "storageLocation": "default", @@ -15441,7 +15441,7 @@ "typeString": "uint256" }, "typeName": { - "id": 902, + "id": 886, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13836:4:4", @@ -15454,17 +15454,17 @@ "visibility": "internal" } ], - "id": 911, + "id": 895, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 905, + "id": 889, "name": "tokenAmountOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 874, + "referencedDeclaration": 858, "src": "13889:14:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -15476,11 +15476,11 @@ "arguments": [ { "argumentTypes": null, - "id": 907, + "id": 891, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "13923:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -15489,11 +15489,11 @@ }, { "argumentTypes": null, - "id": 908, + "id": 892, "name": "zar", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 896, + "referencedDeclaration": 880, "src": "13929:3:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -15512,18 +15512,18 @@ "typeString": "uint256" } ], - "id": 906, + "id": 890, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "13918:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 909, + "id": 893, "isConstant": false, "isLValue": false, "isPure": false, @@ -15549,18 +15549,18 @@ "typeString": "uint256" } ], - "id": 904, + "id": 888, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "13871:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 910, + "id": 894, "isConstant": false, "isLValue": false, "isPure": false, @@ -15579,15 +15579,15 @@ }, { "assignments": [ - 913 + 897 ], "declarations": [ { "constant": false, - "id": 913, + "id": 897, "name": "newTokenBalanceOut", "nodeType": "VariableDeclaration", - "scope": 959, + "scope": 943, "src": "13954:23:4", "stateVariable": false, "storageLocation": "default", @@ -15596,7 +15596,7 @@ "typeString": "uint256" }, "typeName": { - "id": 912, + "id": 896, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13954:4:4", @@ -15609,17 +15609,17 @@ "visibility": "internal" } ], - "id": 918, + "id": 902, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 915, + "id": 899, "name": "tokenBalanceOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 866, + "referencedDeclaration": 850, "src": "13998:15:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -15628,11 +15628,11 @@ }, { "argumentTypes": null, - "id": 916, + "id": 900, "name": "tokenAmountOutBeforeSwapFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 903, + "referencedDeclaration": 887, "src": "14028:27:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -15651,18 +15651,18 @@ "typeString": "uint256" } ], - "id": 914, + "id": 898, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "13980:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 917, + "id": 901, "isConstant": false, "isLValue": false, "isPure": false, @@ -15681,15 +15681,15 @@ }, { "assignments": [ - 920 + 904 ], "declarations": [ { "constant": false, - "id": 920, + "id": 904, "name": "tokenOutRatio", "nodeType": "VariableDeclaration", - "scope": 959, + "scope": 943, "src": "14075:18:4", "stateVariable": false, "storageLocation": "default", @@ -15698,7 +15698,7 @@ "typeString": "uint256" }, "typeName": { - "id": 919, + "id": 903, "name": "uint", "nodeType": "ElementaryTypeName", "src": "14075:4:4", @@ -15711,17 +15711,17 @@ "visibility": "internal" } ], - "id": 925, + "id": 909, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 922, + "id": 906, "name": "newTokenBalanceOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 913, + "referencedDeclaration": 897, "src": "14101:18:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -15730,11 +15730,11 @@ }, { "argumentTypes": null, - "id": 923, + "id": 907, "name": "tokenBalanceOut", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 866, + "referencedDeclaration": 850, "src": "14121:15:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -15753,18 +15753,18 @@ "typeString": "uint256" } ], - "id": 921, + "id": 905, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "14096:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 924, + "id": 908, "isConstant": false, "isLValue": false, "isPure": false, @@ -15783,15 +15783,15 @@ }, { "assignments": [ - 927 + 911 ], "declarations": [ { "constant": false, - "id": 927, + "id": 911, "name": "poolRatio", "nodeType": "VariableDeclaration", - "scope": 959, + "scope": 943, "src": "14214:14:4", "stateVariable": false, "storageLocation": "default", @@ -15800,7 +15800,7 @@ "typeString": "uint256" }, "typeName": { - "id": 926, + "id": 910, "name": "uint", "nodeType": "ElementaryTypeName", "src": "14214:4:4", @@ -15813,17 +15813,17 @@ "visibility": "internal" } ], - "id": 932, + "id": 916, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 929, + "id": 913, "name": "tokenOutRatio", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 920, + "referencedDeclaration": 904, "src": "14236:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -15832,11 +15832,11 @@ }, { "argumentTypes": null, - "id": 930, + "id": 914, "name": "normalizedWeight", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 882, + "referencedDeclaration": 866, "src": "14251:16:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -15855,18 +15855,18 @@ "typeString": "uint256" } ], - "id": 928, + "id": 912, "name": "bpow", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1314, + "referencedDeclaration": 1298, "src": "14231:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 931, + "id": 915, "isConstant": false, "isLValue": false, "isPure": false, @@ -15885,15 +15885,15 @@ }, { "assignments": [ - 934 + 918 ], "declarations": [ { "constant": false, - "id": 934, + "id": 918, "name": "newPoolSupply", "nodeType": "VariableDeclaration", - "scope": 959, + "scope": 943, "src": "14278:18:4", "stateVariable": false, "storageLocation": "default", @@ -15902,7 +15902,7 @@ "typeString": "uint256" }, "typeName": { - "id": 933, + "id": 917, "name": "uint", "nodeType": "ElementaryTypeName", "src": "14278:4:4", @@ -15915,17 +15915,17 @@ "visibility": "internal" } ], - "id": 939, + "id": 923, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 936, + "id": 920, "name": "poolRatio", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 927, + "referencedDeclaration": 911, "src": "14304:9:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -15934,11 +15934,11 @@ }, { "argumentTypes": null, - "id": 937, + "id": 921, "name": "poolSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 870, + "referencedDeclaration": 854, "src": "14315:10:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -15957,18 +15957,18 @@ "typeString": "uint256" } ], - "id": 935, + "id": 919, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "14299:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 938, + "id": 922, "isConstant": false, "isLValue": false, "isPure": false, @@ -15987,15 +15987,15 @@ }, { "assignments": [ - 941 + 925 ], "declarations": [ { "constant": false, - "id": 941, + "id": 925, "name": "poolAmountInAfterExitFee", "nodeType": "VariableDeclaration", - "scope": 959, + "scope": 943, "src": "14336:29:4", "stateVariable": false, "storageLocation": "default", @@ -16004,7 +16004,7 @@ "typeString": "uint256" }, "typeName": { - "id": 940, + "id": 924, "name": "uint", "nodeType": "ElementaryTypeName", "src": "14336:4:4", @@ -16017,17 +16017,17 @@ "visibility": "internal" } ], - "id": 946, + "id": 930, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 943, + "id": 927, "name": "poolSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 870, + "referencedDeclaration": 854, "src": "14373:10:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -16036,11 +16036,11 @@ }, { "argumentTypes": null, - "id": 944, + "id": 928, "name": "newPoolSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 934, + "referencedDeclaration": 918, "src": "14385:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -16059,18 +16059,18 @@ "typeString": "uint256" } ], - "id": 942, + "id": 926, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "14368:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 945, + "id": 929, "isConstant": false, "isLValue": false, "isPure": false, @@ -16090,18 +16090,18 @@ { "expression": { "argumentTypes": null, - "id": 955, + "id": 939, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 947, + "id": 931, "name": "poolAmountIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 879, + "referencedDeclaration": 863, "src": "14505:12:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -16115,11 +16115,11 @@ "arguments": [ { "argumentTypes": null, - "id": 949, + "id": 933, "name": "poolAmountInAfterExitFee", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 941, + "referencedDeclaration": 925, "src": "14525:24:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -16131,11 +16131,11 @@ "arguments": [ { "argumentTypes": null, - "id": 951, + "id": 935, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "14556:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -16144,11 +16144,11 @@ }, { "argumentTypes": null, - "id": 952, + "id": 936, "name": "EXIT_FEE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 227, + "referencedDeclaration": 223, "src": "14562:8:4", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -16167,18 +16167,18 @@ "typeString": "uint256" } ], - "id": 950, + "id": 934, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "14551:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 953, + "id": 937, "isConstant": false, "isLValue": false, "isPure": false, @@ -16204,18 +16204,18 @@ "typeString": "uint256" } ], - "id": 948, + "id": 932, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "14520:4:4", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 954, + "id": 938, "isConstant": false, "isLValue": false, "isPure": false, @@ -16235,48 +16235,48 @@ "typeString": "uint256" } }, - "id": 956, + "id": 940, "nodeType": "ExpressionStatement", "src": "14505:67:4" }, { "expression": { "argumentTypes": null, - "id": 957, + "id": 941, "name": "poolAmountIn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 879, + "referencedDeclaration": 863, "src": "14589:12:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 880, - "id": 958, + "functionReturnParameters": 864, + "id": 942, "nodeType": "Return", "src": "14582:19:4" } ] }, "documentation": "********************************************************************************************\n// calcPoolInGivenSingleOut //\n// pAi = poolAmountIn // / tAo \\\\ / wO \\ \\ //\n// bO = tokenBalanceOut // | bO - -------------------------- |\\ | ---- | \\ //\n// tAo = tokenAmountOut pS - || \\ 1 - ((1 - (tO / tW)) * sF)/ | ^ \\ tW / * pS | //\n// ps = poolSupply \\\\ -----------------------------------/ / //\n// wO = tokenWeightOut pAi = \\\\ bO / / //\n// tW = totalWeight ------------------------------------------------------------- //\n// sF = swapFee ( 1 - eF ) //\n// eF = exitFee //*********************************************************************************************", - "id": 960, + "id": 944, "implemented": true, "kind": "function", "modifiers": [], "name": "calcPoolInGivenSingleOut", "nodeType": "FunctionDefinition", "parameters": { - "id": 877, + "id": 861, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 866, + "id": 850, "name": "tokenBalanceOut", "nodeType": "VariableDeclaration", - "scope": 960, + "scope": 944, "src": "13327:20:4", "stateVariable": false, "storageLocation": "default", @@ -16285,7 +16285,7 @@ "typeString": "uint256" }, "typeName": { - "id": 865, + "id": 849, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13327:4:4", @@ -16299,10 +16299,10 @@ }, { "constant": false, - "id": 868, + "id": 852, "name": "tokenWeightOut", "nodeType": "VariableDeclaration", - "scope": 960, + "scope": 944, "src": "13357:19:4", "stateVariable": false, "storageLocation": "default", @@ -16311,7 +16311,7 @@ "typeString": "uint256" }, "typeName": { - "id": 867, + "id": 851, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13357:4:4", @@ -16325,10 +16325,10 @@ }, { "constant": false, - "id": 870, + "id": 854, "name": "poolSupply", "nodeType": "VariableDeclaration", - "scope": 960, + "scope": 944, "src": "13386:15:4", "stateVariable": false, "storageLocation": "default", @@ -16337,7 +16337,7 @@ "typeString": "uint256" }, "typeName": { - "id": 869, + "id": 853, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13386:4:4", @@ -16351,10 +16351,10 @@ }, { "constant": false, - "id": 872, + "id": 856, "name": "totalWeight", "nodeType": "VariableDeclaration", - "scope": 960, + "scope": 944, "src": "13411:16:4", "stateVariable": false, "storageLocation": "default", @@ -16363,7 +16363,7 @@ "typeString": "uint256" }, "typeName": { - "id": 871, + "id": 855, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13411:4:4", @@ -16377,10 +16377,10 @@ }, { "constant": false, - "id": 874, + "id": 858, "name": "tokenAmountOut", "nodeType": "VariableDeclaration", - "scope": 960, + "scope": 944, "src": "13437:19:4", "stateVariable": false, "storageLocation": "default", @@ -16389,7 +16389,7 @@ "typeString": "uint256" }, "typeName": { - "id": 873, + "id": 857, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13437:4:4", @@ -16403,10 +16403,10 @@ }, { "constant": false, - "id": 876, + "id": 860, "name": "swapFee", "nodeType": "VariableDeclaration", - "scope": 960, + "scope": 944, "src": "13466:12:4", "stateVariable": false, "storageLocation": "default", @@ -16415,7 +16415,7 @@ "typeString": "uint256" }, "typeName": { - "id": 875, + "id": 859, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13466:4:4", @@ -16431,15 +16431,15 @@ "src": "13317:167:4" }, "returnParameters": { - "id": 880, + "id": 864, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 879, + "id": 863, "name": "poolAmountIn", "nodeType": "VariableDeclaration", - "scope": 960, + "scope": 944, "src": "13522:17:4", "stateVariable": false, "storageLocation": "default", @@ -16448,7 +16448,7 @@ "typeString": "uint256" }, "typeName": { - "id": 878, + "id": 862, "name": "uint", "nodeType": "ElementaryTypeName", "src": "13522:4:4", @@ -16463,14 +16463,14 @@ ], "src": "13521:19:4" }, - "scope": 961, + "scope": 945, "src": "13284:1324:4", "stateMutability": "pure", "superFunction": null, "visibility": "public" } ], - "scope": 962, + "scope": 946, "src": "689:13923:4" } ], @@ -16482,7 +16482,7 @@ }, "networks": {}, "schemaVersion": "3.2.0", - "updatedAt": "2020-09-11T10:54:21.618Z", + "updatedAt": "2020-10-02T11:33:45.710Z", "devdoc": { "methods": {} }, diff --git a/artifacts/BNum.json b/artifacts/BNum.json index 4e313f07d..4d49d8bc0 100644 --- a/artifacts/BNum.json +++ b/artifacts/BNum.json @@ -237,14 +237,14 @@ "absolutePath": "/ocean/ocean-contracts/contracts/balancer/BNum.sol", "exportedSymbols": { "BNum": [ - 1438 + 1422 ] }, - "id": 1439, + "id": 1423, "nodeType": "SourceUnit", "nodes": [ { - "id": 963, + "id": 947, "literals": [ "solidity", "0.5", @@ -256,10 +256,10 @@ { "absolutePath": "/ocean/ocean-contracts/contracts/balancer/BConst.sol", "file": "./BConst.sol", - "id": 964, + "id": 948, "nodeType": "ImportDirective", - "scope": 1439, - "sourceUnit": 285, + "scope": 1423, + "sourceUnit": 281, "src": "667:22:5", "symbolAliases": [], "unitAlias": "" @@ -270,38 +270,38 @@ "arguments": null, "baseName": { "contractScope": null, - "id": 965, + "id": 949, "name": "BConst", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 284, + "referencedDeclaration": 280, "src": "708:6:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_BConst_$284", + "typeIdentifier": "t_contract$_BConst_$280", "typeString": "contract BConst" } }, - "id": 966, + "id": 950, "nodeType": "InheritanceSpecifier", "src": "708:6:5" } ], "contractDependencies": [ - 284 + 280 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, - "id": 1438, + "id": 1422, "linearizedBaseContracts": [ - 1438, - 284 + 1422, + 280 ], "name": "BNum", "nodeType": "ContractDefinition", "nodes": [ { "body": { - "id": 977, + "id": 961, "nodeType": "Block", "src": "794:32:5", "statements": [ @@ -312,18 +312,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 975, + "id": 959, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 973, + "id": 957, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 968, + "referencedDeclaration": 952, "src": "811:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -334,11 +334,11 @@ "operator": "/", "rightExpression": { "argumentTypes": null, - "id": 974, + "id": 958, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "815:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -351,30 +351,30 @@ "typeString": "uint256" } }, - "functionReturnParameters": 972, - "id": 976, + "functionReturnParameters": 956, + "id": 960, "nodeType": "Return", "src": "804:15:5" } ] }, "documentation": null, - "id": 978, + "id": 962, "implemented": true, "kind": "function", "modifiers": [], "name": "btoi", "nodeType": "FunctionDefinition", "parameters": { - "id": 969, + "id": 953, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 968, + "id": 952, "name": "a", "nodeType": "VariableDeclaration", - "scope": 978, + "scope": 962, "src": "736:6:5", "stateVariable": false, "storageLocation": "default", @@ -383,7 +383,7 @@ "typeString": "uint256" }, "typeName": { - "id": 967, + "id": 951, "name": "uint", "nodeType": "ElementaryTypeName", "src": "736:4:5", @@ -399,15 +399,15 @@ "src": "735:8:5" }, "returnParameters": { - "id": 972, + "id": 956, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 971, + "id": 955, "name": "", "nodeType": "VariableDeclaration", - "scope": 978, + "scope": 962, "src": "784:4:5", "stateVariable": false, "storageLocation": "default", @@ -416,7 +416,7 @@ "typeString": "uint256" }, "typeName": { - "id": 970, + "id": 954, "name": "uint", "nodeType": "ElementaryTypeName", "src": "784:4:5", @@ -431,7 +431,7 @@ ], "src": "783:6:5" }, - "scope": 1438, + "scope": 1422, "src": "722:104:5", "stateMutability": "pure", "superFunction": null, @@ -439,7 +439,7 @@ }, { "body": { - "id": 991, + "id": 975, "nodeType": "Block", "src": "905:38:5", "statements": [ @@ -450,7 +450,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 989, + "id": 973, "isConstant": false, "isLValue": false, "isPure": false, @@ -460,11 +460,11 @@ "arguments": [ { "argumentTypes": null, - "id": 986, + "id": 970, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 980, + "referencedDeclaration": 964, "src": "927:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -479,18 +479,18 @@ "typeString": "uint256" } ], - "id": 985, + "id": 969, "name": "btoi", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 978, + "referencedDeclaration": 962, "src": "922:4:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256) pure returns (uint256)" } }, - "id": 987, + "id": 971, "isConstant": false, "isLValue": false, "isPure": false, @@ -508,11 +508,11 @@ "operator": "*", "rightExpression": { "argumentTypes": null, - "id": 988, + "id": 972, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "932:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -525,30 +525,30 @@ "typeString": "uint256" } }, - "functionReturnParameters": 984, - "id": 990, + "functionReturnParameters": 968, + "id": 974, "nodeType": "Return", "src": "915:21:5" } ] }, "documentation": null, - "id": 992, + "id": 976, "implemented": true, "kind": "function", "modifiers": [], "name": "bfloor", "nodeType": "FunctionDefinition", "parameters": { - "id": 981, + "id": 965, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 980, + "id": 964, "name": "a", "nodeType": "VariableDeclaration", - "scope": 992, + "scope": 976, "src": "848:6:5", "stateVariable": false, "storageLocation": "default", @@ -557,7 +557,7 @@ "typeString": "uint256" }, "typeName": { - "id": 979, + "id": 963, "name": "uint", "nodeType": "ElementaryTypeName", "src": "848:4:5", @@ -573,15 +573,15 @@ "src": "847:8:5" }, "returnParameters": { - "id": 984, + "id": 968, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 983, + "id": 967, "name": "", "nodeType": "VariableDeclaration", - "scope": 992, + "scope": 976, "src": "895:4:5", "stateVariable": false, "storageLocation": "default", @@ -590,7 +590,7 @@ "typeString": "uint256" }, "typeName": { - "id": 982, + "id": 966, "name": "uint", "nodeType": "ElementaryTypeName", "src": "895:4:5", @@ -605,7 +605,7 @@ ], "src": "894:6:5" }, - "scope": 1438, + "scope": 1422, "src": "832:111:5", "stateMutability": "pure", "superFunction": null, @@ -613,21 +613,21 @@ }, { "body": { - "id": 1016, + "id": 1000, "nodeType": "Block", "src": "1028:94:5", "statements": [ { "assignments": [ - 1002 + 986 ], "declarations": [ { "constant": false, - "id": 1002, + "id": 986, "name": "c", "nodeType": "VariableDeclaration", - "scope": 1016, + "scope": 1000, "src": "1038:6:5", "stateVariable": false, "storageLocation": "default", @@ -636,7 +636,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1001, + "id": 985, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1038:4:5", @@ -649,25 +649,25 @@ "visibility": "internal" } ], - "id": 1006, + "id": 990, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1005, + "id": 989, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1003, + "id": 987, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 994, + "referencedDeclaration": 978, "src": "1047:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -678,11 +678,11 @@ "operator": "+", "rightExpression": { "argumentTypes": null, - "id": 1004, + "id": 988, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 996, + "referencedDeclaration": 980, "src": "1051:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -708,18 +708,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1010, + "id": 994, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1008, + "id": 992, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1002, + "referencedDeclaration": 986, "src": "1070:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -730,11 +730,11 @@ "operator": ">=", "rightExpression": { "argumentTypes": null, - "id": 1009, + "id": 993, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 994, + "referencedDeclaration": 978, "src": "1075:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -750,7 +750,7 @@ { "argumentTypes": null, "hexValue": "4552525f4144445f4f564552464c4f57", - "id": 1011, + "id": 995, "isConstant": false, "isLValue": false, "isPure": true, @@ -777,21 +777,21 @@ "typeString": "literal_string \"ERR_ADD_OVERFLOW\"" } ], - "id": 1007, + "id": 991, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "1062:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 1012, + "id": 996, "isConstant": false, "isLValue": false, "isPure": false, @@ -805,48 +805,48 @@ "typeString": "tuple()" } }, - "id": 1013, + "id": 997, "nodeType": "ExpressionStatement", "src": "1062:35:5" }, { "expression": { "argumentTypes": null, - "id": 1014, + "id": 998, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1002, + "referencedDeclaration": 986, "src": "1114:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 1000, - "id": 1015, + "functionReturnParameters": 984, + "id": 999, "nodeType": "Return", "src": "1107:8:5" } ] }, "documentation": null, - "id": 1017, + "id": 1001, "implemented": true, "kind": "function", "modifiers": [], "name": "badd", "nodeType": "FunctionDefinition", "parameters": { - "id": 997, + "id": 981, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 994, + "id": 978, "name": "a", "nodeType": "VariableDeclaration", - "scope": 1017, + "scope": 1001, "src": "963:6:5", "stateVariable": false, "storageLocation": "default", @@ -855,7 +855,7 @@ "typeString": "uint256" }, "typeName": { - "id": 993, + "id": 977, "name": "uint", "nodeType": "ElementaryTypeName", "src": "963:4:5", @@ -869,10 +869,10 @@ }, { "constant": false, - "id": 996, + "id": 980, "name": "b", "nodeType": "VariableDeclaration", - "scope": 1017, + "scope": 1001, "src": "971:6:5", "stateVariable": false, "storageLocation": "default", @@ -881,7 +881,7 @@ "typeString": "uint256" }, "typeName": { - "id": 995, + "id": 979, "name": "uint", "nodeType": "ElementaryTypeName", "src": "971:4:5", @@ -897,15 +897,15 @@ "src": "962:16:5" }, "returnParameters": { - "id": 1000, + "id": 984, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 999, + "id": 983, "name": "", "nodeType": "VariableDeclaration", - "scope": 1017, + "scope": 1001, "src": "1018:4:5", "stateVariable": false, "storageLocation": "default", @@ -914,7 +914,7 @@ "typeString": "uint256" }, "typeName": { - "id": 998, + "id": 982, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1018:4:5", @@ -929,7 +929,7 @@ ], "src": "1017:6:5" }, - "scope": 1438, + "scope": 1422, "src": "949:173:5", "stateMutability": "pure", "superFunction": null, @@ -937,22 +937,22 @@ }, { "body": { - "id": 1043, + "id": 1027, "nodeType": "Block", "src": "1207:116:5", "statements": [ { "assignments": [ - 1027, - 1029 + 1011, + 1013 ], "declarations": [ { "constant": false, - "id": 1027, + "id": 1011, "name": "c", "nodeType": "VariableDeclaration", - "scope": 1043, + "scope": 1027, "src": "1218:6:5", "stateVariable": false, "storageLocation": "default", @@ -961,7 +961,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1026, + "id": 1010, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1218:4:5", @@ -975,10 +975,10 @@ }, { "constant": false, - "id": 1029, + "id": 1013, "name": "flag", "nodeType": "VariableDeclaration", - "scope": 1043, + "scope": 1027, "src": "1226:9:5", "stateVariable": false, "storageLocation": "default", @@ -987,7 +987,7 @@ "typeString": "bool" }, "typeName": { - "id": 1028, + "id": 1012, "name": "bool", "nodeType": "ElementaryTypeName", "src": "1226:4:5", @@ -1000,17 +1000,17 @@ "visibility": "internal" } ], - "id": 1034, + "id": 1018, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 1031, + "id": 1015, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1019, + "referencedDeclaration": 1003, "src": "1248:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1019,11 +1019,11 @@ }, { "argumentTypes": null, - "id": 1032, + "id": 1016, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1021, + "referencedDeclaration": 1005, "src": "1251:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1042,18 +1042,18 @@ "typeString": "uint256" } ], - "id": 1030, + "id": 1014, "name": "bsubSign", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1074, + "referencedDeclaration": 1058, "src": "1239:8:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$_t_bool_$", "typeString": "function (uint256,uint256) pure returns (uint256,bool)" } }, - "id": 1033, + "id": 1017, "isConstant": false, "isLValue": false, "isPure": false, @@ -1076,7 +1076,7 @@ "arguments": [ { "argumentTypes": null, - "id": 1037, + "id": 1021, "isConstant": false, "isLValue": false, "isPure": false, @@ -1087,11 +1087,11 @@ "src": "1271:5:5", "subExpression": { "argumentTypes": null, - "id": 1036, + "id": 1020, "name": "flag", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1029, + "referencedDeclaration": 1013, "src": "1272:4:5", "typeDescriptions": { "typeIdentifier": "t_bool", @@ -1106,7 +1106,7 @@ { "argumentTypes": null, "hexValue": "4552525f5355425f554e444552464c4f57", - "id": 1038, + "id": 1022, "isConstant": false, "isLValue": false, "isPure": true, @@ -1133,21 +1133,21 @@ "typeString": "literal_string \"ERR_SUB_UNDERFLOW\"" } ], - "id": 1035, + "id": 1019, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "1263:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 1039, + "id": 1023, "isConstant": false, "isLValue": false, "isPure": false, @@ -1161,48 +1161,48 @@ "typeString": "tuple()" } }, - "id": 1040, + "id": 1024, "nodeType": "ExpressionStatement", "src": "1263:35:5" }, { "expression": { "argumentTypes": null, - "id": 1041, + "id": 1025, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1027, + "referencedDeclaration": 1011, "src": "1315:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 1025, - "id": 1042, + "functionReturnParameters": 1009, + "id": 1026, "nodeType": "Return", "src": "1308:8:5" } ] }, "documentation": null, - "id": 1044, + "id": 1028, "implemented": true, "kind": "function", "modifiers": [], "name": "bsub", "nodeType": "FunctionDefinition", "parameters": { - "id": 1022, + "id": 1006, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 1019, + "id": 1003, "name": "a", "nodeType": "VariableDeclaration", - "scope": 1044, + "scope": 1028, "src": "1142:6:5", "stateVariable": false, "storageLocation": "default", @@ -1211,7 +1211,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1018, + "id": 1002, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1142:4:5", @@ -1225,10 +1225,10 @@ }, { "constant": false, - "id": 1021, + "id": 1005, "name": "b", "nodeType": "VariableDeclaration", - "scope": 1044, + "scope": 1028, "src": "1150:6:5", "stateVariable": false, "storageLocation": "default", @@ -1237,7 +1237,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1020, + "id": 1004, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1150:4:5", @@ -1253,15 +1253,15 @@ "src": "1141:16:5" }, "returnParameters": { - "id": 1025, + "id": 1009, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 1024, + "id": 1008, "name": "", "nodeType": "VariableDeclaration", - "scope": 1044, + "scope": 1028, "src": "1197:4:5", "stateVariable": false, "storageLocation": "default", @@ -1270,7 +1270,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1023, + "id": 1007, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1197:4:5", @@ -1285,7 +1285,7 @@ ], "src": "1196:6:5" }, - "scope": 1438, + "scope": 1422, "src": "1128:195:5", "stateMutability": "pure", "superFunction": null, @@ -1293,7 +1293,7 @@ }, { "body": { - "id": 1073, + "id": 1057, "nodeType": "Block", "src": "1418:125:5", "statements": [ @@ -1304,18 +1304,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1057, + "id": 1041, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1055, + "id": 1039, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1046, + "referencedDeclaration": 1030, "src": "1432:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1326,11 +1326,11 @@ "operator": ">=", "rightExpression": { "argumentTypes": null, - "id": 1056, + "id": 1040, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1048, + "referencedDeclaration": 1032, "src": "1437:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1344,7 +1344,7 @@ } }, "falseBody": { - "id": 1071, + "id": 1055, "nodeType": "Block", "src": "1492:45:5", "statements": [ @@ -1358,18 +1358,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1067, + "id": 1051, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1065, + "id": 1049, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1048, + "referencedDeclaration": 1032, "src": "1514:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1380,11 +1380,11 @@ "operator": "-", "rightExpression": { "argumentTypes": null, - "id": 1066, + "id": 1050, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1046, + "referencedDeclaration": 1030, "src": "1518:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1400,7 +1400,7 @@ { "argumentTypes": null, "hexValue": "74727565", - "id": 1068, + "id": 1052, "isConstant": false, "isLValue": false, "isPure": true, @@ -1416,7 +1416,7 @@ "value": "true" } ], - "id": 1069, + "id": 1053, "isConstant": false, "isInlineArray": false, "isLValue": false, @@ -1429,18 +1429,18 @@ "typeString": "tuple(uint256,bool)" } }, - "functionReturnParameters": 1054, - "id": 1070, + "functionReturnParameters": 1038, + "id": 1054, "nodeType": "Return", "src": "1506:20:5" } ] }, - "id": 1072, + "id": 1056, "nodeType": "IfStatement", "src": "1428:109:5", "trueBody": { - "id": 1064, + "id": 1048, "nodeType": "Block", "src": "1440:46:5", "statements": [ @@ -1454,18 +1454,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1060, + "id": 1044, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1058, + "id": 1042, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1046, + "referencedDeclaration": 1030, "src": "1462:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1476,11 +1476,11 @@ "operator": "-", "rightExpression": { "argumentTypes": null, - "id": 1059, + "id": 1043, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1048, + "referencedDeclaration": 1032, "src": "1466:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1496,7 +1496,7 @@ { "argumentTypes": null, "hexValue": "66616c7365", - "id": 1061, + "id": 1045, "isConstant": false, "isLValue": false, "isPure": true, @@ -1512,7 +1512,7 @@ "value": "false" } ], - "id": 1062, + "id": 1046, "isConstant": false, "isInlineArray": false, "isLValue": false, @@ -1525,8 +1525,8 @@ "typeString": "tuple(uint256,bool)" } }, - "functionReturnParameters": 1054, - "id": 1063, + "functionReturnParameters": 1038, + "id": 1047, "nodeType": "Return", "src": "1454:21:5" } @@ -1536,22 +1536,22 @@ ] }, "documentation": null, - "id": 1074, + "id": 1058, "implemented": true, "kind": "function", "modifiers": [], "name": "bsubSign", "nodeType": "FunctionDefinition", "parameters": { - "id": 1049, + "id": 1033, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 1046, + "id": 1030, "name": "a", "nodeType": "VariableDeclaration", - "scope": 1074, + "scope": 1058, "src": "1347:6:5", "stateVariable": false, "storageLocation": "default", @@ -1560,7 +1560,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1045, + "id": 1029, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1347:4:5", @@ -1574,10 +1574,10 @@ }, { "constant": false, - "id": 1048, + "id": 1032, "name": "b", "nodeType": "VariableDeclaration", - "scope": 1074, + "scope": 1058, "src": "1355:6:5", "stateVariable": false, "storageLocation": "default", @@ -1586,7 +1586,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1047, + "id": 1031, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1355:4:5", @@ -1602,15 +1602,15 @@ "src": "1346:16:5" }, "returnParameters": { - "id": 1054, + "id": 1038, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 1051, + "id": 1035, "name": "", "nodeType": "VariableDeclaration", - "scope": 1074, + "scope": 1058, "src": "1402:4:5", "stateVariable": false, "storageLocation": "default", @@ -1619,7 +1619,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1050, + "id": 1034, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1402:4:5", @@ -1633,10 +1633,10 @@ }, { "constant": false, - "id": 1053, + "id": 1037, "name": "", "nodeType": "VariableDeclaration", - "scope": 1074, + "scope": 1058, "src": "1408:4:5", "stateVariable": false, "storageLocation": "default", @@ -1645,7 +1645,7 @@ "typeString": "bool" }, "typeName": { - "id": 1052, + "id": 1036, "name": "bool", "nodeType": "ElementaryTypeName", "src": "1408:4:5", @@ -1660,7 +1660,7 @@ ], "src": "1401:12:5" }, - "scope": 1438, + "scope": 1422, "src": "1329:214:5", "stateMutability": "pure", "superFunction": null, @@ -1668,21 +1668,21 @@ }, { "body": { - "id": 1126, + "id": 1110, "nodeType": "Block", "src": "1628:222:5", "statements": [ { "assignments": [ - 1084 + 1068 ], "declarations": [ { "constant": false, - "id": 1084, + "id": 1068, "name": "c0", "nodeType": "VariableDeclaration", - "scope": 1126, + "scope": 1110, "src": "1638:7:5", "stateVariable": false, "storageLocation": "default", @@ -1691,7 +1691,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1083, + "id": 1067, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1638:4:5", @@ -1704,25 +1704,25 @@ "visibility": "internal" } ], - "id": 1088, + "id": 1072, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1087, + "id": 1071, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1085, + "id": 1069, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1076, + "referencedDeclaration": 1060, "src": "1648:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1733,11 +1733,11 @@ "operator": "*", "rightExpression": { "argumentTypes": null, - "id": 1086, + "id": 1070, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1078, + "referencedDeclaration": 1062, "src": "1652:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1763,7 +1763,7 @@ "typeIdentifier": "t_bool", "typeString": "bool" }, - "id": 1098, + "id": 1082, "isConstant": false, "isLValue": false, "isPure": false, @@ -1774,18 +1774,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1092, + "id": 1076, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1090, + "id": 1074, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1076, + "referencedDeclaration": 1060, "src": "1671:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1797,7 +1797,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 1091, + "id": 1075, "isConstant": false, "isLValue": false, "isPure": true, @@ -1826,7 +1826,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1097, + "id": 1081, "isConstant": false, "isLValue": false, "isPure": false, @@ -1837,18 +1837,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1095, + "id": 1079, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1093, + "id": 1077, "name": "c0", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1084, + "referencedDeclaration": 1068, "src": "1681:2:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1859,11 +1859,11 @@ "operator": "/", "rightExpression": { "argumentTypes": null, - "id": 1094, + "id": 1078, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1076, + "referencedDeclaration": 1060, "src": "1686:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1880,11 +1880,11 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 1096, + "id": 1080, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1078, + "referencedDeclaration": 1062, "src": "1691:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1906,7 +1906,7 @@ { "argumentTypes": null, "hexValue": "4552525f4d554c5f4f564552464c4f57", - "id": 1099, + "id": 1083, "isConstant": false, "isLValue": false, "isPure": true, @@ -1933,21 +1933,21 @@ "typeString": "literal_string \"ERR_MUL_OVERFLOW\"" } ], - "id": 1089, + "id": 1073, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "1663:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 1100, + "id": 1084, "isConstant": false, "isLValue": false, "isPure": false, @@ -1961,21 +1961,21 @@ "typeString": "tuple()" } }, - "id": 1101, + "id": 1085, "nodeType": "ExpressionStatement", "src": "1663:50:5" }, { "assignments": [ - 1103 + 1087 ], "declarations": [ { "constant": false, - "id": 1103, + "id": 1087, "name": "c1", "nodeType": "VariableDeclaration", - "scope": 1126, + "scope": 1110, "src": "1723:7:5", "stateVariable": false, "storageLocation": "default", @@ -1984,7 +1984,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1102, + "id": 1086, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1723:4:5", @@ -1997,25 +1997,25 @@ "visibility": "internal" } ], - "id": 1110, + "id": 1094, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1109, + "id": 1093, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1104, + "id": 1088, "name": "c0", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1084, + "referencedDeclaration": 1068, "src": "1733:2:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2033,18 +2033,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1107, + "id": 1091, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1105, + "id": 1089, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "1739:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2056,7 +2056,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "32", - "id": 1106, + "id": 1090, "isConstant": false, "isLValue": false, "isPure": true, @@ -2078,7 +2078,7 @@ } } ], - "id": 1108, + "id": 1092, "isConstant": false, "isInlineArray": false, "isLValue": false, @@ -2110,18 +2110,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1114, + "id": 1098, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1112, + "id": 1096, "name": "c1", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1103, + "referencedDeclaration": 1087, "src": "1766:2:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2132,11 +2132,11 @@ "operator": ">=", "rightExpression": { "argumentTypes": null, - "id": 1113, + "id": 1097, "name": "c0", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1084, + "referencedDeclaration": 1068, "src": "1772:2:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2152,7 +2152,7 @@ { "argumentTypes": null, "hexValue": "4552525f4d554c5f4f564552464c4f57", - "id": 1115, + "id": 1099, "isConstant": false, "isLValue": false, "isPure": true, @@ -2179,21 +2179,21 @@ "typeString": "literal_string \"ERR_MUL_OVERFLOW\"" } ], - "id": 1111, + "id": 1095, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "1758:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 1116, + "id": 1100, "isConstant": false, "isLValue": false, "isPure": false, @@ -2207,21 +2207,21 @@ "typeString": "tuple()" } }, - "id": 1117, + "id": 1101, "nodeType": "ExpressionStatement", "src": "1758:37:5" }, { "assignments": [ - 1119 + 1103 ], "declarations": [ { "constant": false, - "id": 1119, + "id": 1103, "name": "c2", "nodeType": "VariableDeclaration", - "scope": 1126, + "scope": 1110, "src": "1805:7:5", "stateVariable": false, "storageLocation": "default", @@ -2230,7 +2230,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1118, + "id": 1102, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1805:4:5", @@ -2243,25 +2243,25 @@ "visibility": "internal" } ], - "id": 1123, + "id": 1107, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1122, + "id": 1106, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1120, + "id": 1104, "name": "c1", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1103, + "referencedDeclaration": 1087, "src": "1815:2:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2272,11 +2272,11 @@ "operator": "/", "rightExpression": { "argumentTypes": null, - "id": 1121, + "id": 1105, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "1820:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2295,41 +2295,41 @@ { "expression": { "argumentTypes": null, - "id": 1124, + "id": 1108, "name": "c2", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1119, + "referencedDeclaration": 1103, "src": "1841:2:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 1082, - "id": 1125, + "functionReturnParameters": 1066, + "id": 1109, "nodeType": "Return", "src": "1834:9:5" } ] }, "documentation": null, - "id": 1127, + "id": 1111, "implemented": true, "kind": "function", "modifiers": [], "name": "bmul", "nodeType": "FunctionDefinition", "parameters": { - "id": 1079, + "id": 1063, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 1076, + "id": 1060, "name": "a", "nodeType": "VariableDeclaration", - "scope": 1127, + "scope": 1111, "src": "1563:6:5", "stateVariable": false, "storageLocation": "default", @@ -2338,7 +2338,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1075, + "id": 1059, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1563:4:5", @@ -2352,10 +2352,10 @@ }, { "constant": false, - "id": 1078, + "id": 1062, "name": "b", "nodeType": "VariableDeclaration", - "scope": 1127, + "scope": 1111, "src": "1571:6:5", "stateVariable": false, "storageLocation": "default", @@ -2364,7 +2364,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1077, + "id": 1061, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1571:4:5", @@ -2380,15 +2380,15 @@ "src": "1562:16:5" }, "returnParameters": { - "id": 1082, + "id": 1066, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 1081, + "id": 1065, "name": "", "nodeType": "VariableDeclaration", - "scope": 1127, + "scope": 1111, "src": "1618:4:5", "stateVariable": false, "storageLocation": "default", @@ -2397,7 +2397,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1080, + "id": 1064, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1618:4:5", @@ -2412,7 +2412,7 @@ ], "src": "1617:6:5" }, - "scope": 1438, + "scope": 1422, "src": "1549:301:5", "stateMutability": "pure", "superFunction": null, @@ -2420,7 +2420,7 @@ }, { "body": { - "id": 1186, + "id": 1170, "nodeType": "Block", "src": "1935:297:5", "statements": [ @@ -2434,18 +2434,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1139, + "id": 1123, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1137, + "id": 1121, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1131, + "referencedDeclaration": 1115, "src": "1953:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2457,7 +2457,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 1138, + "id": 1122, "isConstant": false, "isLValue": false, "isPure": true, @@ -2481,7 +2481,7 @@ { "argumentTypes": null, "hexValue": "4552525f4449565f5a45524f", - "id": 1140, + "id": 1124, "isConstant": false, "isLValue": false, "isPure": true, @@ -2508,21 +2508,21 @@ "typeString": "literal_string \"ERR_DIV_ZERO\"" } ], - "id": 1136, + "id": 1120, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "1945:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 1141, + "id": 1125, "isConstant": false, "isLValue": false, "isPure": false, @@ -2536,21 +2536,21 @@ "typeString": "tuple()" } }, - "id": 1142, + "id": 1126, "nodeType": "ExpressionStatement", "src": "1945:31:5" }, { "assignments": [ - 1144 + 1128 ], "declarations": [ { "constant": false, - "id": 1144, + "id": 1128, "name": "c0", "nodeType": "VariableDeclaration", - "scope": 1186, + "scope": 1170, "src": "1986:7:5", "stateVariable": false, "storageLocation": "default", @@ -2559,7 +2559,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1143, + "id": 1127, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1986:4:5", @@ -2572,25 +2572,25 @@ "visibility": "internal" } ], - "id": 1148, + "id": 1132, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1147, + "id": 1131, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1145, + "id": 1129, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1129, + "referencedDeclaration": 1113, "src": "1996:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2601,11 +2601,11 @@ "operator": "*", "rightExpression": { "argumentTypes": null, - "id": 1146, + "id": 1130, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "2000:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2631,7 +2631,7 @@ "typeIdentifier": "t_bool", "typeString": "bool" }, - "id": 1158, + "id": 1142, "isConstant": false, "isLValue": false, "isPure": false, @@ -2642,18 +2642,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1152, + "id": 1136, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1150, + "id": 1134, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1129, + "referencedDeclaration": 1113, "src": "2022:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2665,7 +2665,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 1151, + "id": 1135, "isConstant": false, "isLValue": false, "isPure": true, @@ -2694,7 +2694,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1157, + "id": 1141, "isConstant": false, "isLValue": false, "isPure": false, @@ -2705,18 +2705,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1155, + "id": 1139, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1153, + "id": 1137, "name": "c0", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1144, + "referencedDeclaration": 1128, "src": "2032:2:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2727,11 +2727,11 @@ "operator": "/", "rightExpression": { "argumentTypes": null, - "id": 1154, + "id": 1138, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1129, + "referencedDeclaration": 1113, "src": "2037:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2748,11 +2748,11 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 1156, + "id": 1140, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "2042:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2774,7 +2774,7 @@ { "argumentTypes": null, "hexValue": "4552525f4449565f494e5445524e414c", - "id": 1159, + "id": 1143, "isConstant": false, "isLValue": false, "isPure": true, @@ -2801,21 +2801,21 @@ "typeString": "literal_string \"ERR_DIV_INTERNAL\"" } ], - "id": 1149, + "id": 1133, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "2014:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 1160, + "id": 1144, "isConstant": false, "isLValue": false, "isPure": false, @@ -2829,21 +2829,21 @@ "typeString": "tuple()" } }, - "id": 1161, + "id": 1145, "nodeType": "ExpressionStatement", "src": "2014:53:5" }, { "assignments": [ - 1163 + 1147 ], "declarations": [ { "constant": false, - "id": 1163, + "id": 1147, "name": "c1", "nodeType": "VariableDeclaration", - "scope": 1186, + "scope": 1170, "src": "2094:7:5", "stateVariable": false, "storageLocation": "default", @@ -2852,7 +2852,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1162, + "id": 1146, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2094:4:5", @@ -2865,25 +2865,25 @@ "visibility": "internal" } ], - "id": 1170, + "id": 1154, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1169, + "id": 1153, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1164, + "id": 1148, "name": "c0", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1144, + "referencedDeclaration": 1128, "src": "2104:2:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2901,18 +2901,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1167, + "id": 1151, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1165, + "id": 1149, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1131, + "referencedDeclaration": 1115, "src": "2110:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2924,7 +2924,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "32", - "id": 1166, + "id": 1150, "isConstant": false, "isLValue": false, "isPure": true, @@ -2946,7 +2946,7 @@ } } ], - "id": 1168, + "id": 1152, "isConstant": false, "isInlineArray": false, "isLValue": false, @@ -2978,18 +2978,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1174, + "id": 1158, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1172, + "id": 1156, "name": "c1", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1163, + "referencedDeclaration": 1147, "src": "2134:2:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3000,11 +3000,11 @@ "operator": ">=", "rightExpression": { "argumentTypes": null, - "id": 1173, + "id": 1157, "name": "c0", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1144, + "referencedDeclaration": 1128, "src": "2140:2:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3020,7 +3020,7 @@ { "argumentTypes": null, "hexValue": "4552525f4449565f494e5445524e414c", - "id": 1175, + "id": 1159, "isConstant": false, "isLValue": false, "isPure": true, @@ -3047,21 +3047,21 @@ "typeString": "literal_string \"ERR_DIV_INTERNAL\"" } ], - "id": 1171, + "id": 1155, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "2126:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 1176, + "id": 1160, "isConstant": false, "isLValue": false, "isPure": false, @@ -3075,21 +3075,21 @@ "typeString": "tuple()" } }, - "id": 1177, + "id": 1161, "nodeType": "ExpressionStatement", "src": "2126:37:5" }, { "assignments": [ - 1179 + 1163 ], "declarations": [ { "constant": false, - "id": 1179, + "id": 1163, "name": "c2", "nodeType": "VariableDeclaration", - "scope": 1186, + "scope": 1170, "src": "2190:7:5", "stateVariable": false, "storageLocation": "default", @@ -3098,7 +3098,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1178, + "id": 1162, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2190:4:5", @@ -3111,25 +3111,25 @@ "visibility": "internal" } ], - "id": 1183, + "id": 1167, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1182, + "id": 1166, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1180, + "id": 1164, "name": "c1", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1163, + "referencedDeclaration": 1147, "src": "2200:2:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3140,11 +3140,11 @@ "operator": "/", "rightExpression": { "argumentTypes": null, - "id": 1181, + "id": 1165, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1131, + "referencedDeclaration": 1115, "src": "2205:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3163,41 +3163,41 @@ { "expression": { "argumentTypes": null, - "id": 1184, + "id": 1168, "name": "c2", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1179, + "referencedDeclaration": 1163, "src": "2223:2:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 1135, - "id": 1185, + "functionReturnParameters": 1119, + "id": 1169, "nodeType": "Return", "src": "2216:9:5" } ] }, "documentation": null, - "id": 1187, + "id": 1171, "implemented": true, "kind": "function", "modifiers": [], "name": "bdiv", "nodeType": "FunctionDefinition", "parameters": { - "id": 1132, + "id": 1116, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 1129, + "id": 1113, "name": "a", "nodeType": "VariableDeclaration", - "scope": 1187, + "scope": 1171, "src": "1870:6:5", "stateVariable": false, "storageLocation": "default", @@ -3206,7 +3206,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1128, + "id": 1112, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1870:4:5", @@ -3220,10 +3220,10 @@ }, { "constant": false, - "id": 1131, + "id": 1115, "name": "b", "nodeType": "VariableDeclaration", - "scope": 1187, + "scope": 1171, "src": "1878:6:5", "stateVariable": false, "storageLocation": "default", @@ -3232,7 +3232,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1130, + "id": 1114, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1878:4:5", @@ -3248,15 +3248,15 @@ "src": "1869:16:5" }, "returnParameters": { - "id": 1135, + "id": 1119, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 1134, + "id": 1118, "name": "", "nodeType": "VariableDeclaration", - "scope": 1187, + "scope": 1171, "src": "1925:4:5", "stateVariable": false, "storageLocation": "default", @@ -3265,7 +3265,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1133, + "id": 1117, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1925:4:5", @@ -3280,7 +3280,7 @@ ], "src": "1924:6:5" }, - "scope": 1438, + "scope": 1422, "src": "1856:376:5", "stateMutability": "pure", "superFunction": null, @@ -3288,21 +3288,21 @@ }, { "body": { - "id": 1247, + "id": 1231, "nodeType": "Block", "src": "2337:240:5", "statements": [ { "assignments": [ - 1197 + 1181 ], "declarations": [ { "constant": false, - "id": 1197, + "id": 1181, "name": "b", "nodeType": "VariableDeclaration", - "scope": 1247, + "scope": 1231, "src": "2347:6:5", "stateVariable": false, "storageLocation": "default", @@ -3311,7 +3311,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1196, + "id": 1180, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2347:4:5", @@ -3324,14 +3324,14 @@ "visibility": "internal" } ], - "id": 1199, + "id": 1183, "initialValue": { "argumentTypes": null, - "id": 1198, + "id": 1182, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1189, + "referencedDeclaration": 1173, "src": "2356:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3343,15 +3343,15 @@ }, { "assignments": [ - 1201 + 1185 ], "declarations": [ { "constant": false, - "id": 1201, + "id": 1185, "name": "z", "nodeType": "VariableDeclaration", - "scope": 1247, + "scope": 1231, "src": "2367:6:5", "stateVariable": false, "storageLocation": "default", @@ -3360,7 +3360,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1200, + "id": 1184, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2367:4:5", @@ -3373,7 +3373,7 @@ "visibility": "internal" } ], - "id": 1210, + "id": 1194, "initialValue": { "argumentTypes": null, "condition": { @@ -3382,7 +3382,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1206, + "id": 1190, "isConstant": false, "isLValue": false, "isPure": false, @@ -3393,18 +3393,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1204, + "id": 1188, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1202, + "id": 1186, "name": "n", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1191, + "referencedDeclaration": 1175, "src": "2376:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3416,7 +3416,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "32", - "id": 1203, + "id": 1187, "isConstant": false, "isLValue": false, "isPure": true, @@ -3442,7 +3442,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 1205, + "id": 1189, "isConstant": false, "isLValue": false, "isPure": true, @@ -3465,18 +3465,18 @@ }, "falseExpression": { "argumentTypes": null, - "id": 1208, + "id": 1192, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "2393:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 1209, + "id": 1193, "isConstant": false, "isLValue": false, "isPure": false, @@ -3485,11 +3485,11 @@ "src": "2376:21:5", "trueExpression": { "argumentTypes": null, - "id": 1207, + "id": 1191, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1197, + "referencedDeclaration": 1181, "src": "2389:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3506,25 +3506,25 @@ }, { "body": { - "id": 1243, + "id": 1227, "nodeType": "Block", "src": "2437:116:5", "statements": [ { "expression": { "argumentTypes": null, - "id": 1227, + "id": 1211, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 1222, + "id": 1206, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1197, + "referencedDeclaration": 1181, "src": "2451:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3538,11 +3538,11 @@ "arguments": [ { "argumentTypes": null, - "id": 1224, + "id": 1208, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1197, + "referencedDeclaration": 1181, "src": "2460:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3551,11 +3551,11 @@ }, { "argumentTypes": null, - "id": 1225, + "id": 1209, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1197, + "referencedDeclaration": 1181, "src": "2463:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3574,18 +3574,18 @@ "typeString": "uint256" } ], - "id": 1223, + "id": 1207, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "2455:4:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 1226, + "id": 1210, "isConstant": false, "isLValue": false, "isPure": false, @@ -3605,7 +3605,7 @@ "typeString": "uint256" } }, - "id": 1228, + "id": 1212, "nodeType": "ExpressionStatement", "src": "2451:14:5" }, @@ -3616,7 +3616,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1233, + "id": 1217, "isConstant": false, "isLValue": false, "isPure": false, @@ -3627,18 +3627,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1231, + "id": 1215, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1229, + "id": 1213, "name": "n", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1191, + "referencedDeclaration": 1175, "src": "2484:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3650,7 +3650,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "32", - "id": 1230, + "id": 1214, "isConstant": false, "isLValue": false, "isPure": true, @@ -3676,7 +3676,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 1232, + "id": 1216, "isConstant": false, "isLValue": false, "isPure": true, @@ -3698,29 +3698,29 @@ } }, "falseBody": null, - "id": 1242, + "id": 1226, "nodeType": "IfStatement", "src": "2480:63:5", "trueBody": { - "id": 1241, + "id": 1225, "nodeType": "Block", "src": "2496:47:5", "statements": [ { "expression": { "argumentTypes": null, - "id": 1239, + "id": 1223, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 1234, + "id": 1218, "name": "z", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1201, + "referencedDeclaration": 1185, "src": "2514:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3734,11 +3734,11 @@ "arguments": [ { "argumentTypes": null, - "id": 1236, + "id": 1220, "name": "z", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1201, + "referencedDeclaration": 1185, "src": "2523:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3747,11 +3747,11 @@ }, { "argumentTypes": null, - "id": 1237, + "id": 1221, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1197, + "referencedDeclaration": 1181, "src": "2526:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3770,18 +3770,18 @@ "typeString": "uint256" } ], - "id": 1235, + "id": 1219, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "2518:4:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 1238, + "id": 1222, "isConstant": false, "isLValue": false, "isPure": false, @@ -3801,7 +3801,7 @@ "typeString": "uint256" } }, - "id": 1240, + "id": 1224, "nodeType": "ExpressionStatement", "src": "2514:14:5" } @@ -3816,18 +3816,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1217, + "id": 1201, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1215, + "id": 1199, "name": "n", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1191, + "referencedDeclaration": 1175, "src": "2421:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3839,7 +3839,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 1216, + "id": 1200, "isConstant": false, "isLValue": false, "isPure": true, @@ -3860,22 +3860,22 @@ "typeString": "bool" } }, - "id": 1244, + "id": 1228, "initializationExpression": { "expression": { "argumentTypes": null, - "id": 1213, + "id": 1197, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 1211, + "id": 1195, "name": "n", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1191, + "referencedDeclaration": 1175, "src": "2413:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3887,7 +3887,7 @@ "rightHandSide": { "argumentTypes": null, "hexValue": "32", - "id": 1212, + "id": 1196, "isConstant": false, "isLValue": false, "isPure": true, @@ -3908,25 +3908,25 @@ "typeString": "uint256" } }, - "id": 1214, + "id": 1198, "nodeType": "ExpressionStatement", "src": "2413:6:5" }, "loopExpression": { "expression": { "argumentTypes": null, - "id": 1220, + "id": 1204, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 1218, + "id": 1202, "name": "n", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1191, + "referencedDeclaration": 1175, "src": "2429:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3938,7 +3938,7 @@ "rightHandSide": { "argumentTypes": null, "hexValue": "32", - "id": 1219, + "id": 1203, "isConstant": false, "isLValue": false, "isPure": true, @@ -3959,7 +3959,7 @@ "typeString": "uint256" } }, - "id": 1221, + "id": 1205, "nodeType": "ExpressionStatement", "src": "2429:6:5" }, @@ -3969,41 +3969,41 @@ { "expression": { "argumentTypes": null, - "id": 1245, + "id": 1229, "name": "z", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1201, + "referencedDeclaration": 1185, "src": "2569:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 1195, - "id": 1246, + "functionReturnParameters": 1179, + "id": 1230, "nodeType": "Return", "src": "2562:8:5" } ] }, "documentation": null, - "id": 1248, + "id": 1232, "implemented": true, "kind": "function", "modifiers": [], "name": "bpowi", "nodeType": "FunctionDefinition", "parameters": { - "id": 1192, + "id": 1176, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 1189, + "id": 1173, "name": "a", "nodeType": "VariableDeclaration", - "scope": 1248, + "scope": 1232, "src": "2272:6:5", "stateVariable": false, "storageLocation": "default", @@ -4012,7 +4012,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1188, + "id": 1172, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2272:4:5", @@ -4026,10 +4026,10 @@ }, { "constant": false, - "id": 1191, + "id": 1175, "name": "n", "nodeType": "VariableDeclaration", - "scope": 1248, + "scope": 1232, "src": "2280:6:5", "stateVariable": false, "storageLocation": "default", @@ -4038,7 +4038,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1190, + "id": 1174, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2280:4:5", @@ -4054,15 +4054,15 @@ "src": "2271:16:5" }, "returnParameters": { - "id": 1195, + "id": 1179, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 1194, + "id": 1178, "name": "", "nodeType": "VariableDeclaration", - "scope": 1248, + "scope": 1232, "src": "2327:4:5", "stateVariable": false, "storageLocation": "default", @@ -4071,7 +4071,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1193, + "id": 1177, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2327:4:5", @@ -4086,7 +4086,7 @@ ], "src": "2326:6:5" }, - "scope": 1438, + "scope": 1422, "src": "2257:320:5", "stateMutability": "pure", "superFunction": null, @@ -4094,7 +4094,7 @@ }, { "body": { - "id": 1313, + "id": 1297, "nodeType": "Block", "src": "2817:453:5", "statements": [ @@ -4108,18 +4108,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1260, + "id": 1244, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1258, + "id": 1242, "name": "base", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1250, + "referencedDeclaration": 1234, "src": "2835:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4130,11 +4130,11 @@ "operator": ">=", "rightExpression": { "argumentTypes": null, - "id": 1259, + "id": 1243, "name": "MIN_BPOW_BASE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 255, + "referencedDeclaration": 251, "src": "2843:13:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4150,7 +4150,7 @@ { "argumentTypes": null, "hexValue": "4552525f42504f575f424153455f544f4f5f4c4f57", - "id": 1261, + "id": 1245, "isConstant": false, "isLValue": false, "isPure": true, @@ -4177,21 +4177,21 @@ "typeString": "literal_string \"ERR_BPOW_BASE_TOO_LOW\"" } ], - "id": 1257, + "id": 1241, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "2827:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 1262, + "id": 1246, "isConstant": false, "isLValue": false, "isPure": false, @@ -4205,7 +4205,7 @@ "typeString": "tuple()" } }, - "id": 1263, + "id": 1247, "nodeType": "ExpressionStatement", "src": "2827:55:5" }, @@ -4219,18 +4219,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1267, + "id": 1251, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1265, + "id": 1249, "name": "base", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1250, + "referencedDeclaration": 1234, "src": "2900:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4241,11 +4241,11 @@ "operator": "<=", "rightExpression": { "argumentTypes": null, - "id": 1266, + "id": 1250, "name": "MAX_BPOW_BASE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 263, + "referencedDeclaration": 259, "src": "2908:13:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4261,7 +4261,7 @@ { "argumentTypes": null, "hexValue": "4552525f42504f575f424153455f544f4f5f48494748", - "id": 1268, + "id": 1252, "isConstant": false, "isLValue": false, "isPure": true, @@ -4288,21 +4288,21 @@ "typeString": "literal_string \"ERR_BPOW_BASE_TOO_HIGH\"" } ], - "id": 1264, + "id": 1248, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "2892:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 1269, + "id": 1253, "isConstant": false, "isLValue": false, "isPure": false, @@ -4316,21 +4316,21 @@ "typeString": "tuple()" } }, - "id": 1270, + "id": 1254, "nodeType": "ExpressionStatement", "src": "2892:56:5" }, { "assignments": [ - 1272 + 1256 ], "declarations": [ { "constant": false, - "id": 1272, + "id": 1256, "name": "whole", "nodeType": "VariableDeclaration", - "scope": 1313, + "scope": 1297, "src": "2959:10:5", "stateVariable": false, "storageLocation": "default", @@ -4339,7 +4339,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1271, + "id": 1255, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2959:4:5", @@ -4352,17 +4352,17 @@ "visibility": "internal" } ], - "id": 1276, + "id": 1260, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 1274, + "id": 1258, "name": "exp", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1252, + "referencedDeclaration": 1236, "src": "2980:3:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4377,18 +4377,18 @@ "typeString": "uint256" } ], - "id": 1273, + "id": 1257, "name": "bfloor", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 992, + "referencedDeclaration": 976, "src": "2973:6:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256) pure returns (uint256)" } }, - "id": 1275, + "id": 1259, "isConstant": false, "isLValue": false, "isPure": false, @@ -4407,15 +4407,15 @@ }, { "assignments": [ - 1278 + 1262 ], "declarations": [ { "constant": false, - "id": 1278, + "id": 1262, "name": "remain", "nodeType": "VariableDeclaration", - "scope": 1313, + "scope": 1297, "src": "2997:11:5", "stateVariable": false, "storageLocation": "default", @@ -4424,7 +4424,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1277, + "id": 1261, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2997:4:5", @@ -4437,17 +4437,17 @@ "visibility": "internal" } ], - "id": 1283, + "id": 1267, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 1280, + "id": 1264, "name": "exp", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1252, + "referencedDeclaration": 1236, "src": "3016:3:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4456,11 +4456,11 @@ }, { "argumentTypes": null, - "id": 1281, + "id": 1265, "name": "whole", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1272, + "referencedDeclaration": 1256, "src": "3021:5:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4479,18 +4479,18 @@ "typeString": "uint256" } ], - "id": 1279, + "id": 1263, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "3011:4:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 1282, + "id": 1266, "isConstant": false, "isLValue": false, "isPure": false, @@ -4509,15 +4509,15 @@ }, { "assignments": [ - 1285 + 1269 ], "declarations": [ { "constant": false, - "id": 1285, + "id": 1269, "name": "wholePow", "nodeType": "VariableDeclaration", - "scope": 1313, + "scope": 1297, "src": "3038:13:5", "stateVariable": false, "storageLocation": "default", @@ -4526,7 +4526,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1284, + "id": 1268, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3038:4:5", @@ -4539,17 +4539,17 @@ "visibility": "internal" } ], - "id": 1292, + "id": 1276, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 1287, + "id": 1271, "name": "base", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1250, + "referencedDeclaration": 1234, "src": "3060:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4561,11 +4561,11 @@ "arguments": [ { "argumentTypes": null, - "id": 1289, + "id": 1273, "name": "whole", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1272, + "referencedDeclaration": 1256, "src": "3071:5:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4580,18 +4580,18 @@ "typeString": "uint256" } ], - "id": 1288, + "id": 1272, "name": "btoi", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 978, + "referencedDeclaration": 962, "src": "3066:4:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256) pure returns (uint256)" } }, - "id": 1290, + "id": 1274, "isConstant": false, "isLValue": false, "isPure": false, @@ -4617,18 +4617,18 @@ "typeString": "uint256" } ], - "id": 1286, + "id": 1270, "name": "bpowi", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1248, + "referencedDeclaration": 1232, "src": "3054:5:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 1291, + "id": 1275, "isConstant": false, "isLValue": false, "isPure": false, @@ -4652,18 +4652,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1295, + "id": 1279, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1293, + "id": 1277, "name": "remain", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1278, + "referencedDeclaration": 1262, "src": "3093:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4675,7 +4675,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 1294, + "id": 1278, "isConstant": false, "isLValue": false, "isPure": true, @@ -4697,30 +4697,30 @@ } }, "falseBody": null, - "id": 1299, + "id": 1283, "nodeType": "IfStatement", "src": "3089:57:5", "trueBody": { - "id": 1298, + "id": 1282, "nodeType": "Block", "src": "3106:40:5", "statements": [ { "expression": { "argumentTypes": null, - "id": 1296, + "id": 1280, "name": "wholePow", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1285, + "referencedDeclaration": 1269, "src": "3127:8:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 1256, - "id": 1297, + "functionReturnParameters": 1240, + "id": 1281, "nodeType": "Return", "src": "3120:15:5" } @@ -4729,15 +4729,15 @@ }, { "assignments": [ - 1301 + 1285 ], "declarations": [ { "constant": false, - "id": 1301, + "id": 1285, "name": "partialResult", "nodeType": "VariableDeclaration", - "scope": 1313, + "scope": 1297, "src": "3156:18:5", "stateVariable": false, "storageLocation": "default", @@ -4746,7 +4746,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1300, + "id": 1284, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3156:4:5", @@ -4759,17 +4759,17 @@ "visibility": "internal" } ], - "id": 1307, + "id": 1291, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 1303, + "id": 1287, "name": "base", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1250, + "referencedDeclaration": 1234, "src": "3188:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4778,11 +4778,11 @@ }, { "argumentTypes": null, - "id": 1304, + "id": 1288, "name": "remain", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1278, + "referencedDeclaration": 1262, "src": "3194:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4791,11 +4791,11 @@ }, { "argumentTypes": null, - "id": 1305, + "id": 1289, "name": "BPOW_PRECISION", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 270, + "referencedDeclaration": 266, "src": "3202:14:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4818,18 +4818,18 @@ "typeString": "uint256" } ], - "id": 1302, + "id": 1286, "name": "bpowApprox", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1437, + "referencedDeclaration": 1421, "src": "3177:10:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256,uint256) pure returns (uint256)" } }, - "id": 1306, + "id": 1290, "isConstant": false, "isLValue": false, "isPure": false, @@ -4852,11 +4852,11 @@ "arguments": [ { "argumentTypes": null, - "id": 1309, + "id": 1293, "name": "wholePow", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1285, + "referencedDeclaration": 1269, "src": "3239:8:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4865,11 +4865,11 @@ }, { "argumentTypes": null, - "id": 1310, + "id": 1294, "name": "partialResult", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1301, + "referencedDeclaration": 1285, "src": "3249:13:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4888,18 +4888,18 @@ "typeString": "uint256" } ], - "id": 1308, + "id": 1292, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "3234:4:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 1311, + "id": 1295, "isConstant": false, "isLValue": false, "isPure": false, @@ -4913,30 +4913,30 @@ "typeString": "uint256" } }, - "functionReturnParameters": 1256, - "id": 1312, + "functionReturnParameters": 1240, + "id": 1296, "nodeType": "Return", "src": "3227:36:5" } ] }, "documentation": null, - "id": 1314, + "id": 1298, "implemented": true, "kind": "function", "modifiers": [], "name": "bpow", "nodeType": "FunctionDefinition", "parameters": { - "id": 1253, + "id": 1237, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 1250, + "id": 1234, "name": "base", "nodeType": "VariableDeclaration", - "scope": 1314, + "scope": 1298, "src": "2747:9:5", "stateVariable": false, "storageLocation": "default", @@ -4945,7 +4945,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1249, + "id": 1233, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2747:4:5", @@ -4959,10 +4959,10 @@ }, { "constant": false, - "id": 1252, + "id": 1236, "name": "exp", "nodeType": "VariableDeclaration", - "scope": 1314, + "scope": 1298, "src": "2758:8:5", "stateVariable": false, "storageLocation": "default", @@ -4971,7 +4971,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1251, + "id": 1235, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2758:4:5", @@ -4987,15 +4987,15 @@ "src": "2746:21:5" }, "returnParameters": { - "id": 1256, + "id": 1240, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 1255, + "id": 1239, "name": "", "nodeType": "VariableDeclaration", - "scope": 1314, + "scope": 1298, "src": "2807:4:5", "stateVariable": false, "storageLocation": "default", @@ -5004,7 +5004,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1254, + "id": 1238, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2807:4:5", @@ -5019,7 +5019,7 @@ ], "src": "2806:6:5" }, - "scope": 1438, + "scope": 1422, "src": "2733:537:5", "stateMutability": "pure", "superFunction": null, @@ -5027,21 +5027,21 @@ }, { "body": { - "id": 1436, + "id": 1420, "nodeType": "Block", "src": "3382:941:5", "statements": [ { "assignments": [ - 1326 + 1310 ], "declarations": [ { "constant": false, - "id": 1326, + "id": 1310, "name": "a", "nodeType": "VariableDeclaration", - "scope": 1436, + "scope": 1420, "src": "3411:6:5", "stateVariable": false, "storageLocation": "default", @@ -5050,7 +5050,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1325, + "id": 1309, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3411:4:5", @@ -5063,14 +5063,14 @@ "visibility": "internal" } ], - "id": 1328, + "id": 1312, "initialValue": { "argumentTypes": null, - "id": 1327, + "id": 1311, "name": "exp", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1318, + "referencedDeclaration": 1302, "src": "3424:3:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5082,16 +5082,16 @@ }, { "assignments": [ - 1330, - 1332 + 1314, + 1316 ], "declarations": [ { "constant": false, - "id": 1330, + "id": 1314, "name": "x", "nodeType": "VariableDeclaration", - "scope": 1436, + "scope": 1420, "src": "3438:6:5", "stateVariable": false, "storageLocation": "default", @@ -5100,7 +5100,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1329, + "id": 1313, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3438:4:5", @@ -5114,10 +5114,10 @@ }, { "constant": false, - "id": 1332, + "id": 1316, "name": "xneg", "nodeType": "VariableDeclaration", - "scope": 1436, + "scope": 1420, "src": "3446:9:5", "stateVariable": false, "storageLocation": "default", @@ -5126,7 +5126,7 @@ "typeString": "bool" }, "typeName": { - "id": 1331, + "id": 1315, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3446:4:5", @@ -5139,17 +5139,17 @@ "visibility": "internal" } ], - "id": 1337, + "id": 1321, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 1334, + "id": 1318, "name": "base", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1316, + "referencedDeclaration": 1300, "src": "3469:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5158,11 +5158,11 @@ }, { "argumentTypes": null, - "id": 1335, + "id": 1319, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "3475:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5181,18 +5181,18 @@ "typeString": "uint256" } ], - "id": 1333, + "id": 1317, "name": "bsubSign", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1074, + "referencedDeclaration": 1058, "src": "3460:8:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$_t_bool_$", "typeString": "function (uint256,uint256) pure returns (uint256,bool)" } }, - "id": 1336, + "id": 1320, "isConstant": false, "isLValue": false, "isPure": false, @@ -5211,15 +5211,15 @@ }, { "assignments": [ - 1339 + 1323 ], "declarations": [ { "constant": false, - "id": 1339, + "id": 1323, "name": "term", "nodeType": "VariableDeclaration", - "scope": 1436, + "scope": 1420, "src": "3490:9:5", "stateVariable": false, "storageLocation": "default", @@ -5228,7 +5228,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1338, + "id": 1322, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3490:4:5", @@ -5241,14 +5241,14 @@ "visibility": "internal" } ], - "id": 1341, + "id": 1325, "initialValue": { "argumentTypes": null, - "id": 1340, + "id": 1324, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "3502:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5260,15 +5260,15 @@ }, { "assignments": [ - 1343 + 1327 ], "declarations": [ { "constant": false, - "id": 1343, + "id": 1327, "name": "sum", "nodeType": "VariableDeclaration", - "scope": 1436, + "scope": 1420, "src": "3516:8:5", "stateVariable": false, "storageLocation": "default", @@ -5277,7 +5277,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1342, + "id": 1326, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3516:4:5", @@ -5290,14 +5290,14 @@ "visibility": "internal" } ], - "id": 1345, + "id": 1329, "initialValue": { "argumentTypes": null, - "id": 1344, + "id": 1328, "name": "term", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1339, + "referencedDeclaration": 1323, "src": "3529:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5309,15 +5309,15 @@ }, { "assignments": [ - 1347 + 1331 ], "declarations": [ { "constant": false, - "id": 1347, + "id": 1331, "name": "negative", "nodeType": "VariableDeclaration", - "scope": 1436, + "scope": 1420, "src": "3543:13:5", "stateVariable": false, "storageLocation": "default", @@ -5326,7 +5326,7 @@ "typeString": "bool" }, "typeName": { - "id": 1346, + "id": 1330, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3543:4:5", @@ -5339,11 +5339,11 @@ "visibility": "internal" } ], - "id": 1349, + "id": 1333, "initialValue": { "argumentTypes": null, "hexValue": "66616c7365", - "id": 1348, + "id": 1332, "isConstant": false, "isLValue": false, "isPure": true, @@ -5363,21 +5363,21 @@ }, { "body": { - "id": 1432, + "id": 1416, "nodeType": "Block", "src": "3842:454:5", "statements": [ { "assignments": [ - 1361 + 1345 ], "declarations": [ { "constant": false, - "id": 1361, + "id": 1345, "name": "bigK", "nodeType": "VariableDeclaration", - "scope": 1432, + "scope": 1416, "src": "3856:9:5", "stateVariable": false, "storageLocation": "default", @@ -5386,7 +5386,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1360, + "id": 1344, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3856:4:5", @@ -5399,25 +5399,25 @@ "visibility": "internal" } ], - "id": 1365, + "id": 1349, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1364, + "id": 1348, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1362, + "id": 1346, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1351, + "referencedDeclaration": 1335, "src": "3868:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5428,11 +5428,11 @@ "operator": "*", "rightExpression": { "argumentTypes": null, - "id": 1363, + "id": 1347, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "3872:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5450,16 +5450,16 @@ }, { "assignments": [ - 1367, - 1369 + 1351, + 1353 ], "declarations": [ { "constant": false, - "id": 1367, + "id": 1351, "name": "c", "nodeType": "VariableDeclaration", - "scope": 1432, + "scope": 1416, "src": "3891:6:5", "stateVariable": false, "storageLocation": "default", @@ -5468,7 +5468,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1366, + "id": 1350, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3891:4:5", @@ -5482,10 +5482,10 @@ }, { "constant": false, - "id": 1369, + "id": 1353, "name": "cneg", "nodeType": "VariableDeclaration", - "scope": 1432, + "scope": 1416, "src": "3899:9:5", "stateVariable": false, "storageLocation": "default", @@ -5494,7 +5494,7 @@ "typeString": "bool" }, "typeName": { - "id": 1368, + "id": 1352, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3899:4:5", @@ -5507,17 +5507,17 @@ "visibility": "internal" } ], - "id": 1377, + "id": 1361, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 1371, + "id": 1355, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1326, + "referencedDeclaration": 1310, "src": "3921:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5529,11 +5529,11 @@ "arguments": [ { "argumentTypes": null, - "id": 1373, + "id": 1357, "name": "bigK", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1361, + "referencedDeclaration": 1345, "src": "3929:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5542,11 +5542,11 @@ }, { "argumentTypes": null, - "id": 1374, + "id": 1358, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "3935:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5565,18 +5565,18 @@ "typeString": "uint256" } ], - "id": 1372, + "id": 1356, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "3924:4:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 1375, + "id": 1359, "isConstant": false, "isLValue": false, "isPure": false, @@ -5602,18 +5602,18 @@ "typeString": "uint256" } ], - "id": 1370, + "id": 1354, "name": "bsubSign", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1074, + "referencedDeclaration": 1058, "src": "3912:8:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$_t_bool_$", "typeString": "function (uint256,uint256) pure returns (uint256,bool)" } }, - "id": 1376, + "id": 1360, "isConstant": false, "isLValue": false, "isPure": false, @@ -5633,18 +5633,18 @@ { "expression": { "argumentTypes": null, - "id": 1386, + "id": 1370, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 1378, + "id": 1362, "name": "term", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1339, + "referencedDeclaration": 1323, "src": "3955:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5658,11 +5658,11 @@ "arguments": [ { "argumentTypes": null, - "id": 1380, + "id": 1364, "name": "term", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1339, + "referencedDeclaration": 1323, "src": "3967:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5674,11 +5674,11 @@ "arguments": [ { "argumentTypes": null, - "id": 1382, + "id": 1366, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1367, + "referencedDeclaration": 1351, "src": "3978:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5687,11 +5687,11 @@ }, { "argumentTypes": null, - "id": 1383, + "id": 1367, "name": "x", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1330, + "referencedDeclaration": 1314, "src": "3981:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5710,18 +5710,18 @@ "typeString": "uint256" } ], - "id": 1381, + "id": 1365, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "3973:4:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 1384, + "id": 1368, "isConstant": false, "isLValue": false, "isPure": false, @@ -5747,18 +5747,18 @@ "typeString": "uint256" } ], - "id": 1379, + "id": 1363, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "3962:4:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 1385, + "id": 1369, "isConstant": false, "isLValue": false, "isPure": false, @@ -5778,25 +5778,25 @@ "typeString": "uint256" } }, - "id": 1387, + "id": 1371, "nodeType": "ExpressionStatement", "src": "3955:29:5" }, { "expression": { "argumentTypes": null, - "id": 1393, + "id": 1377, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 1388, + "id": 1372, "name": "term", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1339, + "referencedDeclaration": 1323, "src": "3998:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5810,11 +5810,11 @@ "arguments": [ { "argumentTypes": null, - "id": 1390, + "id": 1374, "name": "term", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1339, + "referencedDeclaration": 1323, "src": "4010:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5823,11 +5823,11 @@ }, { "argumentTypes": null, - "id": 1391, + "id": 1375, "name": "bigK", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1361, + "referencedDeclaration": 1345, "src": "4016:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5846,18 +5846,18 @@ "typeString": "uint256" } ], - "id": 1389, + "id": 1373, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "4005:4:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 1392, + "id": 1376, "isConstant": false, "isLValue": false, "isPure": false, @@ -5877,7 +5877,7 @@ "typeString": "uint256" } }, - "id": 1394, + "id": 1378, "nodeType": "ExpressionStatement", "src": "3998:23:5" }, @@ -5888,18 +5888,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1397, + "id": 1381, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1395, + "id": 1379, "name": "term", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1339, + "referencedDeclaration": 1323, "src": "4039:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5911,7 +5911,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 1396, + "id": 1380, "isConstant": false, "isLValue": false, "isPure": true, @@ -5933,11 +5933,11 @@ } }, "falseBody": null, - "id": 1399, + "id": 1383, "nodeType": "IfStatement", "src": "4035:20:5", "trueBody": { - "id": 1398, + "id": 1382, "nodeType": "Break", "src": "4050:5:5" } @@ -5945,11 +5945,11 @@ { "condition": { "argumentTypes": null, - "id": 1400, + "id": 1384, "name": "xneg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1332, + "referencedDeclaration": 1316, "src": "4074:4:5", "typeDescriptions": { "typeIdentifier": "t_bool", @@ -5957,24 +5957,24 @@ } }, "falseBody": null, - "id": 1406, + "id": 1390, "nodeType": "IfStatement", "src": "4070:30:5", "trueBody": { "expression": { "argumentTypes": null, - "id": 1404, + "id": 1388, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 1401, + "id": 1385, "name": "negative", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1347, + "referencedDeclaration": 1331, "src": "4080:8:5", "typeDescriptions": { "typeIdentifier": "t_bool", @@ -5985,7 +5985,7 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 1403, + "id": 1387, "isConstant": false, "isLValue": false, "isPure": false, @@ -5996,11 +5996,11 @@ "src": "4091:9:5", "subExpression": { "argumentTypes": null, - "id": 1402, + "id": 1386, "name": "negative", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1347, + "referencedDeclaration": 1331, "src": "4092:8:5", "typeDescriptions": { "typeIdentifier": "t_bool", @@ -6018,7 +6018,7 @@ "typeString": "bool" } }, - "id": 1405, + "id": 1389, "nodeType": "ExpressionStatement", "src": "4080:20:5" } @@ -6026,11 +6026,11 @@ { "condition": { "argumentTypes": null, - "id": 1407, + "id": 1391, "name": "cneg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1369, + "referencedDeclaration": 1353, "src": "4118:4:5", "typeDescriptions": { "typeIdentifier": "t_bool", @@ -6038,24 +6038,24 @@ } }, "falseBody": null, - "id": 1413, + "id": 1397, "nodeType": "IfStatement", "src": "4114:30:5", "trueBody": { "expression": { "argumentTypes": null, - "id": 1411, + "id": 1395, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 1408, + "id": 1392, "name": "negative", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1347, + "referencedDeclaration": 1331, "src": "4124:8:5", "typeDescriptions": { "typeIdentifier": "t_bool", @@ -6066,7 +6066,7 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 1410, + "id": 1394, "isConstant": false, "isLValue": false, "isPure": false, @@ -6077,11 +6077,11 @@ "src": "4135:9:5", "subExpression": { "argumentTypes": null, - "id": 1409, + "id": 1393, "name": "negative", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1347, + "referencedDeclaration": 1331, "src": "4136:8:5", "typeDescriptions": { "typeIdentifier": "t_bool", @@ -6099,7 +6099,7 @@ "typeString": "bool" } }, - "id": 1412, + "id": 1396, "nodeType": "ExpressionStatement", "src": "4124:20:5" } @@ -6107,11 +6107,11 @@ { "condition": { "argumentTypes": null, - "id": 1414, + "id": 1398, "name": "negative", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1347, + "referencedDeclaration": 1331, "src": "4162:8:5", "typeDescriptions": { "typeIdentifier": "t_bool", @@ -6119,25 +6119,25 @@ } }, "falseBody": { - "id": 1430, + "id": 1414, "nodeType": "Block", "src": "4232:54:5", "statements": [ { "expression": { "argumentTypes": null, - "id": 1428, + "id": 1412, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 1423, + "id": 1407, "name": "sum", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1343, + "referencedDeclaration": 1327, "src": "4250:3:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6151,11 +6151,11 @@ "arguments": [ { "argumentTypes": null, - "id": 1425, + "id": 1409, "name": "sum", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1343, + "referencedDeclaration": 1327, "src": "4261:3:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6164,11 +6164,11 @@ }, { "argumentTypes": null, - "id": 1426, + "id": 1410, "name": "term", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1339, + "referencedDeclaration": 1323, "src": "4266:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6187,18 +6187,18 @@ "typeString": "uint256" } ], - "id": 1424, + "id": 1408, "name": "badd", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1017, + "referencedDeclaration": 1001, "src": "4256:4:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 1427, + "id": 1411, "isConstant": false, "isLValue": false, "isPure": false, @@ -6218,35 +6218,35 @@ "typeString": "uint256" } }, - "id": 1429, + "id": 1413, "nodeType": "ExpressionStatement", "src": "4250:21:5" } ] }, - "id": 1431, + "id": 1415, "nodeType": "IfStatement", "src": "4158:128:5", "trueBody": { - "id": 1422, + "id": 1406, "nodeType": "Block", "src": "4172:54:5", "statements": [ { "expression": { "argumentTypes": null, - "id": 1420, + "id": 1404, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 1415, + "id": 1399, "name": "sum", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1343, + "referencedDeclaration": 1327, "src": "4190:3:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6260,11 +6260,11 @@ "arguments": [ { "argumentTypes": null, - "id": 1417, + "id": 1401, "name": "sum", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1343, + "referencedDeclaration": 1327, "src": "4201:3:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6273,11 +6273,11 @@ }, { "argumentTypes": null, - "id": 1418, + "id": 1402, "name": "term", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1339, + "referencedDeclaration": 1323, "src": "4206:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6296,18 +6296,18 @@ "typeString": "uint256" } ], - "id": 1416, + "id": 1400, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "4196:4:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 1419, + "id": 1403, "isConstant": false, "isLValue": false, "isPure": false, @@ -6327,7 +6327,7 @@ "typeString": "uint256" } }, - "id": 1421, + "id": 1405, "nodeType": "ExpressionStatement", "src": "4190:21:5" } @@ -6342,18 +6342,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1356, + "id": 1340, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1354, + "id": 1338, "name": "term", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1339, + "referencedDeclaration": 1323, "src": "3818:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6364,11 +6364,11 @@ "operator": ">=", "rightExpression": { "argumentTypes": null, - "id": 1355, + "id": 1339, "name": "precision", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1320, + "referencedDeclaration": 1304, "src": "3826:9:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6381,18 +6381,18 @@ "typeString": "bool" } }, - "id": 1433, + "id": 1417, "initializationExpression": { "assignments": [ - 1351 + 1335 ], "declarations": [ { "constant": false, - "id": 1351, + "id": 1335, "name": "i", "nodeType": "VariableDeclaration", - "scope": 1433, + "scope": 1417, "src": "3806:6:5", "stateVariable": false, "storageLocation": "default", @@ -6401,7 +6401,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1350, + "id": 1334, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3806:4:5", @@ -6414,11 +6414,11 @@ "visibility": "internal" } ], - "id": 1353, + "id": 1337, "initialValue": { "argumentTypes": null, "hexValue": "31", - "id": 1352, + "id": 1336, "isConstant": false, "isLValue": false, "isPure": true, @@ -6439,7 +6439,7 @@ "loopExpression": { "expression": { "argumentTypes": null, - "id": 1358, + "id": 1342, "isConstant": false, "isLValue": false, "isPure": false, @@ -6450,11 +6450,11 @@ "src": "3837:3:5", "subExpression": { "argumentTypes": null, - "id": 1357, + "id": 1341, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1351, + "referencedDeclaration": 1335, "src": "3837:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6466,7 +6466,7 @@ "typeString": "uint256" } }, - "id": 1359, + "id": 1343, "nodeType": "ExpressionStatement", "src": "3837:3:5" }, @@ -6476,41 +6476,41 @@ { "expression": { "argumentTypes": null, - "id": 1434, + "id": 1418, "name": "sum", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1343, + "referencedDeclaration": 1327, "src": "4313:3:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 1324, - "id": 1435, + "functionReturnParameters": 1308, + "id": 1419, "nodeType": "Return", "src": "4306:10:5" } ] }, "documentation": null, - "id": 1437, + "id": 1421, "implemented": true, "kind": "function", "modifiers": [], "name": "bpowApprox", "nodeType": "FunctionDefinition", "parameters": { - "id": 1321, + "id": 1305, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 1316, + "id": 1300, "name": "base", "nodeType": "VariableDeclaration", - "scope": 1437, + "scope": 1421, "src": "3296:9:5", "stateVariable": false, "storageLocation": "default", @@ -6519,7 +6519,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1315, + "id": 1299, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3296:4:5", @@ -6533,10 +6533,10 @@ }, { "constant": false, - "id": 1318, + "id": 1302, "name": "exp", "nodeType": "VariableDeclaration", - "scope": 1437, + "scope": 1421, "src": "3307:8:5", "stateVariable": false, "storageLocation": "default", @@ -6545,7 +6545,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1317, + "id": 1301, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3307:4:5", @@ -6559,10 +6559,10 @@ }, { "constant": false, - "id": 1320, + "id": 1304, "name": "precision", "nodeType": "VariableDeclaration", - "scope": 1437, + "scope": 1421, "src": "3317:14:5", "stateVariable": false, "storageLocation": "default", @@ -6571,7 +6571,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1319, + "id": 1303, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3317:4:5", @@ -6587,15 +6587,15 @@ "src": "3295:37:5" }, "returnParameters": { - "id": 1324, + "id": 1308, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 1323, + "id": 1307, "name": "", "nodeType": "VariableDeclaration", - "scope": 1437, + "scope": 1421, "src": "3372:4:5", "stateVariable": false, "storageLocation": "default", @@ -6604,7 +6604,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1322, + "id": 1306, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3372:4:5", @@ -6619,14 +6619,14 @@ ], "src": "3371:6:5" }, - "scope": 1438, + "scope": 1422, "src": "3276:1047:5", "stateMutability": "pure", "superFunction": null, "visibility": "internal" } ], - "scope": 1439, + "scope": 1423, "src": "691:3635:5" } ], @@ -6636,14 +6636,14 @@ "absolutePath": "/ocean/ocean-contracts/contracts/balancer/BNum.sol", "exportedSymbols": { "BNum": [ - 1438 + 1422 ] }, - "id": 1439, + "id": 1423, "nodeType": "SourceUnit", "nodes": [ { - "id": 963, + "id": 947, "literals": [ "solidity", "0.5", @@ -6655,10 +6655,10 @@ { "absolutePath": "/ocean/ocean-contracts/contracts/balancer/BConst.sol", "file": "./BConst.sol", - "id": 964, + "id": 948, "nodeType": "ImportDirective", - "scope": 1439, - "sourceUnit": 285, + "scope": 1423, + "sourceUnit": 281, "src": "667:22:5", "symbolAliases": [], "unitAlias": "" @@ -6669,38 +6669,38 @@ "arguments": null, "baseName": { "contractScope": null, - "id": 965, + "id": 949, "name": "BConst", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 284, + "referencedDeclaration": 280, "src": "708:6:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_BConst_$284", + "typeIdentifier": "t_contract$_BConst_$280", "typeString": "contract BConst" } }, - "id": 966, + "id": 950, "nodeType": "InheritanceSpecifier", "src": "708:6:5" } ], "contractDependencies": [ - 284 + 280 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, - "id": 1438, + "id": 1422, "linearizedBaseContracts": [ - 1438, - 284 + 1422, + 280 ], "name": "BNum", "nodeType": "ContractDefinition", "nodes": [ { "body": { - "id": 977, + "id": 961, "nodeType": "Block", "src": "794:32:5", "statements": [ @@ -6711,18 +6711,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 975, + "id": 959, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 973, + "id": 957, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 968, + "referencedDeclaration": 952, "src": "811:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6733,11 +6733,11 @@ "operator": "/", "rightExpression": { "argumentTypes": null, - "id": 974, + "id": 958, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "815:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6750,30 +6750,30 @@ "typeString": "uint256" } }, - "functionReturnParameters": 972, - "id": 976, + "functionReturnParameters": 956, + "id": 960, "nodeType": "Return", "src": "804:15:5" } ] }, "documentation": null, - "id": 978, + "id": 962, "implemented": true, "kind": "function", "modifiers": [], "name": "btoi", "nodeType": "FunctionDefinition", "parameters": { - "id": 969, + "id": 953, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 968, + "id": 952, "name": "a", "nodeType": "VariableDeclaration", - "scope": 978, + "scope": 962, "src": "736:6:5", "stateVariable": false, "storageLocation": "default", @@ -6782,7 +6782,7 @@ "typeString": "uint256" }, "typeName": { - "id": 967, + "id": 951, "name": "uint", "nodeType": "ElementaryTypeName", "src": "736:4:5", @@ -6798,15 +6798,15 @@ "src": "735:8:5" }, "returnParameters": { - "id": 972, + "id": 956, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 971, + "id": 955, "name": "", "nodeType": "VariableDeclaration", - "scope": 978, + "scope": 962, "src": "784:4:5", "stateVariable": false, "storageLocation": "default", @@ -6815,7 +6815,7 @@ "typeString": "uint256" }, "typeName": { - "id": 970, + "id": 954, "name": "uint", "nodeType": "ElementaryTypeName", "src": "784:4:5", @@ -6830,7 +6830,7 @@ ], "src": "783:6:5" }, - "scope": 1438, + "scope": 1422, "src": "722:104:5", "stateMutability": "pure", "superFunction": null, @@ -6838,7 +6838,7 @@ }, { "body": { - "id": 991, + "id": 975, "nodeType": "Block", "src": "905:38:5", "statements": [ @@ -6849,7 +6849,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 989, + "id": 973, "isConstant": false, "isLValue": false, "isPure": false, @@ -6859,11 +6859,11 @@ "arguments": [ { "argumentTypes": null, - "id": 986, + "id": 970, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 980, + "referencedDeclaration": 964, "src": "927:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6878,18 +6878,18 @@ "typeString": "uint256" } ], - "id": 985, + "id": 969, "name": "btoi", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 978, + "referencedDeclaration": 962, "src": "922:4:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256) pure returns (uint256)" } }, - "id": 987, + "id": 971, "isConstant": false, "isLValue": false, "isPure": false, @@ -6907,11 +6907,11 @@ "operator": "*", "rightExpression": { "argumentTypes": null, - "id": 988, + "id": 972, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "932:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6924,30 +6924,30 @@ "typeString": "uint256" } }, - "functionReturnParameters": 984, - "id": 990, + "functionReturnParameters": 968, + "id": 974, "nodeType": "Return", "src": "915:21:5" } ] }, "documentation": null, - "id": 992, + "id": 976, "implemented": true, "kind": "function", "modifiers": [], "name": "bfloor", "nodeType": "FunctionDefinition", "parameters": { - "id": 981, + "id": 965, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 980, + "id": 964, "name": "a", "nodeType": "VariableDeclaration", - "scope": 992, + "scope": 976, "src": "848:6:5", "stateVariable": false, "storageLocation": "default", @@ -6956,7 +6956,7 @@ "typeString": "uint256" }, "typeName": { - "id": 979, + "id": 963, "name": "uint", "nodeType": "ElementaryTypeName", "src": "848:4:5", @@ -6972,15 +6972,15 @@ "src": "847:8:5" }, "returnParameters": { - "id": 984, + "id": 968, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 983, + "id": 967, "name": "", "nodeType": "VariableDeclaration", - "scope": 992, + "scope": 976, "src": "895:4:5", "stateVariable": false, "storageLocation": "default", @@ -6989,7 +6989,7 @@ "typeString": "uint256" }, "typeName": { - "id": 982, + "id": 966, "name": "uint", "nodeType": "ElementaryTypeName", "src": "895:4:5", @@ -7004,7 +7004,7 @@ ], "src": "894:6:5" }, - "scope": 1438, + "scope": 1422, "src": "832:111:5", "stateMutability": "pure", "superFunction": null, @@ -7012,21 +7012,21 @@ }, { "body": { - "id": 1016, + "id": 1000, "nodeType": "Block", "src": "1028:94:5", "statements": [ { "assignments": [ - 1002 + 986 ], "declarations": [ { "constant": false, - "id": 1002, + "id": 986, "name": "c", "nodeType": "VariableDeclaration", - "scope": 1016, + "scope": 1000, "src": "1038:6:5", "stateVariable": false, "storageLocation": "default", @@ -7035,7 +7035,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1001, + "id": 985, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1038:4:5", @@ -7048,25 +7048,25 @@ "visibility": "internal" } ], - "id": 1006, + "id": 990, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1005, + "id": 989, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1003, + "id": 987, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 994, + "referencedDeclaration": 978, "src": "1047:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7077,11 +7077,11 @@ "operator": "+", "rightExpression": { "argumentTypes": null, - "id": 1004, + "id": 988, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 996, + "referencedDeclaration": 980, "src": "1051:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7107,18 +7107,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1010, + "id": 994, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1008, + "id": 992, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1002, + "referencedDeclaration": 986, "src": "1070:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7129,11 +7129,11 @@ "operator": ">=", "rightExpression": { "argumentTypes": null, - "id": 1009, + "id": 993, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 994, + "referencedDeclaration": 978, "src": "1075:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7149,7 +7149,7 @@ { "argumentTypes": null, "hexValue": "4552525f4144445f4f564552464c4f57", - "id": 1011, + "id": 995, "isConstant": false, "isLValue": false, "isPure": true, @@ -7176,21 +7176,21 @@ "typeString": "literal_string \"ERR_ADD_OVERFLOW\"" } ], - "id": 1007, + "id": 991, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "1062:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 1012, + "id": 996, "isConstant": false, "isLValue": false, "isPure": false, @@ -7204,48 +7204,48 @@ "typeString": "tuple()" } }, - "id": 1013, + "id": 997, "nodeType": "ExpressionStatement", "src": "1062:35:5" }, { "expression": { "argumentTypes": null, - "id": 1014, + "id": 998, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1002, + "referencedDeclaration": 986, "src": "1114:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 1000, - "id": 1015, + "functionReturnParameters": 984, + "id": 999, "nodeType": "Return", "src": "1107:8:5" } ] }, "documentation": null, - "id": 1017, + "id": 1001, "implemented": true, "kind": "function", "modifiers": [], "name": "badd", "nodeType": "FunctionDefinition", "parameters": { - "id": 997, + "id": 981, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 994, + "id": 978, "name": "a", "nodeType": "VariableDeclaration", - "scope": 1017, + "scope": 1001, "src": "963:6:5", "stateVariable": false, "storageLocation": "default", @@ -7254,7 +7254,7 @@ "typeString": "uint256" }, "typeName": { - "id": 993, + "id": 977, "name": "uint", "nodeType": "ElementaryTypeName", "src": "963:4:5", @@ -7268,10 +7268,10 @@ }, { "constant": false, - "id": 996, + "id": 980, "name": "b", "nodeType": "VariableDeclaration", - "scope": 1017, + "scope": 1001, "src": "971:6:5", "stateVariable": false, "storageLocation": "default", @@ -7280,7 +7280,7 @@ "typeString": "uint256" }, "typeName": { - "id": 995, + "id": 979, "name": "uint", "nodeType": "ElementaryTypeName", "src": "971:4:5", @@ -7296,15 +7296,15 @@ "src": "962:16:5" }, "returnParameters": { - "id": 1000, + "id": 984, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 999, + "id": 983, "name": "", "nodeType": "VariableDeclaration", - "scope": 1017, + "scope": 1001, "src": "1018:4:5", "stateVariable": false, "storageLocation": "default", @@ -7313,7 +7313,7 @@ "typeString": "uint256" }, "typeName": { - "id": 998, + "id": 982, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1018:4:5", @@ -7328,7 +7328,7 @@ ], "src": "1017:6:5" }, - "scope": 1438, + "scope": 1422, "src": "949:173:5", "stateMutability": "pure", "superFunction": null, @@ -7336,22 +7336,22 @@ }, { "body": { - "id": 1043, + "id": 1027, "nodeType": "Block", "src": "1207:116:5", "statements": [ { "assignments": [ - 1027, - 1029 + 1011, + 1013 ], "declarations": [ { "constant": false, - "id": 1027, + "id": 1011, "name": "c", "nodeType": "VariableDeclaration", - "scope": 1043, + "scope": 1027, "src": "1218:6:5", "stateVariable": false, "storageLocation": "default", @@ -7360,7 +7360,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1026, + "id": 1010, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1218:4:5", @@ -7374,10 +7374,10 @@ }, { "constant": false, - "id": 1029, + "id": 1013, "name": "flag", "nodeType": "VariableDeclaration", - "scope": 1043, + "scope": 1027, "src": "1226:9:5", "stateVariable": false, "storageLocation": "default", @@ -7386,7 +7386,7 @@ "typeString": "bool" }, "typeName": { - "id": 1028, + "id": 1012, "name": "bool", "nodeType": "ElementaryTypeName", "src": "1226:4:5", @@ -7399,17 +7399,17 @@ "visibility": "internal" } ], - "id": 1034, + "id": 1018, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 1031, + "id": 1015, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1019, + "referencedDeclaration": 1003, "src": "1248:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7418,11 +7418,11 @@ }, { "argumentTypes": null, - "id": 1032, + "id": 1016, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1021, + "referencedDeclaration": 1005, "src": "1251:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7441,18 +7441,18 @@ "typeString": "uint256" } ], - "id": 1030, + "id": 1014, "name": "bsubSign", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1074, + "referencedDeclaration": 1058, "src": "1239:8:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$_t_bool_$", "typeString": "function (uint256,uint256) pure returns (uint256,bool)" } }, - "id": 1033, + "id": 1017, "isConstant": false, "isLValue": false, "isPure": false, @@ -7475,7 +7475,7 @@ "arguments": [ { "argumentTypes": null, - "id": 1037, + "id": 1021, "isConstant": false, "isLValue": false, "isPure": false, @@ -7486,11 +7486,11 @@ "src": "1271:5:5", "subExpression": { "argumentTypes": null, - "id": 1036, + "id": 1020, "name": "flag", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1029, + "referencedDeclaration": 1013, "src": "1272:4:5", "typeDescriptions": { "typeIdentifier": "t_bool", @@ -7505,7 +7505,7 @@ { "argumentTypes": null, "hexValue": "4552525f5355425f554e444552464c4f57", - "id": 1038, + "id": 1022, "isConstant": false, "isLValue": false, "isPure": true, @@ -7532,21 +7532,21 @@ "typeString": "literal_string \"ERR_SUB_UNDERFLOW\"" } ], - "id": 1035, + "id": 1019, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "1263:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 1039, + "id": 1023, "isConstant": false, "isLValue": false, "isPure": false, @@ -7560,48 +7560,48 @@ "typeString": "tuple()" } }, - "id": 1040, + "id": 1024, "nodeType": "ExpressionStatement", "src": "1263:35:5" }, { "expression": { "argumentTypes": null, - "id": 1041, + "id": 1025, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1027, + "referencedDeclaration": 1011, "src": "1315:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 1025, - "id": 1042, + "functionReturnParameters": 1009, + "id": 1026, "nodeType": "Return", "src": "1308:8:5" } ] }, "documentation": null, - "id": 1044, + "id": 1028, "implemented": true, "kind": "function", "modifiers": [], "name": "bsub", "nodeType": "FunctionDefinition", "parameters": { - "id": 1022, + "id": 1006, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 1019, + "id": 1003, "name": "a", "nodeType": "VariableDeclaration", - "scope": 1044, + "scope": 1028, "src": "1142:6:5", "stateVariable": false, "storageLocation": "default", @@ -7610,7 +7610,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1018, + "id": 1002, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1142:4:5", @@ -7624,10 +7624,10 @@ }, { "constant": false, - "id": 1021, + "id": 1005, "name": "b", "nodeType": "VariableDeclaration", - "scope": 1044, + "scope": 1028, "src": "1150:6:5", "stateVariable": false, "storageLocation": "default", @@ -7636,7 +7636,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1020, + "id": 1004, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1150:4:5", @@ -7652,15 +7652,15 @@ "src": "1141:16:5" }, "returnParameters": { - "id": 1025, + "id": 1009, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 1024, + "id": 1008, "name": "", "nodeType": "VariableDeclaration", - "scope": 1044, + "scope": 1028, "src": "1197:4:5", "stateVariable": false, "storageLocation": "default", @@ -7669,7 +7669,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1023, + "id": 1007, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1197:4:5", @@ -7684,7 +7684,7 @@ ], "src": "1196:6:5" }, - "scope": 1438, + "scope": 1422, "src": "1128:195:5", "stateMutability": "pure", "superFunction": null, @@ -7692,7 +7692,7 @@ }, { "body": { - "id": 1073, + "id": 1057, "nodeType": "Block", "src": "1418:125:5", "statements": [ @@ -7703,18 +7703,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1057, + "id": 1041, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1055, + "id": 1039, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1046, + "referencedDeclaration": 1030, "src": "1432:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7725,11 +7725,11 @@ "operator": ">=", "rightExpression": { "argumentTypes": null, - "id": 1056, + "id": 1040, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1048, + "referencedDeclaration": 1032, "src": "1437:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7743,7 +7743,7 @@ } }, "falseBody": { - "id": 1071, + "id": 1055, "nodeType": "Block", "src": "1492:45:5", "statements": [ @@ -7757,18 +7757,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1067, + "id": 1051, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1065, + "id": 1049, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1048, + "referencedDeclaration": 1032, "src": "1514:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7779,11 +7779,11 @@ "operator": "-", "rightExpression": { "argumentTypes": null, - "id": 1066, + "id": 1050, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1046, + "referencedDeclaration": 1030, "src": "1518:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7799,7 +7799,7 @@ { "argumentTypes": null, "hexValue": "74727565", - "id": 1068, + "id": 1052, "isConstant": false, "isLValue": false, "isPure": true, @@ -7815,7 +7815,7 @@ "value": "true" } ], - "id": 1069, + "id": 1053, "isConstant": false, "isInlineArray": false, "isLValue": false, @@ -7828,18 +7828,18 @@ "typeString": "tuple(uint256,bool)" } }, - "functionReturnParameters": 1054, - "id": 1070, + "functionReturnParameters": 1038, + "id": 1054, "nodeType": "Return", "src": "1506:20:5" } ] }, - "id": 1072, + "id": 1056, "nodeType": "IfStatement", "src": "1428:109:5", "trueBody": { - "id": 1064, + "id": 1048, "nodeType": "Block", "src": "1440:46:5", "statements": [ @@ -7853,18 +7853,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1060, + "id": 1044, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1058, + "id": 1042, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1046, + "referencedDeclaration": 1030, "src": "1462:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7875,11 +7875,11 @@ "operator": "-", "rightExpression": { "argumentTypes": null, - "id": 1059, + "id": 1043, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1048, + "referencedDeclaration": 1032, "src": "1466:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7895,7 +7895,7 @@ { "argumentTypes": null, "hexValue": "66616c7365", - "id": 1061, + "id": 1045, "isConstant": false, "isLValue": false, "isPure": true, @@ -7911,7 +7911,7 @@ "value": "false" } ], - "id": 1062, + "id": 1046, "isConstant": false, "isInlineArray": false, "isLValue": false, @@ -7924,8 +7924,8 @@ "typeString": "tuple(uint256,bool)" } }, - "functionReturnParameters": 1054, - "id": 1063, + "functionReturnParameters": 1038, + "id": 1047, "nodeType": "Return", "src": "1454:21:5" } @@ -7935,22 +7935,22 @@ ] }, "documentation": null, - "id": 1074, + "id": 1058, "implemented": true, "kind": "function", "modifiers": [], "name": "bsubSign", "nodeType": "FunctionDefinition", "parameters": { - "id": 1049, + "id": 1033, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 1046, + "id": 1030, "name": "a", "nodeType": "VariableDeclaration", - "scope": 1074, + "scope": 1058, "src": "1347:6:5", "stateVariable": false, "storageLocation": "default", @@ -7959,7 +7959,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1045, + "id": 1029, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1347:4:5", @@ -7973,10 +7973,10 @@ }, { "constant": false, - "id": 1048, + "id": 1032, "name": "b", "nodeType": "VariableDeclaration", - "scope": 1074, + "scope": 1058, "src": "1355:6:5", "stateVariable": false, "storageLocation": "default", @@ -7985,7 +7985,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1047, + "id": 1031, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1355:4:5", @@ -8001,15 +8001,15 @@ "src": "1346:16:5" }, "returnParameters": { - "id": 1054, + "id": 1038, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 1051, + "id": 1035, "name": "", "nodeType": "VariableDeclaration", - "scope": 1074, + "scope": 1058, "src": "1402:4:5", "stateVariable": false, "storageLocation": "default", @@ -8018,7 +8018,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1050, + "id": 1034, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1402:4:5", @@ -8032,10 +8032,10 @@ }, { "constant": false, - "id": 1053, + "id": 1037, "name": "", "nodeType": "VariableDeclaration", - "scope": 1074, + "scope": 1058, "src": "1408:4:5", "stateVariable": false, "storageLocation": "default", @@ -8044,7 +8044,7 @@ "typeString": "bool" }, "typeName": { - "id": 1052, + "id": 1036, "name": "bool", "nodeType": "ElementaryTypeName", "src": "1408:4:5", @@ -8059,7 +8059,7 @@ ], "src": "1401:12:5" }, - "scope": 1438, + "scope": 1422, "src": "1329:214:5", "stateMutability": "pure", "superFunction": null, @@ -8067,21 +8067,21 @@ }, { "body": { - "id": 1126, + "id": 1110, "nodeType": "Block", "src": "1628:222:5", "statements": [ { "assignments": [ - 1084 + 1068 ], "declarations": [ { "constant": false, - "id": 1084, + "id": 1068, "name": "c0", "nodeType": "VariableDeclaration", - "scope": 1126, + "scope": 1110, "src": "1638:7:5", "stateVariable": false, "storageLocation": "default", @@ -8090,7 +8090,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1083, + "id": 1067, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1638:4:5", @@ -8103,25 +8103,25 @@ "visibility": "internal" } ], - "id": 1088, + "id": 1072, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1087, + "id": 1071, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1085, + "id": 1069, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1076, + "referencedDeclaration": 1060, "src": "1648:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8132,11 +8132,11 @@ "operator": "*", "rightExpression": { "argumentTypes": null, - "id": 1086, + "id": 1070, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1078, + "referencedDeclaration": 1062, "src": "1652:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8162,7 +8162,7 @@ "typeIdentifier": "t_bool", "typeString": "bool" }, - "id": 1098, + "id": 1082, "isConstant": false, "isLValue": false, "isPure": false, @@ -8173,18 +8173,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1092, + "id": 1076, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1090, + "id": 1074, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1076, + "referencedDeclaration": 1060, "src": "1671:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8196,7 +8196,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 1091, + "id": 1075, "isConstant": false, "isLValue": false, "isPure": true, @@ -8225,7 +8225,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1097, + "id": 1081, "isConstant": false, "isLValue": false, "isPure": false, @@ -8236,18 +8236,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1095, + "id": 1079, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1093, + "id": 1077, "name": "c0", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1084, + "referencedDeclaration": 1068, "src": "1681:2:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8258,11 +8258,11 @@ "operator": "/", "rightExpression": { "argumentTypes": null, - "id": 1094, + "id": 1078, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1076, + "referencedDeclaration": 1060, "src": "1686:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8279,11 +8279,11 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 1096, + "id": 1080, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1078, + "referencedDeclaration": 1062, "src": "1691:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8305,7 +8305,7 @@ { "argumentTypes": null, "hexValue": "4552525f4d554c5f4f564552464c4f57", - "id": 1099, + "id": 1083, "isConstant": false, "isLValue": false, "isPure": true, @@ -8332,21 +8332,21 @@ "typeString": "literal_string \"ERR_MUL_OVERFLOW\"" } ], - "id": 1089, + "id": 1073, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "1663:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 1100, + "id": 1084, "isConstant": false, "isLValue": false, "isPure": false, @@ -8360,21 +8360,21 @@ "typeString": "tuple()" } }, - "id": 1101, + "id": 1085, "nodeType": "ExpressionStatement", "src": "1663:50:5" }, { "assignments": [ - 1103 + 1087 ], "declarations": [ { "constant": false, - "id": 1103, + "id": 1087, "name": "c1", "nodeType": "VariableDeclaration", - "scope": 1126, + "scope": 1110, "src": "1723:7:5", "stateVariable": false, "storageLocation": "default", @@ -8383,7 +8383,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1102, + "id": 1086, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1723:4:5", @@ -8396,25 +8396,25 @@ "visibility": "internal" } ], - "id": 1110, + "id": 1094, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1109, + "id": 1093, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1104, + "id": 1088, "name": "c0", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1084, + "referencedDeclaration": 1068, "src": "1733:2:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8432,18 +8432,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1107, + "id": 1091, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1105, + "id": 1089, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "1739:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8455,7 +8455,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "32", - "id": 1106, + "id": 1090, "isConstant": false, "isLValue": false, "isPure": true, @@ -8477,7 +8477,7 @@ } } ], - "id": 1108, + "id": 1092, "isConstant": false, "isInlineArray": false, "isLValue": false, @@ -8509,18 +8509,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1114, + "id": 1098, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1112, + "id": 1096, "name": "c1", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1103, + "referencedDeclaration": 1087, "src": "1766:2:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8531,11 +8531,11 @@ "operator": ">=", "rightExpression": { "argumentTypes": null, - "id": 1113, + "id": 1097, "name": "c0", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1084, + "referencedDeclaration": 1068, "src": "1772:2:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8551,7 +8551,7 @@ { "argumentTypes": null, "hexValue": "4552525f4d554c5f4f564552464c4f57", - "id": 1115, + "id": 1099, "isConstant": false, "isLValue": false, "isPure": true, @@ -8578,21 +8578,21 @@ "typeString": "literal_string \"ERR_MUL_OVERFLOW\"" } ], - "id": 1111, + "id": 1095, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "1758:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 1116, + "id": 1100, "isConstant": false, "isLValue": false, "isPure": false, @@ -8606,21 +8606,21 @@ "typeString": "tuple()" } }, - "id": 1117, + "id": 1101, "nodeType": "ExpressionStatement", "src": "1758:37:5" }, { "assignments": [ - 1119 + 1103 ], "declarations": [ { "constant": false, - "id": 1119, + "id": 1103, "name": "c2", "nodeType": "VariableDeclaration", - "scope": 1126, + "scope": 1110, "src": "1805:7:5", "stateVariable": false, "storageLocation": "default", @@ -8629,7 +8629,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1118, + "id": 1102, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1805:4:5", @@ -8642,25 +8642,25 @@ "visibility": "internal" } ], - "id": 1123, + "id": 1107, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1122, + "id": 1106, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1120, + "id": 1104, "name": "c1", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1103, + "referencedDeclaration": 1087, "src": "1815:2:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8671,11 +8671,11 @@ "operator": "/", "rightExpression": { "argumentTypes": null, - "id": 1121, + "id": 1105, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "1820:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8694,41 +8694,41 @@ { "expression": { "argumentTypes": null, - "id": 1124, + "id": 1108, "name": "c2", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1119, + "referencedDeclaration": 1103, "src": "1841:2:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 1082, - "id": 1125, + "functionReturnParameters": 1066, + "id": 1109, "nodeType": "Return", "src": "1834:9:5" } ] }, "documentation": null, - "id": 1127, + "id": 1111, "implemented": true, "kind": "function", "modifiers": [], "name": "bmul", "nodeType": "FunctionDefinition", "parameters": { - "id": 1079, + "id": 1063, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 1076, + "id": 1060, "name": "a", "nodeType": "VariableDeclaration", - "scope": 1127, + "scope": 1111, "src": "1563:6:5", "stateVariable": false, "storageLocation": "default", @@ -8737,7 +8737,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1075, + "id": 1059, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1563:4:5", @@ -8751,10 +8751,10 @@ }, { "constant": false, - "id": 1078, + "id": 1062, "name": "b", "nodeType": "VariableDeclaration", - "scope": 1127, + "scope": 1111, "src": "1571:6:5", "stateVariable": false, "storageLocation": "default", @@ -8763,7 +8763,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1077, + "id": 1061, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1571:4:5", @@ -8779,15 +8779,15 @@ "src": "1562:16:5" }, "returnParameters": { - "id": 1082, + "id": 1066, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 1081, + "id": 1065, "name": "", "nodeType": "VariableDeclaration", - "scope": 1127, + "scope": 1111, "src": "1618:4:5", "stateVariable": false, "storageLocation": "default", @@ -8796,7 +8796,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1080, + "id": 1064, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1618:4:5", @@ -8811,7 +8811,7 @@ ], "src": "1617:6:5" }, - "scope": 1438, + "scope": 1422, "src": "1549:301:5", "stateMutability": "pure", "superFunction": null, @@ -8819,7 +8819,7 @@ }, { "body": { - "id": 1186, + "id": 1170, "nodeType": "Block", "src": "1935:297:5", "statements": [ @@ -8833,18 +8833,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1139, + "id": 1123, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1137, + "id": 1121, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1131, + "referencedDeclaration": 1115, "src": "1953:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8856,7 +8856,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 1138, + "id": 1122, "isConstant": false, "isLValue": false, "isPure": true, @@ -8880,7 +8880,7 @@ { "argumentTypes": null, "hexValue": "4552525f4449565f5a45524f", - "id": 1140, + "id": 1124, "isConstant": false, "isLValue": false, "isPure": true, @@ -8907,21 +8907,21 @@ "typeString": "literal_string \"ERR_DIV_ZERO\"" } ], - "id": 1136, + "id": 1120, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "1945:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 1141, + "id": 1125, "isConstant": false, "isLValue": false, "isPure": false, @@ -8935,21 +8935,21 @@ "typeString": "tuple()" } }, - "id": 1142, + "id": 1126, "nodeType": "ExpressionStatement", "src": "1945:31:5" }, { "assignments": [ - 1144 + 1128 ], "declarations": [ { "constant": false, - "id": 1144, + "id": 1128, "name": "c0", "nodeType": "VariableDeclaration", - "scope": 1186, + "scope": 1170, "src": "1986:7:5", "stateVariable": false, "storageLocation": "default", @@ -8958,7 +8958,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1143, + "id": 1127, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1986:4:5", @@ -8971,25 +8971,25 @@ "visibility": "internal" } ], - "id": 1148, + "id": 1132, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1147, + "id": 1131, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1145, + "id": 1129, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1129, + "referencedDeclaration": 1113, "src": "1996:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9000,11 +9000,11 @@ "operator": "*", "rightExpression": { "argumentTypes": null, - "id": 1146, + "id": 1130, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "2000:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9030,7 +9030,7 @@ "typeIdentifier": "t_bool", "typeString": "bool" }, - "id": 1158, + "id": 1142, "isConstant": false, "isLValue": false, "isPure": false, @@ -9041,18 +9041,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1152, + "id": 1136, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1150, + "id": 1134, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1129, + "referencedDeclaration": 1113, "src": "2022:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9064,7 +9064,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 1151, + "id": 1135, "isConstant": false, "isLValue": false, "isPure": true, @@ -9093,7 +9093,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1157, + "id": 1141, "isConstant": false, "isLValue": false, "isPure": false, @@ -9104,18 +9104,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1155, + "id": 1139, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1153, + "id": 1137, "name": "c0", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1144, + "referencedDeclaration": 1128, "src": "2032:2:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9126,11 +9126,11 @@ "operator": "/", "rightExpression": { "argumentTypes": null, - "id": 1154, + "id": 1138, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1129, + "referencedDeclaration": 1113, "src": "2037:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9147,11 +9147,11 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 1156, + "id": 1140, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "2042:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9173,7 +9173,7 @@ { "argumentTypes": null, "hexValue": "4552525f4449565f494e5445524e414c", - "id": 1159, + "id": 1143, "isConstant": false, "isLValue": false, "isPure": true, @@ -9200,21 +9200,21 @@ "typeString": "literal_string \"ERR_DIV_INTERNAL\"" } ], - "id": 1149, + "id": 1133, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "2014:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 1160, + "id": 1144, "isConstant": false, "isLValue": false, "isPure": false, @@ -9228,21 +9228,21 @@ "typeString": "tuple()" } }, - "id": 1161, + "id": 1145, "nodeType": "ExpressionStatement", "src": "2014:53:5" }, { "assignments": [ - 1163 + 1147 ], "declarations": [ { "constant": false, - "id": 1163, + "id": 1147, "name": "c1", "nodeType": "VariableDeclaration", - "scope": 1186, + "scope": 1170, "src": "2094:7:5", "stateVariable": false, "storageLocation": "default", @@ -9251,7 +9251,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1162, + "id": 1146, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2094:4:5", @@ -9264,25 +9264,25 @@ "visibility": "internal" } ], - "id": 1170, + "id": 1154, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1169, + "id": 1153, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1164, + "id": 1148, "name": "c0", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1144, + "referencedDeclaration": 1128, "src": "2104:2:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9300,18 +9300,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1167, + "id": 1151, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1165, + "id": 1149, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1131, + "referencedDeclaration": 1115, "src": "2110:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9323,7 +9323,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "32", - "id": 1166, + "id": 1150, "isConstant": false, "isLValue": false, "isPure": true, @@ -9345,7 +9345,7 @@ } } ], - "id": 1168, + "id": 1152, "isConstant": false, "isInlineArray": false, "isLValue": false, @@ -9377,18 +9377,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1174, + "id": 1158, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1172, + "id": 1156, "name": "c1", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1163, + "referencedDeclaration": 1147, "src": "2134:2:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9399,11 +9399,11 @@ "operator": ">=", "rightExpression": { "argumentTypes": null, - "id": 1173, + "id": 1157, "name": "c0", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1144, + "referencedDeclaration": 1128, "src": "2140:2:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9419,7 +9419,7 @@ { "argumentTypes": null, "hexValue": "4552525f4449565f494e5445524e414c", - "id": 1175, + "id": 1159, "isConstant": false, "isLValue": false, "isPure": true, @@ -9446,21 +9446,21 @@ "typeString": "literal_string \"ERR_DIV_INTERNAL\"" } ], - "id": 1171, + "id": 1155, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "2126:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 1176, + "id": 1160, "isConstant": false, "isLValue": false, "isPure": false, @@ -9474,21 +9474,21 @@ "typeString": "tuple()" } }, - "id": 1177, + "id": 1161, "nodeType": "ExpressionStatement", "src": "2126:37:5" }, { "assignments": [ - 1179 + 1163 ], "declarations": [ { "constant": false, - "id": 1179, + "id": 1163, "name": "c2", "nodeType": "VariableDeclaration", - "scope": 1186, + "scope": 1170, "src": "2190:7:5", "stateVariable": false, "storageLocation": "default", @@ -9497,7 +9497,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1178, + "id": 1162, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2190:4:5", @@ -9510,25 +9510,25 @@ "visibility": "internal" } ], - "id": 1183, + "id": 1167, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1182, + "id": 1166, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1180, + "id": 1164, "name": "c1", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1163, + "referencedDeclaration": 1147, "src": "2200:2:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9539,11 +9539,11 @@ "operator": "/", "rightExpression": { "argumentTypes": null, - "id": 1181, + "id": 1165, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1131, + "referencedDeclaration": 1115, "src": "2205:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9562,41 +9562,41 @@ { "expression": { "argumentTypes": null, - "id": 1184, + "id": 1168, "name": "c2", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1179, + "referencedDeclaration": 1163, "src": "2223:2:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 1135, - "id": 1185, + "functionReturnParameters": 1119, + "id": 1169, "nodeType": "Return", "src": "2216:9:5" } ] }, "documentation": null, - "id": 1187, + "id": 1171, "implemented": true, "kind": "function", "modifiers": [], "name": "bdiv", "nodeType": "FunctionDefinition", "parameters": { - "id": 1132, + "id": 1116, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 1129, + "id": 1113, "name": "a", "nodeType": "VariableDeclaration", - "scope": 1187, + "scope": 1171, "src": "1870:6:5", "stateVariable": false, "storageLocation": "default", @@ -9605,7 +9605,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1128, + "id": 1112, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1870:4:5", @@ -9619,10 +9619,10 @@ }, { "constant": false, - "id": 1131, + "id": 1115, "name": "b", "nodeType": "VariableDeclaration", - "scope": 1187, + "scope": 1171, "src": "1878:6:5", "stateVariable": false, "storageLocation": "default", @@ -9631,7 +9631,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1130, + "id": 1114, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1878:4:5", @@ -9647,15 +9647,15 @@ "src": "1869:16:5" }, "returnParameters": { - "id": 1135, + "id": 1119, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 1134, + "id": 1118, "name": "", "nodeType": "VariableDeclaration", - "scope": 1187, + "scope": 1171, "src": "1925:4:5", "stateVariable": false, "storageLocation": "default", @@ -9664,7 +9664,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1133, + "id": 1117, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1925:4:5", @@ -9679,7 +9679,7 @@ ], "src": "1924:6:5" }, - "scope": 1438, + "scope": 1422, "src": "1856:376:5", "stateMutability": "pure", "superFunction": null, @@ -9687,21 +9687,21 @@ }, { "body": { - "id": 1247, + "id": 1231, "nodeType": "Block", "src": "2337:240:5", "statements": [ { "assignments": [ - 1197 + 1181 ], "declarations": [ { "constant": false, - "id": 1197, + "id": 1181, "name": "b", "nodeType": "VariableDeclaration", - "scope": 1247, + "scope": 1231, "src": "2347:6:5", "stateVariable": false, "storageLocation": "default", @@ -9710,7 +9710,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1196, + "id": 1180, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2347:4:5", @@ -9723,14 +9723,14 @@ "visibility": "internal" } ], - "id": 1199, + "id": 1183, "initialValue": { "argumentTypes": null, - "id": 1198, + "id": 1182, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1189, + "referencedDeclaration": 1173, "src": "2356:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9742,15 +9742,15 @@ }, { "assignments": [ - 1201 + 1185 ], "declarations": [ { "constant": false, - "id": 1201, + "id": 1185, "name": "z", "nodeType": "VariableDeclaration", - "scope": 1247, + "scope": 1231, "src": "2367:6:5", "stateVariable": false, "storageLocation": "default", @@ -9759,7 +9759,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1200, + "id": 1184, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2367:4:5", @@ -9772,7 +9772,7 @@ "visibility": "internal" } ], - "id": 1210, + "id": 1194, "initialValue": { "argumentTypes": null, "condition": { @@ -9781,7 +9781,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1206, + "id": 1190, "isConstant": false, "isLValue": false, "isPure": false, @@ -9792,18 +9792,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1204, + "id": 1188, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1202, + "id": 1186, "name": "n", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1191, + "referencedDeclaration": 1175, "src": "2376:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9815,7 +9815,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "32", - "id": 1203, + "id": 1187, "isConstant": false, "isLValue": false, "isPure": true, @@ -9841,7 +9841,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 1205, + "id": 1189, "isConstant": false, "isLValue": false, "isPure": true, @@ -9864,18 +9864,18 @@ }, "falseExpression": { "argumentTypes": null, - "id": 1208, + "id": 1192, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "2393:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 1209, + "id": 1193, "isConstant": false, "isLValue": false, "isPure": false, @@ -9884,11 +9884,11 @@ "src": "2376:21:5", "trueExpression": { "argumentTypes": null, - "id": 1207, + "id": 1191, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1197, + "referencedDeclaration": 1181, "src": "2389:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9905,25 +9905,25 @@ }, { "body": { - "id": 1243, + "id": 1227, "nodeType": "Block", "src": "2437:116:5", "statements": [ { "expression": { "argumentTypes": null, - "id": 1227, + "id": 1211, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 1222, + "id": 1206, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1197, + "referencedDeclaration": 1181, "src": "2451:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9937,11 +9937,11 @@ "arguments": [ { "argumentTypes": null, - "id": 1224, + "id": 1208, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1197, + "referencedDeclaration": 1181, "src": "2460:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9950,11 +9950,11 @@ }, { "argumentTypes": null, - "id": 1225, + "id": 1209, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1197, + "referencedDeclaration": 1181, "src": "2463:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9973,18 +9973,18 @@ "typeString": "uint256" } ], - "id": 1223, + "id": 1207, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "2455:4:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 1226, + "id": 1210, "isConstant": false, "isLValue": false, "isPure": false, @@ -10004,7 +10004,7 @@ "typeString": "uint256" } }, - "id": 1228, + "id": 1212, "nodeType": "ExpressionStatement", "src": "2451:14:5" }, @@ -10015,7 +10015,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1233, + "id": 1217, "isConstant": false, "isLValue": false, "isPure": false, @@ -10026,18 +10026,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1231, + "id": 1215, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1229, + "id": 1213, "name": "n", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1191, + "referencedDeclaration": 1175, "src": "2484:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10049,7 +10049,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "32", - "id": 1230, + "id": 1214, "isConstant": false, "isLValue": false, "isPure": true, @@ -10075,7 +10075,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 1232, + "id": 1216, "isConstant": false, "isLValue": false, "isPure": true, @@ -10097,29 +10097,29 @@ } }, "falseBody": null, - "id": 1242, + "id": 1226, "nodeType": "IfStatement", "src": "2480:63:5", "trueBody": { - "id": 1241, + "id": 1225, "nodeType": "Block", "src": "2496:47:5", "statements": [ { "expression": { "argumentTypes": null, - "id": 1239, + "id": 1223, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 1234, + "id": 1218, "name": "z", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1201, + "referencedDeclaration": 1185, "src": "2514:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10133,11 +10133,11 @@ "arguments": [ { "argumentTypes": null, - "id": 1236, + "id": 1220, "name": "z", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1201, + "referencedDeclaration": 1185, "src": "2523:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10146,11 +10146,11 @@ }, { "argumentTypes": null, - "id": 1237, + "id": 1221, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1197, + "referencedDeclaration": 1181, "src": "2526:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10169,18 +10169,18 @@ "typeString": "uint256" } ], - "id": 1235, + "id": 1219, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "2518:4:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 1238, + "id": 1222, "isConstant": false, "isLValue": false, "isPure": false, @@ -10200,7 +10200,7 @@ "typeString": "uint256" } }, - "id": 1240, + "id": 1224, "nodeType": "ExpressionStatement", "src": "2514:14:5" } @@ -10215,18 +10215,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1217, + "id": 1201, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1215, + "id": 1199, "name": "n", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1191, + "referencedDeclaration": 1175, "src": "2421:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10238,7 +10238,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 1216, + "id": 1200, "isConstant": false, "isLValue": false, "isPure": true, @@ -10259,22 +10259,22 @@ "typeString": "bool" } }, - "id": 1244, + "id": 1228, "initializationExpression": { "expression": { "argumentTypes": null, - "id": 1213, + "id": 1197, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 1211, + "id": 1195, "name": "n", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1191, + "referencedDeclaration": 1175, "src": "2413:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10286,7 +10286,7 @@ "rightHandSide": { "argumentTypes": null, "hexValue": "32", - "id": 1212, + "id": 1196, "isConstant": false, "isLValue": false, "isPure": true, @@ -10307,25 +10307,25 @@ "typeString": "uint256" } }, - "id": 1214, + "id": 1198, "nodeType": "ExpressionStatement", "src": "2413:6:5" }, "loopExpression": { "expression": { "argumentTypes": null, - "id": 1220, + "id": 1204, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 1218, + "id": 1202, "name": "n", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1191, + "referencedDeclaration": 1175, "src": "2429:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10337,7 +10337,7 @@ "rightHandSide": { "argumentTypes": null, "hexValue": "32", - "id": 1219, + "id": 1203, "isConstant": false, "isLValue": false, "isPure": true, @@ -10358,7 +10358,7 @@ "typeString": "uint256" } }, - "id": 1221, + "id": 1205, "nodeType": "ExpressionStatement", "src": "2429:6:5" }, @@ -10368,41 +10368,41 @@ { "expression": { "argumentTypes": null, - "id": 1245, + "id": 1229, "name": "z", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1201, + "referencedDeclaration": 1185, "src": "2569:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 1195, - "id": 1246, + "functionReturnParameters": 1179, + "id": 1230, "nodeType": "Return", "src": "2562:8:5" } ] }, "documentation": null, - "id": 1248, + "id": 1232, "implemented": true, "kind": "function", "modifiers": [], "name": "bpowi", "nodeType": "FunctionDefinition", "parameters": { - "id": 1192, + "id": 1176, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 1189, + "id": 1173, "name": "a", "nodeType": "VariableDeclaration", - "scope": 1248, + "scope": 1232, "src": "2272:6:5", "stateVariable": false, "storageLocation": "default", @@ -10411,7 +10411,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1188, + "id": 1172, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2272:4:5", @@ -10425,10 +10425,10 @@ }, { "constant": false, - "id": 1191, + "id": 1175, "name": "n", "nodeType": "VariableDeclaration", - "scope": 1248, + "scope": 1232, "src": "2280:6:5", "stateVariable": false, "storageLocation": "default", @@ -10437,7 +10437,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1190, + "id": 1174, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2280:4:5", @@ -10453,15 +10453,15 @@ "src": "2271:16:5" }, "returnParameters": { - "id": 1195, + "id": 1179, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 1194, + "id": 1178, "name": "", "nodeType": "VariableDeclaration", - "scope": 1248, + "scope": 1232, "src": "2327:4:5", "stateVariable": false, "storageLocation": "default", @@ -10470,7 +10470,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1193, + "id": 1177, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2327:4:5", @@ -10485,7 +10485,7 @@ ], "src": "2326:6:5" }, - "scope": 1438, + "scope": 1422, "src": "2257:320:5", "stateMutability": "pure", "superFunction": null, @@ -10493,7 +10493,7 @@ }, { "body": { - "id": 1313, + "id": 1297, "nodeType": "Block", "src": "2817:453:5", "statements": [ @@ -10507,18 +10507,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1260, + "id": 1244, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1258, + "id": 1242, "name": "base", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1250, + "referencedDeclaration": 1234, "src": "2835:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10529,11 +10529,11 @@ "operator": ">=", "rightExpression": { "argumentTypes": null, - "id": 1259, + "id": 1243, "name": "MIN_BPOW_BASE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 255, + "referencedDeclaration": 251, "src": "2843:13:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10549,7 +10549,7 @@ { "argumentTypes": null, "hexValue": "4552525f42504f575f424153455f544f4f5f4c4f57", - "id": 1261, + "id": 1245, "isConstant": false, "isLValue": false, "isPure": true, @@ -10576,21 +10576,21 @@ "typeString": "literal_string \"ERR_BPOW_BASE_TOO_LOW\"" } ], - "id": 1257, + "id": 1241, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "2827:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 1262, + "id": 1246, "isConstant": false, "isLValue": false, "isPure": false, @@ -10604,7 +10604,7 @@ "typeString": "tuple()" } }, - "id": 1263, + "id": 1247, "nodeType": "ExpressionStatement", "src": "2827:55:5" }, @@ -10618,18 +10618,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1267, + "id": 1251, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1265, + "id": 1249, "name": "base", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1250, + "referencedDeclaration": 1234, "src": "2900:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10640,11 +10640,11 @@ "operator": "<=", "rightExpression": { "argumentTypes": null, - "id": 1266, + "id": 1250, "name": "MAX_BPOW_BASE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 263, + "referencedDeclaration": 259, "src": "2908:13:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10660,7 +10660,7 @@ { "argumentTypes": null, "hexValue": "4552525f42504f575f424153455f544f4f5f48494748", - "id": 1268, + "id": 1252, "isConstant": false, "isLValue": false, "isPure": true, @@ -10687,21 +10687,21 @@ "typeString": "literal_string \"ERR_BPOW_BASE_TOO_HIGH\"" } ], - "id": 1264, + "id": 1248, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "2892:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 1269, + "id": 1253, "isConstant": false, "isLValue": false, "isPure": false, @@ -10715,21 +10715,21 @@ "typeString": "tuple()" } }, - "id": 1270, + "id": 1254, "nodeType": "ExpressionStatement", "src": "2892:56:5" }, { "assignments": [ - 1272 + 1256 ], "declarations": [ { "constant": false, - "id": 1272, + "id": 1256, "name": "whole", "nodeType": "VariableDeclaration", - "scope": 1313, + "scope": 1297, "src": "2959:10:5", "stateVariable": false, "storageLocation": "default", @@ -10738,7 +10738,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1271, + "id": 1255, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2959:4:5", @@ -10751,17 +10751,17 @@ "visibility": "internal" } ], - "id": 1276, + "id": 1260, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 1274, + "id": 1258, "name": "exp", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1252, + "referencedDeclaration": 1236, "src": "2980:3:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10776,18 +10776,18 @@ "typeString": "uint256" } ], - "id": 1273, + "id": 1257, "name": "bfloor", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 992, + "referencedDeclaration": 976, "src": "2973:6:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256) pure returns (uint256)" } }, - "id": 1275, + "id": 1259, "isConstant": false, "isLValue": false, "isPure": false, @@ -10806,15 +10806,15 @@ }, { "assignments": [ - 1278 + 1262 ], "declarations": [ { "constant": false, - "id": 1278, + "id": 1262, "name": "remain", "nodeType": "VariableDeclaration", - "scope": 1313, + "scope": 1297, "src": "2997:11:5", "stateVariable": false, "storageLocation": "default", @@ -10823,7 +10823,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1277, + "id": 1261, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2997:4:5", @@ -10836,17 +10836,17 @@ "visibility": "internal" } ], - "id": 1283, + "id": 1267, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 1280, + "id": 1264, "name": "exp", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1252, + "referencedDeclaration": 1236, "src": "3016:3:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10855,11 +10855,11 @@ }, { "argumentTypes": null, - "id": 1281, + "id": 1265, "name": "whole", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1272, + "referencedDeclaration": 1256, "src": "3021:5:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10878,18 +10878,18 @@ "typeString": "uint256" } ], - "id": 1279, + "id": 1263, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "3011:4:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 1282, + "id": 1266, "isConstant": false, "isLValue": false, "isPure": false, @@ -10908,15 +10908,15 @@ }, { "assignments": [ - 1285 + 1269 ], "declarations": [ { "constant": false, - "id": 1285, + "id": 1269, "name": "wholePow", "nodeType": "VariableDeclaration", - "scope": 1313, + "scope": 1297, "src": "3038:13:5", "stateVariable": false, "storageLocation": "default", @@ -10925,7 +10925,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1284, + "id": 1268, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3038:4:5", @@ -10938,17 +10938,17 @@ "visibility": "internal" } ], - "id": 1292, + "id": 1276, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 1287, + "id": 1271, "name": "base", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1250, + "referencedDeclaration": 1234, "src": "3060:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10960,11 +10960,11 @@ "arguments": [ { "argumentTypes": null, - "id": 1289, + "id": 1273, "name": "whole", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1272, + "referencedDeclaration": 1256, "src": "3071:5:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10979,18 +10979,18 @@ "typeString": "uint256" } ], - "id": 1288, + "id": 1272, "name": "btoi", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 978, + "referencedDeclaration": 962, "src": "3066:4:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256) pure returns (uint256)" } }, - "id": 1290, + "id": 1274, "isConstant": false, "isLValue": false, "isPure": false, @@ -11016,18 +11016,18 @@ "typeString": "uint256" } ], - "id": 1286, + "id": 1270, "name": "bpowi", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1248, + "referencedDeclaration": 1232, "src": "3054:5:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 1291, + "id": 1275, "isConstant": false, "isLValue": false, "isPure": false, @@ -11051,18 +11051,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1295, + "id": 1279, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1293, + "id": 1277, "name": "remain", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1278, + "referencedDeclaration": 1262, "src": "3093:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11074,7 +11074,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 1294, + "id": 1278, "isConstant": false, "isLValue": false, "isPure": true, @@ -11096,30 +11096,30 @@ } }, "falseBody": null, - "id": 1299, + "id": 1283, "nodeType": "IfStatement", "src": "3089:57:5", "trueBody": { - "id": 1298, + "id": 1282, "nodeType": "Block", "src": "3106:40:5", "statements": [ { "expression": { "argumentTypes": null, - "id": 1296, + "id": 1280, "name": "wholePow", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1285, + "referencedDeclaration": 1269, "src": "3127:8:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 1256, - "id": 1297, + "functionReturnParameters": 1240, + "id": 1281, "nodeType": "Return", "src": "3120:15:5" } @@ -11128,15 +11128,15 @@ }, { "assignments": [ - 1301 + 1285 ], "declarations": [ { "constant": false, - "id": 1301, + "id": 1285, "name": "partialResult", "nodeType": "VariableDeclaration", - "scope": 1313, + "scope": 1297, "src": "3156:18:5", "stateVariable": false, "storageLocation": "default", @@ -11145,7 +11145,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1300, + "id": 1284, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3156:4:5", @@ -11158,17 +11158,17 @@ "visibility": "internal" } ], - "id": 1307, + "id": 1291, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 1303, + "id": 1287, "name": "base", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1250, + "referencedDeclaration": 1234, "src": "3188:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11177,11 +11177,11 @@ }, { "argumentTypes": null, - "id": 1304, + "id": 1288, "name": "remain", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1278, + "referencedDeclaration": 1262, "src": "3194:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11190,11 +11190,11 @@ }, { "argumentTypes": null, - "id": 1305, + "id": 1289, "name": "BPOW_PRECISION", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 270, + "referencedDeclaration": 266, "src": "3202:14:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11217,18 +11217,18 @@ "typeString": "uint256" } ], - "id": 1302, + "id": 1286, "name": "bpowApprox", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1437, + "referencedDeclaration": 1421, "src": "3177:10:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256,uint256) pure returns (uint256)" } }, - "id": 1306, + "id": 1290, "isConstant": false, "isLValue": false, "isPure": false, @@ -11251,11 +11251,11 @@ "arguments": [ { "argumentTypes": null, - "id": 1309, + "id": 1293, "name": "wholePow", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1285, + "referencedDeclaration": 1269, "src": "3239:8:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11264,11 +11264,11 @@ }, { "argumentTypes": null, - "id": 1310, + "id": 1294, "name": "partialResult", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1301, + "referencedDeclaration": 1285, "src": "3249:13:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11287,18 +11287,18 @@ "typeString": "uint256" } ], - "id": 1308, + "id": 1292, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "3234:4:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 1311, + "id": 1295, "isConstant": false, "isLValue": false, "isPure": false, @@ -11312,30 +11312,30 @@ "typeString": "uint256" } }, - "functionReturnParameters": 1256, - "id": 1312, + "functionReturnParameters": 1240, + "id": 1296, "nodeType": "Return", "src": "3227:36:5" } ] }, "documentation": null, - "id": 1314, + "id": 1298, "implemented": true, "kind": "function", "modifiers": [], "name": "bpow", "nodeType": "FunctionDefinition", "parameters": { - "id": 1253, + "id": 1237, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 1250, + "id": 1234, "name": "base", "nodeType": "VariableDeclaration", - "scope": 1314, + "scope": 1298, "src": "2747:9:5", "stateVariable": false, "storageLocation": "default", @@ -11344,7 +11344,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1249, + "id": 1233, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2747:4:5", @@ -11358,10 +11358,10 @@ }, { "constant": false, - "id": 1252, + "id": 1236, "name": "exp", "nodeType": "VariableDeclaration", - "scope": 1314, + "scope": 1298, "src": "2758:8:5", "stateVariable": false, "storageLocation": "default", @@ -11370,7 +11370,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1251, + "id": 1235, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2758:4:5", @@ -11386,15 +11386,15 @@ "src": "2746:21:5" }, "returnParameters": { - "id": 1256, + "id": 1240, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 1255, + "id": 1239, "name": "", "nodeType": "VariableDeclaration", - "scope": 1314, + "scope": 1298, "src": "2807:4:5", "stateVariable": false, "storageLocation": "default", @@ -11403,7 +11403,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1254, + "id": 1238, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2807:4:5", @@ -11418,7 +11418,7 @@ ], "src": "2806:6:5" }, - "scope": 1438, + "scope": 1422, "src": "2733:537:5", "stateMutability": "pure", "superFunction": null, @@ -11426,21 +11426,21 @@ }, { "body": { - "id": 1436, + "id": 1420, "nodeType": "Block", "src": "3382:941:5", "statements": [ { "assignments": [ - 1326 + 1310 ], "declarations": [ { "constant": false, - "id": 1326, + "id": 1310, "name": "a", "nodeType": "VariableDeclaration", - "scope": 1436, + "scope": 1420, "src": "3411:6:5", "stateVariable": false, "storageLocation": "default", @@ -11449,7 +11449,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1325, + "id": 1309, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3411:4:5", @@ -11462,14 +11462,14 @@ "visibility": "internal" } ], - "id": 1328, + "id": 1312, "initialValue": { "argumentTypes": null, - "id": 1327, + "id": 1311, "name": "exp", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1318, + "referencedDeclaration": 1302, "src": "3424:3:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11481,16 +11481,16 @@ }, { "assignments": [ - 1330, - 1332 + 1314, + 1316 ], "declarations": [ { "constant": false, - "id": 1330, + "id": 1314, "name": "x", "nodeType": "VariableDeclaration", - "scope": 1436, + "scope": 1420, "src": "3438:6:5", "stateVariable": false, "storageLocation": "default", @@ -11499,7 +11499,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1329, + "id": 1313, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3438:4:5", @@ -11513,10 +11513,10 @@ }, { "constant": false, - "id": 1332, + "id": 1316, "name": "xneg", "nodeType": "VariableDeclaration", - "scope": 1436, + "scope": 1420, "src": "3446:9:5", "stateVariable": false, "storageLocation": "default", @@ -11525,7 +11525,7 @@ "typeString": "bool" }, "typeName": { - "id": 1331, + "id": 1315, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3446:4:5", @@ -11538,17 +11538,17 @@ "visibility": "internal" } ], - "id": 1337, + "id": 1321, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 1334, + "id": 1318, "name": "base", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1316, + "referencedDeclaration": 1300, "src": "3469:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11557,11 +11557,11 @@ }, { "argumentTypes": null, - "id": 1335, + "id": 1319, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "3475:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11580,18 +11580,18 @@ "typeString": "uint256" } ], - "id": 1333, + "id": 1317, "name": "bsubSign", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1074, + "referencedDeclaration": 1058, "src": "3460:8:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$_t_bool_$", "typeString": "function (uint256,uint256) pure returns (uint256,bool)" } }, - "id": 1336, + "id": 1320, "isConstant": false, "isLValue": false, "isPure": false, @@ -11610,15 +11610,15 @@ }, { "assignments": [ - 1339 + 1323 ], "declarations": [ { "constant": false, - "id": 1339, + "id": 1323, "name": "term", "nodeType": "VariableDeclaration", - "scope": 1436, + "scope": 1420, "src": "3490:9:5", "stateVariable": false, "storageLocation": "default", @@ -11627,7 +11627,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1338, + "id": 1322, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3490:4:5", @@ -11640,14 +11640,14 @@ "visibility": "internal" } ], - "id": 1341, + "id": 1325, "initialValue": { "argumentTypes": null, - "id": 1340, + "id": 1324, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "3502:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11659,15 +11659,15 @@ }, { "assignments": [ - 1343 + 1327 ], "declarations": [ { "constant": false, - "id": 1343, + "id": 1327, "name": "sum", "nodeType": "VariableDeclaration", - "scope": 1436, + "scope": 1420, "src": "3516:8:5", "stateVariable": false, "storageLocation": "default", @@ -11676,7 +11676,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1342, + "id": 1326, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3516:4:5", @@ -11689,14 +11689,14 @@ "visibility": "internal" } ], - "id": 1345, + "id": 1329, "initialValue": { "argumentTypes": null, - "id": 1344, + "id": 1328, "name": "term", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1339, + "referencedDeclaration": 1323, "src": "3529:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11708,15 +11708,15 @@ }, { "assignments": [ - 1347 + 1331 ], "declarations": [ { "constant": false, - "id": 1347, + "id": 1331, "name": "negative", "nodeType": "VariableDeclaration", - "scope": 1436, + "scope": 1420, "src": "3543:13:5", "stateVariable": false, "storageLocation": "default", @@ -11725,7 +11725,7 @@ "typeString": "bool" }, "typeName": { - "id": 1346, + "id": 1330, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3543:4:5", @@ -11738,11 +11738,11 @@ "visibility": "internal" } ], - "id": 1349, + "id": 1333, "initialValue": { "argumentTypes": null, "hexValue": "66616c7365", - "id": 1348, + "id": 1332, "isConstant": false, "isLValue": false, "isPure": true, @@ -11762,21 +11762,21 @@ }, { "body": { - "id": 1432, + "id": 1416, "nodeType": "Block", "src": "3842:454:5", "statements": [ { "assignments": [ - 1361 + 1345 ], "declarations": [ { "constant": false, - "id": 1361, + "id": 1345, "name": "bigK", "nodeType": "VariableDeclaration", - "scope": 1432, + "scope": 1416, "src": "3856:9:5", "stateVariable": false, "storageLocation": "default", @@ -11785,7 +11785,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1360, + "id": 1344, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3856:4:5", @@ -11798,25 +11798,25 @@ "visibility": "internal" } ], - "id": 1365, + "id": 1349, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1364, + "id": 1348, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1362, + "id": 1346, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1351, + "referencedDeclaration": 1335, "src": "3868:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11827,11 +11827,11 @@ "operator": "*", "rightExpression": { "argumentTypes": null, - "id": 1363, + "id": 1347, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "3872:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11849,16 +11849,16 @@ }, { "assignments": [ - 1367, - 1369 + 1351, + 1353 ], "declarations": [ { "constant": false, - "id": 1367, + "id": 1351, "name": "c", "nodeType": "VariableDeclaration", - "scope": 1432, + "scope": 1416, "src": "3891:6:5", "stateVariable": false, "storageLocation": "default", @@ -11867,7 +11867,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1366, + "id": 1350, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3891:4:5", @@ -11881,10 +11881,10 @@ }, { "constant": false, - "id": 1369, + "id": 1353, "name": "cneg", "nodeType": "VariableDeclaration", - "scope": 1432, + "scope": 1416, "src": "3899:9:5", "stateVariable": false, "storageLocation": "default", @@ -11893,7 +11893,7 @@ "typeString": "bool" }, "typeName": { - "id": 1368, + "id": 1352, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3899:4:5", @@ -11906,17 +11906,17 @@ "visibility": "internal" } ], - "id": 1377, + "id": 1361, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 1371, + "id": 1355, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1326, + "referencedDeclaration": 1310, "src": "3921:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11928,11 +11928,11 @@ "arguments": [ { "argumentTypes": null, - "id": 1373, + "id": 1357, "name": "bigK", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1361, + "referencedDeclaration": 1345, "src": "3929:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11941,11 +11941,11 @@ }, { "argumentTypes": null, - "id": 1374, + "id": 1358, "name": "BONE", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 206, + "referencedDeclaration": 202, "src": "3935:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11964,18 +11964,18 @@ "typeString": "uint256" } ], - "id": 1372, + "id": 1356, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "3924:4:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 1375, + "id": 1359, "isConstant": false, "isLValue": false, "isPure": false, @@ -12001,18 +12001,18 @@ "typeString": "uint256" } ], - "id": 1370, + "id": 1354, "name": "bsubSign", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1074, + "referencedDeclaration": 1058, "src": "3912:8:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$_t_bool_$", "typeString": "function (uint256,uint256) pure returns (uint256,bool)" } }, - "id": 1376, + "id": 1360, "isConstant": false, "isLValue": false, "isPure": false, @@ -12032,18 +12032,18 @@ { "expression": { "argumentTypes": null, - "id": 1386, + "id": 1370, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 1378, + "id": 1362, "name": "term", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1339, + "referencedDeclaration": 1323, "src": "3955:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12057,11 +12057,11 @@ "arguments": [ { "argumentTypes": null, - "id": 1380, + "id": 1364, "name": "term", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1339, + "referencedDeclaration": 1323, "src": "3967:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12073,11 +12073,11 @@ "arguments": [ { "argumentTypes": null, - "id": 1382, + "id": 1366, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1367, + "referencedDeclaration": 1351, "src": "3978:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12086,11 +12086,11 @@ }, { "argumentTypes": null, - "id": 1383, + "id": 1367, "name": "x", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1330, + "referencedDeclaration": 1314, "src": "3981:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12109,18 +12109,18 @@ "typeString": "uint256" } ], - "id": 1381, + "id": 1365, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "3973:4:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 1384, + "id": 1368, "isConstant": false, "isLValue": false, "isPure": false, @@ -12146,18 +12146,18 @@ "typeString": "uint256" } ], - "id": 1379, + "id": 1363, "name": "bmul", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1127, + "referencedDeclaration": 1111, "src": "3962:4:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 1385, + "id": 1369, "isConstant": false, "isLValue": false, "isPure": false, @@ -12177,25 +12177,25 @@ "typeString": "uint256" } }, - "id": 1387, + "id": 1371, "nodeType": "ExpressionStatement", "src": "3955:29:5" }, { "expression": { "argumentTypes": null, - "id": 1393, + "id": 1377, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 1388, + "id": 1372, "name": "term", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1339, + "referencedDeclaration": 1323, "src": "3998:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12209,11 +12209,11 @@ "arguments": [ { "argumentTypes": null, - "id": 1390, + "id": 1374, "name": "term", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1339, + "referencedDeclaration": 1323, "src": "4010:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12222,11 +12222,11 @@ }, { "argumentTypes": null, - "id": 1391, + "id": 1375, "name": "bigK", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1361, + "referencedDeclaration": 1345, "src": "4016:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12245,18 +12245,18 @@ "typeString": "uint256" } ], - "id": 1389, + "id": 1373, "name": "bdiv", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1187, + "referencedDeclaration": 1171, "src": "4005:4:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 1392, + "id": 1376, "isConstant": false, "isLValue": false, "isPure": false, @@ -12276,7 +12276,7 @@ "typeString": "uint256" } }, - "id": 1394, + "id": 1378, "nodeType": "ExpressionStatement", "src": "3998:23:5" }, @@ -12287,18 +12287,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1397, + "id": 1381, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1395, + "id": 1379, "name": "term", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1339, + "referencedDeclaration": 1323, "src": "4039:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12310,7 +12310,7 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 1396, + "id": 1380, "isConstant": false, "isLValue": false, "isPure": true, @@ -12332,11 +12332,11 @@ } }, "falseBody": null, - "id": 1399, + "id": 1383, "nodeType": "IfStatement", "src": "4035:20:5", "trueBody": { - "id": 1398, + "id": 1382, "nodeType": "Break", "src": "4050:5:5" } @@ -12344,11 +12344,11 @@ { "condition": { "argumentTypes": null, - "id": 1400, + "id": 1384, "name": "xneg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1332, + "referencedDeclaration": 1316, "src": "4074:4:5", "typeDescriptions": { "typeIdentifier": "t_bool", @@ -12356,24 +12356,24 @@ } }, "falseBody": null, - "id": 1406, + "id": 1390, "nodeType": "IfStatement", "src": "4070:30:5", "trueBody": { "expression": { "argumentTypes": null, - "id": 1404, + "id": 1388, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 1401, + "id": 1385, "name": "negative", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1347, + "referencedDeclaration": 1331, "src": "4080:8:5", "typeDescriptions": { "typeIdentifier": "t_bool", @@ -12384,7 +12384,7 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 1403, + "id": 1387, "isConstant": false, "isLValue": false, "isPure": false, @@ -12395,11 +12395,11 @@ "src": "4091:9:5", "subExpression": { "argumentTypes": null, - "id": 1402, + "id": 1386, "name": "negative", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1347, + "referencedDeclaration": 1331, "src": "4092:8:5", "typeDescriptions": { "typeIdentifier": "t_bool", @@ -12417,7 +12417,7 @@ "typeString": "bool" } }, - "id": 1405, + "id": 1389, "nodeType": "ExpressionStatement", "src": "4080:20:5" } @@ -12425,11 +12425,11 @@ { "condition": { "argumentTypes": null, - "id": 1407, + "id": 1391, "name": "cneg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1369, + "referencedDeclaration": 1353, "src": "4118:4:5", "typeDescriptions": { "typeIdentifier": "t_bool", @@ -12437,24 +12437,24 @@ } }, "falseBody": null, - "id": 1413, + "id": 1397, "nodeType": "IfStatement", "src": "4114:30:5", "trueBody": { "expression": { "argumentTypes": null, - "id": 1411, + "id": 1395, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 1408, + "id": 1392, "name": "negative", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1347, + "referencedDeclaration": 1331, "src": "4124:8:5", "typeDescriptions": { "typeIdentifier": "t_bool", @@ -12465,7 +12465,7 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 1410, + "id": 1394, "isConstant": false, "isLValue": false, "isPure": false, @@ -12476,11 +12476,11 @@ "src": "4135:9:5", "subExpression": { "argumentTypes": null, - "id": 1409, + "id": 1393, "name": "negative", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1347, + "referencedDeclaration": 1331, "src": "4136:8:5", "typeDescriptions": { "typeIdentifier": "t_bool", @@ -12498,7 +12498,7 @@ "typeString": "bool" } }, - "id": 1412, + "id": 1396, "nodeType": "ExpressionStatement", "src": "4124:20:5" } @@ -12506,11 +12506,11 @@ { "condition": { "argumentTypes": null, - "id": 1414, + "id": 1398, "name": "negative", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1347, + "referencedDeclaration": 1331, "src": "4162:8:5", "typeDescriptions": { "typeIdentifier": "t_bool", @@ -12518,25 +12518,25 @@ } }, "falseBody": { - "id": 1430, + "id": 1414, "nodeType": "Block", "src": "4232:54:5", "statements": [ { "expression": { "argumentTypes": null, - "id": 1428, + "id": 1412, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 1423, + "id": 1407, "name": "sum", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1343, + "referencedDeclaration": 1327, "src": "4250:3:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12550,11 +12550,11 @@ "arguments": [ { "argumentTypes": null, - "id": 1425, + "id": 1409, "name": "sum", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1343, + "referencedDeclaration": 1327, "src": "4261:3:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12563,11 +12563,11 @@ }, { "argumentTypes": null, - "id": 1426, + "id": 1410, "name": "term", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1339, + "referencedDeclaration": 1323, "src": "4266:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12586,18 +12586,18 @@ "typeString": "uint256" } ], - "id": 1424, + "id": 1408, "name": "badd", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1017, + "referencedDeclaration": 1001, "src": "4256:4:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 1427, + "id": 1411, "isConstant": false, "isLValue": false, "isPure": false, @@ -12617,35 +12617,35 @@ "typeString": "uint256" } }, - "id": 1429, + "id": 1413, "nodeType": "ExpressionStatement", "src": "4250:21:5" } ] }, - "id": 1431, + "id": 1415, "nodeType": "IfStatement", "src": "4158:128:5", "trueBody": { - "id": 1422, + "id": 1406, "nodeType": "Block", "src": "4172:54:5", "statements": [ { "expression": { "argumentTypes": null, - "id": 1420, + "id": 1404, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 1415, + "id": 1399, "name": "sum", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1343, + "referencedDeclaration": 1327, "src": "4190:3:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12659,11 +12659,11 @@ "arguments": [ { "argumentTypes": null, - "id": 1417, + "id": 1401, "name": "sum", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1343, + "referencedDeclaration": 1327, "src": "4201:3:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12672,11 +12672,11 @@ }, { "argumentTypes": null, - "id": 1418, + "id": 1402, "name": "term", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1339, + "referencedDeclaration": 1323, "src": "4206:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12695,18 +12695,18 @@ "typeString": "uint256" } ], - "id": 1416, + "id": 1400, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "4196:4:5", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 1419, + "id": 1403, "isConstant": false, "isLValue": false, "isPure": false, @@ -12726,7 +12726,7 @@ "typeString": "uint256" } }, - "id": 1421, + "id": 1405, "nodeType": "ExpressionStatement", "src": "4190:21:5" } @@ -12741,18 +12741,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 1356, + "id": 1340, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 1354, + "id": 1338, "name": "term", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1339, + "referencedDeclaration": 1323, "src": "3818:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12763,11 +12763,11 @@ "operator": ">=", "rightExpression": { "argumentTypes": null, - "id": 1355, + "id": 1339, "name": "precision", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1320, + "referencedDeclaration": 1304, "src": "3826:9:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12780,18 +12780,18 @@ "typeString": "bool" } }, - "id": 1433, + "id": 1417, "initializationExpression": { "assignments": [ - 1351 + 1335 ], "declarations": [ { "constant": false, - "id": 1351, + "id": 1335, "name": "i", "nodeType": "VariableDeclaration", - "scope": 1433, + "scope": 1417, "src": "3806:6:5", "stateVariable": false, "storageLocation": "default", @@ -12800,7 +12800,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1350, + "id": 1334, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3806:4:5", @@ -12813,11 +12813,11 @@ "visibility": "internal" } ], - "id": 1353, + "id": 1337, "initialValue": { "argumentTypes": null, "hexValue": "31", - "id": 1352, + "id": 1336, "isConstant": false, "isLValue": false, "isPure": true, @@ -12838,7 +12838,7 @@ "loopExpression": { "expression": { "argumentTypes": null, - "id": 1358, + "id": 1342, "isConstant": false, "isLValue": false, "isPure": false, @@ -12849,11 +12849,11 @@ "src": "3837:3:5", "subExpression": { "argumentTypes": null, - "id": 1357, + "id": 1341, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1351, + "referencedDeclaration": 1335, "src": "3837:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12865,7 +12865,7 @@ "typeString": "uint256" } }, - "id": 1359, + "id": 1343, "nodeType": "ExpressionStatement", "src": "3837:3:5" }, @@ -12875,41 +12875,41 @@ { "expression": { "argumentTypes": null, - "id": 1434, + "id": 1418, "name": "sum", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1343, + "referencedDeclaration": 1327, "src": "4313:3:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 1324, - "id": 1435, + "functionReturnParameters": 1308, + "id": 1419, "nodeType": "Return", "src": "4306:10:5" } ] }, "documentation": null, - "id": 1437, + "id": 1421, "implemented": true, "kind": "function", "modifiers": [], "name": "bpowApprox", "nodeType": "FunctionDefinition", "parameters": { - "id": 1321, + "id": 1305, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 1316, + "id": 1300, "name": "base", "nodeType": "VariableDeclaration", - "scope": 1437, + "scope": 1421, "src": "3296:9:5", "stateVariable": false, "storageLocation": "default", @@ -12918,7 +12918,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1315, + "id": 1299, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3296:4:5", @@ -12932,10 +12932,10 @@ }, { "constant": false, - "id": 1318, + "id": 1302, "name": "exp", "nodeType": "VariableDeclaration", - "scope": 1437, + "scope": 1421, "src": "3307:8:5", "stateVariable": false, "storageLocation": "default", @@ -12944,7 +12944,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1317, + "id": 1301, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3307:4:5", @@ -12958,10 +12958,10 @@ }, { "constant": false, - "id": 1320, + "id": 1304, "name": "precision", "nodeType": "VariableDeclaration", - "scope": 1437, + "scope": 1421, "src": "3317:14:5", "stateVariable": false, "storageLocation": "default", @@ -12970,7 +12970,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1319, + "id": 1303, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3317:4:5", @@ -12986,15 +12986,15 @@ "src": "3295:37:5" }, "returnParameters": { - "id": 1324, + "id": 1308, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 1323, + "id": 1307, "name": "", "nodeType": "VariableDeclaration", - "scope": 1437, + "scope": 1421, "src": "3372:4:5", "stateVariable": false, "storageLocation": "default", @@ -13003,7 +13003,7 @@ "typeString": "uint256" }, "typeName": { - "id": 1322, + "id": 1306, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3372:4:5", @@ -13018,14 +13018,14 @@ ], "src": "3371:6:5" }, - "scope": 1438, + "scope": 1422, "src": "3276:1047:5", "stateMutability": "pure", "superFunction": null, "visibility": "internal" } ], - "scope": 1439, + "scope": 1423, "src": "691:3635:5" } ], @@ -13037,7 +13037,7 @@ }, "networks": {}, "schemaVersion": "3.2.0", - "updatedAt": "2020-09-11T10:54:21.626Z", + "updatedAt": "2020-10-02T11:33:45.719Z", "devdoc": { "methods": {} }, diff --git a/artifacts/BPool.json b/artifacts/BPool.json index 59715bf67..6afd3b700 100644 --- a/artifacts/BPool.json +++ b/artifacts/BPool.json @@ -66915,7 +66915,7 @@ }, "networks": {}, "schemaVersion": "3.2.0", - "updatedAt": "2020-10-02T05:02:46.078Z", + "updatedAt": "2020-10-02T11:33:45.729Z", "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 34ef05b49..b1e01db42 100644 --- a/artifacts/BToken.json +++ b/artifacts/BToken.json @@ -498,17 +498,17 @@ "absolutePath": "/ocean/ocean-contracts/contracts/balancer/BToken.sol", "exportedSymbols": { "BToken": [ - 4287 + 4285 ], "BTokenBase": [ - 3981 + 3979 ] }, - "id": 4288, + "id": 4286, "nodeType": "SourceUnit", "nodes": [ { - "id": 3782, + "id": 3780, "literals": [ "solidity", "0.5", @@ -520,10 +520,10 @@ { "absolutePath": "/ocean/ocean-contracts/contracts/balancer/BNum.sol", "file": "./BNum.sol", - "id": 3783, + "id": 3781, "nodeType": "ImportDirective", - "scope": 4288, - "sourceUnit": 1439, + "scope": 4286, + "sourceUnit": 1423, "src": "667:20:7", "symbolAliases": [], "unitAlias": "" @@ -531,10 +531,10 @@ { "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol", "file": "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol", - "id": 3784, + "id": 3782, "nodeType": "ImportDirective", - "scope": 4288, - "sourceUnit": 6779, + "scope": 4286, + "sourceUnit": 6538, "src": "688:64:7", "symbolAliases": [], "unitAlias": "" @@ -545,43 +545,43 @@ "arguments": null, "baseName": { "contractScope": null, - "id": 3785, + "id": 3783, "name": "BNum", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 1438, + "referencedDeclaration": 1422, "src": "1468:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BNum_$1438", + "typeIdentifier": "t_contract$_BNum_$1422", "typeString": "contract BNum" } }, - "id": 3786, + "id": 3784, "nodeType": "InheritanceSpecifier", "src": "1468:4:7" } ], "contractDependencies": [ - 284, - 1438 + 280, + 1422 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, - "id": 3981, + "id": 3979, "linearizedBaseContracts": [ - 3981, - 1438, - 284 + 3979, + 1422, + 280 ], "name": "BTokenBase", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, - "id": 3790, + "id": 3788, "name": "_balance", "nodeType": "VariableDeclaration", - "scope": 3981, + "scope": 3979, "src": "1480:60:7", "stateVariable": true, "storageLocation": "default", @@ -590,9 +590,9 @@ "typeString": "mapping(address => uint256)" }, "typeName": { - "id": 3789, + "id": 3787, "keyType": { - "id": 3787, + "id": 3785, "name": "address", "nodeType": "ElementaryTypeName", "src": "1488:7:7", @@ -608,7 +608,7 @@ "typeString": "mapping(address => uint256)" }, "valueType": { - "id": 3788, + "id": 3786, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1499:4:7", @@ -623,10 +623,10 @@ }, { "constant": false, - "id": 3796, + "id": 3794, "name": "_allowance", "nodeType": "VariableDeclaration", - "scope": 3981, + "scope": 3979, "src": "1546:62:7", "stateVariable": true, "storageLocation": "default", @@ -635,9 +635,9 @@ "typeString": "mapping(address => mapping(address => uint256))" }, "typeName": { - "id": 3795, + "id": 3793, "keyType": { - "id": 3791, + "id": 3789, "name": "address", "nodeType": "ElementaryTypeName", "src": "1554:7:7", @@ -653,9 +653,9 @@ "typeString": "mapping(address => mapping(address => uint256))" }, "valueType": { - "id": 3794, + "id": 3792, "keyType": { - "id": 3792, + "id": 3790, "name": "address", "nodeType": "ElementaryTypeName", "src": "1573:7:7", @@ -671,7 +671,7 @@ "typeString": "mapping(address => uint256)" }, "valueType": { - "id": 3793, + "id": 3791, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1582:4:7", @@ -687,10 +687,10 @@ }, { "constant": false, - "id": 3798, + "id": 3796, "name": "_totalSupply", "nodeType": "VariableDeclaration", - "scope": 3981, + "scope": 3979, "src": "1614:26:7", "stateVariable": true, "storageLocation": "default", @@ -699,7 +699,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3797, + "id": 3795, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1614:4:7", @@ -714,20 +714,20 @@ { "anonymous": false, "documentation": null, - "id": 3806, + "id": 3804, "name": "Approval", "nodeType": "EventDefinition", "parameters": { - "id": 3805, + "id": 3803, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3800, + "id": 3798, "indexed": true, "name": "src", "nodeType": "VariableDeclaration", - "scope": 3806, + "scope": 3804, "src": "1662:19:7", "stateVariable": false, "storageLocation": "default", @@ -736,7 +736,7 @@ "typeString": "address" }, "typeName": { - "id": 3799, + "id": 3797, "name": "address", "nodeType": "ElementaryTypeName", "src": "1662:7:7", @@ -751,11 +751,11 @@ }, { "constant": false, - "id": 3802, + "id": 3800, "indexed": true, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 3806, + "scope": 3804, "src": "1683:19:7", "stateVariable": false, "storageLocation": "default", @@ -764,7 +764,7 @@ "typeString": "address" }, "typeName": { - "id": 3801, + "id": 3799, "name": "address", "nodeType": "ElementaryTypeName", "src": "1683:7:7", @@ -779,11 +779,11 @@ }, { "constant": false, - "id": 3804, + "id": 3802, "indexed": false, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 3806, + "scope": 3804, "src": "1704:8:7", "stateVariable": false, "storageLocation": "default", @@ -792,7 +792,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3803, + "id": 3801, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1704:4:7", @@ -812,20 +812,20 @@ { "anonymous": false, "documentation": null, - "id": 3814, + "id": 3812, "name": "Transfer", "nodeType": "EventDefinition", "parameters": { - "id": 3813, + "id": 3811, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3808, + "id": 3806, "indexed": true, "name": "src", "nodeType": "VariableDeclaration", - "scope": 3814, + "scope": 3812, "src": "1734:19:7", "stateVariable": false, "storageLocation": "default", @@ -834,7 +834,7 @@ "typeString": "address" }, "typeName": { - "id": 3807, + "id": 3805, "name": "address", "nodeType": "ElementaryTypeName", "src": "1734:7:7", @@ -849,11 +849,11 @@ }, { "constant": false, - "id": 3810, + "id": 3808, "indexed": true, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 3814, + "scope": 3812, "src": "1755:19:7", "stateVariable": false, "storageLocation": "default", @@ -862,7 +862,7 @@ "typeString": "address" }, "typeName": { - "id": 3809, + "id": 3807, "name": "address", "nodeType": "ElementaryTypeName", "src": "1755:7:7", @@ -877,11 +877,11 @@ }, { "constant": false, - "id": 3812, + "id": 3810, "indexed": false, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 3814, + "scope": 3812, "src": "1776:8:7", "stateVariable": false, "storageLocation": "default", @@ -890,7 +890,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3811, + "id": 3809, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1776:4:7", @@ -909,14 +909,14 @@ }, { "body": { - "id": 3851, + "id": 3849, "nodeType": "Block", "src": "1826:180:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 3832, + "id": 3830, "isConstant": false, "isLValue": false, "isPure": false, @@ -925,31 +925,31 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3819, + "id": 3817, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "1836:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3823, + "id": 3821, "indexExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 3821, + "id": 3819, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "1853:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -957,11 +957,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3820, + "id": 3818, "isConstant": false, "isLValue": false, "isPure": true, @@ -974,7 +974,7 @@ }, "typeName": "address" }, - "id": 3822, + "id": 3820, "isConstant": false, "isLValue": false, "isPure": false, @@ -1008,31 +1008,31 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3825, + "id": 3823, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "1867:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3829, + "id": 3827, "indexExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 3827, + "id": 3825, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "1884:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -1040,11 +1040,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3826, + "id": 3824, "isConstant": false, "isLValue": false, "isPure": true, @@ -1057,7 +1057,7 @@ }, "typeName": "address" }, - "id": 3828, + "id": 3826, "isConstant": false, "isLValue": false, "isPure": false, @@ -1084,11 +1084,11 @@ }, { "argumentTypes": null, - "id": 3830, + "id": 3828, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3816, + "referencedDeclaration": 3814, "src": "1892:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1107,18 +1107,18 @@ "typeString": "uint256" } ], - "id": 3824, + "id": 3822, "name": "badd", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1017, + "referencedDeclaration": 1001, "src": "1862:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 3831, + "id": 3829, "isConstant": false, "isLValue": false, "isPure": false, @@ -1138,25 +1138,25 @@ "typeString": "uint256" } }, - "id": 3833, + "id": 3831, "nodeType": "ExpressionStatement", "src": "1836:60:7" }, { "expression": { "argumentTypes": null, - "id": 3839, + "id": 3837, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 3834, + "id": 3832, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3798, + "referencedDeclaration": 3796, "src": "1906:12:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1170,11 +1170,11 @@ "arguments": [ { "argumentTypes": null, - "id": 3836, + "id": 3834, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3798, + "referencedDeclaration": 3796, "src": "1926:12:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1183,11 +1183,11 @@ }, { "argumentTypes": null, - "id": 3837, + "id": 3835, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3816, + "referencedDeclaration": 3814, "src": "1940:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1206,18 +1206,18 @@ "typeString": "uint256" } ], - "id": 3835, + "id": 3833, "name": "badd", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1017, + "referencedDeclaration": 1001, "src": "1921:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 3838, + "id": 3836, "isConstant": false, "isLValue": false, "isPure": false, @@ -1237,7 +1237,7 @@ "typeString": "uint256" } }, - "id": 3840, + "id": 3838, "nodeType": "ExpressionStatement", "src": "1906:38:7" }, @@ -1251,7 +1251,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 3843, + "id": 3841, "isConstant": false, "isLValue": false, "isPure": true, @@ -1274,7 +1274,7 @@ "typeString": "int_const 0" } ], - "id": 3842, + "id": 3840, "isConstant": false, "isLValue": false, "isPure": true, @@ -1287,7 +1287,7 @@ }, "typeName": "address" }, - "id": 3844, + "id": 3842, "isConstant": false, "isLValue": false, "isPure": true, @@ -1306,14 +1306,14 @@ "arguments": [ { "argumentTypes": null, - "id": 3846, + "id": 3844, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "1988:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -1321,11 +1321,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3845, + "id": 3843, "isConstant": false, "isLValue": false, "isPure": true, @@ -1338,7 +1338,7 @@ }, "typeName": "address" }, - "id": 3847, + "id": 3845, "isConstant": false, "isLValue": false, "isPure": false, @@ -1354,11 +1354,11 @@ }, { "argumentTypes": null, - "id": 3848, + "id": 3846, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3816, + "referencedDeclaration": 3814, "src": "1995:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1381,18 +1381,18 @@ "typeString": "uint256" } ], - "id": 3841, + "id": 3839, "name": "Transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3814, + "referencedDeclaration": 3812, "src": "1959:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 3849, + "id": 3847, "isConstant": false, "isLValue": false, "isPure": false, @@ -1406,29 +1406,29 @@ "typeString": "tuple()" } }, - "id": 3850, + "id": 3848, "nodeType": "EmitStatement", "src": "1954:45:7" } ] }, "documentation": null, - "id": 3852, + "id": 3850, "implemented": true, "kind": "function", "modifiers": [], "name": "_mint", "nodeType": "FunctionDefinition", "parameters": { - "id": 3817, + "id": 3815, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3816, + "id": 3814, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 3852, + "scope": 3850, "src": "1807:8:7", "stateVariable": false, "storageLocation": "default", @@ -1437,7 +1437,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3815, + "id": 3813, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1807:4:7", @@ -1453,12 +1453,12 @@ "src": "1806:10:7" }, "returnParameters": { - "id": 3818, + "id": 3816, "nodeType": "ParameterList", "parameters": [], "src": "1826:0:7" }, - "scope": 3981, + "scope": 3979, "src": "1792:214:7", "stateMutability": "nonpayable", "superFunction": null, @@ -1466,7 +1466,7 @@ }, { "body": { - "id": 3900, + "id": 3898, "nodeType": "Block", "src": "2046:288:7", "statements": [ @@ -1480,7 +1480,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 3864, + "id": 3862, "isConstant": false, "isLValue": false, "isPure": false, @@ -1489,31 +1489,31 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3858, + "id": 3856, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2077:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3862, + "id": 3860, "indexExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 3860, + "id": 3858, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "2094:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -1521,11 +1521,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3859, + "id": 3857, "isConstant": false, "isLValue": false, "isPure": true, @@ -1538,7 +1538,7 @@ }, "typeName": "address" }, - "id": 3861, + "id": 3859, "isConstant": false, "isLValue": false, "isPure": false, @@ -1567,11 +1567,11 @@ "operator": ">=", "rightExpression": { "argumentTypes": null, - "id": 3863, + "id": 3861, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3854, + "referencedDeclaration": 3852, "src": "2104:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1587,7 +1587,7 @@ { "argumentTypes": null, "hexValue": "4552525f494e53554646494349454e545f42414c", - "id": 3865, + "id": 3863, "isConstant": false, "isLValue": false, "isPure": true, @@ -1614,21 +1614,21 @@ "typeString": "literal_string \"ERR_INSUFFICIENT_BAL\"" } ], - "id": 3857, + "id": 3855, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "2056:7:7", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 3866, + "id": 3864, "isConstant": false, "isLValue": false, "isPure": false, @@ -1642,14 +1642,14 @@ "typeString": "tuple()" } }, - "id": 3867, + "id": 3865, "nodeType": "ExpressionStatement", "src": "2056:98:7" }, { "expression": { "argumentTypes": null, - "id": 3881, + "id": 3879, "isConstant": false, "isLValue": false, "isPure": false, @@ -1658,31 +1658,31 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3868, + "id": 3866, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2164:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3872, + "id": 3870, "indexExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 3870, + "id": 3868, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "2181:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -1690,11 +1690,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3869, + "id": 3867, "isConstant": false, "isLValue": false, "isPure": true, @@ -1707,7 +1707,7 @@ }, "typeName": "address" }, - "id": 3871, + "id": 3869, "isConstant": false, "isLValue": false, "isPure": false, @@ -1741,31 +1741,31 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3874, + "id": 3872, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2195:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3878, + "id": 3876, "indexExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 3876, + "id": 3874, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "2212:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -1773,11 +1773,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3875, + "id": 3873, "isConstant": false, "isLValue": false, "isPure": true, @@ -1790,7 +1790,7 @@ }, "typeName": "address" }, - "id": 3877, + "id": 3875, "isConstant": false, "isLValue": false, "isPure": false, @@ -1817,11 +1817,11 @@ }, { "argumentTypes": null, - "id": 3879, + "id": 3877, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3854, + "referencedDeclaration": 3852, "src": "2220:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1840,18 +1840,18 @@ "typeString": "uint256" } ], - "id": 3873, + "id": 3871, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "2190:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 3880, + "id": 3878, "isConstant": false, "isLValue": false, "isPure": false, @@ -1871,25 +1871,25 @@ "typeString": "uint256" } }, - "id": 3882, + "id": 3880, "nodeType": "ExpressionStatement", "src": "2164:60:7" }, { "expression": { "argumentTypes": null, - "id": 3888, + "id": 3886, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 3883, + "id": 3881, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3798, + "referencedDeclaration": 3796, "src": "2234:12:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1903,11 +1903,11 @@ "arguments": [ { "argumentTypes": null, - "id": 3885, + "id": 3883, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3798, + "referencedDeclaration": 3796, "src": "2254:12:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1916,11 +1916,11 @@ }, { "argumentTypes": null, - "id": 3886, + "id": 3884, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3854, + "referencedDeclaration": 3852, "src": "2268:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1939,18 +1939,18 @@ "typeString": "uint256" } ], - "id": 3884, + "id": 3882, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "2249:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 3887, + "id": 3885, "isConstant": false, "isLValue": false, "isPure": false, @@ -1970,7 +1970,7 @@ "typeString": "uint256" } }, - "id": 3889, + "id": 3887, "nodeType": "ExpressionStatement", "src": "2234:38:7" }, @@ -1983,14 +1983,14 @@ "arguments": [ { "argumentTypes": null, - "id": 3892, + "id": 3890, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "2304:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -1998,11 +1998,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3891, + "id": 3889, "isConstant": false, "isLValue": false, "isPure": true, @@ -2015,7 +2015,7 @@ }, "typeName": "address" }, - "id": 3893, + "id": 3891, "isConstant": false, "isLValue": false, "isPure": false, @@ -2035,7 +2035,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 3895, + "id": 3893, "isConstant": false, "isLValue": false, "isPure": true, @@ -2058,7 +2058,7 @@ "typeString": "int_const 0" } ], - "id": 3894, + "id": 3892, "isConstant": false, "isLValue": false, "isPure": true, @@ -2071,7 +2071,7 @@ }, "typeName": "address" }, - "id": 3896, + "id": 3894, "isConstant": false, "isLValue": false, "isPure": true, @@ -2087,11 +2087,11 @@ }, { "argumentTypes": null, - "id": 3897, + "id": 3895, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3854, + "referencedDeclaration": 3852, "src": "2323:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2114,18 +2114,18 @@ "typeString": "uint256" } ], - "id": 3890, + "id": 3888, "name": "Transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3814, + "referencedDeclaration": 3812, "src": "2287:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 3898, + "id": 3896, "isConstant": false, "isLValue": false, "isPure": false, @@ -2139,29 +2139,29 @@ "typeString": "tuple()" } }, - "id": 3899, + "id": 3897, "nodeType": "EmitStatement", "src": "2282:45:7" } ] }, "documentation": null, - "id": 3901, + "id": 3899, "implemented": true, "kind": "function", "modifiers": [], "name": "_burn", "nodeType": "FunctionDefinition", "parameters": { - "id": 3855, + "id": 3853, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3854, + "id": 3852, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 3901, + "scope": 3899, "src": "2027:8:7", "stateVariable": false, "storageLocation": "default", @@ -2170,7 +2170,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3853, + "id": 3851, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2027:4:7", @@ -2186,12 +2186,12 @@ "src": "2026:10:7" }, "returnParameters": { - "id": 3856, + "id": 3854, "nodeType": "ParameterList", "parameters": [], "src": "2046:0:7" }, - "scope": 3981, + "scope": 3979, "src": "2012:322:7", "stateMutability": "nonpayable", "superFunction": null, @@ -2199,7 +2199,7 @@ }, { "body": { - "id": 3947, + "id": 3945, "nodeType": "Block", "src": "2400:208:7", "statements": [ @@ -2213,7 +2213,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 3915, + "id": 3913, "isConstant": false, "isLValue": false, "isPure": false, @@ -2222,25 +2222,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3911, + "id": 3909, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2418:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3913, + "id": 3911, "indexExpression": { "argumentTypes": null, - "id": 3912, + "id": 3910, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3903, + "referencedDeclaration": 3901, "src": "2427:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2262,11 +2262,11 @@ "operator": ">=", "rightExpression": { "argumentTypes": null, - "id": 3914, + "id": 3912, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3907, + "referencedDeclaration": 3905, "src": "2435:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2282,7 +2282,7 @@ { "argumentTypes": null, "hexValue": "4552525f494e53554646494349454e545f42414c", - "id": 3916, + "id": 3914, "isConstant": false, "isLValue": false, "isPure": true, @@ -2309,21 +2309,21 @@ "typeString": "literal_string \"ERR_INSUFFICIENT_BAL\"" } ], - "id": 3910, + "id": 3908, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "2410:7:7", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 3917, + "id": 3915, "isConstant": false, "isLValue": false, "isPure": false, @@ -2337,14 +2337,14 @@ "typeString": "tuple()" } }, - "id": 3918, + "id": 3916, "nodeType": "ExpressionStatement", "src": "2410:53:7" }, { "expression": { "argumentTypes": null, - "id": 3928, + "id": 3926, "isConstant": false, "isLValue": false, "isPure": false, @@ -2353,25 +2353,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3919, + "id": 3917, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2473:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3921, + "id": 3919, "indexExpression": { "argumentTypes": null, - "id": 3920, + "id": 3918, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3903, + "referencedDeclaration": 3901, "src": "2482:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2398,25 +2398,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3923, + "id": 3921, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2494:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3925, + "id": 3923, "indexExpression": { "argumentTypes": null, - "id": 3924, + "id": 3922, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3903, + "referencedDeclaration": 3901, "src": "2503:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2436,11 +2436,11 @@ }, { "argumentTypes": null, - "id": 3926, + "id": 3924, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3907, + "referencedDeclaration": 3905, "src": "2509:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2459,18 +2459,18 @@ "typeString": "uint256" } ], - "id": 3922, + "id": 3920, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "2489:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 3927, + "id": 3925, "isConstant": false, "isLValue": false, "isPure": false, @@ -2490,14 +2490,14 @@ "typeString": "uint256" } }, - "id": 3929, + "id": 3927, "nodeType": "ExpressionStatement", "src": "2473:40:7" }, { "expression": { "argumentTypes": null, - "id": 3939, + "id": 3937, "isConstant": false, "isLValue": false, "isPure": false, @@ -2506,25 +2506,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3930, + "id": 3928, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2523:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3932, + "id": 3930, "indexExpression": { "argumentTypes": null, - "id": 3931, + "id": 3929, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3905, + "referencedDeclaration": 3903, "src": "2532:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2551,25 +2551,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3934, + "id": 3932, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2544:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3936, + "id": 3934, "indexExpression": { "argumentTypes": null, - "id": 3935, + "id": 3933, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3905, + "referencedDeclaration": 3903, "src": "2553:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2589,11 +2589,11 @@ }, { "argumentTypes": null, - "id": 3937, + "id": 3935, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3907, + "referencedDeclaration": 3905, "src": "2559:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2612,18 +2612,18 @@ "typeString": "uint256" } ], - "id": 3933, + "id": 3931, "name": "badd", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1017, + "referencedDeclaration": 1001, "src": "2539:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 3938, + "id": 3936, "isConstant": false, "isLValue": false, "isPure": false, @@ -2643,7 +2643,7 @@ "typeString": "uint256" } }, - "id": 3940, + "id": 3938, "nodeType": "ExpressionStatement", "src": "2523:40:7" }, @@ -2653,11 +2653,11 @@ "arguments": [ { "argumentTypes": null, - "id": 3942, + "id": 3940, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3903, + "referencedDeclaration": 3901, "src": "2587:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2666,11 +2666,11 @@ }, { "argumentTypes": null, - "id": 3943, + "id": 3941, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3905, + "referencedDeclaration": 3903, "src": "2592:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2679,11 +2679,11 @@ }, { "argumentTypes": null, - "id": 3944, + "id": 3942, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3907, + "referencedDeclaration": 3905, "src": "2597:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2706,18 +2706,18 @@ "typeString": "uint256" } ], - "id": 3941, + "id": 3939, "name": "Transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3814, + "referencedDeclaration": 3812, "src": "2578:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 3945, + "id": 3943, "isConstant": false, "isLValue": false, "isPure": false, @@ -2731,29 +2731,29 @@ "typeString": "tuple()" } }, - "id": 3946, + "id": 3944, "nodeType": "EmitStatement", "src": "2573:28:7" } ] }, "documentation": null, - "id": 3948, + "id": 3946, "implemented": true, "kind": "function", "modifiers": [], "name": "_move", "nodeType": "FunctionDefinition", "parameters": { - "id": 3908, + "id": 3906, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3903, + "id": 3901, "name": "src", "nodeType": "VariableDeclaration", - "scope": 3948, + "scope": 3946, "src": "2355:11:7", "stateVariable": false, "storageLocation": "default", @@ -2762,7 +2762,7 @@ "typeString": "address" }, "typeName": { - "id": 3902, + "id": 3900, "name": "address", "nodeType": "ElementaryTypeName", "src": "2355:7:7", @@ -2777,10 +2777,10 @@ }, { "constant": false, - "id": 3905, + "id": 3903, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 3948, + "scope": 3946, "src": "2368:11:7", "stateVariable": false, "storageLocation": "default", @@ -2789,7 +2789,7 @@ "typeString": "address" }, "typeName": { - "id": 3904, + "id": 3902, "name": "address", "nodeType": "ElementaryTypeName", "src": "2368:7:7", @@ -2804,10 +2804,10 @@ }, { "constant": false, - "id": 3907, + "id": 3905, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 3948, + "scope": 3946, "src": "2381:8:7", "stateVariable": false, "storageLocation": "default", @@ -2816,7 +2816,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3906, + "id": 3904, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2381:4:7", @@ -2832,12 +2832,12 @@ "src": "2354:36:7" }, "returnParameters": { - "id": 3909, + "id": 3907, "nodeType": "ParameterList", "parameters": [], "src": "2400:0:7" }, - "scope": 3981, + "scope": 3979, "src": "2340:268:7", "stateMutability": "nonpayable", "superFunction": null, @@ -2845,7 +2845,7 @@ }, { "body": { - "id": 3963, + "id": 3961, "nodeType": "Block", "src": "2660:46:7", "statements": [ @@ -2858,14 +2858,14 @@ "arguments": [ { "argumentTypes": null, - "id": 3957, + "id": 3955, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "2684:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -2873,11 +2873,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3956, + "id": 3954, "isConstant": false, "isLValue": false, "isPure": true, @@ -2890,7 +2890,7 @@ }, "typeName": "address" }, - "id": 3958, + "id": 3956, "isConstant": false, "isLValue": false, "isPure": false, @@ -2906,11 +2906,11 @@ }, { "argumentTypes": null, - "id": 3959, + "id": 3957, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3950, + "referencedDeclaration": 3948, "src": "2691:2:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2919,11 +2919,11 @@ }, { "argumentTypes": null, - "id": 3960, + "id": 3958, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3952, + "referencedDeclaration": 3950, "src": "2695:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2946,18 +2946,18 @@ "typeString": "uint256" } ], - "id": 3955, + "id": 3953, "name": "_move", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3948, + "referencedDeclaration": 3946, "src": "2670:5:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 3961, + "id": 3959, "isConstant": false, "isLValue": false, "isPure": false, @@ -2971,29 +2971,29 @@ "typeString": "tuple()" } }, - "id": 3962, + "id": 3960, "nodeType": "ExpressionStatement", "src": "2670:29:7" } ] }, "documentation": null, - "id": 3964, + "id": 3962, "implemented": true, "kind": "function", "modifiers": [], "name": "_push", "nodeType": "FunctionDefinition", "parameters": { - "id": 3953, + "id": 3951, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3950, + "id": 3948, "name": "to", "nodeType": "VariableDeclaration", - "scope": 3964, + "scope": 3962, "src": "2629:10:7", "stateVariable": false, "storageLocation": "default", @@ -3002,7 +3002,7 @@ "typeString": "address" }, "typeName": { - "id": 3949, + "id": 3947, "name": "address", "nodeType": "ElementaryTypeName", "src": "2629:7:7", @@ -3017,10 +3017,10 @@ }, { "constant": false, - "id": 3952, + "id": 3950, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 3964, + "scope": 3962, "src": "2641:8:7", "stateVariable": false, "storageLocation": "default", @@ -3029,7 +3029,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3951, + "id": 3949, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2641:4:7", @@ -3045,12 +3045,12 @@ "src": "2628:22:7" }, "returnParameters": { - "id": 3954, + "id": 3952, "nodeType": "ParameterList", "parameters": [], "src": "2660:0:7" }, - "scope": 3981, + "scope": 3979, "src": "2614:92:7", "stateMutability": "nonpayable", "superFunction": null, @@ -3058,7 +3058,7 @@ }, { "body": { - "id": 3979, + "id": 3977, "nodeType": "Block", "src": "2760:48:7", "statements": [ @@ -3068,11 +3068,11 @@ "arguments": [ { "argumentTypes": null, - "id": 3972, + "id": 3970, "name": "from", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3966, + "referencedDeclaration": 3964, "src": "2776:4:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -3084,14 +3084,14 @@ "arguments": [ { "argumentTypes": null, - "id": 3974, + "id": 3972, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "2790:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -3099,11 +3099,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3973, + "id": 3971, "isConstant": false, "isLValue": false, "isPure": true, @@ -3116,7 +3116,7 @@ }, "typeName": "address" }, - "id": 3975, + "id": 3973, "isConstant": false, "isLValue": false, "isPure": false, @@ -3132,11 +3132,11 @@ }, { "argumentTypes": null, - "id": 3976, + "id": 3974, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3968, + "referencedDeclaration": 3966, "src": "2797:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -3159,18 +3159,18 @@ "typeString": "uint256" } ], - "id": 3971, + "id": 3969, "name": "_move", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3948, + "referencedDeclaration": 3946, "src": "2770:5:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 3977, + "id": 3975, "isConstant": false, "isLValue": false, "isPure": false, @@ -3184,29 +3184,29 @@ "typeString": "tuple()" } }, - "id": 3978, + "id": 3976, "nodeType": "ExpressionStatement", "src": "2770:31:7" } ] }, "documentation": null, - "id": 3980, + "id": 3978, "implemented": true, "kind": "function", "modifiers": [], "name": "_pull", "nodeType": "FunctionDefinition", "parameters": { - "id": 3969, + "id": 3967, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3966, + "id": 3964, "name": "from", "nodeType": "VariableDeclaration", - "scope": 3980, + "scope": 3978, "src": "2727:12:7", "stateVariable": false, "storageLocation": "default", @@ -3215,7 +3215,7 @@ "typeString": "address" }, "typeName": { - "id": 3965, + "id": 3963, "name": "address", "nodeType": "ElementaryTypeName", "src": "2727:7:7", @@ -3230,10 +3230,10 @@ }, { "constant": false, - "id": 3968, + "id": 3966, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 3980, + "scope": 3978, "src": "2741:8:7", "stateVariable": false, "storageLocation": "default", @@ -3242,7 +3242,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3967, + "id": 3965, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2741:4:7", @@ -3258,19 +3258,19 @@ "src": "2726:24:7" }, "returnParameters": { - "id": 3970, + "id": 3968, "nodeType": "ParameterList", "parameters": [], "src": "2760:0:7" }, - "scope": 3981, + "scope": 3979, "src": "2712:96:7", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" } ], - "scope": 4288, + "scope": 4286, "src": "1445:1365:7" }, { @@ -3279,17 +3279,17 @@ "arguments": null, "baseName": { "contractScope": null, - "id": 3982, + "id": 3980, "name": "BTokenBase", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 3981, + "referencedDeclaration": 3979, "src": "2831:10:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } }, - "id": 3983, + "id": 3981, "nodeType": "InheritanceSpecifier", "src": "2831:10:7" }, @@ -3297,47 +3297,47 @@ "arguments": null, "baseName": { "contractScope": null, - "id": 3984, + "id": 3982, "name": "IERC20", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 6778, + "referencedDeclaration": 6537, "src": "2843:6:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_IERC20_$6778", + "typeIdentifier": "t_contract$_IERC20_$6537", "typeString": "contract IERC20" } }, - "id": 3985, + "id": 3983, "nodeType": "InheritanceSpecifier", "src": "2843:6:7" } ], "contractDependencies": [ - 284, - 1438, - 3981, - 6778 + 280, + 1422, + 3979, + 6537 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, - "id": 4287, + "id": 4285, "linearizedBaseContracts": [ - 4287, - 6778, - 3981, - 1438, - 284 + 4285, + 6537, + 3979, + 1422, + 280 ], "name": "BToken", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, - "id": 3988, + "id": 3986, "name": "_name", "nodeType": "VariableDeclaration", - "scope": 4287, + "scope": 4285, "src": "2857:49:7", "stateVariable": true, "storageLocation": "default", @@ -3346,7 +3346,7 @@ "typeString": "string" }, "typeName": { - "id": 3986, + "id": 3984, "name": "string", "nodeType": "ElementaryTypeName", "src": "2857:6:7", @@ -3358,7 +3358,7 @@ "value": { "argumentTypes": null, "hexValue": "42616c616e63657220506f6f6c20546f6b656e", - "id": 3987, + "id": 3985, "isConstant": false, "isLValue": false, "isPure": true, @@ -3377,10 +3377,10 @@ }, { "constant": false, - "id": 3991, + "id": 3989, "name": "_symbol", "nodeType": "VariableDeclaration", - "scope": 4287, + "scope": 4285, "src": "2912:33:7", "stateVariable": true, "storageLocation": "default", @@ -3389,7 +3389,7 @@ "typeString": "string" }, "typeName": { - "id": 3989, + "id": 3987, "name": "string", "nodeType": "ElementaryTypeName", "src": "2912:6:7", @@ -3401,7 +3401,7 @@ "value": { "argumentTypes": null, "hexValue": "425054", - "id": 3990, + "id": 3988, "isConstant": false, "isLValue": false, "isPure": true, @@ -3420,10 +3420,10 @@ }, { "constant": false, - "id": 3994, + "id": 3992, "name": "_decimals", "nodeType": "VariableDeclaration", - "scope": 4287, + "scope": 4285, "src": "2951:30:7", "stateVariable": true, "storageLocation": "default", @@ -3432,7 +3432,7 @@ "typeString": "uint8" }, "typeName": { - "id": 3992, + "id": 3990, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "2951:5:7", @@ -3444,7 +3444,7 @@ "value": { "argumentTypes": null, "hexValue": "3138", - "id": 3993, + "id": 3991, "isConstant": false, "isLValue": false, "isPure": true, @@ -3463,54 +3463,54 @@ }, { "body": { - "id": 4001, + "id": 3999, "nodeType": "Block", "src": "3040:29:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 3999, + "id": 3997, "name": "_name", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3988, + "referencedDeclaration": 3986, "src": "3057:5:7", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, - "functionReturnParameters": 3998, - "id": 4000, + "functionReturnParameters": 3996, + "id": 3998, "nodeType": "Return", "src": "3050:12:7" } ] }, "documentation": null, - "id": 4002, + "id": 4000, "implemented": true, "kind": "function", "modifiers": [], "name": "name", "nodeType": "FunctionDefinition", "parameters": { - "id": 3995, + "id": 3993, "nodeType": "ParameterList", "parameters": [], "src": "3001:2:7" }, "returnParameters": { - "id": 3998, + "id": 3996, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3997, + "id": 3995, "name": "", "nodeType": "VariableDeclaration", - "scope": 4002, + "scope": 4000, "src": "3025:13:7", "stateVariable": false, "storageLocation": "memory", @@ -3519,7 +3519,7 @@ "typeString": "string" }, "typeName": { - "id": 3996, + "id": 3994, "name": "string", "nodeType": "ElementaryTypeName", "src": "3025:6:7", @@ -3534,7 +3534,7 @@ ], "src": "3024:15:7" }, - "scope": 4287, + "scope": 4285, "src": "2988:81:7", "stateMutability": "view", "superFunction": null, @@ -3542,54 +3542,54 @@ }, { "body": { - "id": 4009, + "id": 4007, "nodeType": "Block", "src": "3129:31:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4007, + "id": 4005, "name": "_symbol", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3991, + "referencedDeclaration": 3989, "src": "3146:7:7", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, - "functionReturnParameters": 4006, - "id": 4008, + "functionReturnParameters": 4004, + "id": 4006, "nodeType": "Return", "src": "3139:14:7" } ] }, "documentation": null, - "id": 4010, + "id": 4008, "implemented": true, "kind": "function", "modifiers": [], "name": "symbol", "nodeType": "FunctionDefinition", "parameters": { - "id": 4003, + "id": 4001, "nodeType": "ParameterList", "parameters": [], "src": "3090:2:7" }, "returnParameters": { - "id": 4006, + "id": 4004, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4005, + "id": 4003, "name": "", "nodeType": "VariableDeclaration", - "scope": 4010, + "scope": 4008, "src": "3114:13:7", "stateVariable": false, "storageLocation": "memory", @@ -3598,7 +3598,7 @@ "typeString": "string" }, "typeName": { - "id": 4004, + "id": 4002, "name": "string", "nodeType": "ElementaryTypeName", "src": "3114:6:7", @@ -3613,7 +3613,7 @@ ], "src": "3113:15:7" }, - "scope": 4287, + "scope": 4285, "src": "3075:85:7", "stateMutability": "view", "superFunction": null, @@ -3621,54 +3621,54 @@ }, { "body": { - "id": 4017, + "id": 4015, "nodeType": "Block", "src": "3213:33:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4015, + "id": 4013, "name": "_decimals", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3994, + "referencedDeclaration": 3992, "src": "3230:9:7", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, - "functionReturnParameters": 4014, - "id": 4016, + "functionReturnParameters": 4012, + "id": 4014, "nodeType": "Return", "src": "3223:16:7" } ] }, "documentation": null, - "id": 4018, + "id": 4016, "implemented": true, "kind": "function", "modifiers": [], "name": "decimals", "nodeType": "FunctionDefinition", "parameters": { - "id": 4011, + "id": 4009, "nodeType": "ParameterList", "parameters": [], "src": "3183:2:7" }, "returnParameters": { - "id": 4014, + "id": 4012, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4013, + "id": 4011, "name": "", "nodeType": "VariableDeclaration", - "scope": 4018, + "scope": 4016, "src": "3206:5:7", "stateVariable": false, "storageLocation": "default", @@ -3677,7 +3677,7 @@ "typeString": "uint8" }, "typeName": { - "id": 4012, + "id": 4010, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "3206:5:7", @@ -3692,7 +3692,7 @@ ], "src": "3205:7:7" }, - "scope": 4287, + "scope": 4285, "src": "3166:80:7", "stateMutability": "view", "superFunction": null, @@ -3700,7 +3700,7 @@ }, { "body": { - "id": 4033, + "id": 4031, "nodeType": "Block", "src": "3326:44:7", "statements": [ @@ -3711,25 +3711,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4027, + "id": 4025, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "3343:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4029, + "id": 4027, "indexExpression": { "argumentTypes": null, - "id": 4028, + "id": 4026, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4020, + "referencedDeclaration": 4018, "src": "3354:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -3747,14 +3747,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4031, + "id": 4029, "indexExpression": { "argumentTypes": null, - "id": 4030, + "id": 4028, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4022, + "referencedDeclaration": 4020, "src": "3359:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -3772,30 +3772,30 @@ "typeString": "uint256" } }, - "functionReturnParameters": 4026, - "id": 4032, + "functionReturnParameters": 4024, + "id": 4030, "nodeType": "Return", "src": "3336:27:7" } ] }, "documentation": null, - "id": 4034, + "id": 4032, "implemented": true, "kind": "function", "modifiers": [], "name": "allowance", "nodeType": "FunctionDefinition", "parameters": { - "id": 4023, + "id": 4021, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4020, + "id": 4018, "name": "src", "nodeType": "VariableDeclaration", - "scope": 4034, + "scope": 4032, "src": "3271:11:7", "stateVariable": false, "storageLocation": "default", @@ -3804,7 +3804,7 @@ "typeString": "address" }, "typeName": { - "id": 4019, + "id": 4017, "name": "address", "nodeType": "ElementaryTypeName", "src": "3271:7:7", @@ -3819,10 +3819,10 @@ }, { "constant": false, - "id": 4022, + "id": 4020, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 4034, + "scope": 4032, "src": "3284:11:7", "stateVariable": false, "storageLocation": "default", @@ -3831,7 +3831,7 @@ "typeString": "address" }, "typeName": { - "id": 4021, + "id": 4019, "name": "address", "nodeType": "ElementaryTypeName", "src": "3284:7:7", @@ -3848,15 +3848,15 @@ "src": "3270:26:7" }, "returnParameters": { - "id": 4026, + "id": 4024, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4025, + "id": 4023, "name": "", "nodeType": "VariableDeclaration", - "scope": 4034, + "scope": 4032, "src": "3320:4:7", "stateVariable": false, "storageLocation": "default", @@ -3865,7 +3865,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4024, + "id": 4022, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3320:4:7", @@ -3880,15 +3880,15 @@ ], "src": "3319:6:7" }, - "scope": 4287, + "scope": 4285, "src": "3252:118:7", "stateMutability": "view", - "superFunction": 6741, + "superFunction": 6500, "visibility": "external" }, { "body": { - "id": 4045, + "id": 4043, "nodeType": "Block", "src": "3438:38:7", "statements": [ @@ -3897,25 +3897,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4041, + "id": 4039, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "3455:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 4043, + "id": 4041, "indexExpression": { "argumentTypes": null, - "id": 4042, + "id": 4040, "name": "whom", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4036, + "referencedDeclaration": 4034, "src": "3464:4:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -3933,30 +3933,30 @@ "typeString": "uint256" } }, - "functionReturnParameters": 4040, - "id": 4044, + "functionReturnParameters": 4038, + "id": 4042, "nodeType": "Return", "src": "3448:21:7" } ] }, "documentation": null, - "id": 4046, + "id": 4044, "implemented": true, "kind": "function", "modifiers": [], "name": "balanceOf", "nodeType": "FunctionDefinition", "parameters": { - "id": 4037, + "id": 4035, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4036, + "id": 4034, "name": "whom", "nodeType": "VariableDeclaration", - "scope": 4046, + "scope": 4044, "src": "3395:12:7", "stateVariable": false, "storageLocation": "default", @@ -3965,7 +3965,7 @@ "typeString": "address" }, "typeName": { - "id": 4035, + "id": 4033, "name": "address", "nodeType": "ElementaryTypeName", "src": "3395:7:7", @@ -3982,15 +3982,15 @@ "src": "3394:14:7" }, "returnParameters": { - "id": 4040, + "id": 4038, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4039, + "id": 4037, "name": "", "nodeType": "VariableDeclaration", - "scope": 4046, + "scope": 4044, "src": "3432:4:7", "stateVariable": false, "storageLocation": "default", @@ -3999,7 +3999,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4038, + "id": 4036, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3432:4:7", @@ -4014,62 +4014,62 @@ ], "src": "3431:6:7" }, - "scope": 4287, + "scope": 4285, "src": "3376:100:7", "stateMutability": "view", - "superFunction": 6723, + "superFunction": 6482, "visibility": "external" }, { "body": { - "id": 4053, + "id": 4051, "nodeType": "Block", "src": "3532:36:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4051, + "id": 4049, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3798, + "referencedDeclaration": 3796, "src": "3549:12:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 4050, - "id": 4052, + "functionReturnParameters": 4048, + "id": 4050, "nodeType": "Return", "src": "3542:19:7" } ] }, "documentation": null, - "id": 4054, + "id": 4052, "implemented": true, "kind": "function", "modifiers": [], "name": "totalSupply", "nodeType": "FunctionDefinition", "parameters": { - "id": 4047, + "id": 4045, "nodeType": "ParameterList", "parameters": [], "src": "3502:2:7" }, "returnParameters": { - "id": 4050, + "id": 4048, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4049, + "id": 4047, "name": "", "nodeType": "VariableDeclaration", - "scope": 4054, + "scope": 4052, "src": "3526:4:7", "stateVariable": false, "storageLocation": "default", @@ -4078,7 +4078,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4048, + "id": 4046, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3526:4:7", @@ -4093,22 +4093,22 @@ ], "src": "3525:6:7" }, - "scope": 4287, + "scope": 4285, "src": "3482:86:7", "stateMutability": "view", - "superFunction": 6716, + "superFunction": 6475, "visibility": "public" }, { "body": { - "id": 4081, + "id": 4079, "nodeType": "Block", "src": "3638:116:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4070, + "id": 4068, "isConstant": false, "isLValue": false, "isPure": false, @@ -4119,34 +4119,34 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4063, + "id": 4061, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "3648:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4067, + "id": 4065, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4064, + "id": 4062, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "3659:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4065, + "id": 4063, "isConstant": false, "isLValue": false, "isPure": false, @@ -4171,14 +4171,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4068, + "id": 4066, "indexExpression": { "argumentTypes": null, - "id": 4066, + "id": 4064, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4056, + "referencedDeclaration": 4054, "src": "3671:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -4200,11 +4200,11 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 4069, + "id": 4067, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4058, + "referencedDeclaration": 4056, "src": "3678:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4217,7 +4217,7 @@ "typeString": "uint256" } }, - "id": 4071, + "id": 4069, "nodeType": "ExpressionStatement", "src": "3648:33:7" }, @@ -4229,18 +4229,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4073, + "id": 4071, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "3705:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4074, + "id": 4072, "isConstant": false, "isLValue": false, "isPure": false, @@ -4256,11 +4256,11 @@ }, { "argumentTypes": null, - "id": 4075, + "id": 4073, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4056, + "referencedDeclaration": 4054, "src": "3717:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -4269,11 +4269,11 @@ }, { "argumentTypes": null, - "id": 4076, + "id": 4074, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4058, + "referencedDeclaration": 4056, "src": "3722:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4296,20 +4296,20 @@ "typeString": "uint256" } ], - "id": 4072, + "id": 4070, "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6777 + 6536 ], - "referencedDeclaration": 6777, + "referencedDeclaration": 6536, "src": "3696:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 4077, + "id": 4075, "isConstant": false, "isLValue": false, "isPure": false, @@ -4323,7 +4323,7 @@ "typeString": "tuple()" } }, - "id": 4078, + "id": 4076, "nodeType": "EmitStatement", "src": "3691:35:7" }, @@ -4331,7 +4331,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 4079, + "id": 4077, "isConstant": false, "isLValue": false, "isPure": true, @@ -4346,30 +4346,30 @@ }, "value": "true" }, - "functionReturnParameters": 4062, - "id": 4080, + "functionReturnParameters": 4060, + "id": 4078, "nodeType": "Return", "src": "3736:11:7" } ] }, "documentation": null, - "id": 4082, + "id": 4080, "implemented": true, "kind": "function", "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { - "id": 4059, + "id": 4057, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4056, + "id": 4054, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 4082, + "scope": 4080, "src": "3591:11:7", "stateVariable": false, "storageLocation": "default", @@ -4378,7 +4378,7 @@ "typeString": "address" }, "typeName": { - "id": 4055, + "id": 4053, "name": "address", "nodeType": "ElementaryTypeName", "src": "3591:7:7", @@ -4393,10 +4393,10 @@ }, { "constant": false, - "id": 4058, + "id": 4056, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 4082, + "scope": 4080, "src": "3604:8:7", "stateVariable": false, "storageLocation": "default", @@ -4405,7 +4405,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4057, + "id": 4055, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3604:4:7", @@ -4421,15 +4421,15 @@ "src": "3590:23:7" }, "returnParameters": { - "id": 4062, + "id": 4060, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4061, + "id": 4059, "name": "", "nodeType": "VariableDeclaration", - "scope": 4082, + "scope": 4080, "src": "3632:4:7", "stateVariable": false, "storageLocation": "default", @@ -4438,7 +4438,7 @@ "typeString": "bool" }, "typeName": { - "id": 4060, + "id": 4058, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3632:4:7", @@ -4453,22 +4453,22 @@ ], "src": "3631:6:7" }, - "scope": 4287, + "scope": 4285, "src": "3574:180:7", "stateMutability": "nonpayable", - "superFunction": 6750, + "superFunction": 6509, "visibility": "external" }, { "body": { - "id": 4122, + "id": 4120, "nodeType": "Block", "src": "3833:175:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4106, + "id": 4104, "isConstant": false, "isLValue": false, "isPure": false, @@ -4479,34 +4479,34 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4091, + "id": 4089, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "3843:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4095, + "id": 4093, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4092, + "id": 4090, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "3854:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4093, + "id": 4091, "isConstant": false, "isLValue": false, "isPure": false, @@ -4531,14 +4531,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4096, + "id": 4094, "indexExpression": { "argumentTypes": null, - "id": 4094, + "id": 4092, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4084, + "referencedDeclaration": 4082, "src": "3866:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -4567,34 +4567,34 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4098, + "id": 4096, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "3878:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4101, + "id": 4099, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4099, + "id": 4097, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "3889:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4100, + "id": 4098, "isConstant": false, "isLValue": false, "isPure": false, @@ -4619,14 +4619,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4103, + "id": 4101, "indexExpression": { "argumentTypes": null, - "id": 4102, + "id": 4100, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4084, + "referencedDeclaration": 4082, "src": "3901:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -4646,11 +4646,11 @@ }, { "argumentTypes": null, - "id": 4104, + "id": 4102, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4086, + "referencedDeclaration": 4084, "src": "3907:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4669,18 +4669,18 @@ "typeString": "uint256" } ], - "id": 4097, + "id": 4095, "name": "badd", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1017, + "referencedDeclaration": 1001, "src": "3873:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 4105, + "id": 4103, "isConstant": false, "isLValue": false, "isPure": false, @@ -4700,7 +4700,7 @@ "typeString": "uint256" } }, - "id": 4107, + "id": 4105, "nodeType": "ExpressionStatement", "src": "3843:68:7" }, @@ -4712,18 +4712,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4109, + "id": 4107, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "3935:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4110, + "id": 4108, "isConstant": false, "isLValue": false, "isPure": false, @@ -4739,11 +4739,11 @@ }, { "argumentTypes": null, - "id": 4111, + "id": 4109, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4084, + "referencedDeclaration": 4082, "src": "3947:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -4756,34 +4756,34 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4112, + "id": 4110, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "3952:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4115, + "id": 4113, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4113, + "id": 4111, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "3963:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4114, + "id": 4112, "isConstant": false, "isLValue": false, "isPure": false, @@ -4808,14 +4808,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4117, + "id": 4115, "indexExpression": { "argumentTypes": null, - "id": 4116, + "id": 4114, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4084, + "referencedDeclaration": 4082, "src": "3975:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -4849,20 +4849,20 @@ "typeString": "uint256" } ], - "id": 4108, + "id": 4106, "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6777 + 6536 ], - "referencedDeclaration": 6777, + "referencedDeclaration": 6536, "src": "3926:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 4118, + "id": 4116, "isConstant": false, "isLValue": false, "isPure": false, @@ -4876,7 +4876,7 @@ "typeString": "tuple()" } }, - "id": 4119, + "id": 4117, "nodeType": "EmitStatement", "src": "3921:59:7" }, @@ -4884,7 +4884,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 4120, + "id": 4118, "isConstant": false, "isLValue": false, "isPure": true, @@ -4899,30 +4899,30 @@ }, "value": "true" }, - "functionReturnParameters": 4090, - "id": 4121, + "functionReturnParameters": 4088, + "id": 4119, "nodeType": "Return", "src": "3990:11:7" } ] }, "documentation": null, - "id": 4123, + "id": 4121, "implemented": true, "kind": "function", "modifiers": [], "name": "increaseApproval", "nodeType": "FunctionDefinition", "parameters": { - "id": 4087, + "id": 4085, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4084, + "id": 4082, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 4123, + "scope": 4121, "src": "3786:11:7", "stateVariable": false, "storageLocation": "default", @@ -4931,7 +4931,7 @@ "typeString": "address" }, "typeName": { - "id": 4083, + "id": 4081, "name": "address", "nodeType": "ElementaryTypeName", "src": "3786:7:7", @@ -4946,10 +4946,10 @@ }, { "constant": false, - "id": 4086, + "id": 4084, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 4123, + "scope": 4121, "src": "3799:8:7", "stateVariable": false, "storageLocation": "default", @@ -4958,7 +4958,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4085, + "id": 4083, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3799:4:7", @@ -4974,15 +4974,15 @@ "src": "3785:23:7" }, "returnParameters": { - "id": 4090, + "id": 4088, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4089, + "id": 4087, "name": "", "nodeType": "VariableDeclaration", - "scope": 4123, + "scope": 4121, "src": "3827:4:7", "stateVariable": false, "storageLocation": "default", @@ -4991,7 +4991,7 @@ "typeString": "bool" }, "typeName": { - "id": 4088, + "id": 4086, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3827:4:7", @@ -5006,7 +5006,7 @@ ], "src": "3826:6:7" }, - "scope": 4287, + "scope": 4285, "src": "3760:248:7", "stateMutability": "nonpayable", "superFunction": null, @@ -5014,21 +5014,21 @@ }, { "body": { - "id": 4182, + "id": 4180, "nodeType": "Block", "src": "4087:315:7", "statements": [ { "assignments": [ - 4133 + 4131 ], "declarations": [ { "constant": false, - "id": 4133, + "id": 4131, "name": "oldValue", "nodeType": "VariableDeclaration", - "scope": 4182, + "scope": 4180, "src": "4097:13:7", "stateVariable": false, "storageLocation": "default", @@ -5037,7 +5037,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4132, + "id": 4130, "name": "uint", "nodeType": "ElementaryTypeName", "src": "4097:4:7", @@ -5050,41 +5050,41 @@ "visibility": "internal" } ], - "id": 4140, + "id": 4138, "initialValue": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4134, + "id": 4132, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4113:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4137, + "id": 4135, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4135, + "id": 4133, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4124:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4136, + "id": 4134, "isConstant": false, "isLValue": false, "isPure": false, @@ -5109,14 +5109,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4139, + "id": 4137, "indexExpression": { "argumentTypes": null, - "id": 4138, + "id": 4136, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4125, + "referencedDeclaration": 4123, "src": "4136:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -5144,18 +5144,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 4143, + "id": 4141, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 4141, + "id": 4139, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4127, + "referencedDeclaration": 4125, "src": "4154:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5166,11 +5166,11 @@ "operator": ">", "rightExpression": { "argumentTypes": null, - "id": 4142, + "id": 4140, "name": "oldValue", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4133, + "referencedDeclaration": 4131, "src": "4160:8:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5184,14 +5184,14 @@ } }, "falseBody": { - "id": 4166, + "id": 4164, "nodeType": "Block", "src": "4232:74:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4164, + "id": 4162, "isConstant": false, "isLValue": false, "isPure": false, @@ -5202,34 +5202,34 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4154, + "id": 4152, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4246:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4158, + "id": 4156, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4155, + "id": 4153, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4257:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4156, + "id": 4154, "isConstant": false, "isLValue": false, "isPure": false, @@ -5254,14 +5254,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4159, + "id": 4157, "indexExpression": { "argumentTypes": null, - "id": 4157, + "id": 4155, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4125, + "referencedDeclaration": 4123, "src": "4269:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -5286,11 +5286,11 @@ "arguments": [ { "argumentTypes": null, - "id": 4161, + "id": 4159, "name": "oldValue", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4133, + "referencedDeclaration": 4131, "src": "4281:8:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5299,11 +5299,11 @@ }, { "argumentTypes": null, - "id": 4162, + "id": 4160, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4127, + "referencedDeclaration": 4125, "src": "4291:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5322,18 +5322,18 @@ "typeString": "uint256" } ], - "id": 4160, + "id": 4158, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "4276:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 4163, + "id": 4161, "isConstant": false, "isLValue": false, "isPure": false, @@ -5353,24 +5353,24 @@ "typeString": "uint256" } }, - "id": 4165, + "id": 4163, "nodeType": "ExpressionStatement", "src": "4246:49:7" } ] }, - "id": 4167, + "id": 4165, "nodeType": "IfStatement", "src": "4150:156:7", "trueBody": { - "id": 4153, + "id": 4151, "nodeType": "Block", "src": "4170:56:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4151, + "id": 4149, "isConstant": false, "isLValue": false, "isPure": false, @@ -5381,34 +5381,34 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4144, + "id": 4142, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4184:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4148, + "id": 4146, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4145, + "id": 4143, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4195:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4146, + "id": 4144, "isConstant": false, "isLValue": false, "isPure": false, @@ -5433,14 +5433,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4149, + "id": 4147, "indexExpression": { "argumentTypes": null, - "id": 4147, + "id": 4145, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4125, + "referencedDeclaration": 4123, "src": "4207:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -5463,7 +5463,7 @@ "rightHandSide": { "argumentTypes": null, "hexValue": "30", - "id": 4150, + "id": 4148, "isConstant": false, "isLValue": false, "isPure": true, @@ -5484,7 +5484,7 @@ "typeString": "uint256" } }, - "id": 4152, + "id": 4150, "nodeType": "ExpressionStatement", "src": "4184:31:7" } @@ -5499,18 +5499,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4169, + "id": 4167, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4329:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4170, + "id": 4168, "isConstant": false, "isLValue": false, "isPure": false, @@ -5526,11 +5526,11 @@ }, { "argumentTypes": null, - "id": 4171, + "id": 4169, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4125, + "referencedDeclaration": 4123, "src": "4341:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -5543,34 +5543,34 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4172, + "id": 4170, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4346:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4175, + "id": 4173, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4173, + "id": 4171, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4357:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4174, + "id": 4172, "isConstant": false, "isLValue": false, "isPure": false, @@ -5595,14 +5595,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4177, + "id": 4175, "indexExpression": { "argumentTypes": null, - "id": 4176, + "id": 4174, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4125, + "referencedDeclaration": 4123, "src": "4369:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -5636,20 +5636,20 @@ "typeString": "uint256" } ], - "id": 4168, + "id": 4166, "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6777 + 6536 ], - "referencedDeclaration": 6777, + "referencedDeclaration": 6536, "src": "4320:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 4178, + "id": 4176, "isConstant": false, "isLValue": false, "isPure": false, @@ -5663,7 +5663,7 @@ "typeString": "tuple()" } }, - "id": 4179, + "id": 4177, "nodeType": "EmitStatement", "src": "4315:59:7" }, @@ -5671,7 +5671,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 4180, + "id": 4178, "isConstant": false, "isLValue": false, "isPure": true, @@ -5686,30 +5686,30 @@ }, "value": "true" }, - "functionReturnParameters": 4131, - "id": 4181, + "functionReturnParameters": 4129, + "id": 4179, "nodeType": "Return", "src": "4384:11:7" } ] }, "documentation": null, - "id": 4183, + "id": 4181, "implemented": true, "kind": "function", "modifiers": [], "name": "decreaseApproval", "nodeType": "FunctionDefinition", "parameters": { - "id": 4128, + "id": 4126, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4125, + "id": 4123, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 4183, + "scope": 4181, "src": "4040:11:7", "stateVariable": false, "storageLocation": "default", @@ -5718,7 +5718,7 @@ "typeString": "address" }, "typeName": { - "id": 4124, + "id": 4122, "name": "address", "nodeType": "ElementaryTypeName", "src": "4040:7:7", @@ -5733,10 +5733,10 @@ }, { "constant": false, - "id": 4127, + "id": 4125, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 4183, + "scope": 4181, "src": "4053:8:7", "stateVariable": false, "storageLocation": "default", @@ -5745,7 +5745,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4126, + "id": 4124, "name": "uint", "nodeType": "ElementaryTypeName", "src": "4053:4:7", @@ -5761,15 +5761,15 @@ "src": "4039:23:7" }, "returnParameters": { - "id": 4131, + "id": 4129, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4130, + "id": 4128, "name": "", "nodeType": "VariableDeclaration", - "scope": 4183, + "scope": 4181, "src": "4081:4:7", "stateVariable": false, "storageLocation": "default", @@ -5778,7 +5778,7 @@ "typeString": "bool" }, "typeName": { - "id": 4129, + "id": 4127, "name": "bool", "nodeType": "ElementaryTypeName", "src": "4081:4:7", @@ -5793,7 +5793,7 @@ ], "src": "4080:6:7" }, - "scope": 4287, + "scope": 4285, "src": "4014:388:7", "stateMutability": "nonpayable", "superFunction": null, @@ -5801,7 +5801,7 @@ }, { "body": { - "id": 4201, + "id": 4199, "nodeType": "Block", "src": "4473:65:7", "statements": [ @@ -5813,18 +5813,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4193, + "id": 4191, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4489:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4194, + "id": 4192, "isConstant": false, "isLValue": false, "isPure": false, @@ -5840,11 +5840,11 @@ }, { "argumentTypes": null, - "id": 4195, + "id": 4193, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4185, + "referencedDeclaration": 4183, "src": "4501:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -5853,11 +5853,11 @@ }, { "argumentTypes": null, - "id": 4196, + "id": 4194, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4187, + "referencedDeclaration": 4185, "src": "4506:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5880,18 +5880,18 @@ "typeString": "uint256" } ], - "id": 4192, + "id": 4190, "name": "_move", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3948, + "referencedDeclaration": 3946, "src": "4483:5:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 4197, + "id": 4195, "isConstant": false, "isLValue": false, "isPure": false, @@ -5905,7 +5905,7 @@ "typeString": "tuple()" } }, - "id": 4198, + "id": 4196, "nodeType": "ExpressionStatement", "src": "4483:27:7" }, @@ -5913,7 +5913,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 4199, + "id": 4197, "isConstant": false, "isLValue": false, "isPure": true, @@ -5928,30 +5928,30 @@ }, "value": "true" }, - "functionReturnParameters": 4191, - "id": 4200, + "functionReturnParameters": 4189, + "id": 4198, "nodeType": "Return", "src": "4520:11:7" } ] }, "documentation": null, - "id": 4202, + "id": 4200, "implemented": true, "kind": "function", "modifiers": [], "name": "transfer", "nodeType": "FunctionDefinition", "parameters": { - "id": 4188, + "id": 4186, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4185, + "id": 4183, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 4202, + "scope": 4200, "src": "4426:11:7", "stateVariable": false, "storageLocation": "default", @@ -5960,7 +5960,7 @@ "typeString": "address" }, "typeName": { - "id": 4184, + "id": 4182, "name": "address", "nodeType": "ElementaryTypeName", "src": "4426:7:7", @@ -5975,10 +5975,10 @@ }, { "constant": false, - "id": 4187, + "id": 4185, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 4202, + "scope": 4200, "src": "4439:8:7", "stateVariable": false, "storageLocation": "default", @@ -5987,7 +5987,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4186, + "id": 4184, "name": "uint", "nodeType": "ElementaryTypeName", "src": "4439:4:7", @@ -6003,15 +6003,15 @@ "src": "4425:23:7" }, "returnParameters": { - "id": 4191, + "id": 4189, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4190, + "id": 4188, "name": "", "nodeType": "VariableDeclaration", - "scope": 4202, + "scope": 4200, "src": "4467:4:7", "stateVariable": false, "storageLocation": "default", @@ -6020,7 +6020,7 @@ "typeString": "bool" }, "typeName": { - "id": 4189, + "id": 4187, "name": "bool", "nodeType": "ElementaryTypeName", "src": "4467:4:7", @@ -6035,15 +6035,15 @@ ], "src": "4466:6:7" }, - "scope": 4287, + "scope": 4285, "src": "4408:130:7", "stateMutability": "nonpayable", - "superFunction": 6732, + "superFunction": 6491, "visibility": "external" }, { "body": { - "id": 4285, + "id": 4283, "nodeType": "Block", "src": "4673:436:7", "statements": [ @@ -6057,7 +6057,7 @@ "typeIdentifier": "t_bool", "typeString": "bool" }, - "id": 4226, + "id": 4224, "isConstant": false, "isLValue": false, "isPure": false, @@ -6068,7 +6068,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 4217, + "id": 4215, "isConstant": false, "isLValue": false, "isPure": false, @@ -6077,18 +6077,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4214, + "id": 4212, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4704:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4215, + "id": 4213, "isConstant": false, "isLValue": false, "isPure": false, @@ -6106,11 +6106,11 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 4216, + "id": 4214, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "4718:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6131,18 +6131,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 4225, + "id": 4223, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 4218, + "id": 4216, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4208, + "referencedDeclaration": 4206, "src": "4725:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6157,25 +6157,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4219, + "id": 4217, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4732:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4221, + "id": 4219, "indexExpression": { "argumentTypes": null, - "id": 4220, + "id": 4218, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "4743:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6193,23 +6193,23 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4224, + "id": 4222, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4222, + "id": 4220, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4748:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4223, + "id": 4221, "isConstant": false, "isLValue": false, "isPure": false, @@ -6249,7 +6249,7 @@ { "argumentTypes": null, "hexValue": "4552525f42544f4b454e5f4241445f43414c4c4552", - "id": 4227, + "id": 4225, "isConstant": false, "isLValue": false, "isPure": true, @@ -6276,21 +6276,21 @@ "typeString": "literal_string \"ERR_BTOKEN_BAD_CALLER\"" } ], - "id": 4213, + "id": 4211, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "4683:7:7", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 4228, + "id": 4226, "isConstant": false, "isLValue": false, "isPure": false, @@ -6304,7 +6304,7 @@ "typeString": "tuple()" } }, - "id": 4229, + "id": 4227, "nodeType": "ExpressionStatement", "src": "4683:124:7" }, @@ -6314,11 +6314,11 @@ "arguments": [ { "argumentTypes": null, - "id": 4231, + "id": 4229, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "4823:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6327,11 +6327,11 @@ }, { "argumentTypes": null, - "id": 4232, + "id": 4230, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4206, + "referencedDeclaration": 4204, "src": "4828:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6340,11 +6340,11 @@ }, { "argumentTypes": null, - "id": 4233, + "id": 4231, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4208, + "referencedDeclaration": 4206, "src": "4833:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6367,18 +6367,18 @@ "typeString": "uint256" } ], - "id": 4230, + "id": 4228, "name": "_move", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3948, + "referencedDeclaration": 3946, "src": "4817:5:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 4234, + "id": 4232, "isConstant": false, "isLValue": false, "isPure": false, @@ -6392,7 +6392,7 @@ "typeString": "tuple()" } }, - "id": 4235, + "id": 4233, "nodeType": "ExpressionStatement", "src": "4817:20:7" }, @@ -6403,7 +6403,7 @@ "typeIdentifier": "t_bool", "typeString": "bool" }, - "id": 4251, + "id": 4249, "isConstant": false, "isLValue": false, "isPure": false, @@ -6414,7 +6414,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 4239, + "id": 4237, "isConstant": false, "isLValue": false, "isPure": false, @@ -6423,18 +6423,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4236, + "id": 4234, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4851:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4237, + "id": 4235, "isConstant": false, "isLValue": false, "isPure": false, @@ -6452,11 +6452,11 @@ "operator": "!=", "rightExpression": { "argumentTypes": null, - "id": 4238, + "id": 4236, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "4865:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6477,7 +6477,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 4250, + "id": 4248, "isConstant": false, "isLValue": false, "isPure": false, @@ -6488,25 +6488,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4240, + "id": 4238, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4872:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4242, + "id": 4240, "indexExpression": { "argumentTypes": null, - "id": 4241, + "id": 4239, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "4883:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6524,23 +6524,23 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4245, + "id": 4243, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4243, + "id": 4241, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4888:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4244, + "id": 4242, "isConstant": false, "isLValue": false, "isPure": false, @@ -6572,7 +6572,7 @@ "arguments": [ { "argumentTypes": null, - "id": 4248, + "id": 4246, "isConstant": false, "isLValue": false, "isPure": true, @@ -6584,7 +6584,7 @@ "subExpression": { "argumentTypes": null, "hexValue": "31", - "id": 4247, + "id": 4245, "isConstant": false, "isLValue": false, "isPure": true, @@ -6612,7 +6612,7 @@ "typeString": "int_const -1" } ], - "id": 4246, + "id": 4244, "isConstant": false, "isLValue": false, "isPure": true, @@ -6625,7 +6625,7 @@ }, "typeName": "uint256" }, - "id": 4249, + "id": 4247, "isConstant": false, "isLValue": false, "isPure": true, @@ -6652,18 +6652,18 @@ } }, "falseBody": null, - "id": 4282, + "id": 4280, "nodeType": "IfStatement", "src": "4847:235:7", "trueBody": { - "id": 4281, + "id": 4279, "nodeType": "Block", "src": "4916:166:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4267, + "id": 4265, "isConstant": false, "isLValue": false, "isPure": false, @@ -6674,25 +6674,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4252, + "id": 4250, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4930:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4256, + "id": 4254, "indexExpression": { "argumentTypes": null, - "id": 4253, + "id": 4251, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "4941:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6710,23 +6710,23 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4257, + "id": 4255, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4254, + "id": 4252, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4946:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4255, + "id": 4253, "isConstant": false, "isLValue": false, "isPure": false, @@ -6762,25 +6762,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4259, + "id": 4257, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4965:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4261, + "id": 4259, "indexExpression": { "argumentTypes": null, - "id": 4260, + "id": 4258, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "4976:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6798,23 +6798,23 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4264, + "id": 4262, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4262, + "id": 4260, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4981:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4263, + "id": 4261, "isConstant": false, "isLValue": false, "isPure": false, @@ -6841,11 +6841,11 @@ }, { "argumentTypes": null, - "id": 4265, + "id": 4263, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4208, + "referencedDeclaration": 4206, "src": "4994:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6864,18 +6864,18 @@ "typeString": "uint256" } ], - "id": 4258, + "id": 4256, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "4960:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 4266, + "id": 4264, "isConstant": false, "isLValue": false, "isPure": false, @@ -6895,7 +6895,7 @@ "typeString": "uint256" } }, - "id": 4268, + "id": 4266, "nodeType": "ExpressionStatement", "src": "4930:68:7" }, @@ -6907,18 +6907,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4270, + "id": 4268, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "5026:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4271, + "id": 4269, "isConstant": false, "isLValue": false, "isPure": false, @@ -6934,11 +6934,11 @@ }, { "argumentTypes": null, - "id": 4272, + "id": 4270, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4206, + "referencedDeclaration": 4204, "src": "5038:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6951,25 +6951,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4273, + "id": 4271, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "5043:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4275, + "id": 4273, "indexExpression": { "argumentTypes": null, - "id": 4274, + "id": 4272, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "5054:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6987,23 +6987,23 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4278, + "id": 4276, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4276, + "id": 4274, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "5059:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4277, + "id": 4275, "isConstant": false, "isLValue": false, "isPure": false, @@ -7044,20 +7044,20 @@ "typeString": "uint256" } ], - "id": 4269, + "id": 4267, "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6777 + 6536 ], - "referencedDeclaration": 6777, + "referencedDeclaration": 6536, "src": "5017:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 4279, + "id": 4277, "isConstant": false, "isLValue": false, "isPure": false, @@ -7071,7 +7071,7 @@ "typeString": "tuple()" } }, - "id": 4280, + "id": 4278, "nodeType": "EmitStatement", "src": "5012:59:7" } @@ -7082,7 +7082,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 4283, + "id": 4281, "isConstant": false, "isLValue": false, "isPure": true, @@ -7097,30 +7097,30 @@ }, "value": "true" }, - "functionReturnParameters": 4212, - "id": 4284, + "functionReturnParameters": 4210, + "id": 4282, "nodeType": "Return", "src": "5091:11:7" } ] }, "documentation": null, - "id": 4286, + "id": 4284, "implemented": true, "kind": "function", "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { - "id": 4209, + "id": 4207, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4204, + "id": 4202, "name": "src", "nodeType": "VariableDeclaration", - "scope": 4286, + "scope": 4284, "src": "4575:11:7", "stateVariable": false, "storageLocation": "default", @@ -7129,7 +7129,7 @@ "typeString": "address" }, "typeName": { - "id": 4203, + "id": 4201, "name": "address", "nodeType": "ElementaryTypeName", "src": "4575:7:7", @@ -7144,10 +7144,10 @@ }, { "constant": false, - "id": 4206, + "id": 4204, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 4286, + "scope": 4284, "src": "4597:11:7", "stateVariable": false, "storageLocation": "default", @@ -7156,7 +7156,7 @@ "typeString": "address" }, "typeName": { - "id": 4205, + "id": 4203, "name": "address", "nodeType": "ElementaryTypeName", "src": "4597:7:7", @@ -7171,10 +7171,10 @@ }, { "constant": false, - "id": 4208, + "id": 4206, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 4286, + "scope": 4284, "src": "4619:8:7", "stateVariable": false, "storageLocation": "default", @@ -7183,7 +7183,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4207, + "id": 4205, "name": "uint", "nodeType": "ElementaryTypeName", "src": "4619:4:7", @@ -7199,15 +7199,15 @@ "src": "4565:68:7" }, "returnParameters": { - "id": 4212, + "id": 4210, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4211, + "id": 4209, "name": "", "nodeType": "VariableDeclaration", - "scope": 4286, + "scope": 4284, "src": "4662:4:7", "stateVariable": false, "storageLocation": "default", @@ -7216,7 +7216,7 @@ "typeString": "bool" }, "typeName": { - "id": 4210, + "id": 4208, "name": "bool", "nodeType": "ElementaryTypeName", "src": "4662:4:7", @@ -7231,14 +7231,14 @@ ], "src": "4661:6:7" }, - "scope": 4287, + "scope": 4285, "src": "4544:565:7", "stateMutability": "nonpayable", - "superFunction": 6761, + "superFunction": 6520, "visibility": "external" } ], - "scope": 4288, + "scope": 4286, "src": "2812:2299:7" } ], @@ -7248,17 +7248,17 @@ "absolutePath": "/ocean/ocean-contracts/contracts/balancer/BToken.sol", "exportedSymbols": { "BToken": [ - 4287 + 4285 ], "BTokenBase": [ - 3981 + 3979 ] }, - "id": 4288, + "id": 4286, "nodeType": "SourceUnit", "nodes": [ { - "id": 3782, + "id": 3780, "literals": [ "solidity", "0.5", @@ -7270,10 +7270,10 @@ { "absolutePath": "/ocean/ocean-contracts/contracts/balancer/BNum.sol", "file": "./BNum.sol", - "id": 3783, + "id": 3781, "nodeType": "ImportDirective", - "scope": 4288, - "sourceUnit": 1439, + "scope": 4286, + "sourceUnit": 1423, "src": "667:20:7", "symbolAliases": [], "unitAlias": "" @@ -7281,10 +7281,10 @@ { "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol", "file": "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol", - "id": 3784, + "id": 3782, "nodeType": "ImportDirective", - "scope": 4288, - "sourceUnit": 6779, + "scope": 4286, + "sourceUnit": 6538, "src": "688:64:7", "symbolAliases": [], "unitAlias": "" @@ -7295,43 +7295,43 @@ "arguments": null, "baseName": { "contractScope": null, - "id": 3785, + "id": 3783, "name": "BNum", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 1438, + "referencedDeclaration": 1422, "src": "1468:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BNum_$1438", + "typeIdentifier": "t_contract$_BNum_$1422", "typeString": "contract BNum" } }, - "id": 3786, + "id": 3784, "nodeType": "InheritanceSpecifier", "src": "1468:4:7" } ], "contractDependencies": [ - 284, - 1438 + 280, + 1422 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, - "id": 3981, + "id": 3979, "linearizedBaseContracts": [ - 3981, - 1438, - 284 + 3979, + 1422, + 280 ], "name": "BTokenBase", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, - "id": 3790, + "id": 3788, "name": "_balance", "nodeType": "VariableDeclaration", - "scope": 3981, + "scope": 3979, "src": "1480:60:7", "stateVariable": true, "storageLocation": "default", @@ -7340,9 +7340,9 @@ "typeString": "mapping(address => uint256)" }, "typeName": { - "id": 3789, + "id": 3787, "keyType": { - "id": 3787, + "id": 3785, "name": "address", "nodeType": "ElementaryTypeName", "src": "1488:7:7", @@ -7358,7 +7358,7 @@ "typeString": "mapping(address => uint256)" }, "valueType": { - "id": 3788, + "id": 3786, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1499:4:7", @@ -7373,10 +7373,10 @@ }, { "constant": false, - "id": 3796, + "id": 3794, "name": "_allowance", "nodeType": "VariableDeclaration", - "scope": 3981, + "scope": 3979, "src": "1546:62:7", "stateVariable": true, "storageLocation": "default", @@ -7385,9 +7385,9 @@ "typeString": "mapping(address => mapping(address => uint256))" }, "typeName": { - "id": 3795, + "id": 3793, "keyType": { - "id": 3791, + "id": 3789, "name": "address", "nodeType": "ElementaryTypeName", "src": "1554:7:7", @@ -7403,9 +7403,9 @@ "typeString": "mapping(address => mapping(address => uint256))" }, "valueType": { - "id": 3794, + "id": 3792, "keyType": { - "id": 3792, + "id": 3790, "name": "address", "nodeType": "ElementaryTypeName", "src": "1573:7:7", @@ -7421,7 +7421,7 @@ "typeString": "mapping(address => uint256)" }, "valueType": { - "id": 3793, + "id": 3791, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1582:4:7", @@ -7437,10 +7437,10 @@ }, { "constant": false, - "id": 3798, + "id": 3796, "name": "_totalSupply", "nodeType": "VariableDeclaration", - "scope": 3981, + "scope": 3979, "src": "1614:26:7", "stateVariable": true, "storageLocation": "default", @@ -7449,7 +7449,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3797, + "id": 3795, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1614:4:7", @@ -7464,20 +7464,20 @@ { "anonymous": false, "documentation": null, - "id": 3806, + "id": 3804, "name": "Approval", "nodeType": "EventDefinition", "parameters": { - "id": 3805, + "id": 3803, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3800, + "id": 3798, "indexed": true, "name": "src", "nodeType": "VariableDeclaration", - "scope": 3806, + "scope": 3804, "src": "1662:19:7", "stateVariable": false, "storageLocation": "default", @@ -7486,7 +7486,7 @@ "typeString": "address" }, "typeName": { - "id": 3799, + "id": 3797, "name": "address", "nodeType": "ElementaryTypeName", "src": "1662:7:7", @@ -7501,11 +7501,11 @@ }, { "constant": false, - "id": 3802, + "id": 3800, "indexed": true, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 3806, + "scope": 3804, "src": "1683:19:7", "stateVariable": false, "storageLocation": "default", @@ -7514,7 +7514,7 @@ "typeString": "address" }, "typeName": { - "id": 3801, + "id": 3799, "name": "address", "nodeType": "ElementaryTypeName", "src": "1683:7:7", @@ -7529,11 +7529,11 @@ }, { "constant": false, - "id": 3804, + "id": 3802, "indexed": false, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 3806, + "scope": 3804, "src": "1704:8:7", "stateVariable": false, "storageLocation": "default", @@ -7542,7 +7542,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3803, + "id": 3801, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1704:4:7", @@ -7562,20 +7562,20 @@ { "anonymous": false, "documentation": null, - "id": 3814, + "id": 3812, "name": "Transfer", "nodeType": "EventDefinition", "parameters": { - "id": 3813, + "id": 3811, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3808, + "id": 3806, "indexed": true, "name": "src", "nodeType": "VariableDeclaration", - "scope": 3814, + "scope": 3812, "src": "1734:19:7", "stateVariable": false, "storageLocation": "default", @@ -7584,7 +7584,7 @@ "typeString": "address" }, "typeName": { - "id": 3807, + "id": 3805, "name": "address", "nodeType": "ElementaryTypeName", "src": "1734:7:7", @@ -7599,11 +7599,11 @@ }, { "constant": false, - "id": 3810, + "id": 3808, "indexed": true, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 3814, + "scope": 3812, "src": "1755:19:7", "stateVariable": false, "storageLocation": "default", @@ -7612,7 +7612,7 @@ "typeString": "address" }, "typeName": { - "id": 3809, + "id": 3807, "name": "address", "nodeType": "ElementaryTypeName", "src": "1755:7:7", @@ -7627,11 +7627,11 @@ }, { "constant": false, - "id": 3812, + "id": 3810, "indexed": false, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 3814, + "scope": 3812, "src": "1776:8:7", "stateVariable": false, "storageLocation": "default", @@ -7640,7 +7640,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3811, + "id": 3809, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1776:4:7", @@ -7659,14 +7659,14 @@ }, { "body": { - "id": 3851, + "id": 3849, "nodeType": "Block", "src": "1826:180:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 3832, + "id": 3830, "isConstant": false, "isLValue": false, "isPure": false, @@ -7675,31 +7675,31 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3819, + "id": 3817, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "1836:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3823, + "id": 3821, "indexExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 3821, + "id": 3819, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "1853:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -7707,11 +7707,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3820, + "id": 3818, "isConstant": false, "isLValue": false, "isPure": true, @@ -7724,7 +7724,7 @@ }, "typeName": "address" }, - "id": 3822, + "id": 3820, "isConstant": false, "isLValue": false, "isPure": false, @@ -7758,31 +7758,31 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3825, + "id": 3823, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "1867:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3829, + "id": 3827, "indexExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 3827, + "id": 3825, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "1884:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -7790,11 +7790,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3826, + "id": 3824, "isConstant": false, "isLValue": false, "isPure": true, @@ -7807,7 +7807,7 @@ }, "typeName": "address" }, - "id": 3828, + "id": 3826, "isConstant": false, "isLValue": false, "isPure": false, @@ -7834,11 +7834,11 @@ }, { "argumentTypes": null, - "id": 3830, + "id": 3828, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3816, + "referencedDeclaration": 3814, "src": "1892:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7857,18 +7857,18 @@ "typeString": "uint256" } ], - "id": 3824, + "id": 3822, "name": "badd", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1017, + "referencedDeclaration": 1001, "src": "1862:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 3831, + "id": 3829, "isConstant": false, "isLValue": false, "isPure": false, @@ -7888,25 +7888,25 @@ "typeString": "uint256" } }, - "id": 3833, + "id": 3831, "nodeType": "ExpressionStatement", "src": "1836:60:7" }, { "expression": { "argumentTypes": null, - "id": 3839, + "id": 3837, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 3834, + "id": 3832, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3798, + "referencedDeclaration": 3796, "src": "1906:12:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7920,11 +7920,11 @@ "arguments": [ { "argumentTypes": null, - "id": 3836, + "id": 3834, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3798, + "referencedDeclaration": 3796, "src": "1926:12:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7933,11 +7933,11 @@ }, { "argumentTypes": null, - "id": 3837, + "id": 3835, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3816, + "referencedDeclaration": 3814, "src": "1940:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7956,18 +7956,18 @@ "typeString": "uint256" } ], - "id": 3835, + "id": 3833, "name": "badd", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1017, + "referencedDeclaration": 1001, "src": "1921:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 3838, + "id": 3836, "isConstant": false, "isLValue": false, "isPure": false, @@ -7987,7 +7987,7 @@ "typeString": "uint256" } }, - "id": 3840, + "id": 3838, "nodeType": "ExpressionStatement", "src": "1906:38:7" }, @@ -8001,7 +8001,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 3843, + "id": 3841, "isConstant": false, "isLValue": false, "isPure": true, @@ -8024,7 +8024,7 @@ "typeString": "int_const 0" } ], - "id": 3842, + "id": 3840, "isConstant": false, "isLValue": false, "isPure": true, @@ -8037,7 +8037,7 @@ }, "typeName": "address" }, - "id": 3844, + "id": 3842, "isConstant": false, "isLValue": false, "isPure": true, @@ -8056,14 +8056,14 @@ "arguments": [ { "argumentTypes": null, - "id": 3846, + "id": 3844, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "1988:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -8071,11 +8071,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3845, + "id": 3843, "isConstant": false, "isLValue": false, "isPure": true, @@ -8088,7 +8088,7 @@ }, "typeName": "address" }, - "id": 3847, + "id": 3845, "isConstant": false, "isLValue": false, "isPure": false, @@ -8104,11 +8104,11 @@ }, { "argumentTypes": null, - "id": 3848, + "id": 3846, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3816, + "referencedDeclaration": 3814, "src": "1995:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8131,18 +8131,18 @@ "typeString": "uint256" } ], - "id": 3841, + "id": 3839, "name": "Transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3814, + "referencedDeclaration": 3812, "src": "1959:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 3849, + "id": 3847, "isConstant": false, "isLValue": false, "isPure": false, @@ -8156,29 +8156,29 @@ "typeString": "tuple()" } }, - "id": 3850, + "id": 3848, "nodeType": "EmitStatement", "src": "1954:45:7" } ] }, "documentation": null, - "id": 3852, + "id": 3850, "implemented": true, "kind": "function", "modifiers": [], "name": "_mint", "nodeType": "FunctionDefinition", "parameters": { - "id": 3817, + "id": 3815, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3816, + "id": 3814, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 3852, + "scope": 3850, "src": "1807:8:7", "stateVariable": false, "storageLocation": "default", @@ -8187,7 +8187,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3815, + "id": 3813, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1807:4:7", @@ -8203,12 +8203,12 @@ "src": "1806:10:7" }, "returnParameters": { - "id": 3818, + "id": 3816, "nodeType": "ParameterList", "parameters": [], "src": "1826:0:7" }, - "scope": 3981, + "scope": 3979, "src": "1792:214:7", "stateMutability": "nonpayable", "superFunction": null, @@ -8216,7 +8216,7 @@ }, { "body": { - "id": 3900, + "id": 3898, "nodeType": "Block", "src": "2046:288:7", "statements": [ @@ -8230,7 +8230,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 3864, + "id": 3862, "isConstant": false, "isLValue": false, "isPure": false, @@ -8239,31 +8239,31 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3858, + "id": 3856, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2077:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3862, + "id": 3860, "indexExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 3860, + "id": 3858, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "2094:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -8271,11 +8271,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3859, + "id": 3857, "isConstant": false, "isLValue": false, "isPure": true, @@ -8288,7 +8288,7 @@ }, "typeName": "address" }, - "id": 3861, + "id": 3859, "isConstant": false, "isLValue": false, "isPure": false, @@ -8317,11 +8317,11 @@ "operator": ">=", "rightExpression": { "argumentTypes": null, - "id": 3863, + "id": 3861, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3854, + "referencedDeclaration": 3852, "src": "2104:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8337,7 +8337,7 @@ { "argumentTypes": null, "hexValue": "4552525f494e53554646494349454e545f42414c", - "id": 3865, + "id": 3863, "isConstant": false, "isLValue": false, "isPure": true, @@ -8364,21 +8364,21 @@ "typeString": "literal_string \"ERR_INSUFFICIENT_BAL\"" } ], - "id": 3857, + "id": 3855, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "2056:7:7", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 3866, + "id": 3864, "isConstant": false, "isLValue": false, "isPure": false, @@ -8392,14 +8392,14 @@ "typeString": "tuple()" } }, - "id": 3867, + "id": 3865, "nodeType": "ExpressionStatement", "src": "2056:98:7" }, { "expression": { "argumentTypes": null, - "id": 3881, + "id": 3879, "isConstant": false, "isLValue": false, "isPure": false, @@ -8408,31 +8408,31 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3868, + "id": 3866, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2164:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3872, + "id": 3870, "indexExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 3870, + "id": 3868, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "2181:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -8440,11 +8440,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3869, + "id": 3867, "isConstant": false, "isLValue": false, "isPure": true, @@ -8457,7 +8457,7 @@ }, "typeName": "address" }, - "id": 3871, + "id": 3869, "isConstant": false, "isLValue": false, "isPure": false, @@ -8491,31 +8491,31 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3874, + "id": 3872, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2195:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3878, + "id": 3876, "indexExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 3876, + "id": 3874, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "2212:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -8523,11 +8523,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3875, + "id": 3873, "isConstant": false, "isLValue": false, "isPure": true, @@ -8540,7 +8540,7 @@ }, "typeName": "address" }, - "id": 3877, + "id": 3875, "isConstant": false, "isLValue": false, "isPure": false, @@ -8567,11 +8567,11 @@ }, { "argumentTypes": null, - "id": 3879, + "id": 3877, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3854, + "referencedDeclaration": 3852, "src": "2220:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8590,18 +8590,18 @@ "typeString": "uint256" } ], - "id": 3873, + "id": 3871, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "2190:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 3880, + "id": 3878, "isConstant": false, "isLValue": false, "isPure": false, @@ -8621,25 +8621,25 @@ "typeString": "uint256" } }, - "id": 3882, + "id": 3880, "nodeType": "ExpressionStatement", "src": "2164:60:7" }, { "expression": { "argumentTypes": null, - "id": 3888, + "id": 3886, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 3883, + "id": 3881, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3798, + "referencedDeclaration": 3796, "src": "2234:12:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8653,11 +8653,11 @@ "arguments": [ { "argumentTypes": null, - "id": 3885, + "id": 3883, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3798, + "referencedDeclaration": 3796, "src": "2254:12:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8666,11 +8666,11 @@ }, { "argumentTypes": null, - "id": 3886, + "id": 3884, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3854, + "referencedDeclaration": 3852, "src": "2268:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8689,18 +8689,18 @@ "typeString": "uint256" } ], - "id": 3884, + "id": 3882, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "2249:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 3887, + "id": 3885, "isConstant": false, "isLValue": false, "isPure": false, @@ -8720,7 +8720,7 @@ "typeString": "uint256" } }, - "id": 3889, + "id": 3887, "nodeType": "ExpressionStatement", "src": "2234:38:7" }, @@ -8733,14 +8733,14 @@ "arguments": [ { "argumentTypes": null, - "id": 3892, + "id": 3890, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "2304:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -8748,11 +8748,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3891, + "id": 3889, "isConstant": false, "isLValue": false, "isPure": true, @@ -8765,7 +8765,7 @@ }, "typeName": "address" }, - "id": 3893, + "id": 3891, "isConstant": false, "isLValue": false, "isPure": false, @@ -8785,7 +8785,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 3895, + "id": 3893, "isConstant": false, "isLValue": false, "isPure": true, @@ -8808,7 +8808,7 @@ "typeString": "int_const 0" } ], - "id": 3894, + "id": 3892, "isConstant": false, "isLValue": false, "isPure": true, @@ -8821,7 +8821,7 @@ }, "typeName": "address" }, - "id": 3896, + "id": 3894, "isConstant": false, "isLValue": false, "isPure": true, @@ -8837,11 +8837,11 @@ }, { "argumentTypes": null, - "id": 3897, + "id": 3895, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3854, + "referencedDeclaration": 3852, "src": "2323:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8864,18 +8864,18 @@ "typeString": "uint256" } ], - "id": 3890, + "id": 3888, "name": "Transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3814, + "referencedDeclaration": 3812, "src": "2287:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 3898, + "id": 3896, "isConstant": false, "isLValue": false, "isPure": false, @@ -8889,29 +8889,29 @@ "typeString": "tuple()" } }, - "id": 3899, + "id": 3897, "nodeType": "EmitStatement", "src": "2282:45:7" } ] }, "documentation": null, - "id": 3901, + "id": 3899, "implemented": true, "kind": "function", "modifiers": [], "name": "_burn", "nodeType": "FunctionDefinition", "parameters": { - "id": 3855, + "id": 3853, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3854, + "id": 3852, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 3901, + "scope": 3899, "src": "2027:8:7", "stateVariable": false, "storageLocation": "default", @@ -8920,7 +8920,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3853, + "id": 3851, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2027:4:7", @@ -8936,12 +8936,12 @@ "src": "2026:10:7" }, "returnParameters": { - "id": 3856, + "id": 3854, "nodeType": "ParameterList", "parameters": [], "src": "2046:0:7" }, - "scope": 3981, + "scope": 3979, "src": "2012:322:7", "stateMutability": "nonpayable", "superFunction": null, @@ -8949,7 +8949,7 @@ }, { "body": { - "id": 3947, + "id": 3945, "nodeType": "Block", "src": "2400:208:7", "statements": [ @@ -8963,7 +8963,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 3915, + "id": 3913, "isConstant": false, "isLValue": false, "isPure": false, @@ -8972,25 +8972,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3911, + "id": 3909, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2418:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3913, + "id": 3911, "indexExpression": { "argumentTypes": null, - "id": 3912, + "id": 3910, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3903, + "referencedDeclaration": 3901, "src": "2427:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9012,11 +9012,11 @@ "operator": ">=", "rightExpression": { "argumentTypes": null, - "id": 3914, + "id": 3912, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3907, + "referencedDeclaration": 3905, "src": "2435:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9032,7 +9032,7 @@ { "argumentTypes": null, "hexValue": "4552525f494e53554646494349454e545f42414c", - "id": 3916, + "id": 3914, "isConstant": false, "isLValue": false, "isPure": true, @@ -9059,21 +9059,21 @@ "typeString": "literal_string \"ERR_INSUFFICIENT_BAL\"" } ], - "id": 3910, + "id": 3908, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "2410:7:7", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 3917, + "id": 3915, "isConstant": false, "isLValue": false, "isPure": false, @@ -9087,14 +9087,14 @@ "typeString": "tuple()" } }, - "id": 3918, + "id": 3916, "nodeType": "ExpressionStatement", "src": "2410:53:7" }, { "expression": { "argumentTypes": null, - "id": 3928, + "id": 3926, "isConstant": false, "isLValue": false, "isPure": false, @@ -9103,25 +9103,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3919, + "id": 3917, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2473:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3921, + "id": 3919, "indexExpression": { "argumentTypes": null, - "id": 3920, + "id": 3918, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3903, + "referencedDeclaration": 3901, "src": "2482:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9148,25 +9148,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3923, + "id": 3921, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2494:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3925, + "id": 3923, "indexExpression": { "argumentTypes": null, - "id": 3924, + "id": 3922, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3903, + "referencedDeclaration": 3901, "src": "2503:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9186,11 +9186,11 @@ }, { "argumentTypes": null, - "id": 3926, + "id": 3924, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3907, + "referencedDeclaration": 3905, "src": "2509:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9209,18 +9209,18 @@ "typeString": "uint256" } ], - "id": 3922, + "id": 3920, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "2489:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 3927, + "id": 3925, "isConstant": false, "isLValue": false, "isPure": false, @@ -9240,14 +9240,14 @@ "typeString": "uint256" } }, - "id": 3929, + "id": 3927, "nodeType": "ExpressionStatement", "src": "2473:40:7" }, { "expression": { "argumentTypes": null, - "id": 3939, + "id": 3937, "isConstant": false, "isLValue": false, "isPure": false, @@ -9256,25 +9256,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3930, + "id": 3928, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2523:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3932, + "id": 3930, "indexExpression": { "argumentTypes": null, - "id": 3931, + "id": 3929, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3905, + "referencedDeclaration": 3903, "src": "2532:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9301,25 +9301,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3934, + "id": 3932, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2544:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3936, + "id": 3934, "indexExpression": { "argumentTypes": null, - "id": 3935, + "id": 3933, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3905, + "referencedDeclaration": 3903, "src": "2553:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9339,11 +9339,11 @@ }, { "argumentTypes": null, - "id": 3937, + "id": 3935, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3907, + "referencedDeclaration": 3905, "src": "2559:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9362,18 +9362,18 @@ "typeString": "uint256" } ], - "id": 3933, + "id": 3931, "name": "badd", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1017, + "referencedDeclaration": 1001, "src": "2539:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 3938, + "id": 3936, "isConstant": false, "isLValue": false, "isPure": false, @@ -9393,7 +9393,7 @@ "typeString": "uint256" } }, - "id": 3940, + "id": 3938, "nodeType": "ExpressionStatement", "src": "2523:40:7" }, @@ -9403,11 +9403,11 @@ "arguments": [ { "argumentTypes": null, - "id": 3942, + "id": 3940, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3903, + "referencedDeclaration": 3901, "src": "2587:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9416,11 +9416,11 @@ }, { "argumentTypes": null, - "id": 3943, + "id": 3941, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3905, + "referencedDeclaration": 3903, "src": "2592:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9429,11 +9429,11 @@ }, { "argumentTypes": null, - "id": 3944, + "id": 3942, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3907, + "referencedDeclaration": 3905, "src": "2597:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9456,18 +9456,18 @@ "typeString": "uint256" } ], - "id": 3941, + "id": 3939, "name": "Transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3814, + "referencedDeclaration": 3812, "src": "2578:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 3945, + "id": 3943, "isConstant": false, "isLValue": false, "isPure": false, @@ -9481,29 +9481,29 @@ "typeString": "tuple()" } }, - "id": 3946, + "id": 3944, "nodeType": "EmitStatement", "src": "2573:28:7" } ] }, "documentation": null, - "id": 3948, + "id": 3946, "implemented": true, "kind": "function", "modifiers": [], "name": "_move", "nodeType": "FunctionDefinition", "parameters": { - "id": 3908, + "id": 3906, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3903, + "id": 3901, "name": "src", "nodeType": "VariableDeclaration", - "scope": 3948, + "scope": 3946, "src": "2355:11:7", "stateVariable": false, "storageLocation": "default", @@ -9512,7 +9512,7 @@ "typeString": "address" }, "typeName": { - "id": 3902, + "id": 3900, "name": "address", "nodeType": "ElementaryTypeName", "src": "2355:7:7", @@ -9527,10 +9527,10 @@ }, { "constant": false, - "id": 3905, + "id": 3903, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 3948, + "scope": 3946, "src": "2368:11:7", "stateVariable": false, "storageLocation": "default", @@ -9539,7 +9539,7 @@ "typeString": "address" }, "typeName": { - "id": 3904, + "id": 3902, "name": "address", "nodeType": "ElementaryTypeName", "src": "2368:7:7", @@ -9554,10 +9554,10 @@ }, { "constant": false, - "id": 3907, + "id": 3905, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 3948, + "scope": 3946, "src": "2381:8:7", "stateVariable": false, "storageLocation": "default", @@ -9566,7 +9566,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3906, + "id": 3904, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2381:4:7", @@ -9582,12 +9582,12 @@ "src": "2354:36:7" }, "returnParameters": { - "id": 3909, + "id": 3907, "nodeType": "ParameterList", "parameters": [], "src": "2400:0:7" }, - "scope": 3981, + "scope": 3979, "src": "2340:268:7", "stateMutability": "nonpayable", "superFunction": null, @@ -9595,7 +9595,7 @@ }, { "body": { - "id": 3963, + "id": 3961, "nodeType": "Block", "src": "2660:46:7", "statements": [ @@ -9608,14 +9608,14 @@ "arguments": [ { "argumentTypes": null, - "id": 3957, + "id": 3955, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "2684:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -9623,11 +9623,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3956, + "id": 3954, "isConstant": false, "isLValue": false, "isPure": true, @@ -9640,7 +9640,7 @@ }, "typeName": "address" }, - "id": 3958, + "id": 3956, "isConstant": false, "isLValue": false, "isPure": false, @@ -9656,11 +9656,11 @@ }, { "argumentTypes": null, - "id": 3959, + "id": 3957, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3950, + "referencedDeclaration": 3948, "src": "2691:2:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9669,11 +9669,11 @@ }, { "argumentTypes": null, - "id": 3960, + "id": 3958, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3952, + "referencedDeclaration": 3950, "src": "2695:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9696,18 +9696,18 @@ "typeString": "uint256" } ], - "id": 3955, + "id": 3953, "name": "_move", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3948, + "referencedDeclaration": 3946, "src": "2670:5:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 3961, + "id": 3959, "isConstant": false, "isLValue": false, "isPure": false, @@ -9721,29 +9721,29 @@ "typeString": "tuple()" } }, - "id": 3962, + "id": 3960, "nodeType": "ExpressionStatement", "src": "2670:29:7" } ] }, "documentation": null, - "id": 3964, + "id": 3962, "implemented": true, "kind": "function", "modifiers": [], "name": "_push", "nodeType": "FunctionDefinition", "parameters": { - "id": 3953, + "id": 3951, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3950, + "id": 3948, "name": "to", "nodeType": "VariableDeclaration", - "scope": 3964, + "scope": 3962, "src": "2629:10:7", "stateVariable": false, "storageLocation": "default", @@ -9752,7 +9752,7 @@ "typeString": "address" }, "typeName": { - "id": 3949, + "id": 3947, "name": "address", "nodeType": "ElementaryTypeName", "src": "2629:7:7", @@ -9767,10 +9767,10 @@ }, { "constant": false, - "id": 3952, + "id": 3950, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 3964, + "scope": 3962, "src": "2641:8:7", "stateVariable": false, "storageLocation": "default", @@ -9779,7 +9779,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3951, + "id": 3949, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2641:4:7", @@ -9795,12 +9795,12 @@ "src": "2628:22:7" }, "returnParameters": { - "id": 3954, + "id": 3952, "nodeType": "ParameterList", "parameters": [], "src": "2660:0:7" }, - "scope": 3981, + "scope": 3979, "src": "2614:92:7", "stateMutability": "nonpayable", "superFunction": null, @@ -9808,7 +9808,7 @@ }, { "body": { - "id": 3979, + "id": 3977, "nodeType": "Block", "src": "2760:48:7", "statements": [ @@ -9818,11 +9818,11 @@ "arguments": [ { "argumentTypes": null, - "id": 3972, + "id": 3970, "name": "from", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3966, + "referencedDeclaration": 3964, "src": "2776:4:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9834,14 +9834,14 @@ "arguments": [ { "argumentTypes": null, - "id": 3974, + "id": 3972, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "2790:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -9849,11 +9849,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3973, + "id": 3971, "isConstant": false, "isLValue": false, "isPure": true, @@ -9866,7 +9866,7 @@ }, "typeName": "address" }, - "id": 3975, + "id": 3973, "isConstant": false, "isLValue": false, "isPure": false, @@ -9882,11 +9882,11 @@ }, { "argumentTypes": null, - "id": 3976, + "id": 3974, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3968, + "referencedDeclaration": 3966, "src": "2797:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9909,18 +9909,18 @@ "typeString": "uint256" } ], - "id": 3971, + "id": 3969, "name": "_move", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3948, + "referencedDeclaration": 3946, "src": "2770:5:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 3977, + "id": 3975, "isConstant": false, "isLValue": false, "isPure": false, @@ -9934,29 +9934,29 @@ "typeString": "tuple()" } }, - "id": 3978, + "id": 3976, "nodeType": "ExpressionStatement", "src": "2770:31:7" } ] }, "documentation": null, - "id": 3980, + "id": 3978, "implemented": true, "kind": "function", "modifiers": [], "name": "_pull", "nodeType": "FunctionDefinition", "parameters": { - "id": 3969, + "id": 3967, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3966, + "id": 3964, "name": "from", "nodeType": "VariableDeclaration", - "scope": 3980, + "scope": 3978, "src": "2727:12:7", "stateVariable": false, "storageLocation": "default", @@ -9965,7 +9965,7 @@ "typeString": "address" }, "typeName": { - "id": 3965, + "id": 3963, "name": "address", "nodeType": "ElementaryTypeName", "src": "2727:7:7", @@ -9980,10 +9980,10 @@ }, { "constant": false, - "id": 3968, + "id": 3966, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 3980, + "scope": 3978, "src": "2741:8:7", "stateVariable": false, "storageLocation": "default", @@ -9992,7 +9992,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3967, + "id": 3965, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2741:4:7", @@ -10008,19 +10008,19 @@ "src": "2726:24:7" }, "returnParameters": { - "id": 3970, + "id": 3968, "nodeType": "ParameterList", "parameters": [], "src": "2760:0:7" }, - "scope": 3981, + "scope": 3979, "src": "2712:96:7", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" } ], - "scope": 4288, + "scope": 4286, "src": "1445:1365:7" }, { @@ -10029,17 +10029,17 @@ "arguments": null, "baseName": { "contractScope": null, - "id": 3982, + "id": 3980, "name": "BTokenBase", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 3981, + "referencedDeclaration": 3979, "src": "2831:10:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } }, - "id": 3983, + "id": 3981, "nodeType": "InheritanceSpecifier", "src": "2831:10:7" }, @@ -10047,47 +10047,47 @@ "arguments": null, "baseName": { "contractScope": null, - "id": 3984, + "id": 3982, "name": "IERC20", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 6778, + "referencedDeclaration": 6537, "src": "2843:6:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_IERC20_$6778", + "typeIdentifier": "t_contract$_IERC20_$6537", "typeString": "contract IERC20" } }, - "id": 3985, + "id": 3983, "nodeType": "InheritanceSpecifier", "src": "2843:6:7" } ], "contractDependencies": [ - 284, - 1438, - 3981, - 6778 + 280, + 1422, + 3979, + 6537 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, - "id": 4287, + "id": 4285, "linearizedBaseContracts": [ - 4287, - 6778, - 3981, - 1438, - 284 + 4285, + 6537, + 3979, + 1422, + 280 ], "name": "BToken", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, - "id": 3988, + "id": 3986, "name": "_name", "nodeType": "VariableDeclaration", - "scope": 4287, + "scope": 4285, "src": "2857:49:7", "stateVariable": true, "storageLocation": "default", @@ -10096,7 +10096,7 @@ "typeString": "string" }, "typeName": { - "id": 3986, + "id": 3984, "name": "string", "nodeType": "ElementaryTypeName", "src": "2857:6:7", @@ -10108,7 +10108,7 @@ "value": { "argumentTypes": null, "hexValue": "42616c616e63657220506f6f6c20546f6b656e", - "id": 3987, + "id": 3985, "isConstant": false, "isLValue": false, "isPure": true, @@ -10127,10 +10127,10 @@ }, { "constant": false, - "id": 3991, + "id": 3989, "name": "_symbol", "nodeType": "VariableDeclaration", - "scope": 4287, + "scope": 4285, "src": "2912:33:7", "stateVariable": true, "storageLocation": "default", @@ -10139,7 +10139,7 @@ "typeString": "string" }, "typeName": { - "id": 3989, + "id": 3987, "name": "string", "nodeType": "ElementaryTypeName", "src": "2912:6:7", @@ -10151,7 +10151,7 @@ "value": { "argumentTypes": null, "hexValue": "425054", - "id": 3990, + "id": 3988, "isConstant": false, "isLValue": false, "isPure": true, @@ -10170,10 +10170,10 @@ }, { "constant": false, - "id": 3994, + "id": 3992, "name": "_decimals", "nodeType": "VariableDeclaration", - "scope": 4287, + "scope": 4285, "src": "2951:30:7", "stateVariable": true, "storageLocation": "default", @@ -10182,7 +10182,7 @@ "typeString": "uint8" }, "typeName": { - "id": 3992, + "id": 3990, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "2951:5:7", @@ -10194,7 +10194,7 @@ "value": { "argumentTypes": null, "hexValue": "3138", - "id": 3993, + "id": 3991, "isConstant": false, "isLValue": false, "isPure": true, @@ -10213,54 +10213,54 @@ }, { "body": { - "id": 4001, + "id": 3999, "nodeType": "Block", "src": "3040:29:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 3999, + "id": 3997, "name": "_name", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3988, + "referencedDeclaration": 3986, "src": "3057:5:7", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, - "functionReturnParameters": 3998, - "id": 4000, + "functionReturnParameters": 3996, + "id": 3998, "nodeType": "Return", "src": "3050:12:7" } ] }, "documentation": null, - "id": 4002, + "id": 4000, "implemented": true, "kind": "function", "modifiers": [], "name": "name", "nodeType": "FunctionDefinition", "parameters": { - "id": 3995, + "id": 3993, "nodeType": "ParameterList", "parameters": [], "src": "3001:2:7" }, "returnParameters": { - "id": 3998, + "id": 3996, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3997, + "id": 3995, "name": "", "nodeType": "VariableDeclaration", - "scope": 4002, + "scope": 4000, "src": "3025:13:7", "stateVariable": false, "storageLocation": "memory", @@ -10269,7 +10269,7 @@ "typeString": "string" }, "typeName": { - "id": 3996, + "id": 3994, "name": "string", "nodeType": "ElementaryTypeName", "src": "3025:6:7", @@ -10284,7 +10284,7 @@ ], "src": "3024:15:7" }, - "scope": 4287, + "scope": 4285, "src": "2988:81:7", "stateMutability": "view", "superFunction": null, @@ -10292,54 +10292,54 @@ }, { "body": { - "id": 4009, + "id": 4007, "nodeType": "Block", "src": "3129:31:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4007, + "id": 4005, "name": "_symbol", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3991, + "referencedDeclaration": 3989, "src": "3146:7:7", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, - "functionReturnParameters": 4006, - "id": 4008, + "functionReturnParameters": 4004, + "id": 4006, "nodeType": "Return", "src": "3139:14:7" } ] }, "documentation": null, - "id": 4010, + "id": 4008, "implemented": true, "kind": "function", "modifiers": [], "name": "symbol", "nodeType": "FunctionDefinition", "parameters": { - "id": 4003, + "id": 4001, "nodeType": "ParameterList", "parameters": [], "src": "3090:2:7" }, "returnParameters": { - "id": 4006, + "id": 4004, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4005, + "id": 4003, "name": "", "nodeType": "VariableDeclaration", - "scope": 4010, + "scope": 4008, "src": "3114:13:7", "stateVariable": false, "storageLocation": "memory", @@ -10348,7 +10348,7 @@ "typeString": "string" }, "typeName": { - "id": 4004, + "id": 4002, "name": "string", "nodeType": "ElementaryTypeName", "src": "3114:6:7", @@ -10363,7 +10363,7 @@ ], "src": "3113:15:7" }, - "scope": 4287, + "scope": 4285, "src": "3075:85:7", "stateMutability": "view", "superFunction": null, @@ -10371,54 +10371,54 @@ }, { "body": { - "id": 4017, + "id": 4015, "nodeType": "Block", "src": "3213:33:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4015, + "id": 4013, "name": "_decimals", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3994, + "referencedDeclaration": 3992, "src": "3230:9:7", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, - "functionReturnParameters": 4014, - "id": 4016, + "functionReturnParameters": 4012, + "id": 4014, "nodeType": "Return", "src": "3223:16:7" } ] }, "documentation": null, - "id": 4018, + "id": 4016, "implemented": true, "kind": "function", "modifiers": [], "name": "decimals", "nodeType": "FunctionDefinition", "parameters": { - "id": 4011, + "id": 4009, "nodeType": "ParameterList", "parameters": [], "src": "3183:2:7" }, "returnParameters": { - "id": 4014, + "id": 4012, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4013, + "id": 4011, "name": "", "nodeType": "VariableDeclaration", - "scope": 4018, + "scope": 4016, "src": "3206:5:7", "stateVariable": false, "storageLocation": "default", @@ -10427,7 +10427,7 @@ "typeString": "uint8" }, "typeName": { - "id": 4012, + "id": 4010, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "3206:5:7", @@ -10442,7 +10442,7 @@ ], "src": "3205:7:7" }, - "scope": 4287, + "scope": 4285, "src": "3166:80:7", "stateMutability": "view", "superFunction": null, @@ -10450,7 +10450,7 @@ }, { "body": { - "id": 4033, + "id": 4031, "nodeType": "Block", "src": "3326:44:7", "statements": [ @@ -10461,25 +10461,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4027, + "id": 4025, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "3343:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4029, + "id": 4027, "indexExpression": { "argumentTypes": null, - "id": 4028, + "id": 4026, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4020, + "referencedDeclaration": 4018, "src": "3354:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10497,14 +10497,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4031, + "id": 4029, "indexExpression": { "argumentTypes": null, - "id": 4030, + "id": 4028, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4022, + "referencedDeclaration": 4020, "src": "3359:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10522,30 +10522,30 @@ "typeString": "uint256" } }, - "functionReturnParameters": 4026, - "id": 4032, + "functionReturnParameters": 4024, + "id": 4030, "nodeType": "Return", "src": "3336:27:7" } ] }, "documentation": null, - "id": 4034, + "id": 4032, "implemented": true, "kind": "function", "modifiers": [], "name": "allowance", "nodeType": "FunctionDefinition", "parameters": { - "id": 4023, + "id": 4021, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4020, + "id": 4018, "name": "src", "nodeType": "VariableDeclaration", - "scope": 4034, + "scope": 4032, "src": "3271:11:7", "stateVariable": false, "storageLocation": "default", @@ -10554,7 +10554,7 @@ "typeString": "address" }, "typeName": { - "id": 4019, + "id": 4017, "name": "address", "nodeType": "ElementaryTypeName", "src": "3271:7:7", @@ -10569,10 +10569,10 @@ }, { "constant": false, - "id": 4022, + "id": 4020, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 4034, + "scope": 4032, "src": "3284:11:7", "stateVariable": false, "storageLocation": "default", @@ -10581,7 +10581,7 @@ "typeString": "address" }, "typeName": { - "id": 4021, + "id": 4019, "name": "address", "nodeType": "ElementaryTypeName", "src": "3284:7:7", @@ -10598,15 +10598,15 @@ "src": "3270:26:7" }, "returnParameters": { - "id": 4026, + "id": 4024, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4025, + "id": 4023, "name": "", "nodeType": "VariableDeclaration", - "scope": 4034, + "scope": 4032, "src": "3320:4:7", "stateVariable": false, "storageLocation": "default", @@ -10615,7 +10615,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4024, + "id": 4022, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3320:4:7", @@ -10630,15 +10630,15 @@ ], "src": "3319:6:7" }, - "scope": 4287, + "scope": 4285, "src": "3252:118:7", "stateMutability": "view", - "superFunction": 6741, + "superFunction": 6500, "visibility": "external" }, { "body": { - "id": 4045, + "id": 4043, "nodeType": "Block", "src": "3438:38:7", "statements": [ @@ -10647,25 +10647,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4041, + "id": 4039, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "3455:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 4043, + "id": 4041, "indexExpression": { "argumentTypes": null, - "id": 4042, + "id": 4040, "name": "whom", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4036, + "referencedDeclaration": 4034, "src": "3464:4:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10683,30 +10683,30 @@ "typeString": "uint256" } }, - "functionReturnParameters": 4040, - "id": 4044, + "functionReturnParameters": 4038, + "id": 4042, "nodeType": "Return", "src": "3448:21:7" } ] }, "documentation": null, - "id": 4046, + "id": 4044, "implemented": true, "kind": "function", "modifiers": [], "name": "balanceOf", "nodeType": "FunctionDefinition", "parameters": { - "id": 4037, + "id": 4035, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4036, + "id": 4034, "name": "whom", "nodeType": "VariableDeclaration", - "scope": 4046, + "scope": 4044, "src": "3395:12:7", "stateVariable": false, "storageLocation": "default", @@ -10715,7 +10715,7 @@ "typeString": "address" }, "typeName": { - "id": 4035, + "id": 4033, "name": "address", "nodeType": "ElementaryTypeName", "src": "3395:7:7", @@ -10732,15 +10732,15 @@ "src": "3394:14:7" }, "returnParameters": { - "id": 4040, + "id": 4038, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4039, + "id": 4037, "name": "", "nodeType": "VariableDeclaration", - "scope": 4046, + "scope": 4044, "src": "3432:4:7", "stateVariable": false, "storageLocation": "default", @@ -10749,7 +10749,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4038, + "id": 4036, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3432:4:7", @@ -10764,62 +10764,62 @@ ], "src": "3431:6:7" }, - "scope": 4287, + "scope": 4285, "src": "3376:100:7", "stateMutability": "view", - "superFunction": 6723, + "superFunction": 6482, "visibility": "external" }, { "body": { - "id": 4053, + "id": 4051, "nodeType": "Block", "src": "3532:36:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4051, + "id": 4049, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3798, + "referencedDeclaration": 3796, "src": "3549:12:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 4050, - "id": 4052, + "functionReturnParameters": 4048, + "id": 4050, "nodeType": "Return", "src": "3542:19:7" } ] }, "documentation": null, - "id": 4054, + "id": 4052, "implemented": true, "kind": "function", "modifiers": [], "name": "totalSupply", "nodeType": "FunctionDefinition", "parameters": { - "id": 4047, + "id": 4045, "nodeType": "ParameterList", "parameters": [], "src": "3502:2:7" }, "returnParameters": { - "id": 4050, + "id": 4048, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4049, + "id": 4047, "name": "", "nodeType": "VariableDeclaration", - "scope": 4054, + "scope": 4052, "src": "3526:4:7", "stateVariable": false, "storageLocation": "default", @@ -10828,7 +10828,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4048, + "id": 4046, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3526:4:7", @@ -10843,22 +10843,22 @@ ], "src": "3525:6:7" }, - "scope": 4287, + "scope": 4285, "src": "3482:86:7", "stateMutability": "view", - "superFunction": 6716, + "superFunction": 6475, "visibility": "public" }, { "body": { - "id": 4081, + "id": 4079, "nodeType": "Block", "src": "3638:116:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4070, + "id": 4068, "isConstant": false, "isLValue": false, "isPure": false, @@ -10869,34 +10869,34 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4063, + "id": 4061, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "3648:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4067, + "id": 4065, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4064, + "id": 4062, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "3659:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4065, + "id": 4063, "isConstant": false, "isLValue": false, "isPure": false, @@ -10921,14 +10921,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4068, + "id": 4066, "indexExpression": { "argumentTypes": null, - "id": 4066, + "id": 4064, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4056, + "referencedDeclaration": 4054, "src": "3671:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10950,11 +10950,11 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 4069, + "id": 4067, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4058, + "referencedDeclaration": 4056, "src": "3678:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10967,7 +10967,7 @@ "typeString": "uint256" } }, - "id": 4071, + "id": 4069, "nodeType": "ExpressionStatement", "src": "3648:33:7" }, @@ -10979,18 +10979,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4073, + "id": 4071, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "3705:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4074, + "id": 4072, "isConstant": false, "isLValue": false, "isPure": false, @@ -11006,11 +11006,11 @@ }, { "argumentTypes": null, - "id": 4075, + "id": 4073, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4056, + "referencedDeclaration": 4054, "src": "3717:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -11019,11 +11019,11 @@ }, { "argumentTypes": null, - "id": 4076, + "id": 4074, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4058, + "referencedDeclaration": 4056, "src": "3722:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11046,20 +11046,20 @@ "typeString": "uint256" } ], - "id": 4072, + "id": 4070, "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6777 + 6536 ], - "referencedDeclaration": 6777, + "referencedDeclaration": 6536, "src": "3696:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 4077, + "id": 4075, "isConstant": false, "isLValue": false, "isPure": false, @@ -11073,7 +11073,7 @@ "typeString": "tuple()" } }, - "id": 4078, + "id": 4076, "nodeType": "EmitStatement", "src": "3691:35:7" }, @@ -11081,7 +11081,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 4079, + "id": 4077, "isConstant": false, "isLValue": false, "isPure": true, @@ -11096,30 +11096,30 @@ }, "value": "true" }, - "functionReturnParameters": 4062, - "id": 4080, + "functionReturnParameters": 4060, + "id": 4078, "nodeType": "Return", "src": "3736:11:7" } ] }, "documentation": null, - "id": 4082, + "id": 4080, "implemented": true, "kind": "function", "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { - "id": 4059, + "id": 4057, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4056, + "id": 4054, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 4082, + "scope": 4080, "src": "3591:11:7", "stateVariable": false, "storageLocation": "default", @@ -11128,7 +11128,7 @@ "typeString": "address" }, "typeName": { - "id": 4055, + "id": 4053, "name": "address", "nodeType": "ElementaryTypeName", "src": "3591:7:7", @@ -11143,10 +11143,10 @@ }, { "constant": false, - "id": 4058, + "id": 4056, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 4082, + "scope": 4080, "src": "3604:8:7", "stateVariable": false, "storageLocation": "default", @@ -11155,7 +11155,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4057, + "id": 4055, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3604:4:7", @@ -11171,15 +11171,15 @@ "src": "3590:23:7" }, "returnParameters": { - "id": 4062, + "id": 4060, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4061, + "id": 4059, "name": "", "nodeType": "VariableDeclaration", - "scope": 4082, + "scope": 4080, "src": "3632:4:7", "stateVariable": false, "storageLocation": "default", @@ -11188,7 +11188,7 @@ "typeString": "bool" }, "typeName": { - "id": 4060, + "id": 4058, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3632:4:7", @@ -11203,22 +11203,22 @@ ], "src": "3631:6:7" }, - "scope": 4287, + "scope": 4285, "src": "3574:180:7", "stateMutability": "nonpayable", - "superFunction": 6750, + "superFunction": 6509, "visibility": "external" }, { "body": { - "id": 4122, + "id": 4120, "nodeType": "Block", "src": "3833:175:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4106, + "id": 4104, "isConstant": false, "isLValue": false, "isPure": false, @@ -11229,34 +11229,34 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4091, + "id": 4089, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "3843:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4095, + "id": 4093, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4092, + "id": 4090, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "3854:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4093, + "id": 4091, "isConstant": false, "isLValue": false, "isPure": false, @@ -11281,14 +11281,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4096, + "id": 4094, "indexExpression": { "argumentTypes": null, - "id": 4094, + "id": 4092, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4084, + "referencedDeclaration": 4082, "src": "3866:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -11317,34 +11317,34 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4098, + "id": 4096, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "3878:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4101, + "id": 4099, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4099, + "id": 4097, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "3889:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4100, + "id": 4098, "isConstant": false, "isLValue": false, "isPure": false, @@ -11369,14 +11369,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4103, + "id": 4101, "indexExpression": { "argumentTypes": null, - "id": 4102, + "id": 4100, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4084, + "referencedDeclaration": 4082, "src": "3901:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -11396,11 +11396,11 @@ }, { "argumentTypes": null, - "id": 4104, + "id": 4102, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4086, + "referencedDeclaration": 4084, "src": "3907:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11419,18 +11419,18 @@ "typeString": "uint256" } ], - "id": 4097, + "id": 4095, "name": "badd", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1017, + "referencedDeclaration": 1001, "src": "3873:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 4105, + "id": 4103, "isConstant": false, "isLValue": false, "isPure": false, @@ -11450,7 +11450,7 @@ "typeString": "uint256" } }, - "id": 4107, + "id": 4105, "nodeType": "ExpressionStatement", "src": "3843:68:7" }, @@ -11462,18 +11462,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4109, + "id": 4107, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "3935:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4110, + "id": 4108, "isConstant": false, "isLValue": false, "isPure": false, @@ -11489,11 +11489,11 @@ }, { "argumentTypes": null, - "id": 4111, + "id": 4109, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4084, + "referencedDeclaration": 4082, "src": "3947:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -11506,34 +11506,34 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4112, + "id": 4110, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "3952:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4115, + "id": 4113, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4113, + "id": 4111, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "3963:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4114, + "id": 4112, "isConstant": false, "isLValue": false, "isPure": false, @@ -11558,14 +11558,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4117, + "id": 4115, "indexExpression": { "argumentTypes": null, - "id": 4116, + "id": 4114, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4084, + "referencedDeclaration": 4082, "src": "3975:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -11599,20 +11599,20 @@ "typeString": "uint256" } ], - "id": 4108, + "id": 4106, "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6777 + 6536 ], - "referencedDeclaration": 6777, + "referencedDeclaration": 6536, "src": "3926:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 4118, + "id": 4116, "isConstant": false, "isLValue": false, "isPure": false, @@ -11626,7 +11626,7 @@ "typeString": "tuple()" } }, - "id": 4119, + "id": 4117, "nodeType": "EmitStatement", "src": "3921:59:7" }, @@ -11634,7 +11634,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 4120, + "id": 4118, "isConstant": false, "isLValue": false, "isPure": true, @@ -11649,30 +11649,30 @@ }, "value": "true" }, - "functionReturnParameters": 4090, - "id": 4121, + "functionReturnParameters": 4088, + "id": 4119, "nodeType": "Return", "src": "3990:11:7" } ] }, "documentation": null, - "id": 4123, + "id": 4121, "implemented": true, "kind": "function", "modifiers": [], "name": "increaseApproval", "nodeType": "FunctionDefinition", "parameters": { - "id": 4087, + "id": 4085, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4084, + "id": 4082, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 4123, + "scope": 4121, "src": "3786:11:7", "stateVariable": false, "storageLocation": "default", @@ -11681,7 +11681,7 @@ "typeString": "address" }, "typeName": { - "id": 4083, + "id": 4081, "name": "address", "nodeType": "ElementaryTypeName", "src": "3786:7:7", @@ -11696,10 +11696,10 @@ }, { "constant": false, - "id": 4086, + "id": 4084, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 4123, + "scope": 4121, "src": "3799:8:7", "stateVariable": false, "storageLocation": "default", @@ -11708,7 +11708,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4085, + "id": 4083, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3799:4:7", @@ -11724,15 +11724,15 @@ "src": "3785:23:7" }, "returnParameters": { - "id": 4090, + "id": 4088, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4089, + "id": 4087, "name": "", "nodeType": "VariableDeclaration", - "scope": 4123, + "scope": 4121, "src": "3827:4:7", "stateVariable": false, "storageLocation": "default", @@ -11741,7 +11741,7 @@ "typeString": "bool" }, "typeName": { - "id": 4088, + "id": 4086, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3827:4:7", @@ -11756,7 +11756,7 @@ ], "src": "3826:6:7" }, - "scope": 4287, + "scope": 4285, "src": "3760:248:7", "stateMutability": "nonpayable", "superFunction": null, @@ -11764,21 +11764,21 @@ }, { "body": { - "id": 4182, + "id": 4180, "nodeType": "Block", "src": "4087:315:7", "statements": [ { "assignments": [ - 4133 + 4131 ], "declarations": [ { "constant": false, - "id": 4133, + "id": 4131, "name": "oldValue", "nodeType": "VariableDeclaration", - "scope": 4182, + "scope": 4180, "src": "4097:13:7", "stateVariable": false, "storageLocation": "default", @@ -11787,7 +11787,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4132, + "id": 4130, "name": "uint", "nodeType": "ElementaryTypeName", "src": "4097:4:7", @@ -11800,41 +11800,41 @@ "visibility": "internal" } ], - "id": 4140, + "id": 4138, "initialValue": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4134, + "id": 4132, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4113:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4137, + "id": 4135, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4135, + "id": 4133, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4124:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4136, + "id": 4134, "isConstant": false, "isLValue": false, "isPure": false, @@ -11859,14 +11859,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4139, + "id": 4137, "indexExpression": { "argumentTypes": null, - "id": 4138, + "id": 4136, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4125, + "referencedDeclaration": 4123, "src": "4136:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -11894,18 +11894,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 4143, + "id": 4141, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 4141, + "id": 4139, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4127, + "referencedDeclaration": 4125, "src": "4154:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11916,11 +11916,11 @@ "operator": ">", "rightExpression": { "argumentTypes": null, - "id": 4142, + "id": 4140, "name": "oldValue", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4133, + "referencedDeclaration": 4131, "src": "4160:8:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11934,14 +11934,14 @@ } }, "falseBody": { - "id": 4166, + "id": 4164, "nodeType": "Block", "src": "4232:74:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4164, + "id": 4162, "isConstant": false, "isLValue": false, "isPure": false, @@ -11952,34 +11952,34 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4154, + "id": 4152, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4246:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4158, + "id": 4156, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4155, + "id": 4153, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4257:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4156, + "id": 4154, "isConstant": false, "isLValue": false, "isPure": false, @@ -12004,14 +12004,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4159, + "id": 4157, "indexExpression": { "argumentTypes": null, - "id": 4157, + "id": 4155, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4125, + "referencedDeclaration": 4123, "src": "4269:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -12036,11 +12036,11 @@ "arguments": [ { "argumentTypes": null, - "id": 4161, + "id": 4159, "name": "oldValue", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4133, + "referencedDeclaration": 4131, "src": "4281:8:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12049,11 +12049,11 @@ }, { "argumentTypes": null, - "id": 4162, + "id": 4160, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4127, + "referencedDeclaration": 4125, "src": "4291:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12072,18 +12072,18 @@ "typeString": "uint256" } ], - "id": 4160, + "id": 4158, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "4276:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 4163, + "id": 4161, "isConstant": false, "isLValue": false, "isPure": false, @@ -12103,24 +12103,24 @@ "typeString": "uint256" } }, - "id": 4165, + "id": 4163, "nodeType": "ExpressionStatement", "src": "4246:49:7" } ] }, - "id": 4167, + "id": 4165, "nodeType": "IfStatement", "src": "4150:156:7", "trueBody": { - "id": 4153, + "id": 4151, "nodeType": "Block", "src": "4170:56:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4151, + "id": 4149, "isConstant": false, "isLValue": false, "isPure": false, @@ -12131,34 +12131,34 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4144, + "id": 4142, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4184:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4148, + "id": 4146, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4145, + "id": 4143, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4195:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4146, + "id": 4144, "isConstant": false, "isLValue": false, "isPure": false, @@ -12183,14 +12183,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4149, + "id": 4147, "indexExpression": { "argumentTypes": null, - "id": 4147, + "id": 4145, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4125, + "referencedDeclaration": 4123, "src": "4207:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -12213,7 +12213,7 @@ "rightHandSide": { "argumentTypes": null, "hexValue": "30", - "id": 4150, + "id": 4148, "isConstant": false, "isLValue": false, "isPure": true, @@ -12234,7 +12234,7 @@ "typeString": "uint256" } }, - "id": 4152, + "id": 4150, "nodeType": "ExpressionStatement", "src": "4184:31:7" } @@ -12249,18 +12249,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4169, + "id": 4167, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4329:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4170, + "id": 4168, "isConstant": false, "isLValue": false, "isPure": false, @@ -12276,11 +12276,11 @@ }, { "argumentTypes": null, - "id": 4171, + "id": 4169, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4125, + "referencedDeclaration": 4123, "src": "4341:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -12293,34 +12293,34 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4172, + "id": 4170, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4346:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4175, + "id": 4173, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4173, + "id": 4171, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4357:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4174, + "id": 4172, "isConstant": false, "isLValue": false, "isPure": false, @@ -12345,14 +12345,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4177, + "id": 4175, "indexExpression": { "argumentTypes": null, - "id": 4176, + "id": 4174, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4125, + "referencedDeclaration": 4123, "src": "4369:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -12386,20 +12386,20 @@ "typeString": "uint256" } ], - "id": 4168, + "id": 4166, "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6777 + 6536 ], - "referencedDeclaration": 6777, + "referencedDeclaration": 6536, "src": "4320:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 4178, + "id": 4176, "isConstant": false, "isLValue": false, "isPure": false, @@ -12413,7 +12413,7 @@ "typeString": "tuple()" } }, - "id": 4179, + "id": 4177, "nodeType": "EmitStatement", "src": "4315:59:7" }, @@ -12421,7 +12421,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 4180, + "id": 4178, "isConstant": false, "isLValue": false, "isPure": true, @@ -12436,30 +12436,30 @@ }, "value": "true" }, - "functionReturnParameters": 4131, - "id": 4181, + "functionReturnParameters": 4129, + "id": 4179, "nodeType": "Return", "src": "4384:11:7" } ] }, "documentation": null, - "id": 4183, + "id": 4181, "implemented": true, "kind": "function", "modifiers": [], "name": "decreaseApproval", "nodeType": "FunctionDefinition", "parameters": { - "id": 4128, + "id": 4126, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4125, + "id": 4123, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 4183, + "scope": 4181, "src": "4040:11:7", "stateVariable": false, "storageLocation": "default", @@ -12468,7 +12468,7 @@ "typeString": "address" }, "typeName": { - "id": 4124, + "id": 4122, "name": "address", "nodeType": "ElementaryTypeName", "src": "4040:7:7", @@ -12483,10 +12483,10 @@ }, { "constant": false, - "id": 4127, + "id": 4125, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 4183, + "scope": 4181, "src": "4053:8:7", "stateVariable": false, "storageLocation": "default", @@ -12495,7 +12495,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4126, + "id": 4124, "name": "uint", "nodeType": "ElementaryTypeName", "src": "4053:4:7", @@ -12511,15 +12511,15 @@ "src": "4039:23:7" }, "returnParameters": { - "id": 4131, + "id": 4129, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4130, + "id": 4128, "name": "", "nodeType": "VariableDeclaration", - "scope": 4183, + "scope": 4181, "src": "4081:4:7", "stateVariable": false, "storageLocation": "default", @@ -12528,7 +12528,7 @@ "typeString": "bool" }, "typeName": { - "id": 4129, + "id": 4127, "name": "bool", "nodeType": "ElementaryTypeName", "src": "4081:4:7", @@ -12543,7 +12543,7 @@ ], "src": "4080:6:7" }, - "scope": 4287, + "scope": 4285, "src": "4014:388:7", "stateMutability": "nonpayable", "superFunction": null, @@ -12551,7 +12551,7 @@ }, { "body": { - "id": 4201, + "id": 4199, "nodeType": "Block", "src": "4473:65:7", "statements": [ @@ -12563,18 +12563,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4193, + "id": 4191, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4489:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4194, + "id": 4192, "isConstant": false, "isLValue": false, "isPure": false, @@ -12590,11 +12590,11 @@ }, { "argumentTypes": null, - "id": 4195, + "id": 4193, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4185, + "referencedDeclaration": 4183, "src": "4501:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -12603,11 +12603,11 @@ }, { "argumentTypes": null, - "id": 4196, + "id": 4194, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4187, + "referencedDeclaration": 4185, "src": "4506:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12630,18 +12630,18 @@ "typeString": "uint256" } ], - "id": 4192, + "id": 4190, "name": "_move", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3948, + "referencedDeclaration": 3946, "src": "4483:5:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 4197, + "id": 4195, "isConstant": false, "isLValue": false, "isPure": false, @@ -12655,7 +12655,7 @@ "typeString": "tuple()" } }, - "id": 4198, + "id": 4196, "nodeType": "ExpressionStatement", "src": "4483:27:7" }, @@ -12663,7 +12663,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 4199, + "id": 4197, "isConstant": false, "isLValue": false, "isPure": true, @@ -12678,30 +12678,30 @@ }, "value": "true" }, - "functionReturnParameters": 4191, - "id": 4200, + "functionReturnParameters": 4189, + "id": 4198, "nodeType": "Return", "src": "4520:11:7" } ] }, "documentation": null, - "id": 4202, + "id": 4200, "implemented": true, "kind": "function", "modifiers": [], "name": "transfer", "nodeType": "FunctionDefinition", "parameters": { - "id": 4188, + "id": 4186, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4185, + "id": 4183, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 4202, + "scope": 4200, "src": "4426:11:7", "stateVariable": false, "storageLocation": "default", @@ -12710,7 +12710,7 @@ "typeString": "address" }, "typeName": { - "id": 4184, + "id": 4182, "name": "address", "nodeType": "ElementaryTypeName", "src": "4426:7:7", @@ -12725,10 +12725,10 @@ }, { "constant": false, - "id": 4187, + "id": 4185, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 4202, + "scope": 4200, "src": "4439:8:7", "stateVariable": false, "storageLocation": "default", @@ -12737,7 +12737,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4186, + "id": 4184, "name": "uint", "nodeType": "ElementaryTypeName", "src": "4439:4:7", @@ -12753,15 +12753,15 @@ "src": "4425:23:7" }, "returnParameters": { - "id": 4191, + "id": 4189, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4190, + "id": 4188, "name": "", "nodeType": "VariableDeclaration", - "scope": 4202, + "scope": 4200, "src": "4467:4:7", "stateVariable": false, "storageLocation": "default", @@ -12770,7 +12770,7 @@ "typeString": "bool" }, "typeName": { - "id": 4189, + "id": 4187, "name": "bool", "nodeType": "ElementaryTypeName", "src": "4467:4:7", @@ -12785,15 +12785,15 @@ ], "src": "4466:6:7" }, - "scope": 4287, + "scope": 4285, "src": "4408:130:7", "stateMutability": "nonpayable", - "superFunction": 6732, + "superFunction": 6491, "visibility": "external" }, { "body": { - "id": 4285, + "id": 4283, "nodeType": "Block", "src": "4673:436:7", "statements": [ @@ -12807,7 +12807,7 @@ "typeIdentifier": "t_bool", "typeString": "bool" }, - "id": 4226, + "id": 4224, "isConstant": false, "isLValue": false, "isPure": false, @@ -12818,7 +12818,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 4217, + "id": 4215, "isConstant": false, "isLValue": false, "isPure": false, @@ -12827,18 +12827,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4214, + "id": 4212, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4704:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4215, + "id": 4213, "isConstant": false, "isLValue": false, "isPure": false, @@ -12856,11 +12856,11 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 4216, + "id": 4214, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "4718:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -12881,18 +12881,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 4225, + "id": 4223, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 4218, + "id": 4216, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4208, + "referencedDeclaration": 4206, "src": "4725:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12907,25 +12907,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4219, + "id": 4217, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4732:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4221, + "id": 4219, "indexExpression": { "argumentTypes": null, - "id": 4220, + "id": 4218, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "4743:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -12943,23 +12943,23 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4224, + "id": 4222, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4222, + "id": 4220, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4748:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4223, + "id": 4221, "isConstant": false, "isLValue": false, "isPure": false, @@ -12999,7 +12999,7 @@ { "argumentTypes": null, "hexValue": "4552525f42544f4b454e5f4241445f43414c4c4552", - "id": 4227, + "id": 4225, "isConstant": false, "isLValue": false, "isPure": true, @@ -13026,21 +13026,21 @@ "typeString": "literal_string \"ERR_BTOKEN_BAD_CALLER\"" } ], - "id": 4213, + "id": 4211, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "4683:7:7", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 4228, + "id": 4226, "isConstant": false, "isLValue": false, "isPure": false, @@ -13054,7 +13054,7 @@ "typeString": "tuple()" } }, - "id": 4229, + "id": 4227, "nodeType": "ExpressionStatement", "src": "4683:124:7" }, @@ -13064,11 +13064,11 @@ "arguments": [ { "argumentTypes": null, - "id": 4231, + "id": 4229, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "4823:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -13077,11 +13077,11 @@ }, { "argumentTypes": null, - "id": 4232, + "id": 4230, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4206, + "referencedDeclaration": 4204, "src": "4828:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -13090,11 +13090,11 @@ }, { "argumentTypes": null, - "id": 4233, + "id": 4231, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4208, + "referencedDeclaration": 4206, "src": "4833:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13117,18 +13117,18 @@ "typeString": "uint256" } ], - "id": 4230, + "id": 4228, "name": "_move", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3948, + "referencedDeclaration": 3946, "src": "4817:5:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 4234, + "id": 4232, "isConstant": false, "isLValue": false, "isPure": false, @@ -13142,7 +13142,7 @@ "typeString": "tuple()" } }, - "id": 4235, + "id": 4233, "nodeType": "ExpressionStatement", "src": "4817:20:7" }, @@ -13153,7 +13153,7 @@ "typeIdentifier": "t_bool", "typeString": "bool" }, - "id": 4251, + "id": 4249, "isConstant": false, "isLValue": false, "isPure": false, @@ -13164,7 +13164,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 4239, + "id": 4237, "isConstant": false, "isLValue": false, "isPure": false, @@ -13173,18 +13173,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4236, + "id": 4234, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4851:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4237, + "id": 4235, "isConstant": false, "isLValue": false, "isPure": false, @@ -13202,11 +13202,11 @@ "operator": "!=", "rightExpression": { "argumentTypes": null, - "id": 4238, + "id": 4236, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "4865:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -13227,7 +13227,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 4250, + "id": 4248, "isConstant": false, "isLValue": false, "isPure": false, @@ -13238,25 +13238,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4240, + "id": 4238, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4872:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4242, + "id": 4240, "indexExpression": { "argumentTypes": null, - "id": 4241, + "id": 4239, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "4883:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -13274,23 +13274,23 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4245, + "id": 4243, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4243, + "id": 4241, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4888:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4244, + "id": 4242, "isConstant": false, "isLValue": false, "isPure": false, @@ -13322,7 +13322,7 @@ "arguments": [ { "argumentTypes": null, - "id": 4248, + "id": 4246, "isConstant": false, "isLValue": false, "isPure": true, @@ -13334,7 +13334,7 @@ "subExpression": { "argumentTypes": null, "hexValue": "31", - "id": 4247, + "id": 4245, "isConstant": false, "isLValue": false, "isPure": true, @@ -13362,7 +13362,7 @@ "typeString": "int_const -1" } ], - "id": 4246, + "id": 4244, "isConstant": false, "isLValue": false, "isPure": true, @@ -13375,7 +13375,7 @@ }, "typeName": "uint256" }, - "id": 4249, + "id": 4247, "isConstant": false, "isLValue": false, "isPure": true, @@ -13402,18 +13402,18 @@ } }, "falseBody": null, - "id": 4282, + "id": 4280, "nodeType": "IfStatement", "src": "4847:235:7", "trueBody": { - "id": 4281, + "id": 4279, "nodeType": "Block", "src": "4916:166:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4267, + "id": 4265, "isConstant": false, "isLValue": false, "isPure": false, @@ -13424,25 +13424,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4252, + "id": 4250, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4930:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4256, + "id": 4254, "indexExpression": { "argumentTypes": null, - "id": 4253, + "id": 4251, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "4941:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -13460,23 +13460,23 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4257, + "id": 4255, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4254, + "id": 4252, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4946:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4255, + "id": 4253, "isConstant": false, "isLValue": false, "isPure": false, @@ -13512,25 +13512,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4259, + "id": 4257, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4965:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4261, + "id": 4259, "indexExpression": { "argumentTypes": null, - "id": 4260, + "id": 4258, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "4976:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -13548,23 +13548,23 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4264, + "id": 4262, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4262, + "id": 4260, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4981:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4263, + "id": 4261, "isConstant": false, "isLValue": false, "isPure": false, @@ -13591,11 +13591,11 @@ }, { "argumentTypes": null, - "id": 4265, + "id": 4263, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4208, + "referencedDeclaration": 4206, "src": "4994:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13614,18 +13614,18 @@ "typeString": "uint256" } ], - "id": 4258, + "id": 4256, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "4960:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 4266, + "id": 4264, "isConstant": false, "isLValue": false, "isPure": false, @@ -13645,7 +13645,7 @@ "typeString": "uint256" } }, - "id": 4268, + "id": 4266, "nodeType": "ExpressionStatement", "src": "4930:68:7" }, @@ -13657,18 +13657,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4270, + "id": 4268, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "5026:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4271, + "id": 4269, "isConstant": false, "isLValue": false, "isPure": false, @@ -13684,11 +13684,11 @@ }, { "argumentTypes": null, - "id": 4272, + "id": 4270, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4206, + "referencedDeclaration": 4204, "src": "5038:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -13701,25 +13701,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4273, + "id": 4271, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "5043:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4275, + "id": 4273, "indexExpression": { "argumentTypes": null, - "id": 4274, + "id": 4272, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "5054:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -13737,23 +13737,23 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4278, + "id": 4276, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4276, + "id": 4274, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "5059:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4277, + "id": 4275, "isConstant": false, "isLValue": false, "isPure": false, @@ -13794,20 +13794,20 @@ "typeString": "uint256" } ], - "id": 4269, + "id": 4267, "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6777 + 6536 ], - "referencedDeclaration": 6777, + "referencedDeclaration": 6536, "src": "5017:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 4279, + "id": 4277, "isConstant": false, "isLValue": false, "isPure": false, @@ -13821,7 +13821,7 @@ "typeString": "tuple()" } }, - "id": 4280, + "id": 4278, "nodeType": "EmitStatement", "src": "5012:59:7" } @@ -13832,7 +13832,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 4283, + "id": 4281, "isConstant": false, "isLValue": false, "isPure": true, @@ -13847,30 +13847,30 @@ }, "value": "true" }, - "functionReturnParameters": 4212, - "id": 4284, + "functionReturnParameters": 4210, + "id": 4282, "nodeType": "Return", "src": "5091:11:7" } ] }, "documentation": null, - "id": 4286, + "id": 4284, "implemented": true, "kind": "function", "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { - "id": 4209, + "id": 4207, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4204, + "id": 4202, "name": "src", "nodeType": "VariableDeclaration", - "scope": 4286, + "scope": 4284, "src": "4575:11:7", "stateVariable": false, "storageLocation": "default", @@ -13879,7 +13879,7 @@ "typeString": "address" }, "typeName": { - "id": 4203, + "id": 4201, "name": "address", "nodeType": "ElementaryTypeName", "src": "4575:7:7", @@ -13894,10 +13894,10 @@ }, { "constant": false, - "id": 4206, + "id": 4204, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 4286, + "scope": 4284, "src": "4597:11:7", "stateVariable": false, "storageLocation": "default", @@ -13906,7 +13906,7 @@ "typeString": "address" }, "typeName": { - "id": 4205, + "id": 4203, "name": "address", "nodeType": "ElementaryTypeName", "src": "4597:7:7", @@ -13921,10 +13921,10 @@ }, { "constant": false, - "id": 4208, + "id": 4206, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 4286, + "scope": 4284, "src": "4619:8:7", "stateVariable": false, "storageLocation": "default", @@ -13933,7 +13933,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4207, + "id": 4205, "name": "uint", "nodeType": "ElementaryTypeName", "src": "4619:4:7", @@ -13949,15 +13949,15 @@ "src": "4565:68:7" }, "returnParameters": { - "id": 4212, + "id": 4210, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4211, + "id": 4209, "name": "", "nodeType": "VariableDeclaration", - "scope": 4286, + "scope": 4284, "src": "4662:4:7", "stateVariable": false, "storageLocation": "default", @@ -13966,7 +13966,7 @@ "typeString": "bool" }, "typeName": { - "id": 4210, + "id": 4208, "name": "bool", "nodeType": "ElementaryTypeName", "src": "4662:4:7", @@ -13981,14 +13981,14 @@ ], "src": "4661:6:7" }, - "scope": 4287, + "scope": 4285, "src": "4544:565:7", "stateMutability": "nonpayable", - "superFunction": 6761, + "superFunction": 6520, "visibility": "external" } ], - "scope": 4288, + "scope": 4286, "src": "2812:2299:7" } ], @@ -14000,7 +14000,7 @@ }, "networks": {}, "schemaVersion": "3.2.0", - "updatedAt": "2020-09-11T10:54:21.660Z", + "updatedAt": "2020-10-02T11:33:45.761Z", "devdoc": { "methods": {} }, diff --git a/artifacts/BTokenBase.json b/artifacts/BTokenBase.json index 7624f5599..90bef151b 100644 --- a/artifacts/BTokenBase.json +++ b/artifacts/BTokenBase.json @@ -281,17 +281,17 @@ "absolutePath": "/ocean/ocean-contracts/contracts/balancer/BToken.sol", "exportedSymbols": { "BToken": [ - 4287 + 4285 ], "BTokenBase": [ - 3981 + 3979 ] }, - "id": 4288, + "id": 4286, "nodeType": "SourceUnit", "nodes": [ { - "id": 3782, + "id": 3780, "literals": [ "solidity", "0.5", @@ -303,10 +303,10 @@ { "absolutePath": "/ocean/ocean-contracts/contracts/balancer/BNum.sol", "file": "./BNum.sol", - "id": 3783, + "id": 3781, "nodeType": "ImportDirective", - "scope": 4288, - "sourceUnit": 1439, + "scope": 4286, + "sourceUnit": 1423, "src": "667:20:7", "symbolAliases": [], "unitAlias": "" @@ -314,10 +314,10 @@ { "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol", "file": "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol", - "id": 3784, + "id": 3782, "nodeType": "ImportDirective", - "scope": 4288, - "sourceUnit": 6779, + "scope": 4286, + "sourceUnit": 6538, "src": "688:64:7", "symbolAliases": [], "unitAlias": "" @@ -328,43 +328,43 @@ "arguments": null, "baseName": { "contractScope": null, - "id": 3785, + "id": 3783, "name": "BNum", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 1438, + "referencedDeclaration": 1422, "src": "1468:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BNum_$1438", + "typeIdentifier": "t_contract$_BNum_$1422", "typeString": "contract BNum" } }, - "id": 3786, + "id": 3784, "nodeType": "InheritanceSpecifier", "src": "1468:4:7" } ], "contractDependencies": [ - 284, - 1438 + 280, + 1422 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, - "id": 3981, + "id": 3979, "linearizedBaseContracts": [ - 3981, - 1438, - 284 + 3979, + 1422, + 280 ], "name": "BTokenBase", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, - "id": 3790, + "id": 3788, "name": "_balance", "nodeType": "VariableDeclaration", - "scope": 3981, + "scope": 3979, "src": "1480:60:7", "stateVariable": true, "storageLocation": "default", @@ -373,9 +373,9 @@ "typeString": "mapping(address => uint256)" }, "typeName": { - "id": 3789, + "id": 3787, "keyType": { - "id": 3787, + "id": 3785, "name": "address", "nodeType": "ElementaryTypeName", "src": "1488:7:7", @@ -391,7 +391,7 @@ "typeString": "mapping(address => uint256)" }, "valueType": { - "id": 3788, + "id": 3786, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1499:4:7", @@ -406,10 +406,10 @@ }, { "constant": false, - "id": 3796, + "id": 3794, "name": "_allowance", "nodeType": "VariableDeclaration", - "scope": 3981, + "scope": 3979, "src": "1546:62:7", "stateVariable": true, "storageLocation": "default", @@ -418,9 +418,9 @@ "typeString": "mapping(address => mapping(address => uint256))" }, "typeName": { - "id": 3795, + "id": 3793, "keyType": { - "id": 3791, + "id": 3789, "name": "address", "nodeType": "ElementaryTypeName", "src": "1554:7:7", @@ -436,9 +436,9 @@ "typeString": "mapping(address => mapping(address => uint256))" }, "valueType": { - "id": 3794, + "id": 3792, "keyType": { - "id": 3792, + "id": 3790, "name": "address", "nodeType": "ElementaryTypeName", "src": "1573:7:7", @@ -454,7 +454,7 @@ "typeString": "mapping(address => uint256)" }, "valueType": { - "id": 3793, + "id": 3791, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1582:4:7", @@ -470,10 +470,10 @@ }, { "constant": false, - "id": 3798, + "id": 3796, "name": "_totalSupply", "nodeType": "VariableDeclaration", - "scope": 3981, + "scope": 3979, "src": "1614:26:7", "stateVariable": true, "storageLocation": "default", @@ -482,7 +482,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3797, + "id": 3795, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1614:4:7", @@ -497,20 +497,20 @@ { "anonymous": false, "documentation": null, - "id": 3806, + "id": 3804, "name": "Approval", "nodeType": "EventDefinition", "parameters": { - "id": 3805, + "id": 3803, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3800, + "id": 3798, "indexed": true, "name": "src", "nodeType": "VariableDeclaration", - "scope": 3806, + "scope": 3804, "src": "1662:19:7", "stateVariable": false, "storageLocation": "default", @@ -519,7 +519,7 @@ "typeString": "address" }, "typeName": { - "id": 3799, + "id": 3797, "name": "address", "nodeType": "ElementaryTypeName", "src": "1662:7:7", @@ -534,11 +534,11 @@ }, { "constant": false, - "id": 3802, + "id": 3800, "indexed": true, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 3806, + "scope": 3804, "src": "1683:19:7", "stateVariable": false, "storageLocation": "default", @@ -547,7 +547,7 @@ "typeString": "address" }, "typeName": { - "id": 3801, + "id": 3799, "name": "address", "nodeType": "ElementaryTypeName", "src": "1683:7:7", @@ -562,11 +562,11 @@ }, { "constant": false, - "id": 3804, + "id": 3802, "indexed": false, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 3806, + "scope": 3804, "src": "1704:8:7", "stateVariable": false, "storageLocation": "default", @@ -575,7 +575,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3803, + "id": 3801, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1704:4:7", @@ -595,20 +595,20 @@ { "anonymous": false, "documentation": null, - "id": 3814, + "id": 3812, "name": "Transfer", "nodeType": "EventDefinition", "parameters": { - "id": 3813, + "id": 3811, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3808, + "id": 3806, "indexed": true, "name": "src", "nodeType": "VariableDeclaration", - "scope": 3814, + "scope": 3812, "src": "1734:19:7", "stateVariable": false, "storageLocation": "default", @@ -617,7 +617,7 @@ "typeString": "address" }, "typeName": { - "id": 3807, + "id": 3805, "name": "address", "nodeType": "ElementaryTypeName", "src": "1734:7:7", @@ -632,11 +632,11 @@ }, { "constant": false, - "id": 3810, + "id": 3808, "indexed": true, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 3814, + "scope": 3812, "src": "1755:19:7", "stateVariable": false, "storageLocation": "default", @@ -645,7 +645,7 @@ "typeString": "address" }, "typeName": { - "id": 3809, + "id": 3807, "name": "address", "nodeType": "ElementaryTypeName", "src": "1755:7:7", @@ -660,11 +660,11 @@ }, { "constant": false, - "id": 3812, + "id": 3810, "indexed": false, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 3814, + "scope": 3812, "src": "1776:8:7", "stateVariable": false, "storageLocation": "default", @@ -673,7 +673,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3811, + "id": 3809, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1776:4:7", @@ -692,14 +692,14 @@ }, { "body": { - "id": 3851, + "id": 3849, "nodeType": "Block", "src": "1826:180:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 3832, + "id": 3830, "isConstant": false, "isLValue": false, "isPure": false, @@ -708,31 +708,31 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3819, + "id": 3817, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "1836:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3823, + "id": 3821, "indexExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 3821, + "id": 3819, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "1853:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -740,11 +740,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3820, + "id": 3818, "isConstant": false, "isLValue": false, "isPure": true, @@ -757,7 +757,7 @@ }, "typeName": "address" }, - "id": 3822, + "id": 3820, "isConstant": false, "isLValue": false, "isPure": false, @@ -791,31 +791,31 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3825, + "id": 3823, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "1867:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3829, + "id": 3827, "indexExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 3827, + "id": 3825, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "1884:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -823,11 +823,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3826, + "id": 3824, "isConstant": false, "isLValue": false, "isPure": true, @@ -840,7 +840,7 @@ }, "typeName": "address" }, - "id": 3828, + "id": 3826, "isConstant": false, "isLValue": false, "isPure": false, @@ -867,11 +867,11 @@ }, { "argumentTypes": null, - "id": 3830, + "id": 3828, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3816, + "referencedDeclaration": 3814, "src": "1892:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -890,18 +890,18 @@ "typeString": "uint256" } ], - "id": 3824, + "id": 3822, "name": "badd", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1017, + "referencedDeclaration": 1001, "src": "1862:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 3831, + "id": 3829, "isConstant": false, "isLValue": false, "isPure": false, @@ -921,25 +921,25 @@ "typeString": "uint256" } }, - "id": 3833, + "id": 3831, "nodeType": "ExpressionStatement", "src": "1836:60:7" }, { "expression": { "argumentTypes": null, - "id": 3839, + "id": 3837, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 3834, + "id": 3832, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3798, + "referencedDeclaration": 3796, "src": "1906:12:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -953,11 +953,11 @@ "arguments": [ { "argumentTypes": null, - "id": 3836, + "id": 3834, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3798, + "referencedDeclaration": 3796, "src": "1926:12:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -966,11 +966,11 @@ }, { "argumentTypes": null, - "id": 3837, + "id": 3835, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3816, + "referencedDeclaration": 3814, "src": "1940:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -989,18 +989,18 @@ "typeString": "uint256" } ], - "id": 3835, + "id": 3833, "name": "badd", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1017, + "referencedDeclaration": 1001, "src": "1921:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 3838, + "id": 3836, "isConstant": false, "isLValue": false, "isPure": false, @@ -1020,7 +1020,7 @@ "typeString": "uint256" } }, - "id": 3840, + "id": 3838, "nodeType": "ExpressionStatement", "src": "1906:38:7" }, @@ -1034,7 +1034,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 3843, + "id": 3841, "isConstant": false, "isLValue": false, "isPure": true, @@ -1057,7 +1057,7 @@ "typeString": "int_const 0" } ], - "id": 3842, + "id": 3840, "isConstant": false, "isLValue": false, "isPure": true, @@ -1070,7 +1070,7 @@ }, "typeName": "address" }, - "id": 3844, + "id": 3842, "isConstant": false, "isLValue": false, "isPure": true, @@ -1089,14 +1089,14 @@ "arguments": [ { "argumentTypes": null, - "id": 3846, + "id": 3844, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "1988:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -1104,11 +1104,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3845, + "id": 3843, "isConstant": false, "isLValue": false, "isPure": true, @@ -1121,7 +1121,7 @@ }, "typeName": "address" }, - "id": 3847, + "id": 3845, "isConstant": false, "isLValue": false, "isPure": false, @@ -1137,11 +1137,11 @@ }, { "argumentTypes": null, - "id": 3848, + "id": 3846, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3816, + "referencedDeclaration": 3814, "src": "1995:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1164,18 +1164,18 @@ "typeString": "uint256" } ], - "id": 3841, + "id": 3839, "name": "Transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3814, + "referencedDeclaration": 3812, "src": "1959:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 3849, + "id": 3847, "isConstant": false, "isLValue": false, "isPure": false, @@ -1189,29 +1189,29 @@ "typeString": "tuple()" } }, - "id": 3850, + "id": 3848, "nodeType": "EmitStatement", "src": "1954:45:7" } ] }, "documentation": null, - "id": 3852, + "id": 3850, "implemented": true, "kind": "function", "modifiers": [], "name": "_mint", "nodeType": "FunctionDefinition", "parameters": { - "id": 3817, + "id": 3815, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3816, + "id": 3814, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 3852, + "scope": 3850, "src": "1807:8:7", "stateVariable": false, "storageLocation": "default", @@ -1220,7 +1220,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3815, + "id": 3813, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1807:4:7", @@ -1236,12 +1236,12 @@ "src": "1806:10:7" }, "returnParameters": { - "id": 3818, + "id": 3816, "nodeType": "ParameterList", "parameters": [], "src": "1826:0:7" }, - "scope": 3981, + "scope": 3979, "src": "1792:214:7", "stateMutability": "nonpayable", "superFunction": null, @@ -1249,7 +1249,7 @@ }, { "body": { - "id": 3900, + "id": 3898, "nodeType": "Block", "src": "2046:288:7", "statements": [ @@ -1263,7 +1263,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 3864, + "id": 3862, "isConstant": false, "isLValue": false, "isPure": false, @@ -1272,31 +1272,31 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3858, + "id": 3856, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2077:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3862, + "id": 3860, "indexExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 3860, + "id": 3858, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "2094:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -1304,11 +1304,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3859, + "id": 3857, "isConstant": false, "isLValue": false, "isPure": true, @@ -1321,7 +1321,7 @@ }, "typeName": "address" }, - "id": 3861, + "id": 3859, "isConstant": false, "isLValue": false, "isPure": false, @@ -1350,11 +1350,11 @@ "operator": ">=", "rightExpression": { "argumentTypes": null, - "id": 3863, + "id": 3861, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3854, + "referencedDeclaration": 3852, "src": "2104:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1370,7 +1370,7 @@ { "argumentTypes": null, "hexValue": "4552525f494e53554646494349454e545f42414c", - "id": 3865, + "id": 3863, "isConstant": false, "isLValue": false, "isPure": true, @@ -1397,21 +1397,21 @@ "typeString": "literal_string \"ERR_INSUFFICIENT_BAL\"" } ], - "id": 3857, + "id": 3855, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "2056:7:7", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 3866, + "id": 3864, "isConstant": false, "isLValue": false, "isPure": false, @@ -1425,14 +1425,14 @@ "typeString": "tuple()" } }, - "id": 3867, + "id": 3865, "nodeType": "ExpressionStatement", "src": "2056:98:7" }, { "expression": { "argumentTypes": null, - "id": 3881, + "id": 3879, "isConstant": false, "isLValue": false, "isPure": false, @@ -1441,31 +1441,31 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3868, + "id": 3866, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2164:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3872, + "id": 3870, "indexExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 3870, + "id": 3868, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "2181:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -1473,11 +1473,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3869, + "id": 3867, "isConstant": false, "isLValue": false, "isPure": true, @@ -1490,7 +1490,7 @@ }, "typeName": "address" }, - "id": 3871, + "id": 3869, "isConstant": false, "isLValue": false, "isPure": false, @@ -1524,31 +1524,31 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3874, + "id": 3872, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2195:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3878, + "id": 3876, "indexExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 3876, + "id": 3874, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "2212:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -1556,11 +1556,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3875, + "id": 3873, "isConstant": false, "isLValue": false, "isPure": true, @@ -1573,7 +1573,7 @@ }, "typeName": "address" }, - "id": 3877, + "id": 3875, "isConstant": false, "isLValue": false, "isPure": false, @@ -1600,11 +1600,11 @@ }, { "argumentTypes": null, - "id": 3879, + "id": 3877, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3854, + "referencedDeclaration": 3852, "src": "2220:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1623,18 +1623,18 @@ "typeString": "uint256" } ], - "id": 3873, + "id": 3871, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "2190:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 3880, + "id": 3878, "isConstant": false, "isLValue": false, "isPure": false, @@ -1654,25 +1654,25 @@ "typeString": "uint256" } }, - "id": 3882, + "id": 3880, "nodeType": "ExpressionStatement", "src": "2164:60:7" }, { "expression": { "argumentTypes": null, - "id": 3888, + "id": 3886, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 3883, + "id": 3881, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3798, + "referencedDeclaration": 3796, "src": "2234:12:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1686,11 +1686,11 @@ "arguments": [ { "argumentTypes": null, - "id": 3885, + "id": 3883, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3798, + "referencedDeclaration": 3796, "src": "2254:12:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1699,11 +1699,11 @@ }, { "argumentTypes": null, - "id": 3886, + "id": 3884, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3854, + "referencedDeclaration": 3852, "src": "2268:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1722,18 +1722,18 @@ "typeString": "uint256" } ], - "id": 3884, + "id": 3882, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "2249:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 3887, + "id": 3885, "isConstant": false, "isLValue": false, "isPure": false, @@ -1753,7 +1753,7 @@ "typeString": "uint256" } }, - "id": 3889, + "id": 3887, "nodeType": "ExpressionStatement", "src": "2234:38:7" }, @@ -1766,14 +1766,14 @@ "arguments": [ { "argumentTypes": null, - "id": 3892, + "id": 3890, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "2304:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -1781,11 +1781,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3891, + "id": 3889, "isConstant": false, "isLValue": false, "isPure": true, @@ -1798,7 +1798,7 @@ }, "typeName": "address" }, - "id": 3893, + "id": 3891, "isConstant": false, "isLValue": false, "isPure": false, @@ -1818,7 +1818,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 3895, + "id": 3893, "isConstant": false, "isLValue": false, "isPure": true, @@ -1841,7 +1841,7 @@ "typeString": "int_const 0" } ], - "id": 3894, + "id": 3892, "isConstant": false, "isLValue": false, "isPure": true, @@ -1854,7 +1854,7 @@ }, "typeName": "address" }, - "id": 3896, + "id": 3894, "isConstant": false, "isLValue": false, "isPure": true, @@ -1870,11 +1870,11 @@ }, { "argumentTypes": null, - "id": 3897, + "id": 3895, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3854, + "referencedDeclaration": 3852, "src": "2323:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -1897,18 +1897,18 @@ "typeString": "uint256" } ], - "id": 3890, + "id": 3888, "name": "Transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3814, + "referencedDeclaration": 3812, "src": "2287:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 3898, + "id": 3896, "isConstant": false, "isLValue": false, "isPure": false, @@ -1922,29 +1922,29 @@ "typeString": "tuple()" } }, - "id": 3899, + "id": 3897, "nodeType": "EmitStatement", "src": "2282:45:7" } ] }, "documentation": null, - "id": 3901, + "id": 3899, "implemented": true, "kind": "function", "modifiers": [], "name": "_burn", "nodeType": "FunctionDefinition", "parameters": { - "id": 3855, + "id": 3853, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3854, + "id": 3852, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 3901, + "scope": 3899, "src": "2027:8:7", "stateVariable": false, "storageLocation": "default", @@ -1953,7 +1953,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3853, + "id": 3851, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2027:4:7", @@ -1969,12 +1969,12 @@ "src": "2026:10:7" }, "returnParameters": { - "id": 3856, + "id": 3854, "nodeType": "ParameterList", "parameters": [], "src": "2046:0:7" }, - "scope": 3981, + "scope": 3979, "src": "2012:322:7", "stateMutability": "nonpayable", "superFunction": null, @@ -1982,7 +1982,7 @@ }, { "body": { - "id": 3947, + "id": 3945, "nodeType": "Block", "src": "2400:208:7", "statements": [ @@ -1996,7 +1996,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 3915, + "id": 3913, "isConstant": false, "isLValue": false, "isPure": false, @@ -2005,25 +2005,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3911, + "id": 3909, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2418:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3913, + "id": 3911, "indexExpression": { "argumentTypes": null, - "id": 3912, + "id": 3910, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3903, + "referencedDeclaration": 3901, "src": "2427:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2045,11 +2045,11 @@ "operator": ">=", "rightExpression": { "argumentTypes": null, - "id": 3914, + "id": 3912, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3907, + "referencedDeclaration": 3905, "src": "2435:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2065,7 +2065,7 @@ { "argumentTypes": null, "hexValue": "4552525f494e53554646494349454e545f42414c", - "id": 3916, + "id": 3914, "isConstant": false, "isLValue": false, "isPure": true, @@ -2092,21 +2092,21 @@ "typeString": "literal_string \"ERR_INSUFFICIENT_BAL\"" } ], - "id": 3910, + "id": 3908, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "2410:7:7", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 3917, + "id": 3915, "isConstant": false, "isLValue": false, "isPure": false, @@ -2120,14 +2120,14 @@ "typeString": "tuple()" } }, - "id": 3918, + "id": 3916, "nodeType": "ExpressionStatement", "src": "2410:53:7" }, { "expression": { "argumentTypes": null, - "id": 3928, + "id": 3926, "isConstant": false, "isLValue": false, "isPure": false, @@ -2136,25 +2136,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3919, + "id": 3917, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2473:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3921, + "id": 3919, "indexExpression": { "argumentTypes": null, - "id": 3920, + "id": 3918, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3903, + "referencedDeclaration": 3901, "src": "2482:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2181,25 +2181,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3923, + "id": 3921, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2494:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3925, + "id": 3923, "indexExpression": { "argumentTypes": null, - "id": 3924, + "id": 3922, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3903, + "referencedDeclaration": 3901, "src": "2503:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2219,11 +2219,11 @@ }, { "argumentTypes": null, - "id": 3926, + "id": 3924, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3907, + "referencedDeclaration": 3905, "src": "2509:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2242,18 +2242,18 @@ "typeString": "uint256" } ], - "id": 3922, + "id": 3920, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "2489:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 3927, + "id": 3925, "isConstant": false, "isLValue": false, "isPure": false, @@ -2273,14 +2273,14 @@ "typeString": "uint256" } }, - "id": 3929, + "id": 3927, "nodeType": "ExpressionStatement", "src": "2473:40:7" }, { "expression": { "argumentTypes": null, - "id": 3939, + "id": 3937, "isConstant": false, "isLValue": false, "isPure": false, @@ -2289,25 +2289,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3930, + "id": 3928, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2523:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3932, + "id": 3930, "indexExpression": { "argumentTypes": null, - "id": 3931, + "id": 3929, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3905, + "referencedDeclaration": 3903, "src": "2532:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2334,25 +2334,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3934, + "id": 3932, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2544:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3936, + "id": 3934, "indexExpression": { "argumentTypes": null, - "id": 3935, + "id": 3933, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3905, + "referencedDeclaration": 3903, "src": "2553:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2372,11 +2372,11 @@ }, { "argumentTypes": null, - "id": 3937, + "id": 3935, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3907, + "referencedDeclaration": 3905, "src": "2559:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2395,18 +2395,18 @@ "typeString": "uint256" } ], - "id": 3933, + "id": 3931, "name": "badd", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1017, + "referencedDeclaration": 1001, "src": "2539:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 3938, + "id": 3936, "isConstant": false, "isLValue": false, "isPure": false, @@ -2426,7 +2426,7 @@ "typeString": "uint256" } }, - "id": 3940, + "id": 3938, "nodeType": "ExpressionStatement", "src": "2523:40:7" }, @@ -2436,11 +2436,11 @@ "arguments": [ { "argumentTypes": null, - "id": 3942, + "id": 3940, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3903, + "referencedDeclaration": 3901, "src": "2587:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2449,11 +2449,11 @@ }, { "argumentTypes": null, - "id": 3943, + "id": 3941, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3905, + "referencedDeclaration": 3903, "src": "2592:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2462,11 +2462,11 @@ }, { "argumentTypes": null, - "id": 3944, + "id": 3942, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3907, + "referencedDeclaration": 3905, "src": "2597:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2489,18 +2489,18 @@ "typeString": "uint256" } ], - "id": 3941, + "id": 3939, "name": "Transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3814, + "referencedDeclaration": 3812, "src": "2578:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 3945, + "id": 3943, "isConstant": false, "isLValue": false, "isPure": false, @@ -2514,29 +2514,29 @@ "typeString": "tuple()" } }, - "id": 3946, + "id": 3944, "nodeType": "EmitStatement", "src": "2573:28:7" } ] }, "documentation": null, - "id": 3948, + "id": 3946, "implemented": true, "kind": "function", "modifiers": [], "name": "_move", "nodeType": "FunctionDefinition", "parameters": { - "id": 3908, + "id": 3906, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3903, + "id": 3901, "name": "src", "nodeType": "VariableDeclaration", - "scope": 3948, + "scope": 3946, "src": "2355:11:7", "stateVariable": false, "storageLocation": "default", @@ -2545,7 +2545,7 @@ "typeString": "address" }, "typeName": { - "id": 3902, + "id": 3900, "name": "address", "nodeType": "ElementaryTypeName", "src": "2355:7:7", @@ -2560,10 +2560,10 @@ }, { "constant": false, - "id": 3905, + "id": 3903, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 3948, + "scope": 3946, "src": "2368:11:7", "stateVariable": false, "storageLocation": "default", @@ -2572,7 +2572,7 @@ "typeString": "address" }, "typeName": { - "id": 3904, + "id": 3902, "name": "address", "nodeType": "ElementaryTypeName", "src": "2368:7:7", @@ -2587,10 +2587,10 @@ }, { "constant": false, - "id": 3907, + "id": 3905, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 3948, + "scope": 3946, "src": "2381:8:7", "stateVariable": false, "storageLocation": "default", @@ -2599,7 +2599,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3906, + "id": 3904, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2381:4:7", @@ -2615,12 +2615,12 @@ "src": "2354:36:7" }, "returnParameters": { - "id": 3909, + "id": 3907, "nodeType": "ParameterList", "parameters": [], "src": "2400:0:7" }, - "scope": 3981, + "scope": 3979, "src": "2340:268:7", "stateMutability": "nonpayable", "superFunction": null, @@ -2628,7 +2628,7 @@ }, { "body": { - "id": 3963, + "id": 3961, "nodeType": "Block", "src": "2660:46:7", "statements": [ @@ -2641,14 +2641,14 @@ "arguments": [ { "argumentTypes": null, - "id": 3957, + "id": 3955, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "2684:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -2656,11 +2656,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3956, + "id": 3954, "isConstant": false, "isLValue": false, "isPure": true, @@ -2673,7 +2673,7 @@ }, "typeName": "address" }, - "id": 3958, + "id": 3956, "isConstant": false, "isLValue": false, "isPure": false, @@ -2689,11 +2689,11 @@ }, { "argumentTypes": null, - "id": 3959, + "id": 3957, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3950, + "referencedDeclaration": 3948, "src": "2691:2:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2702,11 +2702,11 @@ }, { "argumentTypes": null, - "id": 3960, + "id": 3958, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3952, + "referencedDeclaration": 3950, "src": "2695:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2729,18 +2729,18 @@ "typeString": "uint256" } ], - "id": 3955, + "id": 3953, "name": "_move", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3948, + "referencedDeclaration": 3946, "src": "2670:5:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 3961, + "id": 3959, "isConstant": false, "isLValue": false, "isPure": false, @@ -2754,29 +2754,29 @@ "typeString": "tuple()" } }, - "id": 3962, + "id": 3960, "nodeType": "ExpressionStatement", "src": "2670:29:7" } ] }, "documentation": null, - "id": 3964, + "id": 3962, "implemented": true, "kind": "function", "modifiers": [], "name": "_push", "nodeType": "FunctionDefinition", "parameters": { - "id": 3953, + "id": 3951, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3950, + "id": 3948, "name": "to", "nodeType": "VariableDeclaration", - "scope": 3964, + "scope": 3962, "src": "2629:10:7", "stateVariable": false, "storageLocation": "default", @@ -2785,7 +2785,7 @@ "typeString": "address" }, "typeName": { - "id": 3949, + "id": 3947, "name": "address", "nodeType": "ElementaryTypeName", "src": "2629:7:7", @@ -2800,10 +2800,10 @@ }, { "constant": false, - "id": 3952, + "id": 3950, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 3964, + "scope": 3962, "src": "2641:8:7", "stateVariable": false, "storageLocation": "default", @@ -2812,7 +2812,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3951, + "id": 3949, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2641:4:7", @@ -2828,12 +2828,12 @@ "src": "2628:22:7" }, "returnParameters": { - "id": 3954, + "id": 3952, "nodeType": "ParameterList", "parameters": [], "src": "2660:0:7" }, - "scope": 3981, + "scope": 3979, "src": "2614:92:7", "stateMutability": "nonpayable", "superFunction": null, @@ -2841,7 +2841,7 @@ }, { "body": { - "id": 3979, + "id": 3977, "nodeType": "Block", "src": "2760:48:7", "statements": [ @@ -2851,11 +2851,11 @@ "arguments": [ { "argumentTypes": null, - "id": 3972, + "id": 3970, "name": "from", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3966, + "referencedDeclaration": 3964, "src": "2776:4:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2867,14 +2867,14 @@ "arguments": [ { "argumentTypes": null, - "id": 3974, + "id": 3972, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "2790:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -2882,11 +2882,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3973, + "id": 3971, "isConstant": false, "isLValue": false, "isPure": true, @@ -2899,7 +2899,7 @@ }, "typeName": "address" }, - "id": 3975, + "id": 3973, "isConstant": false, "isLValue": false, "isPure": false, @@ -2915,11 +2915,11 @@ }, { "argumentTypes": null, - "id": 3976, + "id": 3974, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3968, + "referencedDeclaration": 3966, "src": "2797:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -2942,18 +2942,18 @@ "typeString": "uint256" } ], - "id": 3971, + "id": 3969, "name": "_move", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3948, + "referencedDeclaration": 3946, "src": "2770:5:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 3977, + "id": 3975, "isConstant": false, "isLValue": false, "isPure": false, @@ -2967,29 +2967,29 @@ "typeString": "tuple()" } }, - "id": 3978, + "id": 3976, "nodeType": "ExpressionStatement", "src": "2770:31:7" } ] }, "documentation": null, - "id": 3980, + "id": 3978, "implemented": true, "kind": "function", "modifiers": [], "name": "_pull", "nodeType": "FunctionDefinition", "parameters": { - "id": 3969, + "id": 3967, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3966, + "id": 3964, "name": "from", "nodeType": "VariableDeclaration", - "scope": 3980, + "scope": 3978, "src": "2727:12:7", "stateVariable": false, "storageLocation": "default", @@ -2998,7 +2998,7 @@ "typeString": "address" }, "typeName": { - "id": 3965, + "id": 3963, "name": "address", "nodeType": "ElementaryTypeName", "src": "2727:7:7", @@ -3013,10 +3013,10 @@ }, { "constant": false, - "id": 3968, + "id": 3966, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 3980, + "scope": 3978, "src": "2741:8:7", "stateVariable": false, "storageLocation": "default", @@ -3025,7 +3025,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3967, + "id": 3965, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2741:4:7", @@ -3041,19 +3041,19 @@ "src": "2726:24:7" }, "returnParameters": { - "id": 3970, + "id": 3968, "nodeType": "ParameterList", "parameters": [], "src": "2760:0:7" }, - "scope": 3981, + "scope": 3979, "src": "2712:96:7", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" } ], - "scope": 4288, + "scope": 4286, "src": "1445:1365:7" }, { @@ -3062,17 +3062,17 @@ "arguments": null, "baseName": { "contractScope": null, - "id": 3982, + "id": 3980, "name": "BTokenBase", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 3981, + "referencedDeclaration": 3979, "src": "2831:10:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } }, - "id": 3983, + "id": 3981, "nodeType": "InheritanceSpecifier", "src": "2831:10:7" }, @@ -3080,47 +3080,47 @@ "arguments": null, "baseName": { "contractScope": null, - "id": 3984, + "id": 3982, "name": "IERC20", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 6778, + "referencedDeclaration": 6537, "src": "2843:6:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_IERC20_$6778", + "typeIdentifier": "t_contract$_IERC20_$6537", "typeString": "contract IERC20" } }, - "id": 3985, + "id": 3983, "nodeType": "InheritanceSpecifier", "src": "2843:6:7" } ], "contractDependencies": [ - 284, - 1438, - 3981, - 6778 + 280, + 1422, + 3979, + 6537 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, - "id": 4287, + "id": 4285, "linearizedBaseContracts": [ - 4287, - 6778, - 3981, - 1438, - 284 + 4285, + 6537, + 3979, + 1422, + 280 ], "name": "BToken", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, - "id": 3988, + "id": 3986, "name": "_name", "nodeType": "VariableDeclaration", - "scope": 4287, + "scope": 4285, "src": "2857:49:7", "stateVariable": true, "storageLocation": "default", @@ -3129,7 +3129,7 @@ "typeString": "string" }, "typeName": { - "id": 3986, + "id": 3984, "name": "string", "nodeType": "ElementaryTypeName", "src": "2857:6:7", @@ -3141,7 +3141,7 @@ "value": { "argumentTypes": null, "hexValue": "42616c616e63657220506f6f6c20546f6b656e", - "id": 3987, + "id": 3985, "isConstant": false, "isLValue": false, "isPure": true, @@ -3160,10 +3160,10 @@ }, { "constant": false, - "id": 3991, + "id": 3989, "name": "_symbol", "nodeType": "VariableDeclaration", - "scope": 4287, + "scope": 4285, "src": "2912:33:7", "stateVariable": true, "storageLocation": "default", @@ -3172,7 +3172,7 @@ "typeString": "string" }, "typeName": { - "id": 3989, + "id": 3987, "name": "string", "nodeType": "ElementaryTypeName", "src": "2912:6:7", @@ -3184,7 +3184,7 @@ "value": { "argumentTypes": null, "hexValue": "425054", - "id": 3990, + "id": 3988, "isConstant": false, "isLValue": false, "isPure": true, @@ -3203,10 +3203,10 @@ }, { "constant": false, - "id": 3994, + "id": 3992, "name": "_decimals", "nodeType": "VariableDeclaration", - "scope": 4287, + "scope": 4285, "src": "2951:30:7", "stateVariable": true, "storageLocation": "default", @@ -3215,7 +3215,7 @@ "typeString": "uint8" }, "typeName": { - "id": 3992, + "id": 3990, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "2951:5:7", @@ -3227,7 +3227,7 @@ "value": { "argumentTypes": null, "hexValue": "3138", - "id": 3993, + "id": 3991, "isConstant": false, "isLValue": false, "isPure": true, @@ -3246,54 +3246,54 @@ }, { "body": { - "id": 4001, + "id": 3999, "nodeType": "Block", "src": "3040:29:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 3999, + "id": 3997, "name": "_name", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3988, + "referencedDeclaration": 3986, "src": "3057:5:7", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, - "functionReturnParameters": 3998, - "id": 4000, + "functionReturnParameters": 3996, + "id": 3998, "nodeType": "Return", "src": "3050:12:7" } ] }, "documentation": null, - "id": 4002, + "id": 4000, "implemented": true, "kind": "function", "modifiers": [], "name": "name", "nodeType": "FunctionDefinition", "parameters": { - "id": 3995, + "id": 3993, "nodeType": "ParameterList", "parameters": [], "src": "3001:2:7" }, "returnParameters": { - "id": 3998, + "id": 3996, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3997, + "id": 3995, "name": "", "nodeType": "VariableDeclaration", - "scope": 4002, + "scope": 4000, "src": "3025:13:7", "stateVariable": false, "storageLocation": "memory", @@ -3302,7 +3302,7 @@ "typeString": "string" }, "typeName": { - "id": 3996, + "id": 3994, "name": "string", "nodeType": "ElementaryTypeName", "src": "3025:6:7", @@ -3317,7 +3317,7 @@ ], "src": "3024:15:7" }, - "scope": 4287, + "scope": 4285, "src": "2988:81:7", "stateMutability": "view", "superFunction": null, @@ -3325,54 +3325,54 @@ }, { "body": { - "id": 4009, + "id": 4007, "nodeType": "Block", "src": "3129:31:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4007, + "id": 4005, "name": "_symbol", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3991, + "referencedDeclaration": 3989, "src": "3146:7:7", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, - "functionReturnParameters": 4006, - "id": 4008, + "functionReturnParameters": 4004, + "id": 4006, "nodeType": "Return", "src": "3139:14:7" } ] }, "documentation": null, - "id": 4010, + "id": 4008, "implemented": true, "kind": "function", "modifiers": [], "name": "symbol", "nodeType": "FunctionDefinition", "parameters": { - "id": 4003, + "id": 4001, "nodeType": "ParameterList", "parameters": [], "src": "3090:2:7" }, "returnParameters": { - "id": 4006, + "id": 4004, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4005, + "id": 4003, "name": "", "nodeType": "VariableDeclaration", - "scope": 4010, + "scope": 4008, "src": "3114:13:7", "stateVariable": false, "storageLocation": "memory", @@ -3381,7 +3381,7 @@ "typeString": "string" }, "typeName": { - "id": 4004, + "id": 4002, "name": "string", "nodeType": "ElementaryTypeName", "src": "3114:6:7", @@ -3396,7 +3396,7 @@ ], "src": "3113:15:7" }, - "scope": 4287, + "scope": 4285, "src": "3075:85:7", "stateMutability": "view", "superFunction": null, @@ -3404,54 +3404,54 @@ }, { "body": { - "id": 4017, + "id": 4015, "nodeType": "Block", "src": "3213:33:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4015, + "id": 4013, "name": "_decimals", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3994, + "referencedDeclaration": 3992, "src": "3230:9:7", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, - "functionReturnParameters": 4014, - "id": 4016, + "functionReturnParameters": 4012, + "id": 4014, "nodeType": "Return", "src": "3223:16:7" } ] }, "documentation": null, - "id": 4018, + "id": 4016, "implemented": true, "kind": "function", "modifiers": [], "name": "decimals", "nodeType": "FunctionDefinition", "parameters": { - "id": 4011, + "id": 4009, "nodeType": "ParameterList", "parameters": [], "src": "3183:2:7" }, "returnParameters": { - "id": 4014, + "id": 4012, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4013, + "id": 4011, "name": "", "nodeType": "VariableDeclaration", - "scope": 4018, + "scope": 4016, "src": "3206:5:7", "stateVariable": false, "storageLocation": "default", @@ -3460,7 +3460,7 @@ "typeString": "uint8" }, "typeName": { - "id": 4012, + "id": 4010, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "3206:5:7", @@ -3475,7 +3475,7 @@ ], "src": "3205:7:7" }, - "scope": 4287, + "scope": 4285, "src": "3166:80:7", "stateMutability": "view", "superFunction": null, @@ -3483,7 +3483,7 @@ }, { "body": { - "id": 4033, + "id": 4031, "nodeType": "Block", "src": "3326:44:7", "statements": [ @@ -3494,25 +3494,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4027, + "id": 4025, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "3343:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4029, + "id": 4027, "indexExpression": { "argumentTypes": null, - "id": 4028, + "id": 4026, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4020, + "referencedDeclaration": 4018, "src": "3354:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -3530,14 +3530,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4031, + "id": 4029, "indexExpression": { "argumentTypes": null, - "id": 4030, + "id": 4028, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4022, + "referencedDeclaration": 4020, "src": "3359:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -3555,30 +3555,30 @@ "typeString": "uint256" } }, - "functionReturnParameters": 4026, - "id": 4032, + "functionReturnParameters": 4024, + "id": 4030, "nodeType": "Return", "src": "3336:27:7" } ] }, "documentation": null, - "id": 4034, + "id": 4032, "implemented": true, "kind": "function", "modifiers": [], "name": "allowance", "nodeType": "FunctionDefinition", "parameters": { - "id": 4023, + "id": 4021, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4020, + "id": 4018, "name": "src", "nodeType": "VariableDeclaration", - "scope": 4034, + "scope": 4032, "src": "3271:11:7", "stateVariable": false, "storageLocation": "default", @@ -3587,7 +3587,7 @@ "typeString": "address" }, "typeName": { - "id": 4019, + "id": 4017, "name": "address", "nodeType": "ElementaryTypeName", "src": "3271:7:7", @@ -3602,10 +3602,10 @@ }, { "constant": false, - "id": 4022, + "id": 4020, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 4034, + "scope": 4032, "src": "3284:11:7", "stateVariable": false, "storageLocation": "default", @@ -3614,7 +3614,7 @@ "typeString": "address" }, "typeName": { - "id": 4021, + "id": 4019, "name": "address", "nodeType": "ElementaryTypeName", "src": "3284:7:7", @@ -3631,15 +3631,15 @@ "src": "3270:26:7" }, "returnParameters": { - "id": 4026, + "id": 4024, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4025, + "id": 4023, "name": "", "nodeType": "VariableDeclaration", - "scope": 4034, + "scope": 4032, "src": "3320:4:7", "stateVariable": false, "storageLocation": "default", @@ -3648,7 +3648,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4024, + "id": 4022, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3320:4:7", @@ -3663,15 +3663,15 @@ ], "src": "3319:6:7" }, - "scope": 4287, + "scope": 4285, "src": "3252:118:7", "stateMutability": "view", - "superFunction": 6741, + "superFunction": 6500, "visibility": "external" }, { "body": { - "id": 4045, + "id": 4043, "nodeType": "Block", "src": "3438:38:7", "statements": [ @@ -3680,25 +3680,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4041, + "id": 4039, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "3455:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 4043, + "id": 4041, "indexExpression": { "argumentTypes": null, - "id": 4042, + "id": 4040, "name": "whom", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4036, + "referencedDeclaration": 4034, "src": "3464:4:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -3716,30 +3716,30 @@ "typeString": "uint256" } }, - "functionReturnParameters": 4040, - "id": 4044, + "functionReturnParameters": 4038, + "id": 4042, "nodeType": "Return", "src": "3448:21:7" } ] }, "documentation": null, - "id": 4046, + "id": 4044, "implemented": true, "kind": "function", "modifiers": [], "name": "balanceOf", "nodeType": "FunctionDefinition", "parameters": { - "id": 4037, + "id": 4035, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4036, + "id": 4034, "name": "whom", "nodeType": "VariableDeclaration", - "scope": 4046, + "scope": 4044, "src": "3395:12:7", "stateVariable": false, "storageLocation": "default", @@ -3748,7 +3748,7 @@ "typeString": "address" }, "typeName": { - "id": 4035, + "id": 4033, "name": "address", "nodeType": "ElementaryTypeName", "src": "3395:7:7", @@ -3765,15 +3765,15 @@ "src": "3394:14:7" }, "returnParameters": { - "id": 4040, + "id": 4038, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4039, + "id": 4037, "name": "", "nodeType": "VariableDeclaration", - "scope": 4046, + "scope": 4044, "src": "3432:4:7", "stateVariable": false, "storageLocation": "default", @@ -3782,7 +3782,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4038, + "id": 4036, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3432:4:7", @@ -3797,62 +3797,62 @@ ], "src": "3431:6:7" }, - "scope": 4287, + "scope": 4285, "src": "3376:100:7", "stateMutability": "view", - "superFunction": 6723, + "superFunction": 6482, "visibility": "external" }, { "body": { - "id": 4053, + "id": 4051, "nodeType": "Block", "src": "3532:36:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4051, + "id": 4049, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3798, + "referencedDeclaration": 3796, "src": "3549:12:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 4050, - "id": 4052, + "functionReturnParameters": 4048, + "id": 4050, "nodeType": "Return", "src": "3542:19:7" } ] }, "documentation": null, - "id": 4054, + "id": 4052, "implemented": true, "kind": "function", "modifiers": [], "name": "totalSupply", "nodeType": "FunctionDefinition", "parameters": { - "id": 4047, + "id": 4045, "nodeType": "ParameterList", "parameters": [], "src": "3502:2:7" }, "returnParameters": { - "id": 4050, + "id": 4048, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4049, + "id": 4047, "name": "", "nodeType": "VariableDeclaration", - "scope": 4054, + "scope": 4052, "src": "3526:4:7", "stateVariable": false, "storageLocation": "default", @@ -3861,7 +3861,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4048, + "id": 4046, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3526:4:7", @@ -3876,22 +3876,22 @@ ], "src": "3525:6:7" }, - "scope": 4287, + "scope": 4285, "src": "3482:86:7", "stateMutability": "view", - "superFunction": 6716, + "superFunction": 6475, "visibility": "public" }, { "body": { - "id": 4081, + "id": 4079, "nodeType": "Block", "src": "3638:116:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4070, + "id": 4068, "isConstant": false, "isLValue": false, "isPure": false, @@ -3902,34 +3902,34 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4063, + "id": 4061, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "3648:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4067, + "id": 4065, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4064, + "id": 4062, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "3659:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4065, + "id": 4063, "isConstant": false, "isLValue": false, "isPure": false, @@ -3954,14 +3954,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4068, + "id": 4066, "indexExpression": { "argumentTypes": null, - "id": 4066, + "id": 4064, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4056, + "referencedDeclaration": 4054, "src": "3671:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -3983,11 +3983,11 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 4069, + "id": 4067, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4058, + "referencedDeclaration": 4056, "src": "3678:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4000,7 +4000,7 @@ "typeString": "uint256" } }, - "id": 4071, + "id": 4069, "nodeType": "ExpressionStatement", "src": "3648:33:7" }, @@ -4012,18 +4012,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4073, + "id": 4071, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "3705:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4074, + "id": 4072, "isConstant": false, "isLValue": false, "isPure": false, @@ -4039,11 +4039,11 @@ }, { "argumentTypes": null, - "id": 4075, + "id": 4073, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4056, + "referencedDeclaration": 4054, "src": "3717:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -4052,11 +4052,11 @@ }, { "argumentTypes": null, - "id": 4076, + "id": 4074, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4058, + "referencedDeclaration": 4056, "src": "3722:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4079,20 +4079,20 @@ "typeString": "uint256" } ], - "id": 4072, + "id": 4070, "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6777 + 6536 ], - "referencedDeclaration": 6777, + "referencedDeclaration": 6536, "src": "3696:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 4077, + "id": 4075, "isConstant": false, "isLValue": false, "isPure": false, @@ -4106,7 +4106,7 @@ "typeString": "tuple()" } }, - "id": 4078, + "id": 4076, "nodeType": "EmitStatement", "src": "3691:35:7" }, @@ -4114,7 +4114,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 4079, + "id": 4077, "isConstant": false, "isLValue": false, "isPure": true, @@ -4129,30 +4129,30 @@ }, "value": "true" }, - "functionReturnParameters": 4062, - "id": 4080, + "functionReturnParameters": 4060, + "id": 4078, "nodeType": "Return", "src": "3736:11:7" } ] }, "documentation": null, - "id": 4082, + "id": 4080, "implemented": true, "kind": "function", "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { - "id": 4059, + "id": 4057, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4056, + "id": 4054, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 4082, + "scope": 4080, "src": "3591:11:7", "stateVariable": false, "storageLocation": "default", @@ -4161,7 +4161,7 @@ "typeString": "address" }, "typeName": { - "id": 4055, + "id": 4053, "name": "address", "nodeType": "ElementaryTypeName", "src": "3591:7:7", @@ -4176,10 +4176,10 @@ }, { "constant": false, - "id": 4058, + "id": 4056, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 4082, + "scope": 4080, "src": "3604:8:7", "stateVariable": false, "storageLocation": "default", @@ -4188,7 +4188,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4057, + "id": 4055, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3604:4:7", @@ -4204,15 +4204,15 @@ "src": "3590:23:7" }, "returnParameters": { - "id": 4062, + "id": 4060, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4061, + "id": 4059, "name": "", "nodeType": "VariableDeclaration", - "scope": 4082, + "scope": 4080, "src": "3632:4:7", "stateVariable": false, "storageLocation": "default", @@ -4221,7 +4221,7 @@ "typeString": "bool" }, "typeName": { - "id": 4060, + "id": 4058, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3632:4:7", @@ -4236,22 +4236,22 @@ ], "src": "3631:6:7" }, - "scope": 4287, + "scope": 4285, "src": "3574:180:7", "stateMutability": "nonpayable", - "superFunction": 6750, + "superFunction": 6509, "visibility": "external" }, { "body": { - "id": 4122, + "id": 4120, "nodeType": "Block", "src": "3833:175:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4106, + "id": 4104, "isConstant": false, "isLValue": false, "isPure": false, @@ -4262,34 +4262,34 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4091, + "id": 4089, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "3843:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4095, + "id": 4093, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4092, + "id": 4090, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "3854:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4093, + "id": 4091, "isConstant": false, "isLValue": false, "isPure": false, @@ -4314,14 +4314,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4096, + "id": 4094, "indexExpression": { "argumentTypes": null, - "id": 4094, + "id": 4092, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4084, + "referencedDeclaration": 4082, "src": "3866:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -4350,34 +4350,34 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4098, + "id": 4096, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "3878:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4101, + "id": 4099, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4099, + "id": 4097, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "3889:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4100, + "id": 4098, "isConstant": false, "isLValue": false, "isPure": false, @@ -4402,14 +4402,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4103, + "id": 4101, "indexExpression": { "argumentTypes": null, - "id": 4102, + "id": 4100, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4084, + "referencedDeclaration": 4082, "src": "3901:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -4429,11 +4429,11 @@ }, { "argumentTypes": null, - "id": 4104, + "id": 4102, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4086, + "referencedDeclaration": 4084, "src": "3907:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4452,18 +4452,18 @@ "typeString": "uint256" } ], - "id": 4097, + "id": 4095, "name": "badd", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1017, + "referencedDeclaration": 1001, "src": "3873:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 4105, + "id": 4103, "isConstant": false, "isLValue": false, "isPure": false, @@ -4483,7 +4483,7 @@ "typeString": "uint256" } }, - "id": 4107, + "id": 4105, "nodeType": "ExpressionStatement", "src": "3843:68:7" }, @@ -4495,18 +4495,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4109, + "id": 4107, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "3935:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4110, + "id": 4108, "isConstant": false, "isLValue": false, "isPure": false, @@ -4522,11 +4522,11 @@ }, { "argumentTypes": null, - "id": 4111, + "id": 4109, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4084, + "referencedDeclaration": 4082, "src": "3947:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -4539,34 +4539,34 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4112, + "id": 4110, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "3952:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4115, + "id": 4113, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4113, + "id": 4111, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "3963:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4114, + "id": 4112, "isConstant": false, "isLValue": false, "isPure": false, @@ -4591,14 +4591,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4117, + "id": 4115, "indexExpression": { "argumentTypes": null, - "id": 4116, + "id": 4114, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4084, + "referencedDeclaration": 4082, "src": "3975:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -4632,20 +4632,20 @@ "typeString": "uint256" } ], - "id": 4108, + "id": 4106, "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6777 + 6536 ], - "referencedDeclaration": 6777, + "referencedDeclaration": 6536, "src": "3926:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 4118, + "id": 4116, "isConstant": false, "isLValue": false, "isPure": false, @@ -4659,7 +4659,7 @@ "typeString": "tuple()" } }, - "id": 4119, + "id": 4117, "nodeType": "EmitStatement", "src": "3921:59:7" }, @@ -4667,7 +4667,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 4120, + "id": 4118, "isConstant": false, "isLValue": false, "isPure": true, @@ -4682,30 +4682,30 @@ }, "value": "true" }, - "functionReturnParameters": 4090, - "id": 4121, + "functionReturnParameters": 4088, + "id": 4119, "nodeType": "Return", "src": "3990:11:7" } ] }, "documentation": null, - "id": 4123, + "id": 4121, "implemented": true, "kind": "function", "modifiers": [], "name": "increaseApproval", "nodeType": "FunctionDefinition", "parameters": { - "id": 4087, + "id": 4085, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4084, + "id": 4082, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 4123, + "scope": 4121, "src": "3786:11:7", "stateVariable": false, "storageLocation": "default", @@ -4714,7 +4714,7 @@ "typeString": "address" }, "typeName": { - "id": 4083, + "id": 4081, "name": "address", "nodeType": "ElementaryTypeName", "src": "3786:7:7", @@ -4729,10 +4729,10 @@ }, { "constant": false, - "id": 4086, + "id": 4084, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 4123, + "scope": 4121, "src": "3799:8:7", "stateVariable": false, "storageLocation": "default", @@ -4741,7 +4741,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4085, + "id": 4083, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3799:4:7", @@ -4757,15 +4757,15 @@ "src": "3785:23:7" }, "returnParameters": { - "id": 4090, + "id": 4088, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4089, + "id": 4087, "name": "", "nodeType": "VariableDeclaration", - "scope": 4123, + "scope": 4121, "src": "3827:4:7", "stateVariable": false, "storageLocation": "default", @@ -4774,7 +4774,7 @@ "typeString": "bool" }, "typeName": { - "id": 4088, + "id": 4086, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3827:4:7", @@ -4789,7 +4789,7 @@ ], "src": "3826:6:7" }, - "scope": 4287, + "scope": 4285, "src": "3760:248:7", "stateMutability": "nonpayable", "superFunction": null, @@ -4797,21 +4797,21 @@ }, { "body": { - "id": 4182, + "id": 4180, "nodeType": "Block", "src": "4087:315:7", "statements": [ { "assignments": [ - 4133 + 4131 ], "declarations": [ { "constant": false, - "id": 4133, + "id": 4131, "name": "oldValue", "nodeType": "VariableDeclaration", - "scope": 4182, + "scope": 4180, "src": "4097:13:7", "stateVariable": false, "storageLocation": "default", @@ -4820,7 +4820,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4132, + "id": 4130, "name": "uint", "nodeType": "ElementaryTypeName", "src": "4097:4:7", @@ -4833,41 +4833,41 @@ "visibility": "internal" } ], - "id": 4140, + "id": 4138, "initialValue": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4134, + "id": 4132, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4113:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4137, + "id": 4135, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4135, + "id": 4133, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4124:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4136, + "id": 4134, "isConstant": false, "isLValue": false, "isPure": false, @@ -4892,14 +4892,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4139, + "id": 4137, "indexExpression": { "argumentTypes": null, - "id": 4138, + "id": 4136, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4125, + "referencedDeclaration": 4123, "src": "4136:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -4927,18 +4927,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 4143, + "id": 4141, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 4141, + "id": 4139, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4127, + "referencedDeclaration": 4125, "src": "4154:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4949,11 +4949,11 @@ "operator": ">", "rightExpression": { "argumentTypes": null, - "id": 4142, + "id": 4140, "name": "oldValue", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4133, + "referencedDeclaration": 4131, "src": "4160:8:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -4967,14 +4967,14 @@ } }, "falseBody": { - "id": 4166, + "id": 4164, "nodeType": "Block", "src": "4232:74:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4164, + "id": 4162, "isConstant": false, "isLValue": false, "isPure": false, @@ -4985,34 +4985,34 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4154, + "id": 4152, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4246:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4158, + "id": 4156, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4155, + "id": 4153, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4257:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4156, + "id": 4154, "isConstant": false, "isLValue": false, "isPure": false, @@ -5037,14 +5037,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4159, + "id": 4157, "indexExpression": { "argumentTypes": null, - "id": 4157, + "id": 4155, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4125, + "referencedDeclaration": 4123, "src": "4269:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -5069,11 +5069,11 @@ "arguments": [ { "argumentTypes": null, - "id": 4161, + "id": 4159, "name": "oldValue", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4133, + "referencedDeclaration": 4131, "src": "4281:8:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5082,11 +5082,11 @@ }, { "argumentTypes": null, - "id": 4162, + "id": 4160, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4127, + "referencedDeclaration": 4125, "src": "4291:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5105,18 +5105,18 @@ "typeString": "uint256" } ], - "id": 4160, + "id": 4158, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "4276:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 4163, + "id": 4161, "isConstant": false, "isLValue": false, "isPure": false, @@ -5136,24 +5136,24 @@ "typeString": "uint256" } }, - "id": 4165, + "id": 4163, "nodeType": "ExpressionStatement", "src": "4246:49:7" } ] }, - "id": 4167, + "id": 4165, "nodeType": "IfStatement", "src": "4150:156:7", "trueBody": { - "id": 4153, + "id": 4151, "nodeType": "Block", "src": "4170:56:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4151, + "id": 4149, "isConstant": false, "isLValue": false, "isPure": false, @@ -5164,34 +5164,34 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4144, + "id": 4142, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4184:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4148, + "id": 4146, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4145, + "id": 4143, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4195:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4146, + "id": 4144, "isConstant": false, "isLValue": false, "isPure": false, @@ -5216,14 +5216,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4149, + "id": 4147, "indexExpression": { "argumentTypes": null, - "id": 4147, + "id": 4145, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4125, + "referencedDeclaration": 4123, "src": "4207:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -5246,7 +5246,7 @@ "rightHandSide": { "argumentTypes": null, "hexValue": "30", - "id": 4150, + "id": 4148, "isConstant": false, "isLValue": false, "isPure": true, @@ -5267,7 +5267,7 @@ "typeString": "uint256" } }, - "id": 4152, + "id": 4150, "nodeType": "ExpressionStatement", "src": "4184:31:7" } @@ -5282,18 +5282,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4169, + "id": 4167, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4329:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4170, + "id": 4168, "isConstant": false, "isLValue": false, "isPure": false, @@ -5309,11 +5309,11 @@ }, { "argumentTypes": null, - "id": 4171, + "id": 4169, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4125, + "referencedDeclaration": 4123, "src": "4341:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -5326,34 +5326,34 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4172, + "id": 4170, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4346:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4175, + "id": 4173, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4173, + "id": 4171, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4357:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4174, + "id": 4172, "isConstant": false, "isLValue": false, "isPure": false, @@ -5378,14 +5378,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4177, + "id": 4175, "indexExpression": { "argumentTypes": null, - "id": 4176, + "id": 4174, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4125, + "referencedDeclaration": 4123, "src": "4369:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -5419,20 +5419,20 @@ "typeString": "uint256" } ], - "id": 4168, + "id": 4166, "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6777 + 6536 ], - "referencedDeclaration": 6777, + "referencedDeclaration": 6536, "src": "4320:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 4178, + "id": 4176, "isConstant": false, "isLValue": false, "isPure": false, @@ -5446,7 +5446,7 @@ "typeString": "tuple()" } }, - "id": 4179, + "id": 4177, "nodeType": "EmitStatement", "src": "4315:59:7" }, @@ -5454,7 +5454,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 4180, + "id": 4178, "isConstant": false, "isLValue": false, "isPure": true, @@ -5469,30 +5469,30 @@ }, "value": "true" }, - "functionReturnParameters": 4131, - "id": 4181, + "functionReturnParameters": 4129, + "id": 4179, "nodeType": "Return", "src": "4384:11:7" } ] }, "documentation": null, - "id": 4183, + "id": 4181, "implemented": true, "kind": "function", "modifiers": [], "name": "decreaseApproval", "nodeType": "FunctionDefinition", "parameters": { - "id": 4128, + "id": 4126, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4125, + "id": 4123, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 4183, + "scope": 4181, "src": "4040:11:7", "stateVariable": false, "storageLocation": "default", @@ -5501,7 +5501,7 @@ "typeString": "address" }, "typeName": { - "id": 4124, + "id": 4122, "name": "address", "nodeType": "ElementaryTypeName", "src": "4040:7:7", @@ -5516,10 +5516,10 @@ }, { "constant": false, - "id": 4127, + "id": 4125, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 4183, + "scope": 4181, "src": "4053:8:7", "stateVariable": false, "storageLocation": "default", @@ -5528,7 +5528,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4126, + "id": 4124, "name": "uint", "nodeType": "ElementaryTypeName", "src": "4053:4:7", @@ -5544,15 +5544,15 @@ "src": "4039:23:7" }, "returnParameters": { - "id": 4131, + "id": 4129, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4130, + "id": 4128, "name": "", "nodeType": "VariableDeclaration", - "scope": 4183, + "scope": 4181, "src": "4081:4:7", "stateVariable": false, "storageLocation": "default", @@ -5561,7 +5561,7 @@ "typeString": "bool" }, "typeName": { - "id": 4129, + "id": 4127, "name": "bool", "nodeType": "ElementaryTypeName", "src": "4081:4:7", @@ -5576,7 +5576,7 @@ ], "src": "4080:6:7" }, - "scope": 4287, + "scope": 4285, "src": "4014:388:7", "stateMutability": "nonpayable", "superFunction": null, @@ -5584,7 +5584,7 @@ }, { "body": { - "id": 4201, + "id": 4199, "nodeType": "Block", "src": "4473:65:7", "statements": [ @@ -5596,18 +5596,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4193, + "id": 4191, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4489:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4194, + "id": 4192, "isConstant": false, "isLValue": false, "isPure": false, @@ -5623,11 +5623,11 @@ }, { "argumentTypes": null, - "id": 4195, + "id": 4193, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4185, + "referencedDeclaration": 4183, "src": "4501:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -5636,11 +5636,11 @@ }, { "argumentTypes": null, - "id": 4196, + "id": 4194, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4187, + "referencedDeclaration": 4185, "src": "4506:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5663,18 +5663,18 @@ "typeString": "uint256" } ], - "id": 4192, + "id": 4190, "name": "_move", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3948, + "referencedDeclaration": 3946, "src": "4483:5:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 4197, + "id": 4195, "isConstant": false, "isLValue": false, "isPure": false, @@ -5688,7 +5688,7 @@ "typeString": "tuple()" } }, - "id": 4198, + "id": 4196, "nodeType": "ExpressionStatement", "src": "4483:27:7" }, @@ -5696,7 +5696,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 4199, + "id": 4197, "isConstant": false, "isLValue": false, "isPure": true, @@ -5711,30 +5711,30 @@ }, "value": "true" }, - "functionReturnParameters": 4191, - "id": 4200, + "functionReturnParameters": 4189, + "id": 4198, "nodeType": "Return", "src": "4520:11:7" } ] }, "documentation": null, - "id": 4202, + "id": 4200, "implemented": true, "kind": "function", "modifiers": [], "name": "transfer", "nodeType": "FunctionDefinition", "parameters": { - "id": 4188, + "id": 4186, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4185, + "id": 4183, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 4202, + "scope": 4200, "src": "4426:11:7", "stateVariable": false, "storageLocation": "default", @@ -5743,7 +5743,7 @@ "typeString": "address" }, "typeName": { - "id": 4184, + "id": 4182, "name": "address", "nodeType": "ElementaryTypeName", "src": "4426:7:7", @@ -5758,10 +5758,10 @@ }, { "constant": false, - "id": 4187, + "id": 4185, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 4202, + "scope": 4200, "src": "4439:8:7", "stateVariable": false, "storageLocation": "default", @@ -5770,7 +5770,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4186, + "id": 4184, "name": "uint", "nodeType": "ElementaryTypeName", "src": "4439:4:7", @@ -5786,15 +5786,15 @@ "src": "4425:23:7" }, "returnParameters": { - "id": 4191, + "id": 4189, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4190, + "id": 4188, "name": "", "nodeType": "VariableDeclaration", - "scope": 4202, + "scope": 4200, "src": "4467:4:7", "stateVariable": false, "storageLocation": "default", @@ -5803,7 +5803,7 @@ "typeString": "bool" }, "typeName": { - "id": 4189, + "id": 4187, "name": "bool", "nodeType": "ElementaryTypeName", "src": "4467:4:7", @@ -5818,15 +5818,15 @@ ], "src": "4466:6:7" }, - "scope": 4287, + "scope": 4285, "src": "4408:130:7", "stateMutability": "nonpayable", - "superFunction": 6732, + "superFunction": 6491, "visibility": "external" }, { "body": { - "id": 4285, + "id": 4283, "nodeType": "Block", "src": "4673:436:7", "statements": [ @@ -5840,7 +5840,7 @@ "typeIdentifier": "t_bool", "typeString": "bool" }, - "id": 4226, + "id": 4224, "isConstant": false, "isLValue": false, "isPure": false, @@ -5851,7 +5851,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 4217, + "id": 4215, "isConstant": false, "isLValue": false, "isPure": false, @@ -5860,18 +5860,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4214, + "id": 4212, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4704:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4215, + "id": 4213, "isConstant": false, "isLValue": false, "isPure": false, @@ -5889,11 +5889,11 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 4216, + "id": 4214, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "4718:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -5914,18 +5914,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 4225, + "id": 4223, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 4218, + "id": 4216, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4208, + "referencedDeclaration": 4206, "src": "4725:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -5940,25 +5940,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4219, + "id": 4217, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4732:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4221, + "id": 4219, "indexExpression": { "argumentTypes": null, - "id": 4220, + "id": 4218, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "4743:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -5976,23 +5976,23 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4224, + "id": 4222, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4222, + "id": 4220, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4748:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4223, + "id": 4221, "isConstant": false, "isLValue": false, "isPure": false, @@ -6032,7 +6032,7 @@ { "argumentTypes": null, "hexValue": "4552525f42544f4b454e5f4241445f43414c4c4552", - "id": 4227, + "id": 4225, "isConstant": false, "isLValue": false, "isPure": true, @@ -6059,21 +6059,21 @@ "typeString": "literal_string \"ERR_BTOKEN_BAD_CALLER\"" } ], - "id": 4213, + "id": 4211, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "4683:7:7", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 4228, + "id": 4226, "isConstant": false, "isLValue": false, "isPure": false, @@ -6087,7 +6087,7 @@ "typeString": "tuple()" } }, - "id": 4229, + "id": 4227, "nodeType": "ExpressionStatement", "src": "4683:124:7" }, @@ -6097,11 +6097,11 @@ "arguments": [ { "argumentTypes": null, - "id": 4231, + "id": 4229, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "4823:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6110,11 +6110,11 @@ }, { "argumentTypes": null, - "id": 4232, + "id": 4230, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4206, + "referencedDeclaration": 4204, "src": "4828:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6123,11 +6123,11 @@ }, { "argumentTypes": null, - "id": 4233, + "id": 4231, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4208, + "referencedDeclaration": 4206, "src": "4833:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6150,18 +6150,18 @@ "typeString": "uint256" } ], - "id": 4230, + "id": 4228, "name": "_move", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3948, + "referencedDeclaration": 3946, "src": "4817:5:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 4234, + "id": 4232, "isConstant": false, "isLValue": false, "isPure": false, @@ -6175,7 +6175,7 @@ "typeString": "tuple()" } }, - "id": 4235, + "id": 4233, "nodeType": "ExpressionStatement", "src": "4817:20:7" }, @@ -6186,7 +6186,7 @@ "typeIdentifier": "t_bool", "typeString": "bool" }, - "id": 4251, + "id": 4249, "isConstant": false, "isLValue": false, "isPure": false, @@ -6197,7 +6197,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 4239, + "id": 4237, "isConstant": false, "isLValue": false, "isPure": false, @@ -6206,18 +6206,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4236, + "id": 4234, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4851:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4237, + "id": 4235, "isConstant": false, "isLValue": false, "isPure": false, @@ -6235,11 +6235,11 @@ "operator": "!=", "rightExpression": { "argumentTypes": null, - "id": 4238, + "id": 4236, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "4865:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6260,7 +6260,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 4250, + "id": 4248, "isConstant": false, "isLValue": false, "isPure": false, @@ -6271,25 +6271,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4240, + "id": 4238, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4872:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4242, + "id": 4240, "indexExpression": { "argumentTypes": null, - "id": 4241, + "id": 4239, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "4883:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6307,23 +6307,23 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4245, + "id": 4243, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4243, + "id": 4241, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4888:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4244, + "id": 4242, "isConstant": false, "isLValue": false, "isPure": false, @@ -6355,7 +6355,7 @@ "arguments": [ { "argumentTypes": null, - "id": 4248, + "id": 4246, "isConstant": false, "isLValue": false, "isPure": true, @@ -6367,7 +6367,7 @@ "subExpression": { "argumentTypes": null, "hexValue": "31", - "id": 4247, + "id": 4245, "isConstant": false, "isLValue": false, "isPure": true, @@ -6395,7 +6395,7 @@ "typeString": "int_const -1" } ], - "id": 4246, + "id": 4244, "isConstant": false, "isLValue": false, "isPure": true, @@ -6408,7 +6408,7 @@ }, "typeName": "uint256" }, - "id": 4249, + "id": 4247, "isConstant": false, "isLValue": false, "isPure": true, @@ -6435,18 +6435,18 @@ } }, "falseBody": null, - "id": 4282, + "id": 4280, "nodeType": "IfStatement", "src": "4847:235:7", "trueBody": { - "id": 4281, + "id": 4279, "nodeType": "Block", "src": "4916:166:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4267, + "id": 4265, "isConstant": false, "isLValue": false, "isPure": false, @@ -6457,25 +6457,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4252, + "id": 4250, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4930:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4256, + "id": 4254, "indexExpression": { "argumentTypes": null, - "id": 4253, + "id": 4251, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "4941:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6493,23 +6493,23 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4257, + "id": 4255, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4254, + "id": 4252, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4946:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4255, + "id": 4253, "isConstant": false, "isLValue": false, "isPure": false, @@ -6545,25 +6545,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4259, + "id": 4257, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4965:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4261, + "id": 4259, "indexExpression": { "argumentTypes": null, - "id": 4260, + "id": 4258, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "4976:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6581,23 +6581,23 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4264, + "id": 4262, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4262, + "id": 4260, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4981:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4263, + "id": 4261, "isConstant": false, "isLValue": false, "isPure": false, @@ -6624,11 +6624,11 @@ }, { "argumentTypes": null, - "id": 4265, + "id": 4263, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4208, + "referencedDeclaration": 4206, "src": "4994:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -6647,18 +6647,18 @@ "typeString": "uint256" } ], - "id": 4258, + "id": 4256, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "4960:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 4266, + "id": 4264, "isConstant": false, "isLValue": false, "isPure": false, @@ -6678,7 +6678,7 @@ "typeString": "uint256" } }, - "id": 4268, + "id": 4266, "nodeType": "ExpressionStatement", "src": "4930:68:7" }, @@ -6690,18 +6690,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4270, + "id": 4268, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "5026:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4271, + "id": 4269, "isConstant": false, "isLValue": false, "isPure": false, @@ -6717,11 +6717,11 @@ }, { "argumentTypes": null, - "id": 4272, + "id": 4270, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4206, + "referencedDeclaration": 4204, "src": "5038:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6734,25 +6734,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4273, + "id": 4271, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "5043:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4275, + "id": 4273, "indexExpression": { "argumentTypes": null, - "id": 4274, + "id": 4272, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "5054:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6770,23 +6770,23 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4278, + "id": 4276, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4276, + "id": 4274, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "5059:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4277, + "id": 4275, "isConstant": false, "isLValue": false, "isPure": false, @@ -6827,20 +6827,20 @@ "typeString": "uint256" } ], - "id": 4269, + "id": 4267, "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6777 + 6536 ], - "referencedDeclaration": 6777, + "referencedDeclaration": 6536, "src": "5017:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 4279, + "id": 4277, "isConstant": false, "isLValue": false, "isPure": false, @@ -6854,7 +6854,7 @@ "typeString": "tuple()" } }, - "id": 4280, + "id": 4278, "nodeType": "EmitStatement", "src": "5012:59:7" } @@ -6865,7 +6865,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 4283, + "id": 4281, "isConstant": false, "isLValue": false, "isPure": true, @@ -6880,30 +6880,30 @@ }, "value": "true" }, - "functionReturnParameters": 4212, - "id": 4284, + "functionReturnParameters": 4210, + "id": 4282, "nodeType": "Return", "src": "5091:11:7" } ] }, "documentation": null, - "id": 4286, + "id": 4284, "implemented": true, "kind": "function", "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { - "id": 4209, + "id": 4207, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4204, + "id": 4202, "name": "src", "nodeType": "VariableDeclaration", - "scope": 4286, + "scope": 4284, "src": "4575:11:7", "stateVariable": false, "storageLocation": "default", @@ -6912,7 +6912,7 @@ "typeString": "address" }, "typeName": { - "id": 4203, + "id": 4201, "name": "address", "nodeType": "ElementaryTypeName", "src": "4575:7:7", @@ -6927,10 +6927,10 @@ }, { "constant": false, - "id": 4206, + "id": 4204, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 4286, + "scope": 4284, "src": "4597:11:7", "stateVariable": false, "storageLocation": "default", @@ -6939,7 +6939,7 @@ "typeString": "address" }, "typeName": { - "id": 4205, + "id": 4203, "name": "address", "nodeType": "ElementaryTypeName", "src": "4597:7:7", @@ -6954,10 +6954,10 @@ }, { "constant": false, - "id": 4208, + "id": 4206, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 4286, + "scope": 4284, "src": "4619:8:7", "stateVariable": false, "storageLocation": "default", @@ -6966,7 +6966,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4207, + "id": 4205, "name": "uint", "nodeType": "ElementaryTypeName", "src": "4619:4:7", @@ -6982,15 +6982,15 @@ "src": "4565:68:7" }, "returnParameters": { - "id": 4212, + "id": 4210, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4211, + "id": 4209, "name": "", "nodeType": "VariableDeclaration", - "scope": 4286, + "scope": 4284, "src": "4662:4:7", "stateVariable": false, "storageLocation": "default", @@ -6999,7 +6999,7 @@ "typeString": "bool" }, "typeName": { - "id": 4210, + "id": 4208, "name": "bool", "nodeType": "ElementaryTypeName", "src": "4662:4:7", @@ -7014,14 +7014,14 @@ ], "src": "4661:6:7" }, - "scope": 4287, + "scope": 4285, "src": "4544:565:7", "stateMutability": "nonpayable", - "superFunction": 6761, + "superFunction": 6520, "visibility": "external" } ], - "scope": 4288, + "scope": 4286, "src": "2812:2299:7" } ], @@ -7031,17 +7031,17 @@ "absolutePath": "/ocean/ocean-contracts/contracts/balancer/BToken.sol", "exportedSymbols": { "BToken": [ - 4287 + 4285 ], "BTokenBase": [ - 3981 + 3979 ] }, - "id": 4288, + "id": 4286, "nodeType": "SourceUnit", "nodes": [ { - "id": 3782, + "id": 3780, "literals": [ "solidity", "0.5", @@ -7053,10 +7053,10 @@ { "absolutePath": "/ocean/ocean-contracts/contracts/balancer/BNum.sol", "file": "./BNum.sol", - "id": 3783, + "id": 3781, "nodeType": "ImportDirective", - "scope": 4288, - "sourceUnit": 1439, + "scope": 4286, + "sourceUnit": 1423, "src": "667:20:7", "symbolAliases": [], "unitAlias": "" @@ -7064,10 +7064,10 @@ { "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol", "file": "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol", - "id": 3784, + "id": 3782, "nodeType": "ImportDirective", - "scope": 4288, - "sourceUnit": 6779, + "scope": 4286, + "sourceUnit": 6538, "src": "688:64:7", "symbolAliases": [], "unitAlias": "" @@ -7078,43 +7078,43 @@ "arguments": null, "baseName": { "contractScope": null, - "id": 3785, + "id": 3783, "name": "BNum", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 1438, + "referencedDeclaration": 1422, "src": "1468:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BNum_$1438", + "typeIdentifier": "t_contract$_BNum_$1422", "typeString": "contract BNum" } }, - "id": 3786, + "id": 3784, "nodeType": "InheritanceSpecifier", "src": "1468:4:7" } ], "contractDependencies": [ - 284, - 1438 + 280, + 1422 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, - "id": 3981, + "id": 3979, "linearizedBaseContracts": [ - 3981, - 1438, - 284 + 3979, + 1422, + 280 ], "name": "BTokenBase", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, - "id": 3790, + "id": 3788, "name": "_balance", "nodeType": "VariableDeclaration", - "scope": 3981, + "scope": 3979, "src": "1480:60:7", "stateVariable": true, "storageLocation": "default", @@ -7123,9 +7123,9 @@ "typeString": "mapping(address => uint256)" }, "typeName": { - "id": 3789, + "id": 3787, "keyType": { - "id": 3787, + "id": 3785, "name": "address", "nodeType": "ElementaryTypeName", "src": "1488:7:7", @@ -7141,7 +7141,7 @@ "typeString": "mapping(address => uint256)" }, "valueType": { - "id": 3788, + "id": 3786, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1499:4:7", @@ -7156,10 +7156,10 @@ }, { "constant": false, - "id": 3796, + "id": 3794, "name": "_allowance", "nodeType": "VariableDeclaration", - "scope": 3981, + "scope": 3979, "src": "1546:62:7", "stateVariable": true, "storageLocation": "default", @@ -7168,9 +7168,9 @@ "typeString": "mapping(address => mapping(address => uint256))" }, "typeName": { - "id": 3795, + "id": 3793, "keyType": { - "id": 3791, + "id": 3789, "name": "address", "nodeType": "ElementaryTypeName", "src": "1554:7:7", @@ -7186,9 +7186,9 @@ "typeString": "mapping(address => mapping(address => uint256))" }, "valueType": { - "id": 3794, + "id": 3792, "keyType": { - "id": 3792, + "id": 3790, "name": "address", "nodeType": "ElementaryTypeName", "src": "1573:7:7", @@ -7204,7 +7204,7 @@ "typeString": "mapping(address => uint256)" }, "valueType": { - "id": 3793, + "id": 3791, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1582:4:7", @@ -7220,10 +7220,10 @@ }, { "constant": false, - "id": 3798, + "id": 3796, "name": "_totalSupply", "nodeType": "VariableDeclaration", - "scope": 3981, + "scope": 3979, "src": "1614:26:7", "stateVariable": true, "storageLocation": "default", @@ -7232,7 +7232,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3797, + "id": 3795, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1614:4:7", @@ -7247,20 +7247,20 @@ { "anonymous": false, "documentation": null, - "id": 3806, + "id": 3804, "name": "Approval", "nodeType": "EventDefinition", "parameters": { - "id": 3805, + "id": 3803, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3800, + "id": 3798, "indexed": true, "name": "src", "nodeType": "VariableDeclaration", - "scope": 3806, + "scope": 3804, "src": "1662:19:7", "stateVariable": false, "storageLocation": "default", @@ -7269,7 +7269,7 @@ "typeString": "address" }, "typeName": { - "id": 3799, + "id": 3797, "name": "address", "nodeType": "ElementaryTypeName", "src": "1662:7:7", @@ -7284,11 +7284,11 @@ }, { "constant": false, - "id": 3802, + "id": 3800, "indexed": true, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 3806, + "scope": 3804, "src": "1683:19:7", "stateVariable": false, "storageLocation": "default", @@ -7297,7 +7297,7 @@ "typeString": "address" }, "typeName": { - "id": 3801, + "id": 3799, "name": "address", "nodeType": "ElementaryTypeName", "src": "1683:7:7", @@ -7312,11 +7312,11 @@ }, { "constant": false, - "id": 3804, + "id": 3802, "indexed": false, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 3806, + "scope": 3804, "src": "1704:8:7", "stateVariable": false, "storageLocation": "default", @@ -7325,7 +7325,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3803, + "id": 3801, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1704:4:7", @@ -7345,20 +7345,20 @@ { "anonymous": false, "documentation": null, - "id": 3814, + "id": 3812, "name": "Transfer", "nodeType": "EventDefinition", "parameters": { - "id": 3813, + "id": 3811, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3808, + "id": 3806, "indexed": true, "name": "src", "nodeType": "VariableDeclaration", - "scope": 3814, + "scope": 3812, "src": "1734:19:7", "stateVariable": false, "storageLocation": "default", @@ -7367,7 +7367,7 @@ "typeString": "address" }, "typeName": { - "id": 3807, + "id": 3805, "name": "address", "nodeType": "ElementaryTypeName", "src": "1734:7:7", @@ -7382,11 +7382,11 @@ }, { "constant": false, - "id": 3810, + "id": 3808, "indexed": true, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 3814, + "scope": 3812, "src": "1755:19:7", "stateVariable": false, "storageLocation": "default", @@ -7395,7 +7395,7 @@ "typeString": "address" }, "typeName": { - "id": 3809, + "id": 3807, "name": "address", "nodeType": "ElementaryTypeName", "src": "1755:7:7", @@ -7410,11 +7410,11 @@ }, { "constant": false, - "id": 3812, + "id": 3810, "indexed": false, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 3814, + "scope": 3812, "src": "1776:8:7", "stateVariable": false, "storageLocation": "default", @@ -7423,7 +7423,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3811, + "id": 3809, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1776:4:7", @@ -7442,14 +7442,14 @@ }, { "body": { - "id": 3851, + "id": 3849, "nodeType": "Block", "src": "1826:180:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 3832, + "id": 3830, "isConstant": false, "isLValue": false, "isPure": false, @@ -7458,31 +7458,31 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3819, + "id": 3817, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "1836:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3823, + "id": 3821, "indexExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 3821, + "id": 3819, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "1853:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -7490,11 +7490,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3820, + "id": 3818, "isConstant": false, "isLValue": false, "isPure": true, @@ -7507,7 +7507,7 @@ }, "typeName": "address" }, - "id": 3822, + "id": 3820, "isConstant": false, "isLValue": false, "isPure": false, @@ -7541,31 +7541,31 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3825, + "id": 3823, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "1867:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3829, + "id": 3827, "indexExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 3827, + "id": 3825, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "1884:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -7573,11 +7573,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3826, + "id": 3824, "isConstant": false, "isLValue": false, "isPure": true, @@ -7590,7 +7590,7 @@ }, "typeName": "address" }, - "id": 3828, + "id": 3826, "isConstant": false, "isLValue": false, "isPure": false, @@ -7617,11 +7617,11 @@ }, { "argumentTypes": null, - "id": 3830, + "id": 3828, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3816, + "referencedDeclaration": 3814, "src": "1892:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7640,18 +7640,18 @@ "typeString": "uint256" } ], - "id": 3824, + "id": 3822, "name": "badd", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1017, + "referencedDeclaration": 1001, "src": "1862:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 3831, + "id": 3829, "isConstant": false, "isLValue": false, "isPure": false, @@ -7671,25 +7671,25 @@ "typeString": "uint256" } }, - "id": 3833, + "id": 3831, "nodeType": "ExpressionStatement", "src": "1836:60:7" }, { "expression": { "argumentTypes": null, - "id": 3839, + "id": 3837, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 3834, + "id": 3832, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3798, + "referencedDeclaration": 3796, "src": "1906:12:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7703,11 +7703,11 @@ "arguments": [ { "argumentTypes": null, - "id": 3836, + "id": 3834, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3798, + "referencedDeclaration": 3796, "src": "1926:12:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7716,11 +7716,11 @@ }, { "argumentTypes": null, - "id": 3837, + "id": 3835, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3816, + "referencedDeclaration": 3814, "src": "1940:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7739,18 +7739,18 @@ "typeString": "uint256" } ], - "id": 3835, + "id": 3833, "name": "badd", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1017, + "referencedDeclaration": 1001, "src": "1921:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 3838, + "id": 3836, "isConstant": false, "isLValue": false, "isPure": false, @@ -7770,7 +7770,7 @@ "typeString": "uint256" } }, - "id": 3840, + "id": 3838, "nodeType": "ExpressionStatement", "src": "1906:38:7" }, @@ -7784,7 +7784,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 3843, + "id": 3841, "isConstant": false, "isLValue": false, "isPure": true, @@ -7807,7 +7807,7 @@ "typeString": "int_const 0" } ], - "id": 3842, + "id": 3840, "isConstant": false, "isLValue": false, "isPure": true, @@ -7820,7 +7820,7 @@ }, "typeName": "address" }, - "id": 3844, + "id": 3842, "isConstant": false, "isLValue": false, "isPure": true, @@ -7839,14 +7839,14 @@ "arguments": [ { "argumentTypes": null, - "id": 3846, + "id": 3844, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "1988:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -7854,11 +7854,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3845, + "id": 3843, "isConstant": false, "isLValue": false, "isPure": true, @@ -7871,7 +7871,7 @@ }, "typeName": "address" }, - "id": 3847, + "id": 3845, "isConstant": false, "isLValue": false, "isPure": false, @@ -7887,11 +7887,11 @@ }, { "argumentTypes": null, - "id": 3848, + "id": 3846, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3816, + "referencedDeclaration": 3814, "src": "1995:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -7914,18 +7914,18 @@ "typeString": "uint256" } ], - "id": 3841, + "id": 3839, "name": "Transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3814, + "referencedDeclaration": 3812, "src": "1959:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 3849, + "id": 3847, "isConstant": false, "isLValue": false, "isPure": false, @@ -7939,29 +7939,29 @@ "typeString": "tuple()" } }, - "id": 3850, + "id": 3848, "nodeType": "EmitStatement", "src": "1954:45:7" } ] }, "documentation": null, - "id": 3852, + "id": 3850, "implemented": true, "kind": "function", "modifiers": [], "name": "_mint", "nodeType": "FunctionDefinition", "parameters": { - "id": 3817, + "id": 3815, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3816, + "id": 3814, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 3852, + "scope": 3850, "src": "1807:8:7", "stateVariable": false, "storageLocation": "default", @@ -7970,7 +7970,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3815, + "id": 3813, "name": "uint", "nodeType": "ElementaryTypeName", "src": "1807:4:7", @@ -7986,12 +7986,12 @@ "src": "1806:10:7" }, "returnParameters": { - "id": 3818, + "id": 3816, "nodeType": "ParameterList", "parameters": [], "src": "1826:0:7" }, - "scope": 3981, + "scope": 3979, "src": "1792:214:7", "stateMutability": "nonpayable", "superFunction": null, @@ -7999,7 +7999,7 @@ }, { "body": { - "id": 3900, + "id": 3898, "nodeType": "Block", "src": "2046:288:7", "statements": [ @@ -8013,7 +8013,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 3864, + "id": 3862, "isConstant": false, "isLValue": false, "isPure": false, @@ -8022,31 +8022,31 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3858, + "id": 3856, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2077:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3862, + "id": 3860, "indexExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 3860, + "id": 3858, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "2094:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -8054,11 +8054,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3859, + "id": 3857, "isConstant": false, "isLValue": false, "isPure": true, @@ -8071,7 +8071,7 @@ }, "typeName": "address" }, - "id": 3861, + "id": 3859, "isConstant": false, "isLValue": false, "isPure": false, @@ -8100,11 +8100,11 @@ "operator": ">=", "rightExpression": { "argumentTypes": null, - "id": 3863, + "id": 3861, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3854, + "referencedDeclaration": 3852, "src": "2104:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8120,7 +8120,7 @@ { "argumentTypes": null, "hexValue": "4552525f494e53554646494349454e545f42414c", - "id": 3865, + "id": 3863, "isConstant": false, "isLValue": false, "isPure": true, @@ -8147,21 +8147,21 @@ "typeString": "literal_string \"ERR_INSUFFICIENT_BAL\"" } ], - "id": 3857, + "id": 3855, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "2056:7:7", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 3866, + "id": 3864, "isConstant": false, "isLValue": false, "isPure": false, @@ -8175,14 +8175,14 @@ "typeString": "tuple()" } }, - "id": 3867, + "id": 3865, "nodeType": "ExpressionStatement", "src": "2056:98:7" }, { "expression": { "argumentTypes": null, - "id": 3881, + "id": 3879, "isConstant": false, "isLValue": false, "isPure": false, @@ -8191,31 +8191,31 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3868, + "id": 3866, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2164:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3872, + "id": 3870, "indexExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 3870, + "id": 3868, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "2181:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -8223,11 +8223,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3869, + "id": 3867, "isConstant": false, "isLValue": false, "isPure": true, @@ -8240,7 +8240,7 @@ }, "typeName": "address" }, - "id": 3871, + "id": 3869, "isConstant": false, "isLValue": false, "isPure": false, @@ -8274,31 +8274,31 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3874, + "id": 3872, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2195:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3878, + "id": 3876, "indexExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 3876, + "id": 3874, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "2212:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -8306,11 +8306,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3875, + "id": 3873, "isConstant": false, "isLValue": false, "isPure": true, @@ -8323,7 +8323,7 @@ }, "typeName": "address" }, - "id": 3877, + "id": 3875, "isConstant": false, "isLValue": false, "isPure": false, @@ -8350,11 +8350,11 @@ }, { "argumentTypes": null, - "id": 3879, + "id": 3877, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3854, + "referencedDeclaration": 3852, "src": "2220:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8373,18 +8373,18 @@ "typeString": "uint256" } ], - "id": 3873, + "id": 3871, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "2190:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 3880, + "id": 3878, "isConstant": false, "isLValue": false, "isPure": false, @@ -8404,25 +8404,25 @@ "typeString": "uint256" } }, - "id": 3882, + "id": 3880, "nodeType": "ExpressionStatement", "src": "2164:60:7" }, { "expression": { "argumentTypes": null, - "id": 3888, + "id": 3886, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 3883, + "id": 3881, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3798, + "referencedDeclaration": 3796, "src": "2234:12:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8436,11 +8436,11 @@ "arguments": [ { "argumentTypes": null, - "id": 3885, + "id": 3883, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3798, + "referencedDeclaration": 3796, "src": "2254:12:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8449,11 +8449,11 @@ }, { "argumentTypes": null, - "id": 3886, + "id": 3884, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3854, + "referencedDeclaration": 3852, "src": "2268:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8472,18 +8472,18 @@ "typeString": "uint256" } ], - "id": 3884, + "id": 3882, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "2249:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 3887, + "id": 3885, "isConstant": false, "isLValue": false, "isPure": false, @@ -8503,7 +8503,7 @@ "typeString": "uint256" } }, - "id": 3889, + "id": 3887, "nodeType": "ExpressionStatement", "src": "2234:38:7" }, @@ -8516,14 +8516,14 @@ "arguments": [ { "argumentTypes": null, - "id": 3892, + "id": 3890, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "2304:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -8531,11 +8531,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3891, + "id": 3889, "isConstant": false, "isLValue": false, "isPure": true, @@ -8548,7 +8548,7 @@ }, "typeName": "address" }, - "id": 3893, + "id": 3891, "isConstant": false, "isLValue": false, "isPure": false, @@ -8568,7 +8568,7 @@ { "argumentTypes": null, "hexValue": "30", - "id": 3895, + "id": 3893, "isConstant": false, "isLValue": false, "isPure": true, @@ -8591,7 +8591,7 @@ "typeString": "int_const 0" } ], - "id": 3894, + "id": 3892, "isConstant": false, "isLValue": false, "isPure": true, @@ -8604,7 +8604,7 @@ }, "typeName": "address" }, - "id": 3896, + "id": 3894, "isConstant": false, "isLValue": false, "isPure": true, @@ -8620,11 +8620,11 @@ }, { "argumentTypes": null, - "id": 3897, + "id": 3895, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3854, + "referencedDeclaration": 3852, "src": "2323:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8647,18 +8647,18 @@ "typeString": "uint256" } ], - "id": 3890, + "id": 3888, "name": "Transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3814, + "referencedDeclaration": 3812, "src": "2287:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 3898, + "id": 3896, "isConstant": false, "isLValue": false, "isPure": false, @@ -8672,29 +8672,29 @@ "typeString": "tuple()" } }, - "id": 3899, + "id": 3897, "nodeType": "EmitStatement", "src": "2282:45:7" } ] }, "documentation": null, - "id": 3901, + "id": 3899, "implemented": true, "kind": "function", "modifiers": [], "name": "_burn", "nodeType": "FunctionDefinition", "parameters": { - "id": 3855, + "id": 3853, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3854, + "id": 3852, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 3901, + "scope": 3899, "src": "2027:8:7", "stateVariable": false, "storageLocation": "default", @@ -8703,7 +8703,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3853, + "id": 3851, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2027:4:7", @@ -8719,12 +8719,12 @@ "src": "2026:10:7" }, "returnParameters": { - "id": 3856, + "id": 3854, "nodeType": "ParameterList", "parameters": [], "src": "2046:0:7" }, - "scope": 3981, + "scope": 3979, "src": "2012:322:7", "stateMutability": "nonpayable", "superFunction": null, @@ -8732,7 +8732,7 @@ }, { "body": { - "id": 3947, + "id": 3945, "nodeType": "Block", "src": "2400:208:7", "statements": [ @@ -8746,7 +8746,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 3915, + "id": 3913, "isConstant": false, "isLValue": false, "isPure": false, @@ -8755,25 +8755,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3911, + "id": 3909, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2418:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3913, + "id": 3911, "indexExpression": { "argumentTypes": null, - "id": 3912, + "id": 3910, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3903, + "referencedDeclaration": 3901, "src": "2427:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -8795,11 +8795,11 @@ "operator": ">=", "rightExpression": { "argumentTypes": null, - "id": 3914, + "id": 3912, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3907, + "referencedDeclaration": 3905, "src": "2435:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8815,7 +8815,7 @@ { "argumentTypes": null, "hexValue": "4552525f494e53554646494349454e545f42414c", - "id": 3916, + "id": 3914, "isConstant": false, "isLValue": false, "isPure": true, @@ -8842,21 +8842,21 @@ "typeString": "literal_string \"ERR_INSUFFICIENT_BAL\"" } ], - "id": 3910, + "id": 3908, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "2410:7:7", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 3917, + "id": 3915, "isConstant": false, "isLValue": false, "isPure": false, @@ -8870,14 +8870,14 @@ "typeString": "tuple()" } }, - "id": 3918, + "id": 3916, "nodeType": "ExpressionStatement", "src": "2410:53:7" }, { "expression": { "argumentTypes": null, - "id": 3928, + "id": 3926, "isConstant": false, "isLValue": false, "isPure": false, @@ -8886,25 +8886,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3919, + "id": 3917, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2473:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3921, + "id": 3919, "indexExpression": { "argumentTypes": null, - "id": 3920, + "id": 3918, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3903, + "referencedDeclaration": 3901, "src": "2482:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -8931,25 +8931,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3923, + "id": 3921, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2494:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3925, + "id": 3923, "indexExpression": { "argumentTypes": null, - "id": 3924, + "id": 3922, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3903, + "referencedDeclaration": 3901, "src": "2503:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -8969,11 +8969,11 @@ }, { "argumentTypes": null, - "id": 3926, + "id": 3924, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3907, + "referencedDeclaration": 3905, "src": "2509:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -8992,18 +8992,18 @@ "typeString": "uint256" } ], - "id": 3922, + "id": 3920, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "2489:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 3927, + "id": 3925, "isConstant": false, "isLValue": false, "isPure": false, @@ -9023,14 +9023,14 @@ "typeString": "uint256" } }, - "id": 3929, + "id": 3927, "nodeType": "ExpressionStatement", "src": "2473:40:7" }, { "expression": { "argumentTypes": null, - "id": 3939, + "id": 3937, "isConstant": false, "isLValue": false, "isPure": false, @@ -9039,25 +9039,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3930, + "id": 3928, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2523:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3932, + "id": 3930, "indexExpression": { "argumentTypes": null, - "id": 3931, + "id": 3929, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3905, + "referencedDeclaration": 3903, "src": "2532:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9084,25 +9084,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 3934, + "id": 3932, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "2544:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 3936, + "id": 3934, "indexExpression": { "argumentTypes": null, - "id": 3935, + "id": 3933, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3905, + "referencedDeclaration": 3903, "src": "2553:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9122,11 +9122,11 @@ }, { "argumentTypes": null, - "id": 3937, + "id": 3935, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3907, + "referencedDeclaration": 3905, "src": "2559:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9145,18 +9145,18 @@ "typeString": "uint256" } ], - "id": 3933, + "id": 3931, "name": "badd", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1017, + "referencedDeclaration": 1001, "src": "2539:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 3938, + "id": 3936, "isConstant": false, "isLValue": false, "isPure": false, @@ -9176,7 +9176,7 @@ "typeString": "uint256" } }, - "id": 3940, + "id": 3938, "nodeType": "ExpressionStatement", "src": "2523:40:7" }, @@ -9186,11 +9186,11 @@ "arguments": [ { "argumentTypes": null, - "id": 3942, + "id": 3940, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3903, + "referencedDeclaration": 3901, "src": "2587:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9199,11 +9199,11 @@ }, { "argumentTypes": null, - "id": 3943, + "id": 3941, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3905, + "referencedDeclaration": 3903, "src": "2592:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9212,11 +9212,11 @@ }, { "argumentTypes": null, - "id": 3944, + "id": 3942, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3907, + "referencedDeclaration": 3905, "src": "2597:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9239,18 +9239,18 @@ "typeString": "uint256" } ], - "id": 3941, + "id": 3939, "name": "Transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3814, + "referencedDeclaration": 3812, "src": "2578:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 3945, + "id": 3943, "isConstant": false, "isLValue": false, "isPure": false, @@ -9264,29 +9264,29 @@ "typeString": "tuple()" } }, - "id": 3946, + "id": 3944, "nodeType": "EmitStatement", "src": "2573:28:7" } ] }, "documentation": null, - "id": 3948, + "id": 3946, "implemented": true, "kind": "function", "modifiers": [], "name": "_move", "nodeType": "FunctionDefinition", "parameters": { - "id": 3908, + "id": 3906, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3903, + "id": 3901, "name": "src", "nodeType": "VariableDeclaration", - "scope": 3948, + "scope": 3946, "src": "2355:11:7", "stateVariable": false, "storageLocation": "default", @@ -9295,7 +9295,7 @@ "typeString": "address" }, "typeName": { - "id": 3902, + "id": 3900, "name": "address", "nodeType": "ElementaryTypeName", "src": "2355:7:7", @@ -9310,10 +9310,10 @@ }, { "constant": false, - "id": 3905, + "id": 3903, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 3948, + "scope": 3946, "src": "2368:11:7", "stateVariable": false, "storageLocation": "default", @@ -9322,7 +9322,7 @@ "typeString": "address" }, "typeName": { - "id": 3904, + "id": 3902, "name": "address", "nodeType": "ElementaryTypeName", "src": "2368:7:7", @@ -9337,10 +9337,10 @@ }, { "constant": false, - "id": 3907, + "id": 3905, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 3948, + "scope": 3946, "src": "2381:8:7", "stateVariable": false, "storageLocation": "default", @@ -9349,7 +9349,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3906, + "id": 3904, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2381:4:7", @@ -9365,12 +9365,12 @@ "src": "2354:36:7" }, "returnParameters": { - "id": 3909, + "id": 3907, "nodeType": "ParameterList", "parameters": [], "src": "2400:0:7" }, - "scope": 3981, + "scope": 3979, "src": "2340:268:7", "stateMutability": "nonpayable", "superFunction": null, @@ -9378,7 +9378,7 @@ }, { "body": { - "id": 3963, + "id": 3961, "nodeType": "Block", "src": "2660:46:7", "statements": [ @@ -9391,14 +9391,14 @@ "arguments": [ { "argumentTypes": null, - "id": 3957, + "id": 3955, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "2684:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -9406,11 +9406,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3956, + "id": 3954, "isConstant": false, "isLValue": false, "isPure": true, @@ -9423,7 +9423,7 @@ }, "typeName": "address" }, - "id": 3958, + "id": 3956, "isConstant": false, "isLValue": false, "isPure": false, @@ -9439,11 +9439,11 @@ }, { "argumentTypes": null, - "id": 3959, + "id": 3957, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3950, + "referencedDeclaration": 3948, "src": "2691:2:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9452,11 +9452,11 @@ }, { "argumentTypes": null, - "id": 3960, + "id": 3958, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3952, + "referencedDeclaration": 3950, "src": "2695:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9479,18 +9479,18 @@ "typeString": "uint256" } ], - "id": 3955, + "id": 3953, "name": "_move", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3948, + "referencedDeclaration": 3946, "src": "2670:5:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 3961, + "id": 3959, "isConstant": false, "isLValue": false, "isPure": false, @@ -9504,29 +9504,29 @@ "typeString": "tuple()" } }, - "id": 3962, + "id": 3960, "nodeType": "ExpressionStatement", "src": "2670:29:7" } ] }, "documentation": null, - "id": 3964, + "id": 3962, "implemented": true, "kind": "function", "modifiers": [], "name": "_push", "nodeType": "FunctionDefinition", "parameters": { - "id": 3953, + "id": 3951, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3950, + "id": 3948, "name": "to", "nodeType": "VariableDeclaration", - "scope": 3964, + "scope": 3962, "src": "2629:10:7", "stateVariable": false, "storageLocation": "default", @@ -9535,7 +9535,7 @@ "typeString": "address" }, "typeName": { - "id": 3949, + "id": 3947, "name": "address", "nodeType": "ElementaryTypeName", "src": "2629:7:7", @@ -9550,10 +9550,10 @@ }, { "constant": false, - "id": 3952, + "id": 3950, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 3964, + "scope": 3962, "src": "2641:8:7", "stateVariable": false, "storageLocation": "default", @@ -9562,7 +9562,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3951, + "id": 3949, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2641:4:7", @@ -9578,12 +9578,12 @@ "src": "2628:22:7" }, "returnParameters": { - "id": 3954, + "id": 3952, "nodeType": "ParameterList", "parameters": [], "src": "2660:0:7" }, - "scope": 3981, + "scope": 3979, "src": "2614:92:7", "stateMutability": "nonpayable", "superFunction": null, @@ -9591,7 +9591,7 @@ }, { "body": { - "id": 3979, + "id": 3977, "nodeType": "Block", "src": "2760:48:7", "statements": [ @@ -9601,11 +9601,11 @@ "arguments": [ { "argumentTypes": null, - "id": 3972, + "id": 3970, "name": "from", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3966, + "referencedDeclaration": 3964, "src": "2776:4:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9617,14 +9617,14 @@ "arguments": [ { "argumentTypes": null, - "id": 3974, + "id": 3972, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6821, + "referencedDeclaration": 6580, "src": "2790:4:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } } @@ -9632,11 +9632,11 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } ], - "id": 3973, + "id": 3971, "isConstant": false, "isLValue": false, "isPure": true, @@ -9649,7 +9649,7 @@ }, "typeName": "address" }, - "id": 3975, + "id": 3973, "isConstant": false, "isLValue": false, "isPure": false, @@ -9665,11 +9665,11 @@ }, { "argumentTypes": null, - "id": 3976, + "id": 3974, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3968, + "referencedDeclaration": 3966, "src": "2797:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -9692,18 +9692,18 @@ "typeString": "uint256" } ], - "id": 3971, + "id": 3969, "name": "_move", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3948, + "referencedDeclaration": 3946, "src": "2770:5:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 3977, + "id": 3975, "isConstant": false, "isLValue": false, "isPure": false, @@ -9717,29 +9717,29 @@ "typeString": "tuple()" } }, - "id": 3978, + "id": 3976, "nodeType": "ExpressionStatement", "src": "2770:31:7" } ] }, "documentation": null, - "id": 3980, + "id": 3978, "implemented": true, "kind": "function", "modifiers": [], "name": "_pull", "nodeType": "FunctionDefinition", "parameters": { - "id": 3969, + "id": 3967, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3966, + "id": 3964, "name": "from", "nodeType": "VariableDeclaration", - "scope": 3980, + "scope": 3978, "src": "2727:12:7", "stateVariable": false, "storageLocation": "default", @@ -9748,7 +9748,7 @@ "typeString": "address" }, "typeName": { - "id": 3965, + "id": 3963, "name": "address", "nodeType": "ElementaryTypeName", "src": "2727:7:7", @@ -9763,10 +9763,10 @@ }, { "constant": false, - "id": 3968, + "id": 3966, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 3980, + "scope": 3978, "src": "2741:8:7", "stateVariable": false, "storageLocation": "default", @@ -9775,7 +9775,7 @@ "typeString": "uint256" }, "typeName": { - "id": 3967, + "id": 3965, "name": "uint", "nodeType": "ElementaryTypeName", "src": "2741:4:7", @@ -9791,19 +9791,19 @@ "src": "2726:24:7" }, "returnParameters": { - "id": 3970, + "id": 3968, "nodeType": "ParameterList", "parameters": [], "src": "2760:0:7" }, - "scope": 3981, + "scope": 3979, "src": "2712:96:7", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" } ], - "scope": 4288, + "scope": 4286, "src": "1445:1365:7" }, { @@ -9812,17 +9812,17 @@ "arguments": null, "baseName": { "contractScope": null, - "id": 3982, + "id": 3980, "name": "BTokenBase", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 3981, + "referencedDeclaration": 3979, "src": "2831:10:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_BTokenBase_$3981", + "typeIdentifier": "t_contract$_BTokenBase_$3979", "typeString": "contract BTokenBase" } }, - "id": 3983, + "id": 3981, "nodeType": "InheritanceSpecifier", "src": "2831:10:7" }, @@ -9830,47 +9830,47 @@ "arguments": null, "baseName": { "contractScope": null, - "id": 3984, + "id": 3982, "name": "IERC20", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 6778, + "referencedDeclaration": 6537, "src": "2843:6:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_IERC20_$6778", + "typeIdentifier": "t_contract$_IERC20_$6537", "typeString": "contract IERC20" } }, - "id": 3985, + "id": 3983, "nodeType": "InheritanceSpecifier", "src": "2843:6:7" } ], "contractDependencies": [ - 284, - 1438, - 3981, - 6778 + 280, + 1422, + 3979, + 6537 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, - "id": 4287, + "id": 4285, "linearizedBaseContracts": [ - 4287, - 6778, - 3981, - 1438, - 284 + 4285, + 6537, + 3979, + 1422, + 280 ], "name": "BToken", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, - "id": 3988, + "id": 3986, "name": "_name", "nodeType": "VariableDeclaration", - "scope": 4287, + "scope": 4285, "src": "2857:49:7", "stateVariable": true, "storageLocation": "default", @@ -9879,7 +9879,7 @@ "typeString": "string" }, "typeName": { - "id": 3986, + "id": 3984, "name": "string", "nodeType": "ElementaryTypeName", "src": "2857:6:7", @@ -9891,7 +9891,7 @@ "value": { "argumentTypes": null, "hexValue": "42616c616e63657220506f6f6c20546f6b656e", - "id": 3987, + "id": 3985, "isConstant": false, "isLValue": false, "isPure": true, @@ -9910,10 +9910,10 @@ }, { "constant": false, - "id": 3991, + "id": 3989, "name": "_symbol", "nodeType": "VariableDeclaration", - "scope": 4287, + "scope": 4285, "src": "2912:33:7", "stateVariable": true, "storageLocation": "default", @@ -9922,7 +9922,7 @@ "typeString": "string" }, "typeName": { - "id": 3989, + "id": 3987, "name": "string", "nodeType": "ElementaryTypeName", "src": "2912:6:7", @@ -9934,7 +9934,7 @@ "value": { "argumentTypes": null, "hexValue": "425054", - "id": 3990, + "id": 3988, "isConstant": false, "isLValue": false, "isPure": true, @@ -9953,10 +9953,10 @@ }, { "constant": false, - "id": 3994, + "id": 3992, "name": "_decimals", "nodeType": "VariableDeclaration", - "scope": 4287, + "scope": 4285, "src": "2951:30:7", "stateVariable": true, "storageLocation": "default", @@ -9965,7 +9965,7 @@ "typeString": "uint8" }, "typeName": { - "id": 3992, + "id": 3990, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "2951:5:7", @@ -9977,7 +9977,7 @@ "value": { "argumentTypes": null, "hexValue": "3138", - "id": 3993, + "id": 3991, "isConstant": false, "isLValue": false, "isPure": true, @@ -9996,54 +9996,54 @@ }, { "body": { - "id": 4001, + "id": 3999, "nodeType": "Block", "src": "3040:29:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 3999, + "id": 3997, "name": "_name", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3988, + "referencedDeclaration": 3986, "src": "3057:5:7", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, - "functionReturnParameters": 3998, - "id": 4000, + "functionReturnParameters": 3996, + "id": 3998, "nodeType": "Return", "src": "3050:12:7" } ] }, "documentation": null, - "id": 4002, + "id": 4000, "implemented": true, "kind": "function", "modifiers": [], "name": "name", "nodeType": "FunctionDefinition", "parameters": { - "id": 3995, + "id": 3993, "nodeType": "ParameterList", "parameters": [], "src": "3001:2:7" }, "returnParameters": { - "id": 3998, + "id": 3996, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 3997, + "id": 3995, "name": "", "nodeType": "VariableDeclaration", - "scope": 4002, + "scope": 4000, "src": "3025:13:7", "stateVariable": false, "storageLocation": "memory", @@ -10052,7 +10052,7 @@ "typeString": "string" }, "typeName": { - "id": 3996, + "id": 3994, "name": "string", "nodeType": "ElementaryTypeName", "src": "3025:6:7", @@ -10067,7 +10067,7 @@ ], "src": "3024:15:7" }, - "scope": 4287, + "scope": 4285, "src": "2988:81:7", "stateMutability": "view", "superFunction": null, @@ -10075,54 +10075,54 @@ }, { "body": { - "id": 4009, + "id": 4007, "nodeType": "Block", "src": "3129:31:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4007, + "id": 4005, "name": "_symbol", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3991, + "referencedDeclaration": 3989, "src": "3146:7:7", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, - "functionReturnParameters": 4006, - "id": 4008, + "functionReturnParameters": 4004, + "id": 4006, "nodeType": "Return", "src": "3139:14:7" } ] }, "documentation": null, - "id": 4010, + "id": 4008, "implemented": true, "kind": "function", "modifiers": [], "name": "symbol", "nodeType": "FunctionDefinition", "parameters": { - "id": 4003, + "id": 4001, "nodeType": "ParameterList", "parameters": [], "src": "3090:2:7" }, "returnParameters": { - "id": 4006, + "id": 4004, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4005, + "id": 4003, "name": "", "nodeType": "VariableDeclaration", - "scope": 4010, + "scope": 4008, "src": "3114:13:7", "stateVariable": false, "storageLocation": "memory", @@ -10131,7 +10131,7 @@ "typeString": "string" }, "typeName": { - "id": 4004, + "id": 4002, "name": "string", "nodeType": "ElementaryTypeName", "src": "3114:6:7", @@ -10146,7 +10146,7 @@ ], "src": "3113:15:7" }, - "scope": 4287, + "scope": 4285, "src": "3075:85:7", "stateMutability": "view", "superFunction": null, @@ -10154,54 +10154,54 @@ }, { "body": { - "id": 4017, + "id": 4015, "nodeType": "Block", "src": "3213:33:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4015, + "id": 4013, "name": "_decimals", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3994, + "referencedDeclaration": 3992, "src": "3230:9:7", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, - "functionReturnParameters": 4014, - "id": 4016, + "functionReturnParameters": 4012, + "id": 4014, "nodeType": "Return", "src": "3223:16:7" } ] }, "documentation": null, - "id": 4018, + "id": 4016, "implemented": true, "kind": "function", "modifiers": [], "name": "decimals", "nodeType": "FunctionDefinition", "parameters": { - "id": 4011, + "id": 4009, "nodeType": "ParameterList", "parameters": [], "src": "3183:2:7" }, "returnParameters": { - "id": 4014, + "id": 4012, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4013, + "id": 4011, "name": "", "nodeType": "VariableDeclaration", - "scope": 4018, + "scope": 4016, "src": "3206:5:7", "stateVariable": false, "storageLocation": "default", @@ -10210,7 +10210,7 @@ "typeString": "uint8" }, "typeName": { - "id": 4012, + "id": 4010, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "3206:5:7", @@ -10225,7 +10225,7 @@ ], "src": "3205:7:7" }, - "scope": 4287, + "scope": 4285, "src": "3166:80:7", "stateMutability": "view", "superFunction": null, @@ -10233,7 +10233,7 @@ }, { "body": { - "id": 4033, + "id": 4031, "nodeType": "Block", "src": "3326:44:7", "statements": [ @@ -10244,25 +10244,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4027, + "id": 4025, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "3343:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4029, + "id": 4027, "indexExpression": { "argumentTypes": null, - "id": 4028, + "id": 4026, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4020, + "referencedDeclaration": 4018, "src": "3354:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10280,14 +10280,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4031, + "id": 4029, "indexExpression": { "argumentTypes": null, - "id": 4030, + "id": 4028, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4022, + "referencedDeclaration": 4020, "src": "3359:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10305,30 +10305,30 @@ "typeString": "uint256" } }, - "functionReturnParameters": 4026, - "id": 4032, + "functionReturnParameters": 4024, + "id": 4030, "nodeType": "Return", "src": "3336:27:7" } ] }, "documentation": null, - "id": 4034, + "id": 4032, "implemented": true, "kind": "function", "modifiers": [], "name": "allowance", "nodeType": "FunctionDefinition", "parameters": { - "id": 4023, + "id": 4021, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4020, + "id": 4018, "name": "src", "nodeType": "VariableDeclaration", - "scope": 4034, + "scope": 4032, "src": "3271:11:7", "stateVariable": false, "storageLocation": "default", @@ -10337,7 +10337,7 @@ "typeString": "address" }, "typeName": { - "id": 4019, + "id": 4017, "name": "address", "nodeType": "ElementaryTypeName", "src": "3271:7:7", @@ -10352,10 +10352,10 @@ }, { "constant": false, - "id": 4022, + "id": 4020, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 4034, + "scope": 4032, "src": "3284:11:7", "stateVariable": false, "storageLocation": "default", @@ -10364,7 +10364,7 @@ "typeString": "address" }, "typeName": { - "id": 4021, + "id": 4019, "name": "address", "nodeType": "ElementaryTypeName", "src": "3284:7:7", @@ -10381,15 +10381,15 @@ "src": "3270:26:7" }, "returnParameters": { - "id": 4026, + "id": 4024, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4025, + "id": 4023, "name": "", "nodeType": "VariableDeclaration", - "scope": 4034, + "scope": 4032, "src": "3320:4:7", "stateVariable": false, "storageLocation": "default", @@ -10398,7 +10398,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4024, + "id": 4022, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3320:4:7", @@ -10413,15 +10413,15 @@ ], "src": "3319:6:7" }, - "scope": 4287, + "scope": 4285, "src": "3252:118:7", "stateMutability": "view", - "superFunction": 6741, + "superFunction": 6500, "visibility": "external" }, { "body": { - "id": 4045, + "id": 4043, "nodeType": "Block", "src": "3438:38:7", "statements": [ @@ -10430,25 +10430,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4041, + "id": 4039, "name": "_balance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3790, + "referencedDeclaration": 3788, "src": "3455:8:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 4043, + "id": 4041, "indexExpression": { "argumentTypes": null, - "id": 4042, + "id": 4040, "name": "whom", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4036, + "referencedDeclaration": 4034, "src": "3464:4:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10466,30 +10466,30 @@ "typeString": "uint256" } }, - "functionReturnParameters": 4040, - "id": 4044, + "functionReturnParameters": 4038, + "id": 4042, "nodeType": "Return", "src": "3448:21:7" } ] }, "documentation": null, - "id": 4046, + "id": 4044, "implemented": true, "kind": "function", "modifiers": [], "name": "balanceOf", "nodeType": "FunctionDefinition", "parameters": { - "id": 4037, + "id": 4035, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4036, + "id": 4034, "name": "whom", "nodeType": "VariableDeclaration", - "scope": 4046, + "scope": 4044, "src": "3395:12:7", "stateVariable": false, "storageLocation": "default", @@ -10498,7 +10498,7 @@ "typeString": "address" }, "typeName": { - "id": 4035, + "id": 4033, "name": "address", "nodeType": "ElementaryTypeName", "src": "3395:7:7", @@ -10515,15 +10515,15 @@ "src": "3394:14:7" }, "returnParameters": { - "id": 4040, + "id": 4038, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4039, + "id": 4037, "name": "", "nodeType": "VariableDeclaration", - "scope": 4046, + "scope": 4044, "src": "3432:4:7", "stateVariable": false, "storageLocation": "default", @@ -10532,7 +10532,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4038, + "id": 4036, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3432:4:7", @@ -10547,62 +10547,62 @@ ], "src": "3431:6:7" }, - "scope": 4287, + "scope": 4285, "src": "3376:100:7", "stateMutability": "view", - "superFunction": 6723, + "superFunction": 6482, "visibility": "external" }, { "body": { - "id": 4053, + "id": 4051, "nodeType": "Block", "src": "3532:36:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4051, + "id": 4049, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3798, + "referencedDeclaration": 3796, "src": "3549:12:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 4050, - "id": 4052, + "functionReturnParameters": 4048, + "id": 4050, "nodeType": "Return", "src": "3542:19:7" } ] }, "documentation": null, - "id": 4054, + "id": 4052, "implemented": true, "kind": "function", "modifiers": [], "name": "totalSupply", "nodeType": "FunctionDefinition", "parameters": { - "id": 4047, + "id": 4045, "nodeType": "ParameterList", "parameters": [], "src": "3502:2:7" }, "returnParameters": { - "id": 4050, + "id": 4048, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4049, + "id": 4047, "name": "", "nodeType": "VariableDeclaration", - "scope": 4054, + "scope": 4052, "src": "3526:4:7", "stateVariable": false, "storageLocation": "default", @@ -10611,7 +10611,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4048, + "id": 4046, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3526:4:7", @@ -10626,22 +10626,22 @@ ], "src": "3525:6:7" }, - "scope": 4287, + "scope": 4285, "src": "3482:86:7", "stateMutability": "view", - "superFunction": 6716, + "superFunction": 6475, "visibility": "public" }, { "body": { - "id": 4081, + "id": 4079, "nodeType": "Block", "src": "3638:116:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4070, + "id": 4068, "isConstant": false, "isLValue": false, "isPure": false, @@ -10652,34 +10652,34 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4063, + "id": 4061, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "3648:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4067, + "id": 4065, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4064, + "id": 4062, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "3659:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4065, + "id": 4063, "isConstant": false, "isLValue": false, "isPure": false, @@ -10704,14 +10704,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4068, + "id": 4066, "indexExpression": { "argumentTypes": null, - "id": 4066, + "id": 4064, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4056, + "referencedDeclaration": 4054, "src": "3671:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10733,11 +10733,11 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 4069, + "id": 4067, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4058, + "referencedDeclaration": 4056, "src": "3678:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10750,7 +10750,7 @@ "typeString": "uint256" } }, - "id": 4071, + "id": 4069, "nodeType": "ExpressionStatement", "src": "3648:33:7" }, @@ -10762,18 +10762,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4073, + "id": 4071, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "3705:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4074, + "id": 4072, "isConstant": false, "isLValue": false, "isPure": false, @@ -10789,11 +10789,11 @@ }, { "argumentTypes": null, - "id": 4075, + "id": 4073, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4056, + "referencedDeclaration": 4054, "src": "3717:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10802,11 +10802,11 @@ }, { "argumentTypes": null, - "id": 4076, + "id": 4074, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4058, + "referencedDeclaration": 4056, "src": "3722:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -10829,20 +10829,20 @@ "typeString": "uint256" } ], - "id": 4072, + "id": 4070, "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6777 + 6536 ], - "referencedDeclaration": 6777, + "referencedDeclaration": 6536, "src": "3696:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 4077, + "id": 4075, "isConstant": false, "isLValue": false, "isPure": false, @@ -10856,7 +10856,7 @@ "typeString": "tuple()" } }, - "id": 4078, + "id": 4076, "nodeType": "EmitStatement", "src": "3691:35:7" }, @@ -10864,7 +10864,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 4079, + "id": 4077, "isConstant": false, "isLValue": false, "isPure": true, @@ -10879,30 +10879,30 @@ }, "value": "true" }, - "functionReturnParameters": 4062, - "id": 4080, + "functionReturnParameters": 4060, + "id": 4078, "nodeType": "Return", "src": "3736:11:7" } ] }, "documentation": null, - "id": 4082, + "id": 4080, "implemented": true, "kind": "function", "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { - "id": 4059, + "id": 4057, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4056, + "id": 4054, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 4082, + "scope": 4080, "src": "3591:11:7", "stateVariable": false, "storageLocation": "default", @@ -10911,7 +10911,7 @@ "typeString": "address" }, "typeName": { - "id": 4055, + "id": 4053, "name": "address", "nodeType": "ElementaryTypeName", "src": "3591:7:7", @@ -10926,10 +10926,10 @@ }, { "constant": false, - "id": 4058, + "id": 4056, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 4082, + "scope": 4080, "src": "3604:8:7", "stateVariable": false, "storageLocation": "default", @@ -10938,7 +10938,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4057, + "id": 4055, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3604:4:7", @@ -10954,15 +10954,15 @@ "src": "3590:23:7" }, "returnParameters": { - "id": 4062, + "id": 4060, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4061, + "id": 4059, "name": "", "nodeType": "VariableDeclaration", - "scope": 4082, + "scope": 4080, "src": "3632:4:7", "stateVariable": false, "storageLocation": "default", @@ -10971,7 +10971,7 @@ "typeString": "bool" }, "typeName": { - "id": 4060, + "id": 4058, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3632:4:7", @@ -10986,22 +10986,22 @@ ], "src": "3631:6:7" }, - "scope": 4287, + "scope": 4285, "src": "3574:180:7", "stateMutability": "nonpayable", - "superFunction": 6750, + "superFunction": 6509, "visibility": "external" }, { "body": { - "id": 4122, + "id": 4120, "nodeType": "Block", "src": "3833:175:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4106, + "id": 4104, "isConstant": false, "isLValue": false, "isPure": false, @@ -11012,34 +11012,34 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4091, + "id": 4089, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "3843:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4095, + "id": 4093, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4092, + "id": 4090, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "3854:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4093, + "id": 4091, "isConstant": false, "isLValue": false, "isPure": false, @@ -11064,14 +11064,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4096, + "id": 4094, "indexExpression": { "argumentTypes": null, - "id": 4094, + "id": 4092, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4084, + "referencedDeclaration": 4082, "src": "3866:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -11100,34 +11100,34 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4098, + "id": 4096, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "3878:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4101, + "id": 4099, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4099, + "id": 4097, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "3889:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4100, + "id": 4098, "isConstant": false, "isLValue": false, "isPure": false, @@ -11152,14 +11152,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4103, + "id": 4101, "indexExpression": { "argumentTypes": null, - "id": 4102, + "id": 4100, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4084, + "referencedDeclaration": 4082, "src": "3901:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -11179,11 +11179,11 @@ }, { "argumentTypes": null, - "id": 4104, + "id": 4102, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4086, + "referencedDeclaration": 4084, "src": "3907:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11202,18 +11202,18 @@ "typeString": "uint256" } ], - "id": 4097, + "id": 4095, "name": "badd", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1017, + "referencedDeclaration": 1001, "src": "3873:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 4105, + "id": 4103, "isConstant": false, "isLValue": false, "isPure": false, @@ -11233,7 +11233,7 @@ "typeString": "uint256" } }, - "id": 4107, + "id": 4105, "nodeType": "ExpressionStatement", "src": "3843:68:7" }, @@ -11245,18 +11245,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4109, + "id": 4107, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "3935:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4110, + "id": 4108, "isConstant": false, "isLValue": false, "isPure": false, @@ -11272,11 +11272,11 @@ }, { "argumentTypes": null, - "id": 4111, + "id": 4109, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4084, + "referencedDeclaration": 4082, "src": "3947:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -11289,34 +11289,34 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4112, + "id": 4110, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "3952:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4115, + "id": 4113, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4113, + "id": 4111, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "3963:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4114, + "id": 4112, "isConstant": false, "isLValue": false, "isPure": false, @@ -11341,14 +11341,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4117, + "id": 4115, "indexExpression": { "argumentTypes": null, - "id": 4116, + "id": 4114, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4084, + "referencedDeclaration": 4082, "src": "3975:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -11382,20 +11382,20 @@ "typeString": "uint256" } ], - "id": 4108, + "id": 4106, "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6777 + 6536 ], - "referencedDeclaration": 6777, + "referencedDeclaration": 6536, "src": "3926:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 4118, + "id": 4116, "isConstant": false, "isLValue": false, "isPure": false, @@ -11409,7 +11409,7 @@ "typeString": "tuple()" } }, - "id": 4119, + "id": 4117, "nodeType": "EmitStatement", "src": "3921:59:7" }, @@ -11417,7 +11417,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 4120, + "id": 4118, "isConstant": false, "isLValue": false, "isPure": true, @@ -11432,30 +11432,30 @@ }, "value": "true" }, - "functionReturnParameters": 4090, - "id": 4121, + "functionReturnParameters": 4088, + "id": 4119, "nodeType": "Return", "src": "3990:11:7" } ] }, "documentation": null, - "id": 4123, + "id": 4121, "implemented": true, "kind": "function", "modifiers": [], "name": "increaseApproval", "nodeType": "FunctionDefinition", "parameters": { - "id": 4087, + "id": 4085, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4084, + "id": 4082, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 4123, + "scope": 4121, "src": "3786:11:7", "stateVariable": false, "storageLocation": "default", @@ -11464,7 +11464,7 @@ "typeString": "address" }, "typeName": { - "id": 4083, + "id": 4081, "name": "address", "nodeType": "ElementaryTypeName", "src": "3786:7:7", @@ -11479,10 +11479,10 @@ }, { "constant": false, - "id": 4086, + "id": 4084, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 4123, + "scope": 4121, "src": "3799:8:7", "stateVariable": false, "storageLocation": "default", @@ -11491,7 +11491,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4085, + "id": 4083, "name": "uint", "nodeType": "ElementaryTypeName", "src": "3799:4:7", @@ -11507,15 +11507,15 @@ "src": "3785:23:7" }, "returnParameters": { - "id": 4090, + "id": 4088, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4089, + "id": 4087, "name": "", "nodeType": "VariableDeclaration", - "scope": 4123, + "scope": 4121, "src": "3827:4:7", "stateVariable": false, "storageLocation": "default", @@ -11524,7 +11524,7 @@ "typeString": "bool" }, "typeName": { - "id": 4088, + "id": 4086, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3827:4:7", @@ -11539,7 +11539,7 @@ ], "src": "3826:6:7" }, - "scope": 4287, + "scope": 4285, "src": "3760:248:7", "stateMutability": "nonpayable", "superFunction": null, @@ -11547,21 +11547,21 @@ }, { "body": { - "id": 4182, + "id": 4180, "nodeType": "Block", "src": "4087:315:7", "statements": [ { "assignments": [ - 4133 + 4131 ], "declarations": [ { "constant": false, - "id": 4133, + "id": 4131, "name": "oldValue", "nodeType": "VariableDeclaration", - "scope": 4182, + "scope": 4180, "src": "4097:13:7", "stateVariable": false, "storageLocation": "default", @@ -11570,7 +11570,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4132, + "id": 4130, "name": "uint", "nodeType": "ElementaryTypeName", "src": "4097:4:7", @@ -11583,41 +11583,41 @@ "visibility": "internal" } ], - "id": 4140, + "id": 4138, "initialValue": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4134, + "id": 4132, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4113:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4137, + "id": 4135, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4135, + "id": 4133, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4124:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4136, + "id": 4134, "isConstant": false, "isLValue": false, "isPure": false, @@ -11642,14 +11642,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4139, + "id": 4137, "indexExpression": { "argumentTypes": null, - "id": 4138, + "id": 4136, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4125, + "referencedDeclaration": 4123, "src": "4136:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -11677,18 +11677,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 4143, + "id": 4141, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 4141, + "id": 4139, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4127, + "referencedDeclaration": 4125, "src": "4154:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11699,11 +11699,11 @@ "operator": ">", "rightExpression": { "argumentTypes": null, - "id": 4142, + "id": 4140, "name": "oldValue", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4133, + "referencedDeclaration": 4131, "src": "4160:8:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11717,14 +11717,14 @@ } }, "falseBody": { - "id": 4166, + "id": 4164, "nodeType": "Block", "src": "4232:74:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4164, + "id": 4162, "isConstant": false, "isLValue": false, "isPure": false, @@ -11735,34 +11735,34 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4154, + "id": 4152, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4246:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4158, + "id": 4156, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4155, + "id": 4153, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4257:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4156, + "id": 4154, "isConstant": false, "isLValue": false, "isPure": false, @@ -11787,14 +11787,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4159, + "id": 4157, "indexExpression": { "argumentTypes": null, - "id": 4157, + "id": 4155, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4125, + "referencedDeclaration": 4123, "src": "4269:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -11819,11 +11819,11 @@ "arguments": [ { "argumentTypes": null, - "id": 4161, + "id": 4159, "name": "oldValue", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4133, + "referencedDeclaration": 4131, "src": "4281:8:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11832,11 +11832,11 @@ }, { "argumentTypes": null, - "id": 4162, + "id": 4160, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4127, + "referencedDeclaration": 4125, "src": "4291:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -11855,18 +11855,18 @@ "typeString": "uint256" } ], - "id": 4160, + "id": 4158, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "4276:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 4163, + "id": 4161, "isConstant": false, "isLValue": false, "isPure": false, @@ -11886,24 +11886,24 @@ "typeString": "uint256" } }, - "id": 4165, + "id": 4163, "nodeType": "ExpressionStatement", "src": "4246:49:7" } ] }, - "id": 4167, + "id": 4165, "nodeType": "IfStatement", "src": "4150:156:7", "trueBody": { - "id": 4153, + "id": 4151, "nodeType": "Block", "src": "4170:56:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4151, + "id": 4149, "isConstant": false, "isLValue": false, "isPure": false, @@ -11914,34 +11914,34 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4144, + "id": 4142, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4184:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4148, + "id": 4146, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4145, + "id": 4143, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4195:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4146, + "id": 4144, "isConstant": false, "isLValue": false, "isPure": false, @@ -11966,14 +11966,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4149, + "id": 4147, "indexExpression": { "argumentTypes": null, - "id": 4147, + "id": 4145, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4125, + "referencedDeclaration": 4123, "src": "4207:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -11996,7 +11996,7 @@ "rightHandSide": { "argumentTypes": null, "hexValue": "30", - "id": 4150, + "id": 4148, "isConstant": false, "isLValue": false, "isPure": true, @@ -12017,7 +12017,7 @@ "typeString": "uint256" } }, - "id": 4152, + "id": 4150, "nodeType": "ExpressionStatement", "src": "4184:31:7" } @@ -12032,18 +12032,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4169, + "id": 4167, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4329:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4170, + "id": 4168, "isConstant": false, "isLValue": false, "isPure": false, @@ -12059,11 +12059,11 @@ }, { "argumentTypes": null, - "id": 4171, + "id": 4169, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4125, + "referencedDeclaration": 4123, "src": "4341:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -12076,34 +12076,34 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4172, + "id": 4170, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4346:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4175, + "id": 4173, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4173, + "id": 4171, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4357:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4174, + "id": 4172, "isConstant": false, "isLValue": false, "isPure": false, @@ -12128,14 +12128,14 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4177, + "id": 4175, "indexExpression": { "argumentTypes": null, - "id": 4176, + "id": 4174, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4125, + "referencedDeclaration": 4123, "src": "4369:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -12169,20 +12169,20 @@ "typeString": "uint256" } ], - "id": 4168, + "id": 4166, "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6777 + 6536 ], - "referencedDeclaration": 6777, + "referencedDeclaration": 6536, "src": "4320:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 4178, + "id": 4176, "isConstant": false, "isLValue": false, "isPure": false, @@ -12196,7 +12196,7 @@ "typeString": "tuple()" } }, - "id": 4179, + "id": 4177, "nodeType": "EmitStatement", "src": "4315:59:7" }, @@ -12204,7 +12204,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 4180, + "id": 4178, "isConstant": false, "isLValue": false, "isPure": true, @@ -12219,30 +12219,30 @@ }, "value": "true" }, - "functionReturnParameters": 4131, - "id": 4181, + "functionReturnParameters": 4129, + "id": 4179, "nodeType": "Return", "src": "4384:11:7" } ] }, "documentation": null, - "id": 4183, + "id": 4181, "implemented": true, "kind": "function", "modifiers": [], "name": "decreaseApproval", "nodeType": "FunctionDefinition", "parameters": { - "id": 4128, + "id": 4126, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4125, + "id": 4123, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 4183, + "scope": 4181, "src": "4040:11:7", "stateVariable": false, "storageLocation": "default", @@ -12251,7 +12251,7 @@ "typeString": "address" }, "typeName": { - "id": 4124, + "id": 4122, "name": "address", "nodeType": "ElementaryTypeName", "src": "4040:7:7", @@ -12266,10 +12266,10 @@ }, { "constant": false, - "id": 4127, + "id": 4125, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 4183, + "scope": 4181, "src": "4053:8:7", "stateVariable": false, "storageLocation": "default", @@ -12278,7 +12278,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4126, + "id": 4124, "name": "uint", "nodeType": "ElementaryTypeName", "src": "4053:4:7", @@ -12294,15 +12294,15 @@ "src": "4039:23:7" }, "returnParameters": { - "id": 4131, + "id": 4129, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4130, + "id": 4128, "name": "", "nodeType": "VariableDeclaration", - "scope": 4183, + "scope": 4181, "src": "4081:4:7", "stateVariable": false, "storageLocation": "default", @@ -12311,7 +12311,7 @@ "typeString": "bool" }, "typeName": { - "id": 4129, + "id": 4127, "name": "bool", "nodeType": "ElementaryTypeName", "src": "4081:4:7", @@ -12326,7 +12326,7 @@ ], "src": "4080:6:7" }, - "scope": 4287, + "scope": 4285, "src": "4014:388:7", "stateMutability": "nonpayable", "superFunction": null, @@ -12334,7 +12334,7 @@ }, { "body": { - "id": 4201, + "id": 4199, "nodeType": "Block", "src": "4473:65:7", "statements": [ @@ -12346,18 +12346,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4193, + "id": 4191, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4489:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4194, + "id": 4192, "isConstant": false, "isLValue": false, "isPure": false, @@ -12373,11 +12373,11 @@ }, { "argumentTypes": null, - "id": 4195, + "id": 4193, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4185, + "referencedDeclaration": 4183, "src": "4501:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -12386,11 +12386,11 @@ }, { "argumentTypes": null, - "id": 4196, + "id": 4194, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4187, + "referencedDeclaration": 4185, "src": "4506:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12413,18 +12413,18 @@ "typeString": "uint256" } ], - "id": 4192, + "id": 4190, "name": "_move", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3948, + "referencedDeclaration": 3946, "src": "4483:5:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 4197, + "id": 4195, "isConstant": false, "isLValue": false, "isPure": false, @@ -12438,7 +12438,7 @@ "typeString": "tuple()" } }, - "id": 4198, + "id": 4196, "nodeType": "ExpressionStatement", "src": "4483:27:7" }, @@ -12446,7 +12446,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 4199, + "id": 4197, "isConstant": false, "isLValue": false, "isPure": true, @@ -12461,30 +12461,30 @@ }, "value": "true" }, - "functionReturnParameters": 4191, - "id": 4200, + "functionReturnParameters": 4189, + "id": 4198, "nodeType": "Return", "src": "4520:11:7" } ] }, "documentation": null, - "id": 4202, + "id": 4200, "implemented": true, "kind": "function", "modifiers": [], "name": "transfer", "nodeType": "FunctionDefinition", "parameters": { - "id": 4188, + "id": 4186, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4185, + "id": 4183, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 4202, + "scope": 4200, "src": "4426:11:7", "stateVariable": false, "storageLocation": "default", @@ -12493,7 +12493,7 @@ "typeString": "address" }, "typeName": { - "id": 4184, + "id": 4182, "name": "address", "nodeType": "ElementaryTypeName", "src": "4426:7:7", @@ -12508,10 +12508,10 @@ }, { "constant": false, - "id": 4187, + "id": 4185, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 4202, + "scope": 4200, "src": "4439:8:7", "stateVariable": false, "storageLocation": "default", @@ -12520,7 +12520,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4186, + "id": 4184, "name": "uint", "nodeType": "ElementaryTypeName", "src": "4439:4:7", @@ -12536,15 +12536,15 @@ "src": "4425:23:7" }, "returnParameters": { - "id": 4191, + "id": 4189, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4190, + "id": 4188, "name": "", "nodeType": "VariableDeclaration", - "scope": 4202, + "scope": 4200, "src": "4467:4:7", "stateVariable": false, "storageLocation": "default", @@ -12553,7 +12553,7 @@ "typeString": "bool" }, "typeName": { - "id": 4189, + "id": 4187, "name": "bool", "nodeType": "ElementaryTypeName", "src": "4467:4:7", @@ -12568,15 +12568,15 @@ ], "src": "4466:6:7" }, - "scope": 4287, + "scope": 4285, "src": "4408:130:7", "stateMutability": "nonpayable", - "superFunction": 6732, + "superFunction": 6491, "visibility": "external" }, { "body": { - "id": 4285, + "id": 4283, "nodeType": "Block", "src": "4673:436:7", "statements": [ @@ -12590,7 +12590,7 @@ "typeIdentifier": "t_bool", "typeString": "bool" }, - "id": 4226, + "id": 4224, "isConstant": false, "isLValue": false, "isPure": false, @@ -12601,7 +12601,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 4217, + "id": 4215, "isConstant": false, "isLValue": false, "isPure": false, @@ -12610,18 +12610,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4214, + "id": 4212, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4704:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4215, + "id": 4213, "isConstant": false, "isLValue": false, "isPure": false, @@ -12639,11 +12639,11 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 4216, + "id": 4214, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "4718:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -12664,18 +12664,18 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 4225, + "id": 4223, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 4218, + "id": 4216, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4208, + "referencedDeclaration": 4206, "src": "4725:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12690,25 +12690,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4219, + "id": 4217, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4732:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4221, + "id": 4219, "indexExpression": { "argumentTypes": null, - "id": 4220, + "id": 4218, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "4743:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -12726,23 +12726,23 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4224, + "id": 4222, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4222, + "id": 4220, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4748:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4223, + "id": 4221, "isConstant": false, "isLValue": false, "isPure": false, @@ -12782,7 +12782,7 @@ { "argumentTypes": null, "hexValue": "4552525f42544f4b454e5f4241445f43414c4c4552", - "id": 4227, + "id": 4225, "isConstant": false, "isLValue": false, "isPure": true, @@ -12809,21 +12809,21 @@ "typeString": "literal_string \"ERR_BTOKEN_BAD_CALLER\"" } ], - "id": 4213, + "id": 4211, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, + "referencedDeclaration": 6556, "src": "4683:7:7", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 4228, + "id": 4226, "isConstant": false, "isLValue": false, "isPure": false, @@ -12837,7 +12837,7 @@ "typeString": "tuple()" } }, - "id": 4229, + "id": 4227, "nodeType": "ExpressionStatement", "src": "4683:124:7" }, @@ -12847,11 +12847,11 @@ "arguments": [ { "argumentTypes": null, - "id": 4231, + "id": 4229, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "4823:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -12860,11 +12860,11 @@ }, { "argumentTypes": null, - "id": 4232, + "id": 4230, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4206, + "referencedDeclaration": 4204, "src": "4828:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -12873,11 +12873,11 @@ }, { "argumentTypes": null, - "id": 4233, + "id": 4231, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4208, + "referencedDeclaration": 4206, "src": "4833:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -12900,18 +12900,18 @@ "typeString": "uint256" } ], - "id": 4230, + "id": 4228, "name": "_move", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3948, + "referencedDeclaration": 3946, "src": "4817:5:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 4234, + "id": 4232, "isConstant": false, "isLValue": false, "isPure": false, @@ -12925,7 +12925,7 @@ "typeString": "tuple()" } }, - "id": 4235, + "id": 4233, "nodeType": "ExpressionStatement", "src": "4817:20:7" }, @@ -12936,7 +12936,7 @@ "typeIdentifier": "t_bool", "typeString": "bool" }, - "id": 4251, + "id": 4249, "isConstant": false, "isLValue": false, "isPure": false, @@ -12947,7 +12947,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 4239, + "id": 4237, "isConstant": false, "isLValue": false, "isPure": false, @@ -12956,18 +12956,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4236, + "id": 4234, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4851:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4237, + "id": 4235, "isConstant": false, "isLValue": false, "isPure": false, @@ -12985,11 +12985,11 @@ "operator": "!=", "rightExpression": { "argumentTypes": null, - "id": 4238, + "id": 4236, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "4865:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -13010,7 +13010,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 4250, + "id": 4248, "isConstant": false, "isLValue": false, "isPure": false, @@ -13021,25 +13021,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4240, + "id": 4238, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4872:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4242, + "id": 4240, "indexExpression": { "argumentTypes": null, - "id": 4241, + "id": 4239, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "4883:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -13057,23 +13057,23 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4245, + "id": 4243, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4243, + "id": 4241, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4888:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4244, + "id": 4242, "isConstant": false, "isLValue": false, "isPure": false, @@ -13105,7 +13105,7 @@ "arguments": [ { "argumentTypes": null, - "id": 4248, + "id": 4246, "isConstant": false, "isLValue": false, "isPure": true, @@ -13117,7 +13117,7 @@ "subExpression": { "argumentTypes": null, "hexValue": "31", - "id": 4247, + "id": 4245, "isConstant": false, "isLValue": false, "isPure": true, @@ -13145,7 +13145,7 @@ "typeString": "int_const -1" } ], - "id": 4246, + "id": 4244, "isConstant": false, "isLValue": false, "isPure": true, @@ -13158,7 +13158,7 @@ }, "typeName": "uint256" }, - "id": 4249, + "id": 4247, "isConstant": false, "isLValue": false, "isPure": true, @@ -13185,18 +13185,18 @@ } }, "falseBody": null, - "id": 4282, + "id": 4280, "nodeType": "IfStatement", "src": "4847:235:7", "trueBody": { - "id": 4281, + "id": 4279, "nodeType": "Block", "src": "4916:166:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 4267, + "id": 4265, "isConstant": false, "isLValue": false, "isPure": false, @@ -13207,25 +13207,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4252, + "id": 4250, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4930:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4256, + "id": 4254, "indexExpression": { "argumentTypes": null, - "id": 4253, + "id": 4251, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "4941:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -13243,23 +13243,23 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4257, + "id": 4255, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4254, + "id": 4252, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4946:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4255, + "id": 4253, "isConstant": false, "isLValue": false, "isPure": false, @@ -13295,25 +13295,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4259, + "id": 4257, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "4965:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4261, + "id": 4259, "indexExpression": { "argumentTypes": null, - "id": 4260, + "id": 4258, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "4976:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -13331,23 +13331,23 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4264, + "id": 4262, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4262, + "id": 4260, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "4981:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4263, + "id": 4261, "isConstant": false, "isLValue": false, "isPure": false, @@ -13374,11 +13374,11 @@ }, { "argumentTypes": null, - "id": 4265, + "id": 4263, "name": "amt", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4208, + "referencedDeclaration": 4206, "src": "4994:3:7", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -13397,18 +13397,18 @@ "typeString": "uint256" } ], - "id": 4258, + "id": 4256, "name": "bsub", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 1044, + "referencedDeclaration": 1028, "src": "4960:4:7", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, - "id": 4266, + "id": 4264, "isConstant": false, "isLValue": false, "isPure": false, @@ -13428,7 +13428,7 @@ "typeString": "uint256" } }, - "id": 4268, + "id": 4266, "nodeType": "ExpressionStatement", "src": "4930:68:7" }, @@ -13440,18 +13440,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4270, + "id": 4268, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "5026:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4271, + "id": 4269, "isConstant": false, "isLValue": false, "isPure": false, @@ -13467,11 +13467,11 @@ }, { "argumentTypes": null, - "id": 4272, + "id": 4270, "name": "dst", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4206, + "referencedDeclaration": 4204, "src": "5038:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -13484,25 +13484,25 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 4273, + "id": 4271, "name": "_allowance", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 3796, + "referencedDeclaration": 3794, "src": "5043:10:7", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 4275, + "id": 4273, "indexExpression": { "argumentTypes": null, - "id": 4274, + "id": 4272, "name": "src", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 4204, + "referencedDeclaration": 4202, "src": "5054:3:7", "typeDescriptions": { "typeIdentifier": "t_address", @@ -13520,23 +13520,23 @@ "typeString": "mapping(address => uint256)" } }, - "id": 4278, + "id": 4276, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 4276, + "id": 4274, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "5059:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 4277, + "id": 4275, "isConstant": false, "isLValue": false, "isPure": false, @@ -13577,20 +13577,20 @@ "typeString": "uint256" } ], - "id": 4269, + "id": 4267, "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [ - 6777 + 6536 ], - "referencedDeclaration": 6777, + "referencedDeclaration": 6536, "src": "5017:8:7", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 4279, + "id": 4277, "isConstant": false, "isLValue": false, "isPure": false, @@ -13604,7 +13604,7 @@ "typeString": "tuple()" } }, - "id": 4280, + "id": 4278, "nodeType": "EmitStatement", "src": "5012:59:7" } @@ -13615,7 +13615,7 @@ "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 4283, + "id": 4281, "isConstant": false, "isLValue": false, "isPure": true, @@ -13630,30 +13630,30 @@ }, "value": "true" }, - "functionReturnParameters": 4212, - "id": 4284, + "functionReturnParameters": 4210, + "id": 4282, "nodeType": "Return", "src": "5091:11:7" } ] }, "documentation": null, - "id": 4286, + "id": 4284, "implemented": true, "kind": "function", "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { - "id": 4209, + "id": 4207, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4204, + "id": 4202, "name": "src", "nodeType": "VariableDeclaration", - "scope": 4286, + "scope": 4284, "src": "4575:11:7", "stateVariable": false, "storageLocation": "default", @@ -13662,7 +13662,7 @@ "typeString": "address" }, "typeName": { - "id": 4203, + "id": 4201, "name": "address", "nodeType": "ElementaryTypeName", "src": "4575:7:7", @@ -13677,10 +13677,10 @@ }, { "constant": false, - "id": 4206, + "id": 4204, "name": "dst", "nodeType": "VariableDeclaration", - "scope": 4286, + "scope": 4284, "src": "4597:11:7", "stateVariable": false, "storageLocation": "default", @@ -13689,7 +13689,7 @@ "typeString": "address" }, "typeName": { - "id": 4205, + "id": 4203, "name": "address", "nodeType": "ElementaryTypeName", "src": "4597:7:7", @@ -13704,10 +13704,10 @@ }, { "constant": false, - "id": 4208, + "id": 4206, "name": "amt", "nodeType": "VariableDeclaration", - "scope": 4286, + "scope": 4284, "src": "4619:8:7", "stateVariable": false, "storageLocation": "default", @@ -13716,7 +13716,7 @@ "typeString": "uint256" }, "typeName": { - "id": 4207, + "id": 4205, "name": "uint", "nodeType": "ElementaryTypeName", "src": "4619:4:7", @@ -13732,15 +13732,15 @@ "src": "4565:68:7" }, "returnParameters": { - "id": 4212, + "id": 4210, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4211, + "id": 4209, "name": "", "nodeType": "VariableDeclaration", - "scope": 4286, + "scope": 4284, "src": "4662:4:7", "stateVariable": false, "storageLocation": "default", @@ -13749,7 +13749,7 @@ "typeString": "bool" }, "typeName": { - "id": 4210, + "id": 4208, "name": "bool", "nodeType": "ElementaryTypeName", "src": "4662:4:7", @@ -13764,14 +13764,14 @@ ], "src": "4661:6:7" }, - "scope": 4287, + "scope": 4285, "src": "4544:565:7", "stateMutability": "nonpayable", - "superFunction": 6761, + "superFunction": 6520, "visibility": "external" } ], - "scope": 4288, + "scope": 4286, "src": "2812:2299:7" } ], @@ -13783,7 +13783,7 @@ }, "networks": {}, "schemaVersion": "3.2.0", - "updatedAt": "2020-09-11T10:54:21.670Z", + "updatedAt": "2020-10-02T11:33:45.767Z", "devdoc": { "methods": {} }, diff --git a/artifacts/Context.json b/artifacts/Context.json index 5a2834f3a..06be1dacc 100644 --- a/artifacts/Context.json +++ b/artifacts/Context.json @@ -19,14 +19,14 @@ "absolutePath": "openzeppelin-solidity/contracts/GSN/Context.sol", "exportedSymbols": { "Context": [ - 5999 + 5758 ] }, - "id": 6000, + "id": 5759, "nodeType": "SourceUnit", "nodes": [ { - "id": 5974, + "id": 5733, "literals": [ "solidity", "^", @@ -34,7 +34,7 @@ ".0" ], "nodeType": "PragmaDirective", - "src": "0:23:15" + "src": "0:23:14" }, { "baseContracts": [], @@ -42,68 +42,68 @@ "contractKind": "contract", "documentation": null, "fullyImplemented": true, - "id": 5999, + "id": 5758, "linearizedBaseContracts": [ - 5999 + 5758 ], "name": "Context", "nodeType": "ContractDefinition", "nodes": [ { "body": { - "id": 5977, + "id": 5736, "nodeType": "Block", - "src": "726:3:15", + "src": "726:3:14", "statements": [] }, "documentation": null, - "id": 5978, + "id": 5737, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { - "id": 5975, + "id": 5734, "nodeType": "ParameterList", "parameters": [], - "src": "714:2:15" + "src": "714:2:14" }, "returnParameters": { - "id": 5976, + "id": 5735, "nodeType": "ParameterList", "parameters": [], - "src": "726:0:15" + "src": "726:0:14" }, - "scope": 5999, - "src": "702:27:15", + "scope": 5758, + "src": "702:27:14", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { - "id": 5986, + "id": 5745, "nodeType": "Block", - "src": "850:34:15", + "src": "850:34:14", "statements": [ { "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 5983, + "id": 5742, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, - "src": "867:3:15", + "referencedDeclaration": 6552, + "src": "867:3:14", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 5984, + "id": 5743, "isConstant": false, "isLValue": false, "isPure": false, @@ -111,43 +111,43 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "867:10:15", + "src": "867:10:14", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, - "functionReturnParameters": 5982, - "id": 5985, + "functionReturnParameters": 5741, + "id": 5744, "nodeType": "Return", - "src": "860:17:15" + "src": "860:17:14" } ] }, "documentation": null, - "id": 5987, + "id": 5746, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgSender", "nodeType": "FunctionDefinition", "parameters": { - "id": 5979, + "id": 5738, "nodeType": "ParameterList", "parameters": [], - "src": "807:2:15" + "src": "807:2:14" }, "returnParameters": { - "id": 5982, + "id": 5741, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5981, + "id": 5740, "name": "", "nodeType": "VariableDeclaration", - "scope": 5987, - "src": "833:15:15", + "scope": 5746, + "src": "833:15:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -155,10 +155,10 @@ "typeString": "address payable" }, "typeName": { - "id": 5980, + "id": 5739, "name": "address", "nodeType": "ElementaryTypeName", - "src": "833:15:15", + "src": "833:15:14", "stateMutability": "payable", "typeDescriptions": { "typeIdentifier": "t_address_payable", @@ -169,55 +169,55 @@ "visibility": "internal" } ], - "src": "832:17:15" + "src": "832:17:14" }, - "scope": 5999, - "src": "788:96:15", + "scope": 5758, + "src": "788:96:14", "stateMutability": "view", "superFunction": null, "visibility": "internal" }, { "body": { - "id": 5997, + "id": 5756, "nodeType": "Block", - "src": "947:165:15", + "src": "947:165:14", "statements": [ { "expression": { "argumentTypes": null, - "id": 5992, + "id": 5751, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6831, - "src": "957:4:15", + "referencedDeclaration": 6590, + "src": "957:4:14", "typeDescriptions": { - "typeIdentifier": "t_contract$_Context_$5999", + "typeIdentifier": "t_contract$_Context_$5758", "typeString": "contract Context" } }, - "id": 5993, + "id": 5752, "nodeType": "ExpressionStatement", - "src": "957:4:15" + "src": "957:4:14" }, { "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 5994, + "id": 5753, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, - "src": "1097:3:15", + "referencedDeclaration": 6552, + "src": "1097:3:14", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 5995, + "id": 5754, "isConstant": false, "isLValue": false, "isPure": false, @@ -225,43 +225,43 @@ "memberName": "data", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "1097:8:15", + "src": "1097:8:14", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes calldata" } }, - "functionReturnParameters": 5991, - "id": 5996, + "functionReturnParameters": 5750, + "id": 5755, "nodeType": "Return", - "src": "1090:15:15" + "src": "1090:15:14" } ] }, "documentation": null, - "id": 5998, + "id": 5757, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgData", "nodeType": "FunctionDefinition", "parameters": { - "id": 5988, + "id": 5747, "nodeType": "ParameterList", "parameters": [], - "src": "907:2:15" + "src": "907:2:14" }, "returnParameters": { - "id": 5991, + "id": 5750, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5990, + "id": 5749, "name": "", "nodeType": "VariableDeclaration", - "scope": 5998, - "src": "933:12:15", + "scope": 5757, + "src": "933:12:14", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { @@ -269,10 +269,10 @@ "typeString": "bytes" }, "typeName": { - "id": 5989, + "id": 5748, "name": "bytes", "nodeType": "ElementaryTypeName", - "src": "933:5:15", + "src": "933:5:14", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" @@ -282,33 +282,33 @@ "visibility": "internal" } ], - "src": "932:14:15" + "src": "932:14:14" }, - "scope": 5999, - "src": "890:222:15", + "scope": 5758, + "src": "890:222:14", "stateMutability": "view", "superFunction": null, "visibility": "internal" } ], - "scope": 6000, - "src": "525:589:15" + "scope": 5759, + "src": "525:589:14" } ], - "src": "0:1115:15" + "src": "0:1115:14" }, "legacyAST": { "absolutePath": "openzeppelin-solidity/contracts/GSN/Context.sol", "exportedSymbols": { "Context": [ - 5999 + 5758 ] }, - "id": 6000, + "id": 5759, "nodeType": "SourceUnit", "nodes": [ { - "id": 5974, + "id": 5733, "literals": [ "solidity", "^", @@ -316,7 +316,7 @@ ".0" ], "nodeType": "PragmaDirective", - "src": "0:23:15" + "src": "0:23:14" }, { "baseContracts": [], @@ -324,68 +324,68 @@ "contractKind": "contract", "documentation": null, "fullyImplemented": true, - "id": 5999, + "id": 5758, "linearizedBaseContracts": [ - 5999 + 5758 ], "name": "Context", "nodeType": "ContractDefinition", "nodes": [ { "body": { - "id": 5977, + "id": 5736, "nodeType": "Block", - "src": "726:3:15", + "src": "726:3:14", "statements": [] }, "documentation": null, - "id": 5978, + "id": 5737, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { - "id": 5975, + "id": 5734, "nodeType": "ParameterList", "parameters": [], - "src": "714:2:15" + "src": "714:2:14" }, "returnParameters": { - "id": 5976, + "id": 5735, "nodeType": "ParameterList", "parameters": [], - "src": "726:0:15" + "src": "726:0:14" }, - "scope": 5999, - "src": "702:27:15", + "scope": 5758, + "src": "702:27:14", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { - "id": 5986, + "id": 5745, "nodeType": "Block", - "src": "850:34:15", + "src": "850:34:14", "statements": [ { "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 5983, + "id": 5742, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, - "src": "867:3:15", + "referencedDeclaration": 6552, + "src": "867:3:14", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 5984, + "id": 5743, "isConstant": false, "isLValue": false, "isPure": false, @@ -393,43 +393,43 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "867:10:15", + "src": "867:10:14", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, - "functionReturnParameters": 5982, - "id": 5985, + "functionReturnParameters": 5741, + "id": 5744, "nodeType": "Return", - "src": "860:17:15" + "src": "860:17:14" } ] }, "documentation": null, - "id": 5987, + "id": 5746, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgSender", "nodeType": "FunctionDefinition", "parameters": { - "id": 5979, + "id": 5738, "nodeType": "ParameterList", "parameters": [], - "src": "807:2:15" + "src": "807:2:14" }, "returnParameters": { - "id": 5982, + "id": 5741, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5981, + "id": 5740, "name": "", "nodeType": "VariableDeclaration", - "scope": 5987, - "src": "833:15:15", + "scope": 5746, + "src": "833:15:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -437,10 +437,10 @@ "typeString": "address payable" }, "typeName": { - "id": 5980, + "id": 5739, "name": "address", "nodeType": "ElementaryTypeName", - "src": "833:15:15", + "src": "833:15:14", "stateMutability": "payable", "typeDescriptions": { "typeIdentifier": "t_address_payable", @@ -451,55 +451,55 @@ "visibility": "internal" } ], - "src": "832:17:15" + "src": "832:17:14" }, - "scope": 5999, - "src": "788:96:15", + "scope": 5758, + "src": "788:96:14", "stateMutability": "view", "superFunction": null, "visibility": "internal" }, { "body": { - "id": 5997, + "id": 5756, "nodeType": "Block", - "src": "947:165:15", + "src": "947:165:14", "statements": [ { "expression": { "argumentTypes": null, - "id": 5992, + "id": 5751, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6831, - "src": "957:4:15", + "referencedDeclaration": 6590, + "src": "957:4:14", "typeDescriptions": { - "typeIdentifier": "t_contract$_Context_$5999", + "typeIdentifier": "t_contract$_Context_$5758", "typeString": "contract Context" } }, - "id": 5993, + "id": 5752, "nodeType": "ExpressionStatement", - "src": "957:4:15" + "src": "957:4:14" }, { "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 5994, + "id": 5753, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, - "src": "1097:3:15", + "referencedDeclaration": 6552, + "src": "1097:3:14", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 5995, + "id": 5754, "isConstant": false, "isLValue": false, "isPure": false, @@ -507,43 +507,43 @@ "memberName": "data", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "1097:8:15", + "src": "1097:8:14", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes calldata" } }, - "functionReturnParameters": 5991, - "id": 5996, + "functionReturnParameters": 5750, + "id": 5755, "nodeType": "Return", - "src": "1090:15:15" + "src": "1090:15:14" } ] }, "documentation": null, - "id": 5998, + "id": 5757, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgData", "nodeType": "FunctionDefinition", "parameters": { - "id": 5988, + "id": 5747, "nodeType": "ParameterList", "parameters": [], - "src": "907:2:15" + "src": "907:2:14" }, "returnParameters": { - "id": 5991, + "id": 5750, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 5990, + "id": 5749, "name": "", "nodeType": "VariableDeclaration", - "scope": 5998, - "src": "933:12:15", + "scope": 5757, + "src": "933:12:14", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { @@ -551,10 +551,10 @@ "typeString": "bytes" }, "typeName": { - "id": 5989, + "id": 5748, "name": "bytes", "nodeType": "ElementaryTypeName", - "src": "933:5:15", + "src": "933:5:14", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" @@ -564,20 +564,20 @@ "visibility": "internal" } ], - "src": "932:14:15" + "src": "932:14:14" }, - "scope": 5999, - "src": "890:222:15", + "scope": 5758, + "src": "890:222:14", "stateMutability": "view", "superFunction": null, "visibility": "internal" } ], - "scope": 6000, - "src": "525:589:15" + "scope": 5759, + "src": "525:589:14" } ], - "src": "0:1115:15" + "src": "0:1115:14" }, "compiler": { "name": "solc", @@ -585,7 +585,7 @@ }, "networks": {}, "schemaVersion": "3.2.0", - "updatedAt": "2020-09-11T10:54:21.707Z", + "updatedAt": "2020-10-02T11:33:45.798Z", "devdoc": { "methods": {} }, diff --git a/artifacts/DTFactory.json b/artifacts/DTFactory.json index 259e488df..5b36e8a94 100644 --- a/artifacts/DTFactory.json +++ b/artifacts/DTFactory.json @@ -4538,7 +4538,7 @@ }, "networks": {}, "schemaVersion": "3.2.0", - "updatedAt": "2020-10-02T05:02:46.039Z", + "updatedAt": "2020-10-02T11:33:45.659Z", "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 af4c05135..160b81e27 100644 --- a/artifacts/DataTokenTemplate.json +++ b/artifacts/DataTokenTemplate.json @@ -14458,7 +14458,7 @@ }, "networks": {}, "schemaVersion": "3.2.0", - "updatedAt": "2020-10-02T11:15:15.155Z", + "updatedAt": "2020-10-02T11:33:45.789Z", "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 de5aac1d6..66b660c08 100644 --- a/artifacts/Deployer.json +++ b/artifacts/Deployer.json @@ -781,7 +781,7 @@ }, "networks": {}, "schemaVersion": "3.2.0", - "updatedAt": "2020-10-02T05:02:46.187Z", + "updatedAt": "2020-10-02T11:33:45.797Z", "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 a562e8430..b81ba9791 100644 --- a/artifacts/ERC20.json +++ b/artifacts/ERC20.json @@ -224,22 +224,22 @@ "metadata": "{\"compiler\":{\"version\":\"0.5.7+commit.6da8b019\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"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\":false,\"inputs\":[{\"name\":\"spender\",\"type\":\"address\"},{\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"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\":\"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\":\"owner\",\"type\":\"address\"},{\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"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\":\"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\":{\"allowance(address,address)\":{\"details\":\"See {IERC20-allowance}.\"},\"approve(address,uint256)\":{\"details\":\"See {IERC20-approve}. * Requirements: * - `spender` cannot be the zero address.\"},\"balanceOf(address)\":{\"details\":\"See {IERC20-balanceOf}.\"},\"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`.\"},\"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.\"},\"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`.\"}}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"openzeppelin-solidity/contracts/token/ERC20/ERC20.sol\":\"ERC20\"},\"evmVersion\":\"byzantium\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"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": "0x6080604052610861806100136000396000f3fe608060405234801561001057600080fd5b50600436106100a5576000357c01000000000000000000000000000000000000000000000000000000009004806370a082311161007857806370a0823114610166578063a457c2d71461018c578063a9059cbb146101b8578063dd62ed3e146101e4576100a5565b8063095ea7b3146100aa57806318160ddd146100ea57806323b872dd14610104578063395093511461013a575b600080fd5b6100d6600480360360408110156100c057600080fd5b50600160a060020a038135169060200135610212565b604080519115158252519081900360200190f35b6100f261022f565b60408051918252519081900360200190f35b6100d66004803603606081101561011a57600080fd5b50600160a060020a03813581169160208101359091169060400135610235565b6100d66004803603604081101561015057600080fd5b50600160a060020a0381351690602001356102c2565b6100f26004803603602081101561017c57600080fd5b5035600160a060020a0316610316565b6100d6600480360360408110156101a257600080fd5b50600160a060020a038135169060200135610331565b6100d6600480360360408110156101ce57600080fd5b50600160a060020a03813516906020013561039f565b6100f2600480360360408110156101fa57600080fd5b50600160a060020a03813581169160200135166103b3565b600061022661021f6103de565b84846103e2565b50600192915050565b60025490565b60006102428484846104d4565b6102b88461024e6103de565b6102b3856040518060600160405280602881526020016107a060289139600160a060020a038a1660009081526001602052604081209061028c6103de565b600160a060020a03168152602081019190915260400160002054919063ffffffff61063616565b6103e2565b5060019392505050565b60006102266102cf6103de565b846102b385600160006102e06103de565b600160a060020a03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6106d016565b600160a060020a031660009081526020819052604090205490565b600061022661033e6103de565b846102b38560405180606001604052806025815260200161081160259139600160006103686103de565b600160a060020a03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61063616565b60006102266103ac6103de565b84846104d4565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b3390565b600160a060020a03831661042a5760405160e560020a62461bcd0281526004018080602001828103825260248152602001806107ed6024913960400191505060405180910390fd5b600160a060020a0382166104725760405160e560020a62461bcd0281526004018080602001828103825260228152602001806107586022913960400191505060405180910390fd5b600160a060020a03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600160a060020a03831661051c5760405160e560020a62461bcd0281526004018080602001828103825260258152602001806107c86025913960400191505060405180910390fd5b600160a060020a0382166105645760405160e560020a62461bcd0281526004018080602001828103825260238152602001806107356023913960400191505060405180910390fd5b6105a78160405180606001604052806026815260200161077a60269139600160a060020a038616600090815260208190526040902054919063ffffffff61063616565b600160a060020a0380851660009081526020819052604080822093909355908416815220546105dc908263ffffffff6106d016565b600160a060020a038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156106c85760405160e560020a62461bcd0281526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561068d578181015183820152602001610675565b50505050905090810190601f1680156106ba5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561072d576040805160e560020a62461bcd02815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b939250505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa165627a7a72305820a1adcf26d01b1adc7fc20133464568abd16d8798ba59108499e7793a7fc6fb890029", "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100a5576000357c01000000000000000000000000000000000000000000000000000000009004806370a082311161007857806370a0823114610166578063a457c2d71461018c578063a9059cbb146101b8578063dd62ed3e146101e4576100a5565b8063095ea7b3146100aa57806318160ddd146100ea57806323b872dd14610104578063395093511461013a575b600080fd5b6100d6600480360360408110156100c057600080fd5b50600160a060020a038135169060200135610212565b604080519115158252519081900360200190f35b6100f261022f565b60408051918252519081900360200190f35b6100d66004803603606081101561011a57600080fd5b50600160a060020a03813581169160208101359091169060400135610235565b6100d66004803603604081101561015057600080fd5b50600160a060020a0381351690602001356102c2565b6100f26004803603602081101561017c57600080fd5b5035600160a060020a0316610316565b6100d6600480360360408110156101a257600080fd5b50600160a060020a038135169060200135610331565b6100d6600480360360408110156101ce57600080fd5b50600160a060020a03813516906020013561039f565b6100f2600480360360408110156101fa57600080fd5b50600160a060020a03813581169160200135166103b3565b600061022661021f6103de565b84846103e2565b50600192915050565b60025490565b60006102428484846104d4565b6102b88461024e6103de565b6102b3856040518060600160405280602881526020016107a060289139600160a060020a038a1660009081526001602052604081209061028c6103de565b600160a060020a03168152602081019190915260400160002054919063ffffffff61063616565b6103e2565b5060019392505050565b60006102266102cf6103de565b846102b385600160006102e06103de565b600160a060020a03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6106d016565b600160a060020a031660009081526020819052604090205490565b600061022661033e6103de565b846102b38560405180606001604052806025815260200161081160259139600160006103686103de565b600160a060020a03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61063616565b60006102266103ac6103de565b84846104d4565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b3390565b600160a060020a03831661042a5760405160e560020a62461bcd0281526004018080602001828103825260248152602001806107ed6024913960400191505060405180910390fd5b600160a060020a0382166104725760405160e560020a62461bcd0281526004018080602001828103825260228152602001806107586022913960400191505060405180910390fd5b600160a060020a03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600160a060020a03831661051c5760405160e560020a62461bcd0281526004018080602001828103825260258152602001806107c86025913960400191505060405180910390fd5b600160a060020a0382166105645760405160e560020a62461bcd0281526004018080602001828103825260238152602001806107356023913960400191505060405180910390fd5b6105a78160405180606001604052806026815260200161077a60269139600160a060020a038616600090815260208190526040902054919063ffffffff61063616565b600160a060020a0380851660009081526020819052604080822093909355908416815220546105dc908263ffffffff6106d016565b600160a060020a038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156106c85760405160e560020a62461bcd0281526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561068d578181015183820152602001610675565b50505050905090810190601f1680156106ba5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561072d576040805160e560020a62461bcd02815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b939250505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa165627a7a72305820a1adcf26d01b1adc7fc20133464568abd16d8798ba59108499e7793a7fc6fb890029", - "sourceMap": "1268:6823:18:-;;;;;;;;;", - "deployedSourceMap": "1268:6823:18:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1268:6823:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2500:149;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2500:149:18;;;;;;;;:::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:18;;;;;;;;;;;;;;;;;:::i;3802:207::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;3802:207:18;;;;;;;;:::i;1706:108::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1706:108:18;-1:-1:-1;;;;;1706:108:18;;:::i;4496:258::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;4496:258:18;;;;;;;;:::i;2017:155::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2017:155:18;;;;;;;;:::i;2230:132::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2230:132:18;;;;;;;;;;:::i;2500:149::-;2566:4;2582:39;2591:12;:10;:12::i;:::-;2605:7;2614:6;2582:8;:39::i;:::-;-1:-1:-1;2638:4:18;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:18;;;;;;:11;:19;;;;;;3309:12;:10;:12::i;:::-;-1:-1:-1;;;;;3289:33:18;;;;;;;;;;;;-1:-1:-1;3289:33:18;;;:89;;:37;:89;:::i;:::-;3258:8;:121::i;:::-;-1:-1:-1;3396:4:18;3107:300;;;;;:::o;3802:207::-;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:18;;;;;;;;;;;;;;;;;-1:-1:-1;3930:25:18;;;:34;;;;;;;;;;;:50;:38;:50;:::i;1706:108::-;-1:-1:-1;;;;;1789:18:18;1763:7;1789:18;;;;;;;;;;;;1706:108::o;4496:258::-;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:18;;;;;;;;;;;;;;;;;-1:-1:-1;4629:25:18;;;:34;;;;;;;;;;;:96;;:38;:96;:::i;2017:155::-;2086:4;2102:42;2112:12;:10;:12::i;:::-;2126:9;2137:6;2102:9;:42::i;2230:132::-;-1:-1:-1;;;;;2328:18:18;;;2302:7;2328:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;2230:132::o;788:96:15:-;867:10;788:96;:::o;7350:332:18:-;-1:-1:-1;;;;;7443:19:18;;7435:68;;;;-1:-1:-1;;;;;7435:68:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;7521:21:18;;7513:68;;;;-1:-1:-1;;;;;7513:68:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;7592:18:18;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;7643:32;;;;;;;;;;;;;;;;;7350:332;;;:::o;5228:464::-;-1:-1:-1;;;;;5325:20:18;;5317:70;;;;-1:-1:-1;;;;;5317:70:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5405:23:18;;5397:71;;;;-1:-1:-1;;;;;5397:71:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5499;5521:6;5499:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5499:17:18;;:9;:17;;;;;;;;;;;;:71;;:21;:71;:::i;:::-;-1:-1:-1;;;;;5479:17:18;;;:9;:17;;;;;;;;;;;:91;;;;5603:20;;;;;;;:32;;5628:6;5603:32;:24;:32;:::i;:::-;-1:-1:-1;;;;;5580:20:18;;;:9;:20;;;;;;;;;;;;:55;;;;5650:35;;;;;;;5580:20;;5650:35;;;;;;;;;;;;;5228:464;;;:::o;1732:187:16:-;1818:7;1853:12;1845:6;;;;1837:29;;;;-1:-1:-1;;;;;1837:29:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1888:5:16;;;1732:187::o;834:176::-;892:7;923:5;;;946:6;;;;938:46;;;;;-1:-1:-1;;;;;938:46:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;1002:1;834:176;-1:-1:-1;;;834:176:16:o", + "sourceMap": "1268:6823:17:-;;;;;;;;;", + "deployedSourceMap": "1268:6823:17:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1268:6823:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2500:149;;;;;;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;3802:207::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;3802:207:17;;;;;;;;:::i;1706:108::-;;;;;;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;4496:258::-;;;;;;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;2230:132::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2230:132:17;;;;;;;;;;:::i;2500:149::-;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;3802:207::-;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;1706:108::-;-1:-1:-1;;;;;1789:18:17;1763:7;1789:18;;;;;;;;;;;;1706:108::o;4496:258::-;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;2230:132::-;-1:-1:-1;;;;;2328:18:17;;;2302:7;2328:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;2230:132::o;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;1002:1;834:176;-1:-1:-1;;;834:176:15:o", "source": "pragma solidity ^0.5.0;\n\nimport \"../../GSN/Context.sol\";\nimport \"./IERC20.sol\";\nimport \"../../math/SafeMath.sol\";\n\n/**\n * @dev Implementation of the {IERC20} interface.\n *\n * This implementation is agnostic to the way tokens are created. This means\n * that a supply mechanism has to be added in a derived contract using {_mint}.\n * For a generic mechanism see {ERC20Mintable}.\n *\n * TIP: For a detailed writeup see our guide\n * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How\n * to implement supply mechanisms].\n *\n * We have followed general OpenZeppelin guidelines: functions revert instead\n * of returning `false` on failure. This behavior is nonetheless conventional\n * and does not conflict with the expectations of ERC20 applications.\n *\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\n * This allows applications to reconstruct the allowance for all accounts just\n * by listening to said events. Other implementations of the EIP may not emit\n * these events, as it isn't required by the specification.\n *\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\n * functions have been added to mitigate the well-known issues around setting\n * allowances. See {IERC20-approve}.\n */\ncontract ERC20 is Context, IERC20 {\n using SafeMath for uint256;\n\n mapping (address => uint256) private _balances;\n\n mapping (address => mapping (address => uint256)) private _allowances;\n\n uint256 private _totalSupply;\n\n /**\n * @dev See {IERC20-totalSupply}.\n */\n function totalSupply() public view returns (uint256) {\n return _totalSupply;\n }\n\n /**\n * @dev See {IERC20-balanceOf}.\n */\n function balanceOf(address account) public view returns (uint256) {\n return _balances[account];\n }\n\n /**\n * @dev See {IERC20-transfer}.\n *\n * Requirements:\n *\n * - `recipient` cannot be the zero address.\n * - the caller must have a balance of at least `amount`.\n */\n function transfer(address recipient, uint256 amount) public returns (bool) {\n _transfer(_msgSender(), recipient, amount);\n return true;\n }\n\n /**\n * @dev See {IERC20-allowance}.\n */\n function allowance(address owner, address spender) public view returns (uint256) {\n return _allowances[owner][spender];\n }\n\n /**\n * @dev See {IERC20-approve}.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n */\n function approve(address spender, uint256 amount) public returns (bool) {\n _approve(_msgSender(), spender, amount);\n return true;\n }\n\n /**\n * @dev See {IERC20-transferFrom}.\n *\n * Emits an {Approval} event indicating the updated allowance. This is not\n * required by the EIP. See the note at the beginning of {ERC20};\n *\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`.\n */\n function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) {\n _transfer(sender, recipient, amount);\n _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, \"ERC20: transfer amount exceeds allowance\"));\n return true;\n }\n\n /**\n * @dev Atomically increases the allowance granted to `spender` by the caller.\n *\n * This is an alternative to {approve} that can be used as a mitigation for\n * problems described in {IERC20-approve}.\n *\n * Emits an {Approval} event indicating the updated allowance.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n */\n function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {\n _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));\n return true;\n }\n\n /**\n * @dev Atomically decreases the allowance granted to `spender` by the caller.\n *\n * This is an alternative to {approve} that can be used as a mitigation for\n * problems described in {IERC20-approve}.\n *\n * Emits an {Approval} event indicating the updated allowance.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n * - `spender` must have allowance for the caller of at least\n * `subtractedValue`.\n */\n function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {\n _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, \"ERC20: decreased allowance below zero\"));\n return true;\n }\n\n /**\n * @dev Moves tokens `amount` from `sender` to `recipient`.\n *\n * This is internal function is equivalent to {transfer}, and can be used to\n * e.g. implement automatic token fees, slashing mechanisms, etc.\n *\n * Emits a {Transfer} event.\n *\n * Requirements:\n *\n * - `sender` cannot be the zero address.\n * - `recipient` cannot be the zero address.\n * - `sender` must have a balance of at least `amount`.\n */\n function _transfer(address sender, address recipient, uint256 amount) internal {\n require(sender != address(0), \"ERC20: transfer from the zero address\");\n require(recipient != address(0), \"ERC20: transfer to the zero address\");\n\n _balances[sender] = _balances[sender].sub(amount, \"ERC20: transfer amount exceeds balance\");\n _balances[recipient] = _balances[recipient].add(amount);\n emit Transfer(sender, recipient, amount);\n }\n\n /** @dev Creates `amount` tokens and assigns them to `account`, increasing\n * the total supply.\n *\n * Emits a {Transfer} event with `from` set to the zero address.\n *\n * Requirements\n *\n * - `to` cannot be the zero address.\n */\n function _mint(address account, uint256 amount) internal {\n require(account != address(0), \"ERC20: mint to the zero address\");\n\n _totalSupply = _totalSupply.add(amount);\n _balances[account] = _balances[account].add(amount);\n emit Transfer(address(0), account, amount);\n }\n\n /**\n * @dev Destroys `amount` tokens from `account`, reducing the\n * total supply.\n *\n * Emits a {Transfer} event with `to` set to the zero address.\n *\n * Requirements\n *\n * - `account` cannot be the zero address.\n * - `account` must have at least `amount` tokens.\n */\n function _burn(address account, uint256 amount) internal {\n require(account != address(0), \"ERC20: burn from the zero address\");\n\n _balances[account] = _balances[account].sub(amount, \"ERC20: burn amount exceeds balance\");\n _totalSupply = _totalSupply.sub(amount);\n emit Transfer(account, address(0), amount);\n }\n\n /**\n * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.\n *\n * This is internal function is equivalent to `approve`, and can be used to\n * e.g. set automatic allowances for certain subsystems, etc.\n *\n * Emits an {Approval} event.\n *\n * Requirements:\n *\n * - `owner` cannot be the zero address.\n * - `spender` cannot be the zero address.\n */\n function _approve(address owner, address spender, uint256 amount) internal {\n require(owner != address(0), \"ERC20: approve from the zero address\");\n require(spender != address(0), \"ERC20: approve to the zero address\");\n\n _allowances[owner][spender] = amount;\n emit Approval(owner, spender, amount);\n }\n\n /**\n * @dev Destroys `amount` tokens from `account`.`amount` is then deducted\n * from the caller's allowance.\n *\n * See {_burn} and {_approve}.\n */\n function _burnFrom(address account, uint256 amount) internal {\n _burn(account, amount);\n _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, \"ERC20: burn amount exceeds allowance\"));\n }\n}\n", "sourcePath": "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol", "ast": { "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol", "exportedSymbols": { "ERC20": [ - 6709 + 6468 ] }, - "id": 6710, + "id": 6469, "nodeType": "SourceUnit", "nodes": [ { - "id": 6306, + "id": 6065, "literals": [ "solidity", "^", @@ -247,38 +247,38 @@ ".0" ], "nodeType": "PragmaDirective", - "src": "0:23:18" + "src": "0:23:17" }, { "absolutePath": "openzeppelin-solidity/contracts/GSN/Context.sol", "file": "../../GSN/Context.sol", - "id": 6307, + "id": 6066, "nodeType": "ImportDirective", - "scope": 6710, - "sourceUnit": 6000, - "src": "25:31:18", + "scope": 6469, + "sourceUnit": 5759, + "src": "25:31:17", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol", "file": "./IERC20.sol", - "id": 6308, + "id": 6067, "nodeType": "ImportDirective", - "scope": 6710, - "sourceUnit": 6779, - "src": "57:22:18", + "scope": 6469, + "sourceUnit": 6538, + "src": "57:22:17", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "openzeppelin-solidity/contracts/math/SafeMath.sol", "file": "../../math/SafeMath.sol", - "id": 6309, + "id": 6068, "nodeType": "ImportDirective", - "scope": 6710, - "sourceUnit": 6187, - "src": "80:33:18", + "scope": 6469, + "sourceUnit": 5946, + "src": "80:33:17", "symbolAliases": [], "unitAlias": "" }, @@ -288,76 +288,76 @@ "arguments": null, "baseName": { "contractScope": null, - "id": 6310, + "id": 6069, "name": "Context", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 5999, - "src": "1286:7:18", + "referencedDeclaration": 5758, + "src": "1286:7:17", "typeDescriptions": { - "typeIdentifier": "t_contract$_Context_$5999", + "typeIdentifier": "t_contract$_Context_$5758", "typeString": "contract Context" } }, - "id": 6311, + "id": 6070, "nodeType": "InheritanceSpecifier", - "src": "1286:7:18" + "src": "1286:7:17" }, { "arguments": null, "baseName": { "contractScope": null, - "id": 6312, + "id": 6071, "name": "IERC20", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 6778, - "src": "1295:6:18", + "referencedDeclaration": 6537, + "src": "1295:6:17", "typeDescriptions": { - "typeIdentifier": "t_contract$_IERC20_$6778", + "typeIdentifier": "t_contract$_IERC20_$6537", "typeString": "contract IERC20" } }, - "id": 6313, + "id": 6072, "nodeType": "InheritanceSpecifier", - "src": "1295:6:18" + "src": "1295:6:17" } ], "contractDependencies": [ - 5999, - 6778 + 5758, + 6537 ], "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": 6709, + "id": 6468, "linearizedBaseContracts": [ - 6709, - 6778, - 5999 + 6468, + 6537, + 5758 ], "name": "ERC20", "nodeType": "ContractDefinition", "nodes": [ { - "id": 6316, + "id": 6075, "libraryName": { "contractScope": null, - "id": 6314, + "id": 6073, "name": "SafeMath", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 6186, - "src": "1314:8:18", + "referencedDeclaration": 5945, + "src": "1314:8:17", "typeDescriptions": { - "typeIdentifier": "t_contract$_SafeMath_$6186", + "typeIdentifier": "t_contract$_SafeMath_$5945", "typeString": "library SafeMath" } }, "nodeType": "UsingForDirective", - "src": "1308:27:18", + "src": "1308:27:17", "typeName": { - "id": 6315, + "id": 6074, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1327:7:18", + "src": "1327:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -366,11 +366,11 @@ }, { "constant": false, - "id": 6320, + "id": 6079, "name": "_balances", "nodeType": "VariableDeclaration", - "scope": 6709, - "src": "1341:46:18", + "scope": 6468, + "src": "1341:46:17", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -378,28 +378,28 @@ "typeString": "mapping(address => uint256)" }, "typeName": { - "id": 6319, + "id": 6078, "keyType": { - "id": 6317, + "id": 6076, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1350:7:18", + "src": "1350:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", - "src": "1341:28:18", + "src": "1341:28:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" }, "valueType": { - "id": 6318, + "id": 6077, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1361:7:18", + "src": "1361:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -411,11 +411,11 @@ }, { "constant": false, - "id": 6326, + "id": 6085, "name": "_allowances", "nodeType": "VariableDeclaration", - "scope": 6709, - "src": "1394:69:18", + "scope": 6468, + "src": "1394:69:17", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -423,46 +423,46 @@ "typeString": "mapping(address => mapping(address => uint256))" }, "typeName": { - "id": 6325, + "id": 6084, "keyType": { - "id": 6321, + "id": 6080, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1403:7:18", + "src": "1403:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", - "src": "1394:49:18", + "src": "1394:49:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" }, "valueType": { - "id": 6324, + "id": 6083, "keyType": { - "id": 6322, + "id": 6081, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1423:7:18", + "src": "1423:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", - "src": "1414:28:18", + "src": "1414:28:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" }, "valueType": { - "id": 6323, + "id": 6082, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1434:7:18", + "src": "1434:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -475,11 +475,11 @@ }, { "constant": false, - "id": 6328, + "id": 6087, "name": "_totalSupply", "nodeType": "VariableDeclaration", - "scope": 6709, - "src": "1470:28:18", + "scope": 6468, + "src": "1470:28:17", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -487,10 +487,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6327, + "id": 6086, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1470:7:18", + "src": "1470:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -501,55 +501,55 @@ }, { "body": { - "id": 6335, + "id": 6094, "nodeType": "Block", - "src": "1612:36:18", + "src": "1612:36:17", "statements": [ { "expression": { "argumentTypes": null, - "id": 6333, + "id": 6092, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6328, - "src": "1629:12:18", + "referencedDeclaration": 6087, + "src": "1629:12:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 6332, - "id": 6334, + "functionReturnParameters": 6091, + "id": 6093, "nodeType": "Return", - "src": "1622:19:18" + "src": "1622:19:17" } ] }, "documentation": "@dev See {IERC20-totalSupply}.", - "id": 6336, + "id": 6095, "implemented": true, "kind": "function", "modifiers": [], "name": "totalSupply", "nodeType": "FunctionDefinition", "parameters": { - "id": 6329, + "id": 6088, "nodeType": "ParameterList", "parameters": [], - "src": "1579:2:18" + "src": "1579:2:17" }, "returnParameters": { - "id": 6332, + "id": 6091, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6331, + "id": 6090, "name": "", "nodeType": "VariableDeclaration", - "scope": 6336, - "src": "1603:7:18", + "scope": 6095, + "src": "1603:7:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -557,10 +557,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6330, + "id": 6089, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1603:7:18", + "src": "1603:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -570,45 +570,45 @@ "visibility": "internal" } ], - "src": "1602:9:18" + "src": "1602:9:17" }, - "scope": 6709, - "src": "1559:89:18", + "scope": 6468, + "src": "1559:89:17", "stateMutability": "view", - "superFunction": 6716, + "superFunction": 6475, "visibility": "public" }, { "body": { - "id": 6347, + "id": 6106, "nodeType": "Block", - "src": "1772:42:18", + "src": "1772:42:17", "statements": [ { "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6343, + "id": 6102, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6320, - "src": "1789:9:18", + "referencedDeclaration": 6079, + "src": "1789:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6345, + "id": 6104, "indexExpression": { "argumentTypes": null, - "id": 6344, + "id": 6103, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6338, - "src": "1799:7:18", + "referencedDeclaration": 6097, + "src": "1799:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -619,37 +619,37 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "1789:18:18", + "src": "1789:18:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 6342, - "id": 6346, + "functionReturnParameters": 6101, + "id": 6105, "nodeType": "Return", - "src": "1782:25:18" + "src": "1782:25:17" } ] }, "documentation": "@dev See {IERC20-balanceOf}.", - "id": 6348, + "id": 6107, "implemented": true, "kind": "function", "modifiers": [], "name": "balanceOf", "nodeType": "FunctionDefinition", "parameters": { - "id": 6339, + "id": 6098, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6338, + "id": 6097, "name": "account", "nodeType": "VariableDeclaration", - "scope": 6348, - "src": "1725:15:18", + "scope": 6107, + "src": "1725:15:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -657,10 +657,10 @@ "typeString": "address" }, "typeName": { - "id": 6337, + "id": 6096, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1725:7:18", + "src": "1725:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -671,19 +671,19 @@ "visibility": "internal" } ], - "src": "1724:17:18" + "src": "1724:17:17" }, "returnParameters": { - "id": 6342, + "id": 6101, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6341, + "id": 6100, "name": "", "nodeType": "VariableDeclaration", - "scope": 6348, - "src": "1763:7:18", + "scope": 6107, + "src": "1763:7:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -691,10 +691,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6340, + "id": 6099, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1763:7:18", + "src": "1763:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -704,19 +704,19 @@ "visibility": "internal" } ], - "src": "1762:9:18" + "src": "1762:9:17" }, - "scope": 6709, - "src": "1706:108:18", + "scope": 6468, + "src": "1706:108:17", "stateMutability": "view", - "superFunction": 6723, + "superFunction": 6482, "visibility": "public" }, { "body": { - "id": 6366, + "id": 6125, "nodeType": "Block", - "src": "2092:80:18", + "src": "2092:80:17", "statements": [ { "expression": { @@ -727,18 +727,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 6358, + "id": 6117, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, - "src": "2112:10:18", + "referencedDeclaration": 5746, + "src": "2112:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6359, + "id": 6118, "isConstant": false, "isLValue": false, "isPure": false, @@ -746,7 +746,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2112:12:18", + "src": "2112:12:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -754,12 +754,12 @@ }, { "argumentTypes": null, - "id": 6360, + "id": 6119, "name": "recipient", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6350, - "src": "2126:9:18", + "referencedDeclaration": 6109, + "src": "2126:9:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -767,12 +767,12 @@ }, { "argumentTypes": null, - "id": 6361, + "id": 6120, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6352, - "src": "2137:6:18", + "referencedDeclaration": 6111, + "src": "2137:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -794,18 +794,18 @@ "typeString": "uint256" } ], - "id": 6357, + "id": 6116, "name": "_transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6550, - "src": "2102:9:18", + "referencedDeclaration": 6309, + "src": "2102:9:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6362, + "id": 6121, "isConstant": false, "isLValue": false, "isPure": false, @@ -813,28 +813,28 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2102:42:18", + "src": "2102:42:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6363, + "id": 6122, "nodeType": "ExpressionStatement", - "src": "2102:42:18" + "src": "2102:42:17" }, { "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 6364, + "id": 6123, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", - "src": "2161:4:18", + "src": "2161:4:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", @@ -842,31 +842,31 @@ }, "value": "true" }, - "functionReturnParameters": 6356, - "id": 6365, + "functionReturnParameters": 6115, + "id": 6124, "nodeType": "Return", - "src": "2154:11:18" + "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": 6367, + "id": 6126, "implemented": true, "kind": "function", "modifiers": [], "name": "transfer", "nodeType": "FunctionDefinition", "parameters": { - "id": 6353, + "id": 6112, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6350, + "id": 6109, "name": "recipient", "nodeType": "VariableDeclaration", - "scope": 6367, - "src": "2035:17:18", + "scope": 6126, + "src": "2035:17:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -874,10 +874,10 @@ "typeString": "address" }, "typeName": { - "id": 6349, + "id": 6108, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2035:7:18", + "src": "2035:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -889,11 +889,11 @@ }, { "constant": false, - "id": 6352, + "id": 6111, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6367, - "src": "2054:14:18", + "scope": 6126, + "src": "2054:14:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -901,10 +901,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6351, + "id": 6110, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "2054:7:18", + "src": "2054:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -914,19 +914,19 @@ "visibility": "internal" } ], - "src": "2034:35:18" + "src": "2034:35:17" }, "returnParameters": { - "id": 6356, + "id": 6115, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6355, + "id": 6114, "name": "", "nodeType": "VariableDeclaration", - "scope": 6367, - "src": "2086:4:18", + "scope": 6126, + "src": "2086:4:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -934,10 +934,10 @@ "typeString": "bool" }, "typeName": { - "id": 6354, + "id": 6113, "name": "bool", "nodeType": "ElementaryTypeName", - "src": "2086:4:18", + "src": "2086:4:17", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -947,19 +947,19 @@ "visibility": "internal" } ], - "src": "2085:6:18" + "src": "2085:6:17" }, - "scope": 6709, - "src": "2017:155:18", + "scope": 6468, + "src": "2017:155:17", "stateMutability": "nonpayable", - "superFunction": 6732, + "superFunction": 6491, "visibility": "public" }, { "body": { - "id": 6382, + "id": 6141, "nodeType": "Block", - "src": "2311:51:18", + "src": "2311:51:17", "statements": [ { "expression": { @@ -968,26 +968,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6376, + "id": 6135, "name": "_allowances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6326, - "src": "2328:11:18", + "referencedDeclaration": 6085, + "src": "2328:11:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 6378, + "id": 6137, "indexExpression": { "argumentTypes": null, - "id": 6377, + "id": 6136, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6369, - "src": "2340:5:18", + "referencedDeclaration": 6128, + "src": "2340:5:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -998,21 +998,21 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "2328:18:18", + "src": "2328:18:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6380, + "id": 6139, "indexExpression": { "argumentTypes": null, - "id": 6379, + "id": 6138, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6371, - "src": "2347:7:18", + "referencedDeclaration": 6130, + "src": "2347:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -1023,37 +1023,37 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "2328:27:18", + "src": "2328:27:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 6375, - "id": 6381, + "functionReturnParameters": 6134, + "id": 6140, "nodeType": "Return", - "src": "2321:34:18" + "src": "2321:34:17" } ] }, "documentation": "@dev See {IERC20-allowance}.", - "id": 6383, + "id": 6142, "implemented": true, "kind": "function", "modifiers": [], "name": "allowance", "nodeType": "FunctionDefinition", "parameters": { - "id": 6372, + "id": 6131, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6369, + "id": 6128, "name": "owner", "nodeType": "VariableDeclaration", - "scope": 6383, - "src": "2249:13:18", + "scope": 6142, + "src": "2249:13:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1061,10 +1061,10 @@ "typeString": "address" }, "typeName": { - "id": 6368, + "id": 6127, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2249:7:18", + "src": "2249:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1076,11 +1076,11 @@ }, { "constant": false, - "id": 6371, + "id": 6130, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6383, - "src": "2264:15:18", + "scope": 6142, + "src": "2264:15:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1088,10 +1088,10 @@ "typeString": "address" }, "typeName": { - "id": 6370, + "id": 6129, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2264:7:18", + "src": "2264:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1102,19 +1102,19 @@ "visibility": "internal" } ], - "src": "2248:32:18" + "src": "2248:32:17" }, "returnParameters": { - "id": 6375, + "id": 6134, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6374, + "id": 6133, "name": "", "nodeType": "VariableDeclaration", - "scope": 6383, - "src": "2302:7:18", + "scope": 6142, + "src": "2302:7:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1122,10 +1122,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6373, + "id": 6132, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "2302:7:18", + "src": "2302:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1135,19 +1135,19 @@ "visibility": "internal" } ], - "src": "2301:9:18" + "src": "2301:9:17" }, - "scope": 6709, - "src": "2230:132:18", + "scope": 6468, + "src": "2230:132:17", "stateMutability": "view", - "superFunction": 6741, + "superFunction": 6500, "visibility": "public" }, { "body": { - "id": 6401, + "id": 6160, "nodeType": "Block", - "src": "2572:77:18", + "src": "2572:77:17", "statements": [ { "expression": { @@ -1158,18 +1158,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 6393, + "id": 6152, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, - "src": "2591:10:18", + "referencedDeclaration": 5746, + "src": "2591:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6394, + "id": 6153, "isConstant": false, "isLValue": false, "isPure": false, @@ -1177,7 +1177,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2591:12:18", + "src": "2591:12:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -1185,12 +1185,12 @@ }, { "argumentTypes": null, - "id": 6395, + "id": 6154, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6385, - "src": "2605:7:18", + "referencedDeclaration": 6144, + "src": "2605:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -1198,12 +1198,12 @@ }, { "argumentTypes": null, - "id": 6396, + "id": 6155, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6387, - "src": "2614:6:18", + "referencedDeclaration": 6146, + "src": "2614:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1225,18 +1225,18 @@ "typeString": "uint256" } ], - "id": 6392, + "id": 6151, "name": "_approve", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6679, - "src": "2582:8:18", + "referencedDeclaration": 6438, + "src": "2582:8:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6397, + "id": 6156, "isConstant": false, "isLValue": false, "isPure": false, @@ -1244,28 +1244,28 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2582:39:18", + "src": "2582:39:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6398, + "id": 6157, "nodeType": "ExpressionStatement", - "src": "2582:39:18" + "src": "2582:39:17" }, { "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 6399, + "id": 6158, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", - "src": "2638:4:18", + "src": "2638:4:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", @@ -1273,31 +1273,31 @@ }, "value": "true" }, - "functionReturnParameters": 6391, - "id": 6400, + "functionReturnParameters": 6150, + "id": 6159, "nodeType": "Return", - "src": "2631:11:18" + "src": "2631:11:17" } ] }, "documentation": "@dev See {IERC20-approve}.\n * Requirements:\n * - `spender` cannot be the zero address.", - "id": 6402, + "id": 6161, "implemented": true, "kind": "function", "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { - "id": 6388, + "id": 6147, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6385, + "id": 6144, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6402, - "src": "2517:15:18", + "scope": 6161, + "src": "2517:15:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1305,10 +1305,10 @@ "typeString": "address" }, "typeName": { - "id": 6384, + "id": 6143, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2517:7:18", + "src": "2517:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1320,11 +1320,11 @@ }, { "constant": false, - "id": 6387, + "id": 6146, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6402, - "src": "2534:14:18", + "scope": 6161, + "src": "2534:14:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1332,10 +1332,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6386, + "id": 6145, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "2534:7:18", + "src": "2534:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1345,19 +1345,19 @@ "visibility": "internal" } ], - "src": "2516:33:18" + "src": "2516:33:17" }, "returnParameters": { - "id": 6391, + "id": 6150, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6390, + "id": 6149, "name": "", "nodeType": "VariableDeclaration", - "scope": 6402, - "src": "2566:4:18", + "scope": 6161, + "src": "2566:4:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1365,10 +1365,10 @@ "typeString": "bool" }, "typeName": { - "id": 6389, + "id": 6148, "name": "bool", "nodeType": "ElementaryTypeName", - "src": "2566:4:18", + "src": "2566:4:17", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -1378,19 +1378,19 @@ "visibility": "internal" } ], - "src": "2565:6:18" + "src": "2565:6:17" }, - "scope": 6709, - "src": "2500:149:18", + "scope": 6468, + "src": "2500:149:17", "stateMutability": "nonpayable", - "superFunction": 6750, + "superFunction": 6509, "visibility": "public" }, { "body": { - "id": 6437, + "id": 6196, "nodeType": "Block", - "src": "3202:205:18", + "src": "3202:205:17", "statements": [ { "expression": { @@ -1398,12 +1398,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6414, + "id": 6173, "name": "sender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6404, - "src": "3222:6:18", + "referencedDeclaration": 6163, + "src": "3222:6:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -1411,12 +1411,12 @@ }, { "argumentTypes": null, - "id": 6415, + "id": 6174, "name": "recipient", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6406, - "src": "3230:9:18", + "referencedDeclaration": 6165, + "src": "3230:9:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -1424,12 +1424,12 @@ }, { "argumentTypes": null, - "id": 6416, + "id": 6175, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6408, - "src": "3241:6:18", + "referencedDeclaration": 6167, + "src": "3241:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1451,18 +1451,18 @@ "typeString": "uint256" } ], - "id": 6413, + "id": 6172, "name": "_transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6550, - "src": "3212:9:18", + "referencedDeclaration": 6309, + "src": "3212:9:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6417, + "id": 6176, "isConstant": false, "isLValue": false, "isPure": false, @@ -1470,15 +1470,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3212:36:18", + "src": "3212:36:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6418, + "id": 6177, "nodeType": "ExpressionStatement", - "src": "3212:36:18" + "src": "3212:36:17" }, { "expression": { @@ -1486,12 +1486,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6420, + "id": 6179, "name": "sender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6404, - "src": "3267:6:18", + "referencedDeclaration": 6163, + "src": "3267:6:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -1502,18 +1502,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 6421, + "id": 6180, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, - "src": "3275:10:18", + "referencedDeclaration": 5746, + "src": "3275:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6422, + "id": 6181, "isConstant": false, "isLValue": false, "isPure": false, @@ -1521,7 +1521,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3275:12:18", + "src": "3275:12:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -1532,12 +1532,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6430, + "id": 6189, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6408, - "src": "3327:6:18", + "referencedDeclaration": 6167, + "src": "3327:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1546,14 +1546,14 @@ { "argumentTypes": null, "hexValue": "45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365", - "id": 6431, + "id": 6190, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "3335:42:18", + "src": "3335:42:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_974d1b4421da69cc60b481194f0dad36a5bb4e23da810da7a7fb30cdba178330", @@ -1579,26 +1579,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6423, + "id": 6182, "name": "_allowances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6326, - "src": "3289:11:18", + "referencedDeclaration": 6085, + "src": "3289:11:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 6425, + "id": 6184, "indexExpression": { "argumentTypes": null, - "id": 6424, + "id": 6183, "name": "sender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6404, - "src": "3301:6:18", + "referencedDeclaration": 6163, + "src": "3301:6:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -1609,30 +1609,30 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "3289:19:18", + "src": "3289:19:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6428, + "id": 6187, "indexExpression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], - "id": 6426, + "id": 6185, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, - "src": "3309:10:18", + "referencedDeclaration": 5746, + "src": "3309:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6427, + "id": 6186, "isConstant": false, "isLValue": false, "isPure": false, @@ -1640,7 +1640,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3309:12:18", + "src": "3309:12:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -1651,27 +1651,27 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "3289:33:18", + "src": "3289:33:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6429, + "id": 6188, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sub", "nodeType": "MemberAccess", - "referencedDeclaration": 6069, - "src": "3289:37:18", + "referencedDeclaration": 5828, + "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": 6432, + "id": 6191, "isConstant": false, "isLValue": false, "isPure": false, @@ -1679,7 +1679,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3289:89:18", + "src": "3289:89:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1701,18 +1701,18 @@ "typeString": "uint256" } ], - "id": 6419, + "id": 6178, "name": "_approve", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6679, - "src": "3258:8:18", + "referencedDeclaration": 6438, + "src": "3258:8:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6433, + "id": 6192, "isConstant": false, "isLValue": false, "isPure": false, @@ -1720,28 +1720,28 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3258:121:18", + "src": "3258:121:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6434, + "id": 6193, "nodeType": "ExpressionStatement", - "src": "3258:121:18" + "src": "3258:121:17" }, { "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 6435, + "id": 6194, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", - "src": "3396:4:18", + "src": "3396:4:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", @@ -1749,31 +1749,31 @@ }, "value": "true" }, - "functionReturnParameters": 6412, - "id": 6436, + "functionReturnParameters": 6171, + "id": 6195, "nodeType": "Return", - "src": "3389:11:18" + "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": 6438, + "id": 6197, "implemented": true, "kind": "function", "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { - "id": 6409, + "id": 6168, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6404, + "id": 6163, "name": "sender", "nodeType": "VariableDeclaration", - "scope": 6438, - "src": "3129:14:18", + "scope": 6197, + "src": "3129:14:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1781,10 +1781,10 @@ "typeString": "address" }, "typeName": { - "id": 6403, + "id": 6162, "name": "address", "nodeType": "ElementaryTypeName", - "src": "3129:7:18", + "src": "3129:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1796,11 +1796,11 @@ }, { "constant": false, - "id": 6406, + "id": 6165, "name": "recipient", "nodeType": "VariableDeclaration", - "scope": 6438, - "src": "3145:17:18", + "scope": 6197, + "src": "3145:17:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1808,10 +1808,10 @@ "typeString": "address" }, "typeName": { - "id": 6405, + "id": 6164, "name": "address", "nodeType": "ElementaryTypeName", - "src": "3145:7:18", + "src": "3145:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1823,11 +1823,11 @@ }, { "constant": false, - "id": 6408, + "id": 6167, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6438, - "src": "3164:14:18", + "scope": 6197, + "src": "3164:14:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1835,10 +1835,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6407, + "id": 6166, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "3164:7:18", + "src": "3164:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1848,19 +1848,19 @@ "visibility": "internal" } ], - "src": "3128:51:18" + "src": "3128:51:17" }, "returnParameters": { - "id": 6412, + "id": 6171, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6411, + "id": 6170, "name": "", "nodeType": "VariableDeclaration", - "scope": 6438, - "src": "3196:4:18", + "scope": 6197, + "src": "3196:4:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1868,10 +1868,10 @@ "typeString": "bool" }, "typeName": { - "id": 6410, + "id": 6169, "name": "bool", "nodeType": "ElementaryTypeName", - "src": "3196:4:18", + "src": "3196:4:17", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -1881,19 +1881,19 @@ "visibility": "internal" } ], - "src": "3195:6:18" + "src": "3195:6:17" }, - "scope": 6709, - "src": "3107:300:18", + "scope": 6468, + "src": "3107:300:17", "stateMutability": "nonpayable", - "superFunction": 6761, + "superFunction": 6520, "visibility": "public" }, { "body": { - "id": 6464, + "id": 6223, "nodeType": "Block", - "src": "3888:121:18", + "src": "3888:121:17", "statements": [ { "expression": { @@ -1904,18 +1904,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 6448, + "id": 6207, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, - "src": "3907:10:18", + "referencedDeclaration": 5746, + "src": "3907:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6449, + "id": 6208, "isConstant": false, "isLValue": false, "isPure": false, @@ -1923,7 +1923,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3907:12:18", + "src": "3907:12:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -1931,12 +1931,12 @@ }, { "argumentTypes": null, - "id": 6450, + "id": 6209, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6440, - "src": "3921:7:18", + "referencedDeclaration": 6199, + "src": "3921:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -1947,12 +1947,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6458, + "id": 6217, "name": "addedValue", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6442, - "src": "3969:10:18", + "referencedDeclaration": 6201, + "src": "3969:10:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1972,35 +1972,35 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6451, + "id": 6210, "name": "_allowances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6326, - "src": "3930:11:18", + "referencedDeclaration": 6085, + "src": "3930:11:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 6454, + "id": 6213, "indexExpression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], - "id": 6452, + "id": 6211, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, - "src": "3942:10:18", + "referencedDeclaration": 5746, + "src": "3942:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6453, + "id": 6212, "isConstant": false, "isLValue": false, "isPure": false, @@ -2008,7 +2008,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3942:12:18", + "src": "3942:12:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -2019,21 +2019,21 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "3930:25:18", + "src": "3930:25:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6456, + "id": 6215, "indexExpression": { "argumentTypes": null, - "id": 6455, + "id": 6214, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6440, - "src": "3956:7:18", + "referencedDeclaration": 6199, + "src": "3956:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -2044,27 +2044,27 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "3930:34:18", + "src": "3930:34:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6457, + "id": 6216, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "add", "nodeType": "MemberAccess", - "referencedDeclaration": 6026, - "src": "3930:38:18", + "referencedDeclaration": 5785, + "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": 6459, + "id": 6218, "isConstant": false, "isLValue": false, "isPure": false, @@ -2072,7 +2072,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3930:50:18", + "src": "3930:50:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2094,18 +2094,18 @@ "typeString": "uint256" } ], - "id": 6447, + "id": 6206, "name": "_approve", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6679, - "src": "3898:8:18", + "referencedDeclaration": 6438, + "src": "3898:8:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6460, + "id": 6219, "isConstant": false, "isLValue": false, "isPure": false, @@ -2113,28 +2113,28 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3898:83:18", + "src": "3898:83:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6461, + "id": 6220, "nodeType": "ExpressionStatement", - "src": "3898:83:18" + "src": "3898:83:17" }, { "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 6462, + "id": 6221, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", - "src": "3998:4:18", + "src": "3998:4:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", @@ -2142,31 +2142,31 @@ }, "value": "true" }, - "functionReturnParameters": 6446, - "id": 6463, + "functionReturnParameters": 6205, + "id": 6222, "nodeType": "Return", - "src": "3991:11:18" + "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": 6465, + "id": 6224, "implemented": true, "kind": "function", "modifiers": [], "name": "increaseAllowance", "nodeType": "FunctionDefinition", "parameters": { - "id": 6443, + "id": 6202, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6440, + "id": 6199, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6465, - "src": "3829:15:18", + "scope": 6224, + "src": "3829:15:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2174,10 +2174,10 @@ "typeString": "address" }, "typeName": { - "id": 6439, + "id": 6198, "name": "address", "nodeType": "ElementaryTypeName", - "src": "3829:7:18", + "src": "3829:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2189,11 +2189,11 @@ }, { "constant": false, - "id": 6442, + "id": 6201, "name": "addedValue", "nodeType": "VariableDeclaration", - "scope": 6465, - "src": "3846:18:18", + "scope": 6224, + "src": "3846:18:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2201,10 +2201,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6441, + "id": 6200, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "3846:7:18", + "src": "3846:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2214,19 +2214,19 @@ "visibility": "internal" } ], - "src": "3828:37:18" + "src": "3828:37:17" }, "returnParameters": { - "id": 6446, + "id": 6205, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6445, + "id": 6204, "name": "", "nodeType": "VariableDeclaration", - "scope": 6465, - "src": "3882:4:18", + "scope": 6224, + "src": "3882:4:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2234,10 +2234,10 @@ "typeString": "bool" }, "typeName": { - "id": 6444, + "id": 6203, "name": "bool", "nodeType": "ElementaryTypeName", - "src": "3882:4:18", + "src": "3882:4:17", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -2247,19 +2247,19 @@ "visibility": "internal" } ], - "src": "3881:6:18" + "src": "3881:6:17" }, - "scope": 6709, - "src": "3802:207:18", + "scope": 6468, + "src": "3802:207:17", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 6492, + "id": 6251, "nodeType": "Block", - "src": "4587:167:18", + "src": "4587:167:17", "statements": [ { "expression": { @@ -2270,18 +2270,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 6475, + "id": 6234, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, - "src": "4606:10:18", + "referencedDeclaration": 5746, + "src": "4606:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6476, + "id": 6235, "isConstant": false, "isLValue": false, "isPure": false, @@ -2289,7 +2289,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4606:12:18", + "src": "4606:12:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -2297,12 +2297,12 @@ }, { "argumentTypes": null, - "id": 6477, + "id": 6236, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6467, - "src": "4620:7:18", + "referencedDeclaration": 6226, + "src": "4620:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -2313,12 +2313,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6485, + "id": 6244, "name": "subtractedValue", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6469, - "src": "4668:15:18", + "referencedDeclaration": 6228, + "src": "4668:15:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2327,14 +2327,14 @@ { "argumentTypes": null, "hexValue": "45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f", - "id": 6486, + "id": 6245, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "4685:39:18", + "src": "4685:39:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_f8b476f7d28209d77d4a4ac1fe36b9f8259aa1bb6bddfa6e89de7e51615cf8a8", @@ -2360,35 +2360,35 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6478, + "id": 6237, "name": "_allowances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6326, - "src": "4629:11:18", + "referencedDeclaration": 6085, + "src": "4629:11:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 6481, + "id": 6240, "indexExpression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], - "id": 6479, + "id": 6238, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, - "src": "4641:10:18", + "referencedDeclaration": 5746, + "src": "4641:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6480, + "id": 6239, "isConstant": false, "isLValue": false, "isPure": false, @@ -2396,7 +2396,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4641:12:18", + "src": "4641:12:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -2407,21 +2407,21 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "4629:25:18", + "src": "4629:25:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6483, + "id": 6242, "indexExpression": { "argumentTypes": null, - "id": 6482, + "id": 6241, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6467, - "src": "4655:7:18", + "referencedDeclaration": 6226, + "src": "4655:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -2432,27 +2432,27 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "4629:34:18", + "src": "4629:34:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6484, + "id": 6243, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sub", "nodeType": "MemberAccess", - "referencedDeclaration": 6069, - "src": "4629:38:18", + "referencedDeclaration": 5828, + "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": 6487, + "id": 6246, "isConstant": false, "isLValue": false, "isPure": false, @@ -2460,7 +2460,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4629:96:18", + "src": "4629:96:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2482,18 +2482,18 @@ "typeString": "uint256" } ], - "id": 6474, + "id": 6233, "name": "_approve", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6679, - "src": "4597:8:18", + "referencedDeclaration": 6438, + "src": "4597:8:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6488, + "id": 6247, "isConstant": false, "isLValue": false, "isPure": false, @@ -2501,28 +2501,28 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4597:129:18", + "src": "4597:129:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6489, + "id": 6248, "nodeType": "ExpressionStatement", - "src": "4597:129:18" + "src": "4597:129:17" }, { "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 6490, + "id": 6249, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", - "src": "4743:4:18", + "src": "4743:4:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", @@ -2530,31 +2530,31 @@ }, "value": "true" }, - "functionReturnParameters": 6473, - "id": 6491, + "functionReturnParameters": 6232, + "id": 6250, "nodeType": "Return", - "src": "4736:11:18" + "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": 6493, + "id": 6252, "implemented": true, "kind": "function", "modifiers": [], "name": "decreaseAllowance", "nodeType": "FunctionDefinition", "parameters": { - "id": 6470, + "id": 6229, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6467, + "id": 6226, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6493, - "src": "4523:15:18", + "scope": 6252, + "src": "4523:15:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2562,10 +2562,10 @@ "typeString": "address" }, "typeName": { - "id": 6466, + "id": 6225, "name": "address", "nodeType": "ElementaryTypeName", - "src": "4523:7:18", + "src": "4523:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2577,11 +2577,11 @@ }, { "constant": false, - "id": 6469, + "id": 6228, "name": "subtractedValue", "nodeType": "VariableDeclaration", - "scope": 6493, - "src": "4540:23:18", + "scope": 6252, + "src": "4540:23:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2589,10 +2589,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6468, + "id": 6227, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "4540:7:18", + "src": "4540:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2602,19 +2602,19 @@ "visibility": "internal" } ], - "src": "4522:42:18" + "src": "4522:42:17" }, "returnParameters": { - "id": 6473, + "id": 6232, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6472, + "id": 6231, "name": "", "nodeType": "VariableDeclaration", - "scope": 6493, - "src": "4581:4:18", + "scope": 6252, + "src": "4581:4:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2622,10 +2622,10 @@ "typeString": "bool" }, "typeName": { - "id": 6471, + "id": 6230, "name": "bool", "nodeType": "ElementaryTypeName", - "src": "4581:4:18", + "src": "4581:4:17", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -2635,19 +2635,19 @@ "visibility": "internal" } ], - "src": "4580:6:18" + "src": "4580:6:17" }, - "scope": 6709, - "src": "4496:258:18", + "scope": 6468, + "src": "4496:258:17", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 6549, + "id": 6308, "nodeType": "Block", - "src": "5307:385:18", + "src": "5307:385:17", "statements": [ { "expression": { @@ -2659,19 +2659,19 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6507, + "id": 6266, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6503, + "id": 6262, "name": "sender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6495, - "src": "5325:6:18", + "referencedDeclaration": 6254, + "src": "5325:6:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -2685,14 +2685,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6505, + "id": 6264, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "5343:1:18", + "src": "5343:1:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -2708,20 +2708,20 @@ "typeString": "int_const 0" } ], - "id": 6504, + "id": 6263, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "5335:7:18", + "src": "5335:7:17", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 6506, + "id": 6265, "isConstant": false, "isLValue": false, "isPure": true, @@ -2729,13 +2729,13 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5335:10:18", + "src": "5335:10:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, - "src": "5325:20:18", + "src": "5325:20:17", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -2744,14 +2744,14 @@ { "argumentTypes": null, "hexValue": "45524332303a207472616e736665722066726f6d20746865207a65726f2061646472657373", - "id": 6508, + "id": 6267, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "5347:39:18", + "src": "5347:39:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_baecc556b46f4ed0f2b4cb599d60785ac8563dd2dc0a5bf12edea1c39e5e1fea", @@ -2771,21 +2771,21 @@ "typeString": "literal_string \"ERC20: transfer from the zero address\"" } ], - "id": 6502, + "id": 6261, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, - "src": "5317:7:18", + "referencedDeclaration": 6556, + "src": "5317:7:17", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6509, + "id": 6268, "isConstant": false, "isLValue": false, "isPure": false, @@ -2793,15 +2793,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5317:70:18", + "src": "5317:70:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6510, + "id": 6269, "nodeType": "ExpressionStatement", - "src": "5317:70:18" + "src": "5317:70:17" }, { "expression": { @@ -2813,19 +2813,19 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6516, + "id": 6275, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6512, + "id": 6271, "name": "recipient", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6497, - "src": "5405:9:18", + "referencedDeclaration": 6256, + "src": "5405:9:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -2839,14 +2839,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6514, + "id": 6273, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "5426:1:18", + "src": "5426:1:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -2862,20 +2862,20 @@ "typeString": "int_const 0" } ], - "id": 6513, + "id": 6272, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "5418:7:18", + "src": "5418:7:17", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 6515, + "id": 6274, "isConstant": false, "isLValue": false, "isPure": true, @@ -2883,13 +2883,13 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5418:10:18", + "src": "5418:10:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, - "src": "5405:23:18", + "src": "5405:23:17", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -2898,14 +2898,14 @@ { "argumentTypes": null, "hexValue": "45524332303a207472616e7366657220746f20746865207a65726f2061646472657373", - "id": 6517, + "id": 6276, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "5430:37:18", + "src": "5430:37:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_0557e210f7a69a685100a7e4e3d0a7024c546085cee28910fd17d0b081d9516f", @@ -2925,21 +2925,21 @@ "typeString": "literal_string \"ERC20: transfer to the zero address\"" } ], - "id": 6511, + "id": 6270, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, - "src": "5397:7:18", + "referencedDeclaration": 6556, + "src": "5397:7:17", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6518, + "id": 6277, "isConstant": false, "isLValue": false, "isPure": false, @@ -2947,20 +2947,20 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5397:71:18", + "src": "5397:71:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6519, + "id": 6278, "nodeType": "ExpressionStatement", - "src": "5397:71:18" + "src": "5397:71:17" }, { "expression": { "argumentTypes": null, - "id": 6530, + "id": 6289, "isConstant": false, "isLValue": false, "isPure": false, @@ -2969,26 +2969,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6520, + "id": 6279, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6320, - "src": "5479:9:18", + "referencedDeclaration": 6079, + "src": "5479:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6522, + "id": 6281, "indexExpression": { "argumentTypes": null, - "id": 6521, + "id": 6280, "name": "sender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6495, - "src": "5489:6:18", + "referencedDeclaration": 6254, + "src": "5489:6:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -2999,7 +2999,7 @@ "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", - "src": "5479:17:18", + "src": "5479:17:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3012,12 +3012,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6527, + "id": 6286, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6499, - "src": "5521:6:18", + "referencedDeclaration": 6258, + "src": "5521:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3026,14 +3026,14 @@ { "argumentTypes": null, "hexValue": "45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365", - "id": 6528, + "id": 6287, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "5529:40:18", + "src": "5529:40:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_4107e8a8b9e94bf8ff83080ddec1c0bffe897ebc2241b89d44f66b3d274088b6", @@ -3057,26 +3057,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6523, + "id": 6282, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6320, - "src": "5499:9:18", + "referencedDeclaration": 6079, + "src": "5499:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6525, + "id": 6284, "indexExpression": { "argumentTypes": null, - "id": 6524, + "id": 6283, "name": "sender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6495, - "src": "5509:6:18", + "referencedDeclaration": 6254, + "src": "5509:6:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -3087,27 +3087,27 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "5499:17:18", + "src": "5499:17:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6526, + "id": 6285, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sub", "nodeType": "MemberAccess", - "referencedDeclaration": 6069, - "src": "5499:21:18", + "referencedDeclaration": 5828, + "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": 6529, + "id": 6288, "isConstant": false, "isLValue": false, "isPure": false, @@ -3115,26 +3115,26 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5499:71:18", + "src": "5499:71:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "5479:91:18", + "src": "5479:91:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6531, + "id": 6290, "nodeType": "ExpressionStatement", - "src": "5479:91:18" + "src": "5479:91:17" }, { "expression": { "argumentTypes": null, - "id": 6541, + "id": 6300, "isConstant": false, "isLValue": false, "isPure": false, @@ -3143,26 +3143,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6532, + "id": 6291, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6320, - "src": "5580:9:18", + "referencedDeclaration": 6079, + "src": "5580:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6534, + "id": 6293, "indexExpression": { "argumentTypes": null, - "id": 6533, + "id": 6292, "name": "recipient", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6497, - "src": "5590:9:18", + "referencedDeclaration": 6256, + "src": "5590:9:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -3173,7 +3173,7 @@ "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", - "src": "5580:20:18", + "src": "5580:20:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3186,12 +3186,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6539, + "id": 6298, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6499, - "src": "5628:6:18", + "referencedDeclaration": 6258, + "src": "5628:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3209,26 +3209,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6535, + "id": 6294, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6320, - "src": "5603:9:18", + "referencedDeclaration": 6079, + "src": "5603:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6537, + "id": 6296, "indexExpression": { "argumentTypes": null, - "id": 6536, + "id": 6295, "name": "recipient", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6497, - "src": "5613:9:18", + "referencedDeclaration": 6256, + "src": "5613:9:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -3239,27 +3239,27 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "5603:20:18", + "src": "5603:20:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6538, + "id": 6297, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "add", "nodeType": "MemberAccess", - "referencedDeclaration": 6026, - "src": "5603:24:18", + "referencedDeclaration": 5785, + "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": 6540, + "id": 6299, "isConstant": false, "isLValue": false, "isPure": false, @@ -3267,21 +3267,21 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5603:32:18", + "src": "5603:32:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "5580:55:18", + "src": "5580:55:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6542, + "id": 6301, "nodeType": "ExpressionStatement", - "src": "5580:55:18" + "src": "5580:55:17" }, { "eventCall": { @@ -3289,12 +3289,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6544, + "id": 6303, "name": "sender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6495, - "src": "5659:6:18", + "referencedDeclaration": 6254, + "src": "5659:6:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -3302,12 +3302,12 @@ }, { "argumentTypes": null, - "id": 6545, + "id": 6304, "name": "recipient", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6497, - "src": "5667:9:18", + "referencedDeclaration": 6256, + "src": "5667:9:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -3315,12 +3315,12 @@ }, { "argumentTypes": null, - "id": 6546, + "id": 6305, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6499, - "src": "5678:6:18", + "referencedDeclaration": 6258, + "src": "5678:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3342,18 +3342,18 @@ "typeString": "uint256" } ], - "id": 6543, + "id": 6302, "name": "Transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6769, - "src": "5650:8:18", + "referencedDeclaration": 6528, + "src": "5650:8:17", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6547, + "id": 6306, "isConstant": false, "isLValue": false, "isPure": false, @@ -3361,36 +3361,36 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5650:35:18", + "src": "5650:35:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6548, + "id": 6307, "nodeType": "EmitStatement", - "src": "5645:40:18" + "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": 6550, + "id": 6309, "implemented": true, "kind": "function", "modifiers": [], "name": "_transfer", "nodeType": "FunctionDefinition", "parameters": { - "id": 6500, + "id": 6259, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6495, + "id": 6254, "name": "sender", "nodeType": "VariableDeclaration", - "scope": 6550, - "src": "5247:14:18", + "scope": 6309, + "src": "5247:14:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3398,10 +3398,10 @@ "typeString": "address" }, "typeName": { - "id": 6494, + "id": 6253, "name": "address", "nodeType": "ElementaryTypeName", - "src": "5247:7:18", + "src": "5247:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -3413,11 +3413,11 @@ }, { "constant": false, - "id": 6497, + "id": 6256, "name": "recipient", "nodeType": "VariableDeclaration", - "scope": 6550, - "src": "5263:17:18", + "scope": 6309, + "src": "5263:17:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3425,10 +3425,10 @@ "typeString": "address" }, "typeName": { - "id": 6496, + "id": 6255, "name": "address", "nodeType": "ElementaryTypeName", - "src": "5263:7:18", + "src": "5263:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -3440,11 +3440,11 @@ }, { "constant": false, - "id": 6499, + "id": 6258, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6550, - "src": "5282:14:18", + "scope": 6309, + "src": "5282:14:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3452,10 +3452,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6498, + "id": 6257, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "5282:7:18", + "src": "5282:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3465,25 +3465,25 @@ "visibility": "internal" } ], - "src": "5246:51:18" + "src": "5246:51:17" }, "returnParameters": { - "id": 6501, + "id": 6260, "nodeType": "ParameterList", "parameters": [], - "src": "5307:0:18" + "src": "5307:0:17" }, - "scope": 6709, - "src": "5228:464:18", + "scope": 6468, + "src": "5228:464:17", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { - "id": 6592, + "id": 6351, "nodeType": "Block", - "src": "6019:245:18", + "src": "6019:245:17", "statements": [ { "expression": { @@ -3495,19 +3495,19 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6562, + "id": 6321, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6558, + "id": 6317, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6552, - "src": "6037:7:18", + "referencedDeclaration": 6311, + "src": "6037:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -3521,14 +3521,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6560, + "id": 6319, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "6056:1:18", + "src": "6056:1:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -3544,20 +3544,20 @@ "typeString": "int_const 0" } ], - "id": 6559, + "id": 6318, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "6048:7:18", + "src": "6048:7:17", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 6561, + "id": 6320, "isConstant": false, "isLValue": false, "isPure": true, @@ -3565,13 +3565,13 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6048:10:18", + "src": "6048:10:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, - "src": "6037:21:18", + "src": "6037:21:17", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -3580,14 +3580,14 @@ { "argumentTypes": null, "hexValue": "45524332303a206d696e7420746f20746865207a65726f2061646472657373", - "id": 6563, + "id": 6322, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "6060:33:18", + "src": "6060:33:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_fc0b381caf0a47702017f3c4b358ebe3d3aff6c60ce819a8bf3ef5a95d4f202e", @@ -3607,21 +3607,21 @@ "typeString": "literal_string \"ERC20: mint to the zero address\"" } ], - "id": 6557, + "id": 6316, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, - "src": "6029:7:18", + "referencedDeclaration": 6556, + "src": "6029:7:17", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6564, + "id": 6323, "isConstant": false, "isLValue": false, "isPure": false, @@ -3629,32 +3629,32 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6029:65:18", + "src": "6029:65:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6565, + "id": 6324, "nodeType": "ExpressionStatement", - "src": "6029:65:18" + "src": "6029:65:17" }, { "expression": { "argumentTypes": null, - "id": 6571, + "id": 6330, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 6566, + "id": 6325, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6328, - "src": "6105:12:18", + "referencedDeclaration": 6087, + "src": "6105:12:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3667,12 +3667,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6569, + "id": 6328, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6554, - "src": "6137:6:18", + "referencedDeclaration": 6313, + "src": "6137:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3688,32 +3688,32 @@ ], "expression": { "argumentTypes": null, - "id": 6567, + "id": 6326, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6328, - "src": "6120:12:18", + "referencedDeclaration": 6087, + "src": "6120:12:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6568, + "id": 6327, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "add", "nodeType": "MemberAccess", - "referencedDeclaration": 6026, - "src": "6120:16:18", + "referencedDeclaration": 5785, + "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": 6570, + "id": 6329, "isConstant": false, "isLValue": false, "isPure": false, @@ -3721,26 +3721,26 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6120:24:18", + "src": "6120:24:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "6105:39:18", + "src": "6105:39:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6572, + "id": 6331, "nodeType": "ExpressionStatement", - "src": "6105:39:18" + "src": "6105:39:17" }, { "expression": { "argumentTypes": null, - "id": 6582, + "id": 6341, "isConstant": false, "isLValue": false, "isPure": false, @@ -3749,26 +3749,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6573, + "id": 6332, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6320, - "src": "6154:9:18", + "referencedDeclaration": 6079, + "src": "6154:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6575, + "id": 6334, "indexExpression": { "argumentTypes": null, - "id": 6574, + "id": 6333, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6552, - "src": "6164:7:18", + "referencedDeclaration": 6311, + "src": "6164:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -3779,7 +3779,7 @@ "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", - "src": "6154:18:18", + "src": "6154:18:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3792,12 +3792,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6580, + "id": 6339, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6554, - "src": "6198:6:18", + "referencedDeclaration": 6313, + "src": "6198:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3815,26 +3815,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6576, + "id": 6335, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6320, - "src": "6175:9:18", + "referencedDeclaration": 6079, + "src": "6175:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6578, + "id": 6337, "indexExpression": { "argumentTypes": null, - "id": 6577, + "id": 6336, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6552, - "src": "6185:7:18", + "referencedDeclaration": 6311, + "src": "6185:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -3845,27 +3845,27 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "6175:18:18", + "src": "6175:18:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6579, + "id": 6338, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "add", "nodeType": "MemberAccess", - "referencedDeclaration": 6026, - "src": "6175:22:18", + "referencedDeclaration": 5785, + "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": 6581, + "id": 6340, "isConstant": false, "isLValue": false, "isPure": false, @@ -3873,21 +3873,21 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6175:30:18", + "src": "6175:30:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "6154:51:18", + "src": "6154:51:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6583, + "id": 6342, "nodeType": "ExpressionStatement", - "src": "6154:51:18" + "src": "6154:51:17" }, { "eventCall": { @@ -3899,14 +3899,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6586, + "id": 6345, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "6237:1:18", + "src": "6237:1:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -3922,20 +3922,20 @@ "typeString": "int_const 0" } ], - "id": 6585, + "id": 6344, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "6229:7:18", + "src": "6229:7:17", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 6587, + "id": 6346, "isConstant": false, "isLValue": false, "isPure": true, @@ -3943,7 +3943,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6229:10:18", + "src": "6229:10:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -3951,12 +3951,12 @@ }, { "argumentTypes": null, - "id": 6588, + "id": 6347, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6552, - "src": "6241:7:18", + "referencedDeclaration": 6311, + "src": "6241:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -3964,12 +3964,12 @@ }, { "argumentTypes": null, - "id": 6589, + "id": 6348, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6554, - "src": "6250:6:18", + "referencedDeclaration": 6313, + "src": "6250:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3991,18 +3991,18 @@ "typeString": "uint256" } ], - "id": 6584, + "id": 6343, "name": "Transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6769, - "src": "6220:8:18", + "referencedDeclaration": 6528, + "src": "6220:8:17", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6590, + "id": 6349, "isConstant": false, "isLValue": false, "isPure": false, @@ -4010,36 +4010,36 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6220:37:18", + "src": "6220:37:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6591, + "id": 6350, "nodeType": "EmitStatement", - "src": "6215:42:18" + "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": 6593, + "id": 6352, "implemented": true, "kind": "function", "modifiers": [], "name": "_mint", "nodeType": "FunctionDefinition", "parameters": { - "id": 6555, + "id": 6314, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6552, + "id": 6311, "name": "account", "nodeType": "VariableDeclaration", - "scope": 6593, - "src": "5977:15:18", + "scope": 6352, + "src": "5977:15:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4047,10 +4047,10 @@ "typeString": "address" }, "typeName": { - "id": 6551, + "id": 6310, "name": "address", "nodeType": "ElementaryTypeName", - "src": "5977:7:18", + "src": "5977:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -4062,11 +4062,11 @@ }, { "constant": false, - "id": 6554, + "id": 6313, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6593, - "src": "5994:14:18", + "scope": 6352, + "src": "5994:14:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4074,10 +4074,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6553, + "id": 6312, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "5994:7:18", + "src": "5994:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4087,25 +4087,25 @@ "visibility": "internal" } ], - "src": "5976:33:18" + "src": "5976:33:17" }, "returnParameters": { - "id": 6556, + "id": 6315, "nodeType": "ParameterList", "parameters": [], - "src": "6019:0:18" + "src": "6019:0:17" }, - "scope": 6709, - "src": "5962:302:18", + "scope": 6468, + "src": "5962:302:17", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { - "id": 6636, + "id": 6395, "nodeType": "Block", - "src": "6640:285:18", + "src": "6640:285:17", "statements": [ { "expression": { @@ -4117,19 +4117,19 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6605, + "id": 6364, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6601, + "id": 6360, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6595, - "src": "6658:7:18", + "referencedDeclaration": 6354, + "src": "6658:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -4143,14 +4143,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6603, + "id": 6362, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "6677:1:18", + "src": "6677:1:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -4166,20 +4166,20 @@ "typeString": "int_const 0" } ], - "id": 6602, + "id": 6361, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "6669:7:18", + "src": "6669:7:17", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 6604, + "id": 6363, "isConstant": false, "isLValue": false, "isPure": true, @@ -4187,13 +4187,13 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6669:10:18", + "src": "6669:10:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, - "src": "6658:21:18", + "src": "6658:21:17", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -4202,14 +4202,14 @@ { "argumentTypes": null, "hexValue": "45524332303a206275726e2066726f6d20746865207a65726f2061646472657373", - "id": 6606, + "id": 6365, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "6681:35:18", + "src": "6681:35:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_b16788493b576042bb52c50ed56189e0b250db113c7bfb1c3897d25cf9632d7f", @@ -4229,21 +4229,21 @@ "typeString": "literal_string \"ERC20: burn from the zero address\"" } ], - "id": 6600, + "id": 6359, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, - "src": "6650:7:18", + "referencedDeclaration": 6556, + "src": "6650:7:17", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6607, + "id": 6366, "isConstant": false, "isLValue": false, "isPure": false, @@ -4251,20 +4251,20 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6650:67:18", + "src": "6650:67:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6608, + "id": 6367, "nodeType": "ExpressionStatement", - "src": "6650:67:18" + "src": "6650:67:17" }, { "expression": { "argumentTypes": null, - "id": 6619, + "id": 6378, "isConstant": false, "isLValue": false, "isPure": false, @@ -4273,26 +4273,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6609, + "id": 6368, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6320, - "src": "6728:9:18", + "referencedDeclaration": 6079, + "src": "6728:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6611, + "id": 6370, "indexExpression": { "argumentTypes": null, - "id": 6610, + "id": 6369, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6595, - "src": "6738:7:18", + "referencedDeclaration": 6354, + "src": "6738:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -4303,7 +4303,7 @@ "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", - "src": "6728:18:18", + "src": "6728:18:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4316,12 +4316,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6616, + "id": 6375, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6597, - "src": "6772:6:18", + "referencedDeclaration": 6356, + "src": "6772:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4330,14 +4330,14 @@ { "argumentTypes": null, "hexValue": "45524332303a206275726e20616d6f756e7420657863656564732062616c616e6365", - "id": 6617, + "id": 6376, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "6780:36:18", + "src": "6780:36:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_149b126e7125232b4200af45303d04fba8b74653b1a295a6a561a528c33fefdd", @@ -4361,26 +4361,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6612, + "id": 6371, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6320, - "src": "6749:9:18", + "referencedDeclaration": 6079, + "src": "6749:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6614, + "id": 6373, "indexExpression": { "argumentTypes": null, - "id": 6613, + "id": 6372, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6595, - "src": "6759:7:18", + "referencedDeclaration": 6354, + "src": "6759:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -4391,27 +4391,27 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "6749:18:18", + "src": "6749:18:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6615, + "id": 6374, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sub", "nodeType": "MemberAccess", - "referencedDeclaration": 6069, - "src": "6749:22:18", + "referencedDeclaration": 5828, + "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": 6618, + "id": 6377, "isConstant": false, "isLValue": false, "isPure": false, @@ -4419,38 +4419,38 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6749:68:18", + "src": "6749:68:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "6728:89:18", + "src": "6728:89:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6620, + "id": 6379, "nodeType": "ExpressionStatement", - "src": "6728:89:18" + "src": "6728:89:17" }, { "expression": { "argumentTypes": null, - "id": 6626, + "id": 6385, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 6621, + "id": 6380, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6328, - "src": "6827:12:18", + "referencedDeclaration": 6087, + "src": "6827:12:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4463,12 +4463,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6624, + "id": 6383, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6597, - "src": "6859:6:18", + "referencedDeclaration": 6356, + "src": "6859:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4484,32 +4484,32 @@ ], "expression": { "argumentTypes": null, - "id": 6622, + "id": 6381, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6328, - "src": "6842:12:18", + "referencedDeclaration": 6087, + "src": "6842:12:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6623, + "id": 6382, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sub", "nodeType": "MemberAccess", - "referencedDeclaration": 6042, - "src": "6842:16:18", + "referencedDeclaration": 5801, + "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": 6625, + "id": 6384, "isConstant": false, "isLValue": false, "isPure": false, @@ -4517,21 +4517,21 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6842:24:18", + "src": "6842:24:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "6827:39:18", + "src": "6827:39:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6627, + "id": 6386, "nodeType": "ExpressionStatement", - "src": "6827:39:18" + "src": "6827:39:17" }, { "eventCall": { @@ -4539,12 +4539,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6629, + "id": 6388, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6595, - "src": "6890:7:18", + "referencedDeclaration": 6354, + "src": "6890:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -4556,14 +4556,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6631, + "id": 6390, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "6907:1:18", + "src": "6907:1:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -4579,20 +4579,20 @@ "typeString": "int_const 0" } ], - "id": 6630, + "id": 6389, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "6899:7:18", + "src": "6899:7:17", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 6632, + "id": 6391, "isConstant": false, "isLValue": false, "isPure": true, @@ -4600,7 +4600,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6899:10:18", + "src": "6899:10:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -4608,12 +4608,12 @@ }, { "argumentTypes": null, - "id": 6633, + "id": 6392, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6597, - "src": "6911:6:18", + "referencedDeclaration": 6356, + "src": "6911:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4635,18 +4635,18 @@ "typeString": "uint256" } ], - "id": 6628, + "id": 6387, "name": "Transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6769, - "src": "6881:8:18", + "referencedDeclaration": 6528, + "src": "6881:8:17", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6634, + "id": 6393, "isConstant": false, "isLValue": false, "isPure": false, @@ -4654,36 +4654,36 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6881:37:18", + "src": "6881:37:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6635, + "id": 6394, "nodeType": "EmitStatement", - "src": "6876:42:18" + "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": 6637, + "id": 6396, "implemented": true, "kind": "function", "modifiers": [], "name": "_burn", "nodeType": "FunctionDefinition", "parameters": { - "id": 6598, + "id": 6357, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6595, + "id": 6354, "name": "account", "nodeType": "VariableDeclaration", - "scope": 6637, - "src": "6598:15:18", + "scope": 6396, + "src": "6598:15:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4691,10 +4691,10 @@ "typeString": "address" }, "typeName": { - "id": 6594, + "id": 6353, "name": "address", "nodeType": "ElementaryTypeName", - "src": "6598:7:18", + "src": "6598:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -4706,11 +4706,11 @@ }, { "constant": false, - "id": 6597, + "id": 6356, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6637, - "src": "6615:14:18", + "scope": 6396, + "src": "6615:14:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4718,10 +4718,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6596, + "id": 6355, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "6615:7:18", + "src": "6615:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4731,25 +4731,25 @@ "visibility": "internal" } ], - "src": "6597:33:18" + "src": "6597:33:17" }, "returnParameters": { - "id": 6599, + "id": 6358, "nodeType": "ParameterList", "parameters": [], - "src": "6640:0:18" + "src": "6640:0:17" }, - "scope": 6709, - "src": "6583:342:18", + "scope": 6468, + "src": "6583:342:17", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { - "id": 6678, + "id": 6437, "nodeType": "Block", - "src": "7425:257:18", + "src": "7425:257:17", "statements": [ { "expression": { @@ -4761,19 +4761,19 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6651, + "id": 6410, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6647, + "id": 6406, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6639, - "src": "7443:5:18", + "referencedDeclaration": 6398, + "src": "7443:5:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -4787,14 +4787,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6649, + "id": 6408, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "7460:1:18", + "src": "7460:1:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -4810,20 +4810,20 @@ "typeString": "int_const 0" } ], - "id": 6648, + "id": 6407, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "7452:7:18", + "src": "7452:7:17", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 6650, + "id": 6409, "isConstant": false, "isLValue": false, "isPure": true, @@ -4831,13 +4831,13 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "7452:10:18", + "src": "7452:10:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, - "src": "7443:19:18", + "src": "7443:19:17", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -4846,14 +4846,14 @@ { "argumentTypes": null, "hexValue": "45524332303a20617070726f76652066726f6d20746865207a65726f2061646472657373", - "id": 6652, + "id": 6411, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "7464:38:18", + "src": "7464:38:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_c953f4879035ed60e766b34720f656aab5c697b141d924c283124ecedb91c208", @@ -4873,21 +4873,21 @@ "typeString": "literal_string \"ERC20: approve from the zero address\"" } ], - "id": 6646, + "id": 6405, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, - "src": "7435:7:18", + "referencedDeclaration": 6556, + "src": "7435:7:17", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6653, + "id": 6412, "isConstant": false, "isLValue": false, "isPure": false, @@ -4895,15 +4895,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "7435:68:18", + "src": "7435:68:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6654, + "id": 6413, "nodeType": "ExpressionStatement", - "src": "7435:68:18" + "src": "7435:68:17" }, { "expression": { @@ -4915,19 +4915,19 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6660, + "id": 6419, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6656, + "id": 6415, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6641, - "src": "7521:7:18", + "referencedDeclaration": 6400, + "src": "7521:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -4941,14 +4941,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6658, + "id": 6417, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "7540:1:18", + "src": "7540:1:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -4964,20 +4964,20 @@ "typeString": "int_const 0" } ], - "id": 6657, + "id": 6416, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "7532:7:18", + "src": "7532:7:17", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 6659, + "id": 6418, "isConstant": false, "isLValue": false, "isPure": true, @@ -4985,13 +4985,13 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "7532:10:18", + "src": "7532:10:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, - "src": "7521:21:18", + "src": "7521:21:17", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -5000,14 +5000,14 @@ { "argumentTypes": null, "hexValue": "45524332303a20617070726f766520746f20746865207a65726f2061646472657373", - "id": 6661, + "id": 6420, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "7544:36:18", + "src": "7544:36:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_24883cc5fe64ace9d0df1893501ecb93c77180f0ff69cca79affb3c316dc8029", @@ -5027,21 +5027,21 @@ "typeString": "literal_string \"ERC20: approve to the zero address\"" } ], - "id": 6655, + "id": 6414, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, - "src": "7513:7:18", + "referencedDeclaration": 6556, + "src": "7513:7:17", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6662, + "id": 6421, "isConstant": false, "isLValue": false, "isPure": false, @@ -5049,20 +5049,20 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "7513:68:18", + "src": "7513:68:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6663, + "id": 6422, "nodeType": "ExpressionStatement", - "src": "7513:68:18" + "src": "7513:68:17" }, { "expression": { "argumentTypes": null, - "id": 6670, + "id": 6429, "isConstant": false, "isLValue": false, "isPure": false, @@ -5073,26 +5073,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6664, + "id": 6423, "name": "_allowances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6326, - "src": "7592:11:18", + "referencedDeclaration": 6085, + "src": "7592:11:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 6667, + "id": 6426, "indexExpression": { "argumentTypes": null, - "id": 6665, + "id": 6424, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6639, - "src": "7604:5:18", + "referencedDeclaration": 6398, + "src": "7604:5:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -5103,21 +5103,21 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "7592:18:18", + "src": "7592:18:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6668, + "id": 6427, "indexExpression": { "argumentTypes": null, - "id": 6666, + "id": 6425, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6641, - "src": "7611:7:18", + "referencedDeclaration": 6400, + "src": "7611:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -5128,7 +5128,7 @@ "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", - "src": "7592:27:18", + "src": "7592:27:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5138,26 +5138,26 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 6669, + "id": 6428, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6643, - "src": "7622:6:18", + "referencedDeclaration": 6402, + "src": "7622:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "7592:36:18", + "src": "7592:36:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6671, + "id": 6430, "nodeType": "ExpressionStatement", - "src": "7592:36:18" + "src": "7592:36:17" }, { "eventCall": { @@ -5165,12 +5165,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6673, + "id": 6432, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6639, - "src": "7652:5:18", + "referencedDeclaration": 6398, + "src": "7652:5:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -5178,12 +5178,12 @@ }, { "argumentTypes": null, - "id": 6674, + "id": 6433, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6641, - "src": "7659:7:18", + "referencedDeclaration": 6400, + "src": "7659:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -5191,12 +5191,12 @@ }, { "argumentTypes": null, - "id": 6675, + "id": 6434, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6643, - "src": "7668:6:18", + "referencedDeclaration": 6402, + "src": "7668:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5218,18 +5218,18 @@ "typeString": "uint256" } ], - "id": 6672, + "id": 6431, "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6777, - "src": "7643:8:18", + "referencedDeclaration": 6536, + "src": "7643:8:17", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6676, + "id": 6435, "isConstant": false, "isLValue": false, "isPure": false, @@ -5237,36 +5237,36 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "7643:32:18", + "src": "7643:32:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6677, + "id": 6436, "nodeType": "EmitStatement", - "src": "7638:37:18" + "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": 6679, + "id": 6438, "implemented": true, "kind": "function", "modifiers": [], "name": "_approve", "nodeType": "FunctionDefinition", "parameters": { - "id": 6644, + "id": 6403, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6639, + "id": 6398, "name": "owner", "nodeType": "VariableDeclaration", - "scope": 6679, - "src": "7368:13:18", + "scope": 6438, + "src": "7368:13:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -5274,10 +5274,10 @@ "typeString": "address" }, "typeName": { - "id": 6638, + "id": 6397, "name": "address", "nodeType": "ElementaryTypeName", - "src": "7368:7:18", + "src": "7368:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -5289,11 +5289,11 @@ }, { "constant": false, - "id": 6641, + "id": 6400, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6679, - "src": "7383:15:18", + "scope": 6438, + "src": "7383:15:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -5301,10 +5301,10 @@ "typeString": "address" }, "typeName": { - "id": 6640, + "id": 6399, "name": "address", "nodeType": "ElementaryTypeName", - "src": "7383:7:18", + "src": "7383:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -5316,11 +5316,11 @@ }, { "constant": false, - "id": 6643, + "id": 6402, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6679, - "src": "7400:14:18", + "scope": 6438, + "src": "7400:14:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -5328,10 +5328,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6642, + "id": 6401, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "7400:7:18", + "src": "7400:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5341,25 +5341,25 @@ "visibility": "internal" } ], - "src": "7367:48:18" + "src": "7367:48:17" }, "returnParameters": { - "id": 6645, + "id": 6404, "nodeType": "ParameterList", "parameters": [], - "src": "7425:0:18" + "src": "7425:0:17" }, - "scope": 6709, - "src": "7350:332:18", + "scope": 6468, + "src": "7350:332:17", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { - "id": 6707, + "id": 6466, "nodeType": "Block", - "src": "7921:168:18", + "src": "7921:168:17", "statements": [ { "expression": { @@ -5367,12 +5367,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6687, + "id": 6446, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6681, - "src": "7937:7:18", + "referencedDeclaration": 6440, + "src": "7937:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -5380,12 +5380,12 @@ }, { "argumentTypes": null, - "id": 6688, + "id": 6447, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6683, - "src": "7946:6:18", + "referencedDeclaration": 6442, + "src": "7946:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5403,18 +5403,18 @@ "typeString": "uint256" } ], - "id": 6686, + "id": 6445, "name": "_burn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6637, - "src": "7931:5:18", + "referencedDeclaration": 6396, + "src": "7931:5:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,uint256)" } }, - "id": 6689, + "id": 6448, "isConstant": false, "isLValue": false, "isPure": false, @@ -5422,15 +5422,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "7931:22:18", + "src": "7931:22:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6690, + "id": 6449, "nodeType": "ExpressionStatement", - "src": "7931:22:18" + "src": "7931:22:17" }, { "expression": { @@ -5438,12 +5438,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6692, + "id": 6451, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6681, - "src": "7972:7:18", + "referencedDeclaration": 6440, + "src": "7972:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -5454,18 +5454,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 6693, + "id": 6452, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, - "src": "7981:10:18", + "referencedDeclaration": 5746, + "src": "7981:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6694, + "id": 6453, "isConstant": false, "isLValue": false, "isPure": false, @@ -5473,7 +5473,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "7981:12:18", + "src": "7981:12:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -5484,12 +5484,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6702, + "id": 6461, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6683, - "src": "8034:6:18", + "referencedDeclaration": 6442, + "src": "8034:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5498,14 +5498,14 @@ { "argumentTypes": null, "hexValue": "45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e6365", - "id": 6703, + "id": 6462, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "8042:38:18", + "src": "8042:38:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_a287c363786607a1457a2d9d12fa61c0073358e02d76b4035fc2c2d86a19c0db", @@ -5531,26 +5531,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6695, + "id": 6454, "name": "_allowances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6326, - "src": "7995:11:18", + "referencedDeclaration": 6085, + "src": "7995:11:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 6697, + "id": 6456, "indexExpression": { "argumentTypes": null, - "id": 6696, + "id": 6455, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6681, - "src": "8007:7:18", + "referencedDeclaration": 6440, + "src": "8007:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -5561,30 +5561,30 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "7995:20:18", + "src": "7995:20:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6700, + "id": 6459, "indexExpression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], - "id": 6698, + "id": 6457, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, - "src": "8016:10:18", + "referencedDeclaration": 5746, + "src": "8016:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6699, + "id": 6458, "isConstant": false, "isLValue": false, "isPure": false, @@ -5592,7 +5592,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "8016:12:18", + "src": "8016:12:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -5603,27 +5603,27 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "7995:34:18", + "src": "7995:34:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6701, + "id": 6460, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sub", "nodeType": "MemberAccess", - "referencedDeclaration": 6069, - "src": "7995:38:18", + "referencedDeclaration": 5828, + "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": 6704, + "id": 6463, "isConstant": false, "isLValue": false, "isPure": false, @@ -5631,7 +5631,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "7995:86:18", + "src": "7995:86:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5653,18 +5653,18 @@ "typeString": "uint256" } ], - "id": 6691, + "id": 6450, "name": "_approve", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6679, - "src": "7963:8:18", + "referencedDeclaration": 6438, + "src": "7963:8:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6705, + "id": 6464, "isConstant": false, "isLValue": false, "isPure": false, @@ -5672,36 +5672,36 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "7963:119:18", + "src": "7963:119:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6706, + "id": 6465, "nodeType": "ExpressionStatement", - "src": "7963:119:18" + "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": 6708, + "id": 6467, "implemented": true, "kind": "function", "modifiers": [], "name": "_burnFrom", "nodeType": "FunctionDefinition", "parameters": { - "id": 6684, + "id": 6443, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6681, + "id": 6440, "name": "account", "nodeType": "VariableDeclaration", - "scope": 6708, - "src": "7879:15:18", + "scope": 6467, + "src": "7879:15:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -5709,10 +5709,10 @@ "typeString": "address" }, "typeName": { - "id": 6680, + "id": 6439, "name": "address", "nodeType": "ElementaryTypeName", - "src": "7879:7:18", + "src": "7879:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -5724,11 +5724,11 @@ }, { "constant": false, - "id": 6683, + "id": 6442, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6708, - "src": "7896:14:18", + "scope": 6467, + "src": "7896:14:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -5736,10 +5736,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6682, + "id": 6441, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "7896:7:18", + "src": "7896:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5749,39 +5749,39 @@ "visibility": "internal" } ], - "src": "7878:33:18" + "src": "7878:33:17" }, "returnParameters": { - "id": 6685, + "id": 6444, "nodeType": "ParameterList", "parameters": [], - "src": "7921:0:18" + "src": "7921:0:17" }, - "scope": 6709, - "src": "7860:229:18", + "scope": 6468, + "src": "7860:229:17", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" } ], - "scope": 6710, - "src": "1268:6823:18" + "scope": 6469, + "src": "1268:6823:17" } ], - "src": "0:8092:18" + "src": "0:8092:17" }, "legacyAST": { "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol", "exportedSymbols": { "ERC20": [ - 6709 + 6468 ] }, - "id": 6710, + "id": 6469, "nodeType": "SourceUnit", "nodes": [ { - "id": 6306, + "id": 6065, "literals": [ "solidity", "^", @@ -5789,38 +5789,38 @@ ".0" ], "nodeType": "PragmaDirective", - "src": "0:23:18" + "src": "0:23:17" }, { "absolutePath": "openzeppelin-solidity/contracts/GSN/Context.sol", "file": "../../GSN/Context.sol", - "id": 6307, + "id": 6066, "nodeType": "ImportDirective", - "scope": 6710, - "sourceUnit": 6000, - "src": "25:31:18", + "scope": 6469, + "sourceUnit": 5759, + "src": "25:31:17", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol", "file": "./IERC20.sol", - "id": 6308, + "id": 6067, "nodeType": "ImportDirective", - "scope": 6710, - "sourceUnit": 6779, - "src": "57:22:18", + "scope": 6469, + "sourceUnit": 6538, + "src": "57:22:17", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "openzeppelin-solidity/contracts/math/SafeMath.sol", "file": "../../math/SafeMath.sol", - "id": 6309, + "id": 6068, "nodeType": "ImportDirective", - "scope": 6710, - "sourceUnit": 6187, - "src": "80:33:18", + "scope": 6469, + "sourceUnit": 5946, + "src": "80:33:17", "symbolAliases": [], "unitAlias": "" }, @@ -5830,76 +5830,76 @@ "arguments": null, "baseName": { "contractScope": null, - "id": 6310, + "id": 6069, "name": "Context", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 5999, - "src": "1286:7:18", + "referencedDeclaration": 5758, + "src": "1286:7:17", "typeDescriptions": { - "typeIdentifier": "t_contract$_Context_$5999", + "typeIdentifier": "t_contract$_Context_$5758", "typeString": "contract Context" } }, - "id": 6311, + "id": 6070, "nodeType": "InheritanceSpecifier", - "src": "1286:7:18" + "src": "1286:7:17" }, { "arguments": null, "baseName": { "contractScope": null, - "id": 6312, + "id": 6071, "name": "IERC20", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 6778, - "src": "1295:6:18", + "referencedDeclaration": 6537, + "src": "1295:6:17", "typeDescriptions": { - "typeIdentifier": "t_contract$_IERC20_$6778", + "typeIdentifier": "t_contract$_IERC20_$6537", "typeString": "contract IERC20" } }, - "id": 6313, + "id": 6072, "nodeType": "InheritanceSpecifier", - "src": "1295:6:18" + "src": "1295:6:17" } ], "contractDependencies": [ - 5999, - 6778 + 5758, + 6537 ], "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": 6709, + "id": 6468, "linearizedBaseContracts": [ - 6709, - 6778, - 5999 + 6468, + 6537, + 5758 ], "name": "ERC20", "nodeType": "ContractDefinition", "nodes": [ { - "id": 6316, + "id": 6075, "libraryName": { "contractScope": null, - "id": 6314, + "id": 6073, "name": "SafeMath", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 6186, - "src": "1314:8:18", + "referencedDeclaration": 5945, + "src": "1314:8:17", "typeDescriptions": { - "typeIdentifier": "t_contract$_SafeMath_$6186", + "typeIdentifier": "t_contract$_SafeMath_$5945", "typeString": "library SafeMath" } }, "nodeType": "UsingForDirective", - "src": "1308:27:18", + "src": "1308:27:17", "typeName": { - "id": 6315, + "id": 6074, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1327:7:18", + "src": "1327:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5908,11 +5908,11 @@ }, { "constant": false, - "id": 6320, + "id": 6079, "name": "_balances", "nodeType": "VariableDeclaration", - "scope": 6709, - "src": "1341:46:18", + "scope": 6468, + "src": "1341:46:17", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -5920,28 +5920,28 @@ "typeString": "mapping(address => uint256)" }, "typeName": { - "id": 6319, + "id": 6078, "keyType": { - "id": 6317, + "id": 6076, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1350:7:18", + "src": "1350:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", - "src": "1341:28:18", + "src": "1341:28:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" }, "valueType": { - "id": 6318, + "id": 6077, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1361:7:18", + "src": "1361:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5953,11 +5953,11 @@ }, { "constant": false, - "id": 6326, + "id": 6085, "name": "_allowances", "nodeType": "VariableDeclaration", - "scope": 6709, - "src": "1394:69:18", + "scope": 6468, + "src": "1394:69:17", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -5965,46 +5965,46 @@ "typeString": "mapping(address => mapping(address => uint256))" }, "typeName": { - "id": 6325, + "id": 6084, "keyType": { - "id": 6321, + "id": 6080, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1403:7:18", + "src": "1403:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", - "src": "1394:49:18", + "src": "1394:49:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" }, "valueType": { - "id": 6324, + "id": 6083, "keyType": { - "id": 6322, + "id": 6081, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1423:7:18", + "src": "1423:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", - "src": "1414:28:18", + "src": "1414:28:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" }, "valueType": { - "id": 6323, + "id": 6082, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1434:7:18", + "src": "1434:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -6017,11 +6017,11 @@ }, { "constant": false, - "id": 6328, + "id": 6087, "name": "_totalSupply", "nodeType": "VariableDeclaration", - "scope": 6709, - "src": "1470:28:18", + "scope": 6468, + "src": "1470:28:17", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -6029,10 +6029,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6327, + "id": 6086, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1470:7:18", + "src": "1470:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -6043,55 +6043,55 @@ }, { "body": { - "id": 6335, + "id": 6094, "nodeType": "Block", - "src": "1612:36:18", + "src": "1612:36:17", "statements": [ { "expression": { "argumentTypes": null, - "id": 6333, + "id": 6092, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6328, - "src": "1629:12:18", + "referencedDeclaration": 6087, + "src": "1629:12:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 6332, - "id": 6334, + "functionReturnParameters": 6091, + "id": 6093, "nodeType": "Return", - "src": "1622:19:18" + "src": "1622:19:17" } ] }, "documentation": "@dev See {IERC20-totalSupply}.", - "id": 6336, + "id": 6095, "implemented": true, "kind": "function", "modifiers": [], "name": "totalSupply", "nodeType": "FunctionDefinition", "parameters": { - "id": 6329, + "id": 6088, "nodeType": "ParameterList", "parameters": [], - "src": "1579:2:18" + "src": "1579:2:17" }, "returnParameters": { - "id": 6332, + "id": 6091, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6331, + "id": 6090, "name": "", "nodeType": "VariableDeclaration", - "scope": 6336, - "src": "1603:7:18", + "scope": 6095, + "src": "1603:7:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6099,10 +6099,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6330, + "id": 6089, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1603:7:18", + "src": "1603:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -6112,45 +6112,45 @@ "visibility": "internal" } ], - "src": "1602:9:18" + "src": "1602:9:17" }, - "scope": 6709, - "src": "1559:89:18", + "scope": 6468, + "src": "1559:89:17", "stateMutability": "view", - "superFunction": 6716, + "superFunction": 6475, "visibility": "public" }, { "body": { - "id": 6347, + "id": 6106, "nodeType": "Block", - "src": "1772:42:18", + "src": "1772:42:17", "statements": [ { "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6343, + "id": 6102, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6320, - "src": "1789:9:18", + "referencedDeclaration": 6079, + "src": "1789:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6345, + "id": 6104, "indexExpression": { "argumentTypes": null, - "id": 6344, + "id": 6103, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6338, - "src": "1799:7:18", + "referencedDeclaration": 6097, + "src": "1799:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -6161,37 +6161,37 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "1789:18:18", + "src": "1789:18:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 6342, - "id": 6346, + "functionReturnParameters": 6101, + "id": 6105, "nodeType": "Return", - "src": "1782:25:18" + "src": "1782:25:17" } ] }, "documentation": "@dev See {IERC20-balanceOf}.", - "id": 6348, + "id": 6107, "implemented": true, "kind": "function", "modifiers": [], "name": "balanceOf", "nodeType": "FunctionDefinition", "parameters": { - "id": 6339, + "id": 6098, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6338, + "id": 6097, "name": "account", "nodeType": "VariableDeclaration", - "scope": 6348, - "src": "1725:15:18", + "scope": 6107, + "src": "1725:15:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6199,10 +6199,10 @@ "typeString": "address" }, "typeName": { - "id": 6337, + "id": 6096, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1725:7:18", + "src": "1725:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6213,19 +6213,19 @@ "visibility": "internal" } ], - "src": "1724:17:18" + "src": "1724:17:17" }, "returnParameters": { - "id": 6342, + "id": 6101, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6341, + "id": 6100, "name": "", "nodeType": "VariableDeclaration", - "scope": 6348, - "src": "1763:7:18", + "scope": 6107, + "src": "1763:7:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6233,10 +6233,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6340, + "id": 6099, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1763:7:18", + "src": "1763:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -6246,19 +6246,19 @@ "visibility": "internal" } ], - "src": "1762:9:18" + "src": "1762:9:17" }, - "scope": 6709, - "src": "1706:108:18", + "scope": 6468, + "src": "1706:108:17", "stateMutability": "view", - "superFunction": 6723, + "superFunction": 6482, "visibility": "public" }, { "body": { - "id": 6366, + "id": 6125, "nodeType": "Block", - "src": "2092:80:18", + "src": "2092:80:17", "statements": [ { "expression": { @@ -6269,18 +6269,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 6358, + "id": 6117, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, - "src": "2112:10:18", + "referencedDeclaration": 5746, + "src": "2112:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6359, + "id": 6118, "isConstant": false, "isLValue": false, "isPure": false, @@ -6288,7 +6288,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2112:12:18", + "src": "2112:12:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -6296,12 +6296,12 @@ }, { "argumentTypes": null, - "id": 6360, + "id": 6119, "name": "recipient", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6350, - "src": "2126:9:18", + "referencedDeclaration": 6109, + "src": "2126:9:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -6309,12 +6309,12 @@ }, { "argumentTypes": null, - "id": 6361, + "id": 6120, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6352, - "src": "2137:6:18", + "referencedDeclaration": 6111, + "src": "2137:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -6336,18 +6336,18 @@ "typeString": "uint256" } ], - "id": 6357, + "id": 6116, "name": "_transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6550, - "src": "2102:9:18", + "referencedDeclaration": 6309, + "src": "2102:9:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6362, + "id": 6121, "isConstant": false, "isLValue": false, "isPure": false, @@ -6355,28 +6355,28 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2102:42:18", + "src": "2102:42:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6363, + "id": 6122, "nodeType": "ExpressionStatement", - "src": "2102:42:18" + "src": "2102:42:17" }, { "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 6364, + "id": 6123, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", - "src": "2161:4:18", + "src": "2161:4:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", @@ -6384,31 +6384,31 @@ }, "value": "true" }, - "functionReturnParameters": 6356, - "id": 6365, + "functionReturnParameters": 6115, + "id": 6124, "nodeType": "Return", - "src": "2154:11:18" + "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": 6367, + "id": 6126, "implemented": true, "kind": "function", "modifiers": [], "name": "transfer", "nodeType": "FunctionDefinition", "parameters": { - "id": 6353, + "id": 6112, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6350, + "id": 6109, "name": "recipient", "nodeType": "VariableDeclaration", - "scope": 6367, - "src": "2035:17:18", + "scope": 6126, + "src": "2035:17:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6416,10 +6416,10 @@ "typeString": "address" }, "typeName": { - "id": 6349, + "id": 6108, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2035:7:18", + "src": "2035:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6431,11 +6431,11 @@ }, { "constant": false, - "id": 6352, + "id": 6111, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6367, - "src": "2054:14:18", + "scope": 6126, + "src": "2054:14:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6443,10 +6443,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6351, + "id": 6110, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "2054:7:18", + "src": "2054:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -6456,19 +6456,19 @@ "visibility": "internal" } ], - "src": "2034:35:18" + "src": "2034:35:17" }, "returnParameters": { - "id": 6356, + "id": 6115, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6355, + "id": 6114, "name": "", "nodeType": "VariableDeclaration", - "scope": 6367, - "src": "2086:4:18", + "scope": 6126, + "src": "2086:4:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6476,10 +6476,10 @@ "typeString": "bool" }, "typeName": { - "id": 6354, + "id": 6113, "name": "bool", "nodeType": "ElementaryTypeName", - "src": "2086:4:18", + "src": "2086:4:17", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -6489,19 +6489,19 @@ "visibility": "internal" } ], - "src": "2085:6:18" + "src": "2085:6:17" }, - "scope": 6709, - "src": "2017:155:18", + "scope": 6468, + "src": "2017:155:17", "stateMutability": "nonpayable", - "superFunction": 6732, + "superFunction": 6491, "visibility": "public" }, { "body": { - "id": 6382, + "id": 6141, "nodeType": "Block", - "src": "2311:51:18", + "src": "2311:51:17", "statements": [ { "expression": { @@ -6510,26 +6510,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6376, + "id": 6135, "name": "_allowances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6326, - "src": "2328:11:18", + "referencedDeclaration": 6085, + "src": "2328:11:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 6378, + "id": 6137, "indexExpression": { "argumentTypes": null, - "id": 6377, + "id": 6136, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6369, - "src": "2340:5:18", + "referencedDeclaration": 6128, + "src": "2340:5:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -6540,21 +6540,21 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "2328:18:18", + "src": "2328:18:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6380, + "id": 6139, "indexExpression": { "argumentTypes": null, - "id": 6379, + "id": 6138, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6371, - "src": "2347:7:18", + "referencedDeclaration": 6130, + "src": "2347:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -6565,37 +6565,37 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "2328:27:18", + "src": "2328:27:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 6375, - "id": 6381, + "functionReturnParameters": 6134, + "id": 6140, "nodeType": "Return", - "src": "2321:34:18" + "src": "2321:34:17" } ] }, "documentation": "@dev See {IERC20-allowance}.", - "id": 6383, + "id": 6142, "implemented": true, "kind": "function", "modifiers": [], "name": "allowance", "nodeType": "FunctionDefinition", "parameters": { - "id": 6372, + "id": 6131, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6369, + "id": 6128, "name": "owner", "nodeType": "VariableDeclaration", - "scope": 6383, - "src": "2249:13:18", + "scope": 6142, + "src": "2249:13:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6603,10 +6603,10 @@ "typeString": "address" }, "typeName": { - "id": 6368, + "id": 6127, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2249:7:18", + "src": "2249:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6618,11 +6618,11 @@ }, { "constant": false, - "id": 6371, + "id": 6130, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6383, - "src": "2264:15:18", + "scope": 6142, + "src": "2264:15:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6630,10 +6630,10 @@ "typeString": "address" }, "typeName": { - "id": 6370, + "id": 6129, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2264:7:18", + "src": "2264:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6644,19 +6644,19 @@ "visibility": "internal" } ], - "src": "2248:32:18" + "src": "2248:32:17" }, "returnParameters": { - "id": 6375, + "id": 6134, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6374, + "id": 6133, "name": "", "nodeType": "VariableDeclaration", - "scope": 6383, - "src": "2302:7:18", + "scope": 6142, + "src": "2302:7:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6664,10 +6664,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6373, + "id": 6132, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "2302:7:18", + "src": "2302:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -6677,19 +6677,19 @@ "visibility": "internal" } ], - "src": "2301:9:18" + "src": "2301:9:17" }, - "scope": 6709, - "src": "2230:132:18", + "scope": 6468, + "src": "2230:132:17", "stateMutability": "view", - "superFunction": 6741, + "superFunction": 6500, "visibility": "public" }, { "body": { - "id": 6401, + "id": 6160, "nodeType": "Block", - "src": "2572:77:18", + "src": "2572:77:17", "statements": [ { "expression": { @@ -6700,18 +6700,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 6393, + "id": 6152, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, - "src": "2591:10:18", + "referencedDeclaration": 5746, + "src": "2591:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6394, + "id": 6153, "isConstant": false, "isLValue": false, "isPure": false, @@ -6719,7 +6719,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2591:12:18", + "src": "2591:12:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -6727,12 +6727,12 @@ }, { "argumentTypes": null, - "id": 6395, + "id": 6154, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6385, - "src": "2605:7:18", + "referencedDeclaration": 6144, + "src": "2605:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -6740,12 +6740,12 @@ }, { "argumentTypes": null, - "id": 6396, + "id": 6155, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6387, - "src": "2614:6:18", + "referencedDeclaration": 6146, + "src": "2614:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -6767,18 +6767,18 @@ "typeString": "uint256" } ], - "id": 6392, + "id": 6151, "name": "_approve", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6679, - "src": "2582:8:18", + "referencedDeclaration": 6438, + "src": "2582:8:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6397, + "id": 6156, "isConstant": false, "isLValue": false, "isPure": false, @@ -6786,28 +6786,28 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2582:39:18", + "src": "2582:39:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6398, + "id": 6157, "nodeType": "ExpressionStatement", - "src": "2582:39:18" + "src": "2582:39:17" }, { "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 6399, + "id": 6158, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", - "src": "2638:4:18", + "src": "2638:4:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", @@ -6815,31 +6815,31 @@ }, "value": "true" }, - "functionReturnParameters": 6391, - "id": 6400, + "functionReturnParameters": 6150, + "id": 6159, "nodeType": "Return", - "src": "2631:11:18" + "src": "2631:11:17" } ] }, "documentation": "@dev See {IERC20-approve}.\n * Requirements:\n * - `spender` cannot be the zero address.", - "id": 6402, + "id": 6161, "implemented": true, "kind": "function", "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { - "id": 6388, + "id": 6147, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6385, + "id": 6144, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6402, - "src": "2517:15:18", + "scope": 6161, + "src": "2517:15:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6847,10 +6847,10 @@ "typeString": "address" }, "typeName": { - "id": 6384, + "id": 6143, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2517:7:18", + "src": "2517:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -6862,11 +6862,11 @@ }, { "constant": false, - "id": 6387, + "id": 6146, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6402, - "src": "2534:14:18", + "scope": 6161, + "src": "2534:14:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6874,10 +6874,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6386, + "id": 6145, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "2534:7:18", + "src": "2534:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -6887,19 +6887,19 @@ "visibility": "internal" } ], - "src": "2516:33:18" + "src": "2516:33:17" }, "returnParameters": { - "id": 6391, + "id": 6150, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6390, + "id": 6149, "name": "", "nodeType": "VariableDeclaration", - "scope": 6402, - "src": "2566:4:18", + "scope": 6161, + "src": "2566:4:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6907,10 +6907,10 @@ "typeString": "bool" }, "typeName": { - "id": 6389, + "id": 6148, "name": "bool", "nodeType": "ElementaryTypeName", - "src": "2566:4:18", + "src": "2566:4:17", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -6920,19 +6920,19 @@ "visibility": "internal" } ], - "src": "2565:6:18" + "src": "2565:6:17" }, - "scope": 6709, - "src": "2500:149:18", + "scope": 6468, + "src": "2500:149:17", "stateMutability": "nonpayable", - "superFunction": 6750, + "superFunction": 6509, "visibility": "public" }, { "body": { - "id": 6437, + "id": 6196, "nodeType": "Block", - "src": "3202:205:18", + "src": "3202:205:17", "statements": [ { "expression": { @@ -6940,12 +6940,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6414, + "id": 6173, "name": "sender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6404, - "src": "3222:6:18", + "referencedDeclaration": 6163, + "src": "3222:6:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -6953,12 +6953,12 @@ }, { "argumentTypes": null, - "id": 6415, + "id": 6174, "name": "recipient", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6406, - "src": "3230:9:18", + "referencedDeclaration": 6165, + "src": "3230:9:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -6966,12 +6966,12 @@ }, { "argumentTypes": null, - "id": 6416, + "id": 6175, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6408, - "src": "3241:6:18", + "referencedDeclaration": 6167, + "src": "3241:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -6993,18 +6993,18 @@ "typeString": "uint256" } ], - "id": 6413, + "id": 6172, "name": "_transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6550, - "src": "3212:9:18", + "referencedDeclaration": 6309, + "src": "3212:9:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6417, + "id": 6176, "isConstant": false, "isLValue": false, "isPure": false, @@ -7012,15 +7012,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3212:36:18", + "src": "3212:36:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6418, + "id": 6177, "nodeType": "ExpressionStatement", - "src": "3212:36:18" + "src": "3212:36:17" }, { "expression": { @@ -7028,12 +7028,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6420, + "id": 6179, "name": "sender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6404, - "src": "3267:6:18", + "referencedDeclaration": 6163, + "src": "3267:6:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -7044,18 +7044,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 6421, + "id": 6180, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, - "src": "3275:10:18", + "referencedDeclaration": 5746, + "src": "3275:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6422, + "id": 6181, "isConstant": false, "isLValue": false, "isPure": false, @@ -7063,7 +7063,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3275:12:18", + "src": "3275:12:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -7074,12 +7074,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6430, + "id": 6189, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6408, - "src": "3327:6:18", + "referencedDeclaration": 6167, + "src": "3327:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -7088,14 +7088,14 @@ { "argumentTypes": null, "hexValue": "45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365", - "id": 6431, + "id": 6190, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "3335:42:18", + "src": "3335:42:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_974d1b4421da69cc60b481194f0dad36a5bb4e23da810da7a7fb30cdba178330", @@ -7121,26 +7121,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6423, + "id": 6182, "name": "_allowances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6326, - "src": "3289:11:18", + "referencedDeclaration": 6085, + "src": "3289:11:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 6425, + "id": 6184, "indexExpression": { "argumentTypes": null, - "id": 6424, + "id": 6183, "name": "sender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6404, - "src": "3301:6:18", + "referencedDeclaration": 6163, + "src": "3301:6:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -7151,30 +7151,30 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "3289:19:18", + "src": "3289:19:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6428, + "id": 6187, "indexExpression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], - "id": 6426, + "id": 6185, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, - "src": "3309:10:18", + "referencedDeclaration": 5746, + "src": "3309:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6427, + "id": 6186, "isConstant": false, "isLValue": false, "isPure": false, @@ -7182,7 +7182,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3309:12:18", + "src": "3309:12:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -7193,27 +7193,27 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "3289:33:18", + "src": "3289:33:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6429, + "id": 6188, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sub", "nodeType": "MemberAccess", - "referencedDeclaration": 6069, - "src": "3289:37:18", + "referencedDeclaration": 5828, + "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": 6432, + "id": 6191, "isConstant": false, "isLValue": false, "isPure": false, @@ -7221,7 +7221,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3289:89:18", + "src": "3289:89:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -7243,18 +7243,18 @@ "typeString": "uint256" } ], - "id": 6419, + "id": 6178, "name": "_approve", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6679, - "src": "3258:8:18", + "referencedDeclaration": 6438, + "src": "3258:8:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6433, + "id": 6192, "isConstant": false, "isLValue": false, "isPure": false, @@ -7262,28 +7262,28 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3258:121:18", + "src": "3258:121:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6434, + "id": 6193, "nodeType": "ExpressionStatement", - "src": "3258:121:18" + "src": "3258:121:17" }, { "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 6435, + "id": 6194, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", - "src": "3396:4:18", + "src": "3396:4:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", @@ -7291,31 +7291,31 @@ }, "value": "true" }, - "functionReturnParameters": 6412, - "id": 6436, + "functionReturnParameters": 6171, + "id": 6195, "nodeType": "Return", - "src": "3389:11:18" + "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": 6438, + "id": 6197, "implemented": true, "kind": "function", "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { - "id": 6409, + "id": 6168, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6404, + "id": 6163, "name": "sender", "nodeType": "VariableDeclaration", - "scope": 6438, - "src": "3129:14:18", + "scope": 6197, + "src": "3129:14:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -7323,10 +7323,10 @@ "typeString": "address" }, "typeName": { - "id": 6403, + "id": 6162, "name": "address", "nodeType": "ElementaryTypeName", - "src": "3129:7:18", + "src": "3129:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -7338,11 +7338,11 @@ }, { "constant": false, - "id": 6406, + "id": 6165, "name": "recipient", "nodeType": "VariableDeclaration", - "scope": 6438, - "src": "3145:17:18", + "scope": 6197, + "src": "3145:17:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -7350,10 +7350,10 @@ "typeString": "address" }, "typeName": { - "id": 6405, + "id": 6164, "name": "address", "nodeType": "ElementaryTypeName", - "src": "3145:7:18", + "src": "3145:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -7365,11 +7365,11 @@ }, { "constant": false, - "id": 6408, + "id": 6167, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6438, - "src": "3164:14:18", + "scope": 6197, + "src": "3164:14:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -7377,10 +7377,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6407, + "id": 6166, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "3164:7:18", + "src": "3164:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -7390,19 +7390,19 @@ "visibility": "internal" } ], - "src": "3128:51:18" + "src": "3128:51:17" }, "returnParameters": { - "id": 6412, + "id": 6171, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6411, + "id": 6170, "name": "", "nodeType": "VariableDeclaration", - "scope": 6438, - "src": "3196:4:18", + "scope": 6197, + "src": "3196:4:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -7410,10 +7410,10 @@ "typeString": "bool" }, "typeName": { - "id": 6410, + "id": 6169, "name": "bool", "nodeType": "ElementaryTypeName", - "src": "3196:4:18", + "src": "3196:4:17", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -7423,19 +7423,19 @@ "visibility": "internal" } ], - "src": "3195:6:18" + "src": "3195:6:17" }, - "scope": 6709, - "src": "3107:300:18", + "scope": 6468, + "src": "3107:300:17", "stateMutability": "nonpayable", - "superFunction": 6761, + "superFunction": 6520, "visibility": "public" }, { "body": { - "id": 6464, + "id": 6223, "nodeType": "Block", - "src": "3888:121:18", + "src": "3888:121:17", "statements": [ { "expression": { @@ -7446,18 +7446,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 6448, + "id": 6207, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, - "src": "3907:10:18", + "referencedDeclaration": 5746, + "src": "3907:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6449, + "id": 6208, "isConstant": false, "isLValue": false, "isPure": false, @@ -7465,7 +7465,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3907:12:18", + "src": "3907:12:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -7473,12 +7473,12 @@ }, { "argumentTypes": null, - "id": 6450, + "id": 6209, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6440, - "src": "3921:7:18", + "referencedDeclaration": 6199, + "src": "3921:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -7489,12 +7489,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6458, + "id": 6217, "name": "addedValue", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6442, - "src": "3969:10:18", + "referencedDeclaration": 6201, + "src": "3969:10:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -7514,35 +7514,35 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6451, + "id": 6210, "name": "_allowances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6326, - "src": "3930:11:18", + "referencedDeclaration": 6085, + "src": "3930:11:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 6454, + "id": 6213, "indexExpression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], - "id": 6452, + "id": 6211, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, - "src": "3942:10:18", + "referencedDeclaration": 5746, + "src": "3942:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6453, + "id": 6212, "isConstant": false, "isLValue": false, "isPure": false, @@ -7550,7 +7550,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3942:12:18", + "src": "3942:12:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -7561,21 +7561,21 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "3930:25:18", + "src": "3930:25:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6456, + "id": 6215, "indexExpression": { "argumentTypes": null, - "id": 6455, + "id": 6214, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6440, - "src": "3956:7:18", + "referencedDeclaration": 6199, + "src": "3956:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -7586,27 +7586,27 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "3930:34:18", + "src": "3930:34:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6457, + "id": 6216, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "add", "nodeType": "MemberAccess", - "referencedDeclaration": 6026, - "src": "3930:38:18", + "referencedDeclaration": 5785, + "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": 6459, + "id": 6218, "isConstant": false, "isLValue": false, "isPure": false, @@ -7614,7 +7614,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3930:50:18", + "src": "3930:50:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -7636,18 +7636,18 @@ "typeString": "uint256" } ], - "id": 6447, + "id": 6206, "name": "_approve", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6679, - "src": "3898:8:18", + "referencedDeclaration": 6438, + "src": "3898:8:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6460, + "id": 6219, "isConstant": false, "isLValue": false, "isPure": false, @@ -7655,28 +7655,28 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3898:83:18", + "src": "3898:83:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6461, + "id": 6220, "nodeType": "ExpressionStatement", - "src": "3898:83:18" + "src": "3898:83:17" }, { "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 6462, + "id": 6221, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", - "src": "3998:4:18", + "src": "3998:4:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", @@ -7684,31 +7684,31 @@ }, "value": "true" }, - "functionReturnParameters": 6446, - "id": 6463, + "functionReturnParameters": 6205, + "id": 6222, "nodeType": "Return", - "src": "3991:11:18" + "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": 6465, + "id": 6224, "implemented": true, "kind": "function", "modifiers": [], "name": "increaseAllowance", "nodeType": "FunctionDefinition", "parameters": { - "id": 6443, + "id": 6202, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6440, + "id": 6199, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6465, - "src": "3829:15:18", + "scope": 6224, + "src": "3829:15:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -7716,10 +7716,10 @@ "typeString": "address" }, "typeName": { - "id": 6439, + "id": 6198, "name": "address", "nodeType": "ElementaryTypeName", - "src": "3829:7:18", + "src": "3829:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -7731,11 +7731,11 @@ }, { "constant": false, - "id": 6442, + "id": 6201, "name": "addedValue", "nodeType": "VariableDeclaration", - "scope": 6465, - "src": "3846:18:18", + "scope": 6224, + "src": "3846:18:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -7743,10 +7743,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6441, + "id": 6200, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "3846:7:18", + "src": "3846:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -7756,19 +7756,19 @@ "visibility": "internal" } ], - "src": "3828:37:18" + "src": "3828:37:17" }, "returnParameters": { - "id": 6446, + "id": 6205, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6445, + "id": 6204, "name": "", "nodeType": "VariableDeclaration", - "scope": 6465, - "src": "3882:4:18", + "scope": 6224, + "src": "3882:4:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -7776,10 +7776,10 @@ "typeString": "bool" }, "typeName": { - "id": 6444, + "id": 6203, "name": "bool", "nodeType": "ElementaryTypeName", - "src": "3882:4:18", + "src": "3882:4:17", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -7789,19 +7789,19 @@ "visibility": "internal" } ], - "src": "3881:6:18" + "src": "3881:6:17" }, - "scope": 6709, - "src": "3802:207:18", + "scope": 6468, + "src": "3802:207:17", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 6492, + "id": 6251, "nodeType": "Block", - "src": "4587:167:18", + "src": "4587:167:17", "statements": [ { "expression": { @@ -7812,18 +7812,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 6475, + "id": 6234, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, - "src": "4606:10:18", + "referencedDeclaration": 5746, + "src": "4606:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6476, + "id": 6235, "isConstant": false, "isLValue": false, "isPure": false, @@ -7831,7 +7831,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4606:12:18", + "src": "4606:12:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -7839,12 +7839,12 @@ }, { "argumentTypes": null, - "id": 6477, + "id": 6236, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6467, - "src": "4620:7:18", + "referencedDeclaration": 6226, + "src": "4620:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -7855,12 +7855,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6485, + "id": 6244, "name": "subtractedValue", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6469, - "src": "4668:15:18", + "referencedDeclaration": 6228, + "src": "4668:15:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -7869,14 +7869,14 @@ { "argumentTypes": null, "hexValue": "45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f", - "id": 6486, + "id": 6245, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "4685:39:18", + "src": "4685:39:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_f8b476f7d28209d77d4a4ac1fe36b9f8259aa1bb6bddfa6e89de7e51615cf8a8", @@ -7902,35 +7902,35 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6478, + "id": 6237, "name": "_allowances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6326, - "src": "4629:11:18", + "referencedDeclaration": 6085, + "src": "4629:11:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 6481, + "id": 6240, "indexExpression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], - "id": 6479, + "id": 6238, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, - "src": "4641:10:18", + "referencedDeclaration": 5746, + "src": "4641:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6480, + "id": 6239, "isConstant": false, "isLValue": false, "isPure": false, @@ -7938,7 +7938,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4641:12:18", + "src": "4641:12:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -7949,21 +7949,21 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "4629:25:18", + "src": "4629:25:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6483, + "id": 6242, "indexExpression": { "argumentTypes": null, - "id": 6482, + "id": 6241, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6467, - "src": "4655:7:18", + "referencedDeclaration": 6226, + "src": "4655:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -7974,27 +7974,27 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "4629:34:18", + "src": "4629:34:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6484, + "id": 6243, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sub", "nodeType": "MemberAccess", - "referencedDeclaration": 6069, - "src": "4629:38:18", + "referencedDeclaration": 5828, + "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": 6487, + "id": 6246, "isConstant": false, "isLValue": false, "isPure": false, @@ -8002,7 +8002,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4629:96:18", + "src": "4629:96:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -8024,18 +8024,18 @@ "typeString": "uint256" } ], - "id": 6474, + "id": 6233, "name": "_approve", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6679, - "src": "4597:8:18", + "referencedDeclaration": 6438, + "src": "4597:8:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6488, + "id": 6247, "isConstant": false, "isLValue": false, "isPure": false, @@ -8043,28 +8043,28 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4597:129:18", + "src": "4597:129:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6489, + "id": 6248, "nodeType": "ExpressionStatement", - "src": "4597:129:18" + "src": "4597:129:17" }, { "expression": { "argumentTypes": null, "hexValue": "74727565", - "id": 6490, + "id": 6249, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", - "src": "4743:4:18", + "src": "4743:4:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", @@ -8072,31 +8072,31 @@ }, "value": "true" }, - "functionReturnParameters": 6473, - "id": 6491, + "functionReturnParameters": 6232, + "id": 6250, "nodeType": "Return", - "src": "4736:11:18" + "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": 6493, + "id": 6252, "implemented": true, "kind": "function", "modifiers": [], "name": "decreaseAllowance", "nodeType": "FunctionDefinition", "parameters": { - "id": 6470, + "id": 6229, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6467, + "id": 6226, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6493, - "src": "4523:15:18", + "scope": 6252, + "src": "4523:15:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -8104,10 +8104,10 @@ "typeString": "address" }, "typeName": { - "id": 6466, + "id": 6225, "name": "address", "nodeType": "ElementaryTypeName", - "src": "4523:7:18", + "src": "4523:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -8119,11 +8119,11 @@ }, { "constant": false, - "id": 6469, + "id": 6228, "name": "subtractedValue", "nodeType": "VariableDeclaration", - "scope": 6493, - "src": "4540:23:18", + "scope": 6252, + "src": "4540:23:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -8131,10 +8131,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6468, + "id": 6227, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "4540:7:18", + "src": "4540:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -8144,19 +8144,19 @@ "visibility": "internal" } ], - "src": "4522:42:18" + "src": "4522:42:17" }, "returnParameters": { - "id": 6473, + "id": 6232, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6472, + "id": 6231, "name": "", "nodeType": "VariableDeclaration", - "scope": 6493, - "src": "4581:4:18", + "scope": 6252, + "src": "4581:4:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -8164,10 +8164,10 @@ "typeString": "bool" }, "typeName": { - "id": 6471, + "id": 6230, "name": "bool", "nodeType": "ElementaryTypeName", - "src": "4581:4:18", + "src": "4581:4:17", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -8177,19 +8177,19 @@ "visibility": "internal" } ], - "src": "4580:6:18" + "src": "4580:6:17" }, - "scope": 6709, - "src": "4496:258:18", + "scope": 6468, + "src": "4496:258:17", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 6549, + "id": 6308, "nodeType": "Block", - "src": "5307:385:18", + "src": "5307:385:17", "statements": [ { "expression": { @@ -8201,19 +8201,19 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6507, + "id": 6266, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6503, + "id": 6262, "name": "sender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6495, - "src": "5325:6:18", + "referencedDeclaration": 6254, + "src": "5325:6:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -8227,14 +8227,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6505, + "id": 6264, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "5343:1:18", + "src": "5343:1:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -8250,20 +8250,20 @@ "typeString": "int_const 0" } ], - "id": 6504, + "id": 6263, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "5335:7:18", + "src": "5335:7:17", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 6506, + "id": 6265, "isConstant": false, "isLValue": false, "isPure": true, @@ -8271,13 +8271,13 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5335:10:18", + "src": "5335:10:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, - "src": "5325:20:18", + "src": "5325:20:17", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -8286,14 +8286,14 @@ { "argumentTypes": null, "hexValue": "45524332303a207472616e736665722066726f6d20746865207a65726f2061646472657373", - "id": 6508, + "id": 6267, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "5347:39:18", + "src": "5347:39:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_baecc556b46f4ed0f2b4cb599d60785ac8563dd2dc0a5bf12edea1c39e5e1fea", @@ -8313,21 +8313,21 @@ "typeString": "literal_string \"ERC20: transfer from the zero address\"" } ], - "id": 6502, + "id": 6261, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, - "src": "5317:7:18", + "referencedDeclaration": 6556, + "src": "5317:7:17", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6509, + "id": 6268, "isConstant": false, "isLValue": false, "isPure": false, @@ -8335,15 +8335,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5317:70:18", + "src": "5317:70:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6510, + "id": 6269, "nodeType": "ExpressionStatement", - "src": "5317:70:18" + "src": "5317:70:17" }, { "expression": { @@ -8355,19 +8355,19 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6516, + "id": 6275, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6512, + "id": 6271, "name": "recipient", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6497, - "src": "5405:9:18", + "referencedDeclaration": 6256, + "src": "5405:9:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -8381,14 +8381,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6514, + "id": 6273, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "5426:1:18", + "src": "5426:1:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -8404,20 +8404,20 @@ "typeString": "int_const 0" } ], - "id": 6513, + "id": 6272, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "5418:7:18", + "src": "5418:7:17", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 6515, + "id": 6274, "isConstant": false, "isLValue": false, "isPure": true, @@ -8425,13 +8425,13 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5418:10:18", + "src": "5418:10:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, - "src": "5405:23:18", + "src": "5405:23:17", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -8440,14 +8440,14 @@ { "argumentTypes": null, "hexValue": "45524332303a207472616e7366657220746f20746865207a65726f2061646472657373", - "id": 6517, + "id": 6276, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "5430:37:18", + "src": "5430:37:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_0557e210f7a69a685100a7e4e3d0a7024c546085cee28910fd17d0b081d9516f", @@ -8467,21 +8467,21 @@ "typeString": "literal_string \"ERC20: transfer to the zero address\"" } ], - "id": 6511, + "id": 6270, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, - "src": "5397:7:18", + "referencedDeclaration": 6556, + "src": "5397:7:17", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6518, + "id": 6277, "isConstant": false, "isLValue": false, "isPure": false, @@ -8489,20 +8489,20 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5397:71:18", + "src": "5397:71:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6519, + "id": 6278, "nodeType": "ExpressionStatement", - "src": "5397:71:18" + "src": "5397:71:17" }, { "expression": { "argumentTypes": null, - "id": 6530, + "id": 6289, "isConstant": false, "isLValue": false, "isPure": false, @@ -8511,26 +8511,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6520, + "id": 6279, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6320, - "src": "5479:9:18", + "referencedDeclaration": 6079, + "src": "5479:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6522, + "id": 6281, "indexExpression": { "argumentTypes": null, - "id": 6521, + "id": 6280, "name": "sender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6495, - "src": "5489:6:18", + "referencedDeclaration": 6254, + "src": "5489:6:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -8541,7 +8541,7 @@ "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", - "src": "5479:17:18", + "src": "5479:17:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -8554,12 +8554,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6527, + "id": 6286, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6499, - "src": "5521:6:18", + "referencedDeclaration": 6258, + "src": "5521:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -8568,14 +8568,14 @@ { "argumentTypes": null, "hexValue": "45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365", - "id": 6528, + "id": 6287, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "5529:40:18", + "src": "5529:40:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_4107e8a8b9e94bf8ff83080ddec1c0bffe897ebc2241b89d44f66b3d274088b6", @@ -8599,26 +8599,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6523, + "id": 6282, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6320, - "src": "5499:9:18", + "referencedDeclaration": 6079, + "src": "5499:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6525, + "id": 6284, "indexExpression": { "argumentTypes": null, - "id": 6524, + "id": 6283, "name": "sender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6495, - "src": "5509:6:18", + "referencedDeclaration": 6254, + "src": "5509:6:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -8629,27 +8629,27 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "5499:17:18", + "src": "5499:17:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6526, + "id": 6285, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sub", "nodeType": "MemberAccess", - "referencedDeclaration": 6069, - "src": "5499:21:18", + "referencedDeclaration": 5828, + "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": 6529, + "id": 6288, "isConstant": false, "isLValue": false, "isPure": false, @@ -8657,26 +8657,26 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5499:71:18", + "src": "5499:71:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "5479:91:18", + "src": "5479:91:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6531, + "id": 6290, "nodeType": "ExpressionStatement", - "src": "5479:91:18" + "src": "5479:91:17" }, { "expression": { "argumentTypes": null, - "id": 6541, + "id": 6300, "isConstant": false, "isLValue": false, "isPure": false, @@ -8685,26 +8685,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6532, + "id": 6291, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6320, - "src": "5580:9:18", + "referencedDeclaration": 6079, + "src": "5580:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6534, + "id": 6293, "indexExpression": { "argumentTypes": null, - "id": 6533, + "id": 6292, "name": "recipient", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6497, - "src": "5590:9:18", + "referencedDeclaration": 6256, + "src": "5590:9:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -8715,7 +8715,7 @@ "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", - "src": "5580:20:18", + "src": "5580:20:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -8728,12 +8728,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6539, + "id": 6298, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6499, - "src": "5628:6:18", + "referencedDeclaration": 6258, + "src": "5628:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -8751,26 +8751,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6535, + "id": 6294, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6320, - "src": "5603:9:18", + "referencedDeclaration": 6079, + "src": "5603:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6537, + "id": 6296, "indexExpression": { "argumentTypes": null, - "id": 6536, + "id": 6295, "name": "recipient", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6497, - "src": "5613:9:18", + "referencedDeclaration": 6256, + "src": "5613:9:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -8781,27 +8781,27 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "5603:20:18", + "src": "5603:20:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6538, + "id": 6297, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "add", "nodeType": "MemberAccess", - "referencedDeclaration": 6026, - "src": "5603:24:18", + "referencedDeclaration": 5785, + "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": 6540, + "id": 6299, "isConstant": false, "isLValue": false, "isPure": false, @@ -8809,21 +8809,21 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5603:32:18", + "src": "5603:32:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "5580:55:18", + "src": "5580:55:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6542, + "id": 6301, "nodeType": "ExpressionStatement", - "src": "5580:55:18" + "src": "5580:55:17" }, { "eventCall": { @@ -8831,12 +8831,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6544, + "id": 6303, "name": "sender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6495, - "src": "5659:6:18", + "referencedDeclaration": 6254, + "src": "5659:6:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -8844,12 +8844,12 @@ }, { "argumentTypes": null, - "id": 6545, + "id": 6304, "name": "recipient", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6497, - "src": "5667:9:18", + "referencedDeclaration": 6256, + "src": "5667:9:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -8857,12 +8857,12 @@ }, { "argumentTypes": null, - "id": 6546, + "id": 6305, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6499, - "src": "5678:6:18", + "referencedDeclaration": 6258, + "src": "5678:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -8884,18 +8884,18 @@ "typeString": "uint256" } ], - "id": 6543, + "id": 6302, "name": "Transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6769, - "src": "5650:8:18", + "referencedDeclaration": 6528, + "src": "5650:8:17", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6547, + "id": 6306, "isConstant": false, "isLValue": false, "isPure": false, @@ -8903,36 +8903,36 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5650:35:18", + "src": "5650:35:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6548, + "id": 6307, "nodeType": "EmitStatement", - "src": "5645:40:18" + "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": 6550, + "id": 6309, "implemented": true, "kind": "function", "modifiers": [], "name": "_transfer", "nodeType": "FunctionDefinition", "parameters": { - "id": 6500, + "id": 6259, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6495, + "id": 6254, "name": "sender", "nodeType": "VariableDeclaration", - "scope": 6550, - "src": "5247:14:18", + "scope": 6309, + "src": "5247:14:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -8940,10 +8940,10 @@ "typeString": "address" }, "typeName": { - "id": 6494, + "id": 6253, "name": "address", "nodeType": "ElementaryTypeName", - "src": "5247:7:18", + "src": "5247:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -8955,11 +8955,11 @@ }, { "constant": false, - "id": 6497, + "id": 6256, "name": "recipient", "nodeType": "VariableDeclaration", - "scope": 6550, - "src": "5263:17:18", + "scope": 6309, + "src": "5263:17:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -8967,10 +8967,10 @@ "typeString": "address" }, "typeName": { - "id": 6496, + "id": 6255, "name": "address", "nodeType": "ElementaryTypeName", - "src": "5263:7:18", + "src": "5263:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -8982,11 +8982,11 @@ }, { "constant": false, - "id": 6499, + "id": 6258, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6550, - "src": "5282:14:18", + "scope": 6309, + "src": "5282:14:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -8994,10 +8994,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6498, + "id": 6257, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "5282:7:18", + "src": "5282:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -9007,25 +9007,25 @@ "visibility": "internal" } ], - "src": "5246:51:18" + "src": "5246:51:17" }, "returnParameters": { - "id": 6501, + "id": 6260, "nodeType": "ParameterList", "parameters": [], - "src": "5307:0:18" + "src": "5307:0:17" }, - "scope": 6709, - "src": "5228:464:18", + "scope": 6468, + "src": "5228:464:17", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { - "id": 6592, + "id": 6351, "nodeType": "Block", - "src": "6019:245:18", + "src": "6019:245:17", "statements": [ { "expression": { @@ -9037,19 +9037,19 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6562, + "id": 6321, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6558, + "id": 6317, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6552, - "src": "6037:7:18", + "referencedDeclaration": 6311, + "src": "6037:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -9063,14 +9063,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6560, + "id": 6319, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "6056:1:18", + "src": "6056:1:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -9086,20 +9086,20 @@ "typeString": "int_const 0" } ], - "id": 6559, + "id": 6318, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "6048:7:18", + "src": "6048:7:17", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 6561, + "id": 6320, "isConstant": false, "isLValue": false, "isPure": true, @@ -9107,13 +9107,13 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6048:10:18", + "src": "6048:10:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, - "src": "6037:21:18", + "src": "6037:21:17", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -9122,14 +9122,14 @@ { "argumentTypes": null, "hexValue": "45524332303a206d696e7420746f20746865207a65726f2061646472657373", - "id": 6563, + "id": 6322, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "6060:33:18", + "src": "6060:33:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_fc0b381caf0a47702017f3c4b358ebe3d3aff6c60ce819a8bf3ef5a95d4f202e", @@ -9149,21 +9149,21 @@ "typeString": "literal_string \"ERC20: mint to the zero address\"" } ], - "id": 6557, + "id": 6316, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, - "src": "6029:7:18", + "referencedDeclaration": 6556, + "src": "6029:7:17", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6564, + "id": 6323, "isConstant": false, "isLValue": false, "isPure": false, @@ -9171,32 +9171,32 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6029:65:18", + "src": "6029:65:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6565, + "id": 6324, "nodeType": "ExpressionStatement", - "src": "6029:65:18" + "src": "6029:65:17" }, { "expression": { "argumentTypes": null, - "id": 6571, + "id": 6330, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 6566, + "id": 6325, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6328, - "src": "6105:12:18", + "referencedDeclaration": 6087, + "src": "6105:12:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -9209,12 +9209,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6569, + "id": 6328, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6554, - "src": "6137:6:18", + "referencedDeclaration": 6313, + "src": "6137:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -9230,32 +9230,32 @@ ], "expression": { "argumentTypes": null, - "id": 6567, + "id": 6326, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6328, - "src": "6120:12:18", + "referencedDeclaration": 6087, + "src": "6120:12:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6568, + "id": 6327, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "add", "nodeType": "MemberAccess", - "referencedDeclaration": 6026, - "src": "6120:16:18", + "referencedDeclaration": 5785, + "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": 6570, + "id": 6329, "isConstant": false, "isLValue": false, "isPure": false, @@ -9263,26 +9263,26 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6120:24:18", + "src": "6120:24:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "6105:39:18", + "src": "6105:39:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6572, + "id": 6331, "nodeType": "ExpressionStatement", - "src": "6105:39:18" + "src": "6105:39:17" }, { "expression": { "argumentTypes": null, - "id": 6582, + "id": 6341, "isConstant": false, "isLValue": false, "isPure": false, @@ -9291,26 +9291,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6573, + "id": 6332, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6320, - "src": "6154:9:18", + "referencedDeclaration": 6079, + "src": "6154:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6575, + "id": 6334, "indexExpression": { "argumentTypes": null, - "id": 6574, + "id": 6333, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6552, - "src": "6164:7:18", + "referencedDeclaration": 6311, + "src": "6164:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -9321,7 +9321,7 @@ "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", - "src": "6154:18:18", + "src": "6154:18:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -9334,12 +9334,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6580, + "id": 6339, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6554, - "src": "6198:6:18", + "referencedDeclaration": 6313, + "src": "6198:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -9357,26 +9357,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6576, + "id": 6335, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6320, - "src": "6175:9:18", + "referencedDeclaration": 6079, + "src": "6175:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6578, + "id": 6337, "indexExpression": { "argumentTypes": null, - "id": 6577, + "id": 6336, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6552, - "src": "6185:7:18", + "referencedDeclaration": 6311, + "src": "6185:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -9387,27 +9387,27 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "6175:18:18", + "src": "6175:18:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6579, + "id": 6338, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "add", "nodeType": "MemberAccess", - "referencedDeclaration": 6026, - "src": "6175:22:18", + "referencedDeclaration": 5785, + "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": 6581, + "id": 6340, "isConstant": false, "isLValue": false, "isPure": false, @@ -9415,21 +9415,21 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6175:30:18", + "src": "6175:30:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "6154:51:18", + "src": "6154:51:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6583, + "id": 6342, "nodeType": "ExpressionStatement", - "src": "6154:51:18" + "src": "6154:51:17" }, { "eventCall": { @@ -9441,14 +9441,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6586, + "id": 6345, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "6237:1:18", + "src": "6237:1:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -9464,20 +9464,20 @@ "typeString": "int_const 0" } ], - "id": 6585, + "id": 6344, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "6229:7:18", + "src": "6229:7:17", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 6587, + "id": 6346, "isConstant": false, "isLValue": false, "isPure": true, @@ -9485,7 +9485,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6229:10:18", + "src": "6229:10:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -9493,12 +9493,12 @@ }, { "argumentTypes": null, - "id": 6588, + "id": 6347, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6552, - "src": "6241:7:18", + "referencedDeclaration": 6311, + "src": "6241:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -9506,12 +9506,12 @@ }, { "argumentTypes": null, - "id": 6589, + "id": 6348, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6554, - "src": "6250:6:18", + "referencedDeclaration": 6313, + "src": "6250:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -9533,18 +9533,18 @@ "typeString": "uint256" } ], - "id": 6584, + "id": 6343, "name": "Transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6769, - "src": "6220:8:18", + "referencedDeclaration": 6528, + "src": "6220:8:17", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6590, + "id": 6349, "isConstant": false, "isLValue": false, "isPure": false, @@ -9552,36 +9552,36 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6220:37:18", + "src": "6220:37:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6591, + "id": 6350, "nodeType": "EmitStatement", - "src": "6215:42:18" + "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": 6593, + "id": 6352, "implemented": true, "kind": "function", "modifiers": [], "name": "_mint", "nodeType": "FunctionDefinition", "parameters": { - "id": 6555, + "id": 6314, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6552, + "id": 6311, "name": "account", "nodeType": "VariableDeclaration", - "scope": 6593, - "src": "5977:15:18", + "scope": 6352, + "src": "5977:15:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -9589,10 +9589,10 @@ "typeString": "address" }, "typeName": { - "id": 6551, + "id": 6310, "name": "address", "nodeType": "ElementaryTypeName", - "src": "5977:7:18", + "src": "5977:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -9604,11 +9604,11 @@ }, { "constant": false, - "id": 6554, + "id": 6313, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6593, - "src": "5994:14:18", + "scope": 6352, + "src": "5994:14:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -9616,10 +9616,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6553, + "id": 6312, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "5994:7:18", + "src": "5994:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -9629,25 +9629,25 @@ "visibility": "internal" } ], - "src": "5976:33:18" + "src": "5976:33:17" }, "returnParameters": { - "id": 6556, + "id": 6315, "nodeType": "ParameterList", "parameters": [], - "src": "6019:0:18" + "src": "6019:0:17" }, - "scope": 6709, - "src": "5962:302:18", + "scope": 6468, + "src": "5962:302:17", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { - "id": 6636, + "id": 6395, "nodeType": "Block", - "src": "6640:285:18", + "src": "6640:285:17", "statements": [ { "expression": { @@ -9659,19 +9659,19 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6605, + "id": 6364, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6601, + "id": 6360, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6595, - "src": "6658:7:18", + "referencedDeclaration": 6354, + "src": "6658:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -9685,14 +9685,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6603, + "id": 6362, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "6677:1:18", + "src": "6677:1:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -9708,20 +9708,20 @@ "typeString": "int_const 0" } ], - "id": 6602, + "id": 6361, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "6669:7:18", + "src": "6669:7:17", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 6604, + "id": 6363, "isConstant": false, "isLValue": false, "isPure": true, @@ -9729,13 +9729,13 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6669:10:18", + "src": "6669:10:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, - "src": "6658:21:18", + "src": "6658:21:17", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -9744,14 +9744,14 @@ { "argumentTypes": null, "hexValue": "45524332303a206275726e2066726f6d20746865207a65726f2061646472657373", - "id": 6606, + "id": 6365, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "6681:35:18", + "src": "6681:35:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_b16788493b576042bb52c50ed56189e0b250db113c7bfb1c3897d25cf9632d7f", @@ -9771,21 +9771,21 @@ "typeString": "literal_string \"ERC20: burn from the zero address\"" } ], - "id": 6600, + "id": 6359, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, - "src": "6650:7:18", + "referencedDeclaration": 6556, + "src": "6650:7:17", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6607, + "id": 6366, "isConstant": false, "isLValue": false, "isPure": false, @@ -9793,20 +9793,20 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6650:67:18", + "src": "6650:67:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6608, + "id": 6367, "nodeType": "ExpressionStatement", - "src": "6650:67:18" + "src": "6650:67:17" }, { "expression": { "argumentTypes": null, - "id": 6619, + "id": 6378, "isConstant": false, "isLValue": false, "isPure": false, @@ -9815,26 +9815,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6609, + "id": 6368, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6320, - "src": "6728:9:18", + "referencedDeclaration": 6079, + "src": "6728:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6611, + "id": 6370, "indexExpression": { "argumentTypes": null, - "id": 6610, + "id": 6369, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6595, - "src": "6738:7:18", + "referencedDeclaration": 6354, + "src": "6738:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -9845,7 +9845,7 @@ "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", - "src": "6728:18:18", + "src": "6728:18:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -9858,12 +9858,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6616, + "id": 6375, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6597, - "src": "6772:6:18", + "referencedDeclaration": 6356, + "src": "6772:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -9872,14 +9872,14 @@ { "argumentTypes": null, "hexValue": "45524332303a206275726e20616d6f756e7420657863656564732062616c616e6365", - "id": 6617, + "id": 6376, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "6780:36:18", + "src": "6780:36:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_149b126e7125232b4200af45303d04fba8b74653b1a295a6a561a528c33fefdd", @@ -9903,26 +9903,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6612, + "id": 6371, "name": "_balances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6320, - "src": "6749:9:18", + "referencedDeclaration": 6079, + "src": "6749:9:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6614, + "id": 6373, "indexExpression": { "argumentTypes": null, - "id": 6613, + "id": 6372, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6595, - "src": "6759:7:18", + "referencedDeclaration": 6354, + "src": "6759:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -9933,27 +9933,27 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "6749:18:18", + "src": "6749:18:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6615, + "id": 6374, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sub", "nodeType": "MemberAccess", - "referencedDeclaration": 6069, - "src": "6749:22:18", + "referencedDeclaration": 5828, + "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": 6618, + "id": 6377, "isConstant": false, "isLValue": false, "isPure": false, @@ -9961,38 +9961,38 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6749:68:18", + "src": "6749:68:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "6728:89:18", + "src": "6728:89:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6620, + "id": 6379, "nodeType": "ExpressionStatement", - "src": "6728:89:18" + "src": "6728:89:17" }, { "expression": { "argumentTypes": null, - "id": 6626, + "id": 6385, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 6621, + "id": 6380, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6328, - "src": "6827:12:18", + "referencedDeclaration": 6087, + "src": "6827:12:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -10005,12 +10005,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6624, + "id": 6383, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6597, - "src": "6859:6:18", + "referencedDeclaration": 6356, + "src": "6859:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -10026,32 +10026,32 @@ ], "expression": { "argumentTypes": null, - "id": 6622, + "id": 6381, "name": "_totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6328, - "src": "6842:12:18", + "referencedDeclaration": 6087, + "src": "6842:12:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6623, + "id": 6382, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sub", "nodeType": "MemberAccess", - "referencedDeclaration": 6042, - "src": "6842:16:18", + "referencedDeclaration": 5801, + "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": 6625, + "id": 6384, "isConstant": false, "isLValue": false, "isPure": false, @@ -10059,21 +10059,21 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6842:24:18", + "src": "6842:24:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "6827:39:18", + "src": "6827:39:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6627, + "id": 6386, "nodeType": "ExpressionStatement", - "src": "6827:39:18" + "src": "6827:39:17" }, { "eventCall": { @@ -10081,12 +10081,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6629, + "id": 6388, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6595, - "src": "6890:7:18", + "referencedDeclaration": 6354, + "src": "6890:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -10098,14 +10098,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6631, + "id": 6390, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "6907:1:18", + "src": "6907:1:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -10121,20 +10121,20 @@ "typeString": "int_const 0" } ], - "id": 6630, + "id": 6389, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "6899:7:18", + "src": "6899:7:17", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 6632, + "id": 6391, "isConstant": false, "isLValue": false, "isPure": true, @@ -10142,7 +10142,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6899:10:18", + "src": "6899:10:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -10150,12 +10150,12 @@ }, { "argumentTypes": null, - "id": 6633, + "id": 6392, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6597, - "src": "6911:6:18", + "referencedDeclaration": 6356, + "src": "6911:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -10177,18 +10177,18 @@ "typeString": "uint256" } ], - "id": 6628, + "id": 6387, "name": "Transfer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6769, - "src": "6881:8:18", + "referencedDeclaration": 6528, + "src": "6881:8:17", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6634, + "id": 6393, "isConstant": false, "isLValue": false, "isPure": false, @@ -10196,36 +10196,36 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6881:37:18", + "src": "6881:37:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6635, + "id": 6394, "nodeType": "EmitStatement", - "src": "6876:42:18" + "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": 6637, + "id": 6396, "implemented": true, "kind": "function", "modifiers": [], "name": "_burn", "nodeType": "FunctionDefinition", "parameters": { - "id": 6598, + "id": 6357, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6595, + "id": 6354, "name": "account", "nodeType": "VariableDeclaration", - "scope": 6637, - "src": "6598:15:18", + "scope": 6396, + "src": "6598:15:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -10233,10 +10233,10 @@ "typeString": "address" }, "typeName": { - "id": 6594, + "id": 6353, "name": "address", "nodeType": "ElementaryTypeName", - "src": "6598:7:18", + "src": "6598:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10248,11 +10248,11 @@ }, { "constant": false, - "id": 6597, + "id": 6356, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6637, - "src": "6615:14:18", + "scope": 6396, + "src": "6615:14:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -10260,10 +10260,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6596, + "id": 6355, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "6615:7:18", + "src": "6615:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -10273,25 +10273,25 @@ "visibility": "internal" } ], - "src": "6597:33:18" + "src": "6597:33:17" }, "returnParameters": { - "id": 6599, + "id": 6358, "nodeType": "ParameterList", "parameters": [], - "src": "6640:0:18" + "src": "6640:0:17" }, - "scope": 6709, - "src": "6583:342:18", + "scope": 6468, + "src": "6583:342:17", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { - "id": 6678, + "id": 6437, "nodeType": "Block", - "src": "7425:257:18", + "src": "7425:257:17", "statements": [ { "expression": { @@ -10303,19 +10303,19 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6651, + "id": 6410, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6647, + "id": 6406, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6639, - "src": "7443:5:18", + "referencedDeclaration": 6398, + "src": "7443:5:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -10329,14 +10329,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6649, + "id": 6408, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "7460:1:18", + "src": "7460:1:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -10352,20 +10352,20 @@ "typeString": "int_const 0" } ], - "id": 6648, + "id": 6407, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "7452:7:18", + "src": "7452:7:17", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 6650, + "id": 6409, "isConstant": false, "isLValue": false, "isPure": true, @@ -10373,13 +10373,13 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "7452:10:18", + "src": "7452:10:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, - "src": "7443:19:18", + "src": "7443:19:17", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -10388,14 +10388,14 @@ { "argumentTypes": null, "hexValue": "45524332303a20617070726f76652066726f6d20746865207a65726f2061646472657373", - "id": 6652, + "id": 6411, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "7464:38:18", + "src": "7464:38:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_c953f4879035ed60e766b34720f656aab5c697b141d924c283124ecedb91c208", @@ -10415,21 +10415,21 @@ "typeString": "literal_string \"ERC20: approve from the zero address\"" } ], - "id": 6646, + "id": 6405, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, - "src": "7435:7:18", + "referencedDeclaration": 6556, + "src": "7435:7:17", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6653, + "id": 6412, "isConstant": false, "isLValue": false, "isPure": false, @@ -10437,15 +10437,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "7435:68:18", + "src": "7435:68:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6654, + "id": 6413, "nodeType": "ExpressionStatement", - "src": "7435:68:18" + "src": "7435:68:17" }, { "expression": { @@ -10457,19 +10457,19 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6660, + "id": 6419, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6656, + "id": 6415, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6641, - "src": "7521:7:18", + "referencedDeclaration": 6400, + "src": "7521:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -10483,14 +10483,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6658, + "id": 6417, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "7540:1:18", + "src": "7540:1:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -10506,20 +10506,20 @@ "typeString": "int_const 0" } ], - "id": 6657, + "id": 6416, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "7532:7:18", + "src": "7532:7:17", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 6659, + "id": 6418, "isConstant": false, "isLValue": false, "isPure": true, @@ -10527,13 +10527,13 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "7532:10:18", + "src": "7532:10:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, - "src": "7521:21:18", + "src": "7521:21:17", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -10542,14 +10542,14 @@ { "argumentTypes": null, "hexValue": "45524332303a20617070726f766520746f20746865207a65726f2061646472657373", - "id": 6661, + "id": 6420, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "7544:36:18", + "src": "7544:36:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_24883cc5fe64ace9d0df1893501ecb93c77180f0ff69cca79affb3c316dc8029", @@ -10569,21 +10569,21 @@ "typeString": "literal_string \"ERC20: approve to the zero address\"" } ], - "id": 6655, + "id": 6414, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, - "src": "7513:7:18", + "referencedDeclaration": 6556, + "src": "7513:7:17", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6662, + "id": 6421, "isConstant": false, "isLValue": false, "isPure": false, @@ -10591,20 +10591,20 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "7513:68:18", + "src": "7513:68:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6663, + "id": 6422, "nodeType": "ExpressionStatement", - "src": "7513:68:18" + "src": "7513:68:17" }, { "expression": { "argumentTypes": null, - "id": 6670, + "id": 6429, "isConstant": false, "isLValue": false, "isPure": false, @@ -10615,26 +10615,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6664, + "id": 6423, "name": "_allowances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6326, - "src": "7592:11:18", + "referencedDeclaration": 6085, + "src": "7592:11:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 6667, + "id": 6426, "indexExpression": { "argumentTypes": null, - "id": 6665, + "id": 6424, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6639, - "src": "7604:5:18", + "referencedDeclaration": 6398, + "src": "7604:5:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -10645,21 +10645,21 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "7592:18:18", + "src": "7592:18:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6668, + "id": 6427, "indexExpression": { "argumentTypes": null, - "id": 6666, + "id": 6425, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6641, - "src": "7611:7:18", + "referencedDeclaration": 6400, + "src": "7611:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -10670,7 +10670,7 @@ "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", - "src": "7592:27:18", + "src": "7592:27:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -10680,26 +10680,26 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 6669, + "id": 6428, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6643, - "src": "7622:6:18", + "referencedDeclaration": 6402, + "src": "7622:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "7592:36:18", + "src": "7592:36:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6671, + "id": 6430, "nodeType": "ExpressionStatement", - "src": "7592:36:18" + "src": "7592:36:17" }, { "eventCall": { @@ -10707,12 +10707,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6673, + "id": 6432, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6639, - "src": "7652:5:18", + "referencedDeclaration": 6398, + "src": "7652:5:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -10720,12 +10720,12 @@ }, { "argumentTypes": null, - "id": 6674, + "id": 6433, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6641, - "src": "7659:7:18", + "referencedDeclaration": 6400, + "src": "7659:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -10733,12 +10733,12 @@ }, { "argumentTypes": null, - "id": 6675, + "id": 6434, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6643, - "src": "7668:6:18", + "referencedDeclaration": 6402, + "src": "7668:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -10760,18 +10760,18 @@ "typeString": "uint256" } ], - "id": 6672, + "id": 6431, "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6777, - "src": "7643:8:18", + "referencedDeclaration": 6536, + "src": "7643:8:17", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6676, + "id": 6435, "isConstant": false, "isLValue": false, "isPure": false, @@ -10779,36 +10779,36 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "7643:32:18", + "src": "7643:32:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6677, + "id": 6436, "nodeType": "EmitStatement", - "src": "7638:37:18" + "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": 6679, + "id": 6438, "implemented": true, "kind": "function", "modifiers": [], "name": "_approve", "nodeType": "FunctionDefinition", "parameters": { - "id": 6644, + "id": 6403, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6639, + "id": 6398, "name": "owner", "nodeType": "VariableDeclaration", - "scope": 6679, - "src": "7368:13:18", + "scope": 6438, + "src": "7368:13:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -10816,10 +10816,10 @@ "typeString": "address" }, "typeName": { - "id": 6638, + "id": 6397, "name": "address", "nodeType": "ElementaryTypeName", - "src": "7368:7:18", + "src": "7368:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10831,11 +10831,11 @@ }, { "constant": false, - "id": 6641, + "id": 6400, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6679, - "src": "7383:15:18", + "scope": 6438, + "src": "7383:15:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -10843,10 +10843,10 @@ "typeString": "address" }, "typeName": { - "id": 6640, + "id": 6399, "name": "address", "nodeType": "ElementaryTypeName", - "src": "7383:7:18", + "src": "7383:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -10858,11 +10858,11 @@ }, { "constant": false, - "id": 6643, + "id": 6402, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6679, - "src": "7400:14:18", + "scope": 6438, + "src": "7400:14:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -10870,10 +10870,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6642, + "id": 6401, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "7400:7:18", + "src": "7400:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -10883,25 +10883,25 @@ "visibility": "internal" } ], - "src": "7367:48:18" + "src": "7367:48:17" }, "returnParameters": { - "id": 6645, + "id": 6404, "nodeType": "ParameterList", "parameters": [], - "src": "7425:0:18" + "src": "7425:0:17" }, - "scope": 6709, - "src": "7350:332:18", + "scope": 6468, + "src": "7350:332:17", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { - "id": 6707, + "id": 6466, "nodeType": "Block", - "src": "7921:168:18", + "src": "7921:168:17", "statements": [ { "expression": { @@ -10909,12 +10909,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6687, + "id": 6446, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6681, - "src": "7937:7:18", + "referencedDeclaration": 6440, + "src": "7937:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -10922,12 +10922,12 @@ }, { "argumentTypes": null, - "id": 6688, + "id": 6447, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6683, - "src": "7946:6:18", + "referencedDeclaration": 6442, + "src": "7946:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -10945,18 +10945,18 @@ "typeString": "uint256" } ], - "id": 6686, + "id": 6445, "name": "_burn", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6637, - "src": "7931:5:18", + "referencedDeclaration": 6396, + "src": "7931:5:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,uint256)" } }, - "id": 6689, + "id": 6448, "isConstant": false, "isLValue": false, "isPure": false, @@ -10964,15 +10964,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "7931:22:18", + "src": "7931:22:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6690, + "id": 6449, "nodeType": "ExpressionStatement", - "src": "7931:22:18" + "src": "7931:22:17" }, { "expression": { @@ -10980,12 +10980,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6692, + "id": 6451, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6681, - "src": "7972:7:18", + "referencedDeclaration": 6440, + "src": "7972:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -10996,18 +10996,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 6693, + "id": 6452, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, - "src": "7981:10:18", + "referencedDeclaration": 5746, + "src": "7981:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6694, + "id": 6453, "isConstant": false, "isLValue": false, "isPure": false, @@ -11015,7 +11015,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "7981:12:18", + "src": "7981:12:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -11026,12 +11026,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6702, + "id": 6461, "name": "amount", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6683, - "src": "8034:6:18", + "referencedDeclaration": 6442, + "src": "8034:6:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -11040,14 +11040,14 @@ { "argumentTypes": null, "hexValue": "45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e6365", - "id": 6703, + "id": 6462, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "8042:38:18", + "src": "8042:38:17", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_a287c363786607a1457a2d9d12fa61c0073358e02d76b4035fc2c2d86a19c0db", @@ -11073,26 +11073,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 6695, + "id": 6454, "name": "_allowances", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6326, - "src": "7995:11:18", + "referencedDeclaration": 6085, + "src": "7995:11:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$", "typeString": "mapping(address => mapping(address => uint256))" } }, - "id": 6697, + "id": 6456, "indexExpression": { "argumentTypes": null, - "id": 6696, + "id": 6455, "name": "account", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6681, - "src": "8007:7:18", + "referencedDeclaration": 6440, + "src": "8007:7:17", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -11103,30 +11103,30 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "7995:20:18", + "src": "7995:20:17", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", "typeString": "mapping(address => uint256)" } }, - "id": 6700, + "id": 6459, "indexExpression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], - "id": 6698, + "id": 6457, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, - "src": "8016:10:18", + "referencedDeclaration": 5746, + "src": "8016:10:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6699, + "id": 6458, "isConstant": false, "isLValue": false, "isPure": false, @@ -11134,7 +11134,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "8016:12:18", + "src": "8016:12:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -11145,27 +11145,27 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "7995:34:18", + "src": "7995:34:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 6701, + "id": 6460, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sub", "nodeType": "MemberAccess", - "referencedDeclaration": 6069, - "src": "7995:38:18", + "referencedDeclaration": 5828, + "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": 6704, + "id": 6463, "isConstant": false, "isLValue": false, "isPure": false, @@ -11173,7 +11173,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "7995:86:18", + "src": "7995:86:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -11195,18 +11195,18 @@ "typeString": "uint256" } ], - "id": 6691, + "id": 6450, "name": "_approve", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6679, - "src": "7963:8:18", + "referencedDeclaration": 6438, + "src": "7963:8:17", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, - "id": 6705, + "id": 6464, "isConstant": false, "isLValue": false, "isPure": false, @@ -11214,36 +11214,36 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "7963:119:18", + "src": "7963:119:17", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6706, + "id": 6465, "nodeType": "ExpressionStatement", - "src": "7963:119:18" + "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": 6708, + "id": 6467, "implemented": true, "kind": "function", "modifiers": [], "name": "_burnFrom", "nodeType": "FunctionDefinition", "parameters": { - "id": 6684, + "id": 6443, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6681, + "id": 6440, "name": "account", "nodeType": "VariableDeclaration", - "scope": 6708, - "src": "7879:15:18", + "scope": 6467, + "src": "7879:15:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -11251,10 +11251,10 @@ "typeString": "address" }, "typeName": { - "id": 6680, + "id": 6439, "name": "address", "nodeType": "ElementaryTypeName", - "src": "7879:7:18", + "src": "7879:7:17", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -11266,11 +11266,11 @@ }, { "constant": false, - "id": 6683, + "id": 6442, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6708, - "src": "7896:14:18", + "scope": 6467, + "src": "7896:14:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -11278,10 +11278,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6682, + "id": 6441, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "7896:7:18", + "src": "7896:7:17", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -11291,26 +11291,26 @@ "visibility": "internal" } ], - "src": "7878:33:18" + "src": "7878:33:17" }, "returnParameters": { - "id": 6685, + "id": 6444, "nodeType": "ParameterList", "parameters": [], - "src": "7921:0:18" + "src": "7921:0:17" }, - "scope": 6709, - "src": "7860:229:18", + "scope": 6468, + "src": "7860:229:17", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" } ], - "scope": 6710, - "src": "1268:6823:18" + "scope": 6469, + "src": "1268:6823:17" } ], - "src": "0:8092:18" + "src": "0:8092:17" }, "compiler": { "name": "solc", @@ -11318,7 +11318,7 @@ }, "networks": {}, "schemaVersion": "3.2.0", - "updatedAt": "2020-09-11T10:54:21.713Z", + "updatedAt": "2020-10-02T11:33:45.802Z", "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 a634064e5..05a4737f4 100644 --- a/artifacts/FixedRateExchange.json +++ b/artifacts/FixedRateExchange.json @@ -16232,7 +16232,7 @@ }, "networks": {}, "schemaVersion": "3.2.0", - "updatedAt": "2020-10-02T05:02:46.138Z", + "updatedAt": "2020-10-02T11:33:45.776Z", "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 cc14cbb5b..1def9079b 100644 --- a/artifacts/IERC20.json +++ b/artifacts/IERC20.json @@ -186,14 +186,14 @@ "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol", "exportedSymbols": { "IERC20": [ - 6778 + 6537 ] }, - "id": 6779, + "id": 6538, "nodeType": "SourceUnit", "nodes": [ { - "id": 6711, + "id": 6470, "literals": [ "solidity", "^", @@ -201,7 +201,7 @@ ".0" ], "nodeType": "PragmaDirective", - "src": "0:23:19" + "src": "0:23:18" }, { "baseContracts": [], @@ -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": 6778, + "id": 6537, "linearizedBaseContracts": [ - 6778 + 6537 ], "name": "IERC20", "nodeType": "ContractDefinition", @@ -219,29 +219,29 @@ { "body": null, "documentation": "@dev Returns the amount of tokens in existence.", - "id": 6716, + "id": 6475, "implemented": false, "kind": "function", "modifiers": [], "name": "totalSupply", "nodeType": "FunctionDefinition", "parameters": { - "id": 6712, + "id": 6471, "nodeType": "ParameterList", "parameters": [], - "src": "290:2:19" + "src": "290:2:18" }, "returnParameters": { - "id": 6715, + "id": 6474, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6714, + "id": 6473, "name": "", "nodeType": "VariableDeclaration", - "scope": 6716, - "src": "316:7:19", + "scope": 6475, + "src": "316:7:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -249,10 +249,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6713, + "id": 6472, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "316:7:19", + "src": "316:7:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -262,10 +262,10 @@ "visibility": "internal" } ], - "src": "315:9:19" + "src": "315:9:18" }, - "scope": 6778, - "src": "270:55:19", + "scope": 6537, + "src": "270:55:18", "stateMutability": "view", "superFunction": null, "visibility": "external" @@ -273,23 +273,23 @@ { "body": null, "documentation": "@dev Returns the amount of tokens owned by `account`.", - "id": 6723, + "id": 6482, "implemented": false, "kind": "function", "modifiers": [], "name": "balanceOf", "nodeType": "FunctionDefinition", "parameters": { - "id": 6719, + "id": 6478, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6718, + "id": 6477, "name": "account", "nodeType": "VariableDeclaration", - "scope": 6723, - "src": "427:15:19", + "scope": 6482, + "src": "427:15:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -297,10 +297,10 @@ "typeString": "address" }, "typeName": { - "id": 6717, + "id": 6476, "name": "address", "nodeType": "ElementaryTypeName", - "src": "427:7:19", + "src": "427:7:18", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -311,19 +311,19 @@ "visibility": "internal" } ], - "src": "426:17:19" + "src": "426:17:18" }, "returnParameters": { - "id": 6722, + "id": 6481, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6721, + "id": 6480, "name": "", "nodeType": "VariableDeclaration", - "scope": 6723, - "src": "467:7:19", + "scope": 6482, + "src": "467:7:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -331,10 +331,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6720, + "id": 6479, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "467:7:19", + "src": "467:7:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -344,34 +344,34 @@ "visibility": "internal" } ], - "src": "466:9:19" + "src": "466:9:18" }, - "scope": 6778, - "src": "408:68:19", + "scope": 6537, + "src": "408:68:18", "stateMutability": "view", - "superFunction": 5124, + "superFunction": 5071, "visibility": "external" }, { "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": 6732, + "id": 6491, "implemented": false, "kind": "function", "modifiers": [], "name": "transfer", "nodeType": "FunctionDefinition", "parameters": { - "id": 6728, + "id": 6487, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6725, + "id": 6484, "name": "recipient", "nodeType": "VariableDeclaration", - "scope": 6732, - "src": "714:17:19", + "scope": 6491, + "src": "714:17:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -379,10 +379,10 @@ "typeString": "address" }, "typeName": { - "id": 6724, + "id": 6483, "name": "address", "nodeType": "ElementaryTypeName", - "src": "714:7:19", + "src": "714:7:18", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -394,11 +394,11 @@ }, { "constant": false, - "id": 6727, + "id": 6486, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6732, - "src": "733:14:19", + "scope": 6491, + "src": "733:14:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -406,10 +406,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6726, + "id": 6485, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "733:7:19", + "src": "733:7:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -419,19 +419,19 @@ "visibility": "internal" } ], - "src": "713:35:19" + "src": "713:35:18" }, "returnParameters": { - "id": 6731, + "id": 6490, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6730, + "id": 6489, "name": "", "nodeType": "VariableDeclaration", - "scope": 6732, - "src": "767:4:19", + "scope": 6491, + "src": "767:4:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -439,10 +439,10 @@ "typeString": "bool" }, "typeName": { - "id": 6729, + "id": 6488, "name": "bool", "nodeType": "ElementaryTypeName", - "src": "767:4:19", + "src": "767:4:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -452,34 +452,34 @@ "visibility": "internal" } ], - "src": "766:6:19" + "src": "766:6:18" }, - "scope": 6778, - "src": "696:77:19", + "scope": 6537, + "src": "696:77:18", "stateMutability": "nonpayable", - "superFunction": 5133, + "superFunction": 5080, "visibility": "external" }, { "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": 6741, + "id": 6500, "implemented": false, "kind": "function", "modifiers": [], "name": "allowance", "nodeType": "FunctionDefinition", "parameters": { - "id": 6737, + "id": 6496, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6734, + "id": 6493, "name": "owner", "nodeType": "VariableDeclaration", - "scope": 6741, - "src": "1067:13:19", + "scope": 6500, + "src": "1067:13:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -487,10 +487,10 @@ "typeString": "address" }, "typeName": { - "id": 6733, + "id": 6492, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1067:7:19", + "src": "1067:7:18", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -502,11 +502,11 @@ }, { "constant": false, - "id": 6736, + "id": 6495, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6741, - "src": "1082:15:19", + "scope": 6500, + "src": "1082:15:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -514,10 +514,10 @@ "typeString": "address" }, "typeName": { - "id": 6735, + "id": 6494, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1082:7:19", + "src": "1082:7:18", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -528,19 +528,19 @@ "visibility": "internal" } ], - "src": "1066:32:19" + "src": "1066:32:18" }, "returnParameters": { - "id": 6740, + "id": 6499, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6739, + "id": 6498, "name": "", "nodeType": "VariableDeclaration", - "scope": 6741, - "src": "1122:7:19", + "scope": 6500, + "src": "1122:7:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -548,10 +548,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6738, + "id": 6497, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1122:7:19", + "src": "1122:7:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -561,34 +561,34 @@ "visibility": "internal" } ], - "src": "1121:9:19" + "src": "1121:9:18" }, - "scope": 6778, - "src": "1048:83:19", + "scope": 6537, + "src": "1048:83:18", "stateMutability": "view", - "superFunction": 5106, + "superFunction": 5053, "visibility": "external" }, { "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": 6750, + "id": 6509, "implemented": false, "kind": "function", "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { - "id": 6746, + "id": 6505, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6743, + "id": 6502, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6750, - "src": "1801:15:19", + "scope": 6509, + "src": "1801:15:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -596,10 +596,10 @@ "typeString": "address" }, "typeName": { - "id": 6742, + "id": 6501, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1801:7:19", + "src": "1801:7:18", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -611,11 +611,11 @@ }, { "constant": false, - "id": 6745, + "id": 6504, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6750, - "src": "1818:14:19", + "scope": 6509, + "src": "1818:14:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -623,10 +623,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6744, + "id": 6503, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1818:7:19", + "src": "1818:7:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -636,19 +636,19 @@ "visibility": "internal" } ], - "src": "1800:33:19" + "src": "1800:33:18" }, "returnParameters": { - "id": 6749, + "id": 6508, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6748, + "id": 6507, "name": "", "nodeType": "VariableDeclaration", - "scope": 6750, - "src": "1852:4:19", + "scope": 6509, + "src": "1852:4:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -656,10 +656,10 @@ "typeString": "bool" }, "typeName": { - "id": 6747, + "id": 6506, "name": "bool", "nodeType": "ElementaryTypeName", - "src": "1852:4:19", + "src": "1852:4:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -669,10 +669,10 @@ "visibility": "internal" } ], - "src": "1851:6:19" + "src": "1851:6:18" }, - "scope": 6778, - "src": "1784:74:19", + "scope": 6537, + "src": "1784:74:18", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" @@ -680,23 +680,23 @@ { "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": 6761, + "id": 6520, "implemented": false, "kind": "function", "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { - "id": 6757, + "id": 6516, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6752, + "id": 6511, "name": "sender", "nodeType": "VariableDeclaration", - "scope": 6761, - "src": "2187:14:19", + "scope": 6520, + "src": "2187:14:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -704,10 +704,10 @@ "typeString": "address" }, "typeName": { - "id": 6751, + "id": 6510, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2187:7:19", + "src": "2187:7:18", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -719,11 +719,11 @@ }, { "constant": false, - "id": 6754, + "id": 6513, "name": "recipient", "nodeType": "VariableDeclaration", - "scope": 6761, - "src": "2203:17:19", + "scope": 6520, + "src": "2203:17:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -731,10 +731,10 @@ "typeString": "address" }, "typeName": { - "id": 6753, + "id": 6512, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2203:7:19", + "src": "2203:7:18", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -746,11 +746,11 @@ }, { "constant": false, - "id": 6756, + "id": 6515, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6761, - "src": "2222:14:19", + "scope": 6520, + "src": "2222:14:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -758,10 +758,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6755, + "id": 6514, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "2222:7:19", + "src": "2222:7:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -771,19 +771,19 @@ "visibility": "internal" } ], - "src": "2186:51:19" + "src": "2186:51:18" }, "returnParameters": { - "id": 6760, + "id": 6519, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6759, + "id": 6518, "name": "", "nodeType": "VariableDeclaration", - "scope": 6761, - "src": "2256:4:19", + "scope": 6520, + "src": "2256:4:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -791,10 +791,10 @@ "typeString": "bool" }, "typeName": { - "id": 6758, + "id": 6517, "name": "bool", "nodeType": "ElementaryTypeName", - "src": "2256:4:19", + "src": "2256:4:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -804,32 +804,32 @@ "visibility": "internal" } ], - "src": "2255:6:19" + "src": "2255:6:18" }, - "scope": 6778, - "src": "2165:97:19", + "scope": 6537, + "src": "2165:97:18", "stateMutability": "nonpayable", - "superFunction": 5117, + "superFunction": 5064, "visibility": "external" }, { "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": 6769, + "id": 6528, "name": "Transfer", "nodeType": "EventDefinition", "parameters": { - "id": 6768, + "id": 6527, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6763, + "id": 6522, "indexed": true, "name": "from", "nodeType": "VariableDeclaration", - "scope": 6769, - "src": "2446:20:19", + "scope": 6528, + "src": "2446:20:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -837,10 +837,10 @@ "typeString": "address" }, "typeName": { - "id": 6762, + "id": 6521, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2446:7:19", + "src": "2446:7:18", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -852,12 +852,12 @@ }, { "constant": false, - "id": 6765, + "id": 6524, "indexed": true, "name": "to", "nodeType": "VariableDeclaration", - "scope": 6769, - "src": "2468:18:19", + "scope": 6528, + "src": "2468:18:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -865,10 +865,10 @@ "typeString": "address" }, "typeName": { - "id": 6764, + "id": 6523, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2468:7:19", + "src": "2468:7:18", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -880,12 +880,12 @@ }, { "constant": false, - "id": 6767, + "id": 6526, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", - "scope": 6769, - "src": "2488:13:19", + "scope": 6528, + "src": "2488:13:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -893,10 +893,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6766, + "id": 6525, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "2488:7:19", + "src": "2488:7:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -906,28 +906,28 @@ "visibility": "internal" } ], - "src": "2445:57:19" + "src": "2445:57:18" }, - "src": "2431:72:19" + "src": "2431:72:18" }, { "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": 6777, + "id": 6536, "name": "Approval", "nodeType": "EventDefinition", "parameters": { - "id": 6776, + "id": 6535, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6771, + "id": 6530, "indexed": true, "name": "owner", "nodeType": "VariableDeclaration", - "scope": 6777, - "src": "2677:21:19", + "scope": 6536, + "src": "2677:21:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -935,10 +935,10 @@ "typeString": "address" }, "typeName": { - "id": 6770, + "id": 6529, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2677:7:19", + "src": "2677:7:18", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -950,12 +950,12 @@ }, { "constant": false, - "id": 6773, + "id": 6532, "indexed": true, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6777, - "src": "2700:23:19", + "scope": 6536, + "src": "2700:23:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -963,10 +963,10 @@ "typeString": "address" }, "typeName": { - "id": 6772, + "id": 6531, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2700:7:19", + "src": "2700:7:18", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -978,12 +978,12 @@ }, { "constant": false, - "id": 6775, + "id": 6534, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", - "scope": 6777, - "src": "2725:13:19", + "scope": 6536, + "src": "2725:13:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -991,10 +991,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6774, + "id": 6533, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "2725:7:19", + "src": "2725:7:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1004,29 +1004,29 @@ "visibility": "internal" } ], - "src": "2676:63:19" + "src": "2676:63:18" }, - "src": "2662:78:19" + "src": "2662:78:18" } ], - "scope": 6779, - "src": "176:2566:19" + "scope": 6538, + "src": "176:2566:18" } ], - "src": "0:2743:19" + "src": "0:2743:18" }, "legacyAST": { "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol", "exportedSymbols": { "IERC20": [ - 6778 + 6537 ] }, - "id": 6779, + "id": 6538, "nodeType": "SourceUnit", "nodes": [ { - "id": 6711, + "id": 6470, "literals": [ "solidity", "^", @@ -1034,7 +1034,7 @@ ".0" ], "nodeType": "PragmaDirective", - "src": "0:23:19" + "src": "0:23:18" }, { "baseContracts": [], @@ -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": 6778, + "id": 6537, "linearizedBaseContracts": [ - 6778 + 6537 ], "name": "IERC20", "nodeType": "ContractDefinition", @@ -1052,29 +1052,29 @@ { "body": null, "documentation": "@dev Returns the amount of tokens in existence.", - "id": 6716, + "id": 6475, "implemented": false, "kind": "function", "modifiers": [], "name": "totalSupply", "nodeType": "FunctionDefinition", "parameters": { - "id": 6712, + "id": 6471, "nodeType": "ParameterList", "parameters": [], - "src": "290:2:19" + "src": "290:2:18" }, "returnParameters": { - "id": 6715, + "id": 6474, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6714, + "id": 6473, "name": "", "nodeType": "VariableDeclaration", - "scope": 6716, - "src": "316:7:19", + "scope": 6475, + "src": "316:7:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1082,10 +1082,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6713, + "id": 6472, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "316:7:19", + "src": "316:7:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1095,10 +1095,10 @@ "visibility": "internal" } ], - "src": "315:9:19" + "src": "315:9:18" }, - "scope": 6778, - "src": "270:55:19", + "scope": 6537, + "src": "270:55:18", "stateMutability": "view", "superFunction": null, "visibility": "external" @@ -1106,23 +1106,23 @@ { "body": null, "documentation": "@dev Returns the amount of tokens owned by `account`.", - "id": 6723, + "id": 6482, "implemented": false, "kind": "function", "modifiers": [], "name": "balanceOf", "nodeType": "FunctionDefinition", "parameters": { - "id": 6719, + "id": 6478, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6718, + "id": 6477, "name": "account", "nodeType": "VariableDeclaration", - "scope": 6723, - "src": "427:15:19", + "scope": 6482, + "src": "427:15:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1130,10 +1130,10 @@ "typeString": "address" }, "typeName": { - "id": 6717, + "id": 6476, "name": "address", "nodeType": "ElementaryTypeName", - "src": "427:7:19", + "src": "427:7:18", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1144,19 +1144,19 @@ "visibility": "internal" } ], - "src": "426:17:19" + "src": "426:17:18" }, "returnParameters": { - "id": 6722, + "id": 6481, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6721, + "id": 6480, "name": "", "nodeType": "VariableDeclaration", - "scope": 6723, - "src": "467:7:19", + "scope": 6482, + "src": "467:7:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1164,10 +1164,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6720, + "id": 6479, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "467:7:19", + "src": "467:7:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1177,34 +1177,34 @@ "visibility": "internal" } ], - "src": "466:9:19" + "src": "466:9:18" }, - "scope": 6778, - "src": "408:68:19", + "scope": 6537, + "src": "408:68:18", "stateMutability": "view", - "superFunction": 5124, + "superFunction": 5071, "visibility": "external" }, { "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": 6732, + "id": 6491, "implemented": false, "kind": "function", "modifiers": [], "name": "transfer", "nodeType": "FunctionDefinition", "parameters": { - "id": 6728, + "id": 6487, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6725, + "id": 6484, "name": "recipient", "nodeType": "VariableDeclaration", - "scope": 6732, - "src": "714:17:19", + "scope": 6491, + "src": "714:17:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1212,10 +1212,10 @@ "typeString": "address" }, "typeName": { - "id": 6724, + "id": 6483, "name": "address", "nodeType": "ElementaryTypeName", - "src": "714:7:19", + "src": "714:7:18", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1227,11 +1227,11 @@ }, { "constant": false, - "id": 6727, + "id": 6486, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6732, - "src": "733:14:19", + "scope": 6491, + "src": "733:14:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1239,10 +1239,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6726, + "id": 6485, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "733:7:19", + "src": "733:7:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1252,19 +1252,19 @@ "visibility": "internal" } ], - "src": "713:35:19" + "src": "713:35:18" }, "returnParameters": { - "id": 6731, + "id": 6490, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6730, + "id": 6489, "name": "", "nodeType": "VariableDeclaration", - "scope": 6732, - "src": "767:4:19", + "scope": 6491, + "src": "767:4:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1272,10 +1272,10 @@ "typeString": "bool" }, "typeName": { - "id": 6729, + "id": 6488, "name": "bool", "nodeType": "ElementaryTypeName", - "src": "767:4:19", + "src": "767:4:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -1285,34 +1285,34 @@ "visibility": "internal" } ], - "src": "766:6:19" + "src": "766:6:18" }, - "scope": 6778, - "src": "696:77:19", + "scope": 6537, + "src": "696:77:18", "stateMutability": "nonpayable", - "superFunction": 5133, + "superFunction": 5080, "visibility": "external" }, { "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": 6741, + "id": 6500, "implemented": false, "kind": "function", "modifiers": [], "name": "allowance", "nodeType": "FunctionDefinition", "parameters": { - "id": 6737, + "id": 6496, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6734, + "id": 6493, "name": "owner", "nodeType": "VariableDeclaration", - "scope": 6741, - "src": "1067:13:19", + "scope": 6500, + "src": "1067:13:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1320,10 +1320,10 @@ "typeString": "address" }, "typeName": { - "id": 6733, + "id": 6492, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1067:7:19", + "src": "1067:7:18", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1335,11 +1335,11 @@ }, { "constant": false, - "id": 6736, + "id": 6495, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6741, - "src": "1082:15:19", + "scope": 6500, + "src": "1082:15:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1347,10 +1347,10 @@ "typeString": "address" }, "typeName": { - "id": 6735, + "id": 6494, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1082:7:19", + "src": "1082:7:18", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1361,19 +1361,19 @@ "visibility": "internal" } ], - "src": "1066:32:19" + "src": "1066:32:18" }, "returnParameters": { - "id": 6740, + "id": 6499, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6739, + "id": 6498, "name": "", "nodeType": "VariableDeclaration", - "scope": 6741, - "src": "1122:7:19", + "scope": 6500, + "src": "1122:7:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1381,10 +1381,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6738, + "id": 6497, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1122:7:19", + "src": "1122:7:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1394,34 +1394,34 @@ "visibility": "internal" } ], - "src": "1121:9:19" + "src": "1121:9:18" }, - "scope": 6778, - "src": "1048:83:19", + "scope": 6537, + "src": "1048:83:18", "stateMutability": "view", - "superFunction": 5106, + "superFunction": 5053, "visibility": "external" }, { "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": 6750, + "id": 6509, "implemented": false, "kind": "function", "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { - "id": 6746, + "id": 6505, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6743, + "id": 6502, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6750, - "src": "1801:15:19", + "scope": 6509, + "src": "1801:15:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1429,10 +1429,10 @@ "typeString": "address" }, "typeName": { - "id": 6742, + "id": 6501, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1801:7:19", + "src": "1801:7:18", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1444,11 +1444,11 @@ }, { "constant": false, - "id": 6745, + "id": 6504, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6750, - "src": "1818:14:19", + "scope": 6509, + "src": "1818:14:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1456,10 +1456,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6744, + "id": 6503, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1818:7:19", + "src": "1818:7:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1469,19 +1469,19 @@ "visibility": "internal" } ], - "src": "1800:33:19" + "src": "1800:33:18" }, "returnParameters": { - "id": 6749, + "id": 6508, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6748, + "id": 6507, "name": "", "nodeType": "VariableDeclaration", - "scope": 6750, - "src": "1852:4:19", + "scope": 6509, + "src": "1852:4:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1489,10 +1489,10 @@ "typeString": "bool" }, "typeName": { - "id": 6747, + "id": 6506, "name": "bool", "nodeType": "ElementaryTypeName", - "src": "1852:4:19", + "src": "1852:4:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -1502,10 +1502,10 @@ "visibility": "internal" } ], - "src": "1851:6:19" + "src": "1851:6:18" }, - "scope": 6778, - "src": "1784:74:19", + "scope": 6537, + "src": "1784:74:18", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" @@ -1513,23 +1513,23 @@ { "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": 6761, + "id": 6520, "implemented": false, "kind": "function", "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { - "id": 6757, + "id": 6516, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6752, + "id": 6511, "name": "sender", "nodeType": "VariableDeclaration", - "scope": 6761, - "src": "2187:14:19", + "scope": 6520, + "src": "2187:14:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1537,10 +1537,10 @@ "typeString": "address" }, "typeName": { - "id": 6751, + "id": 6510, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2187:7:19", + "src": "2187:7:18", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1552,11 +1552,11 @@ }, { "constant": false, - "id": 6754, + "id": 6513, "name": "recipient", "nodeType": "VariableDeclaration", - "scope": 6761, - "src": "2203:17:19", + "scope": 6520, + "src": "2203:17:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1564,10 +1564,10 @@ "typeString": "address" }, "typeName": { - "id": 6753, + "id": 6512, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2203:7:19", + "src": "2203:7:18", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1579,11 +1579,11 @@ }, { "constant": false, - "id": 6756, + "id": 6515, "name": "amount", "nodeType": "VariableDeclaration", - "scope": 6761, - "src": "2222:14:19", + "scope": 6520, + "src": "2222:14:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1591,10 +1591,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6755, + "id": 6514, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "2222:7:19", + "src": "2222:7:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1604,19 +1604,19 @@ "visibility": "internal" } ], - "src": "2186:51:19" + "src": "2186:51:18" }, "returnParameters": { - "id": 6760, + "id": 6519, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6759, + "id": 6518, "name": "", "nodeType": "VariableDeclaration", - "scope": 6761, - "src": "2256:4:19", + "scope": 6520, + "src": "2256:4:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1624,10 +1624,10 @@ "typeString": "bool" }, "typeName": { - "id": 6758, + "id": 6517, "name": "bool", "nodeType": "ElementaryTypeName", - "src": "2256:4:19", + "src": "2256:4:18", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -1637,32 +1637,32 @@ "visibility": "internal" } ], - "src": "2255:6:19" + "src": "2255:6:18" }, - "scope": 6778, - "src": "2165:97:19", + "scope": 6537, + "src": "2165:97:18", "stateMutability": "nonpayable", - "superFunction": 5117, + "superFunction": 5064, "visibility": "external" }, { "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": 6769, + "id": 6528, "name": "Transfer", "nodeType": "EventDefinition", "parameters": { - "id": 6768, + "id": 6527, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6763, + "id": 6522, "indexed": true, "name": "from", "nodeType": "VariableDeclaration", - "scope": 6769, - "src": "2446:20:19", + "scope": 6528, + "src": "2446:20:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1670,10 +1670,10 @@ "typeString": "address" }, "typeName": { - "id": 6762, + "id": 6521, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2446:7:19", + "src": "2446:7:18", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1685,12 +1685,12 @@ }, { "constant": false, - "id": 6765, + "id": 6524, "indexed": true, "name": "to", "nodeType": "VariableDeclaration", - "scope": 6769, - "src": "2468:18:19", + "scope": 6528, + "src": "2468:18:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1698,10 +1698,10 @@ "typeString": "address" }, "typeName": { - "id": 6764, + "id": 6523, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2468:7:19", + "src": "2468:7:18", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1713,12 +1713,12 @@ }, { "constant": false, - "id": 6767, + "id": 6526, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", - "scope": 6769, - "src": "2488:13:19", + "scope": 6528, + "src": "2488:13:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1726,10 +1726,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6766, + "id": 6525, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "2488:7:19", + "src": "2488:7:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1739,28 +1739,28 @@ "visibility": "internal" } ], - "src": "2445:57:19" + "src": "2445:57:18" }, - "src": "2431:72:19" + "src": "2431:72:18" }, { "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": 6777, + "id": 6536, "name": "Approval", "nodeType": "EventDefinition", "parameters": { - "id": 6776, + "id": 6535, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6771, + "id": 6530, "indexed": true, "name": "owner", "nodeType": "VariableDeclaration", - "scope": 6777, - "src": "2677:21:19", + "scope": 6536, + "src": "2677:21:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1768,10 +1768,10 @@ "typeString": "address" }, "typeName": { - "id": 6770, + "id": 6529, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2677:7:19", + "src": "2677:7:18", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1783,12 +1783,12 @@ }, { "constant": false, - "id": 6773, + "id": 6532, "indexed": true, "name": "spender", "nodeType": "VariableDeclaration", - "scope": 6777, - "src": "2700:23:19", + "scope": 6536, + "src": "2700:23:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1796,10 +1796,10 @@ "typeString": "address" }, "typeName": { - "id": 6772, + "id": 6531, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2700:7:19", + "src": "2700:7:18", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1811,12 +1811,12 @@ }, { "constant": false, - "id": 6775, + "id": 6534, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", - "scope": 6777, - "src": "2725:13:19", + "scope": 6536, + "src": "2725:13:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1824,10 +1824,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6774, + "id": 6533, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "2725:7:19", + "src": "2725:7:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1837,16 +1837,16 @@ "visibility": "internal" } ], - "src": "2676:63:19" + "src": "2676:63:18" }, - "src": "2662:78:19" + "src": "2662:78:18" } ], - "scope": 6779, - "src": "176:2566:19" + "scope": 6538, + "src": "176:2566:18" } ], - "src": "0:2743:19" + "src": "0:2743:18" }, "compiler": { "name": "solc", @@ -1854,7 +1854,7 @@ }, "networks": {}, "schemaVersion": "3.2.0", - "updatedAt": "2020-09-11T10:54:21.719Z", + "updatedAt": "2020-10-02T11:33:45.806Z", "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 baaa85fd4..f759eadfa 100644 --- a/artifacts/IERC20Template.json +++ b/artifacts/IERC20Template.json @@ -2806,7 +2806,7 @@ }, "networks": {}, "schemaVersion": "3.2.0", - "updatedAt": "2020-10-02T05:02:46.161Z", + "updatedAt": "2020-10-02T11:33:45.787Z", "devdoc": { "methods": {} }, diff --git a/artifacts/Metadata.json b/artifacts/Metadata.json index 78228f265..682c9a49b 100644 --- a/artifacts/Metadata.json +++ b/artifacts/Metadata.json @@ -2389,7 +2389,7 @@ }, "networks": {}, "schemaVersion": "3.2.0", - "updatedAt": "2020-10-02T05:02:46.163Z", + "updatedAt": "2020-10-02T11:33:45.788Z", "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 855749c1d..fb119cb54 100644 --- a/artifacts/Migrations.json +++ b/artifacts/Migrations.json @@ -61,14 +61,14 @@ "absolutePath": "/ocean/ocean-contracts/contracts/Migrations.sol", "exportedSymbols": { "Migrations": [ - 199 + 195 ] }, - "id": 200, + "id": 196, "nodeType": "SourceUnit", "nodes": [ { - "id": 164, + "id": 160, "literals": [ "solidity", ">=", @@ -87,19 +87,19 @@ "contractKind": "contract", "documentation": null, "fullyImplemented": true, - "id": 199, + "id": 195, "linearizedBaseContracts": [ - 199 + 195 ], "name": "Migrations", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, - "id": 166, + "id": 162, "name": "owner", "nodeType": "VariableDeclaration", - "scope": 199, + "scope": 195, "src": "63:20:1", "stateVariable": true, "storageLocation": "default", @@ -108,7 +108,7 @@ "typeString": "address" }, "typeName": { - "id": 165, + "id": 161, "name": "address", "nodeType": "ElementaryTypeName", "src": "63:7:1", @@ -123,10 +123,10 @@ }, { "constant": false, - "id": 168, + "id": 164, "name": "last_completed_migration", "nodeType": "VariableDeclaration", - "scope": 199, + "scope": 195, "src": "89:36:1", "stateVariable": true, "storageLocation": "default", @@ -135,7 +135,7 @@ "typeString": "uint256" }, "typeName": { - "id": 167, + "id": 163, "name": "uint", "nodeType": "ElementaryTypeName", "src": "89:4:1", @@ -149,25 +149,25 @@ }, { "body": { - "id": 176, + "id": 172, "nodeType": "Block", "src": "155:35:1", "statements": [ { "expression": { "argumentTypes": null, - "id": 174, + "id": 170, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 171, + "id": 167, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 166, + "referencedDeclaration": 162, "src": "165:5:1", "typeDescriptions": { "typeIdentifier": "t_address", @@ -180,18 +180,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 172, + "id": 168, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "173:3:1", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 173, + "id": 169, "isConstant": false, "isLValue": false, "isPure": false, @@ -211,32 +211,32 @@ "typeString": "address" } }, - "id": 175, + "id": 171, "nodeType": "ExpressionStatement", "src": "165:18:1" } ] }, "documentation": null, - "id": 177, + "id": 173, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { - "id": 169, + "id": 165, "nodeType": "ParameterList", "parameters": [], "src": "145:2:1" }, "returnParameters": { - "id": 170, + "id": 166, "nodeType": "ParameterList", "parameters": [], "src": "155:0:1" }, - "scope": 199, + "scope": 195, "src": "134:56:1", "stateMutability": "nonpayable", "superFunction": null, @@ -244,7 +244,7 @@ }, { "body": { - "id": 185, + "id": 181, "nodeType": "Block", "src": "220:44:1", "statements": [ @@ -255,7 +255,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 182, + "id": 178, "isConstant": false, "isLValue": false, "isPure": false, @@ -264,18 +264,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 179, + "id": 175, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "235:3:1", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 180, + "id": 176, "isConstant": false, "isLValue": false, "isPure": false, @@ -293,11 +293,11 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 181, + "id": 177, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 166, + "referencedDeclaration": 162, "src": "249:5:1", "typeDescriptions": { "typeIdentifier": "t_address", @@ -311,11 +311,11 @@ } }, "falseBody": null, - "id": 184, + "id": 180, "nodeType": "IfStatement", "src": "231:26:1", "trueBody": { - "id": 183, + "id": 179, "nodeType": "PlaceholderStatement", "src": "256:1:1" } @@ -323,11 +323,11 @@ ] }, "documentation": null, - "id": 186, + "id": 182, "name": "restricted", "nodeType": "ModifierDefinition", "parameters": { - "id": 178, + "id": 174, "nodeType": "ParameterList", "parameters": [], "src": "217:2:1" @@ -337,25 +337,25 @@ }, { "body": { - "id": 197, + "id": 193, "nodeType": "Block", "src": "330:53:1", "statements": [ { "expression": { "argumentTypes": null, - "id": 195, + "id": 191, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 193, + "id": 189, "name": "last_completed_migration", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 168, + "referencedDeclaration": 164, "src": "340:24:1", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -366,11 +366,11 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 194, + "id": 190, "name": "completed", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 188, + "referencedDeclaration": 184, "src": "367:9:1", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -383,27 +383,27 @@ "typeString": "uint256" } }, - "id": 196, + "id": 192, "nodeType": "ExpressionStatement", "src": "340:36:1" } ] }, "documentation": null, - "id": 198, + "id": 194, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, - "id": 191, + "id": 187, "modifierName": { "argumentTypes": null, - "id": 190, + "id": 186, "name": "restricted", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 186, + "referencedDeclaration": 182, "src": "319:10:1", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", @@ -417,15 +417,15 @@ "name": "setCompleted", "nodeType": "FunctionDefinition", "parameters": { - "id": 189, + "id": 185, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 188, + "id": 184, "name": "completed", "nodeType": "VariableDeclaration", - "scope": 198, + "scope": 194, "src": "296:14:1", "stateVariable": false, "storageLocation": "default", @@ -434,7 +434,7 @@ "typeString": "uint256" }, "typeName": { - "id": 187, + "id": 183, "name": "uint", "nodeType": "ElementaryTypeName", "src": "296:4:1", @@ -450,19 +450,19 @@ "src": "295:16:1" }, "returnParameters": { - "id": 192, + "id": 188, "nodeType": "ParameterList", "parameters": [], "src": "330:0:1" }, - "scope": 199, + "scope": 195, "src": "274:109:1", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], - "scope": 200, + "scope": 196, "src": "34:351:1" } ], @@ -472,14 +472,14 @@ "absolutePath": "/ocean/ocean-contracts/contracts/Migrations.sol", "exportedSymbols": { "Migrations": [ - 199 + 195 ] }, - "id": 200, + "id": 196, "nodeType": "SourceUnit", "nodes": [ { - "id": 164, + "id": 160, "literals": [ "solidity", ">=", @@ -498,19 +498,19 @@ "contractKind": "contract", "documentation": null, "fullyImplemented": true, - "id": 199, + "id": 195, "linearizedBaseContracts": [ - 199 + 195 ], "name": "Migrations", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, - "id": 166, + "id": 162, "name": "owner", "nodeType": "VariableDeclaration", - "scope": 199, + "scope": 195, "src": "63:20:1", "stateVariable": true, "storageLocation": "default", @@ -519,7 +519,7 @@ "typeString": "address" }, "typeName": { - "id": 165, + "id": 161, "name": "address", "nodeType": "ElementaryTypeName", "src": "63:7:1", @@ -534,10 +534,10 @@ }, { "constant": false, - "id": 168, + "id": 164, "name": "last_completed_migration", "nodeType": "VariableDeclaration", - "scope": 199, + "scope": 195, "src": "89:36:1", "stateVariable": true, "storageLocation": "default", @@ -546,7 +546,7 @@ "typeString": "uint256" }, "typeName": { - "id": 167, + "id": 163, "name": "uint", "nodeType": "ElementaryTypeName", "src": "89:4:1", @@ -560,25 +560,25 @@ }, { "body": { - "id": 176, + "id": 172, "nodeType": "Block", "src": "155:35:1", "statements": [ { "expression": { "argumentTypes": null, - "id": 174, + "id": 170, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 171, + "id": 167, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 166, + "referencedDeclaration": 162, "src": "165:5:1", "typeDescriptions": { "typeIdentifier": "t_address", @@ -591,18 +591,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 172, + "id": 168, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "173:3:1", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 173, + "id": 169, "isConstant": false, "isLValue": false, "isPure": false, @@ -622,32 +622,32 @@ "typeString": "address" } }, - "id": 175, + "id": 171, "nodeType": "ExpressionStatement", "src": "165:18:1" } ] }, "documentation": null, - "id": 177, + "id": 173, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { - "id": 169, + "id": 165, "nodeType": "ParameterList", "parameters": [], "src": "145:2:1" }, "returnParameters": { - "id": 170, + "id": 166, "nodeType": "ParameterList", "parameters": [], "src": "155:0:1" }, - "scope": 199, + "scope": 195, "src": "134:56:1", "stateMutability": "nonpayable", "superFunction": null, @@ -655,7 +655,7 @@ }, { "body": { - "id": 185, + "id": 181, "nodeType": "Block", "src": "220:44:1", "statements": [ @@ -666,7 +666,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 182, + "id": 178, "isConstant": false, "isLValue": false, "isPure": false, @@ -675,18 +675,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 179, + "id": 175, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6793, + "referencedDeclaration": 6552, "src": "235:3:1", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 180, + "id": 176, "isConstant": false, "isLValue": false, "isPure": false, @@ -704,11 +704,11 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 181, + "id": 177, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 166, + "referencedDeclaration": 162, "src": "249:5:1", "typeDescriptions": { "typeIdentifier": "t_address", @@ -722,11 +722,11 @@ } }, "falseBody": null, - "id": 184, + "id": 180, "nodeType": "IfStatement", "src": "231:26:1", "trueBody": { - "id": 183, + "id": 179, "nodeType": "PlaceholderStatement", "src": "256:1:1" } @@ -734,11 +734,11 @@ ] }, "documentation": null, - "id": 186, + "id": 182, "name": "restricted", "nodeType": "ModifierDefinition", "parameters": { - "id": 178, + "id": 174, "nodeType": "ParameterList", "parameters": [], "src": "217:2:1" @@ -748,25 +748,25 @@ }, { "body": { - "id": 197, + "id": 193, "nodeType": "Block", "src": "330:53:1", "statements": [ { "expression": { "argumentTypes": null, - "id": 195, + "id": 191, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 193, + "id": 189, "name": "last_completed_migration", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 168, + "referencedDeclaration": 164, "src": "340:24:1", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -777,11 +777,11 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 194, + "id": 190, "name": "completed", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 188, + "referencedDeclaration": 184, "src": "367:9:1", "typeDescriptions": { "typeIdentifier": "t_uint256", @@ -794,27 +794,27 @@ "typeString": "uint256" } }, - "id": 196, + "id": 192, "nodeType": "ExpressionStatement", "src": "340:36:1" } ] }, "documentation": null, - "id": 198, + "id": 194, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, - "id": 191, + "id": 187, "modifierName": { "argumentTypes": null, - "id": 190, + "id": 186, "name": "restricted", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 186, + "referencedDeclaration": 182, "src": "319:10:1", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", @@ -828,15 +828,15 @@ "name": "setCompleted", "nodeType": "FunctionDefinition", "parameters": { - "id": 189, + "id": 185, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 188, + "id": 184, "name": "completed", "nodeType": "VariableDeclaration", - "scope": 198, + "scope": 194, "src": "296:14:1", "stateVariable": false, "storageLocation": "default", @@ -845,7 +845,7 @@ "typeString": "uint256" }, "typeName": { - "id": 187, + "id": 183, "name": "uint", "nodeType": "ElementaryTypeName", "src": "296:4:1", @@ -861,19 +861,19 @@ "src": "295:16:1" }, "returnParameters": { - "id": 192, + "id": 188, "nodeType": "ParameterList", "parameters": [], "src": "330:0:1" }, - "scope": 199, + "scope": 195, "src": "274:109:1", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], - "scope": 200, + "scope": 196, "src": "34:351:1" } ], @@ -885,7 +885,7 @@ }, "networks": {}, "schemaVersion": "3.2.0", - "updatedAt": "2020-09-11T10:54:21.615Z", + "updatedAt": "2020-10-02T11:33:45.666Z", "devdoc": { "methods": {} }, diff --git a/artifacts/OPFCommunityFeeCollector.json b/artifacts/OPFCommunityFeeCollector.json index c750aef43..009ffff44 100644 --- a/artifacts/OPFCommunityFeeCollector.json +++ b/artifacts/OPFCommunityFeeCollector.json @@ -3296,7 +3296,7 @@ }, "networks": {}, "schemaVersion": "3.2.0", - "updatedAt": "2020-10-02T05:02:46.121Z", + "updatedAt": "2020-10-02T11:33:45.774Z", "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 381a92bfc..2dfcfcb4d 100644 --- a/artifacts/Ownable.json +++ b/artifacts/Ownable.json @@ -87,14 +87,14 @@ "absolutePath": "openzeppelin-solidity/contracts/ownership/Ownable.sol", "exportedSymbols": { "Ownable": [ - 6304 + 6063 ] }, - "id": 6305, + "id": 6064, "nodeType": "SourceUnit", "nodes": [ { - "id": 6188, + "id": 5947, "literals": [ "solidity", "^", @@ -102,16 +102,16 @@ ".0" ], "nodeType": "PragmaDirective", - "src": "0:23:17" + "src": "0:23:16" }, { "absolutePath": "openzeppelin-solidity/contracts/GSN/Context.sol", "file": "../GSN/Context.sol", - "id": 6189, + "id": 5948, "nodeType": "ImportDirective", - "scope": 6305, - "sourceUnit": 6000, - "src": "25:28:17", + "scope": 6064, + "sourceUnit": 5759, + "src": "25:28:16", "symbolAliases": [], "unitAlias": "" }, @@ -121,42 +121,42 @@ "arguments": null, "baseName": { "contractScope": null, - "id": 6190, + "id": 5949, "name": "Context", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 5999, - "src": "435:7:17", + "referencedDeclaration": 5758, + "src": "435:7:16", "typeDescriptions": { - "typeIdentifier": "t_contract$_Context_$5999", + "typeIdentifier": "t_contract$_Context_$5758", "typeString": "contract Context" } }, - "id": 6191, + "id": 5950, "nodeType": "InheritanceSpecifier", - "src": "435:7:17" + "src": "435:7:16" } ], "contractDependencies": [ - 5999 + 5758 ], "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": 6304, + "id": 6063, "linearizedBaseContracts": [ - 6304, - 5999 + 6063, + 5758 ], "name": "Ownable", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, - "id": 6193, + "id": 5952, "name": "_owner", "nodeType": "VariableDeclaration", - "scope": 6304, - "src": "449:22:17", + "scope": 6063, + "src": "449:22:16", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -164,10 +164,10 @@ "typeString": "address" }, "typeName": { - "id": 6192, + "id": 5951, "name": "address", "nodeType": "ElementaryTypeName", - "src": "449:7:17", + "src": "449:7:16", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -180,21 +180,21 @@ { "anonymous": false, "documentation": null, - "id": 6199, + "id": 5958, "name": "OwnershipTransferred", "nodeType": "EventDefinition", "parameters": { - "id": 6198, + "id": 5957, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6195, + "id": 5954, "indexed": true, "name": "previousOwner", "nodeType": "VariableDeclaration", - "scope": 6199, - "src": "505:29:17", + "scope": 5958, + "src": "505:29:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -202,10 +202,10 @@ "typeString": "address" }, "typeName": { - "id": 6194, + "id": 5953, "name": "address", "nodeType": "ElementaryTypeName", - "src": "505:7:17", + "src": "505:7:16", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -217,12 +217,12 @@ }, { "constant": false, - "id": 6197, + "id": 5956, "indexed": true, "name": "newOwner", "nodeType": "VariableDeclaration", - "scope": 6199, - "src": "536:24:17", + "scope": 5958, + "src": "536:24:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -230,10 +230,10 @@ "typeString": "address" }, "typeName": { - "id": 6196, + "id": 5955, "name": "address", "nodeType": "ElementaryTypeName", - "src": "536:7:17", + "src": "536:7:16", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -244,28 +244,28 @@ "visibility": "internal" } ], - "src": "504:57:17" + "src": "504:57:16" }, - "src": "478:84:17" + "src": "478:84:16" }, { "body": { - "id": 6218, + "id": 5977, "nodeType": "Block", - "src": "688:135:17", + "src": "688:135:16", "statements": [ { "assignments": [ - 6203 + 5962 ], "declarations": [ { "constant": false, - "id": 6203, + "id": 5962, "name": "msgSender", "nodeType": "VariableDeclaration", - "scope": 6218, - "src": "698:17:17", + "scope": 5977, + "src": "698:17:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -273,10 +273,10 @@ "typeString": "address" }, "typeName": { - "id": 6202, + "id": 5961, "name": "address", "nodeType": "ElementaryTypeName", - "src": "698:7:17", + "src": "698:7:16", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -287,24 +287,24 @@ "visibility": "internal" } ], - "id": 6206, + "id": 5965, "initialValue": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], - "id": 6204, + "id": 5963, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, - "src": "718:10:17", + "referencedDeclaration": 5746, + "src": "718:10:16", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6205, + "id": 5964, "isConstant": false, "isLValue": false, "isPure": false, @@ -312,31 +312,31 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "718:12:17", + "src": "718:12:16", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "nodeType": "VariableDeclarationStatement", - "src": "698:32:17" + "src": "698:32:16" }, { "expression": { "argumentTypes": null, - "id": 6209, + "id": 5968, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 6207, + "id": 5966, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6193, - "src": "740:6:17", + "referencedDeclaration": 5952, + "src": "740:6:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -346,26 +346,26 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 6208, + "id": 5967, "name": "msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6203, - "src": "749:9:17", + "referencedDeclaration": 5962, + "src": "749:9:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "740:18:17", + "src": "740:18:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "id": 6210, + "id": 5969, "nodeType": "ExpressionStatement", - "src": "740:18:17" + "src": "740:18:16" }, { "eventCall": { @@ -377,14 +377,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6213, + "id": 5972, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "802:1:17", + "src": "802:1:16", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -400,20 +400,20 @@ "typeString": "int_const 0" } ], - "id": 6212, + "id": 5971, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "794:7:17", + "src": "794:7:16", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 6214, + "id": 5973, "isConstant": false, "isLValue": false, "isPure": true, @@ -421,7 +421,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "794:10:17", + "src": "794:10:16", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -429,12 +429,12 @@ }, { "argumentTypes": null, - "id": 6215, + "id": 5974, "name": "msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6203, - "src": "806:9:17", + "referencedDeclaration": 5962, + "src": "806:9:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -452,18 +452,18 @@ "typeString": "address" } ], - "id": 6211, + "id": 5970, "name": "OwnershipTransferred", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6199, - "src": "773:20:17", + "referencedDeclaration": 5958, + "src": "773:20:16", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$", "typeString": "function (address,address)" } }, - "id": 6216, + "id": 5975, "isConstant": false, "isLValue": false, "isPure": false, @@ -471,94 +471,94 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "773:43:17", + "src": "773:43:16", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6217, + "id": 5976, "nodeType": "EmitStatement", - "src": "768:48:17" + "src": "768:48:16" } ] }, "documentation": "@dev Initializes the contract setting the deployer as the initial owner.", - "id": 6219, + "id": 5978, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { - "id": 6200, + "id": 5959, "nodeType": "ParameterList", "parameters": [], - "src": "676:2:17" + "src": "676:2:16" }, "returnParameters": { - "id": 6201, + "id": 5960, "nodeType": "ParameterList", "parameters": [], - "src": "688:0:17" + "src": "688:0:16" }, - "scope": 6304, - "src": "664:159:17", + "scope": 6063, + "src": "664:159:16", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { - "id": 6226, + "id": 5985, "nodeType": "Block", - "src": "946:30:17", + "src": "946:30:16", "statements": [ { "expression": { "argumentTypes": null, - "id": 6224, + "id": 5983, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6193, - "src": "963:6:17", + "referencedDeclaration": 5952, + "src": "963:6:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "functionReturnParameters": 6223, - "id": 6225, + "functionReturnParameters": 5982, + "id": 5984, "nodeType": "Return", - "src": "956:13:17" + "src": "956:13:16" } ] }, "documentation": "@dev Returns the address of the current owner.", - "id": 6227, + "id": 5986, "implemented": true, "kind": "function", "modifiers": [], "name": "owner", "nodeType": "FunctionDefinition", "parameters": { - "id": 6220, + "id": 5979, "nodeType": "ParameterList", "parameters": [], - "src": "913:2:17" + "src": "913:2:16" }, "returnParameters": { - "id": 6223, + "id": 5982, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6222, + "id": 5981, "name": "", "nodeType": "VariableDeclaration", - "scope": 6227, - "src": "937:7:17", + "scope": 5986, + "src": "937:7:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -566,10 +566,10 @@ "typeString": "address" }, "typeName": { - "id": 6221, + "id": 5980, "name": "address", "nodeType": "ElementaryTypeName", - "src": "937:7:17", + "src": "937:7:16", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -580,19 +580,19 @@ "visibility": "internal" } ], - "src": "936:9:17" + "src": "936:9:16" }, - "scope": 6304, - "src": "899:77:17", + "scope": 6063, + "src": "899:77:16", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { - "id": 6236, + "id": 5995, "nodeType": "Block", - "src": "1085:82:17", + "src": "1085:82:16", "statements": [ { "expression": { @@ -603,18 +603,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 6230, + "id": 5989, "name": "isOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6248, - "src": "1103:7:17", + "referencedDeclaration": 6007, + "src": "1103:7:16", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_bool_$", "typeString": "function () view returns (bool)" } }, - "id": 6231, + "id": 5990, "isConstant": false, "isLValue": false, "isPure": false, @@ -622,7 +622,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1103:9:17", + "src": "1103:9:16", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -631,14 +631,14 @@ { "argumentTypes": null, "hexValue": "4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572", - "id": 6232, + "id": 5991, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "1114:34:17", + "src": "1114:34:16", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe", @@ -658,21 +658,21 @@ "typeString": "literal_string \"Ownable: caller is not the owner\"" } ], - "id": 6229, + "id": 5988, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, - "src": "1095:7:17", + "referencedDeclaration": 6556, + "src": "1095:7:16", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6233, + "id": 5992, "isConstant": false, "isLValue": false, "isPure": false, @@ -680,41 +680,41 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1095:54:17", + "src": "1095:54:16", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6234, + "id": 5993, "nodeType": "ExpressionStatement", - "src": "1095:54:17" + "src": "1095:54:16" }, { - "id": 6235, + "id": 5994, "nodeType": "PlaceholderStatement", - "src": "1159:1:17" + "src": "1159:1:16" } ] }, "documentation": "@dev Throws if called by any account other than the owner.", - "id": 6237, + "id": 5996, "name": "onlyOwner", "nodeType": "ModifierDefinition", "parameters": { - "id": 6228, + "id": 5987, "nodeType": "ParameterList", "parameters": [], - "src": "1082:2:17" + "src": "1082:2:16" }, - "src": "1064:103:17", + "src": "1064:103:16", "visibility": "internal" }, { "body": { - "id": 6247, + "id": 6006, "nodeType": "Block", - "src": "1296:46:17", + "src": "1296:46:16", "statements": [ { "expression": { @@ -723,7 +723,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6245, + "id": 6004, "isConstant": false, "isLValue": false, "isPure": false, @@ -733,18 +733,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 6242, + "id": 6001, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, - "src": "1313:10:17", + "referencedDeclaration": 5746, + "src": "1313:10:16", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6243, + "id": 6002, "isConstant": false, "isLValue": false, "isPure": false, @@ -752,7 +752,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1313:12:17", + "src": "1313:12:16", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -762,54 +762,54 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 6244, + "id": 6003, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6193, - "src": "1329:6:17", + "referencedDeclaration": 5952, + "src": "1329:6:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "1313:22:17", + "src": "1313:22:16", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, - "functionReturnParameters": 6241, - "id": 6246, + "functionReturnParameters": 6000, + "id": 6005, "nodeType": "Return", - "src": "1306:29:17" + "src": "1306:29:16" } ] }, "documentation": "@dev Returns true if the caller is the current owner.", - "id": 6248, + "id": 6007, "implemented": true, "kind": "function", "modifiers": [], "name": "isOwner", "nodeType": "FunctionDefinition", "parameters": { - "id": 6238, + "id": 5997, "nodeType": "ParameterList", "parameters": [], - "src": "1266:2:17" + "src": "1266:2:16" }, "returnParameters": { - "id": 6241, + "id": 6000, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6240, + "id": 5999, "name": "", "nodeType": "VariableDeclaration", - "scope": 6248, - "src": "1290:4:17", + "scope": 6007, + "src": "1290:4:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -817,10 +817,10 @@ "typeString": "bool" }, "typeName": { - "id": 6239, + "id": 5998, "name": "bool", "nodeType": "ElementaryTypeName", - "src": "1290:4:17", + "src": "1290:4:16", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -830,19 +830,19 @@ "visibility": "internal" } ], - "src": "1289:6:17" + "src": "1289:6:16" }, - "scope": 6304, - "src": "1250:92:17", + "scope": 6063, + "src": "1250:92:16", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { - "id": 6266, + "id": 6025, "nodeType": "Block", - "src": "1730:91:17", + "src": "1730:91:16", "statements": [ { "eventCall": { @@ -850,12 +850,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6254, + "id": 6013, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6193, - "src": "1766:6:17", + "referencedDeclaration": 5952, + "src": "1766:6:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -867,14 +867,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6256, + "id": 6015, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "1782:1:17", + "src": "1782:1:16", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -890,20 +890,20 @@ "typeString": "int_const 0" } ], - "id": 6255, + "id": 6014, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "1774:7:17", + "src": "1774:7:16", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 6257, + "id": 6016, "isConstant": false, "isLValue": false, "isPure": true, @@ -911,7 +911,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1774:10:17", + "src": "1774:10:16", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -929,18 +929,18 @@ "typeString": "address payable" } ], - "id": 6253, + "id": 6012, "name": "OwnershipTransferred", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6199, - "src": "1745:20:17", + "referencedDeclaration": 5958, + "src": "1745:20:16", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$", "typeString": "function (address,address)" } }, - "id": 6258, + "id": 6017, "isConstant": false, "isLValue": false, "isPure": false, @@ -948,32 +948,32 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1745:40:17", + "src": "1745:40:16", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6259, + "id": 6018, "nodeType": "EmitStatement", - "src": "1740:45:17" + "src": "1740:45:16" }, { "expression": { "argumentTypes": null, - "id": 6264, + "id": 6023, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 6260, + "id": 6019, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6193, - "src": "1795:6:17", + "referencedDeclaration": 5952, + "src": "1795:6:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -987,14 +987,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6262, + "id": 6021, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "1812:1:17", + "src": "1812:1:16", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -1010,20 +1010,20 @@ "typeString": "int_const 0" } ], - "id": 6261, + "id": 6020, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "1804:7:17", + "src": "1804:7:16", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 6263, + "id": 6022, "isConstant": false, "isLValue": false, "isPure": true, @@ -1031,74 +1031,74 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1804:10:17", + "src": "1804:10:16", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, - "src": "1795:19:17", + "src": "1795:19:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "id": 6265, + "id": 6024, "nodeType": "ExpressionStatement", - "src": "1795:19:17" + "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": 6267, + "id": 6026, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, - "id": 6251, + "id": 6010, "modifierName": { "argumentTypes": null, - "id": 6250, + "id": 6009, "name": "onlyOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6237, - "src": "1720:9:17", + "referencedDeclaration": 5996, + "src": "1720:9:16", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "1720:9:17" + "src": "1720:9:16" } ], "name": "renounceOwnership", "nodeType": "FunctionDefinition", "parameters": { - "id": 6249, + "id": 6008, "nodeType": "ParameterList", "parameters": [], - "src": "1710:2:17" + "src": "1710:2:16" }, "returnParameters": { - "id": 6252, + "id": 6011, "nodeType": "ParameterList", "parameters": [], - "src": "1730:0:17" + "src": "1730:0:16" }, - "scope": 6304, - "src": "1684:137:17", + "scope": 6063, + "src": "1684:137:16", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 6278, + "id": 6037, "nodeType": "Block", - "src": "2032:45:17", + "src": "2032:45:16", "statements": [ { "expression": { @@ -1106,12 +1106,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6275, + "id": 6034, "name": "newOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6269, - "src": "2061:8:17", + "referencedDeclaration": 6028, + "src": "2061:8:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -1125,18 +1125,18 @@ "typeString": "address" } ], - "id": 6274, + "id": 6033, "name": "_transferOwnership", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6303, - "src": "2042:18:17", + "referencedDeclaration": 6062, + "src": "2042:18:16", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$", "typeString": "function (address)" } }, - "id": 6276, + "id": 6035, "isConstant": false, "isLValue": false, "isPure": false, @@ -1144,56 +1144,56 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2042:28:17", + "src": "2042:28:16", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6277, + "id": 6036, "nodeType": "ExpressionStatement", - "src": "2042:28:17" + "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": 6279, + "id": 6038, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, - "id": 6272, + "id": 6031, "modifierName": { "argumentTypes": null, - "id": 6271, + "id": 6030, "name": "onlyOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6237, - "src": "2022:9:17", + "referencedDeclaration": 5996, + "src": "2022:9:16", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "2022:9:17" + "src": "2022:9:16" } ], "name": "transferOwnership", "nodeType": "FunctionDefinition", "parameters": { - "id": 6270, + "id": 6029, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6269, + "id": 6028, "name": "newOwner", "nodeType": "VariableDeclaration", - "scope": 6279, - "src": "1997:16:17", + "scope": 6038, + "src": "1997:16:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1201,10 +1201,10 @@ "typeString": "address" }, "typeName": { - "id": 6268, + "id": 6027, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1997:7:17", + "src": "1997:7:16", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1215,25 +1215,25 @@ "visibility": "internal" } ], - "src": "1996:18:17" + "src": "1996:18:16" }, "returnParameters": { - "id": 6273, + "id": 6032, "nodeType": "ParameterList", "parameters": [], - "src": "2032:0:17" + "src": "2032:0:16" }, - "scope": 6304, - "src": "1970:107:17", + "scope": 6063, + "src": "1970:107:16", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 6302, + "id": 6061, "nodeType": "Block", - "src": "2233:170:17", + "src": "2233:170:16", "statements": [ { "expression": { @@ -1245,19 +1245,19 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6289, + "id": 6048, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6285, + "id": 6044, "name": "newOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6281, - "src": "2251:8:17", + "referencedDeclaration": 6040, + "src": "2251:8:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -1271,14 +1271,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6287, + "id": 6046, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "2271:1:17", + "src": "2271:1:16", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -1294,20 +1294,20 @@ "typeString": "int_const 0" } ], - "id": 6286, + "id": 6045, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "2263:7:17", + "src": "2263:7:16", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 6288, + "id": 6047, "isConstant": false, "isLValue": false, "isPure": true, @@ -1315,13 +1315,13 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2263:10:17", + "src": "2263:10:16", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, - "src": "2251:22:17", + "src": "2251:22:16", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -1330,14 +1330,14 @@ { "argumentTypes": null, "hexValue": "4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373", - "id": 6290, + "id": 6049, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "2275:40:17", + "src": "2275:40:16", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe", @@ -1357,21 +1357,21 @@ "typeString": "literal_string \"Ownable: new owner is the zero address\"" } ], - "id": 6284, + "id": 6043, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, - "src": "2243:7:17", + "referencedDeclaration": 6556, + "src": "2243:7:16", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6291, + "id": 6050, "isConstant": false, "isLValue": false, "isPure": false, @@ -1379,15 +1379,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2243:73:17", + "src": "2243:73:16", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6292, + "id": 6051, "nodeType": "ExpressionStatement", - "src": "2243:73:17" + "src": "2243:73:16" }, { "eventCall": { @@ -1395,12 +1395,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6294, + "id": 6053, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6193, - "src": "2352:6:17", + "referencedDeclaration": 5952, + "src": "2352:6:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -1408,12 +1408,12 @@ }, { "argumentTypes": null, - "id": 6295, + "id": 6054, "name": "newOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6281, - "src": "2360:8:17", + "referencedDeclaration": 6040, + "src": "2360:8:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -1431,18 +1431,18 @@ "typeString": "address" } ], - "id": 6293, + "id": 6052, "name": "OwnershipTransferred", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6199, - "src": "2331:20:17", + "referencedDeclaration": 5958, + "src": "2331:20:16", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$", "typeString": "function (address,address)" } }, - "id": 6296, + "id": 6055, "isConstant": false, "isLValue": false, "isPure": false, @@ -1450,32 +1450,32 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2331:38:17", + "src": "2331:38:16", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6297, + "id": 6056, "nodeType": "EmitStatement", - "src": "2326:43:17" + "src": "2326:43:16" }, { "expression": { "argumentTypes": null, - "id": 6300, + "id": 6059, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 6298, + "id": 6057, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6193, - "src": "2379:6:17", + "referencedDeclaration": 5952, + "src": "2379:6:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -1485,47 +1485,47 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 6299, + "id": 6058, "name": "newOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6281, - "src": "2388:8:17", + "referencedDeclaration": 6040, + "src": "2388:8:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "2379:17:17", + "src": "2379:17:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "id": 6301, + "id": 6060, "nodeType": "ExpressionStatement", - "src": "2379:17:17" + "src": "2379:17:16" } ] }, "documentation": "@dev Transfers ownership of the contract to a new account (`newOwner`).", - "id": 6303, + "id": 6062, "implemented": true, "kind": "function", "modifiers": [], "name": "_transferOwnership", "nodeType": "FunctionDefinition", "parameters": { - "id": 6282, + "id": 6041, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6281, + "id": 6040, "name": "newOwner", "nodeType": "VariableDeclaration", - "scope": 6303, - "src": "2206:16:17", + "scope": 6062, + "src": "2206:16:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1533,10 +1533,10 @@ "typeString": "address" }, "typeName": { - "id": 6280, + "id": 6039, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2206:7:17", + "src": "2206:7:16", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1547,39 +1547,39 @@ "visibility": "internal" } ], - "src": "2205:18:17" + "src": "2205:18:16" }, "returnParameters": { - "id": 6283, + "id": 6042, "nodeType": "ParameterList", "parameters": [], - "src": "2233:0:17" + "src": "2233:0:16" }, - "scope": 6304, - "src": "2178:225:17", + "scope": 6063, + "src": "2178:225:16", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" } ], - "scope": 6305, - "src": "415:1990:17" + "scope": 6064, + "src": "415:1990:16" } ], - "src": "0:2406:17" + "src": "0:2406:16" }, "legacyAST": { "absolutePath": "openzeppelin-solidity/contracts/ownership/Ownable.sol", "exportedSymbols": { "Ownable": [ - 6304 + 6063 ] }, - "id": 6305, + "id": 6064, "nodeType": "SourceUnit", "nodes": [ { - "id": 6188, + "id": 5947, "literals": [ "solidity", "^", @@ -1587,16 +1587,16 @@ ".0" ], "nodeType": "PragmaDirective", - "src": "0:23:17" + "src": "0:23:16" }, { "absolutePath": "openzeppelin-solidity/contracts/GSN/Context.sol", "file": "../GSN/Context.sol", - "id": 6189, + "id": 5948, "nodeType": "ImportDirective", - "scope": 6305, - "sourceUnit": 6000, - "src": "25:28:17", + "scope": 6064, + "sourceUnit": 5759, + "src": "25:28:16", "symbolAliases": [], "unitAlias": "" }, @@ -1606,42 +1606,42 @@ "arguments": null, "baseName": { "contractScope": null, - "id": 6190, + "id": 5949, "name": "Context", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 5999, - "src": "435:7:17", + "referencedDeclaration": 5758, + "src": "435:7:16", "typeDescriptions": { - "typeIdentifier": "t_contract$_Context_$5999", + "typeIdentifier": "t_contract$_Context_$5758", "typeString": "contract Context" } }, - "id": 6191, + "id": 5950, "nodeType": "InheritanceSpecifier", - "src": "435:7:17" + "src": "435:7:16" } ], "contractDependencies": [ - 5999 + 5758 ], "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": 6304, + "id": 6063, "linearizedBaseContracts": [ - 6304, - 5999 + 6063, + 5758 ], "name": "Ownable", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, - "id": 6193, + "id": 5952, "name": "_owner", "nodeType": "VariableDeclaration", - "scope": 6304, - "src": "449:22:17", + "scope": 6063, + "src": "449:22:16", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -1649,10 +1649,10 @@ "typeString": "address" }, "typeName": { - "id": 6192, + "id": 5951, "name": "address", "nodeType": "ElementaryTypeName", - "src": "449:7:17", + "src": "449:7:16", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1665,21 +1665,21 @@ { "anonymous": false, "documentation": null, - "id": 6199, + "id": 5958, "name": "OwnershipTransferred", "nodeType": "EventDefinition", "parameters": { - "id": 6198, + "id": 5957, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6195, + "id": 5954, "indexed": true, "name": "previousOwner", "nodeType": "VariableDeclaration", - "scope": 6199, - "src": "505:29:17", + "scope": 5958, + "src": "505:29:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1687,10 +1687,10 @@ "typeString": "address" }, "typeName": { - "id": 6194, + "id": 5953, "name": "address", "nodeType": "ElementaryTypeName", - "src": "505:7:17", + "src": "505:7:16", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1702,12 +1702,12 @@ }, { "constant": false, - "id": 6197, + "id": 5956, "indexed": true, "name": "newOwner", "nodeType": "VariableDeclaration", - "scope": 6199, - "src": "536:24:17", + "scope": 5958, + "src": "536:24:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1715,10 +1715,10 @@ "typeString": "address" }, "typeName": { - "id": 6196, + "id": 5955, "name": "address", "nodeType": "ElementaryTypeName", - "src": "536:7:17", + "src": "536:7:16", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1729,28 +1729,28 @@ "visibility": "internal" } ], - "src": "504:57:17" + "src": "504:57:16" }, - "src": "478:84:17" + "src": "478:84:16" }, { "body": { - "id": 6218, + "id": 5977, "nodeType": "Block", - "src": "688:135:17", + "src": "688:135:16", "statements": [ { "assignments": [ - 6203 + 5962 ], "declarations": [ { "constant": false, - "id": 6203, + "id": 5962, "name": "msgSender", "nodeType": "VariableDeclaration", - "scope": 6218, - "src": "698:17:17", + "scope": 5977, + "src": "698:17:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1758,10 +1758,10 @@ "typeString": "address" }, "typeName": { - "id": 6202, + "id": 5961, "name": "address", "nodeType": "ElementaryTypeName", - "src": "698:7:17", + "src": "698:7:16", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -1772,24 +1772,24 @@ "visibility": "internal" } ], - "id": 6206, + "id": 5965, "initialValue": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], - "id": 6204, + "id": 5963, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, - "src": "718:10:17", + "referencedDeclaration": 5746, + "src": "718:10:16", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6205, + "id": 5964, "isConstant": false, "isLValue": false, "isPure": false, @@ -1797,31 +1797,31 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "718:12:17", + "src": "718:12:16", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "nodeType": "VariableDeclarationStatement", - "src": "698:32:17" + "src": "698:32:16" }, { "expression": { "argumentTypes": null, - "id": 6209, + "id": 5968, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 6207, + "id": 5966, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6193, - "src": "740:6:17", + "referencedDeclaration": 5952, + "src": "740:6:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -1831,26 +1831,26 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 6208, + "id": 5967, "name": "msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6203, - "src": "749:9:17", + "referencedDeclaration": 5962, + "src": "749:9:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "740:18:17", + "src": "740:18:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "id": 6210, + "id": 5969, "nodeType": "ExpressionStatement", - "src": "740:18:17" + "src": "740:18:16" }, { "eventCall": { @@ -1862,14 +1862,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6213, + "id": 5972, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "802:1:17", + "src": "802:1:16", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -1885,20 +1885,20 @@ "typeString": "int_const 0" } ], - "id": 6212, + "id": 5971, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "794:7:17", + "src": "794:7:16", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 6214, + "id": 5973, "isConstant": false, "isLValue": false, "isPure": true, @@ -1906,7 +1906,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "794:10:17", + "src": "794:10:16", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -1914,12 +1914,12 @@ }, { "argumentTypes": null, - "id": 6215, + "id": 5974, "name": "msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6203, - "src": "806:9:17", + "referencedDeclaration": 5962, + "src": "806:9:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -1937,18 +1937,18 @@ "typeString": "address" } ], - "id": 6211, + "id": 5970, "name": "OwnershipTransferred", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6199, - "src": "773:20:17", + "referencedDeclaration": 5958, + "src": "773:20:16", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$", "typeString": "function (address,address)" } }, - "id": 6216, + "id": 5975, "isConstant": false, "isLValue": false, "isPure": false, @@ -1956,94 +1956,94 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "773:43:17", + "src": "773:43:16", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6217, + "id": 5976, "nodeType": "EmitStatement", - "src": "768:48:17" + "src": "768:48:16" } ] }, "documentation": "@dev Initializes the contract setting the deployer as the initial owner.", - "id": 6219, + "id": 5978, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { - "id": 6200, + "id": 5959, "nodeType": "ParameterList", "parameters": [], - "src": "676:2:17" + "src": "676:2:16" }, "returnParameters": { - "id": 6201, + "id": 5960, "nodeType": "ParameterList", "parameters": [], - "src": "688:0:17" + "src": "688:0:16" }, - "scope": 6304, - "src": "664:159:17", + "scope": 6063, + "src": "664:159:16", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { - "id": 6226, + "id": 5985, "nodeType": "Block", - "src": "946:30:17", + "src": "946:30:16", "statements": [ { "expression": { "argumentTypes": null, - "id": 6224, + "id": 5983, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6193, - "src": "963:6:17", + "referencedDeclaration": 5952, + "src": "963:6:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "functionReturnParameters": 6223, - "id": 6225, + "functionReturnParameters": 5982, + "id": 5984, "nodeType": "Return", - "src": "956:13:17" + "src": "956:13:16" } ] }, "documentation": "@dev Returns the address of the current owner.", - "id": 6227, + "id": 5986, "implemented": true, "kind": "function", "modifiers": [], "name": "owner", "nodeType": "FunctionDefinition", "parameters": { - "id": 6220, + "id": 5979, "nodeType": "ParameterList", "parameters": [], - "src": "913:2:17" + "src": "913:2:16" }, "returnParameters": { - "id": 6223, + "id": 5982, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6222, + "id": 5981, "name": "", "nodeType": "VariableDeclaration", - "scope": 6227, - "src": "937:7:17", + "scope": 5986, + "src": "937:7:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2051,10 +2051,10 @@ "typeString": "address" }, "typeName": { - "id": 6221, + "id": 5980, "name": "address", "nodeType": "ElementaryTypeName", - "src": "937:7:17", + "src": "937:7:16", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2065,19 +2065,19 @@ "visibility": "internal" } ], - "src": "936:9:17" + "src": "936:9:16" }, - "scope": 6304, - "src": "899:77:17", + "scope": 6063, + "src": "899:77:16", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { - "id": 6236, + "id": 5995, "nodeType": "Block", - "src": "1085:82:17", + "src": "1085:82:16", "statements": [ { "expression": { @@ -2088,18 +2088,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 6230, + "id": 5989, "name": "isOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6248, - "src": "1103:7:17", + "referencedDeclaration": 6007, + "src": "1103:7:16", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_bool_$", "typeString": "function () view returns (bool)" } }, - "id": 6231, + "id": 5990, "isConstant": false, "isLValue": false, "isPure": false, @@ -2107,7 +2107,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1103:9:17", + "src": "1103:9:16", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -2116,14 +2116,14 @@ { "argumentTypes": null, "hexValue": "4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572", - "id": 6232, + "id": 5991, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "1114:34:17", + "src": "1114:34:16", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe", @@ -2143,21 +2143,21 @@ "typeString": "literal_string \"Ownable: caller is not the owner\"" } ], - "id": 6229, + "id": 5988, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, - "src": "1095:7:17", + "referencedDeclaration": 6556, + "src": "1095:7:16", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6233, + "id": 5992, "isConstant": false, "isLValue": false, "isPure": false, @@ -2165,41 +2165,41 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1095:54:17", + "src": "1095:54:16", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6234, + "id": 5993, "nodeType": "ExpressionStatement", - "src": "1095:54:17" + "src": "1095:54:16" }, { - "id": 6235, + "id": 5994, "nodeType": "PlaceholderStatement", - "src": "1159:1:17" + "src": "1159:1:16" } ] }, "documentation": "@dev Throws if called by any account other than the owner.", - "id": 6237, + "id": 5996, "name": "onlyOwner", "nodeType": "ModifierDefinition", "parameters": { - "id": 6228, + "id": 5987, "nodeType": "ParameterList", "parameters": [], - "src": "1082:2:17" + "src": "1082:2:16" }, - "src": "1064:103:17", + "src": "1064:103:16", "visibility": "internal" }, { "body": { - "id": 6247, + "id": 6006, "nodeType": "Block", - "src": "1296:46:17", + "src": "1296:46:16", "statements": [ { "expression": { @@ -2208,7 +2208,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6245, + "id": 6004, "isConstant": false, "isLValue": false, "isPure": false, @@ -2218,18 +2218,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 6242, + "id": 6001, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 5987, - "src": "1313:10:17", + "referencedDeclaration": 5746, + "src": "1313:10:16", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_payable_$", "typeString": "function () view returns (address payable)" } }, - "id": 6243, + "id": 6002, "isConstant": false, "isLValue": false, "isPure": false, @@ -2237,7 +2237,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1313:12:17", + "src": "1313:12:16", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -2247,54 +2247,54 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 6244, + "id": 6003, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6193, - "src": "1329:6:17", + "referencedDeclaration": 5952, + "src": "1329:6:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "1313:22:17", + "src": "1313:22:16", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, - "functionReturnParameters": 6241, - "id": 6246, + "functionReturnParameters": 6000, + "id": 6005, "nodeType": "Return", - "src": "1306:29:17" + "src": "1306:29:16" } ] }, "documentation": "@dev Returns true if the caller is the current owner.", - "id": 6248, + "id": 6007, "implemented": true, "kind": "function", "modifiers": [], "name": "isOwner", "nodeType": "FunctionDefinition", "parameters": { - "id": 6238, + "id": 5997, "nodeType": "ParameterList", "parameters": [], - "src": "1266:2:17" + "src": "1266:2:16" }, "returnParameters": { - "id": 6241, + "id": 6000, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6240, + "id": 5999, "name": "", "nodeType": "VariableDeclaration", - "scope": 6248, - "src": "1290:4:17", + "scope": 6007, + "src": "1290:4:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2302,10 +2302,10 @@ "typeString": "bool" }, "typeName": { - "id": 6239, + "id": 5998, "name": "bool", "nodeType": "ElementaryTypeName", - "src": "1290:4:17", + "src": "1290:4:16", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -2315,19 +2315,19 @@ "visibility": "internal" } ], - "src": "1289:6:17" + "src": "1289:6:16" }, - "scope": 6304, - "src": "1250:92:17", + "scope": 6063, + "src": "1250:92:16", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { - "id": 6266, + "id": 6025, "nodeType": "Block", - "src": "1730:91:17", + "src": "1730:91:16", "statements": [ { "eventCall": { @@ -2335,12 +2335,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6254, + "id": 6013, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6193, - "src": "1766:6:17", + "referencedDeclaration": 5952, + "src": "1766:6:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -2352,14 +2352,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6256, + "id": 6015, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "1782:1:17", + "src": "1782:1:16", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -2375,20 +2375,20 @@ "typeString": "int_const 0" } ], - "id": 6255, + "id": 6014, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "1774:7:17", + "src": "1774:7:16", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 6257, + "id": 6016, "isConstant": false, "isLValue": false, "isPure": true, @@ -2396,7 +2396,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1774:10:17", + "src": "1774:10:16", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" @@ -2414,18 +2414,18 @@ "typeString": "address payable" } ], - "id": 6253, + "id": 6012, "name": "OwnershipTransferred", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6199, - "src": "1745:20:17", + "referencedDeclaration": 5958, + "src": "1745:20:16", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$", "typeString": "function (address,address)" } }, - "id": 6258, + "id": 6017, "isConstant": false, "isLValue": false, "isPure": false, @@ -2433,32 +2433,32 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1745:40:17", + "src": "1745:40:16", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6259, + "id": 6018, "nodeType": "EmitStatement", - "src": "1740:45:17" + "src": "1740:45:16" }, { "expression": { "argumentTypes": null, - "id": 6264, + "id": 6023, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 6260, + "id": 6019, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6193, - "src": "1795:6:17", + "referencedDeclaration": 5952, + "src": "1795:6:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -2472,14 +2472,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6262, + "id": 6021, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "1812:1:17", + "src": "1812:1:16", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -2495,20 +2495,20 @@ "typeString": "int_const 0" } ], - "id": 6261, + "id": 6020, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "1804:7:17", + "src": "1804:7:16", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 6263, + "id": 6022, "isConstant": false, "isLValue": false, "isPure": true, @@ -2516,74 +2516,74 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1804:10:17", + "src": "1804:10:16", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, - "src": "1795:19:17", + "src": "1795:19:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "id": 6265, + "id": 6024, "nodeType": "ExpressionStatement", - "src": "1795:19:17" + "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": 6267, + "id": 6026, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, - "id": 6251, + "id": 6010, "modifierName": { "argumentTypes": null, - "id": 6250, + "id": 6009, "name": "onlyOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6237, - "src": "1720:9:17", + "referencedDeclaration": 5996, + "src": "1720:9:16", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "1720:9:17" + "src": "1720:9:16" } ], "name": "renounceOwnership", "nodeType": "FunctionDefinition", "parameters": { - "id": 6249, + "id": 6008, "nodeType": "ParameterList", "parameters": [], - "src": "1710:2:17" + "src": "1710:2:16" }, "returnParameters": { - "id": 6252, + "id": 6011, "nodeType": "ParameterList", "parameters": [], - "src": "1730:0:17" + "src": "1730:0:16" }, - "scope": 6304, - "src": "1684:137:17", + "scope": 6063, + "src": "1684:137:16", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 6278, + "id": 6037, "nodeType": "Block", - "src": "2032:45:17", + "src": "2032:45:16", "statements": [ { "expression": { @@ -2591,12 +2591,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6275, + "id": 6034, "name": "newOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6269, - "src": "2061:8:17", + "referencedDeclaration": 6028, + "src": "2061:8:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -2610,18 +2610,18 @@ "typeString": "address" } ], - "id": 6274, + "id": 6033, "name": "_transferOwnership", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6303, - "src": "2042:18:17", + "referencedDeclaration": 6062, + "src": "2042:18:16", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$", "typeString": "function (address)" } }, - "id": 6276, + "id": 6035, "isConstant": false, "isLValue": false, "isPure": false, @@ -2629,56 +2629,56 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2042:28:17", + "src": "2042:28:16", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6277, + "id": 6036, "nodeType": "ExpressionStatement", - "src": "2042:28:17" + "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": 6279, + "id": 6038, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, - "id": 6272, + "id": 6031, "modifierName": { "argumentTypes": null, - "id": 6271, + "id": 6030, "name": "onlyOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6237, - "src": "2022:9:17", + "referencedDeclaration": 5996, + "src": "2022:9:16", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "2022:9:17" + "src": "2022:9:16" } ], "name": "transferOwnership", "nodeType": "FunctionDefinition", "parameters": { - "id": 6270, + "id": 6029, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6269, + "id": 6028, "name": "newOwner", "nodeType": "VariableDeclaration", - "scope": 6279, - "src": "1997:16:17", + "scope": 6038, + "src": "1997:16:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2686,10 +2686,10 @@ "typeString": "address" }, "typeName": { - "id": 6268, + "id": 6027, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1997:7:17", + "src": "1997:7:16", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -2700,25 +2700,25 @@ "visibility": "internal" } ], - "src": "1996:18:17" + "src": "1996:18:16" }, "returnParameters": { - "id": 6273, + "id": 6032, "nodeType": "ParameterList", "parameters": [], - "src": "2032:0:17" + "src": "2032:0:16" }, - "scope": 6304, - "src": "1970:107:17", + "scope": 6063, + "src": "1970:107:16", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 6302, + "id": 6061, "nodeType": "Block", - "src": "2233:170:17", + "src": "2233:170:16", "statements": [ { "expression": { @@ -2730,19 +2730,19 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 6289, + "id": 6048, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6285, + "id": 6044, "name": "newOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6281, - "src": "2251:8:17", + "referencedDeclaration": 6040, + "src": "2251:8:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -2756,14 +2756,14 @@ { "argumentTypes": null, "hexValue": "30", - "id": 6287, + "id": 6046, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "2271:1:17", + "src": "2271:1:16", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -2779,20 +2779,20 @@ "typeString": "int_const 0" } ], - "id": 6286, + "id": 6045, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", - "src": "2263:7:17", + "src": "2263:7:16", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, - "id": 6288, + "id": 6047, "isConstant": false, "isLValue": false, "isPure": true, @@ -2800,13 +2800,13 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2263:10:17", + "src": "2263:10:16", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, - "src": "2251:22:17", + "src": "2251:22:16", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -2815,14 +2815,14 @@ { "argumentTypes": null, "hexValue": "4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373", - "id": 6290, + "id": 6049, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "2275:40:17", + "src": "2275:40:16", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe", @@ -2842,21 +2842,21 @@ "typeString": "literal_string \"Ownable: new owner is the zero address\"" } ], - "id": 6284, + "id": 6043, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, - "src": "2243:7:17", + "referencedDeclaration": 6556, + "src": "2243:7:16", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6291, + "id": 6050, "isConstant": false, "isLValue": false, "isPure": false, @@ -2864,15 +2864,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2243:73:17", + "src": "2243:73:16", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6292, + "id": 6051, "nodeType": "ExpressionStatement", - "src": "2243:73:17" + "src": "2243:73:16" }, { "eventCall": { @@ -2880,12 +2880,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6294, + "id": 6053, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6193, - "src": "2352:6:17", + "referencedDeclaration": 5952, + "src": "2352:6:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -2893,12 +2893,12 @@ }, { "argumentTypes": null, - "id": 6295, + "id": 6054, "name": "newOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6281, - "src": "2360:8:17", + "referencedDeclaration": 6040, + "src": "2360:8:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -2916,18 +2916,18 @@ "typeString": "address" } ], - "id": 6293, + "id": 6052, "name": "OwnershipTransferred", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6199, - "src": "2331:20:17", + "referencedDeclaration": 5958, + "src": "2331:20:16", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$", "typeString": "function (address,address)" } }, - "id": 6296, + "id": 6055, "isConstant": false, "isLValue": false, "isPure": false, @@ -2935,32 +2935,32 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2331:38:17", + "src": "2331:38:16", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6297, + "id": 6056, "nodeType": "EmitStatement", - "src": "2326:43:17" + "src": "2326:43:16" }, { "expression": { "argumentTypes": null, - "id": 6300, + "id": 6059, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 6298, + "id": 6057, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6193, - "src": "2379:6:17", + "referencedDeclaration": 5952, + "src": "2379:6:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -2970,47 +2970,47 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 6299, + "id": 6058, "name": "newOwner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6281, - "src": "2388:8:17", + "referencedDeclaration": 6040, + "src": "2388:8:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "2379:17:17", + "src": "2379:17:16", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "id": 6301, + "id": 6060, "nodeType": "ExpressionStatement", - "src": "2379:17:17" + "src": "2379:17:16" } ] }, "documentation": "@dev Transfers ownership of the contract to a new account (`newOwner`).", - "id": 6303, + "id": 6062, "implemented": true, "kind": "function", "modifiers": [], "name": "_transferOwnership", "nodeType": "FunctionDefinition", "parameters": { - "id": 6282, + "id": 6041, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6281, + "id": 6040, "name": "newOwner", "nodeType": "VariableDeclaration", - "scope": 6303, - "src": "2206:16:17", + "scope": 6062, + "src": "2206:16:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3018,10 +3018,10 @@ "typeString": "address" }, "typeName": { - "id": 6280, + "id": 6039, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2206:7:17", + "src": "2206:7:16", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", @@ -3032,26 +3032,26 @@ "visibility": "internal" } ], - "src": "2205:18:17" + "src": "2205:18:16" }, "returnParameters": { - "id": 6283, + "id": 6042, "nodeType": "ParameterList", "parameters": [], - "src": "2233:0:17" + "src": "2233:0:16" }, - "scope": 6304, - "src": "2178:225:17", + "scope": 6063, + "src": "2178:225:16", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" } ], - "scope": 6305, - "src": "415:1990:17" + "scope": 6064, + "src": "415:1990:16" } ], - "src": "0:2406:17" + "src": "0:2406:16" }, "compiler": { "name": "solc", @@ -3059,7 +3059,7 @@ }, "networks": {}, "schemaVersion": "3.2.0", - "updatedAt": "2020-09-11T10:54:21.711Z", + "updatedAt": "2020-10-02T11:33:45.800Z", "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 318532450..1493b6f02 100644 --- a/artifacts/SafeMath.json +++ b/artifacts/SafeMath.json @@ -4,22 +4,22 @@ "metadata": "{\"compiler\":{\"version\":\"0.5.7+commit.6da8b019\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"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\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"openzeppelin-solidity/contracts/math/SafeMath.sol\":\"SafeMath\"},\"evmVersion\":\"byzantium\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"openzeppelin-solidity/contracts/math/SafeMath.sol\":{\"keccak256\":\"0x640b6dee7a4b830bdfd52b5031a07fc2b12209f5b2e29e5d364a7d37f69d8076\",\"urls\":[\"bzzr://292843005e754e752644f767477ec5ad7a1ffc91ddb18c38b8079c62f3993cad\"]}},\"version\":1}", "bytecode": "0x604c6023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea165627a7a72305820a16d9aa92e36dc4b79f550941cc4825102d469916f8ceb7162b50f0efb0a07120029", "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea165627a7a72305820a16d9aa92e36dc4b79f550941cc4825102d469916f8ceb7162b50f0efb0a07120029", - "sourceMap": "589:4708:16:-;;132:2:-1;166:7;155:9;146:7;137:37;255:7;249:14;246:1;241:23;235:4;232:33;222:2;;269:9;222:2;293:9;290:1;283:20;323:4;314:7;306:22;347:7;338;331:24", - "deployedSourceMap": "589:4708:16:-;;;;;;;;", + "sourceMap": "589:4708:15:-;;132:2:-1;166:7;155:9;146:7;137:37;255:7;249:14;246:1;241:23;235:4;232:33;222:2;;269:9;222:2;293:9;290:1;283:20;323:4;314:7;306:22;347:7;338;331:24", + "deployedSourceMap": "589:4708:15:-;;;;;;;;", "source": "pragma solidity ^0.5.0;\n\n/**\n * @dev Wrappers over Solidity's arithmetic operations with added overflow\n * checks.\n *\n * Arithmetic operations in Solidity wrap on overflow. This can easily result\n * in bugs, because programmers usually assume that an overflow raises an\n * error, which is the standard behavior in high level programming languages.\n * `SafeMath` restores this intuition by reverting the transaction when an\n * operation overflows.\n *\n * Using this library instead of the unchecked operations eliminates an entire\n * class of bugs, so it's recommended to use it always.\n */\nlibrary SafeMath {\n /**\n * @dev Returns the addition of two unsigned integers, reverting on\n * overflow.\n *\n * Counterpart to Solidity's `+` operator.\n *\n * Requirements:\n * - Addition cannot overflow.\n */\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\n uint256 c = a + b;\n require(c >= a, \"SafeMath: addition overflow\");\n\n return c;\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, reverting on\n * overflow (when the result is negative).\n *\n * Counterpart to Solidity's `-` operator.\n *\n * Requirements:\n * - Subtraction cannot overflow.\n */\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\n return sub(a, b, \"SafeMath: subtraction overflow\");\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, reverting with custom message on\n * overflow (when the result is negative).\n *\n * Counterpart to Solidity's `-` operator.\n *\n * Requirements:\n * - Subtraction cannot overflow.\n *\n * _Available since v2.4.0._\n */\n function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\n require(b <= a, errorMessage);\n uint256 c = a - b;\n\n return c;\n }\n\n /**\n * @dev Returns the multiplication of two unsigned integers, reverting on\n * overflow.\n *\n * Counterpart to Solidity's `*` operator.\n *\n * Requirements:\n * - Multiplication cannot overflow.\n */\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\n // benefit is lost if 'b' is also tested.\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\n if (a == 0) {\n return 0;\n }\n\n uint256 c = a * b;\n require(c / a == b, \"SafeMath: multiplication overflow\");\n\n return c;\n }\n\n /**\n * @dev Returns the integer division of two unsigned integers. Reverts on\n * division by zero. The result is rounded towards zero.\n *\n * Counterpart to Solidity's `/` operator. Note: this function uses a\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\n * uses an invalid opcode to revert (consuming all remaining gas).\n *\n * Requirements:\n * - The divisor cannot be zero.\n */\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\n return div(a, b, \"SafeMath: division by zero\");\n }\n\n /**\n * @dev Returns the integer division of two unsigned integers. Reverts with custom message on\n * division by zero. The result is rounded towards zero.\n *\n * Counterpart to Solidity's `/` operator. Note: this function uses a\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\n * uses an invalid opcode to revert (consuming all remaining gas).\n *\n * Requirements:\n * - The divisor cannot be zero.\n *\n * _Available since v2.4.0._\n */\n function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\n // Solidity only automatically asserts when dividing by 0\n require(b > 0, errorMessage);\n uint256 c = a / b;\n // assert(a == b * c + a % b); // There is no case in which this doesn't hold\n\n return c;\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\n * Reverts when dividing by zero.\n *\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\n * opcode (which leaves remaining gas untouched) while Solidity uses an\n * invalid opcode to revert (consuming all remaining gas).\n *\n * Requirements:\n * - The divisor cannot be zero.\n */\n function mod(uint256 a, uint256 b) internal pure returns (uint256) {\n return mod(a, b, \"SafeMath: modulo by zero\");\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\n * Reverts with custom message when dividing by zero.\n *\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\n * opcode (which leaves remaining gas untouched) while Solidity uses an\n * invalid opcode to revert (consuming all remaining gas).\n *\n * Requirements:\n * - The divisor cannot be zero.\n *\n * _Available since v2.4.0._\n */\n function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\n require(b != 0, errorMessage);\n return a % b;\n }\n}\n", "sourcePath": "openzeppelin-solidity/contracts/math/SafeMath.sol", "ast": { "absolutePath": "openzeppelin-solidity/contracts/math/SafeMath.sol", "exportedSymbols": { "SafeMath": [ - 6186 + 5945 ] }, - "id": 6187, + "id": 5946, "nodeType": "SourceUnit", "nodes": [ { - "id": 6001, + "id": 5760, "literals": [ "solidity", "^", @@ -27,7 +27,7 @@ ".0" ], "nodeType": "PragmaDirective", - "src": "0:23:16" + "src": "0:23:15" }, { "baseContracts": [], @@ -35,31 +35,31 @@ "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": 6186, + "id": 5945, "linearizedBaseContracts": [ - 6186 + 5945 ], "name": "SafeMath", "nodeType": "ContractDefinition", "nodes": [ { "body": { - "id": 6025, + "id": 5784, "nodeType": "Block", - "src": "901:109:16", + "src": "901:109:15", "statements": [ { "assignments": [ - 6011 + 5770 ], "declarations": [ { "constant": false, - "id": 6011, + "id": 5770, "name": "c", "nodeType": "VariableDeclaration", - "scope": 6025, - "src": "911:9:16", + "scope": 5784, + "src": "911:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -67,10 +67,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6010, + "id": 5769, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "911:7:16", + "src": "911:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -80,26 +80,26 @@ "visibility": "internal" } ], - "id": 6015, + "id": 5774, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 6014, + "id": 5773, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6012, + "id": 5771, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6003, - "src": "923:1:16", + "referencedDeclaration": 5762, + "src": "923:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -109,25 +109,25 @@ "operator": "+", "rightExpression": { "argumentTypes": null, - "id": 6013, + "id": 5772, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6005, - "src": "927:1:16", + "referencedDeclaration": 5764, + "src": "927:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "923:5:16", + "src": "923:5:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", - "src": "911:17:16" + "src": "911:17:15" }, { "expression": { @@ -139,19 +139,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 6019, + "id": 5778, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6017, + "id": 5776, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6011, - "src": "946:1:16", + "referencedDeclaration": 5770, + "src": "946:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -161,18 +161,18 @@ "operator": ">=", "rightExpression": { "argumentTypes": null, - "id": 6018, + "id": 5777, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6003, - "src": "951:1:16", + "referencedDeclaration": 5762, + "src": "951:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "946:6:16", + "src": "946:6:15", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -181,14 +181,14 @@ { "argumentTypes": null, "hexValue": "536166654d6174683a206164646974696f6e206f766572666c6f77", - "id": 6020, + "id": 5779, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "954:29:16", + "src": "954:29:15", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_30cc447bcc13b3e22b45cef0dd9b0b514842d836dd9b6eb384e20dedfb47723a", @@ -208,21 +208,21 @@ "typeString": "literal_string \"SafeMath: addition overflow\"" } ], - "id": 6016, + "id": 5775, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, - "src": "938:7:16", + "referencedDeclaration": 6556, + "src": "938:7:15", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6021, + "id": 5780, "isConstant": false, "isLValue": false, "isPure": false, @@ -230,55 +230,55 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "938:46:16", + "src": "938:46:15", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6022, + "id": 5781, "nodeType": "ExpressionStatement", - "src": "938:46:16" + "src": "938:46:15" }, { "expression": { "argumentTypes": null, - "id": 6023, + "id": 5782, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6011, - "src": "1002:1:16", + "referencedDeclaration": 5770, + "src": "1002:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 6009, - "id": 6024, + "functionReturnParameters": 5768, + "id": 5783, "nodeType": "Return", - "src": "995:8:16" + "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": 6026, + "id": 5785, "implemented": true, "kind": "function", "modifiers": [], "name": "add", "nodeType": "FunctionDefinition", "parameters": { - "id": 6006, + "id": 5765, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6003, + "id": 5762, "name": "a", "nodeType": "VariableDeclaration", - "scope": 6026, - "src": "847:9:16", + "scope": 5785, + "src": "847:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -286,10 +286,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6002, + "id": 5761, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "847:7:16", + "src": "847:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -300,11 +300,11 @@ }, { "constant": false, - "id": 6005, + "id": 5764, "name": "b", "nodeType": "VariableDeclaration", - "scope": 6026, - "src": "858:9:16", + "scope": 5785, + "src": "858:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -312,10 +312,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6004, + "id": 5763, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "858:7:16", + "src": "858:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -325,19 +325,19 @@ "visibility": "internal" } ], - "src": "846:22:16" + "src": "846:22:15" }, "returnParameters": { - "id": 6009, + "id": 5768, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6008, + "id": 5767, "name": "", "nodeType": "VariableDeclaration", - "scope": 6026, - "src": "892:7:16", + "scope": 5785, + "src": "892:7:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -345,10 +345,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6007, + "id": 5766, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "892:7:16", + "src": "892:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -358,19 +358,19 @@ "visibility": "internal" } ], - "src": "891:9:16" + "src": "891:9:15" }, - "scope": 6186, - "src": "834:176:16", + "scope": 5945, + "src": "834:176:15", "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, { "body": { - "id": 6041, + "id": 5800, "nodeType": "Block", - "src": "1341:67:16", + "src": "1341:67:15", "statements": [ { "expression": { @@ -378,12 +378,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6036, + "id": 5795, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6028, - "src": "1362:1:16", + "referencedDeclaration": 5787, + "src": "1362:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -391,12 +391,12 @@ }, { "argumentTypes": null, - "id": 6037, + "id": 5796, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6030, - "src": "1365:1:16", + "referencedDeclaration": 5789, + "src": "1365:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -405,14 +405,14 @@ { "argumentTypes": null, "hexValue": "536166654d6174683a207375627472616374696f6e206f766572666c6f77", - "id": 6038, + "id": 5797, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "1368:32:16", + "src": "1368:32:15", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_50b058e9b5320e58880d88223c9801cd9eecdcf90323d5c2318bc1b6b916e862", @@ -436,21 +436,21 @@ "typeString": "literal_string \"SafeMath: subtraction overflow\"" } ], - "id": 6035, + "id": 5794, "name": "sub", "nodeType": "Identifier", "overloadedDeclarations": [ - 6042, - 6069 + 5801, + 5828 ], - "referencedDeclaration": 6069, - "src": "1358:3:16", + "referencedDeclaration": 5828, + "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": 6039, + "id": 5798, "isConstant": false, "isLValue": false, "isPure": false, @@ -458,37 +458,37 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1358:43:16", + "src": "1358:43:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 6034, - "id": 6040, + "functionReturnParameters": 5793, + "id": 5799, "nodeType": "Return", - "src": "1351:50:16" + "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": 6042, + "id": 5801, "implemented": true, "kind": "function", "modifiers": [], "name": "sub", "nodeType": "FunctionDefinition", "parameters": { - "id": 6031, + "id": 5790, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6028, + "id": 5787, "name": "a", "nodeType": "VariableDeclaration", - "scope": 6042, - "src": "1287:9:16", + "scope": 5801, + "src": "1287:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -496,10 +496,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6027, + "id": 5786, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1287:7:16", + "src": "1287:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -510,11 +510,11 @@ }, { "constant": false, - "id": 6030, + "id": 5789, "name": "b", "nodeType": "VariableDeclaration", - "scope": 6042, - "src": "1298:9:16", + "scope": 5801, + "src": "1298:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -522,10 +522,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6029, + "id": 5788, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1298:7:16", + "src": "1298:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -535,19 +535,19 @@ "visibility": "internal" } ], - "src": "1286:22:16" + "src": "1286:22:15" }, "returnParameters": { - "id": 6034, + "id": 5793, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6033, + "id": 5792, "name": "", "nodeType": "VariableDeclaration", - "scope": 6042, - "src": "1332:7:16", + "scope": 5801, + "src": "1332:7:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -555,10 +555,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6032, + "id": 5791, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1332:7:16", + "src": "1332:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -568,19 +568,19 @@ "visibility": "internal" } ], - "src": "1331:9:16" + "src": "1331:9:15" }, - "scope": 6186, - "src": "1274:134:16", + "scope": 5945, + "src": "1274:134:15", "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, { "body": { - "id": 6068, + "id": 5827, "nodeType": "Block", - "src": "1827:92:16", + "src": "1827:92:15", "statements": [ { "expression": { @@ -592,19 +592,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 6056, + "id": 5815, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6054, + "id": 5813, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6046, - "src": "1845:1:16", + "referencedDeclaration": 5805, + "src": "1845:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -614,18 +614,18 @@ "operator": "<=", "rightExpression": { "argumentTypes": null, - "id": 6055, + "id": 5814, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6044, - "src": "1850:1:16", + "referencedDeclaration": 5803, + "src": "1850:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "1845:6:16", + "src": "1845:6:15", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -633,12 +633,12 @@ }, { "argumentTypes": null, - "id": 6057, + "id": 5816, "name": "errorMessage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6048, - "src": "1853:12:16", + "referencedDeclaration": 5807, + "src": "1853:12:15", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" @@ -656,21 +656,21 @@ "typeString": "string memory" } ], - "id": 6053, + "id": 5812, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, - "src": "1837:7:16", + "referencedDeclaration": 6556, + "src": "1837:7:15", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6058, + "id": 5817, "isConstant": false, "isLValue": false, "isPure": false, @@ -678,28 +678,28 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1837:29:16", + "src": "1837:29:15", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6059, + "id": 5818, "nodeType": "ExpressionStatement", - "src": "1837:29:16" + "src": "1837:29:15" }, { "assignments": [ - 6061 + 5820 ], "declarations": [ { "constant": false, - "id": 6061, + "id": 5820, "name": "c", "nodeType": "VariableDeclaration", - "scope": 6068, - "src": "1876:9:16", + "scope": 5827, + "src": "1876:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -707,10 +707,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6060, + "id": 5819, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1876:7:16", + "src": "1876:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -720,26 +720,26 @@ "visibility": "internal" } ], - "id": 6065, + "id": 5824, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 6064, + "id": 5823, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6062, + "id": 5821, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6044, - "src": "1888:1:16", + "referencedDeclaration": 5803, + "src": "1888:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -749,65 +749,65 @@ "operator": "-", "rightExpression": { "argumentTypes": null, - "id": 6063, + "id": 5822, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6046, - "src": "1892:1:16", + "referencedDeclaration": 5805, + "src": "1892:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "1888:5:16", + "src": "1888:5:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", - "src": "1876:17:16" + "src": "1876:17:15" }, { "expression": { "argumentTypes": null, - "id": 6066, + "id": 5825, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6061, - "src": "1911:1:16", + "referencedDeclaration": 5820, + "src": "1911:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 6052, - "id": 6067, + "functionReturnParameters": 5811, + "id": 5826, "nodeType": "Return", - "src": "1904:8:16" + "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": 6069, + "id": 5828, "implemented": true, "kind": "function", "modifiers": [], "name": "sub", "nodeType": "FunctionDefinition", "parameters": { - "id": 6049, + "id": 5808, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6044, + "id": 5803, "name": "a", "nodeType": "VariableDeclaration", - "scope": 6069, - "src": "1745:9:16", + "scope": 5828, + "src": "1745:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -815,10 +815,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6043, + "id": 5802, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1745:7:16", + "src": "1745:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -829,11 +829,11 @@ }, { "constant": false, - "id": 6046, + "id": 5805, "name": "b", "nodeType": "VariableDeclaration", - "scope": 6069, - "src": "1756:9:16", + "scope": 5828, + "src": "1756:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -841,10 +841,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6045, + "id": 5804, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1756:7:16", + "src": "1756:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -855,11 +855,11 @@ }, { "constant": false, - "id": 6048, + "id": 5807, "name": "errorMessage", "nodeType": "VariableDeclaration", - "scope": 6069, - "src": "1767:26:16", + "scope": 5828, + "src": "1767:26:15", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { @@ -867,10 +867,10 @@ "typeString": "string" }, "typeName": { - "id": 6047, + "id": 5806, "name": "string", "nodeType": "ElementaryTypeName", - "src": "1767:6:16", + "src": "1767:6:15", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -880,19 +880,19 @@ "visibility": "internal" } ], - "src": "1744:50:16" + "src": "1744:50:15" }, "returnParameters": { - "id": 6052, + "id": 5811, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6051, + "id": 5810, "name": "", "nodeType": "VariableDeclaration", - "scope": 6069, - "src": "1818:7:16", + "scope": 5828, + "src": "1818:7:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -900,10 +900,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6050, + "id": 5809, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1818:7:16", + "src": "1818:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -913,19 +913,19 @@ "visibility": "internal" } ], - "src": "1817:9:16" + "src": "1817:9:15" }, - "scope": 6186, - "src": "1732:187:16", + "scope": 5945, + "src": "1732:187:15", "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, { "body": { - "id": 6102, + "id": 5861, "nodeType": "Block", - "src": "2226:392:16", + "src": "2226:392:15", "statements": [ { "condition": { @@ -934,19 +934,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 6080, + "id": 5839, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6078, + "id": 5837, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6071, - "src": "2458:1:16", + "referencedDeclaration": 5830, + "src": "2458:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -957,14 +957,14 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 6079, + "id": 5838, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "2463:1:16", + "src": "2463:1:15", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -972,33 +972,33 @@ }, "value": "0" }, - "src": "2458:6:16", + "src": "2458:6:15", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, - "id": 6084, + "id": 5843, "nodeType": "IfStatement", - "src": "2454:45:16", + "src": "2454:45:15", "trueBody": { - "id": 6083, + "id": 5842, "nodeType": "Block", - "src": "2466:33:16", + "src": "2466:33:15", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "30", - "id": 6081, + "id": 5840, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "2487:1:16", + "src": "2487:1:15", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -1006,26 +1006,26 @@ }, "value": "0" }, - "functionReturnParameters": 6077, - "id": 6082, + "functionReturnParameters": 5836, + "id": 5841, "nodeType": "Return", - "src": "2480:8:16" + "src": "2480:8:15" } ] } }, { "assignments": [ - 6086 + 5845 ], "declarations": [ { "constant": false, - "id": 6086, + "id": 5845, "name": "c", "nodeType": "VariableDeclaration", - "scope": 6102, - "src": "2509:9:16", + "scope": 5861, + "src": "2509:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1033,10 +1033,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6085, + "id": 5844, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "2509:7:16", + "src": "2509:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1046,26 +1046,26 @@ "visibility": "internal" } ], - "id": 6090, + "id": 5849, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 6089, + "id": 5848, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6087, + "id": 5846, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6071, - "src": "2521:1:16", + "referencedDeclaration": 5830, + "src": "2521:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1075,25 +1075,25 @@ "operator": "*", "rightExpression": { "argumentTypes": null, - "id": 6088, + "id": 5847, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6073, - "src": "2525:1:16", + "referencedDeclaration": 5832, + "src": "2525:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "2521:5:16", + "src": "2521:5:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", - "src": "2509:17:16" + "src": "2509:17:15" }, { "expression": { @@ -1105,7 +1105,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 6096, + "id": 5855, "isConstant": false, "isLValue": false, "isPure": false, @@ -1116,19 +1116,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 6094, + "id": 5853, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6092, + "id": 5851, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6086, - "src": "2544:1:16", + "referencedDeclaration": 5845, + "src": "2544:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1138,18 +1138,18 @@ "operator": "/", "rightExpression": { "argumentTypes": null, - "id": 6093, + "id": 5852, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6071, - "src": "2548:1:16", + "referencedDeclaration": 5830, + "src": "2548:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "2544:5:16", + "src": "2544:5:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1159,18 +1159,18 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 6095, + "id": 5854, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6073, - "src": "2553:1:16", + "referencedDeclaration": 5832, + "src": "2553:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "2544:10:16", + "src": "2544:10:15", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -1179,14 +1179,14 @@ { "argumentTypes": null, "hexValue": "536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77", - "id": 6097, + "id": 5856, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "2556:35:16", + "src": "2556:35:15", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_9113bb53c2876a3805b2c9242029423fc540a728243ce887ab24c82cf119fba3", @@ -1206,21 +1206,21 @@ "typeString": "literal_string \"SafeMath: multiplication overflow\"" } ], - "id": 6091, + "id": 5850, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, - "src": "2536:7:16", + "referencedDeclaration": 6556, + "src": "2536:7:15", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6098, + "id": 5857, "isConstant": false, "isLValue": false, "isPure": false, @@ -1228,55 +1228,55 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2536:56:16", + "src": "2536:56:15", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6099, + "id": 5858, "nodeType": "ExpressionStatement", - "src": "2536:56:16" + "src": "2536:56:15" }, { "expression": { "argumentTypes": null, - "id": 6100, + "id": 5859, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6086, - "src": "2610:1:16", + "referencedDeclaration": 5845, + "src": "2610:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 6077, - "id": 6101, + "functionReturnParameters": 5836, + "id": 5860, "nodeType": "Return", - "src": "2603:8:16" + "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": 6103, + "id": 5862, "implemented": true, "kind": "function", "modifiers": [], "name": "mul", "nodeType": "FunctionDefinition", "parameters": { - "id": 6074, + "id": 5833, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6071, + "id": 5830, "name": "a", "nodeType": "VariableDeclaration", - "scope": 6103, - "src": "2172:9:16", + "scope": 5862, + "src": "2172:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1284,10 +1284,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6070, + "id": 5829, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "2172:7:16", + "src": "2172:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1298,11 +1298,11 @@ }, { "constant": false, - "id": 6073, + "id": 5832, "name": "b", "nodeType": "VariableDeclaration", - "scope": 6103, - "src": "2183:9:16", + "scope": 5862, + "src": "2183:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1310,10 +1310,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6072, + "id": 5831, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "2183:7:16", + "src": "2183:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1323,19 +1323,19 @@ "visibility": "internal" } ], - "src": "2171:22:16" + "src": "2171:22:15" }, "returnParameters": { - "id": 6077, + "id": 5836, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6076, + "id": 5835, "name": "", "nodeType": "VariableDeclaration", - "scope": 6103, - "src": "2217:7:16", + "scope": 5862, + "src": "2217:7:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1343,10 +1343,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6075, + "id": 5834, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "2217:7:16", + "src": "2217:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1356,19 +1356,19 @@ "visibility": "internal" } ], - "src": "2216:9:16" + "src": "2216:9:15" }, - "scope": 6186, - "src": "2159:459:16", + "scope": 5945, + "src": "2159:459:15", "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, { "body": { - "id": 6118, + "id": 5877, "nodeType": "Block", - "src": "3140:63:16", + "src": "3140:63:15", "statements": [ { "expression": { @@ -1376,12 +1376,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6113, + "id": 5872, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6105, - "src": "3161:1:16", + "referencedDeclaration": 5864, + "src": "3161:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1389,12 +1389,12 @@ }, { "argumentTypes": null, - "id": 6114, + "id": 5873, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6107, - "src": "3164:1:16", + "referencedDeclaration": 5866, + "src": "3164:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1403,14 +1403,14 @@ { "argumentTypes": null, "hexValue": "536166654d6174683a206469766973696f6e206279207a65726f", - "id": 6115, + "id": 5874, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "3167:28:16", + "src": "3167:28:15", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_5b7cc70dda4dc2143e5adb63bd5d1f349504f461dbdfd9bc76fac1f8ca6d019f", @@ -1434,21 +1434,21 @@ "typeString": "literal_string \"SafeMath: division by zero\"" } ], - "id": 6112, + "id": 5871, "name": "div", "nodeType": "Identifier", "overloadedDeclarations": [ - 6119, - 6146 + 5878, + 5905 ], - "referencedDeclaration": 6146, - "src": "3157:3:16", + "referencedDeclaration": 5905, + "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": 6116, + "id": 5875, "isConstant": false, "isLValue": false, "isPure": false, @@ -1456,37 +1456,37 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3157:39:16", + "src": "3157:39:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 6111, - "id": 6117, + "functionReturnParameters": 5870, + "id": 5876, "nodeType": "Return", - "src": "3150:46:16" + "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": 6119, + "id": 5878, "implemented": true, "kind": "function", "modifiers": [], "name": "div", "nodeType": "FunctionDefinition", "parameters": { - "id": 6108, + "id": 5867, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6105, + "id": 5864, "name": "a", "nodeType": "VariableDeclaration", - "scope": 6119, - "src": "3086:9:16", + "scope": 5878, + "src": "3086:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1494,10 +1494,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6104, + "id": 5863, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "3086:7:16", + "src": "3086:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1508,11 +1508,11 @@ }, { "constant": false, - "id": 6107, + "id": 5866, "name": "b", "nodeType": "VariableDeclaration", - "scope": 6119, - "src": "3097:9:16", + "scope": 5878, + "src": "3097:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1520,10 +1520,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6106, + "id": 5865, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "3097:7:16", + "src": "3097:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1533,19 +1533,19 @@ "visibility": "internal" } ], - "src": "3085:22:16" + "src": "3085:22:15" }, "returnParameters": { - "id": 6111, + "id": 5870, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6110, + "id": 5869, "name": "", "nodeType": "VariableDeclaration", - "scope": 6119, - "src": "3131:7:16", + "scope": 5878, + "src": "3131:7:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1553,10 +1553,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6109, + "id": 5868, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "3131:7:16", + "src": "3131:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1566,19 +1566,19 @@ "visibility": "internal" } ], - "src": "3130:9:16" + "src": "3130:9:15" }, - "scope": 6186, - "src": "3073:130:16", + "scope": 5945, + "src": "3073:130:15", "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, { "body": { - "id": 6145, + "id": 5904, "nodeType": "Block", - "src": "3813:243:16", + "src": "3813:243:15", "statements": [ { "expression": { @@ -1590,19 +1590,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 6133, + "id": 5892, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6131, + "id": 5890, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6123, - "src": "3897:1:16", + "referencedDeclaration": 5882, + "src": "3897:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1613,14 +1613,14 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 6132, + "id": 5891, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "3901:1:16", + "src": "3901:1:15", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -1628,7 +1628,7 @@ }, "value": "0" }, - "src": "3897:5:16", + "src": "3897:5:15", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -1636,12 +1636,12 @@ }, { "argumentTypes": null, - "id": 6134, + "id": 5893, "name": "errorMessage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6125, - "src": "3904:12:16", + "referencedDeclaration": 5884, + "src": "3904:12:15", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" @@ -1659,21 +1659,21 @@ "typeString": "string memory" } ], - "id": 6130, + "id": 5889, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, - "src": "3889:7:16", + "referencedDeclaration": 6556, + "src": "3889:7:15", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6135, + "id": 5894, "isConstant": false, "isLValue": false, "isPure": false, @@ -1681,28 +1681,28 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3889:28:16", + "src": "3889:28:15", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6136, + "id": 5895, "nodeType": "ExpressionStatement", - "src": "3889:28:16" + "src": "3889:28:15" }, { "assignments": [ - 6138 + 5897 ], "declarations": [ { "constant": false, - "id": 6138, + "id": 5897, "name": "c", "nodeType": "VariableDeclaration", - "scope": 6145, - "src": "3927:9:16", + "scope": 5904, + "src": "3927:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1710,10 +1710,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6137, + "id": 5896, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "3927:7:16", + "src": "3927:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1723,26 +1723,26 @@ "visibility": "internal" } ], - "id": 6142, + "id": 5901, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 6141, + "id": 5900, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6139, + "id": 5898, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6121, - "src": "3939:1:16", + "referencedDeclaration": 5880, + "src": "3939:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1752,65 +1752,65 @@ "operator": "/", "rightExpression": { "argumentTypes": null, - "id": 6140, + "id": 5899, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6123, - "src": "3943:1:16", + "referencedDeclaration": 5882, + "src": "3943:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "3939:5:16", + "src": "3939:5:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", - "src": "3927:17:16" + "src": "3927:17:15" }, { "expression": { "argumentTypes": null, - "id": 6143, + "id": 5902, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6138, - "src": "4048:1:16", + "referencedDeclaration": 5897, + "src": "4048:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 6129, - "id": 6144, + "functionReturnParameters": 5888, + "id": 5903, "nodeType": "Return", - "src": "4041:8:16" + "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": 6146, + "id": 5905, "implemented": true, "kind": "function", "modifiers": [], "name": "div", "nodeType": "FunctionDefinition", "parameters": { - "id": 6126, + "id": 5885, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6121, + "id": 5880, "name": "a", "nodeType": "VariableDeclaration", - "scope": 6146, - "src": "3731:9:16", + "scope": 5905, + "src": "3731:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1818,10 +1818,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6120, + "id": 5879, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "3731:7:16", + "src": "3731:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1832,11 +1832,11 @@ }, { "constant": false, - "id": 6123, + "id": 5882, "name": "b", "nodeType": "VariableDeclaration", - "scope": 6146, - "src": "3742:9:16", + "scope": 5905, + "src": "3742:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1844,10 +1844,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6122, + "id": 5881, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "3742:7:16", + "src": "3742:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1858,11 +1858,11 @@ }, { "constant": false, - "id": 6125, + "id": 5884, "name": "errorMessage", "nodeType": "VariableDeclaration", - "scope": 6146, - "src": "3753:26:16", + "scope": 5905, + "src": "3753:26:15", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { @@ -1870,10 +1870,10 @@ "typeString": "string" }, "typeName": { - "id": 6124, + "id": 5883, "name": "string", "nodeType": "ElementaryTypeName", - "src": "3753:6:16", + "src": "3753:6:15", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -1883,19 +1883,19 @@ "visibility": "internal" } ], - "src": "3730:50:16" + "src": "3730:50:15" }, "returnParameters": { - "id": 6129, + "id": 5888, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6128, + "id": 5887, "name": "", "nodeType": "VariableDeclaration", - "scope": 6146, - "src": "3804:7:16", + "scope": 5905, + "src": "3804:7:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1903,10 +1903,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6127, + "id": 5886, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "3804:7:16", + "src": "3804:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1916,19 +1916,19 @@ "visibility": "internal" } ], - "src": "3803:9:16" + "src": "3803:9:15" }, - "scope": 6186, - "src": "3718:338:16", + "scope": 5945, + "src": "3718:338:15", "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, { "body": { - "id": 6161, + "id": 5920, "nodeType": "Block", - "src": "4567:61:16", + "src": "4567:61:15", "statements": [ { "expression": { @@ -1936,12 +1936,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6156, + "id": 5915, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6148, - "src": "4588:1:16", + "referencedDeclaration": 5907, + "src": "4588:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1949,12 +1949,12 @@ }, { "argumentTypes": null, - "id": 6157, + "id": 5916, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6150, - "src": "4591:1:16", + "referencedDeclaration": 5909, + "src": "4591:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1963,14 +1963,14 @@ { "argumentTypes": null, "hexValue": "536166654d6174683a206d6f64756c6f206279207a65726f", - "id": 6158, + "id": 5917, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "4594:26:16", + "src": "4594:26:15", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_726e51f7b81fce0a68f5f214f445e275313b20b1633f08ce954ee39abf8d7832", @@ -1994,21 +1994,21 @@ "typeString": "literal_string \"SafeMath: modulo by zero\"" } ], - "id": 6155, + "id": 5914, "name": "mod", "nodeType": "Identifier", "overloadedDeclarations": [ - 6162, - 6185 + 5921, + 5944 ], - "referencedDeclaration": 6185, - "src": "4584:3:16", + "referencedDeclaration": 5944, + "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": 6159, + "id": 5918, "isConstant": false, "isLValue": false, "isPure": false, @@ -2016,37 +2016,37 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4584:37:16", + "src": "4584:37:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 6154, - "id": 6160, + "functionReturnParameters": 5913, + "id": 5919, "nodeType": "Return", - "src": "4577:44:16" + "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": 6162, + "id": 5921, "implemented": true, "kind": "function", "modifiers": [], "name": "mod", "nodeType": "FunctionDefinition", "parameters": { - "id": 6151, + "id": 5910, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6148, + "id": 5907, "name": "a", "nodeType": "VariableDeclaration", - "scope": 6162, - "src": "4513:9:16", + "scope": 5921, + "src": "4513:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2054,10 +2054,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6147, + "id": 5906, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "4513:7:16", + "src": "4513:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2068,11 +2068,11 @@ }, { "constant": false, - "id": 6150, + "id": 5909, "name": "b", "nodeType": "VariableDeclaration", - "scope": 6162, - "src": "4524:9:16", + "scope": 5921, + "src": "4524:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2080,10 +2080,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6149, + "id": 5908, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "4524:7:16", + "src": "4524:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2093,19 +2093,19 @@ "visibility": "internal" } ], - "src": "4512:22:16" + "src": "4512:22:15" }, "returnParameters": { - "id": 6154, + "id": 5913, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6153, + "id": 5912, "name": "", "nodeType": "VariableDeclaration", - "scope": 6162, - "src": "4558:7:16", + "scope": 5921, + "src": "4558:7:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2113,10 +2113,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6152, + "id": 5911, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "4558:7:16", + "src": "4558:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2126,19 +2126,19 @@ "visibility": "internal" } ], - "src": "4557:9:16" + "src": "4557:9:15" }, - "scope": 6186, - "src": "4500:128:16", + "scope": 5945, + "src": "4500:128:15", "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, { "body": { - "id": 6184, + "id": 5943, "nodeType": "Block", - "src": "5227:68:16", + "src": "5227:68:15", "statements": [ { "expression": { @@ -2150,19 +2150,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 6176, + "id": 5935, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6174, + "id": 5933, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6166, - "src": "5245:1:16", + "referencedDeclaration": 5925, + "src": "5245:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2173,14 +2173,14 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 6175, + "id": 5934, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "5250:1:16", + "src": "5250:1:15", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -2188,7 +2188,7 @@ }, "value": "0" }, - "src": "5245:6:16", + "src": "5245:6:15", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -2196,12 +2196,12 @@ }, { "argumentTypes": null, - "id": 6177, + "id": 5936, "name": "errorMessage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6168, - "src": "5253:12:16", + "referencedDeclaration": 5927, + "src": "5253:12:15", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" @@ -2219,21 +2219,21 @@ "typeString": "string memory" } ], - "id": 6173, + "id": 5932, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, - "src": "5237:7:16", + "referencedDeclaration": 6556, + "src": "5237:7:15", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6178, + "id": 5937, "isConstant": false, "isLValue": false, "isPure": false, @@ -2241,15 +2241,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5237:29:16", + "src": "5237:29:15", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6179, + "id": 5938, "nodeType": "ExpressionStatement", - "src": "5237:29:16" + "src": "5237:29:15" }, { "expression": { @@ -2258,19 +2258,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 6182, + "id": 5941, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6180, + "id": 5939, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6164, - "src": "5283:1:16", + "referencedDeclaration": 5923, + "src": "5283:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2280,48 +2280,48 @@ "operator": "%", "rightExpression": { "argumentTypes": null, - "id": 6181, + "id": 5940, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6166, - "src": "5287:1:16", + "referencedDeclaration": 5925, + "src": "5287:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "5283:5:16", + "src": "5283:5:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 6172, - "id": 6183, + "functionReturnParameters": 5931, + "id": 5942, "nodeType": "Return", - "src": "5276:12:16" + "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": 6185, + "id": 5944, "implemented": true, "kind": "function", "modifiers": [], "name": "mod", "nodeType": "FunctionDefinition", "parameters": { - "id": 6169, + "id": 5928, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6164, + "id": 5923, "name": "a", "nodeType": "VariableDeclaration", - "scope": 6185, - "src": "5145:9:16", + "scope": 5944, + "src": "5145:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2329,10 +2329,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6163, + "id": 5922, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "5145:7:16", + "src": "5145:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2343,11 +2343,11 @@ }, { "constant": false, - "id": 6166, + "id": 5925, "name": "b", "nodeType": "VariableDeclaration", - "scope": 6185, - "src": "5156:9:16", + "scope": 5944, + "src": "5156:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2355,10 +2355,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6165, + "id": 5924, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "5156:7:16", + "src": "5156:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2369,11 +2369,11 @@ }, { "constant": false, - "id": 6168, + "id": 5927, "name": "errorMessage", "nodeType": "VariableDeclaration", - "scope": 6185, - "src": "5167:26:16", + "scope": 5944, + "src": "5167:26:15", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { @@ -2381,10 +2381,10 @@ "typeString": "string" }, "typeName": { - "id": 6167, + "id": 5926, "name": "string", "nodeType": "ElementaryTypeName", - "src": "5167:6:16", + "src": "5167:6:15", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -2394,19 +2394,19 @@ "visibility": "internal" } ], - "src": "5144:50:16" + "src": "5144:50:15" }, "returnParameters": { - "id": 6172, + "id": 5931, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6171, + "id": 5930, "name": "", "nodeType": "VariableDeclaration", - "scope": 6185, - "src": "5218:7:16", + "scope": 5944, + "src": "5218:7:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2414,10 +2414,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6170, + "id": 5929, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "5218:7:16", + "src": "5218:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2427,33 +2427,33 @@ "visibility": "internal" } ], - "src": "5217:9:16" + "src": "5217:9:15" }, - "scope": 6186, - "src": "5132:163:16", + "scope": 5945, + "src": "5132:163:15", "stateMutability": "pure", "superFunction": null, "visibility": "internal" } ], - "scope": 6187, - "src": "589:4708:16" + "scope": 5946, + "src": "589:4708:15" } ], - "src": "0:5298:16" + "src": "0:5298:15" }, "legacyAST": { "absolutePath": "openzeppelin-solidity/contracts/math/SafeMath.sol", "exportedSymbols": { "SafeMath": [ - 6186 + 5945 ] }, - "id": 6187, + "id": 5946, "nodeType": "SourceUnit", "nodes": [ { - "id": 6001, + "id": 5760, "literals": [ "solidity", "^", @@ -2461,7 +2461,7 @@ ".0" ], "nodeType": "PragmaDirective", - "src": "0:23:16" + "src": "0:23:15" }, { "baseContracts": [], @@ -2469,31 +2469,31 @@ "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": 6186, + "id": 5945, "linearizedBaseContracts": [ - 6186 + 5945 ], "name": "SafeMath", "nodeType": "ContractDefinition", "nodes": [ { "body": { - "id": 6025, + "id": 5784, "nodeType": "Block", - "src": "901:109:16", + "src": "901:109:15", "statements": [ { "assignments": [ - 6011 + 5770 ], "declarations": [ { "constant": false, - "id": 6011, + "id": 5770, "name": "c", "nodeType": "VariableDeclaration", - "scope": 6025, - "src": "911:9:16", + "scope": 5784, + "src": "911:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2501,10 +2501,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6010, + "id": 5769, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "911:7:16", + "src": "911:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2514,26 +2514,26 @@ "visibility": "internal" } ], - "id": 6015, + "id": 5774, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 6014, + "id": 5773, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6012, + "id": 5771, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6003, - "src": "923:1:16", + "referencedDeclaration": 5762, + "src": "923:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2543,25 +2543,25 @@ "operator": "+", "rightExpression": { "argumentTypes": null, - "id": 6013, + "id": 5772, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6005, - "src": "927:1:16", + "referencedDeclaration": 5764, + "src": "927:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "923:5:16", + "src": "923:5:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", - "src": "911:17:16" + "src": "911:17:15" }, { "expression": { @@ -2573,19 +2573,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 6019, + "id": 5778, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6017, + "id": 5776, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6011, - "src": "946:1:16", + "referencedDeclaration": 5770, + "src": "946:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2595,18 +2595,18 @@ "operator": ">=", "rightExpression": { "argumentTypes": null, - "id": 6018, + "id": 5777, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6003, - "src": "951:1:16", + "referencedDeclaration": 5762, + "src": "951:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "946:6:16", + "src": "946:6:15", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -2615,14 +2615,14 @@ { "argumentTypes": null, "hexValue": "536166654d6174683a206164646974696f6e206f766572666c6f77", - "id": 6020, + "id": 5779, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "954:29:16", + "src": "954:29:15", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_30cc447bcc13b3e22b45cef0dd9b0b514842d836dd9b6eb384e20dedfb47723a", @@ -2642,21 +2642,21 @@ "typeString": "literal_string \"SafeMath: addition overflow\"" } ], - "id": 6016, + "id": 5775, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, - "src": "938:7:16", + "referencedDeclaration": 6556, + "src": "938:7:15", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6021, + "id": 5780, "isConstant": false, "isLValue": false, "isPure": false, @@ -2664,55 +2664,55 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "938:46:16", + "src": "938:46:15", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6022, + "id": 5781, "nodeType": "ExpressionStatement", - "src": "938:46:16" + "src": "938:46:15" }, { "expression": { "argumentTypes": null, - "id": 6023, + "id": 5782, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6011, - "src": "1002:1:16", + "referencedDeclaration": 5770, + "src": "1002:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 6009, - "id": 6024, + "functionReturnParameters": 5768, + "id": 5783, "nodeType": "Return", - "src": "995:8:16" + "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": 6026, + "id": 5785, "implemented": true, "kind": "function", "modifiers": [], "name": "add", "nodeType": "FunctionDefinition", "parameters": { - "id": 6006, + "id": 5765, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6003, + "id": 5762, "name": "a", "nodeType": "VariableDeclaration", - "scope": 6026, - "src": "847:9:16", + "scope": 5785, + "src": "847:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2720,10 +2720,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6002, + "id": 5761, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "847:7:16", + "src": "847:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2734,11 +2734,11 @@ }, { "constant": false, - "id": 6005, + "id": 5764, "name": "b", "nodeType": "VariableDeclaration", - "scope": 6026, - "src": "858:9:16", + "scope": 5785, + "src": "858:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2746,10 +2746,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6004, + "id": 5763, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "858:7:16", + "src": "858:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2759,19 +2759,19 @@ "visibility": "internal" } ], - "src": "846:22:16" + "src": "846:22:15" }, "returnParameters": { - "id": 6009, + "id": 5768, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6008, + "id": 5767, "name": "", "nodeType": "VariableDeclaration", - "scope": 6026, - "src": "892:7:16", + "scope": 5785, + "src": "892:7:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2779,10 +2779,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6007, + "id": 5766, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "892:7:16", + "src": "892:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2792,19 +2792,19 @@ "visibility": "internal" } ], - "src": "891:9:16" + "src": "891:9:15" }, - "scope": 6186, - "src": "834:176:16", + "scope": 5945, + "src": "834:176:15", "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, { "body": { - "id": 6041, + "id": 5800, "nodeType": "Block", - "src": "1341:67:16", + "src": "1341:67:15", "statements": [ { "expression": { @@ -2812,12 +2812,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6036, + "id": 5795, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6028, - "src": "1362:1:16", + "referencedDeclaration": 5787, + "src": "1362:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2825,12 +2825,12 @@ }, { "argumentTypes": null, - "id": 6037, + "id": 5796, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6030, - "src": "1365:1:16", + "referencedDeclaration": 5789, + "src": "1365:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2839,14 +2839,14 @@ { "argumentTypes": null, "hexValue": "536166654d6174683a207375627472616374696f6e206f766572666c6f77", - "id": 6038, + "id": 5797, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "1368:32:16", + "src": "1368:32:15", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_50b058e9b5320e58880d88223c9801cd9eecdcf90323d5c2318bc1b6b916e862", @@ -2870,21 +2870,21 @@ "typeString": "literal_string \"SafeMath: subtraction overflow\"" } ], - "id": 6035, + "id": 5794, "name": "sub", "nodeType": "Identifier", "overloadedDeclarations": [ - 6042, - 6069 + 5801, + 5828 ], - "referencedDeclaration": 6069, - "src": "1358:3:16", + "referencedDeclaration": 5828, + "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": 6039, + "id": 5798, "isConstant": false, "isLValue": false, "isPure": false, @@ -2892,37 +2892,37 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1358:43:16", + "src": "1358:43:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 6034, - "id": 6040, + "functionReturnParameters": 5793, + "id": 5799, "nodeType": "Return", - "src": "1351:50:16" + "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": 6042, + "id": 5801, "implemented": true, "kind": "function", "modifiers": [], "name": "sub", "nodeType": "FunctionDefinition", "parameters": { - "id": 6031, + "id": 5790, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6028, + "id": 5787, "name": "a", "nodeType": "VariableDeclaration", - "scope": 6042, - "src": "1287:9:16", + "scope": 5801, + "src": "1287:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2930,10 +2930,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6027, + "id": 5786, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1287:7:16", + "src": "1287:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2944,11 +2944,11 @@ }, { "constant": false, - "id": 6030, + "id": 5789, "name": "b", "nodeType": "VariableDeclaration", - "scope": 6042, - "src": "1298:9:16", + "scope": 5801, + "src": "1298:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2956,10 +2956,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6029, + "id": 5788, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1298:7:16", + "src": "1298:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2969,19 +2969,19 @@ "visibility": "internal" } ], - "src": "1286:22:16" + "src": "1286:22:15" }, "returnParameters": { - "id": 6034, + "id": 5793, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6033, + "id": 5792, "name": "", "nodeType": "VariableDeclaration", - "scope": 6042, - "src": "1332:7:16", + "scope": 5801, + "src": "1332:7:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2989,10 +2989,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6032, + "id": 5791, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1332:7:16", + "src": "1332:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3002,19 +3002,19 @@ "visibility": "internal" } ], - "src": "1331:9:16" + "src": "1331:9:15" }, - "scope": 6186, - "src": "1274:134:16", + "scope": 5945, + "src": "1274:134:15", "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, { "body": { - "id": 6068, + "id": 5827, "nodeType": "Block", - "src": "1827:92:16", + "src": "1827:92:15", "statements": [ { "expression": { @@ -3026,19 +3026,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 6056, + "id": 5815, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6054, + "id": 5813, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6046, - "src": "1845:1:16", + "referencedDeclaration": 5805, + "src": "1845:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3048,18 +3048,18 @@ "operator": "<=", "rightExpression": { "argumentTypes": null, - "id": 6055, + "id": 5814, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6044, - "src": "1850:1:16", + "referencedDeclaration": 5803, + "src": "1850:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "1845:6:16", + "src": "1845:6:15", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -3067,12 +3067,12 @@ }, { "argumentTypes": null, - "id": 6057, + "id": 5816, "name": "errorMessage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6048, - "src": "1853:12:16", + "referencedDeclaration": 5807, + "src": "1853:12:15", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" @@ -3090,21 +3090,21 @@ "typeString": "string memory" } ], - "id": 6053, + "id": 5812, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, - "src": "1837:7:16", + "referencedDeclaration": 6556, + "src": "1837:7:15", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6058, + "id": 5817, "isConstant": false, "isLValue": false, "isPure": false, @@ -3112,28 +3112,28 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1837:29:16", + "src": "1837:29:15", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6059, + "id": 5818, "nodeType": "ExpressionStatement", - "src": "1837:29:16" + "src": "1837:29:15" }, { "assignments": [ - 6061 + 5820 ], "declarations": [ { "constant": false, - "id": 6061, + "id": 5820, "name": "c", "nodeType": "VariableDeclaration", - "scope": 6068, - "src": "1876:9:16", + "scope": 5827, + "src": "1876:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3141,10 +3141,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6060, + "id": 5819, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1876:7:16", + "src": "1876:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3154,26 +3154,26 @@ "visibility": "internal" } ], - "id": 6065, + "id": 5824, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 6064, + "id": 5823, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6062, + "id": 5821, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6044, - "src": "1888:1:16", + "referencedDeclaration": 5803, + "src": "1888:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3183,65 +3183,65 @@ "operator": "-", "rightExpression": { "argumentTypes": null, - "id": 6063, + "id": 5822, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6046, - "src": "1892:1:16", + "referencedDeclaration": 5805, + "src": "1892:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "1888:5:16", + "src": "1888:5:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", - "src": "1876:17:16" + "src": "1876:17:15" }, { "expression": { "argumentTypes": null, - "id": 6066, + "id": 5825, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6061, - "src": "1911:1:16", + "referencedDeclaration": 5820, + "src": "1911:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 6052, - "id": 6067, + "functionReturnParameters": 5811, + "id": 5826, "nodeType": "Return", - "src": "1904:8:16" + "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": 6069, + "id": 5828, "implemented": true, "kind": "function", "modifiers": [], "name": "sub", "nodeType": "FunctionDefinition", "parameters": { - "id": 6049, + "id": 5808, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6044, + "id": 5803, "name": "a", "nodeType": "VariableDeclaration", - "scope": 6069, - "src": "1745:9:16", + "scope": 5828, + "src": "1745:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3249,10 +3249,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6043, + "id": 5802, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1745:7:16", + "src": "1745:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3263,11 +3263,11 @@ }, { "constant": false, - "id": 6046, + "id": 5805, "name": "b", "nodeType": "VariableDeclaration", - "scope": 6069, - "src": "1756:9:16", + "scope": 5828, + "src": "1756:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3275,10 +3275,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6045, + "id": 5804, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1756:7:16", + "src": "1756:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3289,11 +3289,11 @@ }, { "constant": false, - "id": 6048, + "id": 5807, "name": "errorMessage", "nodeType": "VariableDeclaration", - "scope": 6069, - "src": "1767:26:16", + "scope": 5828, + "src": "1767:26:15", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { @@ -3301,10 +3301,10 @@ "typeString": "string" }, "typeName": { - "id": 6047, + "id": 5806, "name": "string", "nodeType": "ElementaryTypeName", - "src": "1767:6:16", + "src": "1767:6:15", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -3314,19 +3314,19 @@ "visibility": "internal" } ], - "src": "1744:50:16" + "src": "1744:50:15" }, "returnParameters": { - "id": 6052, + "id": 5811, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6051, + "id": 5810, "name": "", "nodeType": "VariableDeclaration", - "scope": 6069, - "src": "1818:7:16", + "scope": 5828, + "src": "1818:7:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3334,10 +3334,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6050, + "id": 5809, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1818:7:16", + "src": "1818:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3347,19 +3347,19 @@ "visibility": "internal" } ], - "src": "1817:9:16" + "src": "1817:9:15" }, - "scope": 6186, - "src": "1732:187:16", + "scope": 5945, + "src": "1732:187:15", "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, { "body": { - "id": 6102, + "id": 5861, "nodeType": "Block", - "src": "2226:392:16", + "src": "2226:392:15", "statements": [ { "condition": { @@ -3368,19 +3368,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 6080, + "id": 5839, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6078, + "id": 5837, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6071, - "src": "2458:1:16", + "referencedDeclaration": 5830, + "src": "2458:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3391,14 +3391,14 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 6079, + "id": 5838, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "2463:1:16", + "src": "2463:1:15", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -3406,33 +3406,33 @@ }, "value": "0" }, - "src": "2458:6:16", + "src": "2458:6:15", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, - "id": 6084, + "id": 5843, "nodeType": "IfStatement", - "src": "2454:45:16", + "src": "2454:45:15", "trueBody": { - "id": 6083, + "id": 5842, "nodeType": "Block", - "src": "2466:33:16", + "src": "2466:33:15", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "30", - "id": 6081, + "id": 5840, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "2487:1:16", + "src": "2487:1:15", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -3440,26 +3440,26 @@ }, "value": "0" }, - "functionReturnParameters": 6077, - "id": 6082, + "functionReturnParameters": 5836, + "id": 5841, "nodeType": "Return", - "src": "2480:8:16" + "src": "2480:8:15" } ] } }, { "assignments": [ - 6086 + 5845 ], "declarations": [ { "constant": false, - "id": 6086, + "id": 5845, "name": "c", "nodeType": "VariableDeclaration", - "scope": 6102, - "src": "2509:9:16", + "scope": 5861, + "src": "2509:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3467,10 +3467,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6085, + "id": 5844, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "2509:7:16", + "src": "2509:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3480,26 +3480,26 @@ "visibility": "internal" } ], - "id": 6090, + "id": 5849, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 6089, + "id": 5848, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6087, + "id": 5846, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6071, - "src": "2521:1:16", + "referencedDeclaration": 5830, + "src": "2521:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3509,25 +3509,25 @@ "operator": "*", "rightExpression": { "argumentTypes": null, - "id": 6088, + "id": 5847, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6073, - "src": "2525:1:16", + "referencedDeclaration": 5832, + "src": "2525:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "2521:5:16", + "src": "2521:5:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", - "src": "2509:17:16" + "src": "2509:17:15" }, { "expression": { @@ -3539,7 +3539,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 6096, + "id": 5855, "isConstant": false, "isLValue": false, "isPure": false, @@ -3550,19 +3550,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 6094, + "id": 5853, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6092, + "id": 5851, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6086, - "src": "2544:1:16", + "referencedDeclaration": 5845, + "src": "2544:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3572,18 +3572,18 @@ "operator": "/", "rightExpression": { "argumentTypes": null, - "id": 6093, + "id": 5852, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6071, - "src": "2548:1:16", + "referencedDeclaration": 5830, + "src": "2548:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "2544:5:16", + "src": "2544:5:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3593,18 +3593,18 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 6095, + "id": 5854, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6073, - "src": "2553:1:16", + "referencedDeclaration": 5832, + "src": "2553:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "2544:10:16", + "src": "2544:10:15", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -3613,14 +3613,14 @@ { "argumentTypes": null, "hexValue": "536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77", - "id": 6097, + "id": 5856, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "2556:35:16", + "src": "2556:35:15", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_9113bb53c2876a3805b2c9242029423fc540a728243ce887ab24c82cf119fba3", @@ -3640,21 +3640,21 @@ "typeString": "literal_string \"SafeMath: multiplication overflow\"" } ], - "id": 6091, + "id": 5850, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, - "src": "2536:7:16", + "referencedDeclaration": 6556, + "src": "2536:7:15", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6098, + "id": 5857, "isConstant": false, "isLValue": false, "isPure": false, @@ -3662,55 +3662,55 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2536:56:16", + "src": "2536:56:15", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6099, + "id": 5858, "nodeType": "ExpressionStatement", - "src": "2536:56:16" + "src": "2536:56:15" }, { "expression": { "argumentTypes": null, - "id": 6100, + "id": 5859, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6086, - "src": "2610:1:16", + "referencedDeclaration": 5845, + "src": "2610:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 6077, - "id": 6101, + "functionReturnParameters": 5836, + "id": 5860, "nodeType": "Return", - "src": "2603:8:16" + "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": 6103, + "id": 5862, "implemented": true, "kind": "function", "modifiers": [], "name": "mul", "nodeType": "FunctionDefinition", "parameters": { - "id": 6074, + "id": 5833, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6071, + "id": 5830, "name": "a", "nodeType": "VariableDeclaration", - "scope": 6103, - "src": "2172:9:16", + "scope": 5862, + "src": "2172:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3718,10 +3718,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6070, + "id": 5829, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "2172:7:16", + "src": "2172:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3732,11 +3732,11 @@ }, { "constant": false, - "id": 6073, + "id": 5832, "name": "b", "nodeType": "VariableDeclaration", - "scope": 6103, - "src": "2183:9:16", + "scope": 5862, + "src": "2183:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3744,10 +3744,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6072, + "id": 5831, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "2183:7:16", + "src": "2183:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3757,19 +3757,19 @@ "visibility": "internal" } ], - "src": "2171:22:16" + "src": "2171:22:15" }, "returnParameters": { - "id": 6077, + "id": 5836, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6076, + "id": 5835, "name": "", "nodeType": "VariableDeclaration", - "scope": 6103, - "src": "2217:7:16", + "scope": 5862, + "src": "2217:7:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3777,10 +3777,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6075, + "id": 5834, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "2217:7:16", + "src": "2217:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3790,19 +3790,19 @@ "visibility": "internal" } ], - "src": "2216:9:16" + "src": "2216:9:15" }, - "scope": 6186, - "src": "2159:459:16", + "scope": 5945, + "src": "2159:459:15", "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, { "body": { - "id": 6118, + "id": 5877, "nodeType": "Block", - "src": "3140:63:16", + "src": "3140:63:15", "statements": [ { "expression": { @@ -3810,12 +3810,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6113, + "id": 5872, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6105, - "src": "3161:1:16", + "referencedDeclaration": 5864, + "src": "3161:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3823,12 +3823,12 @@ }, { "argumentTypes": null, - "id": 6114, + "id": 5873, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6107, - "src": "3164:1:16", + "referencedDeclaration": 5866, + "src": "3164:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3837,14 +3837,14 @@ { "argumentTypes": null, "hexValue": "536166654d6174683a206469766973696f6e206279207a65726f", - "id": 6115, + "id": 5874, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "3167:28:16", + "src": "3167:28:15", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_5b7cc70dda4dc2143e5adb63bd5d1f349504f461dbdfd9bc76fac1f8ca6d019f", @@ -3868,21 +3868,21 @@ "typeString": "literal_string \"SafeMath: division by zero\"" } ], - "id": 6112, + "id": 5871, "name": "div", "nodeType": "Identifier", "overloadedDeclarations": [ - 6119, - 6146 + 5878, + 5905 ], - "referencedDeclaration": 6146, - "src": "3157:3:16", + "referencedDeclaration": 5905, + "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": 6116, + "id": 5875, "isConstant": false, "isLValue": false, "isPure": false, @@ -3890,37 +3890,37 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3157:39:16", + "src": "3157:39:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 6111, - "id": 6117, + "functionReturnParameters": 5870, + "id": 5876, "nodeType": "Return", - "src": "3150:46:16" + "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": 6119, + "id": 5878, "implemented": true, "kind": "function", "modifiers": [], "name": "div", "nodeType": "FunctionDefinition", "parameters": { - "id": 6108, + "id": 5867, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6105, + "id": 5864, "name": "a", "nodeType": "VariableDeclaration", - "scope": 6119, - "src": "3086:9:16", + "scope": 5878, + "src": "3086:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3928,10 +3928,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6104, + "id": 5863, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "3086:7:16", + "src": "3086:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3942,11 +3942,11 @@ }, { "constant": false, - "id": 6107, + "id": 5866, "name": "b", "nodeType": "VariableDeclaration", - "scope": 6119, - "src": "3097:9:16", + "scope": 5878, + "src": "3097:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3954,10 +3954,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6106, + "id": 5865, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "3097:7:16", + "src": "3097:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3967,19 +3967,19 @@ "visibility": "internal" } ], - "src": "3085:22:16" + "src": "3085:22:15" }, "returnParameters": { - "id": 6111, + "id": 5870, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6110, + "id": 5869, "name": "", "nodeType": "VariableDeclaration", - "scope": 6119, - "src": "3131:7:16", + "scope": 5878, + "src": "3131:7:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3987,10 +3987,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6109, + "id": 5868, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "3131:7:16", + "src": "3131:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4000,19 +4000,19 @@ "visibility": "internal" } ], - "src": "3130:9:16" + "src": "3130:9:15" }, - "scope": 6186, - "src": "3073:130:16", + "scope": 5945, + "src": "3073:130:15", "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, { "body": { - "id": 6145, + "id": 5904, "nodeType": "Block", - "src": "3813:243:16", + "src": "3813:243:15", "statements": [ { "expression": { @@ -4024,19 +4024,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 6133, + "id": 5892, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6131, + "id": 5890, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6123, - "src": "3897:1:16", + "referencedDeclaration": 5882, + "src": "3897:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4047,14 +4047,14 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 6132, + "id": 5891, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "3901:1:16", + "src": "3901:1:15", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -4062,7 +4062,7 @@ }, "value": "0" }, - "src": "3897:5:16", + "src": "3897:5:15", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -4070,12 +4070,12 @@ }, { "argumentTypes": null, - "id": 6134, + "id": 5893, "name": "errorMessage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6125, - "src": "3904:12:16", + "referencedDeclaration": 5884, + "src": "3904:12:15", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" @@ -4093,21 +4093,21 @@ "typeString": "string memory" } ], - "id": 6130, + "id": 5889, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, - "src": "3889:7:16", + "referencedDeclaration": 6556, + "src": "3889:7:15", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6135, + "id": 5894, "isConstant": false, "isLValue": false, "isPure": false, @@ -4115,28 +4115,28 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3889:28:16", + "src": "3889:28:15", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6136, + "id": 5895, "nodeType": "ExpressionStatement", - "src": "3889:28:16" + "src": "3889:28:15" }, { "assignments": [ - 6138 + 5897 ], "declarations": [ { "constant": false, - "id": 6138, + "id": 5897, "name": "c", "nodeType": "VariableDeclaration", - "scope": 6145, - "src": "3927:9:16", + "scope": 5904, + "src": "3927:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4144,10 +4144,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6137, + "id": 5896, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "3927:7:16", + "src": "3927:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4157,26 +4157,26 @@ "visibility": "internal" } ], - "id": 6142, + "id": 5901, "initialValue": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 6141, + "id": 5900, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6139, + "id": 5898, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6121, - "src": "3939:1:16", + "referencedDeclaration": 5880, + "src": "3939:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4186,65 +4186,65 @@ "operator": "/", "rightExpression": { "argumentTypes": null, - "id": 6140, + "id": 5899, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6123, - "src": "3943:1:16", + "referencedDeclaration": 5882, + "src": "3943:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "3939:5:16", + "src": "3939:5:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", - "src": "3927:17:16" + "src": "3927:17:15" }, { "expression": { "argumentTypes": null, - "id": 6143, + "id": 5902, "name": "c", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6138, - "src": "4048:1:16", + "referencedDeclaration": 5897, + "src": "4048:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 6129, - "id": 6144, + "functionReturnParameters": 5888, + "id": 5903, "nodeType": "Return", - "src": "4041:8:16" + "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": 6146, + "id": 5905, "implemented": true, "kind": "function", "modifiers": [], "name": "div", "nodeType": "FunctionDefinition", "parameters": { - "id": 6126, + "id": 5885, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6121, + "id": 5880, "name": "a", "nodeType": "VariableDeclaration", - "scope": 6146, - "src": "3731:9:16", + "scope": 5905, + "src": "3731:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4252,10 +4252,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6120, + "id": 5879, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "3731:7:16", + "src": "3731:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4266,11 +4266,11 @@ }, { "constant": false, - "id": 6123, + "id": 5882, "name": "b", "nodeType": "VariableDeclaration", - "scope": 6146, - "src": "3742:9:16", + "scope": 5905, + "src": "3742:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4278,10 +4278,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6122, + "id": 5881, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "3742:7:16", + "src": "3742:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4292,11 +4292,11 @@ }, { "constant": false, - "id": 6125, + "id": 5884, "name": "errorMessage", "nodeType": "VariableDeclaration", - "scope": 6146, - "src": "3753:26:16", + "scope": 5905, + "src": "3753:26:15", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { @@ -4304,10 +4304,10 @@ "typeString": "string" }, "typeName": { - "id": 6124, + "id": 5883, "name": "string", "nodeType": "ElementaryTypeName", - "src": "3753:6:16", + "src": "3753:6:15", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -4317,19 +4317,19 @@ "visibility": "internal" } ], - "src": "3730:50:16" + "src": "3730:50:15" }, "returnParameters": { - "id": 6129, + "id": 5888, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6128, + "id": 5887, "name": "", "nodeType": "VariableDeclaration", - "scope": 6146, - "src": "3804:7:16", + "scope": 5905, + "src": "3804:7:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4337,10 +4337,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6127, + "id": 5886, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "3804:7:16", + "src": "3804:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4350,19 +4350,19 @@ "visibility": "internal" } ], - "src": "3803:9:16" + "src": "3803:9:15" }, - "scope": 6186, - "src": "3718:338:16", + "scope": 5945, + "src": "3718:338:15", "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, { "body": { - "id": 6161, + "id": 5920, "nodeType": "Block", - "src": "4567:61:16", + "src": "4567:61:15", "statements": [ { "expression": { @@ -4370,12 +4370,12 @@ "arguments": [ { "argumentTypes": null, - "id": 6156, + "id": 5915, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6148, - "src": "4588:1:16", + "referencedDeclaration": 5907, + "src": "4588:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4383,12 +4383,12 @@ }, { "argumentTypes": null, - "id": 6157, + "id": 5916, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6150, - "src": "4591:1:16", + "referencedDeclaration": 5909, + "src": "4591:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4397,14 +4397,14 @@ { "argumentTypes": null, "hexValue": "536166654d6174683a206d6f64756c6f206279207a65726f", - "id": 6158, + "id": 5917, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "4594:26:16", + "src": "4594:26:15", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_726e51f7b81fce0a68f5f214f445e275313b20b1633f08ce954ee39abf8d7832", @@ -4428,21 +4428,21 @@ "typeString": "literal_string \"SafeMath: modulo by zero\"" } ], - "id": 6155, + "id": 5914, "name": "mod", "nodeType": "Identifier", "overloadedDeclarations": [ - 6162, - 6185 + 5921, + 5944 ], - "referencedDeclaration": 6185, - "src": "4584:3:16", + "referencedDeclaration": 5944, + "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": 6159, + "id": 5918, "isConstant": false, "isLValue": false, "isPure": false, @@ -4450,37 +4450,37 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4584:37:16", + "src": "4584:37:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 6154, - "id": 6160, + "functionReturnParameters": 5913, + "id": 5919, "nodeType": "Return", - "src": "4577:44:16" + "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": 6162, + "id": 5921, "implemented": true, "kind": "function", "modifiers": [], "name": "mod", "nodeType": "FunctionDefinition", "parameters": { - "id": 6151, + "id": 5910, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6148, + "id": 5907, "name": "a", "nodeType": "VariableDeclaration", - "scope": 6162, - "src": "4513:9:16", + "scope": 5921, + "src": "4513:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4488,10 +4488,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6147, + "id": 5906, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "4513:7:16", + "src": "4513:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4502,11 +4502,11 @@ }, { "constant": false, - "id": 6150, + "id": 5909, "name": "b", "nodeType": "VariableDeclaration", - "scope": 6162, - "src": "4524:9:16", + "scope": 5921, + "src": "4524:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4514,10 +4514,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6149, + "id": 5908, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "4524:7:16", + "src": "4524:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4527,19 +4527,19 @@ "visibility": "internal" } ], - "src": "4512:22:16" + "src": "4512:22:15" }, "returnParameters": { - "id": 6154, + "id": 5913, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6153, + "id": 5912, "name": "", "nodeType": "VariableDeclaration", - "scope": 6162, - "src": "4558:7:16", + "scope": 5921, + "src": "4558:7:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4547,10 +4547,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6152, + "id": 5911, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "4558:7:16", + "src": "4558:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4560,19 +4560,19 @@ "visibility": "internal" } ], - "src": "4557:9:16" + "src": "4557:9:15" }, - "scope": 6186, - "src": "4500:128:16", + "scope": 5945, + "src": "4500:128:15", "stateMutability": "pure", "superFunction": null, "visibility": "internal" }, { "body": { - "id": 6184, + "id": 5943, "nodeType": "Block", - "src": "5227:68:16", + "src": "5227:68:15", "statements": [ { "expression": { @@ -4584,19 +4584,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 6176, + "id": 5935, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6174, + "id": 5933, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6166, - "src": "5245:1:16", + "referencedDeclaration": 5925, + "src": "5245:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4607,14 +4607,14 @@ "rightExpression": { "argumentTypes": null, "hexValue": "30", - "id": 6175, + "id": 5934, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "5250:1:16", + "src": "5250:1:15", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -4622,7 +4622,7 @@ }, "value": "0" }, - "src": "5245:6:16", + "src": "5245:6:15", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -4630,12 +4630,12 @@ }, { "argumentTypes": null, - "id": 6177, + "id": 5936, "name": "errorMessage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6168, - "src": "5253:12:16", + "referencedDeclaration": 5927, + "src": "5253:12:15", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" @@ -4653,21 +4653,21 @@ "typeString": "string memory" } ], - "id": 6173, + "id": 5932, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 6796, - 6797 + 6555, + 6556 ], - "referencedDeclaration": 6797, - "src": "5237:7:16", + "referencedDeclaration": 6556, + "src": "5237:7:15", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 6178, + "id": 5937, "isConstant": false, "isLValue": false, "isPure": false, @@ -4675,15 +4675,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5237:29:16", + "src": "5237:29:15", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 6179, + "id": 5938, "nodeType": "ExpressionStatement", - "src": "5237:29:16" + "src": "5237:29:15" }, { "expression": { @@ -4692,19 +4692,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 6182, + "id": 5941, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 6180, + "id": 5939, "name": "a", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6164, - "src": "5283:1:16", + "referencedDeclaration": 5923, + "src": "5283:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4714,48 +4714,48 @@ "operator": "%", "rightExpression": { "argumentTypes": null, - "id": 6181, + "id": 5940, "name": "b", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6166, - "src": "5287:1:16", + "referencedDeclaration": 5925, + "src": "5287:1:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "5283:5:16", + "src": "5283:5:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 6172, - "id": 6183, + "functionReturnParameters": 5931, + "id": 5942, "nodeType": "Return", - "src": "5276:12:16" + "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": 6185, + "id": 5944, "implemented": true, "kind": "function", "modifiers": [], "name": "mod", "nodeType": "FunctionDefinition", "parameters": { - "id": 6169, + "id": 5928, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6164, + "id": 5923, "name": "a", "nodeType": "VariableDeclaration", - "scope": 6185, - "src": "5145:9:16", + "scope": 5944, + "src": "5145:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4763,10 +4763,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6163, + "id": 5922, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "5145:7:16", + "src": "5145:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4777,11 +4777,11 @@ }, { "constant": false, - "id": 6166, + "id": 5925, "name": "b", "nodeType": "VariableDeclaration", - "scope": 6185, - "src": "5156:9:16", + "scope": 5944, + "src": "5156:9:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4789,10 +4789,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6165, + "id": 5924, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "5156:7:16", + "src": "5156:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4803,11 +4803,11 @@ }, { "constant": false, - "id": 6168, + "id": 5927, "name": "errorMessage", "nodeType": "VariableDeclaration", - "scope": 6185, - "src": "5167:26:16", + "scope": 5944, + "src": "5167:26:15", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { @@ -4815,10 +4815,10 @@ "typeString": "string" }, "typeName": { - "id": 6167, + "id": 5926, "name": "string", "nodeType": "ElementaryTypeName", - "src": "5167:6:16", + "src": "5167:6:15", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" @@ -4828,19 +4828,19 @@ "visibility": "internal" } ], - "src": "5144:50:16" + "src": "5144:50:15" }, "returnParameters": { - "id": 6172, + "id": 5931, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 6171, + "id": 5930, "name": "", "nodeType": "VariableDeclaration", - "scope": 6185, - "src": "5218:7:16", + "scope": 5944, + "src": "5218:7:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4848,10 +4848,10 @@ "typeString": "uint256" }, "typeName": { - "id": 6170, + "id": 5929, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "5218:7:16", + "src": "5218:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4861,20 +4861,20 @@ "visibility": "internal" } ], - "src": "5217:9:16" + "src": "5217:9:15" }, - "scope": 6186, - "src": "5132:163:16", + "scope": 5945, + "src": "5132:163:15", "stateMutability": "pure", "superFunction": null, "visibility": "internal" } ], - "scope": 6187, - "src": "589:4708:16" + "scope": 5946, + "src": "589:4708:15" } ], - "src": "0:5298:16" + "src": "0:5298:15" }, "compiler": { "name": "solc", @@ -4882,7 +4882,7 @@ }, "networks": {}, "schemaVersion": "3.2.0", - "updatedAt": "2020-09-11T10:54:21.707Z", + "updatedAt": "2020-10-02T11:33:45.799Z", "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 new file mode 100644 index 000000000..943b3e620 --- /dev/null +++ b/artifacts/address.json @@ -0,0 +1 @@ +{"ganache":{"DTFactory":"0x3fd7A00106038Fb5c802c6d63fa7147Fe429E83a","BFactory":"0x53eDF9289B0898e1652Ce009AACf8D25fA9A42F8","FixedRateExchange":"0xeD1DfC5F3a589CfC4E8B91C1fbfC18FC6699Fbde","Metadata":"0xFD8a7b6297153397B7eb4356C47dbd381d58bFF4"}} \ No newline at end of file diff --git a/package.json b/package.json index 5bff7785d..9c434a064 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@oceanprotocol/contracts", - "version": "0.5.2", + "version": "0.5.3", "description": "Ocean Protocol L1 - DataTokens", "bugs": { "url": "https://github.com/oceanprotocol/contracts/issues" diff --git a/setup.cfg b/setup.cfg index 1786e7620..c206dc0f3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.5.2 +current_version = 0.5.3 commit = True tag = True diff --git a/setup.py b/setup.py index 9357795dc..c9d04b877 100644 --- a/setup.py +++ b/setup.py @@ -50,6 +50,6 @@ test_suite='tests', tests_require=test_requirements, url='https://github.com/oceanprotocol/ocean-contracts', - version='0.5.2', + version='0.5.3', zip_safe=False, ) \ No newline at end of file diff --git a/truffle.js b/truffle.js index cec7caa84..cee0a242b 100644 --- a/truffle.js +++ b/truffle.js @@ -101,7 +101,7 @@ module.exports = { rinkeby: { provider: () => setupWallet(`https://rinkeby.infura.io/v3/${process.env.INFURA_TOKEN}`), network_id: 0x4, - from: '0xD6e0F938323A9D9d52b26700716E2e8E027f3795', + from: '0x2c63bf697f74c72cfb727fb5eb8e6266ce341e13', gas: 7 * 1000000, gasPrice: utils.toWei('8', 'gwei') },