@superfluid-finance/ethereum-contracts 1.2.1 → 1.2.2-dev.787fef7.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.
Files changed (118) hide show
  1. package/build/contracts/AccessControl.json +1 -1
  2. package/build/contracts/AccessControlEnumerable.json +1 -1
  3. package/build/contracts/Address.json +1 -1
  4. package/build/contracts/AgreementBase.json +18 -18
  5. package/build/contracts/AgreementLibrary.json +450 -243
  6. package/build/contracts/BaseRelayRecipient.json +112 -112
  7. package/build/contracts/BatchLiquidator.json +178 -178
  8. package/build/contracts/BatchOperation.json +1138 -1138
  9. package/build/contracts/CFAv1Library.json +2531 -2531
  10. package/build/contracts/CallUtils.json +478 -478
  11. package/build/contracts/ClosingOnUpdateFlowTestApp.json +1521 -1521
  12. package/build/contracts/ConstantFlowAgreementV1.json +19315 -18335
  13. package/build/contracts/Context.json +1 -1
  14. package/build/contracts/ContextDefinitions.json +1138 -1138
  15. package/build/contracts/Create2.json +1 -1
  16. package/build/contracts/CustomSuperTokenBase.json +31 -31
  17. package/build/contracts/ERC165.json +1 -1
  18. package/build/contracts/ERC1820Implementer.json +1 -1
  19. package/build/contracts/ERC20.json +1 -1
  20. package/build/contracts/ERC20Burnable.json +1 -1
  21. package/build/contracts/ERC20Pausable.json +1 -1
  22. package/build/contracts/ERC20PresetMinterPauser.json +1 -1
  23. package/build/contracts/ERC20WithTokenInfo.json +36 -36
  24. package/build/contracts/ERC721.json +1 -1
  25. package/build/contracts/ERC777Helper.json +660 -660
  26. package/build/contracts/ERC777RecipientDrainingGas.json +855 -855
  27. package/build/contracts/ERC777RecipientReverting.json +855 -855
  28. package/build/contracts/EnumerableSet.json +1 -1
  29. package/build/contracts/ExclusiveInflowTestApp.json +1521 -1521
  30. package/build/contracts/FixedSizeData.json +405 -405
  31. package/build/contracts/FlowExchangeTestApp.json +1522 -1522
  32. package/build/contracts/FlowOperatorDefinitions.json +1138 -1138
  33. package/build/contracts/FullUpgradableSuperTokenProxy.json +113 -113
  34. package/build/contracts/IAccessControl.json +1 -1
  35. package/build/contracts/IAccessControlEnumerable.json +1 -1
  36. package/build/contracts/IConstantFlowAgreementV1.json +1036 -1036
  37. package/build/contracts/IDAv1Library.json +4183 -4183
  38. package/build/contracts/IERC165.json +1 -1
  39. package/build/contracts/IERC1820Implementer.json +1 -1
  40. package/build/contracts/IERC1820Registry.json +1 -1
  41. package/build/contracts/IERC20.json +1 -1
  42. package/build/contracts/IERC20Metadata.json +1 -1
  43. package/build/contracts/IERC721.json +1 -1
  44. package/build/contracts/IERC721Metadata.json +1 -1
  45. package/build/contracts/IERC721Receiver.json +1 -1
  46. package/build/contracts/IERC777.json +1 -1
  47. package/build/contracts/IERC777Recipient.json +1 -1
  48. package/build/contracts/IERC777Sender.json +1 -1
  49. package/build/contracts/IInstantDistributionAgreementV1.json +1182 -1182
  50. package/build/contracts/IMaticBridgedNativeSuperToken.json +110 -110
  51. package/build/contracts/IMaticBridgedNativeSuperTokenCustom.json +110 -110
  52. package/build/contracts/IMultiSigWallet.json +45 -45
  53. package/build/contracts/IPureSuperToken.json +69 -69
  54. package/build/contracts/IPureSuperTokenCustom.json +69 -69
  55. package/build/contracts/IRelayRecipient.json +49 -49
  56. package/build/contracts/IResolver.json +73 -73
  57. package/build/contracts/ISETH.json +79 -79
  58. package/build/contracts/ISETHCustom.json +79 -79
  59. package/build/contracts/ISuperAgreement.json +88 -88
  60. package/build/contracts/ISuperApp.json +351 -351
  61. package/build/contracts/ISuperToken.json +1008 -1008
  62. package/build/contracts/ISuperTokenFactory.json +280 -280
  63. package/build/contracts/ISuperfluid.json +1466 -1466
  64. package/build/contracts/ISuperfluidGovernance.json +404 -404
  65. package/build/contracts/ISuperfluidToken.json +774 -774
  66. package/build/contracts/ITOGAv1.json +1431 -1431
  67. package/build/contracts/ITOGAv2.json +1431 -1431
  68. package/build/contracts/Initializable.json +1 -1
  69. package/build/contracts/InstantDistributionAgreementV1.json +9343 -9343
  70. package/build/contracts/Int96SafeMath.json +504 -504
  71. package/build/contracts/MaticBridgedNativeSuperTokenProxy.json +228 -228
  72. package/build/contracts/NonClosableOutflowTestApp.json +1522 -1522
  73. package/build/contracts/Ownable.json +1 -1
  74. package/build/contracts/Pausable.json +1 -1
  75. package/build/contracts/Proxy.json +1 -1
  76. package/build/contracts/PureSuperToken.json +106 -106
  77. package/build/contracts/Resolver.json +98 -98
  78. package/build/contracts/SETHProxy.json +224 -224
  79. package/build/contracts/SafeCast.json +1 -1
  80. package/build/contracts/SafeERC20.json +1 -1
  81. package/build/contracts/SafeMath.json +1 -1
  82. package/build/contracts/SelfDeletingFlowTestApp.json +1521 -1521
  83. package/build/contracts/SlotsBitmapLibrary.json +794 -794
  84. package/build/contracts/Strings.json +1 -1
  85. package/build/contracts/SuperAppBase.json +394 -394
  86. package/build/contracts/SuperAppDefinitions.json +1138 -1138
  87. package/build/contracts/SuperToken.json +2351 -2351
  88. package/build/contracts/SuperTokenFactory.json +731 -731
  89. package/build/contracts/SuperTokenFactoryBase.json +721 -721
  90. package/build/contracts/SuperTokenFactoryHelper.json +724 -724
  91. package/build/contracts/SuperUpgrader.json +437 -437
  92. package/build/contracts/Superfluid.json +9812 -10169
  93. package/build/contracts/SuperfluidFrameworkDeployer.json +535 -535
  94. package/build/contracts/SuperfluidGovernanceBase.json +3471 -3789
  95. package/build/contracts/SuperfluidGovernanceConfigs.json +1138 -1138
  96. package/build/contracts/SuperfluidGovernanceII.json +2097 -2347
  97. package/build/contracts/SuperfluidGovernanceIIProxy.json +214 -214
  98. package/build/contracts/SuperfluidLoader.json +207 -207
  99. package/build/contracts/SuperfluidToken.json +1345 -1345
  100. package/build/contracts/TOGA.json +1448 -1448
  101. package/build/contracts/TestGovernance.json +2195 -2445
  102. package/build/contracts/TestToken.json +94 -94
  103. package/build/contracts/TokenCustodian.json +214 -214
  104. package/build/contracts/TokenInfo.json +58 -58
  105. package/build/contracts/UInt128SafeMath.json +97 -97
  106. package/build/contracts/UUPSProxiable.json +132 -132
  107. package/build/contracts/UUPSProxy.json +81 -81
  108. package/build/contracts/UUPSUtils.json +37 -37
  109. package/build/contracts-sizes.txt +3 -4
  110. package/contracts/agreements/AgreementLibrary.sol +1 -0
  111. package/contracts/agreements/ConstantFlowAgreementV1.sol +71 -35
  112. package/contracts/agreements/InstantDistributionAgreementV1.sol +3 -2
  113. package/contracts/gov/SuperfluidGovernanceBase.sol +9 -26
  114. package/contracts/{agreements → libs}/SlotsBitmapLibrary.sol +1 -3
  115. package/contracts/mocks/SuperfluidMock.sol +2 -2
  116. package/contracts/superfluid/Superfluid.sol +5 -10
  117. package/package.json +2 -1
  118. 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": "612:1246:66:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;612:1246:66;;;;;;;;;;;;;;;;;",
11
- "deployedSourceMap": "612:1246:66:-:0;;;;;;;;",
10
+ "sourceMap": "612:1246:65:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;612:1246:65;;;;;;;;;;;;;;;;;",
11
+ "deployedSourceMap": "612:1246:65:-:0;;;;;;;;",
12
12
  "source": "// SPDX-License-Identifier: AGPLv3\npragma solidity 0.8.13;\n\n/**\n * @title Utilities for fixed size data in storage\n * @author Superfluid\n * \n * When using solidity dynamic array, first word is used to store the length\n * of the array. For use cases that the length doesn't change, it is better\n * to use a fixed size data premitive.\n *\n * To use this library:\n * - The pointer to the storage is `slot`, the user could use `keccak256(abi.encode(...))`\n * scheme to create collision-free slot ID for locating the data.\n * - To load data, or erase data and get all gas refund, data length is always required.\n */\nlibrary FixedSizeData {\n\n /**\n * @dev Store data to the slot at `slot`\n */\n function storeData(bytes32 slot, bytes32[] memory data) internal {\n for (uint j = 0; j < data.length; ++j) {\n bytes32 d = data[j];\n assembly { sstore(add(slot, j), d) }\n }\n }\n\n function hasData(bytes32 slot, uint dataLength) internal view returns (bool) {\n for (uint j = 0; j < dataLength; ++j) {\n bytes32 d;\n assembly { d := sload(add(slot, j)) }\n if (uint256(d) > 0) return true;\n }\n return false;\n }\n\n /**\n * @dev Load data of size `dataLength` from the slot at `slot`\n */\n function loadData(bytes32 slot, uint dataLength) internal view returns (bytes32[] memory data) {\n data = new bytes32[](dataLength);\n for (uint j = 0; j < dataLength; ++j) {\n bytes32 d;\n assembly { d := sload(add(slot, j)) }\n data[j] = d;\n }\n }\n\n /**\n * @dev Erase data of size `dataLength` from the slot at `slot`\n */\n function eraseData(bytes32 slot, uint dataLength) internal {\n for (uint j = 0; j < dataLength; ++j) {\n assembly { sstore(add(slot, j), 0) }\n }\n }\n\n}\n",
13
13
  "sourcePath": "/home/runner/work/protocol-monorepo/protocol-monorepo/packages/ethereum-contracts/contracts/libs/FixedSizeData.sol",
