@latticexyz/world-modules 2.0.0-main-071aadb9 → 2.0.0-main-88b1a5a1

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 (112) hide show
  1. package/out/ArrayLib.sol/ArrayLib.json +255 -255
  2. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +215 -215
  3. package/out/CallboundDelegations.sol/CallboundDelegations.json +2599 -2599
  4. package/out/DecodeSlice.sol/DecodeSlice.json +3250 -3250
  5. package/out/DelegationControl.sol/DelegationControl.json +94 -94
  6. package/out/EncodeArray.sol/EncodeArray.json +3345 -3345
  7. package/out/FieldLayout.sol/FieldLayoutInstance.json +47 -47
  8. package/out/FieldLayout.sol/FieldLayoutLib.json +47 -47
  9. package/out/Hook.sol/HookInstance.json +13 -13
  10. package/out/Hook.sol/HookLib.json +13 -13
  11. package/out/Hooks.sol/Hooks.json +3393 -3393
  12. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +58 -58
  13. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +54 -54
  14. package/out/IBaseWorld.sol/IBaseWorld.json +64 -64
  15. package/out/IBatchCallSystem.sol/IBatchCallSystem.json +52 -52
  16. package/out/ICoreSystem.sol/ICoreSystem.json +7 -7
  17. package/out/IDelegationControl.sol/IDelegationControl.json +62 -62
  18. package/out/IModule.sol/IModule.json +78 -78
  19. package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +28 -28
  20. package/out/ISystemHook.sol/ISystemHook.json +86 -86
  21. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +13 -13
  22. package/out/IWorldContextConsumer.sol/IWorldContextConsumer.json +71 -71
  23. package/out/IWorldErrors.sol/IWorldErrors.json +152 -152
  24. package/out/IWorldKernel.sol/IWorldCall.json +154 -154
  25. package/out/IWorldKernel.sol/IWorldKernel.json +154 -154
  26. package/out/IWorldKernel.sol/IWorldModuleInstallation.json +154 -154
  27. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +190 -190
  28. package/out/KeysInTable.sol/KeysInTable.json +10672 -10672
  29. package/out/KeysInTableHook.sol/KeysInTableHook.json +867 -867
  30. package/out/KeysInTableModule.sol/KeysInTableModule.json +538 -538
  31. package/out/KeysWithValue.sol/KeysWithValue.json +3832 -3832
  32. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +993 -993
  33. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +426 -426
  34. package/out/Memory.sol/Memory.json +4 -4
  35. package/out/Module.sol/Module.json +84 -84
  36. package/out/ResourceIds.sol/ResourceIds.json +1363 -1363
  37. package/out/Schema.sol/SchemaInstance.json +72 -72
  38. package/out/Schema.sol/SchemaLib.json +72 -72
  39. package/out/SchemaType.sol/SchemaType.json +276 -276
  40. package/out/Slice.sol/SliceInstance.json +4 -4
  41. package/out/Slice.sol/SliceLib.json +4 -4
  42. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +303 -303
  43. package/out/Storage.sol/Storage.json +7 -7
  44. package/out/StoreCore.sol/StoreCore.json +708 -737
  45. package/out/StoreCore.sol/StoreCoreInternal.json +710 -739
  46. package/out/StoreHook.sol/StoreHook.json +368 -368
  47. package/out/StoreHooks.sol/StoreHooks.json +3232 -3232
  48. package/out/StoreSwitch.sol/StoreSwitch.json +1885 -1885
  49. package/out/System.sol/System.json +31 -31
  50. package/out/Tables.sol/Tables.json +5585 -5585
  51. package/out/TightCoder.sol/TightCoder.json +124 -124
  52. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +119 -119
  53. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +1990 -1990
  54. package/out/UniqueEntity.sol/UniqueEntity.json +1406 -1406
  55. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +327 -327
  56. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +93 -93
  57. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +2727 -2727
  58. package/out/WorldContext.sol/WorldContextConsumer.json +1380 -988
  59. package/out/WorldContext.sol/{WorldContextProvider.json → WorldContextConsumerLib.json} +1381 -989
  60. package/out/WorldContext.sol/WorldContextProviderLib.json +3910 -0
  61. package/out/WorldResourceId.sol/WorldResourceIdInstance.json +476 -476
  62. package/out/WorldResourceId.sol/WorldResourceIdLib.json +476 -476
  63. package/out/constants.sol/LayoutOffsets.json +79 -79
  64. package/out/constants.sol/constants.json +115 -115
  65. package/out/getKeysInTable.sol/getKeysInTable.json +564 -564
  66. package/out/getKeysWithValue.sol/getKeysWithValue.json +264 -264
  67. package/out/getTargetTableId.sol/getTargetTableId.json +163 -163
  68. package/out/getUniqueEntity.sol/getUniqueEntity.json +88 -88
  69. package/out/hasKey.sol/hasKey.json +130 -130
  70. package/out/index.sol/index.json +53 -53
  71. package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +131 -131
  72. package/out/leftMask.sol/leftMask.json +31 -31
  73. package/out/query.sol/query.json +1154 -1154
  74. package/out/revertWithBytes.sol/revertWithBytes.json +15 -15
  75. package/out/src/Bytes.sol/Bytes.json +1338 -1338
  76. package/out/src/FieldLayout.sol/FieldLayoutInstance.json +698 -698
  77. package/out/src/FieldLayout.sol/FieldLayoutLib.json +698 -698
  78. package/out/src/IStore.sol/IStore.json +53 -53
  79. package/out/src/IWorldKernel.sol/IWorldCall.json +153 -153
  80. package/out/src/IWorldKernel.sol/IWorldKernel.json +153 -153
  81. package/out/src/IWorldKernel.sol/IWorldModuleInstallation.json +153 -153
  82. package/out/src/Memory.sol/Memory.json +91 -91
  83. package/out/src/PackedCounter.sol/PackedCounterInstance.json +929 -929
  84. package/out/src/PackedCounter.sol/PackedCounterLib.json +929 -929
  85. package/out/src/ResourceId.sol/ResourceIdInstance.json +116 -116
  86. package/out/src/ResourceId.sol/ResourceIdLib.json +116 -116
  87. package/out/src/Schema.sol/SchemaInstance.json +790 -790
  88. package/out/src/Schema.sol/SchemaLib.json +790 -790
  89. package/out/src/Slice.sol/SliceInstance.json +430 -430
  90. package/out/src/Slice.sol/SliceLib.json +430 -430
  91. package/out/src/StoreCore.sol/StoreCore.json +4695 -4724
  92. package/out/src/StoreCore.sol/StoreCoreInternal.json +4697 -4726
  93. package/out/src/StoreSwitch.sol/StoreSwitch.json +2487 -2487
  94. package/out/src/WorldContext.sol/WorldContextConsumer.json +1291 -899
  95. package/out/src/WorldContext.sol/WorldContextConsumerLib.abi.json +1 -0
  96. package/out/src/WorldContext.sol/{WorldContextProvider.json → WorldContextConsumerLib.json} +1292 -900
  97. package/out/src/WorldContext.sol/WorldContextProviderLib.abi.json +1 -0
  98. package/out/src/WorldContext.sol/WorldContextProviderLib.json +3910 -0
  99. package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +476 -476
  100. package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +476 -476
  101. package/out/storeHookTypes.sol/storeHookTypes.json +115 -115
  102. package/out/storeResourceTypes.sol/storeResourceTypes.json +12 -12
  103. package/out/tables/ResourceIds.sol/ResourceIds.json +1751 -1751
  104. package/out/tables/Tables.sol/Tables.json +7292 -7292
  105. package/out/tightcoder/EncodeArray.sol/EncodeArray.json +3345 -3345
  106. package/out/types.sol/types.json +41 -41
  107. package/out/version.sol/version.json +7 -7
  108. package/out/world/src/IERC165.sol/IERC165.json +28 -28
  109. package/out/worldResourceTypes.sol/worldResourceTypes.json +53 -53
  110. package/package.json +8 -8
  111. /package/out/WorldContext.sol/{WorldContextProvider.abi.json → WorldContextConsumerLib.abi.json} +0 -0
  112. /package/out/{src/WorldContext.sol/WorldContextProvider.abi.json → WorldContext.sol/WorldContextProviderLib.abi.json} +0 -0
