@superfluid-finance/ethereum-contracts 1.2.2-dev.6a8632e.0 → 1.2.2-dev.bd59c6c.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/contracts/AccessControl.json +1 -1
- package/build/contracts/AccessControlEnumerable.json +1 -1
- package/build/contracts/Address.json +1 -1
- package/build/contracts/AgreementBase.json +18 -18
- package/build/contracts/AgreementLibrary.json +450 -243
- package/build/contracts/BaseRelayRecipient.json +112 -112
- package/build/contracts/BatchLiquidator.json +178 -178
- package/build/contracts/BatchOperation.json +1138 -1138
- package/build/contracts/CFAv1Library.json +2531 -2531
- package/build/contracts/CallUtils.json +478 -478
- package/build/contracts/ClosingOnUpdateFlowTestApp.json +1521 -1521
- package/build/contracts/ConstantFlowAgreementV1.json +19315 -18335
- package/build/contracts/Context.json +1 -1
- package/build/contracts/ContextDefinitions.json +1138 -1138
- package/build/contracts/Create2.json +1 -1
- package/build/contracts/CustomSuperTokenBase.json +31 -31
- package/build/contracts/ERC165.json +1 -1
- package/build/contracts/ERC1820Implementer.json +1 -1
- package/build/contracts/ERC20.json +1 -1
- package/build/contracts/ERC20Burnable.json +1 -1
- package/build/contracts/ERC20Pausable.json +1 -1
- package/build/contracts/ERC20PresetMinterPauser.json +1 -1
- package/build/contracts/ERC20WithTokenInfo.json +36 -36
- package/build/contracts/ERC721.json +1 -1
- package/build/contracts/ERC777Helper.json +660 -660
- package/build/contracts/ERC777RecipientDrainingGas.json +855 -855
- package/build/contracts/ERC777RecipientReverting.json +855 -855
- package/build/contracts/EnumerableSet.json +1 -1
- package/build/contracts/ExclusiveInflowTestApp.json +1521 -1521
- package/build/contracts/FixedSizeData.json +405 -405
- package/build/contracts/FlowExchangeTestApp.json +1522 -1522
- package/build/contracts/FlowOperatorDefinitions.json +1138 -1138
- package/build/contracts/FullUpgradableSuperTokenProxy.json +113 -113
- package/build/contracts/IAccessControl.json +1 -1
- package/build/contracts/IAccessControlEnumerable.json +1 -1
- package/build/contracts/IConstantFlowAgreementV1.json +1036 -1036
- package/build/contracts/IDAv1Library.json +4183 -4183
- package/build/contracts/IERC165.json +1 -1
- package/build/contracts/IERC1820Implementer.json +1 -1
- package/build/contracts/IERC1820Registry.json +1 -1
- package/build/contracts/IERC20.json +1 -1
- package/build/contracts/IERC20Metadata.json +1 -1
- package/build/contracts/IERC721.json +1 -1
- package/build/contracts/IERC721Metadata.json +1 -1
- package/build/contracts/IERC721Receiver.json +1 -1
- package/build/contracts/IERC777.json +1 -1
- package/build/contracts/IERC777Recipient.json +1 -1
- package/build/contracts/IERC777Sender.json +1 -1
- package/build/contracts/IInstantDistributionAgreementV1.json +1182 -1182
- package/build/contracts/IMaticBridgedNativeSuperToken.json +110 -110
- package/build/contracts/IMaticBridgedNativeSuperTokenCustom.json +110 -110
- package/build/contracts/IMultiSigWallet.json +45 -45
- package/build/contracts/IPureSuperToken.json +69 -69
- package/build/contracts/IPureSuperTokenCustom.json +69 -69
- package/build/contracts/IRelayRecipient.json +49 -49
- package/build/contracts/IResolver.json +73 -73
- package/build/contracts/ISETH.json +79 -79
- package/build/contracts/ISETHCustom.json +79 -79
- package/build/contracts/ISuperAgreement.json +88 -88
- package/build/contracts/ISuperApp.json +351 -351
- package/build/contracts/ISuperToken.json +1008 -1008
- package/build/contracts/ISuperTokenFactory.json +280 -280
- package/build/contracts/ISuperfluid.json +1466 -1466
- package/build/contracts/ISuperfluidGovernance.json +404 -404
- package/build/contracts/ISuperfluidToken.json +774 -774
- package/build/contracts/ITOGAv1.json +1431 -1431
- package/build/contracts/ITOGAv2.json +1431 -1431
- package/build/contracts/Initializable.json +1 -1
- package/build/contracts/InstantDistributionAgreementV1.json +9343 -9343
- package/build/contracts/Int96SafeMath.json +504 -504
- package/build/contracts/MaticBridgedNativeSuperTokenProxy.json +228 -228
- package/build/contracts/NonClosableOutflowTestApp.json +1522 -1522
- package/build/contracts/Ownable.json +1 -1
- package/build/contracts/Pausable.json +1 -1
- package/build/contracts/Proxy.json +1 -1
- package/build/contracts/PureSuperToken.json +106 -106
- package/build/contracts/Resolver.json +98 -98
- package/build/contracts/SETHProxy.json +224 -224
- package/build/contracts/SafeCast.json +1 -1
- package/build/contracts/SafeERC20.json +1 -1
- package/build/contracts/SafeMath.json +1 -1
- package/build/contracts/SelfDeletingFlowTestApp.json +1521 -1521
- package/build/contracts/SlotsBitmapLibrary.json +794 -794
- package/build/contracts/Strings.json +1 -1
- package/build/contracts/SuperAppBase.json +394 -394
- package/build/contracts/SuperAppDefinitions.json +1138 -1138
- package/build/contracts/SuperToken.json +2351 -2351
- package/build/contracts/SuperTokenFactory.json +731 -731
- package/build/contracts/SuperTokenFactoryBase.json +721 -721
- package/build/contracts/SuperTokenFactoryHelper.json +724 -724
- package/build/contracts/SuperUpgrader.json +437 -437
- package/build/contracts/Superfluid.json +9812 -10169
- package/build/contracts/SuperfluidFrameworkDeployer.json +535 -535
- package/build/contracts/SuperfluidGovernanceBase.json +3471 -3789
- package/build/contracts/SuperfluidGovernanceConfigs.json +1138 -1138
- package/build/contracts/SuperfluidGovernanceII.json +2097 -2347
- package/build/contracts/SuperfluidGovernanceIIProxy.json +214 -214
- package/build/contracts/SuperfluidLoader.json +207 -207
- package/build/contracts/SuperfluidToken.json +1345 -1345
- package/build/contracts/TOGA.json +1448 -1448
- package/build/contracts/TestGovernance.json +2195 -2445
- package/build/contracts/TestToken.json +94 -94
- package/build/contracts/TokenCustodian.json +214 -214
- package/build/contracts/TokenInfo.json +58 -58
- package/build/contracts/UInt128SafeMath.json +97 -97
- package/build/contracts/UUPSProxiable.json +132 -132
- package/build/contracts/UUPSProxy.json +81 -81
- package/build/contracts/UUPSUtils.json +37 -37
- package/build/contracts-sizes.txt +3 -4
- package/contracts/agreements/AgreementLibrary.sol +1 -0
- package/contracts/agreements/ConstantFlowAgreementV1.sol +71 -35
- package/contracts/agreements/InstantDistributionAgreementV1.sol +3 -2
- package/contracts/gov/SuperfluidGovernanceBase.sol +9 -26
- package/contracts/{agreements → libs}/SlotsBitmapLibrary.sol +1 -3
- package/contracts/mocks/SuperfluidMock.sol +2 -2
- package/contracts/superfluid/Superfluid.sol +5 -10
- package/package.json +2 -1
- package/scripts/gov-create-new-app-registration-key.js +26 -3
|
@@ -7,30 +7,30 @@
|
|
|
7
7
|
"immutableReferences": {},
|
|
8
8
|
"generatedSources": [],
|
|
9
9
|
"deployedGeneratedSources": [],
|
|
10
|
-
"sourceMap": "163:2597:
|
|
11
|
-
"deployedSourceMap": "163:2597:
|
|
10
|
+
"sourceMap": "163:2597:66:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;163:2597:66;;;;;;;;;;;;;;;;;",
|
|
11
|
+
"deployedSourceMap": "163:2597:66:-:0;;;;;;;;",
|
|
12
12
|
"source": "// SPDX-License-Identifier: AGPLv3\npragma solidity 0.8.13;\n\n/**\n * @title Int96SafeMath\n * @dev Int96 math operations with safety checks that revert on error.\n */\nlibrary Int96SafeMath {\n int96 constant private _INT96_MIN = -2**95;\n\n /**\n * @dev Returns the multiplication of two signed integers, reverting on\n * overflow.\n *\n * Counterpart to Solidity's `*` operator.\n *\n * Requirements:\n *\n * - Multiplication cannot overflow.\n */\n function mul(int96 a, int96 b, string memory errorMessage) internal pure returns (int96) {\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 require(!(a == -1 && b == _INT96_MIN), errorMessage);\n int96 c;\n \n unchecked {\n c = a * b;\n }\n \n require(c / a == b, errorMessage);\n\n return c;\n }\n\n /**\n * @dev Returns the integer division of two signed 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 *\n * - The divisor cannot be zero.\n */\n function div(int96 a, int96 b, string memory errorMessage) internal pure returns (int96) {\n require(b != 0, errorMessage);\n require(!(b == -1 && a == _INT96_MIN), errorMessage);\n\n int96 c = a / b;\n\n return c;\n }\n\n /**\n * @dev Returns the subtraction of two signed integers, reverting on\n * overflow.\n *\n * Counterpart to Solidity's `-` operator.\n *\n * Requirements:\n *\n * - Subtraction cannot overflow.\n */\n function sub(int96 a, int96 b, string memory errorMessage) internal pure returns (int96) {\n int96 c;\n\n unchecked {\n c = a - b;\n }\n\n require((b >= 0 && c <= a) || (b < 0 && c > a), errorMessage);\n\n return c;\n }\n\n /**\n * @dev Returns the addition of two signed integers, reverting on\n * overflow.\n *\n * Counterpart to Solidity's `+` operator.\n *\n * Requirements:\n *\n * - Addition cannot overflow.\n */\n function add(int96 a, int96 b, string memory errorMessage) internal pure returns (int96) {\n int96 c;\n \n unchecked {\n c = a + b;\n }\n\n require((b >= 0 && c >= a) || (b < 0 && c < a), errorMessage);\n\n return c;\n }\n}\n",
|
|
13
13
|
"sourcePath": "/home/runner/work/protocol-monorepo/protocol-monorepo/packages/ethereum-contracts/contracts/libs/Int96SafeMath.sol",
|
|
14
14
|
"ast": {
|
|
15
15
|
"absolutePath": "project:/contracts/libs/Int96SafeMath.sol",
|
|
16
16
|
"exportedSymbols": {
|
|
17
17
|
"Int96SafeMath": [
|
|
18
|
-
|
|
18
|
+
20341
|
|
19
19
|
]
|
|
20
20
|
},
|
|
21
|
-
"id":
|
|
21
|
+
"id": 20342,
|
|
22
22
|
"license": "AGPLv3",
|
|
23
23
|
"nodeType": "SourceUnit",
|
|
24
24
|
"nodes": [
|
|
25
25
|
{
|
|
26
|
-
"id":
|
|
26
|
+
"id": 20144,
|
|
27
27
|
"literals": [
|
|
28
28
|
"solidity",
|
|
29
29
|
"0.8",
|
|
30
30
|
".13"
|
|
31
31
|
],
|
|
32
32
|
"nodeType": "PragmaDirective",
|
|
33
|
-
"src": "35:23:
|
|
33
|
+
"src": "35:23:66"
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
"abstract": false,
|
|
@@ -39,29 +39,29 @@
|
|
|
39
39
|
"contractDependencies": [],
|
|
40
40
|
"contractKind": "library",
|
|
41
41
|
"documentation": {
|
|
42
|
-
"id":
|
|
42
|
+
"id": 20145,
|
|
43
43
|
"nodeType": "StructuredDocumentation",
|
|
44
|
-
"src": "60:102:
|
|
44
|
+
"src": "60:102:66",
|
|
45
45
|
"text": " @title Int96SafeMath\n @dev Int96 math operations with safety checks that revert on error."
|
|
46
46
|
},
|
|
47
47
|
"fullyImplemented": true,
|
|
48
|
-
"id":
|
|
48
|
+
"id": 20341,
|
|
49
49
|
"linearizedBaseContracts": [
|
|
50
|
-
|
|
50
|
+
20341
|
|
51
51
|
],
|
|
52
52
|
"name": "Int96SafeMath",
|
|
53
|
-
"nameLocation": "171:13:
|
|
53
|
+
"nameLocation": "171:13:66",
|
|
54
54
|
"nodeType": "ContractDefinition",
|
|
55
55
|
"nodes": [
|
|
56
56
|
{
|
|
57
57
|
"constant": true,
|
|
58
|
-
"id":
|
|
58
|
+
"id": 20151,
|
|
59
59
|
"mutability": "constant",
|
|
60
60
|
"name": "_INT96_MIN",
|
|
61
|
-
"nameLocation": "214:10:
|
|
61
|
+
"nameLocation": "214:10:66",
|
|
62
62
|
"nodeType": "VariableDeclaration",
|
|
63
|
-
"scope":
|
|
64
|
-
"src": "191:42:
|
|
63
|
+
"scope": 20341,
|
|
64
|
+
"src": "191:42:66",
|
|
65
65
|
"stateVariable": true,
|
|
66
66
|
"storageLocation": "default",
|
|
67
67
|
"typeDescriptions": {
|
|
@@ -69,10 +69,10 @@
|
|
|
69
69
|
"typeString": "int96"
|
|
70
70
|
},
|
|
71
71
|
"typeName": {
|
|
72
|
-
"id":
|
|
72
|
+
"id": 20146,
|
|
73
73
|
"name": "int96",
|
|
74
74
|
"nodeType": "ElementaryTypeName",
|
|
75
|
-
"src": "191:5:
|
|
75
|
+
"src": "191:5:66",
|
|
76
76
|
"typeDescriptions": {
|
|
77
77
|
"typeIdentifier": "t_int96",
|
|
78
78
|
"typeString": "int96"
|
|
@@ -83,13 +83,13 @@
|
|
|
83
83
|
"typeIdentifier": "t_rational_minus_39614081257132168796771975168_by_1",
|
|
84
84
|
"typeString": "int_const -39614081257132168796771975168"
|
|
85
85
|
},
|
|
86
|
-
"id":
|
|
86
|
+
"id": 20150,
|
|
87
87
|
"isConstant": false,
|
|
88
88
|
"isLValue": false,
|
|
89
89
|
"isPure": true,
|
|
90
90
|
"lValueRequested": false,
|
|
91
91
|
"leftExpression": {
|
|
92
|
-
"id":
|
|
92
|
+
"id": 20148,
|
|
93
93
|
"isConstant": false,
|
|
94
94
|
"isLValue": false,
|
|
95
95
|
"isPure": true,
|
|
@@ -97,17 +97,17 @@
|
|
|
97
97
|
"nodeType": "UnaryOperation",
|
|
98
98
|
"operator": "-",
|
|
99
99
|
"prefix": true,
|
|
100
|
-
"src": "227:2:
|
|
100
|
+
"src": "227:2:66",
|
|
101
101
|
"subExpression": {
|
|
102
102
|
"hexValue": "32",
|
|
103
|
-
"id":
|
|
103
|
+
"id": 20147,
|
|
104
104
|
"isConstant": false,
|
|
105
105
|
"isLValue": false,
|
|
106
106
|
"isPure": true,
|
|
107
107
|
"kind": "number",
|
|
108
108
|
"lValueRequested": false,
|
|
109
109
|
"nodeType": "Literal",
|
|
110
|
-
"src": "228:1:
|
|
110
|
+
"src": "228:1:66",
|
|
111
111
|
"typeDescriptions": {
|
|
112
112
|
"typeIdentifier": "t_rational_2_by_1",
|
|
113
113
|
"typeString": "int_const 2"
|
|
@@ -123,21 +123,21 @@
|
|
|
123
123
|
"operator": "**",
|
|
124
124
|
"rightExpression": {
|
|
125
125
|
"hexValue": "3935",
|
|
126
|
-
"id":
|
|
126
|
+
"id": 20149,
|
|
127
127
|
"isConstant": false,
|
|
128
128
|
"isLValue": false,
|
|
129
129
|
"isPure": true,
|
|
130
130
|
"kind": "number",
|
|
131
131
|
"lValueRequested": false,
|
|
132
132
|
"nodeType": "Literal",
|
|
133
|
-
"src": "231:2:
|
|
133
|
+
"src": "231:2:66",
|
|
134
134
|
"typeDescriptions": {
|
|
135
135
|
"typeIdentifier": "t_rational_95_by_1",
|
|
136
136
|
"typeString": "int_const 95"
|
|
137
137
|
},
|
|
138
138
|
"value": "95"
|
|
139
139
|
},
|
|
140
|
-
"src": "227:6:
|
|
140
|
+
"src": "227:6:66",
|
|
141
141
|
"typeDescriptions": {
|
|
142
142
|
"typeIdentifier": "t_rational_minus_39614081257132168796771975168_by_1",
|
|
143
143
|
"typeString": "int_const -39614081257132168796771975168"
|
|
@@ -147,9 +147,9 @@
|
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
149
|
"body": {
|
|
150
|
-
"id":
|
|
150
|
+
"id": 20205,
|
|
151
151
|
"nodeType": "Block",
|
|
152
|
-
"src": "568:492:
|
|
152
|
+
"src": "568:492:66",
|
|
153
153
|
"statements": [
|
|
154
154
|
{
|
|
155
155
|
"condition": {
|
|
@@ -157,18 +157,18 @@
|
|
|
157
157
|
"typeIdentifier": "t_int96",
|
|
158
158
|
"typeString": "int96"
|
|
159
159
|
},
|
|
160
|
-
"id":
|
|
160
|
+
"id": 20165,
|
|
161
161
|
"isConstant": false,
|
|
162
162
|
"isLValue": false,
|
|
163
163
|
"isPure": false,
|
|
164
164
|
"lValueRequested": false,
|
|
165
165
|
"leftExpression": {
|
|
166
|
-
"id":
|
|
166
|
+
"id": 20163,
|
|
167
167
|
"name": "a",
|
|
168
168
|
"nodeType": "Identifier",
|
|
169
169
|
"overloadedDeclarations": [],
|
|
170
|
-
"referencedDeclaration":
|
|
171
|
-
"src": "800:1:
|
|
170
|
+
"referencedDeclaration": 20154,
|
|
171
|
+
"src": "800:1:66",
|
|
172
172
|
"typeDescriptions": {
|
|
173
173
|
"typeIdentifier": "t_int96",
|
|
174
174
|
"typeString": "int96"
|
|
@@ -178,55 +178,55 @@
|
|
|
178
178
|
"operator": "==",
|
|
179
179
|
"rightExpression": {
|
|
180
180
|
"hexValue": "30",
|
|
181
|
-
"id":
|
|
181
|
+
"id": 20164,
|
|
182
182
|
"isConstant": false,
|
|
183
183
|
"isLValue": false,
|
|
184
184
|
"isPure": true,
|
|
185
185
|
"kind": "number",
|
|
186
186
|
"lValueRequested": false,
|
|
187
187
|
"nodeType": "Literal",
|
|
188
|
-
"src": "805:1:
|
|
188
|
+
"src": "805:1:66",
|
|
189
189
|
"typeDescriptions": {
|
|
190
190
|
"typeIdentifier": "t_rational_0_by_1",
|
|
191
191
|
"typeString": "int_const 0"
|
|
192
192
|
},
|
|
193
193
|
"value": "0"
|
|
194
194
|
},
|
|
195
|
-
"src": "800:6:
|
|
195
|
+
"src": "800:6:66",
|
|
196
196
|
"typeDescriptions": {
|
|
197
197
|
"typeIdentifier": "t_bool",
|
|
198
198
|
"typeString": "bool"
|
|
199
199
|
}
|
|
200
200
|
},
|
|
201
|
-
"id":
|
|
201
|
+
"id": 20169,
|
|
202
202
|
"nodeType": "IfStatement",
|
|
203
|
-
"src": "796:45:
|
|
203
|
+
"src": "796:45:66",
|
|
204
204
|
"trueBody": {
|
|
205
|
-
"id":
|
|
205
|
+
"id": 20168,
|
|
206
206
|
"nodeType": "Block",
|
|
207
|
-
"src": "808:33:
|
|
207
|
+
"src": "808:33:66",
|
|
208
208
|
"statements": [
|
|
209
209
|
{
|
|
210
210
|
"expression": {
|
|
211
211
|
"hexValue": "30",
|
|
212
|
-
"id":
|
|
212
|
+
"id": 20166,
|
|
213
213
|
"isConstant": false,
|
|
214
214
|
"isLValue": false,
|
|
215
215
|
"isPure": true,
|
|
216
216
|
"kind": "number",
|
|
217
217
|
"lValueRequested": false,
|
|
218
218
|
"nodeType": "Literal",
|
|
219
|
-
"src": "829:1:
|
|
219
|
+
"src": "829:1:66",
|
|
220
220
|
"typeDescriptions": {
|
|
221
221
|
"typeIdentifier": "t_rational_0_by_1",
|
|
222
222
|
"typeString": "int_const 0"
|
|
223
223
|
},
|
|
224
224
|
"value": "0"
|
|
225
225
|
},
|
|
226
|
-
"functionReturnParameters":
|
|
227
|
-
"id":
|
|
226
|
+
"functionReturnParameters": 20162,
|
|
227
|
+
"id": 20167,
|
|
228
228
|
"nodeType": "Return",
|
|
229
|
-
"src": "822:8:
|
|
229
|
+
"src": "822:8:66"
|
|
230
230
|
}
|
|
231
231
|
]
|
|
232
232
|
}
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
"expression": {
|
|
236
236
|
"arguments": [
|
|
237
237
|
{
|
|
238
|
-
"id":
|
|
238
|
+
"id": 20180,
|
|
239
239
|
"isConstant": false,
|
|
240
240
|
"isLValue": false,
|
|
241
241
|
"isPure": false,
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
"nodeType": "UnaryOperation",
|
|
244
244
|
"operator": "!",
|
|
245
245
|
"prefix": true,
|
|
246
|
-
"src": "859:29:
|
|
246
|
+
"src": "859:29:66",
|
|
247
247
|
"subExpression": {
|
|
248
248
|
"components": [
|
|
249
249
|
{
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
"typeIdentifier": "t_bool",
|
|
252
252
|
"typeString": "bool"
|
|
253
253
|
},
|
|
254
|
-
"id":
|
|
254
|
+
"id": 20178,
|
|
255
255
|
"isConstant": false,
|
|
256
256
|
"isLValue": false,
|
|
257
257
|
"isPure": false,
|
|
@@ -261,18 +261,18 @@
|
|
|
261
261
|
"typeIdentifier": "t_int96",
|
|
262
262
|
"typeString": "int96"
|
|
263
263
|
},
|
|
264
|
-
"id":
|
|
264
|
+
"id": 20174,
|
|
265
265
|
"isConstant": false,
|
|
266
266
|
"isLValue": false,
|
|
267
267
|
"isPure": false,
|
|
268
268
|
"lValueRequested": false,
|
|
269
269
|
"leftExpression": {
|
|
270
|
-
"id":
|
|
270
|
+
"id": 20171,
|
|
271
271
|
"name": "a",
|
|
272
272
|
"nodeType": "Identifier",
|
|
273
273
|
"overloadedDeclarations": [],
|
|
274
|
-
"referencedDeclaration":
|
|
275
|
-
"src": "861:1:
|
|
274
|
+
"referencedDeclaration": 20154,
|
|
275
|
+
"src": "861:1:66",
|
|
276
276
|
"typeDescriptions": {
|
|
277
277
|
"typeIdentifier": "t_int96",
|
|
278
278
|
"typeString": "int96"
|
|
@@ -281,7 +281,7 @@
|
|
|
281
281
|
"nodeType": "BinaryOperation",
|
|
282
282
|
"operator": "==",
|
|
283
283
|
"rightExpression": {
|
|
284
|
-
"id":
|
|
284
|
+
"id": 20173,
|
|
285
285
|
"isConstant": false,
|
|
286
286
|
"isLValue": false,
|
|
287
287
|
"isPure": true,
|
|
@@ -289,17 +289,17 @@
|
|
|
289
289
|
"nodeType": "UnaryOperation",
|
|
290
290
|
"operator": "-",
|
|
291
291
|
"prefix": true,
|
|
292
|
-
"src": "866:2:
|
|
292
|
+
"src": "866:2:66",
|
|
293
293
|
"subExpression": {
|
|
294
294
|
"hexValue": "31",
|
|
295
|
-
"id":
|
|
295
|
+
"id": 20172,
|
|
296
296
|
"isConstant": false,
|
|
297
297
|
"isLValue": false,
|
|
298
298
|
"isPure": true,
|
|
299
299
|
"kind": "number",
|
|
300
300
|
"lValueRequested": false,
|
|
301
301
|
"nodeType": "Literal",
|
|
302
|
-
"src": "867:1:
|
|
302
|
+
"src": "867:1:66",
|
|
303
303
|
"typeDescriptions": {
|
|
304
304
|
"typeIdentifier": "t_rational_1_by_1",
|
|
305
305
|
"typeString": "int_const 1"
|
|
@@ -311,7 +311,7 @@
|
|
|
311
311
|
"typeString": "int_const -1"
|
|
312
312
|
}
|
|
313
313
|
},
|
|
314
|
-
"src": "861:7:
|
|
314
|
+
"src": "861:7:66",
|
|
315
315
|
"typeDescriptions": {
|
|
316
316
|
"typeIdentifier": "t_bool",
|
|
317
317
|
"typeString": "bool"
|
|
@@ -324,18 +324,18 @@
|
|
|
324
324
|
"typeIdentifier": "t_int96",
|
|
325
325
|
"typeString": "int96"
|
|
326
326
|
},
|
|
327
|
-
"id":
|
|
327
|
+
"id": 20177,
|
|
328
328
|
"isConstant": false,
|
|
329
329
|
"isLValue": false,
|
|
330
330
|
"isPure": false,
|
|
331
331
|
"lValueRequested": false,
|
|
332
332
|
"leftExpression": {
|
|
333
|
-
"id":
|
|
333
|
+
"id": 20175,
|
|
334
334
|
"name": "b",
|
|
335
335
|
"nodeType": "Identifier",
|
|
336
336
|
"overloadedDeclarations": [],
|
|
337
|
-
"referencedDeclaration":
|
|
338
|
-
"src": "872:1:
|
|
337
|
+
"referencedDeclaration": 20156,
|
|
338
|
+
"src": "872:1:66",
|
|
339
339
|
"typeDescriptions": {
|
|
340
340
|
"typeIdentifier": "t_int96",
|
|
341
341
|
"typeString": "int96"
|
|
@@ -344,38 +344,38 @@
|
|
|
344
344
|
"nodeType": "BinaryOperation",
|
|
345
345
|
"operator": "==",
|
|
346
346
|
"rightExpression": {
|
|
347
|
-
"id":
|
|
347
|
+
"id": 20176,
|
|
348
348
|
"name": "_INT96_MIN",
|
|
349
349
|
"nodeType": "Identifier",
|
|
350
350
|
"overloadedDeclarations": [],
|
|
351
|
-
"referencedDeclaration":
|
|
352
|
-
"src": "877:10:
|
|
351
|
+
"referencedDeclaration": 20151,
|
|
352
|
+
"src": "877:10:66",
|
|
353
353
|
"typeDescriptions": {
|
|
354
354
|
"typeIdentifier": "t_int96",
|
|
355
355
|
"typeString": "int96"
|
|
356
356
|
}
|
|
357
357
|
},
|
|
358
|
-
"src": "872:15:
|
|
358
|
+
"src": "872:15:66",
|
|
359
359
|
"typeDescriptions": {
|
|
360
360
|
"typeIdentifier": "t_bool",
|
|
361
361
|
"typeString": "bool"
|
|
362
362
|
}
|
|
363
363
|
},
|
|
364
|
-
"src": "861:26:
|
|
364
|
+
"src": "861:26:66",
|
|
365
365
|
"typeDescriptions": {
|
|
366
366
|
"typeIdentifier": "t_bool",
|
|
367
367
|
"typeString": "bool"
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
370
|
],
|
|
371
|
-
"id":
|
|
371
|
+
"id": 20179,
|
|
372
372
|
"isConstant": false,
|
|
373
373
|
"isInlineArray": false,
|
|
374
374
|
"isLValue": false,
|
|
375
375
|
"isPure": false,
|
|
376
376
|
"lValueRequested": false,
|
|
377
377
|
"nodeType": "TupleExpression",
|
|
378
|
-
"src": "860:28:
|
|
378
|
+
"src": "860:28:66",
|
|
379
379
|
"typeDescriptions": {
|
|
380
380
|
"typeIdentifier": "t_bool",
|
|
381
381
|
"typeString": "bool"
|
|
@@ -387,12 +387,12 @@
|
|
|
387
387
|
}
|
|
388
388
|
},
|
|
389
389
|
{
|
|
390
|
-
"id":
|
|
390
|
+
"id": 20181,
|
|
391
391
|
"name": "errorMessage",
|
|
392
392
|
"nodeType": "Identifier",
|
|
393
393
|
"overloadedDeclarations": [],
|
|
394
|
-
"referencedDeclaration":
|
|
395
|
-
"src": "890:12:
|
|
394
|
+
"referencedDeclaration": 20158,
|
|
395
|
+
"src": "890:12:66",
|
|
396
396
|
"typeDescriptions": {
|
|
397
397
|
"typeIdentifier": "t_string_memory_ptr",
|
|
398
398
|
"typeString": "string memory"
|
|
@@ -410,7 +410,7 @@
|
|
|
410
410
|
"typeString": "string memory"
|
|
411
411
|
}
|
|
412
412
|
],
|
|
413
|
-
"id":
|
|
413
|
+
"id": 20170,
|
|
414
414
|
"name": "require",
|
|
415
415
|
"nodeType": "Identifier",
|
|
416
416
|
"overloadedDeclarations": [
|
|
@@ -418,13 +418,13 @@
|
|
|
418
418
|
4294967278
|
|
419
419
|
],
|
|
420
420
|
"referencedDeclaration": 4294967278,
|
|
421
|
-
"src": "851:7:
|
|
421
|
+
"src": "851:7:66",
|
|
422
422
|
"typeDescriptions": {
|
|
423
423
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
424
424
|
"typeString": "function (bool,string memory) pure"
|
|
425
425
|
}
|
|
426
426
|
},
|
|
427
|
-
"id":
|
|
427
|
+
"id": 20182,
|
|
428
428
|
"isConstant": false,
|
|
429
429
|
"isLValue": false,
|
|
430
430
|
"isPure": false,
|
|
@@ -432,31 +432,31 @@
|
|
|
432
432
|
"lValueRequested": false,
|
|
433
433
|
"names": [],
|
|
434
434
|
"nodeType": "FunctionCall",
|
|
435
|
-
"src": "851:52:
|
|
435
|
+
"src": "851:52:66",
|
|
436
436
|
"tryCall": false,
|
|
437
437
|
"typeDescriptions": {
|
|
438
438
|
"typeIdentifier": "t_tuple$__$",
|
|
439
439
|
"typeString": "tuple()"
|
|
440
440
|
}
|
|
441
441
|
},
|
|
442
|
-
"id":
|
|
442
|
+
"id": 20183,
|
|
443
443
|
"nodeType": "ExpressionStatement",
|
|
444
|
-
"src": "851:52:
|
|
444
|
+
"src": "851:52:66"
|
|
445
445
|
},
|
|
446
446
|
{
|
|
447
447
|
"assignments": [
|
|
448
|
-
|
|
448
|
+
20185
|
|
449
449
|
],
|
|
450
450
|
"declarations": [
|
|
451
451
|
{
|
|
452
452
|
"constant": false,
|
|
453
|
-
"id":
|
|
453
|
+
"id": 20185,
|
|
454
454
|
"mutability": "mutable",
|
|
455
455
|
"name": "c",
|
|
456
|
-
"nameLocation": "919:1:
|
|
456
|
+
"nameLocation": "919:1:66",
|
|
457
457
|
"nodeType": "VariableDeclaration",
|
|
458
|
-
"scope":
|
|
459
|
-
"src": "913:7:
|
|
458
|
+
"scope": 20205,
|
|
459
|
+
"src": "913:7:66",
|
|
460
460
|
"stateVariable": false,
|
|
461
461
|
"storageLocation": "default",
|
|
462
462
|
"typeDescriptions": {
|
|
@@ -464,10 +464,10 @@
|
|
|
464
464
|
"typeString": "int96"
|
|
465
465
|
},
|
|
466
466
|
"typeName": {
|
|
467
|
-
"id":
|
|
467
|
+
"id": 20184,
|
|
468
468
|
"name": "int96",
|
|
469
469
|
"nodeType": "ElementaryTypeName",
|
|
470
|
-
"src": "913:5:
|
|
470
|
+
"src": "913:5:66",
|
|
471
471
|
"typeDescriptions": {
|
|
472
472
|
"typeIdentifier": "t_int96",
|
|
473
473
|
"typeString": "int96"
|
|
@@ -476,29 +476,29 @@
|
|
|
476
476
|
"visibility": "internal"
|
|
477
477
|
}
|
|
478
478
|
],
|
|
479
|
-
"id":
|
|
479
|
+
"id": 20186,
|
|
480
480
|
"nodeType": "VariableDeclarationStatement",
|
|
481
|
-
"src": "913:7:
|
|
481
|
+
"src": "913:7:66"
|
|
482
482
|
},
|
|
483
483
|
{
|
|
484
|
-
"id":
|
|
484
|
+
"id": 20193,
|
|
485
485
|
"nodeType": "UncheckedBlock",
|
|
486
|
-
"src": "939:44:
|
|
486
|
+
"src": "939:44:66",
|
|
487
487
|
"statements": [
|
|
488
488
|
{
|
|
489
489
|
"expression": {
|
|
490
|
-
"id":
|
|
490
|
+
"id": 20191,
|
|
491
491
|
"isConstant": false,
|
|
492
492
|
"isLValue": false,
|
|
493
493
|
"isPure": false,
|
|
494
494
|
"lValueRequested": false,
|
|
495
495
|
"leftHandSide": {
|
|
496
|
-
"id":
|
|
496
|
+
"id": 20187,
|
|
497
497
|
"name": "c",
|
|
498
498
|
"nodeType": "Identifier",
|
|
499
499
|
"overloadedDeclarations": [],
|
|
500
|
-
"referencedDeclaration":
|
|
501
|
-
"src": "963:1:
|
|
500
|
+
"referencedDeclaration": 20185,
|
|
501
|
+
"src": "963:1:66",
|
|
502
502
|
"typeDescriptions": {
|
|
503
503
|
"typeIdentifier": "t_int96",
|
|
504
504
|
"typeString": "int96"
|
|
@@ -511,18 +511,18 @@
|
|
|
511
511
|
"typeIdentifier": "t_int96",
|
|
512
512
|
"typeString": "int96"
|
|
513
513
|
},
|
|
514
|
-
"id":
|
|
514
|
+
"id": 20190,
|
|
515
515
|
"isConstant": false,
|
|
516
516
|
"isLValue": false,
|
|
517
517
|
"isPure": false,
|
|
518
518
|
"lValueRequested": false,
|
|
519
519
|
"leftExpression": {
|
|
520
|
-
"id":
|
|
520
|
+
"id": 20188,
|
|
521
521
|
"name": "a",
|
|
522
522
|
"nodeType": "Identifier",
|
|
523
523
|
"overloadedDeclarations": [],
|
|
524
|
-
"referencedDeclaration":
|
|
525
|
-
"src": "967:1:
|
|
524
|
+
"referencedDeclaration": 20154,
|
|
525
|
+
"src": "967:1:66",
|
|
526
526
|
"typeDescriptions": {
|
|
527
527
|
"typeIdentifier": "t_int96",
|
|
528
528
|
"typeString": "int96"
|
|
@@ -531,32 +531,32 @@
|
|
|
531
531
|
"nodeType": "BinaryOperation",
|
|
532
532
|
"operator": "*",
|
|
533
533
|
"rightExpression": {
|
|
534
|
-
"id":
|
|
534
|
+
"id": 20189,
|
|
535
535
|
"name": "b",
|
|
536
536
|
"nodeType": "Identifier",
|
|
537
537
|
"overloadedDeclarations": [],
|
|
538
|
-
"referencedDeclaration":
|
|
539
|
-
"src": "971:1:
|
|
538
|
+
"referencedDeclaration": 20156,
|
|
539
|
+
"src": "971:1:66",
|
|
540
540
|
"typeDescriptions": {
|
|
541
541
|
"typeIdentifier": "t_int96",
|
|
542
542
|
"typeString": "int96"
|
|
543
543
|
}
|
|
544
544
|
},
|
|
545
|
-
"src": "967:5:
|
|
545
|
+
"src": "967:5:66",
|
|
546
546
|
"typeDescriptions": {
|
|
547
547
|
"typeIdentifier": "t_int96",
|
|
548
548
|
"typeString": "int96"
|
|
549
549
|
}
|
|
550
550
|
},
|
|
551
|
-
"src": "963:9:
|
|
551
|
+
"src": "963:9:66",
|
|
552
552
|
"typeDescriptions": {
|
|
553
553
|
"typeIdentifier": "t_int96",
|
|
554
554
|
"typeString": "int96"
|
|
555
555
|
}
|
|
556
556
|
},
|
|
557
|
-
"id":
|
|
557
|
+
"id": 20192,
|
|
558
558
|
"nodeType": "ExpressionStatement",
|
|
559
|
-
"src": "963:9:
|
|
559
|
+
"src": "963:9:66"
|
|
560
560
|
}
|
|
561
561
|
]
|
|
562
562
|
},
|
|
@@ -568,7 +568,7 @@
|
|
|
568
568
|
"typeIdentifier": "t_int96",
|
|
569
569
|
"typeString": "int96"
|
|
570
570
|
},
|
|
571
|
-
"id":
|
|
571
|
+
"id": 20199,
|
|
572
572
|
"isConstant": false,
|
|
573
573
|
"isLValue": false,
|
|
574
574
|
"isPure": false,
|
|
@@ -578,18 +578,18 @@
|
|
|
578
578
|
"typeIdentifier": "t_int96",
|
|
579
579
|
"typeString": "int96"
|
|
580
580
|
},
|
|
581
|
-
"id":
|
|
581
|
+
"id": 20197,
|
|
582
582
|
"isConstant": false,
|
|
583
583
|
"isLValue": false,
|
|
584
584
|
"isPure": false,
|
|
585
585
|
"lValueRequested": false,
|
|
586
586
|
"leftExpression": {
|
|
587
|
-
"id":
|
|
587
|
+
"id": 20195,
|
|
588
588
|
"name": "c",
|
|
589
589
|
"nodeType": "Identifier",
|
|
590
590
|
"overloadedDeclarations": [],
|
|
591
|
-
"referencedDeclaration":
|
|
592
|
-
"src": "1009:1:
|
|
591
|
+
"referencedDeclaration": 20185,
|
|
592
|
+
"src": "1009:1:66",
|
|
593
593
|
"typeDescriptions": {
|
|
594
594
|
"typeIdentifier": "t_int96",
|
|
595
595
|
"typeString": "int96"
|
|
@@ -598,18 +598,18 @@
|
|
|
598
598
|
"nodeType": "BinaryOperation",
|
|
599
599
|
"operator": "/",
|
|
600
600
|
"rightExpression": {
|
|
601
|
-
"id":
|
|
601
|
+
"id": 20196,
|
|
602
602
|
"name": "a",
|
|
603
603
|
"nodeType": "Identifier",
|
|
604
604
|
"overloadedDeclarations": [],
|
|
605
|
-
"referencedDeclaration":
|
|
606
|
-
"src": "1013:1:
|
|
605
|
+
"referencedDeclaration": 20154,
|
|
606
|
+
"src": "1013:1:66",
|
|
607
607
|
"typeDescriptions": {
|
|
608
608
|
"typeIdentifier": "t_int96",
|
|
609
609
|
"typeString": "int96"
|
|
610
610
|
}
|
|
611
611
|
},
|
|
612
|
-
"src": "1009:5:
|
|
612
|
+
"src": "1009:5:66",
|
|
613
613
|
"typeDescriptions": {
|
|
614
614
|
"typeIdentifier": "t_int96",
|
|
615
615
|
"typeString": "int96"
|
|
@@ -618,30 +618,30 @@
|
|
|
618
618
|
"nodeType": "BinaryOperation",
|
|
619
619
|
"operator": "==",
|
|
620
620
|
"rightExpression": {
|
|
621
|
-
"id":
|
|
621
|
+
"id": 20198,
|
|
622
622
|
"name": "b",
|
|
623
623
|
"nodeType": "Identifier",
|
|
624
624
|
"overloadedDeclarations": [],
|
|
625
|
-
"referencedDeclaration":
|
|
626
|
-
"src": "1018:1:
|
|
625
|
+
"referencedDeclaration": 20156,
|
|
626
|
+
"src": "1018:1:66",
|
|
627
627
|
"typeDescriptions": {
|
|
628
628
|
"typeIdentifier": "t_int96",
|
|
629
629
|
"typeString": "int96"
|
|
630
630
|
}
|
|
631
631
|
},
|
|
632
|
-
"src": "1009:10:
|
|
632
|
+
"src": "1009:10:66",
|
|
633
633
|
"typeDescriptions": {
|
|
634
634
|
"typeIdentifier": "t_bool",
|
|
635
635
|
"typeString": "bool"
|
|
636
636
|
}
|
|
637
637
|
},
|
|
638
638
|
{
|
|
639
|
-
"id":
|
|
639
|
+
"id": 20200,
|
|
640
640
|
"name": "errorMessage",
|
|
641
641
|
"nodeType": "Identifier",
|
|
642
642
|
"overloadedDeclarations": [],
|
|
643
|
-
"referencedDeclaration":
|
|
644
|
-
"src": "1021:12:
|
|
643
|
+
"referencedDeclaration": 20158,
|
|
644
|
+
"src": "1021:12:66",
|
|
645
645
|
"typeDescriptions": {
|
|
646
646
|
"typeIdentifier": "t_string_memory_ptr",
|
|
647
647
|
"typeString": "string memory"
|
|
@@ -659,7 +659,7 @@
|
|
|
659
659
|
"typeString": "string memory"
|
|
660
660
|
}
|
|
661
661
|
],
|
|
662
|
-
"id":
|
|
662
|
+
"id": 20194,
|
|
663
663
|
"name": "require",
|
|
664
664
|
"nodeType": "Identifier",
|
|
665
665
|
"overloadedDeclarations": [
|
|
@@ -667,13 +667,13 @@
|
|
|
667
667
|
4294967278
|
|
668
668
|
],
|
|
669
669
|
"referencedDeclaration": 4294967278,
|
|
670
|
-
"src": "1001:7:
|
|
670
|
+
"src": "1001:7:66",
|
|
671
671
|
"typeDescriptions": {
|
|
672
672
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
673
673
|
"typeString": "function (bool,string memory) pure"
|
|
674
674
|
}
|
|
675
675
|
},
|
|
676
|
-
"id":
|
|
676
|
+
"id": 20201,
|
|
677
677
|
"isConstant": false,
|
|
678
678
|
"isLValue": false,
|
|
679
679
|
"isPure": false,
|
|
@@ -681,63 +681,63 @@
|
|
|
681
681
|
"lValueRequested": false,
|
|
682
682
|
"names": [],
|
|
683
683
|
"nodeType": "FunctionCall",
|
|
684
|
-
"src": "1001:33:
|
|
684
|
+
"src": "1001:33:66",
|
|
685
685
|
"tryCall": false,
|
|
686
686
|
"typeDescriptions": {
|
|
687
687
|
"typeIdentifier": "t_tuple$__$",
|
|
688
688
|
"typeString": "tuple()"
|
|
689
689
|
}
|
|
690
690
|
},
|
|
691
|
-
"id":
|
|
691
|
+
"id": 20202,
|
|
692
692
|
"nodeType": "ExpressionStatement",
|
|
693
|
-
"src": "1001:33:
|
|
693
|
+
"src": "1001:33:66"
|
|
694
694
|
},
|
|
695
695
|
{
|
|
696
696
|
"expression": {
|
|
697
|
-
"id":
|
|
697
|
+
"id": 20203,
|
|
698
698
|
"name": "c",
|
|
699
699
|
"nodeType": "Identifier",
|
|
700
700
|
"overloadedDeclarations": [],
|
|
701
|
-
"referencedDeclaration":
|
|
702
|
-
"src": "1052:1:
|
|
701
|
+
"referencedDeclaration": 20185,
|
|
702
|
+
"src": "1052:1:66",
|
|
703
703
|
"typeDescriptions": {
|
|
704
704
|
"typeIdentifier": "t_int96",
|
|
705
705
|
"typeString": "int96"
|
|
706
706
|
}
|
|
707
707
|
},
|
|
708
|
-
"functionReturnParameters":
|
|
709
|
-
"id":
|
|
708
|
+
"functionReturnParameters": 20162,
|
|
709
|
+
"id": 20204,
|
|
710
710
|
"nodeType": "Return",
|
|
711
|
-
"src": "1045:8:
|
|
711
|
+
"src": "1045:8:66"
|
|
712
712
|
}
|
|
713
713
|
]
|
|
714
714
|
},
|
|
715
715
|
"documentation": {
|
|
716
|
-
"id":
|
|
716
|
+
"id": 20152,
|
|
717
717
|
"nodeType": "StructuredDocumentation",
|
|
718
|
-
"src": "240:234:
|
|
718
|
+
"src": "240:234:66",
|
|
719
719
|
"text": " @dev Returns the multiplication of two signed integers, reverting on\n overflow.\n Counterpart to Solidity's `*` operator.\n Requirements:\n - Multiplication cannot overflow."
|
|
720
720
|
},
|
|
721
|
-
"id":
|
|
721
|
+
"id": 20206,
|
|
722
722
|
"implemented": true,
|
|
723
723
|
"kind": "function",
|
|
724
724
|
"modifiers": [],
|
|
725
725
|
"name": "mul",
|
|
726
|
-
"nameLocation": "488:3:
|
|
726
|
+
"nameLocation": "488:3:66",
|
|
727
727
|
"nodeType": "FunctionDefinition",
|
|
728
728
|
"parameters": {
|
|
729
|
-
"id":
|
|
729
|
+
"id": 20159,
|
|
730
730
|
"nodeType": "ParameterList",
|
|
731
731
|
"parameters": [
|
|
732
732
|
{
|
|
733
733
|
"constant": false,
|
|
734
|
-
"id":
|
|
734
|
+
"id": 20154,
|
|
735
735
|
"mutability": "mutable",
|
|
736
736
|
"name": "a",
|
|
737
|
-
"nameLocation": "498:1:
|
|
737
|
+
"nameLocation": "498:1:66",
|
|
738
738
|
"nodeType": "VariableDeclaration",
|
|
739
|
-
"scope":
|
|
740
|
-
"src": "492:7:
|
|
739
|
+
"scope": 20206,
|
|
740
|
+
"src": "492:7:66",
|
|
741
741
|
"stateVariable": false,
|
|
742
742
|
"storageLocation": "default",
|
|
743
743
|
"typeDescriptions": {
|
|
@@ -745,10 +745,10 @@
|
|
|
745
745
|
"typeString": "int96"
|
|
746
746
|
},
|
|
747
747
|
"typeName": {
|
|
748
|
-
"id":
|
|
748
|
+
"id": 20153,
|
|
749
749
|
"name": "int96",
|
|
750
750
|
"nodeType": "ElementaryTypeName",
|
|
751
|
-
"src": "492:5:
|
|
751
|
+
"src": "492:5:66",
|
|
752
752
|
"typeDescriptions": {
|
|
753
753
|
"typeIdentifier": "t_int96",
|
|
754
754
|
"typeString": "int96"
|
|
@@ -758,13 +758,13 @@
|
|
|
758
758
|
},
|
|
759
759
|
{
|
|
760
760
|
"constant": false,
|
|
761
|
-
"id":
|
|
761
|
+
"id": 20156,
|
|
762
762
|
"mutability": "mutable",
|
|
763
763
|
"name": "b",
|
|
764
|
-
"nameLocation": "507:1:
|
|
764
|
+
"nameLocation": "507:1:66",
|
|
765
765
|
"nodeType": "VariableDeclaration",
|
|
766
|
-
"scope":
|
|
767
|
-
"src": "501:7:
|
|
766
|
+
"scope": 20206,
|
|
767
|
+
"src": "501:7:66",
|
|
768
768
|
"stateVariable": false,
|
|
769
769
|
"storageLocation": "default",
|
|
770
770
|
"typeDescriptions": {
|
|
@@ -772,10 +772,10 @@
|
|
|
772
772
|
"typeString": "int96"
|
|
773
773
|
},
|
|
774
774
|
"typeName": {
|
|
775
|
-
"id":
|
|
775
|
+
"id": 20155,
|
|
776
776
|
"name": "int96",
|
|
777
777
|
"nodeType": "ElementaryTypeName",
|
|
778
|
-
"src": "501:5:
|
|
778
|
+
"src": "501:5:66",
|
|
779
779
|
"typeDescriptions": {
|
|
780
780
|
"typeIdentifier": "t_int96",
|
|
781
781
|
"typeString": "int96"
|
|
@@ -785,13 +785,13 @@
|
|
|
785
785
|
},
|
|
786
786
|
{
|
|
787
787
|
"constant": false,
|
|
788
|
-
"id":
|
|
788
|
+
"id": 20158,
|
|
789
789
|
"mutability": "mutable",
|
|
790
790
|
"name": "errorMessage",
|
|
791
|
-
"nameLocation": "524:12:
|
|
791
|
+
"nameLocation": "524:12:66",
|
|
792
792
|
"nodeType": "VariableDeclaration",
|
|
793
|
-
"scope":
|
|
794
|
-
"src": "510:26:
|
|
793
|
+
"scope": 20206,
|
|
794
|
+
"src": "510:26:66",
|
|
795
795
|
"stateVariable": false,
|
|
796
796
|
"storageLocation": "memory",
|
|
797
797
|
"typeDescriptions": {
|
|
@@ -799,10 +799,10 @@
|
|
|
799
799
|
"typeString": "string"
|
|
800
800
|
},
|
|
801
801
|
"typeName": {
|
|
802
|
-
"id":
|
|
802
|
+
"id": 20157,
|
|
803
803
|
"name": "string",
|
|
804
804
|
"nodeType": "ElementaryTypeName",
|
|
805
|
-
"src": "510:6:
|
|
805
|
+
"src": "510:6:66",
|
|
806
806
|
"typeDescriptions": {
|
|
807
807
|
"typeIdentifier": "t_string_storage_ptr",
|
|
808
808
|
"typeString": "string"
|
|
@@ -811,21 +811,21 @@
|
|
|
811
811
|
"visibility": "internal"
|
|
812
812
|
}
|
|
813
813
|
],
|
|
814
|
-
"src": "491:46:
|
|
814
|
+
"src": "491:46:66"
|
|
815
815
|
},
|
|
816
816
|
"returnParameters": {
|
|
817
|
-
"id":
|
|
817
|
+
"id": 20162,
|
|
818
818
|
"nodeType": "ParameterList",
|
|
819
819
|
"parameters": [
|
|
820
820
|
{
|
|
821
821
|
"constant": false,
|
|
822
|
-
"id":
|
|
822
|
+
"id": 20161,
|
|
823
823
|
"mutability": "mutable",
|
|
824
824
|
"name": "",
|
|
825
825
|
"nameLocation": "-1:-1:-1",
|
|
826
826
|
"nodeType": "VariableDeclaration",
|
|
827
|
-
"scope":
|
|
828
|
-
"src": "561:5:
|
|
827
|
+
"scope": 20206,
|
|
828
|
+
"src": "561:5:66",
|
|
829
829
|
"stateVariable": false,
|
|
830
830
|
"storageLocation": "default",
|
|
831
831
|
"typeDescriptions": {
|
|
@@ -833,10 +833,10 @@
|
|
|
833
833
|
"typeString": "int96"
|
|
834
834
|
},
|
|
835
835
|
"typeName": {
|
|
836
|
-
"id":
|
|
836
|
+
"id": 20160,
|
|
837
837
|
"name": "int96",
|
|
838
838
|
"nodeType": "ElementaryTypeName",
|
|
839
|
-
"src": "561:5:
|
|
839
|
+
"src": "561:5:66",
|
|
840
840
|
"typeDescriptions": {
|
|
841
841
|
"typeIdentifier": "t_int96",
|
|
842
842
|
"typeString": "int96"
|
|
@@ -845,19 +845,19 @@
|
|
|
845
845
|
"visibility": "internal"
|
|
846
846
|
}
|
|
847
847
|
],
|
|
848
|
-
"src": "560:7:
|
|
848
|
+
"src": "560:7:66"
|
|
849
849
|
},
|
|
850
|
-
"scope":
|
|
851
|
-
"src": "479:581:
|
|
850
|
+
"scope": 20341,
|
|
851
|
+
"src": "479:581:66",
|
|
852
852
|
"stateMutability": "pure",
|
|
853
853
|
"virtual": false,
|
|
854
854
|
"visibility": "internal"
|
|
855
855
|
},
|
|
856
856
|
{
|
|
857
857
|
"body": {
|
|
858
|
-
"id":
|
|
858
|
+
"id": 20247,
|
|
859
859
|
"nodeType": "Block",
|
|
860
|
-
"src": "1609:153:
|
|
860
|
+
"src": "1609:153:66",
|
|
861
861
|
"statements": [
|
|
862
862
|
{
|
|
863
863
|
"expression": {
|
|
@@ -867,18 +867,18 @@
|
|
|
867
867
|
"typeIdentifier": "t_int96",
|
|
868
868
|
"typeString": "int96"
|
|
869
869
|
},
|
|
870
|
-
"id":
|
|
870
|
+
"id": 20221,
|
|
871
871
|
"isConstant": false,
|
|
872
872
|
"isLValue": false,
|
|
873
873
|
"isPure": false,
|
|
874
874
|
"lValueRequested": false,
|
|
875
875
|
"leftExpression": {
|
|
876
|
-
"id":
|
|
876
|
+
"id": 20219,
|
|
877
877
|
"name": "b",
|
|
878
878
|
"nodeType": "Identifier",
|
|
879
879
|
"overloadedDeclarations": [],
|
|
880
|
-
"referencedDeclaration":
|
|
881
|
-
"src": "1627:1:
|
|
880
|
+
"referencedDeclaration": 20211,
|
|
881
|
+
"src": "1627:1:66",
|
|
882
882
|
"typeDescriptions": {
|
|
883
883
|
"typeIdentifier": "t_int96",
|
|
884
884
|
"typeString": "int96"
|
|
@@ -888,33 +888,33 @@
|
|
|
888
888
|
"operator": "!=",
|
|
889
889
|
"rightExpression": {
|
|
890
890
|
"hexValue": "30",
|
|
891
|
-
"id":
|
|
891
|
+
"id": 20220,
|
|
892
892
|
"isConstant": false,
|
|
893
893
|
"isLValue": false,
|
|
894
894
|
"isPure": true,
|
|
895
895
|
"kind": "number",
|
|
896
896
|
"lValueRequested": false,
|
|
897
897
|
"nodeType": "Literal",
|
|
898
|
-
"src": "1632:1:
|
|
898
|
+
"src": "1632:1:66",
|
|
899
899
|
"typeDescriptions": {
|
|
900
900
|
"typeIdentifier": "t_rational_0_by_1",
|
|
901
901
|
"typeString": "int_const 0"
|
|
902
902
|
},
|
|
903
903
|
"value": "0"
|
|
904
904
|
},
|
|
905
|
-
"src": "1627:6:
|
|
905
|
+
"src": "1627:6:66",
|
|
906
906
|
"typeDescriptions": {
|
|
907
907
|
"typeIdentifier": "t_bool",
|
|
908
908
|
"typeString": "bool"
|
|
909
909
|
}
|
|
910
910
|
},
|
|
911
911
|
{
|
|
912
|
-
"id":
|
|
912
|
+
"id": 20222,
|
|
913
913
|
"name": "errorMessage",
|
|
914
914
|
"nodeType": "Identifier",
|
|
915
915
|
"overloadedDeclarations": [],
|
|
916
|
-
"referencedDeclaration":
|
|
917
|
-
"src": "1635:12:
|
|
916
|
+
"referencedDeclaration": 20213,
|
|
917
|
+
"src": "1635:12:66",
|
|
918
918
|
"typeDescriptions": {
|
|
919
919
|
"typeIdentifier": "t_string_memory_ptr",
|
|
920
920
|
"typeString": "string memory"
|
|
@@ -932,7 +932,7 @@
|
|
|
932
932
|
"typeString": "string memory"
|
|
933
933
|
}
|
|
934
934
|
],
|
|
935
|
-
"id":
|
|
935
|
+
"id": 20218,
|
|
936
936
|
"name": "require",
|
|
937
937
|
"nodeType": "Identifier",
|
|
938
938
|
"overloadedDeclarations": [
|
|
@@ -940,13 +940,13 @@
|
|
|
940
940
|
4294967278
|
|
941
941
|
],
|
|
942
942
|
"referencedDeclaration": 4294967278,
|
|
943
|
-
"src": "1619:7:
|
|
943
|
+
"src": "1619:7:66",
|
|
944
944
|
"typeDescriptions": {
|
|
945
945
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
946
946
|
"typeString": "function (bool,string memory) pure"
|
|
947
947
|
}
|
|
948
948
|
},
|
|
949
|
-
"id":
|
|
949
|
+
"id": 20223,
|
|
950
950
|
"isConstant": false,
|
|
951
951
|
"isLValue": false,
|
|
952
952
|
"isPure": false,
|
|
@@ -954,22 +954,22 @@
|
|
|
954
954
|
"lValueRequested": false,
|
|
955
955
|
"names": [],
|
|
956
956
|
"nodeType": "FunctionCall",
|
|
957
|
-
"src": "1619:29:
|
|
957
|
+
"src": "1619:29:66",
|
|
958
958
|
"tryCall": false,
|
|
959
959
|
"typeDescriptions": {
|
|
960
960
|
"typeIdentifier": "t_tuple$__$",
|
|
961
961
|
"typeString": "tuple()"
|
|
962
962
|
}
|
|
963
963
|
},
|
|
964
|
-
"id":
|
|
964
|
+
"id": 20224,
|
|
965
965
|
"nodeType": "ExpressionStatement",
|
|
966
|
-
"src": "1619:29:
|
|
966
|
+
"src": "1619:29:66"
|
|
967
967
|
},
|
|
968
968
|
{
|
|
969
969
|
"expression": {
|
|
970
970
|
"arguments": [
|
|
971
971
|
{
|
|
972
|
-
"id":
|
|
972
|
+
"id": 20235,
|
|
973
973
|
"isConstant": false,
|
|
974
974
|
"isLValue": false,
|
|
975
975
|
"isPure": false,
|
|
@@ -977,7 +977,7 @@
|
|
|
977
977
|
"nodeType": "UnaryOperation",
|
|
978
978
|
"operator": "!",
|
|
979
979
|
"prefix": true,
|
|
980
|
-
"src": "1666:29:
|
|
980
|
+
"src": "1666:29:66",
|
|
981
981
|
"subExpression": {
|
|
982
982
|
"components": [
|
|
983
983
|
{
|
|
@@ -985,7 +985,7 @@
|
|
|
985
985
|
"typeIdentifier": "t_bool",
|
|
986
986
|
"typeString": "bool"
|
|
987
987
|
},
|
|
988
|
-
"id":
|
|
988
|
+
"id": 20233,
|
|
989
989
|
"isConstant": false,
|
|
990
990
|
"isLValue": false,
|
|
991
991
|
"isPure": false,
|
|
@@ -995,18 +995,18 @@
|
|
|
995
995
|
"typeIdentifier": "t_int96",
|
|
996
996
|
"typeString": "int96"
|
|
997
997
|
},
|
|
998
|
-
"id":
|
|
998
|
+
"id": 20229,
|
|
999
999
|
"isConstant": false,
|
|
1000
1000
|
"isLValue": false,
|
|
1001
1001
|
"isPure": false,
|
|
1002
1002
|
"lValueRequested": false,
|
|
1003
1003
|
"leftExpression": {
|
|
1004
|
-
"id":
|
|
1004
|
+
"id": 20226,
|
|
1005
1005
|
"name": "b",
|
|
1006
1006
|
"nodeType": "Identifier",
|
|
1007
1007
|
"overloadedDeclarations": [],
|
|
1008
|
-
"referencedDeclaration":
|
|
1009
|
-
"src": "1668:1:
|
|
1008
|
+
"referencedDeclaration": 20211,
|
|
1009
|
+
"src": "1668:1:66",
|
|
1010
1010
|
"typeDescriptions": {
|
|
1011
1011
|
"typeIdentifier": "t_int96",
|
|
1012
1012
|
"typeString": "int96"
|
|
@@ -1015,7 +1015,7 @@
|
|
|
1015
1015
|
"nodeType": "BinaryOperation",
|
|
1016
1016
|
"operator": "==",
|
|
1017
1017
|
"rightExpression": {
|
|
1018
|
-
"id":
|
|
1018
|
+
"id": 20228,
|
|
1019
1019
|
"isConstant": false,
|
|
1020
1020
|
"isLValue": false,
|
|
1021
1021
|
"isPure": true,
|
|
@@ -1023,17 +1023,17 @@
|
|
|
1023
1023
|
"nodeType": "UnaryOperation",
|
|
1024
1024
|
"operator": "-",
|
|
1025
1025
|
"prefix": true,
|
|
1026
|
-
"src": "1673:2:
|
|
1026
|
+
"src": "1673:2:66",
|
|
1027
1027
|
"subExpression": {
|
|
1028
1028
|
"hexValue": "31",
|
|
1029
|
-
"id":
|
|
1029
|
+
"id": 20227,
|
|
1030
1030
|
"isConstant": false,
|
|
1031
1031
|
"isLValue": false,
|
|
1032
1032
|
"isPure": true,
|
|
1033
1033
|
"kind": "number",
|
|
1034
1034
|
"lValueRequested": false,
|
|
1035
1035
|
"nodeType": "Literal",
|
|
1036
|
-
"src": "1674:1:
|
|
1036
|
+
"src": "1674:1:66",
|
|
1037
1037
|
"typeDescriptions": {
|
|
1038
1038
|
"typeIdentifier": "t_rational_1_by_1",
|
|
1039
1039
|
"typeString": "int_const 1"
|
|
@@ -1045,7 +1045,7 @@
|
|
|
1045
1045
|
"typeString": "int_const -1"
|
|
1046
1046
|
}
|
|
1047
1047
|
},
|
|
1048
|
-
"src": "1668:7:
|
|
1048
|
+
"src": "1668:7:66",
|
|
1049
1049
|
"typeDescriptions": {
|
|
1050
1050
|
"typeIdentifier": "t_bool",
|
|
1051
1051
|
"typeString": "bool"
|
|
@@ -1058,18 +1058,18 @@
|
|
|
1058
1058
|
"typeIdentifier": "t_int96",
|
|
1059
1059
|
"typeString": "int96"
|
|
1060
1060
|
},
|
|
1061
|
-
"id":
|
|
1061
|
+
"id": 20232,
|
|
1062
1062
|
"isConstant": false,
|
|
1063
1063
|
"isLValue": false,
|
|
1064
1064
|
"isPure": false,
|
|
1065
1065
|
"lValueRequested": false,
|
|
1066
1066
|
"leftExpression": {
|
|
1067
|
-
"id":
|
|
1067
|
+
"id": 20230,
|
|
1068
1068
|
"name": "a",
|
|
1069
1069
|
"nodeType": "Identifier",
|
|
1070
1070
|
"overloadedDeclarations": [],
|
|
1071
|
-
"referencedDeclaration":
|
|
1072
|
-
"src": "1679:1:
|
|
1071
|
+
"referencedDeclaration": 20209,
|
|
1072
|
+
"src": "1679:1:66",
|
|
1073
1073
|
"typeDescriptions": {
|
|
1074
1074
|
"typeIdentifier": "t_int96",
|
|
1075
1075
|
"typeString": "int96"
|
|
@@ -1078,38 +1078,38 @@
|
|
|
1078
1078
|
"nodeType": "BinaryOperation",
|
|
1079
1079
|
"operator": "==",
|
|
1080
1080
|
"rightExpression": {
|
|
1081
|
-
"id":
|
|
1081
|
+
"id": 20231,
|
|
1082
1082
|
"name": "_INT96_MIN",
|
|
1083
1083
|
"nodeType": "Identifier",
|
|
1084
1084
|
"overloadedDeclarations": [],
|
|
1085
|
-
"referencedDeclaration":
|
|
1086
|
-
"src": "1684:10:
|
|
1085
|
+
"referencedDeclaration": 20151,
|
|
1086
|
+
"src": "1684:10:66",
|
|
1087
1087
|
"typeDescriptions": {
|
|
1088
1088
|
"typeIdentifier": "t_int96",
|
|
1089
1089
|
"typeString": "int96"
|
|
1090
1090
|
}
|
|
1091
1091
|
},
|
|
1092
|
-
"src": "1679:15:
|
|
1092
|
+
"src": "1679:15:66",
|
|
1093
1093
|
"typeDescriptions": {
|
|
1094
1094
|
"typeIdentifier": "t_bool",
|
|
1095
1095
|
"typeString": "bool"
|
|
1096
1096
|
}
|
|
1097
1097
|
},
|
|
1098
|
-
"src": "1668:26:
|
|
1098
|
+
"src": "1668:26:66",
|
|
1099
1099
|
"typeDescriptions": {
|
|
1100
1100
|
"typeIdentifier": "t_bool",
|
|
1101
1101
|
"typeString": "bool"
|
|
1102
1102
|
}
|
|
1103
1103
|
}
|
|
1104
1104
|
],
|
|
1105
|
-
"id":
|
|
1105
|
+
"id": 20234,
|
|
1106
1106
|
"isConstant": false,
|
|
1107
1107
|
"isInlineArray": false,
|
|
1108
1108
|
"isLValue": false,
|
|
1109
1109
|
"isPure": false,
|
|
1110
1110
|
"lValueRequested": false,
|
|
1111
1111
|
"nodeType": "TupleExpression",
|
|
1112
|
-
"src": "1667:28:
|
|
1112
|
+
"src": "1667:28:66",
|
|
1113
1113
|
"typeDescriptions": {
|
|
1114
1114
|
"typeIdentifier": "t_bool",
|
|
1115
1115
|
"typeString": "bool"
|
|
@@ -1121,12 +1121,12 @@
|
|
|
1121
1121
|
}
|
|
1122
1122
|
},
|
|
1123
1123
|
{
|
|
1124
|
-
"id":
|
|
1124
|
+
"id": 20236,
|
|
1125
1125
|
"name": "errorMessage",
|
|
1126
1126
|
"nodeType": "Identifier",
|
|
1127
1127
|
"overloadedDeclarations": [],
|
|
1128
|
-
"referencedDeclaration":
|
|
1129
|
-
"src": "1697:12:
|
|
1128
|
+
"referencedDeclaration": 20213,
|
|
1129
|
+
"src": "1697:12:66",
|
|
1130
1130
|
"typeDescriptions": {
|
|
1131
1131
|
"typeIdentifier": "t_string_memory_ptr",
|
|
1132
1132
|
"typeString": "string memory"
|
|
@@ -1144,7 +1144,7 @@
|
|
|
1144
1144
|
"typeString": "string memory"
|
|
1145
1145
|
}
|
|
1146
1146
|
],
|
|
1147
|
-
"id":
|
|
1147
|
+
"id": 20225,
|
|
1148
1148
|
"name": "require",
|
|
1149
1149
|
"nodeType": "Identifier",
|
|
1150
1150
|
"overloadedDeclarations": [
|
|
@@ -1152,13 +1152,13 @@
|
|
|
1152
1152
|
4294967278
|
|
1153
1153
|
],
|
|
1154
1154
|
"referencedDeclaration": 4294967278,
|
|
1155
|
-
"src": "1658:7:
|
|
1155
|
+
"src": "1658:7:66",
|
|
1156
1156
|
"typeDescriptions": {
|
|
1157
1157
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
1158
1158
|
"typeString": "function (bool,string memory) pure"
|
|
1159
1159
|
}
|
|
1160
1160
|
},
|
|
1161
|
-
"id":
|
|
1161
|
+
"id": 20237,
|
|
1162
1162
|
"isConstant": false,
|
|
1163
1163
|
"isLValue": false,
|
|
1164
1164
|
"isPure": false,
|
|
@@ -1166,31 +1166,31 @@
|
|
|
1166
1166
|
"lValueRequested": false,
|
|
1167
1167
|
"names": [],
|
|
1168
1168
|
"nodeType": "FunctionCall",
|
|
1169
|
-
"src": "1658:52:
|
|
1169
|
+
"src": "1658:52:66",
|
|
1170
1170
|
"tryCall": false,
|
|
1171
1171
|
"typeDescriptions": {
|
|
1172
1172
|
"typeIdentifier": "t_tuple$__$",
|
|
1173
1173
|
"typeString": "tuple()"
|
|
1174
1174
|
}
|
|
1175
1175
|
},
|
|
1176
|
-
"id":
|
|
1176
|
+
"id": 20238,
|
|
1177
1177
|
"nodeType": "ExpressionStatement",
|
|
1178
|
-
"src": "1658:52:
|
|
1178
|
+
"src": "1658:52:66"
|
|
1179
1179
|
},
|
|
1180
1180
|
{
|
|
1181
1181
|
"assignments": [
|
|
1182
|
-
|
|
1182
|
+
20240
|
|
1183
1183
|
],
|
|
1184
1184
|
"declarations": [
|
|
1185
1185
|
{
|
|
1186
1186
|
"constant": false,
|
|
1187
|
-
"id":
|
|
1187
|
+
"id": 20240,
|
|
1188
1188
|
"mutability": "mutable",
|
|
1189
1189
|
"name": "c",
|
|
1190
|
-
"nameLocation": "1727:1:
|
|
1190
|
+
"nameLocation": "1727:1:66",
|
|
1191
1191
|
"nodeType": "VariableDeclaration",
|
|
1192
|
-
"scope":
|
|
1193
|
-
"src": "1721:7:
|
|
1192
|
+
"scope": 20247,
|
|
1193
|
+
"src": "1721:7:66",
|
|
1194
1194
|
"stateVariable": false,
|
|
1195
1195
|
"storageLocation": "default",
|
|
1196
1196
|
"typeDescriptions": {
|
|
@@ -1198,10 +1198,10 @@
|
|
|
1198
1198
|
"typeString": "int96"
|
|
1199
1199
|
},
|
|
1200
1200
|
"typeName": {
|
|
1201
|
-
"id":
|
|
1201
|
+
"id": 20239,
|
|
1202
1202
|
"name": "int96",
|
|
1203
1203
|
"nodeType": "ElementaryTypeName",
|
|
1204
|
-
"src": "1721:5:
|
|
1204
|
+
"src": "1721:5:66",
|
|
1205
1205
|
"typeDescriptions": {
|
|
1206
1206
|
"typeIdentifier": "t_int96",
|
|
1207
1207
|
"typeString": "int96"
|
|
@@ -1210,24 +1210,24 @@
|
|
|
1210
1210
|
"visibility": "internal"
|
|
1211
1211
|
}
|
|
1212
1212
|
],
|
|
1213
|
-
"id":
|
|
1213
|
+
"id": 20244,
|
|
1214
1214
|
"initialValue": {
|
|
1215
1215
|
"commonType": {
|
|
1216
1216
|
"typeIdentifier": "t_int96",
|
|
1217
1217
|
"typeString": "int96"
|
|
1218
1218
|
},
|
|
1219
|
-
"id":
|
|
1219
|
+
"id": 20243,
|
|
1220
1220
|
"isConstant": false,
|
|
1221
1221
|
"isLValue": false,
|
|
1222
1222
|
"isPure": false,
|
|
1223
1223
|
"lValueRequested": false,
|
|
1224
1224
|
"leftExpression": {
|
|
1225
|
-
"id":
|
|
1225
|
+
"id": 20241,
|
|
1226
1226
|
"name": "a",
|
|
1227
1227
|
"nodeType": "Identifier",
|
|
1228
1228
|
"overloadedDeclarations": [],
|
|
1229
|
-
"referencedDeclaration":
|
|
1230
|
-
"src": "1731:1:
|
|
1229
|
+
"referencedDeclaration": 20209,
|
|
1230
|
+
"src": "1731:1:66",
|
|
1231
1231
|
"typeDescriptions": {
|
|
1232
1232
|
"typeIdentifier": "t_int96",
|
|
1233
1233
|
"typeString": "int96"
|
|
@@ -1236,72 +1236,72 @@
|
|
|
1236
1236
|
"nodeType": "BinaryOperation",
|
|
1237
1237
|
"operator": "/",
|
|
1238
1238
|
"rightExpression": {
|
|
1239
|
-
"id":
|
|
1239
|
+
"id": 20242,
|
|
1240
1240
|
"name": "b",
|
|
1241
1241
|
"nodeType": "Identifier",
|
|
1242
1242
|
"overloadedDeclarations": [],
|
|
1243
|
-
"referencedDeclaration":
|
|
1244
|
-
"src": "1735:1:
|
|
1243
|
+
"referencedDeclaration": 20211,
|
|
1244
|
+
"src": "1735:1:66",
|
|
1245
1245
|
"typeDescriptions": {
|
|
1246
1246
|
"typeIdentifier": "t_int96",
|
|
1247
1247
|
"typeString": "int96"
|
|
1248
1248
|
}
|
|
1249
1249
|
},
|
|
1250
|
-
"src": "1731:5:
|
|
1250
|
+
"src": "1731:5:66",
|
|
1251
1251
|
"typeDescriptions": {
|
|
1252
1252
|
"typeIdentifier": "t_int96",
|
|
1253
1253
|
"typeString": "int96"
|
|
1254
1254
|
}
|
|
1255
1255
|
},
|
|
1256
1256
|
"nodeType": "VariableDeclarationStatement",
|
|
1257
|
-
"src": "1721:15:
|
|
1257
|
+
"src": "1721:15:66"
|
|
1258
1258
|
},
|
|
1259
1259
|
{
|
|
1260
1260
|
"expression": {
|
|
1261
|
-
"id":
|
|
1261
|
+
"id": 20245,
|
|
1262
1262
|
"name": "c",
|
|
1263
1263
|
"nodeType": "Identifier",
|
|
1264
1264
|
"overloadedDeclarations": [],
|
|
1265
|
-
"referencedDeclaration":
|
|
1266
|
-
"src": "1754:1:
|
|
1265
|
+
"referencedDeclaration": 20240,
|
|
1266
|
+
"src": "1754:1:66",
|
|
1267
1267
|
"typeDescriptions": {
|
|
1268
1268
|
"typeIdentifier": "t_int96",
|
|
1269
1269
|
"typeString": "int96"
|
|
1270
1270
|
}
|
|
1271
1271
|
},
|
|
1272
|
-
"functionReturnParameters":
|
|
1273
|
-
"id":
|
|
1272
|
+
"functionReturnParameters": 20217,
|
|
1273
|
+
"id": 20246,
|
|
1274
1274
|
"nodeType": "Return",
|
|
1275
|
-
"src": "1747:8:
|
|
1275
|
+
"src": "1747:8:66"
|
|
1276
1276
|
}
|
|
1277
1277
|
]
|
|
1278
1278
|
},
|
|
1279
1279
|
"documentation": {
|
|
1280
|
-
"id":
|
|
1280
|
+
"id": 20207,
|
|
1281
1281
|
"nodeType": "StructuredDocumentation",
|
|
1282
|
-
"src": "1066:449:
|
|
1282
|
+
"src": "1066:449:66",
|
|
1283
1283
|
"text": " @dev Returns the integer division of two signed integers. Reverts on\n division 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\n uses an invalid opcode to revert (consuming all remaining gas).\n Requirements:\n - The divisor cannot be zero."
|
|
1284
1284
|
},
|
|
1285
|
-
"id":
|
|
1285
|
+
"id": 20248,
|
|
1286
1286
|
"implemented": true,
|
|
1287
1287
|
"kind": "function",
|
|
1288
1288
|
"modifiers": [],
|
|
1289
1289
|
"name": "div",
|
|
1290
|
-
"nameLocation": "1529:3:
|
|
1290
|
+
"nameLocation": "1529:3:66",
|
|
1291
1291
|
"nodeType": "FunctionDefinition",
|
|
1292
1292
|
"parameters": {
|
|
1293
|
-
"id":
|
|
1293
|
+
"id": 20214,
|
|
1294
1294
|
"nodeType": "ParameterList",
|
|
1295
1295
|
"parameters": [
|
|
1296
1296
|
{
|
|
1297
1297
|
"constant": false,
|
|
1298
|
-
"id":
|
|
1298
|
+
"id": 20209,
|
|
1299
1299
|
"mutability": "mutable",
|
|
1300
1300
|
"name": "a",
|
|
1301
|
-
"nameLocation": "1539:1:
|
|
1301
|
+
"nameLocation": "1539:1:66",
|
|
1302
1302
|
"nodeType": "VariableDeclaration",
|
|
1303
|
-
"scope":
|
|
1304
|
-
"src": "1533:7:
|
|
1303
|
+
"scope": 20248,
|
|
1304
|
+
"src": "1533:7:66",
|
|
1305
1305
|
"stateVariable": false,
|
|
1306
1306
|
"storageLocation": "default",
|
|
1307
1307
|
"typeDescriptions": {
|
|
@@ -1309,10 +1309,10 @@
|
|
|
1309
1309
|
"typeString": "int96"
|
|
1310
1310
|
},
|
|
1311
1311
|
"typeName": {
|
|
1312
|
-
"id":
|
|
1312
|
+
"id": 20208,
|
|
1313
1313
|
"name": "int96",
|
|
1314
1314
|
"nodeType": "ElementaryTypeName",
|
|
1315
|
-
"src": "1533:5:
|
|
1315
|
+
"src": "1533:5:66",
|
|
1316
1316
|
"typeDescriptions": {
|
|
1317
1317
|
"typeIdentifier": "t_int96",
|
|
1318
1318
|
"typeString": "int96"
|
|
@@ -1322,13 +1322,13 @@
|
|
|
1322
1322
|
},
|
|
1323
1323
|
{
|
|
1324
1324
|
"constant": false,
|
|
1325
|
-
"id":
|
|
1325
|
+
"id": 20211,
|
|
1326
1326
|
"mutability": "mutable",
|
|
1327
1327
|
"name": "b",
|
|
1328
|
-
"nameLocation": "1548:1:
|
|
1328
|
+
"nameLocation": "1548:1:66",
|
|
1329
1329
|
"nodeType": "VariableDeclaration",
|
|
1330
|
-
"scope":
|
|
1331
|
-
"src": "1542:7:
|
|
1330
|
+
"scope": 20248,
|
|
1331
|
+
"src": "1542:7:66",
|
|
1332
1332
|
"stateVariable": false,
|
|
1333
1333
|
"storageLocation": "default",
|
|
1334
1334
|
"typeDescriptions": {
|
|
@@ -1336,10 +1336,10 @@
|
|
|
1336
1336
|
"typeString": "int96"
|
|
1337
1337
|
},
|
|
1338
1338
|
"typeName": {
|
|
1339
|
-
"id":
|
|
1339
|
+
"id": 20210,
|
|
1340
1340
|
"name": "int96",
|
|
1341
1341
|
"nodeType": "ElementaryTypeName",
|
|
1342
|
-
"src": "1542:5:
|
|
1342
|
+
"src": "1542:5:66",
|
|
1343
1343
|
"typeDescriptions": {
|
|
1344
1344
|
"typeIdentifier": "t_int96",
|
|
1345
1345
|
"typeString": "int96"
|
|
@@ -1349,13 +1349,13 @@
|
|
|
1349
1349
|
},
|
|
1350
1350
|
{
|
|
1351
1351
|
"constant": false,
|
|
1352
|
-
"id":
|
|
1352
|
+
"id": 20213,
|
|
1353
1353
|
"mutability": "mutable",
|
|
1354
1354
|
"name": "errorMessage",
|
|
1355
|
-
"nameLocation": "1565:12:
|
|
1355
|
+
"nameLocation": "1565:12:66",
|
|
1356
1356
|
"nodeType": "VariableDeclaration",
|
|
1357
|
-
"scope":
|
|
1358
|
-
"src": "1551:26:
|
|
1357
|
+
"scope": 20248,
|
|
1358
|
+
"src": "1551:26:66",
|
|
1359
1359
|
"stateVariable": false,
|
|
1360
1360
|
"storageLocation": "memory",
|
|
1361
1361
|
"typeDescriptions": {
|
|
@@ -1363,10 +1363,10 @@
|
|
|
1363
1363
|
"typeString": "string"
|
|
1364
1364
|
},
|
|
1365
1365
|
"typeName": {
|
|
1366
|
-
"id":
|
|
1366
|
+
"id": 20212,
|
|
1367
1367
|
"name": "string",
|
|
1368
1368
|
"nodeType": "ElementaryTypeName",
|
|
1369
|
-
"src": "1551:6:
|
|
1369
|
+
"src": "1551:6:66",
|
|
1370
1370
|
"typeDescriptions": {
|
|
1371
1371
|
"typeIdentifier": "t_string_storage_ptr",
|
|
1372
1372
|
"typeString": "string"
|
|
@@ -1375,21 +1375,21 @@
|
|
|
1375
1375
|
"visibility": "internal"
|
|
1376
1376
|
}
|
|
1377
1377
|
],
|
|
1378
|
-
"src": "1532:46:
|
|
1378
|
+
"src": "1532:46:66"
|
|
1379
1379
|
},
|
|
1380
1380
|
"returnParameters": {
|
|
1381
|
-
"id":
|
|
1381
|
+
"id": 20217,
|
|
1382
1382
|
"nodeType": "ParameterList",
|
|
1383
1383
|
"parameters": [
|
|
1384
1384
|
{
|
|
1385
1385
|
"constant": false,
|
|
1386
|
-
"id":
|
|
1386
|
+
"id": 20216,
|
|
1387
1387
|
"mutability": "mutable",
|
|
1388
1388
|
"name": "",
|
|
1389
1389
|
"nameLocation": "-1:-1:-1",
|
|
1390
1390
|
"nodeType": "VariableDeclaration",
|
|
1391
|
-
"scope":
|
|
1392
|
-
"src": "1602:5:
|
|
1391
|
+
"scope": 20248,
|
|
1392
|
+
"src": "1602:5:66",
|
|
1393
1393
|
"stateVariable": false,
|
|
1394
1394
|
"storageLocation": "default",
|
|
1395
1395
|
"typeDescriptions": {
|
|
@@ -1397,10 +1397,10 @@
|
|
|
1397
1397
|
"typeString": "int96"
|
|
1398
1398
|
},
|
|
1399
1399
|
"typeName": {
|
|
1400
|
-
"id":
|
|
1400
|
+
"id": 20215,
|
|
1401
1401
|
"name": "int96",
|
|
1402
1402
|
"nodeType": "ElementaryTypeName",
|
|
1403
|
-
"src": "1602:5:
|
|
1403
|
+
"src": "1602:5:66",
|
|
1404
1404
|
"typeDescriptions": {
|
|
1405
1405
|
"typeIdentifier": "t_int96",
|
|
1406
1406
|
"typeString": "int96"
|
|
@@ -1409,34 +1409,34 @@
|
|
|
1409
1409
|
"visibility": "internal"
|
|
1410
1410
|
}
|
|
1411
1411
|
],
|
|
1412
|
-
"src": "1601:7:
|
|
1412
|
+
"src": "1601:7:66"
|
|
1413
1413
|
},
|
|
1414
|
-
"scope":
|
|
1415
|
-
"src": "1520:242:
|
|
1414
|
+
"scope": 20341,
|
|
1415
|
+
"src": "1520:242:66",
|
|
1416
1416
|
"stateMutability": "pure",
|
|
1417
1417
|
"virtual": false,
|
|
1418
1418
|
"visibility": "internal"
|
|
1419
1419
|
},
|
|
1420
1420
|
{
|
|
1421
1421
|
"body": {
|
|
1422
|
-
"id":
|
|
1422
|
+
"id": 20293,
|
|
1423
1423
|
"nodeType": "Block",
|
|
1424
|
-
"src": "2090:169:
|
|
1424
|
+
"src": "2090:169:66",
|
|
1425
1425
|
"statements": [
|
|
1426
1426
|
{
|
|
1427
1427
|
"assignments": [
|
|
1428
|
-
|
|
1428
|
+
20261
|
|
1429
1429
|
],
|
|
1430
1430
|
"declarations": [
|
|
1431
1431
|
{
|
|
1432
1432
|
"constant": false,
|
|
1433
|
-
"id":
|
|
1433
|
+
"id": 20261,
|
|
1434
1434
|
"mutability": "mutable",
|
|
1435
1435
|
"name": "c",
|
|
1436
|
-
"nameLocation": "2106:1:
|
|
1436
|
+
"nameLocation": "2106:1:66",
|
|
1437
1437
|
"nodeType": "VariableDeclaration",
|
|
1438
|
-
"scope":
|
|
1439
|
-
"src": "2100:7:
|
|
1438
|
+
"scope": 20293,
|
|
1439
|
+
"src": "2100:7:66",
|
|
1440
1440
|
"stateVariable": false,
|
|
1441
1441
|
"storageLocation": "default",
|
|
1442
1442
|
"typeDescriptions": {
|
|
@@ -1444,10 +1444,10 @@
|
|
|
1444
1444
|
"typeString": "int96"
|
|
1445
1445
|
},
|
|
1446
1446
|
"typeName": {
|
|
1447
|
-
"id":
|
|
1447
|
+
"id": 20260,
|
|
1448
1448
|
"name": "int96",
|
|
1449
1449
|
"nodeType": "ElementaryTypeName",
|
|
1450
|
-
"src": "2100:5:
|
|
1450
|
+
"src": "2100:5:66",
|
|
1451
1451
|
"typeDescriptions": {
|
|
1452
1452
|
"typeIdentifier": "t_int96",
|
|
1453
1453
|
"typeString": "int96"
|
|
@@ -1456,29 +1456,29 @@
|
|
|
1456
1456
|
"visibility": "internal"
|
|
1457
1457
|
}
|
|
1458
1458
|
],
|
|
1459
|
-
"id":
|
|
1459
|
+
"id": 20262,
|
|
1460
1460
|
"nodeType": "VariableDeclarationStatement",
|
|
1461
|
-
"src": "2100:7:
|
|
1461
|
+
"src": "2100:7:66"
|
|
1462
1462
|
},
|
|
1463
1463
|
{
|
|
1464
|
-
"id":
|
|
1464
|
+
"id": 20269,
|
|
1465
1465
|
"nodeType": "UncheckedBlock",
|
|
1466
|
-
"src": "2118:44:
|
|
1466
|
+
"src": "2118:44:66",
|
|
1467
1467
|
"statements": [
|
|
1468
1468
|
{
|
|
1469
1469
|
"expression": {
|
|
1470
|
-
"id":
|
|
1470
|
+
"id": 20267,
|
|
1471
1471
|
"isConstant": false,
|
|
1472
1472
|
"isLValue": false,
|
|
1473
1473
|
"isPure": false,
|
|
1474
1474
|
"lValueRequested": false,
|
|
1475
1475
|
"leftHandSide": {
|
|
1476
|
-
"id":
|
|
1476
|
+
"id": 20263,
|
|
1477
1477
|
"name": "c",
|
|
1478
1478
|
"nodeType": "Identifier",
|
|
1479
1479
|
"overloadedDeclarations": [],
|
|
1480
|
-
"referencedDeclaration":
|
|
1481
|
-
"src": "2142:1:
|
|
1480
|
+
"referencedDeclaration": 20261,
|
|
1481
|
+
"src": "2142:1:66",
|
|
1482
1482
|
"typeDescriptions": {
|
|
1483
1483
|
"typeIdentifier": "t_int96",
|
|
1484
1484
|
"typeString": "int96"
|
|
@@ -1491,18 +1491,18 @@
|
|
|
1491
1491
|
"typeIdentifier": "t_int96",
|
|
1492
1492
|
"typeString": "int96"
|
|
1493
1493
|
},
|
|
1494
|
-
"id":
|
|
1494
|
+
"id": 20266,
|
|
1495
1495
|
"isConstant": false,
|
|
1496
1496
|
"isLValue": false,
|
|
1497
1497
|
"isPure": false,
|
|
1498
1498
|
"lValueRequested": false,
|
|
1499
1499
|
"leftExpression": {
|
|
1500
|
-
"id":
|
|
1500
|
+
"id": 20264,
|
|
1501
1501
|
"name": "a",
|
|
1502
1502
|
"nodeType": "Identifier",
|
|
1503
1503
|
"overloadedDeclarations": [],
|
|
1504
|
-
"referencedDeclaration":
|
|
1505
|
-
"src": "2146:1:
|
|
1504
|
+
"referencedDeclaration": 20251,
|
|
1505
|
+
"src": "2146:1:66",
|
|
1506
1506
|
"typeDescriptions": {
|
|
1507
1507
|
"typeIdentifier": "t_int96",
|
|
1508
1508
|
"typeString": "int96"
|
|
@@ -1511,32 +1511,32 @@
|
|
|
1511
1511
|
"nodeType": "BinaryOperation",
|
|
1512
1512
|
"operator": "-",
|
|
1513
1513
|
"rightExpression": {
|
|
1514
|
-
"id":
|
|
1514
|
+
"id": 20265,
|
|
1515
1515
|
"name": "b",
|
|
1516
1516
|
"nodeType": "Identifier",
|
|
1517
1517
|
"overloadedDeclarations": [],
|
|
1518
|
-
"referencedDeclaration":
|
|
1519
|
-
"src": "2150:1:
|
|
1518
|
+
"referencedDeclaration": 20253,
|
|
1519
|
+
"src": "2150:1:66",
|
|
1520
1520
|
"typeDescriptions": {
|
|
1521
1521
|
"typeIdentifier": "t_int96",
|
|
1522
1522
|
"typeString": "int96"
|
|
1523
1523
|
}
|
|
1524
1524
|
},
|
|
1525
|
-
"src": "2146:5:
|
|
1525
|
+
"src": "2146:5:66",
|
|
1526
1526
|
"typeDescriptions": {
|
|
1527
1527
|
"typeIdentifier": "t_int96",
|
|
1528
1528
|
"typeString": "int96"
|
|
1529
1529
|
}
|
|
1530
1530
|
},
|
|
1531
|
-
"src": "2142:9:
|
|
1531
|
+
"src": "2142:9:66",
|
|
1532
1532
|
"typeDescriptions": {
|
|
1533
1533
|
"typeIdentifier": "t_int96",
|
|
1534
1534
|
"typeString": "int96"
|
|
1535
1535
|
}
|
|
1536
1536
|
},
|
|
1537
|
-
"id":
|
|
1537
|
+
"id": 20268,
|
|
1538
1538
|
"nodeType": "ExpressionStatement",
|
|
1539
|
-
"src": "2142:9:
|
|
1539
|
+
"src": "2142:9:66"
|
|
1540
1540
|
}
|
|
1541
1541
|
]
|
|
1542
1542
|
},
|
|
@@ -1548,7 +1548,7 @@
|
|
|
1548
1548
|
"typeIdentifier": "t_bool",
|
|
1549
1549
|
"typeString": "bool"
|
|
1550
1550
|
},
|
|
1551
|
-
"id":
|
|
1551
|
+
"id": 20287,
|
|
1552
1552
|
"isConstant": false,
|
|
1553
1553
|
"isLValue": false,
|
|
1554
1554
|
"isPure": false,
|
|
@@ -1560,7 +1560,7 @@
|
|
|
1560
1560
|
"typeIdentifier": "t_bool",
|
|
1561
1561
|
"typeString": "bool"
|
|
1562
1562
|
},
|
|
1563
|
-
"id":
|
|
1563
|
+
"id": 20277,
|
|
1564
1564
|
"isConstant": false,
|
|
1565
1565
|
"isLValue": false,
|
|
1566
1566
|
"isPure": false,
|
|
@@ -1570,18 +1570,18 @@
|
|
|
1570
1570
|
"typeIdentifier": "t_int96",
|
|
1571
1571
|
"typeString": "int96"
|
|
1572
1572
|
},
|
|
1573
|
-
"id":
|
|
1573
|
+
"id": 20273,
|
|
1574
1574
|
"isConstant": false,
|
|
1575
1575
|
"isLValue": false,
|
|
1576
1576
|
"isPure": false,
|
|
1577
1577
|
"lValueRequested": false,
|
|
1578
1578
|
"leftExpression": {
|
|
1579
|
-
"id":
|
|
1579
|
+
"id": 20271,
|
|
1580
1580
|
"name": "b",
|
|
1581
1581
|
"nodeType": "Identifier",
|
|
1582
1582
|
"overloadedDeclarations": [],
|
|
1583
|
-
"referencedDeclaration":
|
|
1584
|
-
"src": "2181:1:
|
|
1583
|
+
"referencedDeclaration": 20253,
|
|
1584
|
+
"src": "2181:1:66",
|
|
1585
1585
|
"typeDescriptions": {
|
|
1586
1586
|
"typeIdentifier": "t_int96",
|
|
1587
1587
|
"typeString": "int96"
|
|
@@ -1591,21 +1591,21 @@
|
|
|
1591
1591
|
"operator": ">=",
|
|
1592
1592
|
"rightExpression": {
|
|
1593
1593
|
"hexValue": "30",
|
|
1594
|
-
"id":
|
|
1594
|
+
"id": 20272,
|
|
1595
1595
|
"isConstant": false,
|
|
1596
1596
|
"isLValue": false,
|
|
1597
1597
|
"isPure": true,
|
|
1598
1598
|
"kind": "number",
|
|
1599
1599
|
"lValueRequested": false,
|
|
1600
1600
|
"nodeType": "Literal",
|
|
1601
|
-
"src": "2186:1:
|
|
1601
|
+
"src": "2186:1:66",
|
|
1602
1602
|
"typeDescriptions": {
|
|
1603
1603
|
"typeIdentifier": "t_rational_0_by_1",
|
|
1604
1604
|
"typeString": "int_const 0"
|
|
1605
1605
|
},
|
|
1606
1606
|
"value": "0"
|
|
1607
1607
|
},
|
|
1608
|
-
"src": "2181:6:
|
|
1608
|
+
"src": "2181:6:66",
|
|
1609
1609
|
"typeDescriptions": {
|
|
1610
1610
|
"typeIdentifier": "t_bool",
|
|
1611
1611
|
"typeString": "bool"
|
|
@@ -1618,18 +1618,18 @@
|
|
|
1618
1618
|
"typeIdentifier": "t_int96",
|
|
1619
1619
|
"typeString": "int96"
|
|
1620
1620
|
},
|
|
1621
|
-
"id":
|
|
1621
|
+
"id": 20276,
|
|
1622
1622
|
"isConstant": false,
|
|
1623
1623
|
"isLValue": false,
|
|
1624
1624
|
"isPure": false,
|
|
1625
1625
|
"lValueRequested": false,
|
|
1626
1626
|
"leftExpression": {
|
|
1627
|
-
"id":
|
|
1627
|
+
"id": 20274,
|
|
1628
1628
|
"name": "c",
|
|
1629
1629
|
"nodeType": "Identifier",
|
|
1630
1630
|
"overloadedDeclarations": [],
|
|
1631
|
-
"referencedDeclaration":
|
|
1632
|
-
"src": "2191:1:
|
|
1631
|
+
"referencedDeclaration": 20261,
|
|
1632
|
+
"src": "2191:1:66",
|
|
1633
1633
|
"typeDescriptions": {
|
|
1634
1634
|
"typeIdentifier": "t_int96",
|
|
1635
1635
|
"typeString": "int96"
|
|
@@ -1638,38 +1638,38 @@
|
|
|
1638
1638
|
"nodeType": "BinaryOperation",
|
|
1639
1639
|
"operator": "<=",
|
|
1640
1640
|
"rightExpression": {
|
|
1641
|
-
"id":
|
|
1641
|
+
"id": 20275,
|
|
1642
1642
|
"name": "a",
|
|
1643
1643
|
"nodeType": "Identifier",
|
|
1644
1644
|
"overloadedDeclarations": [],
|
|
1645
|
-
"referencedDeclaration":
|
|
1646
|
-
"src": "2196:1:
|
|
1645
|
+
"referencedDeclaration": 20251,
|
|
1646
|
+
"src": "2196:1:66",
|
|
1647
1647
|
"typeDescriptions": {
|
|
1648
1648
|
"typeIdentifier": "t_int96",
|
|
1649
1649
|
"typeString": "int96"
|
|
1650
1650
|
}
|
|
1651
1651
|
},
|
|
1652
|
-
"src": "2191:6:
|
|
1652
|
+
"src": "2191:6:66",
|
|
1653
1653
|
"typeDescriptions": {
|
|
1654
1654
|
"typeIdentifier": "t_bool",
|
|
1655
1655
|
"typeString": "bool"
|
|
1656
1656
|
}
|
|
1657
1657
|
},
|
|
1658
|
-
"src": "2181:16:
|
|
1658
|
+
"src": "2181:16:66",
|
|
1659
1659
|
"typeDescriptions": {
|
|
1660
1660
|
"typeIdentifier": "t_bool",
|
|
1661
1661
|
"typeString": "bool"
|
|
1662
1662
|
}
|
|
1663
1663
|
}
|
|
1664
1664
|
],
|
|
1665
|
-
"id":
|
|
1665
|
+
"id": 20278,
|
|
1666
1666
|
"isConstant": false,
|
|
1667
1667
|
"isInlineArray": false,
|
|
1668
1668
|
"isLValue": false,
|
|
1669
1669
|
"isPure": false,
|
|
1670
1670
|
"lValueRequested": false,
|
|
1671
1671
|
"nodeType": "TupleExpression",
|
|
1672
|
-
"src": "2180:18:
|
|
1672
|
+
"src": "2180:18:66",
|
|
1673
1673
|
"typeDescriptions": {
|
|
1674
1674
|
"typeIdentifier": "t_bool",
|
|
1675
1675
|
"typeString": "bool"
|
|
@@ -1684,7 +1684,7 @@
|
|
|
1684
1684
|
"typeIdentifier": "t_bool",
|
|
1685
1685
|
"typeString": "bool"
|
|
1686
1686
|
},
|
|
1687
|
-
"id":
|
|
1687
|
+
"id": 20285,
|
|
1688
1688
|
"isConstant": false,
|
|
1689
1689
|
"isLValue": false,
|
|
1690
1690
|
"isPure": false,
|
|
@@ -1694,18 +1694,18 @@
|
|
|
1694
1694
|
"typeIdentifier": "t_int96",
|
|
1695
1695
|
"typeString": "int96"
|
|
1696
1696
|
},
|
|
1697
|
-
"id":
|
|
1697
|
+
"id": 20281,
|
|
1698
1698
|
"isConstant": false,
|
|
1699
1699
|
"isLValue": false,
|
|
1700
1700
|
"isPure": false,
|
|
1701
1701
|
"lValueRequested": false,
|
|
1702
1702
|
"leftExpression": {
|
|
1703
|
-
"id":
|
|
1703
|
+
"id": 20279,
|
|
1704
1704
|
"name": "b",
|
|
1705
1705
|
"nodeType": "Identifier",
|
|
1706
1706
|
"overloadedDeclarations": [],
|
|
1707
|
-
"referencedDeclaration":
|
|
1708
|
-
"src": "2203:1:
|
|
1707
|
+
"referencedDeclaration": 20253,
|
|
1708
|
+
"src": "2203:1:66",
|
|
1709
1709
|
"typeDescriptions": {
|
|
1710
1710
|
"typeIdentifier": "t_int96",
|
|
1711
1711
|
"typeString": "int96"
|
|
@@ -1715,21 +1715,21 @@
|
|
|
1715
1715
|
"operator": "<",
|
|
1716
1716
|
"rightExpression": {
|
|
1717
1717
|
"hexValue": "30",
|
|
1718
|
-
"id":
|
|
1718
|
+
"id": 20280,
|
|
1719
1719
|
"isConstant": false,
|
|
1720
1720
|
"isLValue": false,
|
|
1721
1721
|
"isPure": true,
|
|
1722
1722
|
"kind": "number",
|
|
1723
1723
|
"lValueRequested": false,
|
|
1724
1724
|
"nodeType": "Literal",
|
|
1725
|
-
"src": "2207:1:
|
|
1725
|
+
"src": "2207:1:66",
|
|
1726
1726
|
"typeDescriptions": {
|
|
1727
1727
|
"typeIdentifier": "t_rational_0_by_1",
|
|
1728
1728
|
"typeString": "int_const 0"
|
|
1729
1729
|
},
|
|
1730
1730
|
"value": "0"
|
|
1731
1731
|
},
|
|
1732
|
-
"src": "2203:5:
|
|
1732
|
+
"src": "2203:5:66",
|
|
1733
1733
|
"typeDescriptions": {
|
|
1734
1734
|
"typeIdentifier": "t_bool",
|
|
1735
1735
|
"typeString": "bool"
|
|
@@ -1742,18 +1742,18 @@
|
|
|
1742
1742
|
"typeIdentifier": "t_int96",
|
|
1743
1743
|
"typeString": "int96"
|
|
1744
1744
|
},
|
|
1745
|
-
"id":
|
|
1745
|
+
"id": 20284,
|
|
1746
1746
|
"isConstant": false,
|
|
1747
1747
|
"isLValue": false,
|
|
1748
1748
|
"isPure": false,
|
|
1749
1749
|
"lValueRequested": false,
|
|
1750
1750
|
"leftExpression": {
|
|
1751
|
-
"id":
|
|
1751
|
+
"id": 20282,
|
|
1752
1752
|
"name": "c",
|
|
1753
1753
|
"nodeType": "Identifier",
|
|
1754
1754
|
"overloadedDeclarations": [],
|
|
1755
|
-
"referencedDeclaration":
|
|
1756
|
-
"src": "2212:1:
|
|
1755
|
+
"referencedDeclaration": 20261,
|
|
1756
|
+
"src": "2212:1:66",
|
|
1757
1757
|
"typeDescriptions": {
|
|
1758
1758
|
"typeIdentifier": "t_int96",
|
|
1759
1759
|
"typeString": "int96"
|
|
@@ -1762,56 +1762,56 @@
|
|
|
1762
1762
|
"nodeType": "BinaryOperation",
|
|
1763
1763
|
"operator": ">",
|
|
1764
1764
|
"rightExpression": {
|
|
1765
|
-
"id":
|
|
1765
|
+
"id": 20283,
|
|
1766
1766
|
"name": "a",
|
|
1767
1767
|
"nodeType": "Identifier",
|
|
1768
1768
|
"overloadedDeclarations": [],
|
|
1769
|
-
"referencedDeclaration":
|
|
1770
|
-
"src": "2216:1:
|
|
1769
|
+
"referencedDeclaration": 20251,
|
|
1770
|
+
"src": "2216:1:66",
|
|
1771
1771
|
"typeDescriptions": {
|
|
1772
1772
|
"typeIdentifier": "t_int96",
|
|
1773
1773
|
"typeString": "int96"
|
|
1774
1774
|
}
|
|
1775
1775
|
},
|
|
1776
|
-
"src": "2212:5:
|
|
1776
|
+
"src": "2212:5:66",
|
|
1777
1777
|
"typeDescriptions": {
|
|
1778
1778
|
"typeIdentifier": "t_bool",
|
|
1779
1779
|
"typeString": "bool"
|
|
1780
1780
|
}
|
|
1781
1781
|
},
|
|
1782
|
-
"src": "2203:14:
|
|
1782
|
+
"src": "2203:14:66",
|
|
1783
1783
|
"typeDescriptions": {
|
|
1784
1784
|
"typeIdentifier": "t_bool",
|
|
1785
1785
|
"typeString": "bool"
|
|
1786
1786
|
}
|
|
1787
1787
|
}
|
|
1788
1788
|
],
|
|
1789
|
-
"id":
|
|
1789
|
+
"id": 20286,
|
|
1790
1790
|
"isConstant": false,
|
|
1791
1791
|
"isInlineArray": false,
|
|
1792
1792
|
"isLValue": false,
|
|
1793
1793
|
"isPure": false,
|
|
1794
1794
|
"lValueRequested": false,
|
|
1795
1795
|
"nodeType": "TupleExpression",
|
|
1796
|
-
"src": "2202:16:
|
|
1796
|
+
"src": "2202:16:66",
|
|
1797
1797
|
"typeDescriptions": {
|
|
1798
1798
|
"typeIdentifier": "t_bool",
|
|
1799
1799
|
"typeString": "bool"
|
|
1800
1800
|
}
|
|
1801
1801
|
},
|
|
1802
|
-
"src": "2180:38:
|
|
1802
|
+
"src": "2180:38:66",
|
|
1803
1803
|
"typeDescriptions": {
|
|
1804
1804
|
"typeIdentifier": "t_bool",
|
|
1805
1805
|
"typeString": "bool"
|
|
1806
1806
|
}
|
|
1807
1807
|
},
|
|
1808
1808
|
{
|
|
1809
|
-
"id":
|
|
1809
|
+
"id": 20288,
|
|
1810
1810
|
"name": "errorMessage",
|
|
1811
1811
|
"nodeType": "Identifier",
|
|
1812
1812
|
"overloadedDeclarations": [],
|
|
1813
|
-
"referencedDeclaration":
|
|
1814
|
-
"src": "2220:12:
|
|
1813
|
+
"referencedDeclaration": 20255,
|
|
1814
|
+
"src": "2220:12:66",
|
|
1815
1815
|
"typeDescriptions": {
|
|
1816
1816
|
"typeIdentifier": "t_string_memory_ptr",
|
|
1817
1817
|
"typeString": "string memory"
|
|
@@ -1829,7 +1829,7 @@
|
|
|
1829
1829
|
"typeString": "string memory"
|
|
1830
1830
|
}
|
|
1831
1831
|
],
|
|
1832
|
-
"id":
|
|
1832
|
+
"id": 20270,
|
|
1833
1833
|
"name": "require",
|
|
1834
1834
|
"nodeType": "Identifier",
|
|
1835
1835
|
"overloadedDeclarations": [
|
|
@@ -1837,13 +1837,13 @@
|
|
|
1837
1837
|
4294967278
|
|
1838
1838
|
],
|
|
1839
1839
|
"referencedDeclaration": 4294967278,
|
|
1840
|
-
"src": "2172:7:
|
|
1840
|
+
"src": "2172:7:66",
|
|
1841
1841
|
"typeDescriptions": {
|
|
1842
1842
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
1843
1843
|
"typeString": "function (bool,string memory) pure"
|
|
1844
1844
|
}
|
|
1845
1845
|
},
|
|
1846
|
-
"id":
|
|
1846
|
+
"id": 20289,
|
|
1847
1847
|
"isConstant": false,
|
|
1848
1848
|
"isLValue": false,
|
|
1849
1849
|
"isPure": false,
|
|
@@ -1851,63 +1851,63 @@
|
|
|
1851
1851
|
"lValueRequested": false,
|
|
1852
1852
|
"names": [],
|
|
1853
1853
|
"nodeType": "FunctionCall",
|
|
1854
|
-
"src": "2172:61:
|
|
1854
|
+
"src": "2172:61:66",
|
|
1855
1855
|
"tryCall": false,
|
|
1856
1856
|
"typeDescriptions": {
|
|
1857
1857
|
"typeIdentifier": "t_tuple$__$",
|
|
1858
1858
|
"typeString": "tuple()"
|
|
1859
1859
|
}
|
|
1860
1860
|
},
|
|
1861
|
-
"id":
|
|
1861
|
+
"id": 20290,
|
|
1862
1862
|
"nodeType": "ExpressionStatement",
|
|
1863
|
-
"src": "2172:61:
|
|
1863
|
+
"src": "2172:61:66"
|
|
1864
1864
|
},
|
|
1865
1865
|
{
|
|
1866
1866
|
"expression": {
|
|
1867
|
-
"id":
|
|
1867
|
+
"id": 20291,
|
|
1868
1868
|
"name": "c",
|
|
1869
1869
|
"nodeType": "Identifier",
|
|
1870
1870
|
"overloadedDeclarations": [],
|
|
1871
|
-
"referencedDeclaration":
|
|
1872
|
-
"src": "2251:1:
|
|
1871
|
+
"referencedDeclaration": 20261,
|
|
1872
|
+
"src": "2251:1:66",
|
|
1873
1873
|
"typeDescriptions": {
|
|
1874
1874
|
"typeIdentifier": "t_int96",
|
|
1875
1875
|
"typeString": "int96"
|
|
1876
1876
|
}
|
|
1877
1877
|
},
|
|
1878
|
-
"functionReturnParameters":
|
|
1879
|
-
"id":
|
|
1878
|
+
"functionReturnParameters": 20259,
|
|
1879
|
+
"id": 20292,
|
|
1880
1880
|
"nodeType": "Return",
|
|
1881
|
-
"src": "2244:8:
|
|
1881
|
+
"src": "2244:8:66"
|
|
1882
1882
|
}
|
|
1883
1883
|
]
|
|
1884
1884
|
},
|
|
1885
1885
|
"documentation": {
|
|
1886
|
-
"id":
|
|
1886
|
+
"id": 20249,
|
|
1887
1887
|
"nodeType": "StructuredDocumentation",
|
|
1888
|
-
"src": "1768:228:
|
|
1888
|
+
"src": "1768:228:66",
|
|
1889
1889
|
"text": " @dev Returns the subtraction of two signed integers, reverting on\n overflow.\n Counterpart to Solidity's `-` operator.\n Requirements:\n - Subtraction cannot overflow."
|
|
1890
1890
|
},
|
|
1891
|
-
"id":
|
|
1891
|
+
"id": 20294,
|
|
1892
1892
|
"implemented": true,
|
|
1893
1893
|
"kind": "function",
|
|
1894
1894
|
"modifiers": [],
|
|
1895
1895
|
"name": "sub",
|
|
1896
|
-
"nameLocation": "2010:3:
|
|
1896
|
+
"nameLocation": "2010:3:66",
|
|
1897
1897
|
"nodeType": "FunctionDefinition",
|
|
1898
1898
|
"parameters": {
|
|
1899
|
-
"id":
|
|
1899
|
+
"id": 20256,
|
|
1900
1900
|
"nodeType": "ParameterList",
|
|
1901
1901
|
"parameters": [
|
|
1902
1902
|
{
|
|
1903
1903
|
"constant": false,
|
|
1904
|
-
"id":
|
|
1904
|
+
"id": 20251,
|
|
1905
1905
|
"mutability": "mutable",
|
|
1906
1906
|
"name": "a",
|
|
1907
|
-
"nameLocation": "2020:1:
|
|
1907
|
+
"nameLocation": "2020:1:66",
|
|
1908
1908
|
"nodeType": "VariableDeclaration",
|
|
1909
|
-
"scope":
|
|
1910
|
-
"src": "2014:7:
|
|
1909
|
+
"scope": 20294,
|
|
1910
|
+
"src": "2014:7:66",
|
|
1911
1911
|
"stateVariable": false,
|
|
1912
1912
|
"storageLocation": "default",
|
|
1913
1913
|
"typeDescriptions": {
|
|
@@ -1915,10 +1915,10 @@
|
|
|
1915
1915
|
"typeString": "int96"
|
|
1916
1916
|
},
|
|
1917
1917
|
"typeName": {
|
|
1918
|
-
"id":
|
|
1918
|
+
"id": 20250,
|
|
1919
1919
|
"name": "int96",
|
|
1920
1920
|
"nodeType": "ElementaryTypeName",
|
|
1921
|
-
"src": "2014:5:
|
|
1921
|
+
"src": "2014:5:66",
|
|
1922
1922
|
"typeDescriptions": {
|
|
1923
1923
|
"typeIdentifier": "t_int96",
|
|
1924
1924
|
"typeString": "int96"
|
|
@@ -1928,13 +1928,13 @@
|
|
|
1928
1928
|
},
|
|
1929
1929
|
{
|
|
1930
1930
|
"constant": false,
|
|
1931
|
-
"id":
|
|
1931
|
+
"id": 20253,
|
|
1932
1932
|
"mutability": "mutable",
|
|
1933
1933
|
"name": "b",
|
|
1934
|
-
"nameLocation": "2029:1:
|
|
1934
|
+
"nameLocation": "2029:1:66",
|
|
1935
1935
|
"nodeType": "VariableDeclaration",
|
|
1936
|
-
"scope":
|
|
1937
|
-
"src": "2023:7:
|
|
1936
|
+
"scope": 20294,
|
|
1937
|
+
"src": "2023:7:66",
|
|
1938
1938
|
"stateVariable": false,
|
|
1939
1939
|
"storageLocation": "default",
|
|
1940
1940
|
"typeDescriptions": {
|
|
@@ -1942,10 +1942,10 @@
|
|
|
1942
1942
|
"typeString": "int96"
|
|
1943
1943
|
},
|
|
1944
1944
|
"typeName": {
|
|
1945
|
-
"id":
|
|
1945
|
+
"id": 20252,
|
|
1946
1946
|
"name": "int96",
|
|
1947
1947
|
"nodeType": "ElementaryTypeName",
|
|
1948
|
-
"src": "2023:5:
|
|
1948
|
+
"src": "2023:5:66",
|
|
1949
1949
|
"typeDescriptions": {
|
|
1950
1950
|
"typeIdentifier": "t_int96",
|
|
1951
1951
|
"typeString": "int96"
|
|
@@ -1955,13 +1955,13 @@
|
|
|
1955
1955
|
},
|
|
1956
1956
|
{
|
|
1957
1957
|
"constant": false,
|
|
1958
|
-
"id":
|
|
1958
|
+
"id": 20255,
|
|
1959
1959
|
"mutability": "mutable",
|
|
1960
1960
|
"name": "errorMessage",
|
|
1961
|
-
"nameLocation": "2046:12:
|
|
1961
|
+
"nameLocation": "2046:12:66",
|
|
1962
1962
|
"nodeType": "VariableDeclaration",
|
|
1963
|
-
"scope":
|
|
1964
|
-
"src": "2032:26:
|
|
1963
|
+
"scope": 20294,
|
|
1964
|
+
"src": "2032:26:66",
|
|
1965
1965
|
"stateVariable": false,
|
|
1966
1966
|
"storageLocation": "memory",
|
|
1967
1967
|
"typeDescriptions": {
|
|
@@ -1969,10 +1969,10 @@
|
|
|
1969
1969
|
"typeString": "string"
|
|
1970
1970
|
},
|
|
1971
1971
|
"typeName": {
|
|
1972
|
-
"id":
|
|
1972
|
+
"id": 20254,
|
|
1973
1973
|
"name": "string",
|
|
1974
1974
|
"nodeType": "ElementaryTypeName",
|
|
1975
|
-
"src": "2032:6:
|
|
1975
|
+
"src": "2032:6:66",
|
|
1976
1976
|
"typeDescriptions": {
|
|
1977
1977
|
"typeIdentifier": "t_string_storage_ptr",
|
|
1978
1978
|
"typeString": "string"
|
|
@@ -1981,21 +1981,21 @@
|
|
|
1981
1981
|
"visibility": "internal"
|
|
1982
1982
|
}
|
|
1983
1983
|
],
|
|
1984
|
-
"src": "2013:46:
|
|
1984
|
+
"src": "2013:46:66"
|
|
1985
1985
|
},
|
|
1986
1986
|
"returnParameters": {
|
|
1987
|
-
"id":
|
|
1987
|
+
"id": 20259,
|
|
1988
1988
|
"nodeType": "ParameterList",
|
|
1989
1989
|
"parameters": [
|
|
1990
1990
|
{
|
|
1991
1991
|
"constant": false,
|
|
1992
|
-
"id":
|
|
1992
|
+
"id": 20258,
|
|
1993
1993
|
"mutability": "mutable",
|
|
1994
1994
|
"name": "",
|
|
1995
1995
|
"nameLocation": "-1:-1:-1",
|
|
1996
1996
|
"nodeType": "VariableDeclaration",
|
|
1997
|
-
"scope":
|
|
1998
|
-
"src": "2083:5:
|
|
1997
|
+
"scope": 20294,
|
|
1998
|
+
"src": "2083:5:66",
|
|
1999
1999
|
"stateVariable": false,
|
|
2000
2000
|
"storageLocation": "default",
|
|
2001
2001
|
"typeDescriptions": {
|
|
@@ -2003,10 +2003,10 @@
|
|
|
2003
2003
|
"typeString": "int96"
|
|
2004
2004
|
},
|
|
2005
2005
|
"typeName": {
|
|
2006
|
-
"id":
|
|
2006
|
+
"id": 20257,
|
|
2007
2007
|
"name": "int96",
|
|
2008
2008
|
"nodeType": "ElementaryTypeName",
|
|
2009
|
-
"src": "2083:5:
|
|
2009
|
+
"src": "2083:5:66",
|
|
2010
2010
|
"typeDescriptions": {
|
|
2011
2011
|
"typeIdentifier": "t_int96",
|
|
2012
2012
|
"typeString": "int96"
|
|
@@ -2015,34 +2015,34 @@
|
|
|
2015
2015
|
"visibility": "internal"
|
|
2016
2016
|
}
|
|
2017
2017
|
],
|
|
2018
|
-
"src": "2082:7:
|
|
2018
|
+
"src": "2082:7:66"
|
|
2019
2019
|
},
|
|
2020
|
-
"scope":
|
|
2021
|
-
"src": "2001:258:
|
|
2020
|
+
"scope": 20341,
|
|
2021
|
+
"src": "2001:258:66",
|
|
2022
2022
|
"stateMutability": "pure",
|
|
2023
2023
|
"virtual": false,
|
|
2024
2024
|
"visibility": "internal"
|
|
2025
2025
|
},
|
|
2026
2026
|
{
|
|
2027
2027
|
"body": {
|
|
2028
|
-
"id":
|
|
2028
|
+
"id": 20339,
|
|
2029
2029
|
"nodeType": "Block",
|
|
2030
|
-
"src": "2581:177:
|
|
2030
|
+
"src": "2581:177:66",
|
|
2031
2031
|
"statements": [
|
|
2032
2032
|
{
|
|
2033
2033
|
"assignments": [
|
|
2034
|
-
|
|
2034
|
+
20307
|
|
2035
2035
|
],
|
|
2036
2036
|
"declarations": [
|
|
2037
2037
|
{
|
|
2038
2038
|
"constant": false,
|
|
2039
|
-
"id":
|
|
2039
|
+
"id": 20307,
|
|
2040
2040
|
"mutability": "mutable",
|
|
2041
2041
|
"name": "c",
|
|
2042
|
-
"nameLocation": "2597:1:
|
|
2042
|
+
"nameLocation": "2597:1:66",
|
|
2043
2043
|
"nodeType": "VariableDeclaration",
|
|
2044
|
-
"scope":
|
|
2045
|
-
"src": "2591:7:
|
|
2044
|
+
"scope": 20339,
|
|
2045
|
+
"src": "2591:7:66",
|
|
2046
2046
|
"stateVariable": false,
|
|
2047
2047
|
"storageLocation": "default",
|
|
2048
2048
|
"typeDescriptions": {
|
|
@@ -2050,10 +2050,10 @@
|
|
|
2050
2050
|
"typeString": "int96"
|
|
2051
2051
|
},
|
|
2052
2052
|
"typeName": {
|
|
2053
|
-
"id":
|
|
2053
|
+
"id": 20306,
|
|
2054
2054
|
"name": "int96",
|
|
2055
2055
|
"nodeType": "ElementaryTypeName",
|
|
2056
|
-
"src": "2591:5:
|
|
2056
|
+
"src": "2591:5:66",
|
|
2057
2057
|
"typeDescriptions": {
|
|
2058
2058
|
"typeIdentifier": "t_int96",
|
|
2059
2059
|
"typeString": "int96"
|
|
@@ -2062,29 +2062,29 @@
|
|
|
2062
2062
|
"visibility": "internal"
|
|
2063
2063
|
}
|
|
2064
2064
|
],
|
|
2065
|
-
"id":
|
|
2065
|
+
"id": 20308,
|
|
2066
2066
|
"nodeType": "VariableDeclarationStatement",
|
|
2067
|
-
"src": "2591:7:
|
|
2067
|
+
"src": "2591:7:66"
|
|
2068
2068
|
},
|
|
2069
2069
|
{
|
|
2070
|
-
"id":
|
|
2070
|
+
"id": 20315,
|
|
2071
2071
|
"nodeType": "UncheckedBlock",
|
|
2072
|
-
"src": "2617:44:
|
|
2072
|
+
"src": "2617:44:66",
|
|
2073
2073
|
"statements": [
|
|
2074
2074
|
{
|
|
2075
2075
|
"expression": {
|
|
2076
|
-
"id":
|
|
2076
|
+
"id": 20313,
|
|
2077
2077
|
"isConstant": false,
|
|
2078
2078
|
"isLValue": false,
|
|
2079
2079
|
"isPure": false,
|
|
2080
2080
|
"lValueRequested": false,
|
|
2081
2081
|
"leftHandSide": {
|
|
2082
|
-
"id":
|
|
2082
|
+
"id": 20309,
|
|
2083
2083
|
"name": "c",
|
|
2084
2084
|
"nodeType": "Identifier",
|
|
2085
2085
|
"overloadedDeclarations": [],
|
|
2086
|
-
"referencedDeclaration":
|
|
2087
|
-
"src": "2641:1:
|
|
2086
|
+
"referencedDeclaration": 20307,
|
|
2087
|
+
"src": "2641:1:66",
|
|
2088
2088
|
"typeDescriptions": {
|
|
2089
2089
|
"typeIdentifier": "t_int96",
|
|
2090
2090
|
"typeString": "int96"
|
|
@@ -2097,18 +2097,18 @@
|
|
|
2097
2097
|
"typeIdentifier": "t_int96",
|
|
2098
2098
|
"typeString": "int96"
|
|
2099
2099
|
},
|
|
2100
|
-
"id":
|
|
2100
|
+
"id": 20312,
|
|
2101
2101
|
"isConstant": false,
|
|
2102
2102
|
"isLValue": false,
|
|
2103
2103
|
"isPure": false,
|
|
2104
2104
|
"lValueRequested": false,
|
|
2105
2105
|
"leftExpression": {
|
|
2106
|
-
"id":
|
|
2106
|
+
"id": 20310,
|
|
2107
2107
|
"name": "a",
|
|
2108
2108
|
"nodeType": "Identifier",
|
|
2109
2109
|
"overloadedDeclarations": [],
|
|
2110
|
-
"referencedDeclaration":
|
|
2111
|
-
"src": "2645:1:
|
|
2110
|
+
"referencedDeclaration": 20297,
|
|
2111
|
+
"src": "2645:1:66",
|
|
2112
2112
|
"typeDescriptions": {
|
|
2113
2113
|
"typeIdentifier": "t_int96",
|
|
2114
2114
|
"typeString": "int96"
|
|
@@ -2117,32 +2117,32 @@
|
|
|
2117
2117
|
"nodeType": "BinaryOperation",
|
|
2118
2118
|
"operator": "+",
|
|
2119
2119
|
"rightExpression": {
|
|
2120
|
-
"id":
|
|
2120
|
+
"id": 20311,
|
|
2121
2121
|
"name": "b",
|
|
2122
2122
|
"nodeType": "Identifier",
|
|
2123
2123
|
"overloadedDeclarations": [],
|
|
2124
|
-
"referencedDeclaration":
|
|
2125
|
-
"src": "2649:1:
|
|
2124
|
+
"referencedDeclaration": 20299,
|
|
2125
|
+
"src": "2649:1:66",
|
|
2126
2126
|
"typeDescriptions": {
|
|
2127
2127
|
"typeIdentifier": "t_int96",
|
|
2128
2128
|
"typeString": "int96"
|
|
2129
2129
|
}
|
|
2130
2130
|
},
|
|
2131
|
-
"src": "2645:5:
|
|
2131
|
+
"src": "2645:5:66",
|
|
2132
2132
|
"typeDescriptions": {
|
|
2133
2133
|
"typeIdentifier": "t_int96",
|
|
2134
2134
|
"typeString": "int96"
|
|
2135
2135
|
}
|
|
2136
2136
|
},
|
|
2137
|
-
"src": "2641:9:
|
|
2137
|
+
"src": "2641:9:66",
|
|
2138
2138
|
"typeDescriptions": {
|
|
2139
2139
|
"typeIdentifier": "t_int96",
|
|
2140
2140
|
"typeString": "int96"
|
|
2141
2141
|
}
|
|
2142
2142
|
},
|
|
2143
|
-
"id":
|
|
2143
|
+
"id": 20314,
|
|
2144
2144
|
"nodeType": "ExpressionStatement",
|
|
2145
|
-
"src": "2641:9:
|
|
2145
|
+
"src": "2641:9:66"
|
|
2146
2146
|
}
|
|
2147
2147
|
]
|
|
2148
2148
|
},
|
|
@@ -2154,7 +2154,7 @@
|
|
|
2154
2154
|
"typeIdentifier": "t_bool",
|
|
2155
2155
|
"typeString": "bool"
|
|
2156
2156
|
},
|
|
2157
|
-
"id":
|
|
2157
|
+
"id": 20333,
|
|
2158
2158
|
"isConstant": false,
|
|
2159
2159
|
"isLValue": false,
|
|
2160
2160
|
"isPure": false,
|
|
@@ -2166,7 +2166,7 @@
|
|
|
2166
2166
|
"typeIdentifier": "t_bool",
|
|
2167
2167
|
"typeString": "bool"
|
|
2168
2168
|
},
|
|
2169
|
-
"id":
|
|
2169
|
+
"id": 20323,
|
|
2170
2170
|
"isConstant": false,
|
|
2171
2171
|
"isLValue": false,
|
|
2172
2172
|
"isPure": false,
|
|
@@ -2176,18 +2176,18 @@
|
|
|
2176
2176
|
"typeIdentifier": "t_int96",
|
|
2177
2177
|
"typeString": "int96"
|
|
2178
2178
|
},
|
|
2179
|
-
"id":
|
|
2179
|
+
"id": 20319,
|
|
2180
2180
|
"isConstant": false,
|
|
2181
2181
|
"isLValue": false,
|
|
2182
2182
|
"isPure": false,
|
|
2183
2183
|
"lValueRequested": false,
|
|
2184
2184
|
"leftExpression": {
|
|
2185
|
-
"id":
|
|
2185
|
+
"id": 20317,
|
|
2186
2186
|
"name": "b",
|
|
2187
2187
|
"nodeType": "Identifier",
|
|
2188
2188
|
"overloadedDeclarations": [],
|
|
2189
|
-
"referencedDeclaration":
|
|
2190
|
-
"src": "2680:1:
|
|
2189
|
+
"referencedDeclaration": 20299,
|
|
2190
|
+
"src": "2680:1:66",
|
|
2191
2191
|
"typeDescriptions": {
|
|
2192
2192
|
"typeIdentifier": "t_int96",
|
|
2193
2193
|
"typeString": "int96"
|
|
@@ -2197,21 +2197,21 @@
|
|
|
2197
2197
|
"operator": ">=",
|
|
2198
2198
|
"rightExpression": {
|
|
2199
2199
|
"hexValue": "30",
|
|
2200
|
-
"id":
|
|
2200
|
+
"id": 20318,
|
|
2201
2201
|
"isConstant": false,
|
|
2202
2202
|
"isLValue": false,
|
|
2203
2203
|
"isPure": true,
|
|
2204
2204
|
"kind": "number",
|
|
2205
2205
|
"lValueRequested": false,
|
|
2206
2206
|
"nodeType": "Literal",
|
|
2207
|
-
"src": "2685:1:
|
|
2207
|
+
"src": "2685:1:66",
|
|
2208
2208
|
"typeDescriptions": {
|
|
2209
2209
|
"typeIdentifier": "t_rational_0_by_1",
|
|
2210
2210
|
"typeString": "int_const 0"
|
|
2211
2211
|
},
|
|
2212
2212
|
"value": "0"
|
|
2213
2213
|
},
|
|
2214
|
-
"src": "2680:6:
|
|
2214
|
+
"src": "2680:6:66",
|
|
2215
2215
|
"typeDescriptions": {
|
|
2216
2216
|
"typeIdentifier": "t_bool",
|
|
2217
2217
|
"typeString": "bool"
|
|
@@ -2224,18 +2224,18 @@
|
|
|
2224
2224
|
"typeIdentifier": "t_int96",
|
|
2225
2225
|
"typeString": "int96"
|
|
2226
2226
|
},
|
|
2227
|
-
"id":
|
|
2227
|
+
"id": 20322,
|
|
2228
2228
|
"isConstant": false,
|
|
2229
2229
|
"isLValue": false,
|
|
2230
2230
|
"isPure": false,
|
|
2231
2231
|
"lValueRequested": false,
|
|
2232
2232
|
"leftExpression": {
|
|
2233
|
-
"id":
|
|
2233
|
+
"id": 20320,
|
|
2234
2234
|
"name": "c",
|
|
2235
2235
|
"nodeType": "Identifier",
|
|
2236
2236
|
"overloadedDeclarations": [],
|
|
2237
|
-
"referencedDeclaration":
|
|
2238
|
-
"src": "2690:1:
|
|
2237
|
+
"referencedDeclaration": 20307,
|
|
2238
|
+
"src": "2690:1:66",
|
|
2239
2239
|
"typeDescriptions": {
|
|
2240
2240
|
"typeIdentifier": "t_int96",
|
|
2241
2241
|
"typeString": "int96"
|
|
@@ -2244,38 +2244,38 @@
|
|
|
2244
2244
|
"nodeType": "BinaryOperation",
|
|
2245
2245
|
"operator": ">=",
|
|
2246
2246
|
"rightExpression": {
|
|
2247
|
-
"id":
|
|
2247
|
+
"id": 20321,
|
|
2248
2248
|
"name": "a",
|
|
2249
2249
|
"nodeType": "Identifier",
|
|
2250
2250
|
"overloadedDeclarations": [],
|
|
2251
|
-
"referencedDeclaration":
|
|
2252
|
-
"src": "2695:1:
|
|
2251
|
+
"referencedDeclaration": 20297,
|
|
2252
|
+
"src": "2695:1:66",
|
|
2253
2253
|
"typeDescriptions": {
|
|
2254
2254
|
"typeIdentifier": "t_int96",
|
|
2255
2255
|
"typeString": "int96"
|
|
2256
2256
|
}
|
|
2257
2257
|
},
|
|
2258
|
-
"src": "2690:6:
|
|
2258
|
+
"src": "2690:6:66",
|
|
2259
2259
|
"typeDescriptions": {
|
|
2260
2260
|
"typeIdentifier": "t_bool",
|
|
2261
2261
|
"typeString": "bool"
|
|
2262
2262
|
}
|
|
2263
2263
|
},
|
|
2264
|
-
"src": "2680:16:
|
|
2264
|
+
"src": "2680:16:66",
|
|
2265
2265
|
"typeDescriptions": {
|
|
2266
2266
|
"typeIdentifier": "t_bool",
|
|
2267
2267
|
"typeString": "bool"
|
|
2268
2268
|
}
|
|
2269
2269
|
}
|
|
2270
2270
|
],
|
|
2271
|
-
"id":
|
|
2271
|
+
"id": 20324,
|
|
2272
2272
|
"isConstant": false,
|
|
2273
2273
|
"isInlineArray": false,
|
|
2274
2274
|
"isLValue": false,
|
|
2275
2275
|
"isPure": false,
|
|
2276
2276
|
"lValueRequested": false,
|
|
2277
2277
|
"nodeType": "TupleExpression",
|
|
2278
|
-
"src": "2679:18:
|
|
2278
|
+
"src": "2679:18:66",
|
|
2279
2279
|
"typeDescriptions": {
|
|
2280
2280
|
"typeIdentifier": "t_bool",
|
|
2281
2281
|
"typeString": "bool"
|
|
@@ -2290,7 +2290,7 @@
|
|
|
2290
2290
|
"typeIdentifier": "t_bool",
|
|
2291
2291
|
"typeString": "bool"
|
|
2292
2292
|
},
|
|
2293
|
-
"id":
|
|
2293
|
+
"id": 20331,
|
|
2294
2294
|
"isConstant": false,
|
|
2295
2295
|
"isLValue": false,
|
|
2296
2296
|
"isPure": false,
|
|
@@ -2300,18 +2300,18 @@
|
|
|
2300
2300
|
"typeIdentifier": "t_int96",
|
|
2301
2301
|
"typeString": "int96"
|
|
2302
2302
|
},
|
|
2303
|
-
"id":
|
|
2303
|
+
"id": 20327,
|
|
2304
2304
|
"isConstant": false,
|
|
2305
2305
|
"isLValue": false,
|
|
2306
2306
|
"isPure": false,
|
|
2307
2307
|
"lValueRequested": false,
|
|
2308
2308
|
"leftExpression": {
|
|
2309
|
-
"id":
|
|
2309
|
+
"id": 20325,
|
|
2310
2310
|
"name": "b",
|
|
2311
2311
|
"nodeType": "Identifier",
|
|
2312
2312
|
"overloadedDeclarations": [],
|
|
2313
|
-
"referencedDeclaration":
|
|
2314
|
-
"src": "2702:1:
|
|
2313
|
+
"referencedDeclaration": 20299,
|
|
2314
|
+
"src": "2702:1:66",
|
|
2315
2315
|
"typeDescriptions": {
|
|
2316
2316
|
"typeIdentifier": "t_int96",
|
|
2317
2317
|
"typeString": "int96"
|
|
@@ -2321,21 +2321,21 @@
|
|
|
2321
2321
|
"operator": "<",
|
|
2322
2322
|
"rightExpression": {
|
|
2323
2323
|
"hexValue": "30",
|
|
2324
|
-
"id":
|
|
2324
|
+
"id": 20326,
|
|
2325
2325
|
"isConstant": false,
|
|
2326
2326
|
"isLValue": false,
|
|
2327
2327
|
"isPure": true,
|
|
2328
2328
|
"kind": "number",
|
|
2329
2329
|
"lValueRequested": false,
|
|
2330
2330
|
"nodeType": "Literal",
|
|
2331
|
-
"src": "2706:1:
|
|
2331
|
+
"src": "2706:1:66",
|
|
2332
2332
|
"typeDescriptions": {
|
|
2333
2333
|
"typeIdentifier": "t_rational_0_by_1",
|
|
2334
2334
|
"typeString": "int_const 0"
|
|
2335
2335
|
},
|
|
2336
2336
|
"value": "0"
|
|
2337
2337
|
},
|
|
2338
|
-
"src": "2702:5:
|
|
2338
|
+
"src": "2702:5:66",
|
|
2339
2339
|
"typeDescriptions": {
|
|
2340
2340
|
"typeIdentifier": "t_bool",
|
|
2341
2341
|
"typeString": "bool"
|
|
@@ -2348,18 +2348,18 @@
|
|
|
2348
2348
|
"typeIdentifier": "t_int96",
|
|
2349
2349
|
"typeString": "int96"
|
|
2350
2350
|
},
|
|
2351
|
-
"id":
|
|
2351
|
+
"id": 20330,
|
|
2352
2352
|
"isConstant": false,
|
|
2353
2353
|
"isLValue": false,
|
|
2354
2354
|
"isPure": false,
|
|
2355
2355
|
"lValueRequested": false,
|
|
2356
2356
|
"leftExpression": {
|
|
2357
|
-
"id":
|
|
2357
|
+
"id": 20328,
|
|
2358
2358
|
"name": "c",
|
|
2359
2359
|
"nodeType": "Identifier",
|
|
2360
2360
|
"overloadedDeclarations": [],
|
|
2361
|
-
"referencedDeclaration":
|
|
2362
|
-
"src": "2711:1:
|
|
2361
|
+
"referencedDeclaration": 20307,
|
|
2362
|
+
"src": "2711:1:66",
|
|
2363
2363
|
"typeDescriptions": {
|
|
2364
2364
|
"typeIdentifier": "t_int96",
|
|
2365
2365
|
"typeString": "int96"
|
|
@@ -2368,56 +2368,56 @@
|
|
|
2368
2368
|
"nodeType": "BinaryOperation",
|
|
2369
2369
|
"operator": "<",
|
|
2370
2370
|
"rightExpression": {
|
|
2371
|
-
"id":
|
|
2371
|
+
"id": 20329,
|
|
2372
2372
|
"name": "a",
|
|
2373
2373
|
"nodeType": "Identifier",
|
|
2374
2374
|
"overloadedDeclarations": [],
|
|
2375
|
-
"referencedDeclaration":
|
|
2376
|
-
"src": "2715:1:
|
|
2375
|
+
"referencedDeclaration": 20297,
|
|
2376
|
+
"src": "2715:1:66",
|
|
2377
2377
|
"typeDescriptions": {
|
|
2378
2378
|
"typeIdentifier": "t_int96",
|
|
2379
2379
|
"typeString": "int96"
|
|
2380
2380
|
}
|
|
2381
2381
|
},
|
|
2382
|
-
"src": "2711:5:
|
|
2382
|
+
"src": "2711:5:66",
|
|
2383
2383
|
"typeDescriptions": {
|
|
2384
2384
|
"typeIdentifier": "t_bool",
|
|
2385
2385
|
"typeString": "bool"
|
|
2386
2386
|
}
|
|
2387
2387
|
},
|
|
2388
|
-
"src": "2702:14:
|
|
2388
|
+
"src": "2702:14:66",
|
|
2389
2389
|
"typeDescriptions": {
|
|
2390
2390
|
"typeIdentifier": "t_bool",
|
|
2391
2391
|
"typeString": "bool"
|
|
2392
2392
|
}
|
|
2393
2393
|
}
|
|
2394
2394
|
],
|
|
2395
|
-
"id":
|
|
2395
|
+
"id": 20332,
|
|
2396
2396
|
"isConstant": false,
|
|
2397
2397
|
"isInlineArray": false,
|
|
2398
2398
|
"isLValue": false,
|
|
2399
2399
|
"isPure": false,
|
|
2400
2400
|
"lValueRequested": false,
|
|
2401
2401
|
"nodeType": "TupleExpression",
|
|
2402
|
-
"src": "2701:16:
|
|
2402
|
+
"src": "2701:16:66",
|
|
2403
2403
|
"typeDescriptions": {
|
|
2404
2404
|
"typeIdentifier": "t_bool",
|
|
2405
2405
|
"typeString": "bool"
|
|
2406
2406
|
}
|
|
2407
2407
|
},
|
|
2408
|
-
"src": "2679:38:
|
|
2408
|
+
"src": "2679:38:66",
|
|
2409
2409
|
"typeDescriptions": {
|
|
2410
2410
|
"typeIdentifier": "t_bool",
|
|
2411
2411
|
"typeString": "bool"
|
|
2412
2412
|
}
|
|
2413
2413
|
},
|
|
2414
2414
|
{
|
|
2415
|
-
"id":
|
|
2415
|
+
"id": 20334,
|
|
2416
2416
|
"name": "errorMessage",
|
|
2417
2417
|
"nodeType": "Identifier",
|
|
2418
2418
|
"overloadedDeclarations": [],
|
|
2419
|
-
"referencedDeclaration":
|
|
2420
|
-
"src": "2719:12:
|
|
2419
|
+
"referencedDeclaration": 20301,
|
|
2420
|
+
"src": "2719:12:66",
|
|
2421
2421
|
"typeDescriptions": {
|
|
2422
2422
|
"typeIdentifier": "t_string_memory_ptr",
|
|
2423
2423
|
"typeString": "string memory"
|
|
@@ -2435,7 +2435,7 @@
|
|
|
2435
2435
|
"typeString": "string memory"
|
|
2436
2436
|
}
|
|
2437
2437
|
],
|
|
2438
|
-
"id":
|
|
2438
|
+
"id": 20316,
|
|
2439
2439
|
"name": "require",
|
|
2440
2440
|
"nodeType": "Identifier",
|
|
2441
2441
|
"overloadedDeclarations": [
|
|
@@ -2443,13 +2443,13 @@
|
|
|
2443
2443
|
4294967278
|
|
2444
2444
|
],
|
|
2445
2445
|
"referencedDeclaration": 4294967278,
|
|
2446
|
-
"src": "2671:7:
|
|
2446
|
+
"src": "2671:7:66",
|
|
2447
2447
|
"typeDescriptions": {
|
|
2448
2448
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
2449
2449
|
"typeString": "function (bool,string memory) pure"
|
|
2450
2450
|
}
|
|
2451
2451
|
},
|
|
2452
|
-
"id":
|
|
2452
|
+
"id": 20335,
|
|
2453
2453
|
"isConstant": false,
|
|
2454
2454
|
"isLValue": false,
|
|
2455
2455
|
"isPure": false,
|
|
@@ -2457,63 +2457,63 @@
|
|
|
2457
2457
|
"lValueRequested": false,
|
|
2458
2458
|
"names": [],
|
|
2459
2459
|
"nodeType": "FunctionCall",
|
|
2460
|
-
"src": "2671:61:
|
|
2460
|
+
"src": "2671:61:66",
|
|
2461
2461
|
"tryCall": false,
|
|
2462
2462
|
"typeDescriptions": {
|
|
2463
2463
|
"typeIdentifier": "t_tuple$__$",
|
|
2464
2464
|
"typeString": "tuple()"
|
|
2465
2465
|
}
|
|
2466
2466
|
},
|
|
2467
|
-
"id":
|
|
2467
|
+
"id": 20336,
|
|
2468
2468
|
"nodeType": "ExpressionStatement",
|
|
2469
|
-
"src": "2671:61:
|
|
2469
|
+
"src": "2671:61:66"
|
|
2470
2470
|
},
|
|
2471
2471
|
{
|
|
2472
2472
|
"expression": {
|
|
2473
|
-
"id":
|
|
2473
|
+
"id": 20337,
|
|
2474
2474
|
"name": "c",
|
|
2475
2475
|
"nodeType": "Identifier",
|
|
2476
2476
|
"overloadedDeclarations": [],
|
|
2477
|
-
"referencedDeclaration":
|
|
2478
|
-
"src": "2750:1:
|
|
2477
|
+
"referencedDeclaration": 20307,
|
|
2478
|
+
"src": "2750:1:66",
|
|
2479
2479
|
"typeDescriptions": {
|
|
2480
2480
|
"typeIdentifier": "t_int96",
|
|
2481
2481
|
"typeString": "int96"
|
|
2482
2482
|
}
|
|
2483
2483
|
},
|
|
2484
|
-
"functionReturnParameters":
|
|
2485
|
-
"id":
|
|
2484
|
+
"functionReturnParameters": 20305,
|
|
2485
|
+
"id": 20338,
|
|
2486
2486
|
"nodeType": "Return",
|
|
2487
|
-
"src": "2743:8:
|
|
2487
|
+
"src": "2743:8:66"
|
|
2488
2488
|
}
|
|
2489
2489
|
]
|
|
2490
2490
|
},
|
|
2491
2491
|
"documentation": {
|
|
2492
|
-
"id":
|
|
2492
|
+
"id": 20295,
|
|
2493
2493
|
"nodeType": "StructuredDocumentation",
|
|
2494
|
-
"src": "2265:222:
|
|
2494
|
+
"src": "2265:222:66",
|
|
2495
2495
|
"text": " @dev Returns the addition of two signed integers, reverting on\n overflow.\n Counterpart to Solidity's `+` operator.\n Requirements:\n - Addition cannot overflow."
|
|
2496
2496
|
},
|
|
2497
|
-
"id":
|
|
2497
|
+
"id": 20340,
|
|
2498
2498
|
"implemented": true,
|
|
2499
2499
|
"kind": "function",
|
|
2500
2500
|
"modifiers": [],
|
|
2501
2501
|
"name": "add",
|
|
2502
|
-
"nameLocation": "2501:3:
|
|
2502
|
+
"nameLocation": "2501:3:66",
|
|
2503
2503
|
"nodeType": "FunctionDefinition",
|
|
2504
2504
|
"parameters": {
|
|
2505
|
-
"id":
|
|
2505
|
+
"id": 20302,
|
|
2506
2506
|
"nodeType": "ParameterList",
|
|
2507
2507
|
"parameters": [
|
|
2508
2508
|
{
|
|
2509
2509
|
"constant": false,
|
|
2510
|
-
"id":
|
|
2510
|
+
"id": 20297,
|
|
2511
2511
|
"mutability": "mutable",
|
|
2512
2512
|
"name": "a",
|
|
2513
|
-
"nameLocation": "2511:1:
|
|
2513
|
+
"nameLocation": "2511:1:66",
|
|
2514
2514
|
"nodeType": "VariableDeclaration",
|
|
2515
|
-
"scope":
|
|
2516
|
-
"src": "2505:7:
|
|
2515
|
+
"scope": 20340,
|
|
2516
|
+
"src": "2505:7:66",
|
|
2517
2517
|
"stateVariable": false,
|
|
2518
2518
|
"storageLocation": "default",
|
|
2519
2519
|
"typeDescriptions": {
|
|
@@ -2521,10 +2521,10 @@
|
|
|
2521
2521
|
"typeString": "int96"
|
|
2522
2522
|
},
|
|
2523
2523
|
"typeName": {
|
|
2524
|
-
"id":
|
|
2524
|
+
"id": 20296,
|
|
2525
2525
|
"name": "int96",
|
|
2526
2526
|
"nodeType": "ElementaryTypeName",
|
|
2527
|
-
"src": "2505:5:
|
|
2527
|
+
"src": "2505:5:66",
|
|
2528
2528
|
"typeDescriptions": {
|
|
2529
2529
|
"typeIdentifier": "t_int96",
|
|
2530
2530
|
"typeString": "int96"
|
|
@@ -2534,13 +2534,13 @@
|
|
|
2534
2534
|
},
|
|
2535
2535
|
{
|
|
2536
2536
|
"constant": false,
|
|
2537
|
-
"id":
|
|
2537
|
+
"id": 20299,
|
|
2538
2538
|
"mutability": "mutable",
|
|
2539
2539
|
"name": "b",
|
|
2540
|
-
"nameLocation": "2520:1:
|
|
2540
|
+
"nameLocation": "2520:1:66",
|
|
2541
2541
|
"nodeType": "VariableDeclaration",
|
|
2542
|
-
"scope":
|
|
2543
|
-
"src": "2514:7:
|
|
2542
|
+
"scope": 20340,
|
|
2543
|
+
"src": "2514:7:66",
|
|
2544
2544
|
"stateVariable": false,
|
|
2545
2545
|
"storageLocation": "default",
|
|
2546
2546
|
"typeDescriptions": {
|
|
@@ -2548,10 +2548,10 @@
|
|
|
2548
2548
|
"typeString": "int96"
|
|
2549
2549
|
},
|
|
2550
2550
|
"typeName": {
|
|
2551
|
-
"id":
|
|
2551
|
+
"id": 20298,
|
|
2552
2552
|
"name": "int96",
|
|
2553
2553
|
"nodeType": "ElementaryTypeName",
|
|
2554
|
-
"src": "2514:5:
|
|
2554
|
+
"src": "2514:5:66",
|
|
2555
2555
|
"typeDescriptions": {
|
|
2556
2556
|
"typeIdentifier": "t_int96",
|
|
2557
2557
|
"typeString": "int96"
|
|
@@ -2561,13 +2561,13 @@
|
|
|
2561
2561
|
},
|
|
2562
2562
|
{
|
|
2563
2563
|
"constant": false,
|
|
2564
|
-
"id":
|
|
2564
|
+
"id": 20301,
|
|
2565
2565
|
"mutability": "mutable",
|
|
2566
2566
|
"name": "errorMessage",
|
|
2567
|
-
"nameLocation": "2537:12:
|
|
2567
|
+
"nameLocation": "2537:12:66",
|
|
2568
2568
|
"nodeType": "VariableDeclaration",
|
|
2569
|
-
"scope":
|
|
2570
|
-
"src": "2523:26:
|
|
2569
|
+
"scope": 20340,
|
|
2570
|
+
"src": "2523:26:66",
|
|
2571
2571
|
"stateVariable": false,
|
|
2572
2572
|
"storageLocation": "memory",
|
|
2573
2573
|
"typeDescriptions": {
|
|
@@ -2575,10 +2575,10 @@
|
|
|
2575
2575
|
"typeString": "string"
|
|
2576
2576
|
},
|
|
2577
2577
|
"typeName": {
|
|
2578
|
-
"id":
|
|
2578
|
+
"id": 20300,
|
|
2579
2579
|
"name": "string",
|
|
2580
2580
|
"nodeType": "ElementaryTypeName",
|
|
2581
|
-
"src": "2523:6:
|
|
2581
|
+
"src": "2523:6:66",
|
|
2582
2582
|
"typeDescriptions": {
|
|
2583
2583
|
"typeIdentifier": "t_string_storage_ptr",
|
|
2584
2584
|
"typeString": "string"
|
|
@@ -2587,21 +2587,21 @@
|
|
|
2587
2587
|
"visibility": "internal"
|
|
2588
2588
|
}
|
|
2589
2589
|
],
|
|
2590
|
-
"src": "2504:46:
|
|
2590
|
+
"src": "2504:46:66"
|
|
2591
2591
|
},
|
|
2592
2592
|
"returnParameters": {
|
|
2593
|
-
"id":
|
|
2593
|
+
"id": 20305,
|
|
2594
2594
|
"nodeType": "ParameterList",
|
|
2595
2595
|
"parameters": [
|
|
2596
2596
|
{
|
|
2597
2597
|
"constant": false,
|
|
2598
|
-
"id":
|
|
2598
|
+
"id": 20304,
|
|
2599
2599
|
"mutability": "mutable",
|
|
2600
2600
|
"name": "",
|
|
2601
2601
|
"nameLocation": "-1:-1:-1",
|
|
2602
2602
|
"nodeType": "VariableDeclaration",
|
|
2603
|
-
"scope":
|
|
2604
|
-
"src": "2574:5:
|
|
2603
|
+
"scope": 20340,
|
|
2604
|
+
"src": "2574:5:66",
|
|
2605
2605
|
"stateVariable": false,
|
|
2606
2606
|
"storageLocation": "default",
|
|
2607
2607
|
"typeDescriptions": {
|
|
@@ -2609,10 +2609,10 @@
|
|
|
2609
2609
|
"typeString": "int96"
|
|
2610
2610
|
},
|
|
2611
2611
|
"typeName": {
|
|
2612
|
-
"id":
|
|
2612
|
+
"id": 20303,
|
|
2613
2613
|
"name": "int96",
|
|
2614
2614
|
"nodeType": "ElementaryTypeName",
|
|
2615
|
-
"src": "2574:5:
|
|
2615
|
+
"src": "2574:5:66",
|
|
2616
2616
|
"typeDescriptions": {
|
|
2617
2617
|
"typeIdentifier": "t_int96",
|
|
2618
2618
|
"typeString": "int96"
|
|
@@ -2621,21 +2621,21 @@
|
|
|
2621
2621
|
"visibility": "internal"
|
|
2622
2622
|
}
|
|
2623
2623
|
],
|
|
2624
|
-
"src": "2573:7:
|
|
2624
|
+
"src": "2573:7:66"
|
|
2625
2625
|
},
|
|
2626
|
-
"scope":
|
|
2627
|
-
"src": "2492:266:
|
|
2626
|
+
"scope": 20341,
|
|
2627
|
+
"src": "2492:266:66",
|
|
2628
2628
|
"stateMutability": "pure",
|
|
2629
2629
|
"virtual": false,
|
|
2630
2630
|
"visibility": "internal"
|
|
2631
2631
|
}
|
|
2632
2632
|
],
|
|
2633
|
-
"scope":
|
|
2634
|
-
"src": "163:2597:
|
|
2633
|
+
"scope": 20342,
|
|
2634
|
+
"src": "163:2597:66",
|
|
2635
2635
|
"usedErrors": []
|
|
2636
2636
|
}
|
|
2637
2637
|
],
|
|
2638
|
-
"src": "35:2726:
|
|
2638
|
+
"src": "35:2726:66"
|
|
2639
2639
|
},
|
|
2640
2640
|
"compiler": {
|
|
2641
2641
|
"name": "solc",
|
|
@@ -2643,7 +2643,7 @@
|
|
|
2643
2643
|
},
|
|
2644
2644
|
"networks": {},
|
|
2645
2645
|
"schemaVersion": "3.4.7",
|
|
2646
|
-
"updatedAt": "2022-05-
|
|
2646
|
+
"updatedAt": "2022-05-06T14:04:24.531Z",
|
|
2647
2647
|
"devdoc": {
|
|
2648
2648
|
"details": "Int96 math operations with safety checks that revert on error.",
|
|
2649
2649
|
"kind": "dev",
|