14
14
  "ast": {
15
15
  "absolutePath": "project:/contracts/libs/FixedSizeData.sol",
16
16
  "exportedSymbols": {
17
17
  "FixedSizeData": [
18
- 20386
18
+ 20142
19
19
  ]
20
20
  },
21
- "id": 20387,
21
+ "id": 20143,
22
22
  "license": "AGPLv3",
23
23
  "nodeType": "SourceUnit",
24
24
  "nodes": [
25
25
  {
26
- "id": 20253,
26
+ "id": 20009,
27
27
  "literals": [
28
28
  "solidity",
29
29
  "0.8",
30
30
  ".13"
31
31
  ],
32
32
  "nodeType": "PragmaDirective",
33
- "src": "35:23:66"
33
+ "src": "35:23:65"
34
34
  },
35
35
  {
36
36
  "abstract": false,
@@ -39,46 +39,46 @@
39
39
  "contractDependencies": [],
40
40
  "contractKind": "library",
41
41
  "documentation": {
42
- "id": 20254,
42
+ "id": 20010,
43
43
  "nodeType": "StructuredDocumentation",
44
- "src": "60:551:66",
44
+ "src": "60:551:65",
45
45
  "text": " @title Utilities for fixed size data in storage\n @author Superfluid\n \n When using solidity dynamic array, first word is used to store the length\n of the array. For use cases that the length doesn't change, it is better\n to use a fixed size data premitive.\n To use this library:\n - The pointer to the storage is `slot`, the user could use `keccak256(abi.encode(...))`\n scheme to create collision-free slot ID for locating the data.\n - To load data, or erase data and get all gas refund, data length is always required."
46
46
  },
47
47
  "fullyImplemented": true,
48
- "id": 20386,
48
+ "id": 20142,
49
49
  "linearizedBaseContracts": [
50
- 20386
50
+ 20142
51
51
  ],
52
52
  "name": "FixedSizeData",
53
- "nameLocation": "620:13:66",
53
+ "nameLocation": "620:13:65",
54
54
  "nodeType": "ContractDefinition",
55
55
  "nodes": [
56
56
  {
57
57
  "body": {
58
- "id": 20283,
58
+ "id": 20039,
59
59
  "nodeType": "Block",
60
- "src": "767:148:66",
60
+ "src": "767:148:65",
61
61
  "statements": [
62
62
  {
63
63
  "body": {
64
- "id": 20281,
64
+ "id": 20037,
65
65
  "nodeType": "Block",
66
- "src": "816:93:66",
66
+ "src": "816:93:65",
67
67
  "statements": [
68
68
  {
69
69
  "assignments": [
70
- 20275
70
+ 20031
71
71
  ],
72
72
  "declarations": [
73
73
  {
74
74
  "constant": false,
75
- "id": 20275,
75
+ "id": 20031,
76
76
  "mutability": "mutable",
77
77
  "name": "d",
78
- "nameLocation": "838:1:66",
78
+ "nameLocation": "838:1:65",
79
79
  "nodeType": "VariableDeclaration",
80
- "scope": 20281,
81
- "src": "830:9:66",
80
+ "scope": 20037,
81
+ "src": "830:9:65",
82
82
  "stateVariable": false,
83
83
  "storageLocation": "default",
84
84
  "typeDescriptions": {
@@ -86,10 +86,10 @@
86
86
  "typeString": "bytes32"
87
87
  },
88
88
  "typeName": {
89
- "id": 20274,
89
+ "id": 20030,
90
90
  "name": "bytes32",
91
91
  "nodeType": "ElementaryTypeName",
92
- "src": "830:7:66",
92
+ "src": "830:7:65",
93
93
  "typeDescriptions": {
94
94
  "typeIdentifier": "t_bytes32",
95
95
  "typeString": "bytes32"
@@ -98,28 +98,28 @@
98
98
  "visibility": "internal"
99
99
  }
100
100
  ],
101
- "id": 20279,
101
+ "id": 20035,
102
102
  "initialValue": {
103
103
  "baseExpression": {
104
- "id": 20276,
104
+ "id": 20032,
105
105
  "name": "data",
106
106
  "nodeType": "Identifier",
107
107
  "overloadedDeclarations": [],
108
- "referencedDeclaration": 20260,
109
- "src": "842:4:66",
108
+ "referencedDeclaration": 20016,
109
+ "src": "842:4:65",
110
110
  "typeDescriptions": {
111
111
  "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
112
112
  "typeString": "bytes32[] memory"
113
113
  }
114
114
  },
115
- "id": 20278,
115
+ "id": 20034,
116
116
  "indexExpression": {
117
- "id": 20277,
117
+ "id": 20033,
118
118
  "name": "j",
119
119
  "nodeType": "Identifier",
120
120
  "overloadedDeclarations": [],
121
- "referencedDeclaration": 20264,
122
- "src": "847:1:66",
121
+ "referencedDeclaration": 20020,
122
+ "src": "847:1:65",
123
123
  "typeDescriptions": {
124
124
  "typeIdentifier": "t_uint256",
125
125
  "typeString": "uint256"
@@ -130,19 +130,19 @@
130
130
  "isPure": false,
131
131
  "lValueRequested": false,
132
132
  "nodeType": "IndexAccess",
133
- "src": "842:7:66",
133
+ "src": "842:7:65",
134
134
  "typeDescriptions": {
135
135
  "typeIdentifier": "t_bytes32",
136
136
  "typeString": "bytes32"
137
137
  }
138
138
  },
139
139
  "nodeType": "VariableDeclarationStatement",
140
- "src": "830:19:66"
140
+ "src": "830:19:65"
141
141
  },
142
142
  {
143
143
  "AST": {
144
144
  "nodeType": "YulBlock",
145
- "src": "872:27:66",
145
+ "src": "872:27:65",
146
146
  "statements": [
147
147
  {
148
148
  "expression": {
@@ -152,68 +152,68 @@
152
152
  {
153
153
  "name": "slot",
154
154
  "nodeType": "YulIdentifier",
155
- "src": "885:4:66"
155
+ "src": "885:4:65"
156
156
  },
157
157
  {
158
158
  "name": "j",
159
159
  "nodeType": "YulIdentifier",
160
- "src": "891:1:66"
160
+ "src": "891:1:65"
161
161
  }
162
162
  ],
163
163
  "functionName": {
164
164
  "name": "add",
165
165
  "nodeType": "YulIdentifier",
166
- "src": "881:3:66"
166
+ "src": "881:3:65"
167
167
  },
168
168
  "nodeType": "YulFunctionCall",
169
- "src": "881:12:66"
169
+ "src": "881:12:65"
170
170
  },
171
171
  {
172
172
  "name": "d",
173
173
  "nodeType": "YulIdentifier",
174
- "src": "895:1:66"
174
+ "src": "895:1:65"
175
175
  }
176
176
  ],
177
177
  "functionName": {
178
178
  "name": "sstore",
179
179
  "nodeType": "YulIdentifier",
180
- "src": "874:6:66"
180
+ "src": "874:6:65"
181
181
  },
182
182
  "nodeType": "YulFunctionCall",
183
- "src": "874:23:66"
183
+ "src": "874:23:65"
184
184
  },
185
185
  "nodeType": "YulExpressionStatement",
186
- "src": "874:23:66"
186
+ "src": "874:23:65"
187
187
  }
188
188
  ]
189
189
  },
190
190
  "evmVersion": "london",
191
191
  "externalReferences": [
192
192
  {
193
- "declaration": 20275,
193
+ "declaration": 20031,
194
194
  "isOffset": false,
195
195
  "isSlot": false,
196
- "src": "895:1:66",
196
+ "src": "895:1:65",
197
197
  "valueSize": 1
198
198
  },
199
199
  {
200
- "declaration": 20264,
200
+ "declaration": 20020,
201
201
  "isOffset": false,
202
202
  "isSlot": false,
203
- "src": "891:1:66",
203
+ "src": "891:1:65",
204
204
  "valueSize": 1
205
205
  },
206
206
  {
207
- "declaration": 20257,
207
+ "declaration": 20013,
208
208
  "isOffset": false,
209
209
  "isSlot": false,
210
- "src": "885:4:66",
210
+ "src": "885:4:65",
211
211
  "valueSize": 1
212
212
  }
213
213
  ],
214
- "id": 20280,
214
+ "id": 20036,
215
215
  "nodeType": "InlineAssembly",
216
- "src": "863:36:66"
216
+ "src": "863:36:65"
217
217
  }
218
218
  ]
219
219
  },
@@ -222,18 +222,18 @@
222
222
  "typeIdentifier": "t_uint256",
223
223
  "typeString": "uint256"
224
224
  },
225
- "id": 20270,
225
+ "id": 20026,
226
226
  "isConstant": false,
227
227
  "isLValue": false,
228
228
  "isPure": false,
229
229
  "lValueRequested": false,
230
230
  "leftExpression": {
231
- "id": 20267,
231
+ "id": 20023,
232
232
  "name": "j",
233
233
  "nodeType": "Identifier",
234
234
  "overloadedDeclarations": [],
235
- "referencedDeclaration": 20264,
236
- "src": "794:1:66",
235
+ "referencedDeclaration": 20020,
236
+ "src": "794:1:65",
237
237
  "typeDescriptions": {
238
238
  "typeIdentifier": "t_uint256",
239
239
  "typeString": "uint256"
@@ -243,51 +243,51 @@
243
243
  "operator": "<",
244
244
  "rightExpression": {
245
245
  "expression": {
246
- "id": 20268,
246
+ "id": 20024,
247
247
  "name": "data",
248
248
  "nodeType": "Identifier",
249
249
  "overloadedDeclarations": [],
250
- "referencedDeclaration": 20260,
251
- "src": "798:4:66",
250
+ "referencedDeclaration": 20016,
251
+ "src": "798:4:65",
252
252
  "typeDescriptions": {
253
253
  "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
254
254
  "typeString": "bytes32[] memory"
255
255
  }
256
256
  },
257
- "id": 20269,
257
+ "id": 20025,
258
258
  "isConstant": false,
259
259
  "isLValue": false,
260
260
  "isPure": false,
261
261
  "lValueRequested": false,
262
262
  "memberName": "length",
263
263
  "nodeType": "MemberAccess",
264
- "src": "798:11:66",
264
+ "src": "798:11:65",
265
265
  "typeDescriptions": {
266
266
  "typeIdentifier": "t_uint256",
267
267
  "typeString": "uint256"
268
268
  }
269
269
  },
270
- "src": "794:15:66",
270
+ "src": "794:15:65",
271
271
  "typeDescriptions": {
272
272
  "typeIdentifier": "t_bool",
273
273
  "typeString": "bool"
274
274
  }
275
275
  },
276
- "id": 20282,
276
+ "id": 20038,
277
277
  "initializationExpression": {
278
278
  "assignments": [
279
- 20264
279
+ 20020
280
280
  ],
281
281
  "declarations": [
282
282
  {
283
283
  "constant": false,
284
- "id": 20264,
284
+ "id": 20020,
285
285
  "mutability": "mutable",
286
286
  "name": "j",
287
- "nameLocation": "787:1:66",
287
+ "nameLocation": "787:1:65",
288
288
  "nodeType": "VariableDeclaration",
289
- "scope": 20282,
290
- "src": "782:6:66",
289
+ "scope": 20038,
290
+ "src": "782:6:65",
291
291
  "stateVariable": false,
292
292
  "storageLocation": "default",
293
293
  "typeDescriptions": {
@@ -295,10 +295,10 @@
295
295
  "typeString": "uint256"
296
296
  },
297
297
  "typeName": {
298
- "id": 20263,
298
+ "id": 20019,
299
299
  "name": "uint",
300
300
  "nodeType": "ElementaryTypeName",
301
- "src": "782:4:66",
301
+ "src": "782:4:65",
302
302
  "typeDescriptions": {
303
303
  "typeIdentifier": "t_uint256",
304
304
  "typeString": "uint256"
@@ -307,17 +307,17 @@
307
307
  "visibility": "internal"
308
308
  }
309
309
  ],
310
- "id": 20266,
310
+ "id": 20022,
311
311
  "initialValue": {
312
312
  "hexValue": "30",
313
- "id": 20265,
313
+ "id": 20021,
314
314
  "isConstant": false,
315
315
  "isLValue": false,
316
316
  "isPure": true,
317
317
  "kind": "number",
318
318
  "lValueRequested": false,
319
319
  "nodeType": "Literal",
320
- "src": "791:1:66",
320
+ "src": "791:1:65",
321
321
  "typeDescriptions": {
322
322
  "typeIdentifier": "t_rational_0_by_1",
323
323
  "typeString": "int_const 0"
@@ -325,11 +325,11 @@
325
325
  "value": "0"
326
326
  },
327
327
  "nodeType": "VariableDeclarationStatement",
328
- "src": "782:10:66"
328
+ "src": "782:10:65"
329
329
  },
330
330
  "loopExpression": {
331
331
  "expression": {
332
- "id": 20272,
332
+ "id": 20028,
333
333
  "isConstant": false,
334
334
  "isLValue": false,
335
335
  "isPure": false,
@@ -337,14 +337,14 @@
337
337
  "nodeType": "UnaryOperation",
338
338
  "operator": "++",
339
339
  "prefix": true,
340
- "src": "811:3:66",
340
+ "src": "811:3:65",
341
341
  "subExpression": {
342
- "id": 20271,
342
+ "id": 20027,
343
343
  "name": "j",
344
344
  "nodeType": "Identifier",
345
345
  "overloadedDeclarations": [],
346
- "referencedDeclaration": 20264,
347
- "src": "813:1:66",
346
+ "referencedDeclaration": 20020,
347
+ "src": "813:1:65",
348
348
  "typeDescriptions": {
349
349
  "typeIdentifier": "t_uint256",
350
350
  "typeString": "uint256"
@@ -355,41 +355,41 @@
355
355
  "typeString": "uint256"
356
356
  }
357
357
  },
358
- "id": 20273,
358
+ "id": 20029,
359
359
  "nodeType": "ExpressionStatement",
360
- "src": "811:3:66"
360
+ "src": "811:3:65"
361
361
  },
362
362
  "nodeType": "ForStatement",
363
- "src": "777:132:66"
363
+ "src": "777:132:65"
364
364
  }
365
365
  ]
366
366
  },
367
367
  "documentation": {
368
- "id": 20255,
368
+ "id": 20011,
369
369
  "nodeType": "StructuredDocumentation",
370
- "src": "641:56:66",
370
+ "src": "641:56:65",
371
371
  "text": " @dev Store data to the slot at `slot`"
372
372
  },
373
- "id": 20284,
373
+ "id": 20040,
374
374
  "implemented": true,
375
375
  "kind": "function",
376
376
  "modifiers": [],
377
377
  "name": "storeData",
378
- "nameLocation": "711:9:66",
378
+ "nameLocation": "711:9:65",
379
379
  "nodeType": "FunctionDefinition",
380
380
  "parameters": {
381
- "id": 20261,
381
+ "id": 20017,
382
382
  "nodeType": "ParameterList",
383
383
  "parameters": [
384
384
  {
385
385
  "constant": false,
386
- "id": 20257,
386
+ "id": 20013,
387
387
  "mutability": "mutable",
388
388
  "name": "slot",
389
- "nameLocation": "729:4:66",
389
+ "nameLocation": "729:4:65",
390
390
  "nodeType": "VariableDeclaration",
391
- "scope": 20284,
392
- "src": "721:12:66",
391
+ "scope": 20040,
392
+ "src": "721:12:65",
393
393
  "stateVariable": false,
394
394
  "storageLocation": "default",
395
395
  "typeDescriptions": {
@@ -397,10 +397,10 @@
397
397
  "typeString": "bytes32"
398
398
  },
399
399
  "typeName": {
400
- "id": 20256,
400
+ "id": 20012,
401
401
  "name": "bytes32",
402
402
  "nodeType": "ElementaryTypeName",
403
- "src": "721:7:66",
403
+ "src": "721:7:65",
404
404
  "typeDescriptions": {
405
405
  "typeIdentifier": "t_bytes32",
406
406
  "typeString": "bytes32"
@@ -410,13 +410,13 @@
410
410
  },
411
411
  {
412
412
  "constant": false,
413
- "id": 20260,
413
+ "id": 20016,
414
414
  "mutability": "mutable",
415
415
  "name": "data",
416
- "nameLocation": "752:4:66",
416
+ "nameLocation": "752:4:65",
417
417
  "nodeType": "VariableDeclaration",
418
- "scope": 20284,
419
- "src": "735:21:66",
418
+ "scope": 20040,
419
+ "src": "735:21:65",
420
420
  "stateVariable": false,
421
421
  "storageLocation": "memory",
422
422
  "typeDescriptions": {
@@ -425,18 +425,18 @@
425
425
  },
426
426
  "typeName": {
427
427
  "baseType": {
428
- "id": 20258,
428
+ "id": 20014,
429
429
  "name": "bytes32",
430
430
  "nodeType": "ElementaryTypeName",
431
- "src": "735:7:66",
431
+ "src": "735:7:65",
432
432
  "typeDescriptions": {
433
433
  "typeIdentifier": "t_bytes32",
434
434
  "typeString": "bytes32"
435
435
  }
436
436
  },
437
- "id": 20259,
437
+ "id": 20015,
438
438
  "nodeType": "ArrayTypeName",
439
- "src": "735:9:66",
439
+ "src": "735:9:65",
440
440
  "typeDescriptions": {
441
441
  "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
442
442
  "typeString": "bytes32[]"
@@ -445,46 +445,46 @@
445
445
  "visibility": "internal"
446
446
  }
447
447
  ],
448
- "src": "720:37:66"
448
+ "src": "720:37:65"
449
449
  },
450
450
  "returnParameters": {
451
- "id": 20262,
451
+ "id": 20018,
452
452
  "nodeType": "ParameterList",
453
453
  "parameters": [],
454
- "src": "767:0:66"
454
+ "src": "767:0:65"
455
455
  },
456
- "scope": 20386,
457
- "src": "702:213:66",
456
+ "scope": 20142,
457
+ "src": "702:213:65",
458
458
  "stateMutability": "nonpayable",
459
459
  "virtual": false,
460
460
  "visibility": "internal"
461
461
  },
462
462
  {
463
463
  "body": {
464
- "id": 20320,
464
+ "id": 20076,
465
465
  "nodeType": "Block",
466
- "src": "998:205:66",
466
+ "src": "998:205:65",
467
467
  "statements": [
468
468
  {
469
469
  "body": {
470
- "id": 20316,
470
+ "id": 20072,
471
471
  "nodeType": "Block",
472
- "src": "1046:129:66",
472
+ "src": "1046:129:65",
473
473
  "statements": [
474
474
  {
475
475
  "assignments": [
476
- 20304
476
+ 20060
477
477
  ],
478
478
  "declarations": [
479
479
  {
480
480
  "constant": false,
481
- "id": 20304,
481
+ "id": 20060,
482
482
  "mutability": "mutable",
483
483
  "name": "d",
484
- "nameLocation": "1068:1:66",
484
+ "nameLocation": "1068:1:65",
485
485
  "nodeType": "VariableDeclaration",
486
- "scope": 20316,
487
- "src": "1060:9:66",
486
+ "scope": 20072,
487
+ "src": "1060:9:65",
488
488
  "stateVariable": false,
489
489
  "storageLocation": "default",
490
490
  "typeDescriptions": {
@@ -492,10 +492,10 @@
492
492
  "typeString": "bytes32"
493
493
  },
494
494
  "typeName": {
495
- "id": 20303,
495
+ "id": 20059,
496
496
  "name": "bytes32",
497
497
  "nodeType": "ElementaryTypeName",
498
- "src": "1060:7:66",
498
+ "src": "1060:7:65",
499
499
  "typeDescriptions": {
500
500
  "typeIdentifier": "t_bytes32",
501
501
  "typeString": "bytes32"
@@ -504,18 +504,18 @@
504
504
  "visibility": "internal"
505
505
  }
506
506
  ],
507
- "id": 20305,
507
+ "id": 20061,
508
508
  "nodeType": "VariableDeclarationStatement",
509
- "src": "1060:9:66"
509
+ "src": "1060:9:65"
510
510
  },
511
511
  {
512
512
  "AST": {
513
513
  "nodeType": "YulBlock",
514
- "src": "1092:28:66",
514
+ "src": "1092:28:65",
515
515
  "statements": [
516
516
  {
517
517
  "nodeType": "YulAssignment",
518
- "src": "1094:24:66",
518
+ "src": "1094:24:65",
519
519
  "value": {
520
520
  "arguments": [
521
521
  {
@@ -523,36 +523,36 @@
523
523
  {
524
524
  "name": "slot",
525
525
  "nodeType": "YulIdentifier",
526
- "src": "1109:4:66"
526
+ "src": "1109:4:65"
527
527
  },
528
528
  {
529
529
  "name": "j",
530
530
  "nodeType": "YulIdentifier",
531
- "src": "1115:1:66"
531
+ "src": "1115:1:65"
532
532
  }
533
533
  ],
534
534
  "functionName": {
535
535
  "name": "add",
536
536
  "nodeType": "YulIdentifier",
537
- "src": "1105:3:66"
537
+ "src": "1105:3:65"
538
538
  },
539
539
  "nodeType": "YulFunctionCall",
540
- "src": "1105:12:66"
540
+ "src": "1105:12:65"
541
541
  }
542
542
  ],
543
543
  "functionName": {
544
544
  "name": "sload",
545
545
  "nodeType": "YulIdentifier",
546
- "src": "1099:5:66"
546
+ "src": "1099:5:65"
547
547
  },
548
548
  "nodeType": "YulFunctionCall",
549
- "src": "1099:19:66"
549
+ "src": "1099:19:65"
550
550
  },
551
551
  "variableNames": [
552
552
  {
553
553
  "name": "d",
554
554
  "nodeType": "YulIdentifier",
555
- "src": "1094:1:66"
555
+ "src": "1094:1:65"
556
556
  }
557
557
  ]
558
558
  }
@@ -561,30 +561,30 @@
561
561
  "evmVersion": "london",
562
562
  "externalReferences": [
563
563
  {
564
- "declaration": 20304,
564
+ "declaration": 20060,
565
565
  "isOffset": false,
566
566
  "isSlot": false,
567
- "src": "1094:1:66",
567
+ "src": "1094:1:65",
568
568
  "valueSize": 1
569
569
  },
570
570
  {
571
- "declaration": 20294,
571
+ "declaration": 20050,
572
572
  "isOffset": false,
573
573
  "isSlot": false,
574
- "src": "1115:1:66",
574
+ "src": "1115:1:65",
575
575
  "valueSize": 1
576
576
  },
577
577
  {
578
- "declaration": 20286,
578
+ "declaration": 20042,
579
579
  "isOffset": false,
580
580
  "isSlot": false,
581
- "src": "1109:4:66",
581
+ "src": "1109:4:65",
582
582
  "valueSize": 1
583
583
  }
584
584
  ],
585
- "id": 20306,
585
+ "id": 20062,
586
586
  "nodeType": "InlineAssembly",
587
- "src": "1083:37:66"
587
+ "src": "1083:37:65"
588
588
  },
589
589
  {
590
590
  "condition": {
@@ -592,7 +592,7 @@
592
592
  "typeIdentifier": "t_uint256",
593
593
  "typeString": "uint256"
594
594
  },
595
- "id": 20312,
595
+ "id": 20068,
596
596
  "isConstant": false,
597
597
  "isLValue": false,
598
598
  "isPure": false,
@@ -600,12 +600,12 @@
600
600
  "leftExpression": {
601
601
  "arguments": [
602
602
  {
603
- "id": 20309,
603
+ "id": 20065,
604
604
  "name": "d",
605
605
  "nodeType": "Identifier",
606
606
  "overloadedDeclarations": [],
607
- "referencedDeclaration": 20304,
608
- "src": "1145:1:66",
607
+ "referencedDeclaration": 20060,
608
+ "src": "1145:1:65",
609
609
  "typeDescriptions": {
610
610
  "typeIdentifier": "t_bytes32",
611
611
  "typeString": "bytes32"
@@ -619,26 +619,26 @@
619
619
  "typeString": "bytes32"
620
620
  }
621
621
  ],
622
- "id": 20308,
622
+ "id": 20064,
623
623
  "isConstant": false,
624
624
  "isLValue": false,
625
625
  "isPure": true,
626
626
  "lValueRequested": false,
627
627
  "nodeType": "ElementaryTypeNameExpression",
628
- "src": "1137:7:66",
628
+ "src": "1137:7:65",
629
629
  "typeDescriptions": {
630
630
  "typeIdentifier": "t_type$_t_uint256_$",
631
631
  "typeString": "type(uint256)"
632
632
  },
633
633
  "typeName": {
634
- "id": 20307,
634
+ "id": 20063,
635
635
  "name": "uint256",
636
636
  "nodeType": "ElementaryTypeName",
637
- "src": "1137:7:66",
637
+ "src": "1137:7:65",
638
638
  "typeDescriptions": {}
639
639
  }
640
640
  },
641
- "id": 20310,
641
+ "id": 20066,
642
642
  "isConstant": false,
643
643
  "isLValue": false,
644
644
  "isPure": false,
@@ -646,7 +646,7 @@
646
646
  "lValueRequested": false,
647
647
  "names": [],
648
648
  "nodeType": "FunctionCall",
649
- "src": "1137:10:66",
649
+ "src": "1137:10:65",
650
650
  "tryCall": false,
651
651
  "typeDescriptions": {
652
652
  "typeIdentifier": "t_uint256",
@@ -657,50 +657,50 @@
657
657
  "operator": ">",
658
658
  "rightExpression": {
659
659
  "hexValue": "30",
660
- "id": 20311,
660
+ "id": 20067,
661
661
  "isConstant": false,
662
662
  "isLValue": false,
663
663
  "isPure": true,
664
664
  "kind": "number",
665
665
  "lValueRequested": false,
666
666
  "nodeType": "Literal",
667
- "src": "1150:1:66",
667
+ "src": "1150:1:65",
668
668
  "typeDescriptions": {
669
669
  "typeIdentifier": "t_rational_0_by_1",
670
670
  "typeString": "int_const 0"
671
671
  },
672
672
  "value": "0"
673
673
  },
674
- "src": "1137:14:66",
674
+ "src": "1137:14:65",
675
675
  "typeDescriptions": {
676
676
  "typeIdentifier": "t_bool",
677
677
  "typeString": "bool"
678
678
  }
679
679
  },
680
- "id": 20315,
680
+ "id": 20071,
681
681
  "nodeType": "IfStatement",
682
- "src": "1133:31:66",
682
+ "src": "1133:31:65",
683
683
  "trueBody": {
684
684
  "expression": {
685
685
  "hexValue": "74727565",
686
- "id": 20313,
686
+ "id": 20069,
687
687
  "isConstant": false,
688
688
  "isLValue": false,
689
689
  "isPure": true,
690
690
  "kind": "bool",
691
691
  "lValueRequested": false,
692
692
  "nodeType": "Literal",
693
- "src": "1160:4:66",
693
+ "src": "1160:4:65",
694
694
  "typeDescriptions": {
695
695
  "typeIdentifier": "t_bool",
696
696
  "typeString": "bool"
697
697
  },
698
698
  "value": "true"
699
699
  },
700
- "functionReturnParameters": 20292,
701
- "id": 20314,
700
+ "functionReturnParameters": 20048,
701
+ "id": 20070,
702
702
  "nodeType": "Return",
703
- "src": "1153:11:66"
703
+ "src": "1153:11:65"
704
704
  }
705
705
  }
706
706
  ]
@@ -710,18 +710,18 @@
710
710
  "typeIdentifier": "t_uint256",
711
711
  "typeString": "uint256"
712
712
  },
713
- "id": 20299,
713
+ "id": 20055,
714
714
  "isConstant": false,
715
715
  "isLValue": false,
716
716
  "isPure": false,
717
717
  "lValueRequested": false,
718
718
  "leftExpression": {
719
- "id": 20297,
719
+ "id": 20053,
720
720
  "name": "j",
721
721
  "nodeType": "Identifier",
722
722
  "overloadedDeclarations": [],
723
- "referencedDeclaration": 20294,
724
- "src": "1025:1:66",
723
+ "referencedDeclaration": 20050,
724
+ "src": "1025:1:65",
725
725
  "typeDescriptions": {
726
726
  "typeIdentifier": "t_uint256",
727
727
  "typeString": "uint256"
@@ -730,38 +730,38 @@
730
730
  "nodeType": "BinaryOperation",
731
731
  "operator": "<",
732
732
  "rightExpression": {
733
- "id": 20298,
733
+ "id": 20054,
734
734
  "name": "dataLength",
735
735
  "nodeType": "Identifier",
736
736
  "overloadedDeclarations": [],
737
- "referencedDeclaration": 20288,
738
- "src": "1029:10:66",
737
+ "referencedDeclaration": 20044,
738
+ "src": "1029:10:65",
739
739
  "typeDescriptions": {
740
740
  "typeIdentifier": "t_uint256",
741
741
  "typeString": "uint256"
742
742
  }
743
743
  },
744
- "src": "1025:14:66",
744
+ "src": "1025:14:65",
745
745
  "typeDescriptions": {
746
746
  "typeIdentifier": "t_bool",
747
747
  "typeString": "bool"
748
748
  }
749
749
  },
750
- "id": 20317,
750
+ "id": 20073,
751
751
  "initializationExpression": {
752
752
  "assignments": [
753
- 20294
753
+ 20050
754
754
  ],
755
755
  "declarations": [
756
756
  {
757
757
  "constant": false,
758
- "id": 20294,
758
+ "id": 20050,
759
759
  "mutability": "mutable",
760
760
  "name": "j",
761
- "nameLocation": "1018:1:66",
761
+ "nameLocation": "1018:1:65",
762
762
  "nodeType": "VariableDeclaration",
763
- "scope": 20317,
764
- "src": "1013:6:66",
763
+ "scope": 20073,
764
+ "src": "1013:6:65",
765
765
  "stateVariable": false,
766
766
  "storageLocation": "default",
767
767
  "typeDescriptions": {
@@ -769,10 +769,10 @@
769
769
  "typeString": "uint256"
770
770
  },
771
771
  "typeName": {
772
- "id": 20293,
772
+ "id": 20049,
773
773
  "name": "uint",
774
774
  "nodeType": "ElementaryTypeName",
775
- "src": "1013:4:66",
775
+ "src": "1013:4:65",
776
776
  "typeDescriptions": {
777
777
  "typeIdentifier": "t_uint256",
778
778
  "typeString": "uint256"
@@ -781,17 +781,17 @@
781
781
  "visibility": "internal"
782
782
  }
783
783
  ],
784
- "id": 20296,
784
+ "id": 20052,
785
785
  "initialValue": {
786
786
  "hexValue": "30",
787
- "id": 20295,
787
+ "id": 20051,
788
788
  "isConstant": false,
789
789
  "isLValue": false,
790
790
  "isPure": true,
791
791
  "kind": "number",
792
792
  "lValueRequested": false,
793
793
  "nodeType": "Literal",
794
- "src": "1022:1:66",
794
+ "src": "1022:1:65",
795
795
  "typeDescriptions": {
796
796
  "typeIdentifier": "t_rational_0_by_1",
797
797
  "typeString": "int_const 0"
@@ -799,11 +799,11 @@
799
799
  "value": "0"
800
800
  },
801
801
  "nodeType": "VariableDeclarationStatement",
802
- "src": "1013:10:66"
802
+ "src": "1013:10:65"
803
803
  },
804
804
  "loopExpression": {
805
805
  "expression": {
806
- "id": 20301,
806
+ "id": 20057,
807
807
  "isConstant": false,
808
808
  "isLValue": false,
809
809
  "isPure": false,
@@ -811,14 +811,14 @@
811
811
  "nodeType": "UnaryOperation",
812
812
  "operator": "++",
813
813
  "prefix": true,
814
- "src": "1041:3:66",
814
+ "src": "1041:3:65",
815
815
  "subExpression": {
816
- "id": 20300,
816
+ "id": 20056,
817
817
  "name": "j",
818
818
  "nodeType": "Identifier",
819
819
  "overloadedDeclarations": [],
820
- "referencedDeclaration": 20294,
821
- "src": "1043:1:66",
820
+ "referencedDeclaration": 20050,
821
+ "src": "1043:1:65",
822
822
  "typeDescriptions": {
823
823
  "typeIdentifier": "t_uint256",
824
824
  "typeString": "uint256"
@@ -829,57 +829,57 @@
829
829
  "typeString": "uint256"
830
830
  }
831
831
  },
832
- "id": 20302,
832
+ "id": 20058,
833
833
  "nodeType": "ExpressionStatement",
834
- "src": "1041:3:66"
834
+ "src": "1041:3:65"
835
835
  },
836
836
  "nodeType": "ForStatement",
837
- "src": "1008:167:66"
837
+ "src": "1008:167:65"
838
838
  },
839
839
  {
840
840
  "expression": {
841
841
  "hexValue": "66616c7365",
842
- "id": 20318,
842
+ "id": 20074,
843
843
  "isConstant": false,
844
844
  "isLValue": false,
845
845
  "isPure": true,
846
846
  "kind": "bool",
847
847
  "lValueRequested": false,
848
848
  "nodeType": "Literal",
849
- "src": "1191:5:66",
849
+ "src": "1191:5:65",
850
850
  "typeDescriptions": {
851
851
  "typeIdentifier": "t_bool",
852
852
  "typeString": "bool"
853
853
  },
854
854
  "value": "false"
855
855
  },
856
- "functionReturnParameters": 20292,
857
- "id": 20319,
856
+ "functionReturnParameters": 20048,
857
+ "id": 20075,
858
858
  "nodeType": "Return",
859
- "src": "1184:12:66"
859
+ "src": "1184:12:65"
860
860
  }
861
861
  ]
862
862
  },
863
- "id": 20321,
863
+ "id": 20077,
864
864
  "implemented": true,
865
865
  "kind": "function",
866
866
  "modifiers": [],
867
867
  "name": "hasData",
868
- "nameLocation": "930:7:66",
868
+ "nameLocation": "930:7:65",
869
869
  "nodeType": "FunctionDefinition",
870
870
  "parameters": {
871
- "id": 20289,
871
+ "id": 20045,
872
872
  "nodeType": "ParameterList",
873
873
  "parameters": [
874
874
  {
875
875
  "constant": false,
876
- "id": 20286,
876
+ "id": 20042,
877
877
  "mutability": "mutable",
878
878
  "name": "slot",
879
- "nameLocation": "946:4:66",
879
+ "nameLocation": "946:4:65",
880
880
  "nodeType": "VariableDeclaration",
881
- "scope": 20321,
882
- "src": "938:12:66",
881
+ "scope": 20077,
882
+ "src": "938:12:65",
883
883
  "stateVariable": false,
884
884
  "storageLocation": "default",
885
885
  "typeDescriptions": {
@@ -887,10 +887,10 @@
887
887
  "typeString": "bytes32"
888
888
  },
889
889
  "typeName": {
890
- "id": 20285,
890
+ "id": 20041,
891
891
  "name": "bytes32",
892
892
  "nodeType": "ElementaryTypeName",
893
- "src": "938:7:66",
893
+ "src": "938:7:65",
894
894
  "typeDescriptions": {
895
895
  "typeIdentifier": "t_bytes32",
896
896
  "typeString": "bytes32"
@@ -900,13 +900,13 @@
900
900
  },
901
901
  {
902
902
  "constant": false,
903
- "id": 20288,
903
+ "id": 20044,
904
904
  "mutability": "mutable",
905
905
  "name": "dataLength",
906
- "nameLocation": "957:10:66",
906
+ "nameLocation": "957:10:65",
907
907
  "nodeType": "VariableDeclaration",
908
- "scope": 20321,
909
- "src": "952:15:66",
908
+ "scope": 20077,
909
+ "src": "952:15:65",
910
910
  "stateVariable": false,
911
911
  "storageLocation": "default",
912
912
  "typeDescriptions": {
@@ -914,10 +914,10 @@
914
914
  "typeString": "uint256"
915
915
  },
916
916
  "typeName": {
917
- "id": 20287,
917
+ "id": 20043,
918
918
  "name": "uint",
919
919
  "nodeType": "ElementaryTypeName",
920
- "src": "952:4:66",
920
+ "src": "952:4:65",
921
921
  "typeDescriptions": {
922
922
  "typeIdentifier": "t_uint256",
923
923
  "typeString": "uint256"
@@ -926,21 +926,21 @@
926
926
  "visibility": "internal"
927
927
  }
928
928
  ],
929
- "src": "937:31:66"
929
+ "src": "937:31:65"
930
930
  },
931
931
  "returnParameters": {
932
- "id": 20292,
932
+ "id": 20048,
933
933
  "nodeType": "ParameterList",
934
934
  "parameters": [
935
935
  {
936
936
  "constant": false,
937
- "id": 20291,
937
+ "id": 20047,
938
938
  "mutability": "mutable",
939
939
  "name": "",
940
940
  "nameLocation": "-1:-1:-1",
941
941
  "nodeType": "VariableDeclaration",
942
- "scope": 20321,
943
- "src": "992:4:66",
942
+ "scope": 20077,
943
+ "src": "992:4:65",
944
944
  "stateVariable": false,
945
945
  "storageLocation": "default",
946
946
  "typeDescriptions": {
@@ -948,10 +948,10 @@
948
948
  "typeString": "bool"
949
949
  },
950
950
  "typeName": {
951
- "id": 20290,
951
+ "id": 20046,
952
952
  "name": "bool",
953
953
  "nodeType": "ElementaryTypeName",
954
- "src": "992:4:66",
954
+ "src": "992:4:65",
955
955
  "typeDescriptions": {
956
956
  "typeIdentifier": "t_bool",
957
957
  "typeString": "bool"
@@ -960,34 +960,34 @@
960
960
  "visibility": "internal"
961
961
  }
962
962
  ],
963
- "src": "991:6:66"
963
+ "src": "991:6:65"
964
964
  },
965
- "scope": 20386,
966
- "src": "921:282:66",
965
+ "scope": 20142,
966
+ "src": "921:282:65",
967
967
  "stateMutability": "view",
968
968
  "virtual": false,
969
969
  "visibility": "internal"
970
970
  },
971
971
  {
972
972
  "body": {
973
- "id": 20362,
973
+ "id": 20118,
974
974
  "nodeType": "Block",
975
- "src": "1387:205:66",
975
+ "src": "1387:205:65",
976
976
  "statements": [
977
977
  {
978
978
  "expression": {
979
- "id": 20338,
979
+ "id": 20094,
980
980
  "isConstant": false,
981
981
  "isLValue": false,
982
982
  "isPure": false,
983
983
  "lValueRequested": false,
984
984
  "leftHandSide": {
985
- "id": 20332,
985
+ "id": 20088,
986
986
  "name": "data",
987
987
  "nodeType": "Identifier",
988
988
  "overloadedDeclarations": [],
989
- "referencedDeclaration": 20330,
990
- "src": "1397:4:66",
989
+ "referencedDeclaration": 20086,
990
+ "src": "1397:4:65",
991
991
  "typeDescriptions": {
992
992
  "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
993
993
  "typeString": "bytes32[] memory"
@@ -998,12 +998,12 @@
998
998
  "rightHandSide": {
999
999
  "arguments": [
1000
1000
  {
1001
- "id": 20336,
1001
+ "id": 20092,
1002
1002
  "name": "dataLength",
1003
1003
  "nodeType": "Identifier",
1004
1004
  "overloadedDeclarations": [],
1005
- "referencedDeclaration": 20326,
1006
- "src": "1418:10:66",
1005
+ "referencedDeclaration": 20082,
1006
+ "src": "1418:10:65",
1007
1007
  "typeDescriptions": {
1008
1008
  "typeIdentifier": "t_uint256",
1009
1009
  "typeString": "uint256"
@@ -1017,38 +1017,38 @@
1017
1017
  "typeString": "uint256"
1018
1018
  }
1019
1019
  ],
1020
- "id": 20335,
1020
+ "id": 20091,
1021
1021
  "isConstant": false,
1022
1022
  "isLValue": false,
1023
1023
  "isPure": true,
1024
1024
  "lValueRequested": false,
1025
1025
  "nodeType": "NewExpression",
1026
- "src": "1404:13:66",
1026
+ "src": "1404:13:65",
1027
1027
  "typeDescriptions": {
1028
1028
  "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_bytes32_$dyn_memory_ptr_$",
1029
1029
  "typeString": "function (uint256) pure returns (bytes32[] memory)"
1030
1030
  },
1031
1031
  "typeName": {
1032
1032
  "baseType": {
1033
- "id": 20333,
1033
+ "id": 20089,
1034
1034
  "name": "bytes32",
1035
1035
  "nodeType": "ElementaryTypeName",
1036
- "src": "1408:7:66",
1036
+ "src": "1408:7:65",
1037
1037
  "typeDescriptions": {
1038
1038
  "typeIdentifier": "t_bytes32",
1039
1039
  "typeString": "bytes32"
1040
1040
  }
1041
1041
  },
1042
- "id": 20334,
1042
+ "id": 20090,
1043
1043
  "nodeType": "ArrayTypeName",
1044
- "src": "1408:9:66",
1044
+ "src": "1408:9:65",
1045
1045
  "typeDescriptions": {
1046
1046
  "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
1047
1047
  "typeString": "bytes32[]"
1048
1048
  }
1049
1049
  }
1050
1050
  },
1051
- "id": 20337,
1051
+ "id": 20093,
1052
1052
  "isConstant": false,
1053
1053
  "isLValue": false,
1054
1054
  "isPure": false,
@@ -1056,43 +1056,43 @@
1056
1056
  "lValueRequested": false,
1057
1057
  "names": [],
1058
1058
  "nodeType": "FunctionCall",
1059
- "src": "1404:25:66",
1059
+ "src": "1404:25:65",
1060
1060
  "tryCall": false,
1061
1061
  "typeDescriptions": {
1062
1062
  "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
1063
1063
  "typeString": "bytes32[] memory"
1064
1064
  }
1065
1065
  },
1066
- "src": "1397:32:66",
1066
+ "src": "1397:32:65",
1067
1067
  "typeDescriptions": {
1068
1068
  "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
1069
1069
  "typeString": "bytes32[] memory"
1070
1070
  }
1071
1071
  },
1072
- "id": 20339,
1072
+ "id": 20095,
1073
1073
  "nodeType": "ExpressionStatement",
1074
- "src": "1397:32:66"
1074
+ "src": "1397:32:65"
1075
1075
  },
1076
1076
  {
1077
1077
  "body": {
1078
- "id": 20360,
1078
+ "id": 20116,
1079
1079
  "nodeType": "Block",
1080
- "src": "1477:109:66",
1080
+ "src": "1477:109:65",
1081
1081
  "statements": [
1082
1082
  {
1083
1083
  "assignments": [
1084
- 20351
1084
+ 20107
1085
1085
  ],
1086
1086
  "declarations": [
1087
1087
  {
1088
1088
  "constant": false,
1089
- "id": 20351,
1089
+ "id": 20107,
1090
1090
  "mutability": "mutable",
1091
1091
  "name": "d",
1092
- "nameLocation": "1499:1:66",
1092
+ "nameLocation": "1499:1:65",
1093
1093
  "nodeType": "VariableDeclaration",
1094
- "scope": 20360,
1095
- "src": "1491:9:66",
1094
+ "scope": 20116,
1095
+ "src": "1491:9:65",
1096
1096
  "stateVariable": false,
1097
1097
  "storageLocation": "default",
1098
1098
  "typeDescriptions": {
@@ -1100,10 +1100,10 @@
1100
1100
  "typeString": "bytes32"
1101
1101
  },
1102
1102
  "typeName": {
1103
- "id": 20350,
1103
+ "id": 20106,
1104
1104
  "name": "bytes32",
1105
1105
  "nodeType": "ElementaryTypeName",
1106
- "src": "1491:7:66",
1106
+ "src": "1491:7:65",
1107
1107
  "typeDescriptions": {
1108
1108
  "typeIdentifier": "t_bytes32",
1109
1109
  "typeString": "bytes32"
@@ -1112,18 +1112,18 @@
1112
1112
  "visibility": "internal"
1113
1113
  }
1114
1114
  ],
1115
- "id": 20352,
1115
+ "id": 20108,
1116
1116
  "nodeType": "VariableDeclarationStatement",
1117
- "src": "1491:9:66"
1117
+ "src": "1491:9:65"
1118
1118
  },
1119
1119
  {
1120
1120
  "AST": {
1121
1121
  "nodeType": "YulBlock",
1122
- "src": "1523:28:66",
1122
+ "src": "1523:28:65",
1123
1123
  "statements": [
1124
1124
  {
1125
1125
  "nodeType": "YulAssignment",
1126
- "src": "1525:24:66",
1126
+ "src": "1525:24:65",
1127
1127
  "value": {
1128
1128
  "arguments": [
1129
1129
  {
@@ -1131,36 +1131,36 @@
1131
1131
  {
1132
1132
  "name": "slot",
1133
1133
  "nodeType": "YulIdentifier",
1134
- "src": "1540:4:66"
1134
+ "src": "1540:4:65"
1135
1135
  },
1136
1136
  {
1137
1137
  "name": "j",
1138
1138
  "nodeType": "YulIdentifier",
1139
- "src": "1546:1:66"
1139
+ "src": "1546:1:65"
1140
1140
  }
1141
1141
  ],
1142
1142
  "functionName": {
1143
1143
  "name": "add",
1144
1144
  "nodeType": "YulIdentifier",
1145
- "src": "1536:3:66"
1145
+ "src": "1536:3:65"
1146
1146
  },
1147
1147
  "nodeType": "YulFunctionCall",
1148
- "src": "1536:12:66"
1148
+ "src": "1536:12:65"
1149
1149
  }
1150
1150
  ],
1151
1151
  "functionName": {
1152
1152
  "name": "sload",
1153
1153
  "nodeType": "YulIdentifier",
1154
- "src": "1530:5:66"
1154
+ "src": "1530:5:65"
1155
1155
  },
1156
1156
  "nodeType": "YulFunctionCall",
1157
- "src": "1530:19:66"
1157
+ "src": "1530:19:65"
1158
1158
  },
1159
1159
  "variableNames": [
1160
1160
  {
1161
1161
  "name": "d",
1162
1162
  "nodeType": "YulIdentifier",
1163
- "src": "1525:1:66"
1163
+ "src": "1525:1:65"
1164
1164
  }
1165
1165
  ]
1166
1166
  }
@@ -1169,59 +1169,59 @@
1169
1169
  "evmVersion": "london",
1170
1170
  "externalReferences": [
1171
1171
  {
1172
- "declaration": 20351,
1172
+ "declaration": 20107,
1173
1173
  "isOffset": false,
1174
1174
  "isSlot": false,
1175
- "src": "1525:1:66",
1175
+ "src": "1525:1:65",
1176
1176
  "valueSize": 1
1177
1177
  },
1178
1178
  {
1179
- "declaration": 20341,
1179
+ "declaration": 20097,
1180
1180
  "isOffset": false,
1181
1181
  "isSlot": false,
1182
- "src": "1546:1:66",
1182
+ "src": "1546:1:65",
1183
1183
  "valueSize": 1
1184
1184
  },
1185
1185
  {
1186
- "declaration": 20324,
1186
+ "declaration": 20080,
1187
1187
  "isOffset": false,
1188
1188
  "isSlot": false,
1189
- "src": "1540:4:66",
1189
+ "src": "1540:4:65",
1190
1190
  "valueSize": 1
1191
1191
  }
1192
1192
  ],
1193
- "id": 20353,
1193
+ "id": 20109,
1194
1194
  "nodeType": "InlineAssembly",
1195
- "src": "1514:37:66"
1195
+ "src": "1514:37:65"
1196
1196
  },
1197
1197
  {
1198
1198
  "expression": {
1199
- "id": 20358,
1199
+ "id": 20114,
1200
1200
  "isConstant": false,
1201
1201
  "isLValue": false,
1202
1202
  "isPure": false,
1203
1203
  "lValueRequested": false,
1204
1204
  "leftHandSide": {
1205
1205
  "baseExpression": {
1206
- "id": 20354,
1206
+ "id": 20110,
1207
1207
  "name": "data",
1208
1208
  "nodeType": "Identifier",
1209
1209
  "overloadedDeclarations": [],
1210
- "referencedDeclaration": 20330,
1211
- "src": "1564:4:66",
1210
+ "referencedDeclaration": 20086,
1211
+ "src": "1564:4:65",
1212
1212
  "typeDescriptions": {
1213
1213
  "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
1214
1214
  "typeString": "bytes32[] memory"
1215
1215
  }
1216
1216
  },
1217
- "id": 20356,
1217
+ "id": 20112,
1218
1218
  "indexExpression": {
1219
- "id": 20355,
1219
+ "id": 20111,
1220
1220
  "name": "j",
1221
1221
  "nodeType": "Identifier",
1222
1222
  "overloadedDeclarations": [],
1223
- "referencedDeclaration": 20341,
1224
- "src": "1569:1:66",
1223
+ "referencedDeclaration": 20097,
1224
+ "src": "1569:1:65",
1225
1225
  "typeDescriptions": {
1226
1226
  "typeIdentifier": "t_uint256",
1227
1227
  "typeString": "uint256"
@@ -1232,7 +1232,7 @@
1232
1232
  "isPure": false,
1233
1233
  "lValueRequested": true,
1234
1234
  "nodeType": "IndexAccess",
1235
- "src": "1564:7:66",
1235
+ "src": "1564:7:65",
1236
1236
  "typeDescriptions": {
1237
1237
  "typeIdentifier": "t_bytes32",
1238
1238
  "typeString": "bytes32"
@@ -1241,26 +1241,26 @@
1241
1241
  "nodeType": "Assignment",
1242
1242
  "operator": "=",
1243
1243
  "rightHandSide": {
1244
- "id": 20357,
1244
+ "id": 20113,
1245
1245
  "name": "d",
1246
1246
  "nodeType": "Identifier",
1247
1247
  "overloadedDeclarations": [],
1248
- "referencedDeclaration": 20351,
1249
- "src": "1574:1:66",
1248
+ "referencedDeclaration": 20107,
1249
+ "src": "1574:1:65",
1250
1250
  "typeDescriptions": {
1251
1251
  "typeIdentifier": "t_bytes32",
1252
1252
  "typeString": "bytes32"
1253
1253
  }
1254
1254
  },
1255
- "src": "1564:11:66",
1255
+ "src": "1564:11:65",
1256
1256
  "typeDescriptions": {
1257
1257
  "typeIdentifier": "t_bytes32",
1258
1258
  "typeString": "bytes32"
1259
1259
  }
1260
1260
  },
1261
- "id": 20359,
1261
+ "id": 20115,
1262
1262
  "nodeType": "ExpressionStatement",
1263
- "src": "1564:11:66"
1263
+ "src": "1564:11:65"
1264
1264
  }
1265
1265
  ]
1266
1266
  },
@@ -1269,18 +1269,18 @@
1269
1269
  "typeIdentifier": "t_uint256",
1270
1270
  "typeString": "uint256"
1271
1271
  },
1272
- "id": 20346,
1272
+ "id": 20102,
1273
1273
  "isConstant": false,
1274
1274
  "isLValue": false,
1275
1275
  "isPure": false,
1276
1276
  "lValueRequested": false,
1277
1277
  "leftExpression": {
1278
- "id": 20344,
1278
+ "id": 20100,
1279
1279
  "name": "j",
1280
1280
  "nodeType": "Identifier",
1281
1281
  "overloadedDeclarations": [],
1282
- "referencedDeclaration": 20341,
1283
- "src": "1456:1:66",
1282
+ "referencedDeclaration": 20097,
1283
+ "src": "1456:1:65",
1284
1284
  "typeDescriptions": {
1285
1285
  "typeIdentifier": "t_uint256",
1286
1286
  "typeString": "uint256"
@@ -1289,38 +1289,38 @@
1289
1289
  "nodeType": "BinaryOperation",
1290
1290
  "operator": "<",
1291
1291
  "rightExpression": {
1292
- "id": 20345,
1292
+ "id": 20101,
1293
1293
  "name": "dataLength",
1294
1294
  "nodeType": "Identifier",
1295
1295
  "overloadedDeclarations": [],
1296
- "referencedDeclaration": 20326,
1297
- "src": "1460:10:66",
1296
+ "referencedDeclaration": 20082,
1297
+ "src": "1460:10:65",
1298
1298
  "typeDescriptions": {
1299
1299
  "typeIdentifier": "t_uint256",
1300
1300
  "typeString": "uint256"
1301
1301
  }
1302
1302
  },
1303
- "src": "1456:14:66",
1303
+ "src": "1456:14:65",
1304
1304
  "typeDescriptions": {
1305
1305
  "typeIdentifier": "t_bool",
1306
1306
  "typeString": "bool"
1307
1307
  }
1308
1308
  },
1309
- "id": 20361,
1309
+ "id": 20117,
1310
1310
  "initializationExpression": {
1311
1311
  "assignments": [
1312
- 20341
1312
+ 20097
1313
1313
  ],
1314
1314
  "declarations": [
1315
1315
  {
1316
1316
  "constant": false,
1317
- "id": 20341,
1317
+ "id": 20097,
1318
1318
  "mutability": "mutable",
1319
1319
  "name": "j",
1320
- "nameLocation": "1449:1:66",
1320
+ "nameLocation": "1449:1:65",
1321
1321
  "nodeType": "VariableDeclaration",
1322
- "scope": 20361,
1323
- "src": "1444:6:66",
1322
+ "scope": 20117,
1323
+ "src": "1444:6:65",
1324
1324
  "stateVariable": false,
1325
1325
  "storageLocation": "default",
1326
1326
  "typeDescriptions": {
@@ -1328,10 +1328,10 @@
1328
1328
  "typeString": "uint256"
1329
1329
  },
1330
1330
  "typeName": {
1331
- "id": 20340,
1331
+ "id": 20096,
1332
1332
  "name": "uint",
1333
1333
  "nodeType": "ElementaryTypeName",
1334
- "src": "1444:4:66",
1334
+ "src": "1444:4:65",
1335
1335
  "typeDescriptions": {
1336
1336
  "typeIdentifier": "t_uint256",
1337
1337
  "typeString": "uint256"
@@ -1340,17 +1340,17 @@
1340
1340
  "visibility": "internal"
1341
1341
  }
1342
1342
  ],
1343
- "id": 20343,
1343
+ "id": 20099,
1344
1344
  "initialValue": {
1345
1345
  "hexValue": "30",
1346
- "id": 20342,
1346
+ "id": 20098,
1347
1347
  "isConstant": false,
1348
1348
  "isLValue": false,
1349
1349
  "isPure": true,
1350
1350
  "kind": "number",
1351
1351
  "lValueRequested": false,
1352
1352
  "nodeType": "Literal",
1353
- "src": "1453:1:66",
1353
+ "src": "1453:1:65",
1354
1354
  "typeDescriptions": {
1355
1355
  "typeIdentifier": "t_rational_0_by_1",
1356
1356
  "typeString": "int_const 0"
@@ -1358,11 +1358,11 @@
1358
1358
  "value": "0"
1359
1359
  },
1360
1360
  "nodeType": "VariableDeclarationStatement",
1361
- "src": "1444:10:66"
1361
+ "src": "1444:10:65"
1362
1362
  },
1363
1363
  "loopExpression": {
1364
1364
  "expression": {
1365
- "id": 20348,
1365
+ "id": 20104,
1366
1366
  "isConstant": false,
1367
1367
  "isLValue": false,
1368
1368
  "isPure": false,
@@ -1370,14 +1370,14 @@
1370
1370
  "nodeType": "UnaryOperation",
1371
1371
  "operator": "++",
1372
1372
  "prefix": true,
1373
- "src": "1472:3:66",
1373
+ "src": "1472:3:65",
1374
1374
  "subExpression": {
1375
- "id": 20347,
1375
+ "id": 20103,
1376
1376
  "name": "j",
1377
1377
  "nodeType": "Identifier",
1378
1378
  "overloadedDeclarations": [],
1379
- "referencedDeclaration": 20341,
1380
- "src": "1474:1:66",
1379
+ "referencedDeclaration": 20097,
1380
+ "src": "1474:1:65",
1381
1381
  "typeDescriptions": {
1382
1382
  "typeIdentifier": "t_uint256",
1383
1383
  "typeString": "uint256"
@@ -1388,41 +1388,41 @@
1388
1388
  "typeString": "uint256"
1389
1389
  }
1390
1390
  },
1391
- "id": 20349,
1391
+ "id": 20105,
1392
1392
  "nodeType": "ExpressionStatement",
1393
- "src": "1472:3:66"
1393
+ "src": "1472:3:65"
1394
1394
  },
1395
1395
  "nodeType": "ForStatement",
1396
- "src": "1439:147:66"
1396
+ "src": "1439:147:65"
1397
1397
  }
1398
1398
  ]
1399
1399
  },
1400
1400
  "documentation": {
1401
- "id": 20322,
1401
+ "id": 20078,
1402
1402
  "nodeType": "StructuredDocumentation",
1403
- "src": "1209:78:66",
1403
+ "src": "1209:78:65",
1404
1404
  "text": " @dev Load data of size `dataLength` from the slot at `slot`"
1405
1405
  },
1406
- "id": 20363,
1406
+ "id": 20119,
1407
1407
  "implemented": true,
1408
1408
  "kind": "function",
1409
1409
  "modifiers": [],
1410
1410
  "name": "loadData",
1411
- "nameLocation": "1301:8:66",
1411
+ "nameLocation": "1301:8:65",
1412
1412
  "nodeType": "FunctionDefinition",
1413
1413
  "parameters": {
1414
- "id": 20327,
1414
+ "id": 20083,
1415
1415
  "nodeType": "ParameterList",
1416
1416
  "parameters": [
1417
1417
  {
1418
1418
  "constant": false,
1419
- "id": 20324,
1419
+ "id": 20080,
1420
1420
  "mutability": "mutable",
1421
1421
  "name": "slot",
1422
- "nameLocation": "1318:4:66",
1422
+ "nameLocation": "1318:4:65",
1423
1423
  "nodeType": "VariableDeclaration",
1424
- "scope": 20363,
1425
- "src": "1310:12:66",
1424
+ "scope": 20119,
1425
+ "src": "1310:12:65",
1426
1426
  "stateVariable": false,
1427
1427
  "storageLocation": "default",
1428
1428
  "typeDescriptions": {
@@ -1430,10 +1430,10 @@
1430
1430
  "typeString": "bytes32"
1431
1431
  },
1432
1432
  "typeName": {
1433
- "id": 20323,
1433
+ "id": 20079,
1434
1434
  "name": "bytes32",
1435
1435
  "nodeType": "ElementaryTypeName",
1436
- "src": "1310:7:66",
1436
+ "src": "1310:7:65",
1437
1437
  "typeDescriptions": {
1438
1438
  "typeIdentifier": "t_bytes32",
1439
1439
  "typeString": "bytes32"
@@ -1443,13 +1443,13 @@
1443
1443
  },
1444
1444
  {
1445
1445
  "constant": false,
1446
- "id": 20326,
1446
+ "id": 20082,
1447
1447
  "mutability": "mutable",
1448
1448
  "name": "dataLength",
1449
- "nameLocation": "1329:10:66",
1449
+ "nameLocation": "1329:10:65",
1450
1450
  "nodeType": "VariableDeclaration",
1451
- "scope": 20363,
1452
- "src": "1324:15:66",
1451
+ "scope": 20119,
1452
+ "src": "1324:15:65",
1453
1453
  "stateVariable": false,
1454
1454
  "storageLocation": "default",
1455
1455
  "typeDescriptions": {
@@ -1457,10 +1457,10 @@
1457
1457
  "typeString": "uint256"
1458
1458
  },
1459
1459
  "typeName": {
1460
- "id": 20325,
1460
+ "id": 20081,
1461
1461
  "name": "uint",
1462
1462
  "nodeType": "ElementaryTypeName",
1463
- "src": "1324:4:66",
1463
+ "src": "1324:4:65",
1464
1464
  "typeDescriptions": {
1465
1465
  "typeIdentifier": "t_uint256",
1466
1466
  "typeString": "uint256"
@@ -1469,21 +1469,21 @@
1469
1469
  "visibility": "internal"
1470
1470
  }
1471
1471
  ],
1472
- "src": "1309:31:66"
1472
+ "src": "1309:31:65"
1473
1473
  },
1474
1474
  "returnParameters": {
1475
- "id": 20331,
1475
+ "id": 20087,
1476
1476
  "nodeType": "ParameterList",
1477
1477
  "parameters": [
1478
1478
  {
1479
1479
  "constant": false,
1480
- "id": 20330,
1480
+ "id": 20086,
1481
1481
  "mutability": "mutable",
1482
1482
  "name": "data",
1483
- "nameLocation": "1381:4:66",
1483
+ "nameLocation": "1381:4:65",
1484
1484
  "nodeType": "VariableDeclaration",
1485
- "scope": 20363,
1486
- "src": "1364:21:66",
1485
+ "scope": 20119,
1486
+ "src": "1364:21:65",
1487
1487
  "stateVariable": false,
1488
1488
  "storageLocation": "memory",
1489
1489
  "typeDescriptions": {
@@ -1492,18 +1492,18 @@
1492
1492
  },
1493
1493
  "typeName": {
1494
1494
  "baseType": {
1495
- "id": 20328,
1495
+ "id": 20084,
1496
1496
  "name": "bytes32",
1497
1497
  "nodeType": "ElementaryTypeName",
1498
- "src": "1364:7:66",
1498
+ "src": "1364:7:65",
1499
1499
  "typeDescriptions": {
1500
1500
  "typeIdentifier": "t_bytes32",
1501
1501
  "typeString": "bytes32"
1502
1502
  }
1503
1503
  },
1504
- "id": 20329,
1504
+ "id": 20085,
1505
1505
  "nodeType": "ArrayTypeName",
1506
- "src": "1364:9:66",
1506
+ "src": "1364:9:65",
1507
1507
  "typeDescriptions": {
1508
1508
  "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
1509
1509
  "typeString": "bytes32[]"
@@ -1512,30 +1512,30 @@
1512
1512
  "visibility": "internal"
1513
1513
  }
1514
1514
  ],
1515
- "src": "1363:23:66"
1515
+ "src": "1363:23:65"
1516
1516
  },
1517
- "scope": 20386,
1518
- "src": "1292:300:66",
1517
+ "scope": 20142,
1518
+ "src": "1292:300:65",
1519
1519
  "stateMutability": "view",
1520
1520
  "virtual": false,
1521
1521
  "visibility": "internal"
1522
1522
  },
1523
1523
  {
1524
1524
  "body": {
1525
- "id": 20384,
1525
+ "id": 20140,
1526
1526
  "nodeType": "Block",
1527
- "src": "1741:114:66",
1527
+ "src": "1741:114:65",
1528
1528
  "statements": [
1529
1529
  {
1530
1530
  "body": {
1531
- "id": 20382,
1531
+ "id": 20138,
1532
1532
  "nodeType": "Block",
1533
- "src": "1789:60:66",
1533
+ "src": "1789:60:65",
1534
1534
  "statements": [
1535
1535
  {
1536
1536
  "AST": {
1537
1537
  "nodeType": "YulBlock",
1538
- "src": "1812:27:66",
1538
+ "src": "1812:27:65",
1539
1539
  "statements": [
1540
1540
  {
1541
1541
  "expression": {
@@ -1545,26 +1545,26 @@
1545
1545
  {
1546
1546
  "name": "slot",
1547
1547
  "nodeType": "YulIdentifier",
1548
- "src": "1825:4:66"
1548
+ "src": "1825:4:65"
1549
1549
  },
1550
1550
  {
1551
1551
  "name": "j",
1552
1552
  "nodeType": "YulIdentifier",
1553
- "src": "1831:1:66"
1553
+ "src": "1831:1:65"
1554
1554
  }
1555
1555
  ],
1556
1556
  "functionName": {
1557
1557
  "name": "add",
1558
1558
  "nodeType": "YulIdentifier",
1559
- "src": "1821:3:66"
1559
+ "src": "1821:3:65"
1560
1560
  },
1561
1561
  "nodeType": "YulFunctionCall",
1562
- "src": "1821:12:66"
1562
+ "src": "1821:12:65"
1563
1563
  },
1564
1564
  {
1565
1565
  "kind": "number",
1566
1566
  "nodeType": "YulLiteral",
1567
- "src": "1835:1:66",
1567
+ "src": "1835:1:65",
1568
1568
  "type": "",
1569
1569
  "value": "0"
1570
1570
  }
@@ -1572,36 +1572,36 @@
1572
1572
  "functionName": {
1573
1573
  "name": "sstore",
1574
1574
  "nodeType": "YulIdentifier",
1575
- "src": "1814:6:66"
1575
+ "src": "1814:6:65"
1576
1576
  },
1577
1577
  "nodeType": "YulFunctionCall",
1578
- "src": "1814:23:66"
1578
+ "src": "1814:23:65"
1579
1579
  },
1580
1580
  "nodeType": "YulExpressionStatement",
1581
- "src": "1814:23:66"
1581
+ "src": "1814:23:65"
1582
1582
  }
1583
1583
  ]
1584
1584
  },
1585
1585
  "evmVersion": "london",
1586
1586
  "externalReferences": [
1587
1587
  {
1588
- "declaration": 20372,
1588
+ "declaration": 20128,
1589
1589
  "isOffset": false,
1590
1590
  "isSlot": false,
1591
- "src": "1831:1:66",
1591
+ "src": "1831:1:65",
1592
1592
  "valueSize": 1
1593
1593
  },
1594
1594
  {
1595
- "declaration": 20366,
1595
+ "declaration": 20122,
1596
1596
  "isOffset": false,
1597
1597
  "isSlot": false,
1598
- "src": "1825:4:66",
1598
+ "src": "1825:4:65",
1599
1599
  "valueSize": 1
1600
1600
  }
1601
1601
  ],
1602
- "id": 20381,
1602
+ "id": 20137,
1603
1603
  "nodeType": "InlineAssembly",
1604
- "src": "1803:36:66"
1604
+ "src": "1803:36:65"
1605
1605
  }
1606
1606
  ]
1607
1607
  },
@@ -1610,18 +1610,18 @@
1610
1610
  "typeIdentifier": "t_uint256",
1611
1611
  "typeString": "uint256"
1612
1612
  },
1613
- "id": 20377,
1613
+ "id": 20133,
1614
1614
  "isConstant": false,
1615
1615
  "isLValue": false,
1616
1616
  "isPure": false,
1617
1617
  "lValueRequested": false,
1618
1618
  "leftExpression": {
1619
- "id": 20375,
1619
+ "id": 20131,
1620
1620
  "name": "j",
1621
1621
  "nodeType": "Identifier",
1622
1622
  "overloadedDeclarations": [],
1623
- "referencedDeclaration": 20372,
1624
- "src": "1768:1:66",
1623
+ "referencedDeclaration": 20128,
1624
+ "src": "1768:1:65",
1625
1625
  "typeDescriptions": {
1626
1626
  "typeIdentifier": "t_uint256",
1627
1627
  "typeString": "uint256"
@@ -1630,38 +1630,38 @@
1630
1630
  "nodeType": "BinaryOperation",
1631
1631
  "operator": "<",
1632
1632
  "rightExpression": {
1633
- "id": 20376,
1633
+ "id": 20132,
1634
1634
  "name": "dataLength",
1635
1635
  "nodeType": "Identifier",
1636
1636
  "overloadedDeclarations": [],
1637
- "referencedDeclaration": 20368,
1638
- "src": "1772:10:66",
1637
+ "referencedDeclaration": 20124,
1638
+ "src": "1772:10:65",
1639
1639
  "typeDescriptions": {
1640
1640
  "typeIdentifier": "t_uint256",
1641
1641
  "typeString": "uint256"
1642
1642
  }
1643
1643
  },
1644
- "src": "1768:14:66",
1644
+ "src": "1768:14:65",
1645
1645
  "typeDescriptions": {
1646
1646
  "typeIdentifier": "t_bool",
1647
1647
  "typeString": "bool"
1648
1648
  }
1649
1649
  },
1650
- "id": 20383,
1650
+ "id": 20139,
1651
1651
  "initializationExpression": {
1652
1652
  "assignments": [
1653
- 20372
1653
+ 20128
1654
1654
  ],
1655
1655
  "declarations": [
1656
1656
  {
1657
1657
  "constant": false,
1658
- "id": 20372,
1658
+ "id": 20128,
1659
1659
  "mutability": "mutable",
1660
1660
  "name": "j",
1661
- "nameLocation": "1761:1:66",
1661
+ "nameLocation": "1761:1:65",
1662
1662
  "nodeType": "VariableDeclaration",
1663
- "scope": 20383,
1664
- "src": "1756:6:66",
1663
+ "scope": 20139,
1664
+ "src": "1756:6:65",
1665
1665
  "stateVariable": false,
1666
1666
  "storageLocation": "default",
1667
1667
  "typeDescriptions": {
@@ -1669,10 +1669,10 @@
1669
1669
  "typeString": "uint256"
1670
1670
  },
1671
1671
  "typeName": {
1672
- "id": 20371,
1672
+ "id": 20127,
1673
1673
  "name": "uint",
1674
1674
  "nodeType": "ElementaryTypeName",
1675
- "src": "1756:4:66",
1675
+ "src": "1756:4:65",
1676
1676
  "typeDescriptions": {
1677
1677
  "typeIdentifier": "t_uint256",
1678
1678
  "typeString": "uint256"
@@ -1681,17 +1681,17 @@
1681
1681
  "visibility": "internal"
1682
1682
  }
1683
1683
  ],
1684
- "id": 20374,
1684
+ "id": 20130,
1685
1685
  "initialValue": {
1686
1686
  "hexValue": "30",
1687
- "id": 20373,
1687
+ "id": 20129,
1688
1688
  "isConstant": false,
1689
1689
  "isLValue": false,
1690
1690
  "isPure": true,
1691
1691
  "kind": "number",
1692
1692
  "lValueRequested": false,
1693
1693
  "nodeType": "Literal",
1694
- "src": "1765:1:66",
1694
+ "src": "1765:1:65",
1695
1695
  "typeDescriptions": {
1696
1696
  "typeIdentifier": "t_rational_0_by_1",
1697
1697
  "typeString": "int_const 0"
@@ -1699,11 +1699,11 @@
1699
1699
  "value": "0"
1700
1700
  },
1701
1701
  "nodeType": "VariableDeclarationStatement",
1702
- "src": "1756:10:66"
1702
+ "src": "1756:10:65"
1703
1703
  },
1704
1704
  "loopExpression": {
1705
1705
  "expression": {
1706
- "id": 20379,
1706
+ "id": 20135,
1707
1707
  "isConstant": false,
1708
1708
  "isLValue": false,
1709
1709
  "isPure": false,
@@ -1711,14 +1711,14 @@
1711
1711
  "nodeType": "UnaryOperation",
1712
1712
  "operator": "++",
1713
1713
  "prefix": true,
1714
- "src": "1784:3:66",
1714
+ "src": "1784:3:65",
1715
1715
  "subExpression": {
1716
- "id": 20378,
1716
+ "id": 20134,
1717
1717
  "name": "j",
1718
1718
  "nodeType": "Identifier",
1719
1719
  "overloadedDeclarations": [],
1720
- "referencedDeclaration": 20372,
1721
- "src": "1786:1:66",
1720
+ "referencedDeclaration": 20128,
1721
+ "src": "1786:1:65",
1722
1722
  "typeDescriptions": {
1723
1723
  "typeIdentifier": "t_uint256",
1724
1724
  "typeString": "uint256"
@@ -1729,41 +1729,41 @@
1729
1729
  "typeString": "uint256"
1730
1730
  }
1731
1731
  },
1732
- "id": 20380,
1732
+ "id": 20136,
1733
1733
  "nodeType": "ExpressionStatement",
1734
- "src": "1784:3:66"
1734
+ "src": "1784:3:65"
1735
1735
  },
1736
1736
  "nodeType": "ForStatement",
1737
- "src": "1751:98:66"
1737
+ "src": "1751:98:65"
1738
1738
  }
1739
1739
  ]
1740
1740
  },
1741
1741
  "documentation": {
1742
- "id": 20364,
1742
+ "id": 20120,
1743
1743
  "nodeType": "StructuredDocumentation",
1744
- "src": "1598:79:66",
1744
+ "src": "1598:79:65",
1745
1745
  "text": " @dev Erase data of size `dataLength` from the slot at `slot`"
1746
1746
  },
1747
- "id": 20385,
1747
+ "id": 20141,
1748
1748
  "implemented": true,
1749
1749
  "kind": "function",
1750
1750
  "modifiers": [],
1751
1751
  "name": "eraseData",
1752
- "nameLocation": "1691:9:66",
1752
+ "nameLocation": "1691:9:65",
1753
1753
  "nodeType": "FunctionDefinition",
1754
1754
  "parameters": {
1755
- "id": 20369,
1755
+ "id": 20125,
1756
1756
  "nodeType": "ParameterList",
1757
1757
  "parameters": [
1758
1758
  {
1759
1759
  "constant": false,
1760
- "id": 20366,
1760
+ "id": 20122,
1761
1761
  "mutability": "mutable",
1762
1762
  "name": "slot",
1763
- "nameLocation": "1709:4:66",
1763
+ "nameLocation": "1709:4:65",
1764
1764
  "nodeType": "VariableDeclaration",
1765
- "scope": 20385,
1766
- "src": "1701:12:66",
1765
+ "scope": 20141,
1766
+ "src": "1701:12:65",
1767
1767
  "stateVariable": false,
1768
1768
  "storageLocation": "default",
1769
1769
  "typeDescriptions": {
@@ -1771,10 +1771,10 @@
1771
1771
  "typeString": "bytes32"
1772
1772
  },
1773
1773
  "typeName": {
1774
- "id": 20365,
1774
+ "id": 20121,
1775
1775
  "name": "bytes32",
1776
1776
  "nodeType": "ElementaryTypeName",
1777
- "src": "1701:7:66",
1777
+ "src": "1701:7:65",
1778
1778
  "typeDescriptions": {
1779
1779
  "typeIdentifier": "t_bytes32",
1780
1780
  "typeString": "bytes32"
@@ -1784,13 +1784,13 @@
1784
1784
  },
1785
1785
  {
1786
1786
  "constant": false,
1787
- "id": 20368,
1787
+ "id": 20124,
1788
1788
  "mutability": "mutable",
1789
1789
  "name": "dataLength",
1790
- "nameLocation": "1720:10:66",
1790
+ "nameLocation": "1720:10:65",
1791
1791
  "nodeType": "VariableDeclaration",
1792
- "scope": 20385,
1793
- "src": "1715:15:66",
1792
+ "scope": 20141,
1793
+ "src": "1715:15:65",
1794
1794
  "stateVariable": false,
1795
1795
  "storageLocation": "default",
1796
1796
  "typeDescriptions": {
@@ -1798,10 +1798,10 @@
1798
1798
  "typeString": "uint256"
1799
1799
  },
1800
1800
  "typeName": {
1801
- "id": 20367,
1801
+ "id": 20123,
1802
1802
  "name": "uint",
1803
1803
  "nodeType": "ElementaryTypeName",
1804
- "src": "1715:4:66",
1804
+ "src": "1715:4:65",
1805
1805
  "typeDescriptions": {
1806
1806
  "typeIdentifier": "t_uint256",
1807
1807
  "typeString": "uint256"
@@ -1810,27 +1810,27 @@
1810
1810
  "visibility": "internal"
1811
1811
  }
1812
1812
  ],
1813
- "src": "1700:31:66"
1813
+ "src": "1700:31:65"
1814
1814
  },
1815
1815
  "returnParameters": {
1816
- "id": 20370,
1816
+ "id": 20126,
1817
1817
  "nodeType": "ParameterList",
1818
1818
  "parameters": [],
1819
- "src": "1741:0:66"
1819
+ "src": "1741:0:65"
1820
1820
  },
1821
- "scope": 20386,
1822
- "src": "1682:173:66",
1821
+ "scope": 20142,
1822
+ "src": "1682:173:65",
1823
1823
  "stateMutability": "nonpayable",
1824
1824
  "virtual": false,
1825
1825
  "visibility": "internal"
1826
1826
  }
1827
1827
  ],
1828
- "scope": 20387,
1829
- "src": "612:1246:66",
1828
+ "scope": 20143,
1829
+ "src": "612:1246:65",
1830
1830
  "usedErrors": []
1831
1831
  }
1832
1832
  ],
1833
- "src": "35:1824:66"
1833
+ "src": "35:1824:65"
1834
1834
  },
1835
1835
  "compiler": {
1836
1836
  "name": "solc",
@@ -1838,7 +1838,7 @@
1838
1838
  },
1839
1839
  "networks": {},
1840
1840
  "schemaVersion": "3.4.7",
1841
- "updatedAt": "2022-04-29T13:00:13.214Z",
1841
+ "updatedAt": "2022-05-05T19:02:22.068Z",
1842
1842
  "devdoc": {
1843
1843
  "author": "Superfluid When using solidity dynamic array, first word is used to store the length of the array. For use cases that the length doesn't change, it is better to use a fixed size data premitive. To use this library: - The pointer to the storage is `slot`, the user could use `keccak256(abi.encode(...))` scheme to create collision-free slot ID for locating the data. - To load data, or erase data and get all gas refund, data length is always required.",
1844
1844
  "kind": "dev",