@@ -94,7 +94,7 @@
94
94
  },
95
95
  "ast": {
96
96
  "absolutePath": "/home/runner/work/mud/mud/packages/store/src/tightcoder/TightCoder.sol",
97
- "id": 23190,
97
+ "id": 23188,
98
98
  "exportedSymbols": {
99
99
  "Slice": [
100
100
  3454
@@ -103,14 +103,14 @@
103
103
  3599
104
104
  ],
105
105
  "TightCoder": [
106
- 23189
106
+ 23187
107
107
  ]
108
108
  },
109
109
  "nodeType": "SourceUnit",
110
110
  "src": "32:3729:31",
111
111
  "nodes": [
112
112
  {
113
- "id": 23119,
113
+ "id": 23117,
114
114
  "nodeType": "PragmaDirective",
115
115
  "src": "32:25:31",
116
116
  "nodes": [],
@@ -122,19 +122,19 @@
122
122
  ]
123
123
  },
124
124
  {
125
- "id": 23122,
125
+ "id": 23120,
126
126
  "nodeType": "ImportDirective",
127
127
  "src": "59:47:31",
128
128
  "nodes": [],
129
129
  "absolutePath": "/home/runner/work/mud/mud/packages/store/src/Slice.sol",
130
130
  "file": "../Slice.sol",
131
131
  "nameLocation": "-1:-1:-1",
132
- "scope": 23190,
132
+ "scope": 23188,
133
133
  "sourceUnit": 3697,
134
134
  "symbolAliases": [
135
135
  {
136
136
  "foreign": {
137
- "id": 23120,
137
+ "id": 23118,
138
138
  "name": "Slice",
139
139
  "nodeType": "Identifier",
140
140
  "overloadedDeclarations": [],
@@ -146,7 +146,7 @@
146
146
  },
147
147
  {
148
148
  "foreign": {
149
- "id": 23121,
149
+ "id": 23119,
150
150
  "name": "SliceLib",
151
151
  "nodeType": "Identifier",
152
152
  "overloadedDeclarations": [],
@@ -160,34 +160,34 @@
160
160
  "unitAlias": ""
161
161
  },
162
162
  {
163
- "id": 23189,
163
+ "id": 23187,
164
164
  "nodeType": "ContractDefinition",
165
165
  "src": "320:3440:31",
166
166
  "nodes": [
167
167
  {
168
- "id": 23150,
168
+ "id": 23148,
169
169
  "nodeType": "FunctionDefinition",
170
170
  "src": "784:1339:31",
171
171
  "nodes": [],
172
172
  "body": {
173
- "id": 23149,
173
+ "id": 23147,
174
174
  "nodeType": "Block",
175
175
  "src": "928:1195:31",
176
176
  "nodes": [],
177
177
  "statements": [
178
178
  {
179
179
  "assignments": [
180
- 23137
180
+ 23135
181
181
  ],
182
182
  "declarations": [
183
183
  {
184
184
  "constant": false,
185
- "id": 23137,
185
+ "id": 23135,
186
186
  "mutability": "mutable",
187
187
  "name": "arrayLength",
188
188
  "nameLocation": "942:11:31",
189
189
  "nodeType": "VariableDeclaration",
190
- "scope": 23149,
190
+ "scope": 23147,
191
191
  "src": "934:19:31",
192
192
  "stateVariable": false,
193
193
  "storageLocation": "default",
@@ -196,7 +196,7 @@
196
196
  "typeString": "uint256"
197
197
  },
198
198
  "typeName": {
199
- "id": 23136,
199
+ "id": 23134,
200
200
  "name": "uint256",
201
201
  "nodeType": "ElementaryTypeName",
202
202
  "src": "934:7:31",
@@ -208,21 +208,21 @@
208
208
  "visibility": "internal"
209
209
  }
210
210
  ],
211
- "id": 23140,
211
+ "id": 23138,
212
212
  "initialValue": {
213
213
  "expression": {
214
- "id": 23138,
214
+ "id": 23136,
215
215
  "name": "array",
216
216
  "nodeType": "Identifier",
217
217
  "overloadedDeclarations": [],
218
- "referencedDeclaration": 23127,
218
+ "referencedDeclaration": 23125,
219
219
  "src": "956:5:31",
220
220
  "typeDescriptions": {
221
221
  "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
222
222
  "typeString": "bytes32[] memory"
223
223
  }
224
224
  },
225
- "id": 23139,
225
+ "id": 23137,
226
226
  "isConstant": false,
227
227
  "isLValue": false,
228
228
  "isPure": false,
@@ -241,17 +241,17 @@
241
241
  },
242
242
  {
243
243
  "assignments": [
244
- 23142
244
+ 23140
245
245
  ],
246
246
  "declarations": [
247
247
  {
248
248
  "constant": false,
249
- "id": 23142,
249
+ "id": 23140,
250
250
  "mutability": "mutable",
251
251
  "name": "packedLength",
252
252
  "nameLocation": "982:12:31",
253
253
  "nodeType": "VariableDeclaration",
254
- "scope": 23149,
254
+ "scope": 23147,
255
255
  "src": "974:20:31",
256
256
  "stateVariable": false,
257
257
  "storageLocation": "default",
@@ -260,7 +260,7 @@
260
260
  "typeString": "uint256"
261
261
  },
262
262
  "typeName": {
263
- "id": 23141,
263
+ "id": 23139,
264
264
  "name": "uint256",
265
265
  "nodeType": "ElementaryTypeName",
266
266
  "src": "974:7:31",
@@ -272,31 +272,31 @@
272
272
  "visibility": "internal"
273
273
  }
274
274
  ],
275
- "id": 23147,
275
+ "id": 23145,
276
276
  "initialValue": {
277
277
  "commonType": {
278
278
  "typeIdentifier": "t_uint256",
279
279
  "typeString": "uint256"
280
280
  },
281
- "id": 23146,
281
+ "id": 23144,
282
282
  "isConstant": false,
283
283
  "isLValue": false,
284
284
  "isPure": false,
285
285
  "lValueRequested": false,
286
286
  "leftExpression": {
287
287
  "expression": {
288
- "id": 23143,
288
+ "id": 23141,
289
289
  "name": "array",
290
290
  "nodeType": "Identifier",
291
291
  "overloadedDeclarations": [],
292
- "referencedDeclaration": 23127,
292
+ "referencedDeclaration": 23125,
293
293
  "src": "997:5:31",
294
294
  "typeDescriptions": {
295
295
  "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
296
296
  "typeString": "bytes32[] memory"
297
297
  }
298
298
  },
299
- "id": 23144,
299
+ "id": 23142,
300
300
  "isConstant": false,
301
301
  "isLValue": false,
302
302
  "isPure": false,
@@ -313,11 +313,11 @@
313
313
  "nodeType": "BinaryOperation",
314
314
  "operator": "*",
315
315
  "rightExpression": {
316
- "id": 23145,
316
+ "id": 23143,
317
317
  "name": "elementSize",
318
318
  "nodeType": "Identifier",
319
319
  "overloadedDeclarations": [],
320
- "referencedDeclaration": 23129,
320
+ "referencedDeclaration": 23127,
321
321
  "src": "1012:11:31",
322
322
  "typeDescriptions": {
323
323
  "typeIdentifier": "t_uint256",
@@ -913,77 +913,77 @@
913
913
  "evmVersion": "paris",
914
914
  "externalReferences": [
915
915
  {
916
- "declaration": 23127,
916
+ "declaration": 23125,
917
917
  "isOffset": false,
918
918
  "isSlot": false,
919
919
  "src": "1664:5:31",
920
920
  "valueSize": 1
921
921
  },
922
922
  {
923
- "declaration": 23137,
923
+ "declaration": 23135,
924
924
  "isOffset": false,
925
925
  "isSlot": false,
926
926
  "src": "1691:11:31",
927
927
  "valueSize": 1
928
928
  },
929
929
  {
930
- "declaration": 23134,
930
+ "declaration": 23132,
931
931
  "isOffset": false,
932
932
  "isSlot": false,
933
933
  "src": "1377:4:31",
934
934
  "valueSize": 1
935
935
  },
936
936
  {
937
- "declaration": 23134,
937
+ "declaration": 23132,
938
938
  "isOffset": false,
939
939
  "isSlot": false,
940
940
  "src": "1428:4:31",
941
941
  "valueSize": 1
942
942
  },
943
943
  {
944
- "declaration": 23134,
944
+ "declaration": 23132,
945
945
  "isOffset": false,
946
946
  "isSlot": false,
947
947
  "src": "1551:4:31",
948
948
  "valueSize": 1
949
949
  },
950
950
  {
951
- "declaration": 23129,
951
+ "declaration": 23127,
952
952
  "isOffset": false,
953
953
  "isSlot": false,
954
954
  "src": "1976:11:31",
955
955
  "valueSize": 1
956
956
  },
957
957
  {
958
- "declaration": 23131,
958
+ "declaration": 23129,
959
959
  "isOffset": false,
960
960
  "isSlot": false,
961
961
  "src": "2067:15:31",
962
962
  "valueSize": 1
963
963
  },
964
964
  {
965
- "declaration": 23142,
965
+ "declaration": 23140,
966
966
  "isOffset": false,
967
967
  "isSlot": false,
968
968
  "src": "1500:12:31",
969
969
  "valueSize": 1
970
970
  },
971
971
  {
972
- "declaration": 23142,
972
+ "declaration": 23140,
973
973
  "isOffset": false,
974
974
  "isSlot": false,
975
975
  "src": "1557:12:31",
976
976
  "valueSize": 1
977
977
  }
978
978
  ],
979
- "id": 23148,
979
+ "id": 23146,
980
980
  "nodeType": "InlineAssembly",
981
981
  "src": "1167:952:31"
982
982
  }
983
983
  ]
984
984
  },
985
985
  "documentation": {
986
- "id": 23124,
986
+ "id": 23122,
987
987
  "nodeType": "StructuredDocumentation",
988
988
  "src": "343:438:31",
989
989
  "text": " @dev Copies the array to a new bytes array, tightly packing its elements.\n @param array The array to encode.\n @param elementSize The size of each element in bytes.\n @param leftPaddingBits The number of bits to pad on the left for each element.\n @return data A tightly packed byte array.\n @notice elementSize and leftPaddingBits must be correctly provided by the caller based on the array's element type."
@@ -994,17 +994,17 @@
994
994
  "name": "encode",
995
995
  "nameLocation": "793:6:31",
996
996
  "parameters": {
997
- "id": 23132,
997
+ "id": 23130,
998
998
  "nodeType": "ParameterList",
999
999
  "parameters": [
1000
1000
  {
1001
1001
  "constant": false,
1002
- "id": 23127,
1002
+ "id": 23125,
1003
1003
  "mutability": "mutable",
1004
1004
  "name": "array",
1005
1005
  "nameLocation": "822:5:31",
1006
1006
  "nodeType": "VariableDeclaration",
1007
- "scope": 23150,
1007
+ "scope": 23148,
1008
1008
  "src": "805:22:31",
1009
1009
  "stateVariable": false,
1010
1010
  "storageLocation": "memory",
@@ -1014,7 +1014,7 @@
1014
1014
  },
1015
1015
  "typeName": {
1016
1016
  "baseType": {
1017
- "id": 23125,
1017
+ "id": 23123,
1018
1018
  "name": "bytes32",
1019
1019
  "nodeType": "ElementaryTypeName",
1020
1020
  "src": "805:7:31",
@@ -1023,7 +1023,7 @@
1023
1023
  "typeString": "bytes32"
1024
1024
  }
1025
1025
  },
1026
- "id": 23126,
1026
+ "id": 23124,
1027
1027
  "nodeType": "ArrayTypeName",
1028
1028
  "src": "805:9:31",
1029
1029
  "typeDescriptions": {
@@ -1035,12 +1035,12 @@
1035
1035
  },
1036
1036
  {
1037
1037
  "constant": false,
1038
- "id": 23129,
1038
+ "id": 23127,
1039
1039
  "mutability": "mutable",
1040
1040
  "name": "elementSize",
1041
1041
  "nameLocation": "841:11:31",
1042
1042
  "nodeType": "VariableDeclaration",
1043
- "scope": 23150,
1043
+ "scope": 23148,
1044
1044
  "src": "833:19:31",
1045
1045
  "stateVariable": false,
1046
1046
  "storageLocation": "default",
@@ -1049,7 +1049,7 @@
1049
1049
  "typeString": "uint256"
1050
1050
  },
1051
1051
  "typeName": {
1052
- "id": 23128,
1052
+ "id": 23126,
1053
1053
  "name": "uint256",
1054
1054
  "nodeType": "ElementaryTypeName",
1055
1055
  "src": "833:7:31",
@@ -1062,12 +1062,12 @@
1062
1062
  },
1063
1063
  {
1064
1064
  "constant": false,
1065
- "id": 23131,
1065
+ "id": 23129,
1066
1066
  "mutability": "mutable",
1067
1067
  "name": "leftPaddingBits",
1068
1068
  "nameLocation": "866:15:31",
1069
1069
  "nodeType": "VariableDeclaration",
1070
- "scope": 23150,
1070
+ "scope": 23148,
1071
1071
  "src": "858:23:31",
1072
1072
  "stateVariable": false,
1073
1073
  "storageLocation": "default",
@@ -1076,7 +1076,7 @@
1076
1076
  "typeString": "uint256"
1077
1077
  },
1078
1078
  "typeName": {
1079
- "id": 23130,
1079
+ "id": 23128,
1080
1080
  "name": "uint256",
1081
1081
  "nodeType": "ElementaryTypeName",
1082
1082
  "src": "858:7:31",
@@ -1091,17 +1091,17 @@
1091
1091
  "src": "799:86:31"
1092
1092
  },
1093
1093
  "returnParameters": {
1094
- "id": 23135,
1094
+ "id": 23133,
1095
1095
  "nodeType": "ParameterList",
1096
1096
  "parameters": [
1097
1097
  {
1098
1098
  "constant": false,
1099
- "id": 23134,
1099
+ "id": 23132,
1100
1100
  "mutability": "mutable",
1101
1101
  "name": "data",
1102
1102
  "nameLocation": "922:4:31",
1103
1103
  "nodeType": "VariableDeclaration",
1104
- "scope": 23150,
1104
+ "scope": 23148,
1105
1105
  "src": "909:17:31",
1106
1106
  "stateVariable": false,
1107
1107
  "storageLocation": "memory",
@@ -1110,7 +1110,7 @@
1110
1110
  "typeString": "bytes"
1111
1111
  },
1112
1112
  "typeName": {
1113
- "id": 23133,
1113
+ "id": 23131,
1114
1114
  "name": "bytes",
1115
1115
  "nodeType": "ElementaryTypeName",
1116
1116
  "src": "909:5:31",
@@ -1124,35 +1124,35 @@
1124
1124
  ],
1125
1125
  "src": "908:19:31"
1126
1126
  },
1127
- "scope": 23189,
1127
+ "scope": 23187,
1128
1128
  "stateMutability": "pure",
1129
1129
  "virtual": false,
1130
1130
  "visibility": "internal"
1131
1131
  },
1132
1132
  {
1133
- "id": 23188,
1133
+ "id": 23186,
1134
1134
  "nodeType": "FunctionDefinition",
1135
1135
  "src": "2631:1127:31",
1136
1136
  "nodes": [],
1137
1137
  "body": {
1138
- "id": 23187,
1138
+ "id": 23185,
1139
1139
  "nodeType": "Block",
1140
1140
  "src": "2775:983:31",
1141
1141
  "nodes": [],
1142
1142
  "statements": [
1143
1143
  {
1144
1144
  "assignments": [
1145
- 23165
1145
+ 23163
1146
1146
  ],
1147
1147
  "declarations": [
1148
1148
  {
1149
1149
  "constant": false,
1150
- "id": 23165,
1150
+ "id": 23163,
1151
1151
  "mutability": "mutable",
1152
1152
  "name": "packedPointer",
1153
1153
  "nameLocation": "2789:13:31",
1154
1154
  "nodeType": "VariableDeclaration",
1155
- "scope": 23187,
1155
+ "scope": 23185,
1156
1156
  "src": "2781:21:31",
1157
1157
  "stateVariable": false,
1158
1158
  "storageLocation": "default",
@@ -1161,7 +1161,7 @@
1161
1161
  "typeString": "uint256"
1162
1162
  },
1163
1163
  "typeName": {
1164
- "id": 23164,
1164
+ "id": 23162,
1165
1165
  "name": "uint256",
1166
1166
  "nodeType": "ElementaryTypeName",
1167
1167
  "src": "2781:7:31",
@@ -1173,24 +1173,24 @@
1173
1173
  "visibility": "internal"
1174
1174
  }
1175
1175
  ],
1176
- "id": 23169,
1176
+ "id": 23167,
1177
1177
  "initialValue": {
1178
1178
  "arguments": [],
1179
1179
  "expression": {
1180
1180
  "argumentTypes": [],
1181
1181
  "expression": {
1182
- "id": 23166,
1182
+ "id": 23164,
1183
1183
  "name": "packedSlice",
1184
1184
  "nodeType": "Identifier",
1185
1185
  "overloadedDeclarations": [],
1186
- "referencedDeclaration": 23154,
1186
+ "referencedDeclaration": 23152,
1187
1187
  "src": "2805:11:31",
1188
1188
  "typeDescriptions": {
1189
1189
  "typeIdentifier": "t_userDefinedValueType$_Slice_$3454",
1190
1190
  "typeString": "Slice"
1191
1191
  }
1192
1192
  },
1193
- "id": 23167,
1193
+ "id": 23165,
1194
1194
  "isConstant": false,
1195
1195
  "isLValue": false,
1196
1196
  "isPure": false,
@@ -1205,7 +1205,7 @@
1205
1205
  "typeString": "function (Slice) pure returns (uint256)"
1206
1206
  }
1207
1207
  },
1208
- "id": 23168,
1208
+ "id": 23166,
1209
1209
  "isConstant": false,
1210
1210
  "isLValue": false,
1211
1211
  "isPure": false,
@@ -1226,17 +1226,17 @@
1226
1226
  },
1227
1227
  {
1228
1228
  "assignments": [
1229
- 23171
1229
+ 23169
1230
1230
  ],
1231
1231
  "declarations": [
1232
1232
  {
1233
1233
  "constant": false,
1234
- "id": 23171,
1234
+ "id": 23169,
1235
1235
  "mutability": "mutable",
1236
1236
  "name": "packedLength",
1237
1237
  "nameLocation": "2840:12:31",
1238
1238
  "nodeType": "VariableDeclaration",
1239
- "scope": 23187,
1239
+ "scope": 23185,
1240
1240
  "src": "2832:20:31",
1241
1241
  "stateVariable": false,
1242
1242
  "storageLocation": "default",
@@ -1245,7 +1245,7 @@
1245
1245
  "typeString": "uint256"
1246
1246
  },
1247
1247
  "typeName": {
1248
- "id": 23170,
1248
+ "id": 23168,
1249
1249
  "name": "uint256",
1250
1250
  "nodeType": "ElementaryTypeName",
1251
1251
  "src": "2832:7:31",
@@ -1257,24 +1257,24 @@
1257
1257
  "visibility": "internal"
1258
1258
  }
1259
1259
  ],
1260
- "id": 23175,
1260
+ "id": 23173,
1261
1261
  "initialValue": {
1262
1262
  "arguments": [],
1263
1263
  "expression": {
1264
1264
  "argumentTypes": [],
1265
1265
  "expression": {
1266
- "id": 23172,
1266
+ "id": 23170,
1267
1267
  "name": "packedSlice",
1268
1268
  "nodeType": "Identifier",
1269
1269
  "overloadedDeclarations": [],
1270
- "referencedDeclaration": 23154,
1270
+ "referencedDeclaration": 23152,
1271
1271
  "src": "2855:11:31",
1272
1272
  "typeDescriptions": {
1273
1273
  "typeIdentifier": "t_userDefinedValueType$_Slice_$3454",
1274
1274
  "typeString": "Slice"
1275
1275
  }
1276
1276
  },
1277
- "id": 23173,
1277
+ "id": 23171,
1278
1278
  "isConstant": false,
1279
1279
  "isLValue": false,
1280
1280
  "isPure": false,
@@ -1289,7 +1289,7 @@
1289
1289
  "typeString": "function (Slice) pure returns (uint256)"
1290
1290
  }
1291
1291
  },
1292
- "id": 23174,
1292
+ "id": 23172,
1293
1293
  "isConstant": false,
1294
1294
  "isLValue": false,
1295
1295
  "isPure": false,
@@ -1310,17 +1310,17 @@
1310
1310
  },
1311
1311
  {
1312
1312
  "assignments": [
1313
- 23177
1313
+ 23175
1314
1314
  ],
1315
1315
  "declarations": [
1316
1316
  {
1317
1317
  "constant": false,
1318
- "id": 23177,
1318
+ "id": 23175,
1319
1319
  "mutability": "mutable",
1320
1320
  "name": "arrayLength",
1321
1321
  "nameLocation": "2930:11:31",
1322
1322
  "nodeType": "VariableDeclaration",
1323
- "scope": 23187,
1323
+ "scope": 23185,
1324
1324
  "src": "2922:19:31",
1325
1325
  "stateVariable": false,
1326
1326
  "storageLocation": "default",
@@ -1329,7 +1329,7 @@
1329
1329
  "typeString": "uint256"
1330
1330
  },
1331
1331
  "typeName": {
1332
- "id": 23176,
1332
+ "id": 23174,
1333
1333
  "name": "uint256",
1334
1334
  "nodeType": "ElementaryTypeName",
1335
1335
  "src": "2922:7:31",
@@ -1341,28 +1341,28 @@
1341
1341
  "visibility": "internal"
1342
1342
  }
1343
1343
  ],
1344
- "id": 23178,
1344
+ "id": 23176,
1345
1345
  "nodeType": "VariableDeclarationStatement",
1346
1346
  "src": "2922:19:31"
1347
1347
  },
1348
1348
  {
1349
- "id": 23185,
1349
+ "id": 23183,
1350
1350
  "nodeType": "UncheckedBlock",
1351
1351
  "src": "2947:65:31",
1352
1352
  "statements": [
1353
1353
  {
1354
1354
  "expression": {
1355
- "id": 23183,
1355
+ "id": 23181,
1356
1356
  "isConstant": false,
1357
1357
  "isLValue": false,
1358
1358
  "isPure": false,
1359
1359
  "lValueRequested": false,
1360
1360
  "leftHandSide": {
1361
- "id": 23179,
1361
+ "id": 23177,
1362
1362
  "name": "arrayLength",
1363
1363
  "nodeType": "Identifier",
1364
1364
  "overloadedDeclarations": [],
1365
- "referencedDeclaration": 23177,
1365
+ "referencedDeclaration": 23175,
1366
1366
  "src": "2965:11:31",
1367
1367
  "typeDescriptions": {
1368
1368
  "typeIdentifier": "t_uint256",
@@ -1376,17 +1376,17 @@
1376
1376
  "typeIdentifier": "t_uint256",
1377
1377
  "typeString": "uint256"
1378
1378
  },
1379
- "id": 23182,
1379
+ "id": 23180,
1380
1380
  "isConstant": false,
1381
1381
  "isLValue": false,
1382
1382
  "isPure": false,
1383
1383
  "lValueRequested": false,
1384
1384
  "leftExpression": {
1385
- "id": 23180,
1385
+ "id": 23178,
1386
1386
  "name": "packedLength",
1387
1387
  "nodeType": "Identifier",
1388
1388
  "overloadedDeclarations": [],
1389
- "referencedDeclaration": 23171,
1389
+ "referencedDeclaration": 23169,
1390
1390
  "src": "2979:12:31",
1391
1391
  "typeDescriptions": {
1392
1392
  "typeIdentifier": "t_uint256",
@@ -1396,11 +1396,11 @@
1396
1396
  "nodeType": "BinaryOperation",
1397
1397
  "operator": "/",
1398
1398
  "rightExpression": {
1399
- "id": 23181,
1399
+ "id": 23179,
1400
1400
  "name": "elementSize",
1401
1401
  "nodeType": "Identifier",
1402
1402
  "overloadedDeclarations": [],
1403
- "referencedDeclaration": 23156,
1403
+ "referencedDeclaration": 23154,
1404
1404
  "src": "2994:11:31",
1405
1405
  "typeDescriptions": {
1406
1406
  "typeIdentifier": "t_uint256",
@@ -1419,7 +1419,7 @@
1419
1419
  "typeString": "uint256"
1420
1420
  }
1421
1421
  },
1422
- "id": 23184,
1422
+ "id": 23182,
1423
1423
  "nodeType": "ExpressionStatement",
1424
1424
  "src": "2965:40:31"
1425
1425
  }
@@ -1867,91 +1867,91 @@
1867
1867
  "evmVersion": "paris",
1868
1868
  "externalReferences": [
1869
1869
  {
1870
- "declaration": 23162,
1870
+ "declaration": 23160,
1871
1871
  "isOffset": false,
1872
1872
  "isSlot": false,
1873
1873
  "src": "3099:5:31",
1874
1874
  "valueSize": 1
1875
1875
  },
1876
1876
  {
1877
- "declaration": 23162,
1877
+ "declaration": 23160,
1878
1878
  "isOffset": false,
1879
1879
  "isSlot": false,
1880
1880
  "src": "3150:5:31",
1881
1881
  "valueSize": 1
1882
1882
  },
1883
1883
  {
1884
- "declaration": 23162,
1884
+ "declaration": 23160,
1885
1885
  "isOffset": false,
1886
1886
  "isSlot": false,
1887
1887
  "src": "3258:5:31",
1888
1888
  "valueSize": 1
1889
1889
  },
1890
1890
  {
1891
- "declaration": 23177,
1891
+ "declaration": 23175,
1892
1892
  "isOffset": false,
1893
1893
  "isSlot": false,
1894
1894
  "src": "3204:11:31",
1895
1895
  "valueSize": 1
1896
1896
  },
1897
1897
  {
1898
- "declaration": 23177,
1898
+ "declaration": 23175,
1899
1899
  "isOffset": false,
1900
1900
  "isSlot": false,
1901
1901
  "src": "3265:11:31",
1902
1902
  "valueSize": 1
1903
1903
  },
1904
1904
  {
1905
- "declaration": 23177,
1905
+ "declaration": 23175,
1906
1906
  "isOffset": false,
1907
1907
  "isSlot": false,
1908
1908
  "src": "3324:11:31",
1909
1909
  "valueSize": 1
1910
1910
  },
1911
1911
  {
1912
- "declaration": 23156,
1912
+ "declaration": 23154,
1913
1913
  "isOffset": false,
1914
1914
  "isSlot": false,
1915
1915
  "src": "3609:11:31",
1916
1916
  "valueSize": 1
1917
1917
  },
1918
1918
  {
1919
- "declaration": 23158,
1919
+ "declaration": 23156,
1920
1920
  "isOffset": false,
1921
1921
  "isSlot": false,
1922
1922
  "src": "3701:15:31",
1923
1923
  "valueSize": 1
1924
1924
  },
1925
1925
  {
1926
- "declaration": 23165,
1926
+ "declaration": 23163,
1927
1927
  "isOffset": false,
1928
1928
  "isSlot": false,
1929
1929
  "src": "3573:13:31",
1930
1930
  "valueSize": 1
1931
1931
  },
1932
1932
  {
1933
- "declaration": 23165,
1933
+ "declaration": 23163,
1934
1934
  "isOffset": false,
1935
1935
  "isSlot": false,
1936
1936
  "src": "3594:13:31",
1937
1937
  "valueSize": 1
1938
1938
  },
1939
1939
  {
1940
- "declaration": 23165,
1940
+ "declaration": 23163,
1941
1941
  "isOffset": false,
1942
1942
  "isSlot": false,
1943
1943
  "src": "3724:13:31",
1944
1944
  "valueSize": 1
1945
1945
  }
1946
1946
  ],
1947
- "id": 23186,
1947
+ "id": 23184,
1948
1948
  "nodeType": "InlineAssembly",
1949
1949
  "src": "3057:697:31"
1950
1950
  }
1951
1951
  ]
1952
1952
  },
1953
1953
  "documentation": {
1954
- "id": 23151,
1954
+ "id": 23149,
1955
1955
  "nodeType": "StructuredDocumentation",
1956
1956
  "src": "2127:501:31",
1957
1957
  "text": " @notice Decodes a tightly packed byte slice into a bytes32 array.\n @param packedSlice The tightly packed data to be decoded.\n @param elementSize The size of each element in bytes.\n @param leftPaddingBits The number of padding bits on the left side of each element.\n @dev elementSize and leftPaddingBits must be correctly provided based on the desired output array's element type.\n @return array The resulting array of bytes32 elements from decoding the packed slice."
@@ -1962,17 +1962,17 @@
1962
1962
  "name": "decode",
1963
1963
  "nameLocation": "2640:6:31",
1964
1964
  "parameters": {
1965
- "id": 23159,
1965
+ "id": 23157,
1966
1966
  "nodeType": "ParameterList",
1967
1967
  "parameters": [
1968
1968
  {
1969
1969
  "constant": false,
1970
- "id": 23154,
1970
+ "id": 23152,
1971
1971
  "mutability": "mutable",
1972
1972
  "name": "packedSlice",
1973
1973
  "nameLocation": "2658:11:31",
1974
1974
  "nodeType": "VariableDeclaration",
1975
- "scope": 23188,
1975
+ "scope": 23186,
1976
1976
  "src": "2652:17:31",
1977
1977
  "stateVariable": false,
1978
1978
  "storageLocation": "default",
@@ -1981,10 +1981,10 @@
1981
1981
  "typeString": "Slice"
1982
1982
  },
1983
1983
  "typeName": {
1984
- "id": 23153,
1984
+ "id": 23151,
1985
1985
  "nodeType": "UserDefinedTypeName",
1986
1986
  "pathNode": {
1987
- "id": 23152,
1987
+ "id": 23150,
1988
1988
  "name": "Slice",
1989
1989
  "nameLocations": [
1990
1990
  "2652:5:31"
@@ -2004,12 +2004,12 @@
2004
2004
  },
2005
2005
  {
2006
2006
  "constant": false,
2007
- "id": 23156,
2007
+ "id": 23154,
2008
2008
  "mutability": "mutable",
2009
2009
  "name": "elementSize",
2010
2010
  "nameLocation": "2683:11:31",
2011
2011
  "nodeType": "VariableDeclaration",
2012
- "scope": 23188,
2012
+ "scope": 23186,
2013
2013
  "src": "2675:19:31",
2014
2014
  "stateVariable": false,
2015
2015
  "storageLocation": "default",
@@ -2018,7 +2018,7 @@
2018
2018
  "typeString": "uint256"
2019
2019
  },
2020
2020
  "typeName": {
2021
- "id": 23155,
2021
+ "id": 23153,
2022
2022
  "name": "uint256",
2023
2023
  "nodeType": "ElementaryTypeName",
2024
2024
  "src": "2675:7:31",
@@ -2031,12 +2031,12 @@
2031
2031
  },
2032
2032
  {
2033
2033
  "constant": false,
2034
- "id": 23158,
2034
+ "id": 23156,
2035
2035
  "mutability": "mutable",
2036
2036
  "name": "leftPaddingBits",
2037
2037
  "nameLocation": "2708:15:31",
2038
2038
  "nodeType": "VariableDeclaration",
2039
- "scope": 23188,
2039
+ "scope": 23186,
2040
2040
  "src": "2700:23:31",
2041
2041
  "stateVariable": false,
2042
2042
  "storageLocation": "default",
@@ -2045,7 +2045,7 @@
2045
2045
  "typeString": "uint256"
2046
2046
  },
2047
2047
  "typeName": {
2048
- "id": 23157,
2048
+ "id": 23155,
2049
2049
  "name": "uint256",
2050
2050
  "nodeType": "ElementaryTypeName",
2051
2051
  "src": "2700:7:31",
@@ -2060,17 +2060,17 @@
2060
2060
  "src": "2646:81:31"
2061
2061
  },
2062
2062
  "returnParameters": {
2063
- "id": 23163,
2063
+ "id": 23161,
2064
2064
  "nodeType": "ParameterList",
2065
2065
  "parameters": [
2066
2066
  {
2067
2067
  "constant": false,
2068
- "id": 23162,
2068
+ "id": 23160,
2069
2069
  "mutability": "mutable",
2070
2070
  "name": "array",
2071
2071
  "nameLocation": "2768:5:31",
2072
2072
  "nodeType": "VariableDeclaration",
2073
- "scope": 23188,
2073
+ "scope": 23186,
2074
2074
  "src": "2751:22:31",
2075
2075
  "stateVariable": false,
2076
2076
  "storageLocation": "memory",
@@ -2080,7 +2080,7 @@
2080
2080
  },
2081
2081
  "typeName": {
2082
2082
  "baseType": {
2083
- "id": 23160,
2083
+ "id": 23158,
2084
2084
  "name": "bytes32",
2085
2085
  "nodeType": "ElementaryTypeName",
2086
2086
  "src": "2751:7:31",
@@ -2089,7 +2089,7 @@
2089
2089
  "typeString": "bytes32"
2090
2090
  }
2091
2091
  },
2092
- "id": 23161,
2092
+ "id": 23159,
2093
2093
  "nodeType": "ArrayTypeName",
2094
2094
  "src": "2751:9:31",
2095
2095
  "typeDescriptions": {
@@ -2102,7 +2102,7 @@
2102
2102
  ],
2103
2103
  "src": "2750:24:31"
2104
2104
  },
2105
- "scope": 23189,
2105
+ "scope": 23187,
2106
2106
  "stateMutability": "pure",
2107
2107
  "virtual": false,
2108
2108
  "visibility": "internal"
@@ -2114,18 +2114,18 @@
2114
2114
  "contractDependencies": [],
2115
2115
  "contractKind": "library",
2116
2116
  "documentation": {
2117
- "id": 23123,
2117
+ "id": 23121,
2118
2118
  "nodeType": "StructuredDocumentation",
2119
2119
  "src": "108:211:31",
2120
2120
  "text": " @title TightCoder\n @dev Provides low-level generic implementations of tight encoding and decoding for arrays.\n This is consistent with Solidity's internal tight encoding for array data in storage."
2121
2121
  },
2122
2122
  "fullyImplemented": true,
2123
2123
  "linearizedBaseContracts": [
2124
- 23189
2124
+ 23187
2125
2125
  ],
2126
2126
  "name": "TightCoder",
2127
2127
  "nameLocation": "328:10:31",
2128
- "scope": 23190,
2128
+ "scope": 23188,
2129
2129
  "usedErrors": [],
2130
2130
  "usedEvents": []
2131
2131
  }