@latticexyz/world-modules 2.0.0-main-c714e5d1 → 2.0.0-main-94d7f1ee

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 (115) hide show
  1. package/out/AccessControl.sol/AccessControl.abi.json +1 -0
  2. package/out/AccessControl.sol/AccessControl.json +1651 -0
  3. package/out/ArrayLib.sol/ArrayLib.json +477 -477
  4. package/out/Balances.sol/Balances.abi.json +1 -0
  5. package/out/Balances.sol/Balances.json +13002 -0
  6. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +350 -350
  7. package/out/CallboundDelegations.sol/CallboundDelegations.json +4497 -4497
  8. package/out/DelegationControl.sol/DelegationControl.json +135 -135
  9. package/out/FunctionSelectors.sol/FunctionSelectors.abi.json +1 -0
  10. package/out/FunctionSelectors.sol/FunctionSelectors.json +17874 -0
  11. package/out/Hooks.sol/Hooks.json +45 -45
  12. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +14 -14
  13. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +15 -15
  14. package/out/IBaseWorld.sol/IBaseWorld.json +81 -81
  15. package/out/IBatchCallSystem.sol/IBatchCallSystem.json +15 -15
  16. package/out/IDelegationControl.sol/IDelegationControl.json +7 -7
  17. package/out/ISystemHook.sol/ISystemHook.json +12 -12
  18. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +25 -25
  19. package/out/IWorldErrors.sol/IWorldErrors.json +19 -19
  20. package/out/IWorldKernel.sol/IWorldCall.json +10 -10
  21. package/out/IWorldKernel.sol/IWorldKernel.json +10 -10
  22. package/out/IWorldKernel.sol/IWorldModuleInstallation.json +10 -10
  23. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +39 -39
  24. package/out/KeysInTable.sol/KeysInTable.json +18190 -18190
  25. package/out/KeysInTableHook.sol/KeysInTableHook.json +1407 -1407
  26. package/out/KeysInTableModule.sol/KeysInTableModule.json +838 -838
  27. package/out/KeysWithValue.sol/KeysWithValue.json +6631 -6631
  28. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1557 -1557
  29. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +650 -650
  30. package/out/Module.sol/Module.json +119 -119
  31. package/out/NamespaceOwner.sol/NamespaceOwner.abi.json +1 -0
  32. package/out/NamespaceOwner.sol/NamespaceOwner.json +13016 -0
  33. package/out/ResourceAccess.sol/ResourceAccess.abi.json +1 -0
  34. package/out/ResourceAccess.sol/ResourceAccess.json +17296 -0
  35. package/out/ResourceIds.sol/ResourceIds.json +45 -45
  36. package/out/Schema.sol/SchemaInstance.json +30 -30
  37. package/out/Schema.sol/SchemaLib.json +30 -30
  38. package/out/SchemaType.sol/SchemaType.json +729 -729
  39. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +448 -448
  40. package/out/StoreHook.sol/StoreHook.json +639 -639
  41. package/out/StoreHooks.sol/StoreHooks.json +45 -45
  42. package/out/System.sol/System.json +32 -32
  43. package/out/SystemHooks.sol/SystemHooks.abi.json +1 -0
  44. package/out/SystemHooks.sol/SystemHooks.json +32460 -0
  45. package/out/SystemSwitch.sol/SystemSwitch.abi.json +1 -0
  46. package/out/SystemSwitch.sol/SystemSwitch.json +2879 -0
  47. package/out/Systems.sol/Systems.abi.json +1 -0
  48. package/out/Systems.sol/Systems.json +18508 -0
  49. package/out/Tables.sol/Tables.json +73 -73
  50. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +183 -183
  51. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +3474 -3474
  52. package/out/UniqueEntity.sol/UniqueEntity.json +2345 -2345
  53. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +482 -482
  54. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +128 -128
  55. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +4590 -4590
  56. package/out/WorldContext.sol/WorldContextConsumer.json +14 -14
  57. package/out/WorldContext.sol/WorldContextConsumerLib.json +14 -14
  58. package/out/WorldContext.sol/WorldContextProviderLib.json +14 -14
  59. package/out/WorldResourceId.sol/WorldResourceIdInstance.json +103 -103
  60. package/out/WorldResourceId.sol/WorldResourceIdLib.json +103 -103
  61. package/out/constants.sol/constants.json +194 -194
  62. package/out/getKeysInTable.sol/getKeysInTable.json +918 -918
  63. package/out/getKeysWithValue.sol/getKeysWithValue.json +431 -431
  64. package/out/getTargetTableId.sol/getTargetTableId.json +272 -272
  65. package/out/getUniqueEntity.sol/getUniqueEntity.json +389 -240
  66. package/out/hasKey.sol/hasKey.json +215 -215
  67. package/out/index.sol/index.json +73 -73
  68. package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +171 -171
  69. package/out/query.sol/query.json +1892 -1892
  70. package/out/revertWithBytes.sol/revertWithBytes.json +52 -52
  71. package/out/src/Bytes.sol/Bytes.json +3766 -3766
  72. package/out/src/FieldLayout.sol/FieldLayoutInstance.json +1204 -1204
  73. package/out/src/FieldLayout.sol/FieldLayoutLib.json +1204 -1204
  74. package/out/src/Hook.sol/HookInstance.abi.json +1 -0
  75. package/out/src/Hook.sol/HookInstance.json +2823 -0
  76. package/out/src/Hook.sol/HookLib.abi.json +1 -0
  77. package/out/src/Hook.sol/HookLib.json +2823 -0
  78. package/out/src/IStore.sol/IStore.json +73 -73
  79. package/out/src/ISystemHook.sol/ISystemHook.abi.json +67 -0
  80. package/out/src/ISystemHook.sol/ISystemHook.abi.json.d.ts +68 -0
  81. package/out/src/ISystemHook.sol/ISystemHook.json +852 -0
  82. package/out/src/IWorldErrors.sol/IWorldErrors.abi.json +189 -0
  83. package/out/src/IWorldErrors.sol/IWorldErrors.abi.json.d.ts +190 -0
  84. package/out/src/IWorldErrors.sol/IWorldErrors.json +1463 -0
  85. package/out/src/IWorldKernel.sol/IWorldCall.json +258 -258
  86. package/out/src/IWorldKernel.sol/IWorldKernel.json +258 -258
  87. package/out/src/IWorldKernel.sol/IWorldModuleInstallation.json +258 -258
  88. package/out/src/Memory.sol/Memory.json +242 -242
  89. package/out/src/PackedCounter.sol/PackedCounterInstance.json +1633 -1633
  90. package/out/src/PackedCounter.sol/PackedCounterLib.json +1633 -1633
  91. package/out/src/ResourceId.sol/ResourceIdInstance.json +206 -206
  92. package/out/src/ResourceId.sol/ResourceIdLib.json +206 -206
  93. package/out/src/Schema.sol/SchemaInstance.json +1351 -1351
  94. package/out/src/Schema.sol/SchemaLib.json +1351 -1351
  95. package/out/src/Slice.sol/SliceInstance.json +802 -802
  96. package/out/src/Slice.sol/SliceLib.json +802 -802
  97. package/out/src/StoreCore.sol/StoreCore.json +7412 -7412
  98. package/out/src/StoreCore.sol/StoreCoreInternal.json +7412 -7412
  99. package/out/src/StoreSwitch.sol/StoreSwitch.json +4064 -4064
  100. package/out/src/WorldContext.sol/WorldContextConsumer.json +805 -805
  101. package/out/src/WorldContext.sol/WorldContextConsumerLib.json +807 -807
  102. package/out/src/WorldContext.sol/WorldContextProviderLib.json +807 -807
  103. package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +809 -809
  104. package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +809 -809
  105. package/out/storeHookTypes.sol/storeHookTypes.json +204 -204
  106. package/out/storeResourceTypes.sol/storeResourceTypes.json +23 -23
  107. package/out/systemHookTypes.sol/systemHookTypes.json +270 -0
  108. package/out/tables/ResourceIds.sol/ResourceIds.json +2922 -2922
  109. package/out/tables/Tables.sol/Tables.json +12189 -12189
  110. package/out/tightcoder/EncodeArray.sol/EncodeArray.json +6883 -6883
  111. package/out/types.sol/types.json +71 -71
  112. package/out/worldResourceTypes.sol/worldResourceTypes.json +92 -92
  113. package/package.json +8 -8
  114. package/src/modules/uniqueentity/getUniqueEntity.sol +5 -3
  115. package/src/utils/SystemSwitch.sol +82 -0
@@ -10,29 +10,29 @@
10
10
  },
11
11
  "ast": {
12
12
  "absolutePath": "src/modules/keysintable/hasKey.sol",
13
- "id": 41067,
13
+ "id": 50209,
14
14
  "exportedSymbols": {
15
15
  "IStore": [
16
- 25916
16
+ 28432
17
17
  ],
18
18
  "ResourceId": [
19
- 26605
19
+ 29121
20
20
  ],
21
21
  "UsedKeysIndex": [
22
- 49889
22
+ 59031
23
23
  ],
24
24
  "hasKey": [
25
- 41034,
26
- 41066
25
+ 50176,
26
+ 50208
27
27
  ]
28
28
  },
29
29
  "nodeType": "SourceUnit",
30
- "src": "32:951:117",
30
+ "src": "32:951:127",
31
31
  "nodes": [
32
32
  {
33
- "id": 41000,
33
+ "id": 50142,
34
34
  "nodeType": "PragmaDirective",
35
- "src": "32:25:117",
35
+ "src": "32:25:127",
36
36
  "nodes": [],
37
37
  "literals": [
38
38
  "solidity",
@@ -42,24 +42,24 @@
42
42
  ]
43
43
  },
44
44
  {
45
- "id": 41002,
45
+ "id": 50144,
46
46
  "nodeType": "ImportDirective",
47
- "src": "59:58:117",
47
+ "src": "59:58:127",
48
48
  "nodes": [],
49
49
  "absolutePath": "node_modules/@latticexyz/store/src/IStore.sol",
50
50
  "file": "@latticexyz/store/src/IStore.sol",
51
51
  "nameLocation": "-1:-1:-1",
52
- "scope": 41067,
53
- "sourceUnit": 25917,
52
+ "scope": 50209,
53
+ "sourceUnit": 28433,
54
54
  "symbolAliases": [
55
55
  {
56
56
  "foreign": {
57
- "id": 41001,
57
+ "id": 50143,
58
58
  "name": "IStore",
59
59
  "nodeType": "Identifier",
60
60
  "overloadedDeclarations": [],
61
- "referencedDeclaration": 25916,
62
- "src": "68:6:117",
61
+ "referencedDeclaration": 28432,
62
+ "src": "68:6:127",
63
63
  "typeDescriptions": {}
64
64
  },
65
65
  "nameLocation": "-1:-1:-1"
@@ -68,24 +68,24 @@
68
68
  "unitAlias": ""
69
69
  },
70
70
  {
71
- "id": 41004,
71
+ "id": 50146,
72
72
  "nodeType": "ImportDirective",
73
- "src": "118:66:117",
73
+ "src": "118:66:127",
74
74
  "nodes": [],
75
75
  "absolutePath": "node_modules/@latticexyz/store/src/ResourceId.sol",
76
76
  "file": "@latticexyz/store/src/ResourceId.sol",
77
77
  "nameLocation": "-1:-1:-1",
78
- "scope": 41067,
79
- "sourceUnit": 26677,
78
+ "scope": 50209,
79
+ "sourceUnit": 29193,
80
80
  "symbolAliases": [
81
81
  {
82
82
  "foreign": {
83
- "id": 41003,
83
+ "id": 50145,
84
84
  "name": "ResourceId",
85
85
  "nodeType": "Identifier",
86
86
  "overloadedDeclarations": [],
87
- "referencedDeclaration": 26605,
88
- "src": "127:10:117",
87
+ "referencedDeclaration": 29121,
88
+ "src": "127:10:127",
89
89
  "typeDescriptions": {}
90
90
  },
91
91
  "nameLocation": "-1:-1:-1"
@@ -94,24 +94,24 @@
94
94
  "unitAlias": ""
95
95
  },
96
96
  {
97
- "id": 41006,
97
+ "id": 50148,
98
98
  "nodeType": "ImportDirective",
99
- "src": "186:59:117",
99
+ "src": "186:59:127",
100
100
  "nodes": [],
101
101
  "absolutePath": "src/modules/keysintable/tables/UsedKeysIndex.sol",
102
102
  "file": "./tables/UsedKeysIndex.sol",
103
103
  "nameLocation": "-1:-1:-1",
104
- "scope": 41067,
105
- "sourceUnit": 49900,
104
+ "scope": 50209,
105
+ "sourceUnit": 59042,
106
106
  "symbolAliases": [
107
107
  {
108
108
  "foreign": {
109
- "id": 41005,
109
+ "id": 50147,
110
110
  "name": "UsedKeysIndex",
111
111
  "nodeType": "Identifier",
112
112
  "overloadedDeclarations": [],
113
- "referencedDeclaration": 49889,
114
- "src": "195:13:117",
113
+ "referencedDeclaration": 59031,
114
+ "src": "195:13:127",
115
115
  "typeDescriptions": {}
116
116
  },
117
117
  "nameLocation": "-1:-1:-1"
@@ -120,30 +120,30 @@
120
120
  "unitAlias": ""
121
121
  },
122
122
  {
123
- "id": 41034,
123
+ "id": 50176,
124
124
  "nodeType": "FunctionDefinition",
125
- "src": "498:191:117",
125
+ "src": "498:191:127",
126
126
  "nodes": [],
127
127
  "body": {
128
- "id": 41033,
128
+ "id": 50175,
129
129
  "nodeType": "Block",
130
- "src": "581:108:117",
130
+ "src": "581:108:127",
131
131
  "nodes": [],
132
132
  "statements": [
133
133
  {
134
134
  "assignments": [
135
- 41019
135
+ 50161
136
136
  ],
137
137
  "declarations": [
138
138
  {
139
139
  "constant": false,
140
- "id": 41019,
140
+ "id": 50161,
141
141
  "mutability": "mutable",
142
142
  "name": "keysHash",
143
- "nameLocation": "593:8:117",
143
+ "nameLocation": "593:8:127",
144
144
  "nodeType": "VariableDeclaration",
145
- "scope": 41033,
146
- "src": "585:16:117",
145
+ "scope": 50175,
146
+ "src": "585:16:127",
147
147
  "stateVariable": false,
148
148
  "storageLocation": "default",
149
149
  "typeDescriptions": {
@@ -151,10 +151,10 @@
151
151
  "typeString": "bytes32"
152
152
  },
153
153
  "typeName": {
154
- "id": 41018,
154
+ "id": 50160,
155
155
  "name": "bytes32",
156
156
  "nodeType": "ElementaryTypeName",
157
- "src": "585:7:117",
157
+ "src": "585:7:127",
158
158
  "typeDescriptions": {
159
159
  "typeIdentifier": "t_bytes32",
160
160
  "typeString": "bytes32"
@@ -163,18 +163,18 @@
163
163
  "visibility": "internal"
164
164
  }
165
165
  ],
166
- "id": 41026,
166
+ "id": 50168,
167
167
  "initialValue": {
168
168
  "arguments": [
169
169
  {
170
170
  "arguments": [
171
171
  {
172
- "id": 41023,
172
+ "id": 50165,
173
173
  "name": "keyTuple",
174
174
  "nodeType": "Identifier",
175
175
  "overloadedDeclarations": [],
176
- "referencedDeclaration": 41013,
177
- "src": "625:8:117",
176
+ "referencedDeclaration": 50155,
177
+ "src": "625:8:127",
178
178
  "typeDescriptions": {
179
179
  "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
180
180
  "typeString": "bytes32[] memory"
@@ -189,32 +189,32 @@
189
189
  }
190
190
  ],
191
191
  "expression": {
192
- "id": 41021,
192
+ "id": 50163,
193
193
  "name": "abi",
194
194
  "nodeType": "Identifier",
195
195
  "overloadedDeclarations": [],
196
196
  "referencedDeclaration": -1,
197
- "src": "614:3:117",
197
+ "src": "614:3:127",
198
198
  "typeDescriptions": {
199
199
  "typeIdentifier": "t_magic_abi",
200
200
  "typeString": "abi"
201
201
  }
202
202
  },
203
- "id": 41022,
203
+ "id": 50164,
204
204
  "isConstant": false,
205
205
  "isLValue": false,
206
206
  "isPure": true,
207
207
  "lValueRequested": false,
208
- "memberLocation": "618:6:117",
208
+ "memberLocation": "618:6:127",
209
209
  "memberName": "encode",
210
210
  "nodeType": "MemberAccess",
211
- "src": "614:10:117",
211
+ "src": "614:10:127",
212
212
  "typeDescriptions": {
213
213
  "typeIdentifier": "t_function_abiencode_pure$__$returns$_t_bytes_memory_ptr_$",
214
214
  "typeString": "function () pure returns (bytes memory)"
215
215
  }
216
216
  },
217
- "id": 41024,
217
+ "id": 50166,
218
218
  "isConstant": false,
219
219
  "isLValue": false,
220
220
  "isPure": false,
@@ -223,7 +223,7 @@
223
223
  "nameLocations": [],
224
224
  "names": [],
225
225
  "nodeType": "FunctionCall",
226
- "src": "614:20:117",
226
+ "src": "614:20:127",
227
227
  "tryCall": false,
228
228
  "typeDescriptions": {
229
229
  "typeIdentifier": "t_bytes_memory_ptr",
@@ -238,18 +238,18 @@
238
238
  "typeString": "bytes memory"
239
239
  }
240
240
  ],
241
- "id": 41020,
241
+ "id": 50162,
242
242
  "name": "keccak256",
243
243
  "nodeType": "Identifier",
244
244
  "overloadedDeclarations": [],
245
245
  "referencedDeclaration": -8,
246
- "src": "604:9:117",
246
+ "src": "604:9:127",
247
247
  "typeDescriptions": {
248
248
  "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
249
249
  "typeString": "function (bytes memory) pure returns (bytes32)"
250
250
  }
251
251
  },
252
- "id": 41025,
252
+ "id": 50167,
253
253
  "isConstant": false,
254
254
  "isLValue": false,
255
255
  "isPure": false,
@@ -258,7 +258,7 @@
258
258
  "nameLocations": [],
259
259
  "names": [],
260
260
  "nodeType": "FunctionCall",
261
- "src": "604:31:117",
261
+ "src": "604:31:127",
262
262
  "tryCall": false,
263
263
  "typeDescriptions": {
264
264
  "typeIdentifier": "t_bytes32",
@@ -266,30 +266,30 @@
266
266
  }
267
267
  },
268
268
  "nodeType": "VariableDeclarationStatement",
269
- "src": "585:50:117"
269
+ "src": "585:50:127"
270
270
  },
271
271
  {
272
272
  "expression": {
273
273
  "arguments": [
274
274
  {
275
- "id": 41029,
275
+ "id": 50171,
276
276
  "name": "tableId",
277
277
  "nodeType": "Identifier",
278
278
  "overloadedDeclarations": [],
279
- "referencedDeclaration": 41010,
280
- "src": "668:7:117",
279
+ "referencedDeclaration": 50152,
280
+ "src": "668:7:127",
281
281
  "typeDescriptions": {
282
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
282
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
283
283
  "typeString": "ResourceId"
284
284
  }
285
285
  },
286
286
  {
287
- "id": 41030,
287
+ "id": 50172,
288
288
  "name": "keysHash",
289
289
  "nodeType": "Identifier",
290
290
  "overloadedDeclarations": [],
291
- "referencedDeclaration": 41019,
292
- "src": "677:8:117",
291
+ "referencedDeclaration": 50161,
292
+ "src": "677:8:127",
293
293
  "typeDescriptions": {
294
294
  "typeIdentifier": "t_bytes32",
295
295
  "typeString": "bytes32"
@@ -299,7 +299,7 @@
299
299
  "expression": {
300
300
  "argumentTypes": [
301
301
  {
302
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
302
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
303
303
  "typeString": "ResourceId"
304
304
  },
305
305
  {
@@ -308,33 +308,33 @@
308
308
  }
309
309
  ],
310
310
  "expression": {
311
- "id": 41027,
311
+ "id": 50169,
312
312
  "name": "UsedKeysIndex",
313
313
  "nodeType": "Identifier",
314
314
  "overloadedDeclarations": [],
315
- "referencedDeclaration": 49889,
316
- "src": "647:13:117",
315
+ "referencedDeclaration": 59031,
316
+ "src": "647:13:127",
317
317
  "typeDescriptions": {
318
- "typeIdentifier": "t_type$_t_contract$_UsedKeysIndex_$49889_$",
318
+ "typeIdentifier": "t_type$_t_contract$_UsedKeysIndex_$59031_$",
319
319
  "typeString": "type(library UsedKeysIndex)"
320
320
  }
321
321
  },
322
- "id": 41028,
322
+ "id": 50170,
323
323
  "isConstant": false,
324
324
  "isLValue": false,
325
325
  "isPure": false,
326
326
  "lValueRequested": false,
327
- "memberLocation": "661:6:117",
327
+ "memberLocation": "661:6:127",
328
328
  "memberName": "getHas",
329
329
  "nodeType": "MemberAccess",
330
- "referencedDeclaration": 48609,
331
- "src": "647:20:117",
330
+ "referencedDeclaration": 57751,
331
+ "src": "647:20:127",
332
332
  "typeDescriptions": {
333
- "typeIdentifier": "t_function_internal_view$_t_userDefinedValueType$_ResourceId_$26605_$_t_bytes32_$returns$_t_bool_$",
333
+ "typeIdentifier": "t_function_internal_view$_t_userDefinedValueType$_ResourceId_$29121_$_t_bytes32_$returns$_t_bool_$",
334
334
  "typeString": "function (ResourceId,bytes32) view returns (bool)"
335
335
  }
336
336
  },
337
- "id": 41031,
337
+ "id": 50173,
338
338
  "isConstant": false,
339
339
  "isLValue": false,
340
340
  "isPure": false,
@@ -343,67 +343,67 @@
343
343
  "nameLocations": [],
344
344
  "names": [],
345
345
  "nodeType": "FunctionCall",
346
- "src": "647:39:117",
346
+ "src": "647:39:127",
347
347
  "tryCall": false,
348
348
  "typeDescriptions": {
349
349
  "typeIdentifier": "t_bool",
350
350
  "typeString": "bool"
351
351
  }
352
352
  },
353
- "functionReturnParameters": 41017,
354
- "id": 41032,
353
+ "functionReturnParameters": 50159,
354
+ "id": 50174,
355
355
  "nodeType": "Return",
356
- "src": "640:46:117"
356
+ "src": "640:46:127"
357
357
  }
358
358
  ]
359
359
  },
360
360
  "documentation": {
361
- "id": 41007,
361
+ "id": 50149,
362
362
  "nodeType": "StructuredDocumentation",
363
- "src": "247:250:117",
363
+ "src": "247:250:127",
364
364
  "text": " Get whether the keyTuple is in the given table.\n Note: this util can only be called within the context of a Store (e.g. from a System or Module).\n For usage outside of a Store, use the overload that takes an explicit store argument."
365
365
  },
366
366
  "implemented": true,
367
367
  "kind": "freeFunction",
368
368
  "modifiers": [],
369
369
  "name": "hasKey",
370
- "nameLocation": "507:6:117",
370
+ "nameLocation": "507:6:127",
371
371
  "parameters": {
372
- "id": 41014,
372
+ "id": 50156,
373
373
  "nodeType": "ParameterList",
374
374
  "parameters": [
375
375
  {
376
376
  "constant": false,
377
- "id": 41010,
377
+ "id": 50152,
378
378
  "mutability": "mutable",
379
379
  "name": "tableId",
380
- "nameLocation": "525:7:117",
380
+ "nameLocation": "525:7:127",
381
381
  "nodeType": "VariableDeclaration",
382
- "scope": 41034,
383
- "src": "514:18:117",
382
+ "scope": 50176,
383
+ "src": "514:18:127",
384
384
  "stateVariable": false,
385
385
  "storageLocation": "default",
386
386
  "typeDescriptions": {
387
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
387
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
388
388
  "typeString": "ResourceId"
389
389
  },
390
390
  "typeName": {
391
- "id": 41009,
391
+ "id": 50151,
392
392
  "nodeType": "UserDefinedTypeName",
393
393
  "pathNode": {
394
- "id": 41008,
394
+ "id": 50150,
395
395
  "name": "ResourceId",
396
396
  "nameLocations": [
397
- "514:10:117"
397
+ "514:10:127"
398
398
  ],
399
399
  "nodeType": "IdentifierPath",
400
- "referencedDeclaration": 26605,
401
- "src": "514:10:117"
400
+ "referencedDeclaration": 29121,
401
+ "src": "514:10:127"
402
402
  },
403
- "referencedDeclaration": 26605,
404
- "src": "514:10:117",
403
+ "referencedDeclaration": 29121,
404
+ "src": "514:10:127",
405
405
  "typeDescriptions": {
406
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
406
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
407
407
  "typeString": "ResourceId"
408
408
  }
409
409
  },
@@ -411,13 +411,13 @@
411
411
  },
412
412
  {
413
413
  "constant": false,
414
- "id": 41013,
414
+ "id": 50155,
415
415
  "mutability": "mutable",
416
416
  "name": "keyTuple",
417
- "nameLocation": "551:8:117",
417
+ "nameLocation": "551:8:127",
418
418
  "nodeType": "VariableDeclaration",
419
- "scope": 41034,
420
- "src": "534:25:117",
419
+ "scope": 50176,
420
+ "src": "534:25:127",
421
421
  "stateVariable": false,
422
422
  "storageLocation": "memory",
423
423
  "typeDescriptions": {
@@ -426,18 +426,18 @@
426
426
  },
427
427
  "typeName": {
428
428
  "baseType": {
429
- "id": 41011,
429
+ "id": 50153,
430
430
  "name": "bytes32",
431
431
  "nodeType": "ElementaryTypeName",
432
- "src": "534:7:117",
432
+ "src": "534:7:127",
433
433
  "typeDescriptions": {
434
434
  "typeIdentifier": "t_bytes32",
435
435
  "typeString": "bytes32"
436
436
  }
437
437
  },
438
- "id": 41012,
438
+ "id": 50154,
439
439
  "nodeType": "ArrayTypeName",
440
- "src": "534:9:117",
440
+ "src": "534:9:127",
441
441
  "typeDescriptions": {
442
442
  "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
443
443
  "typeString": "bytes32[]"
@@ -446,21 +446,21 @@
446
446
  "visibility": "internal"
447
447
  }
448
448
  ],
449
- "src": "513:47:117"
449
+ "src": "513:47:127"
450
450
  },
451
451
  "returnParameters": {
452
- "id": 41017,
452
+ "id": 50159,
453
453
  "nodeType": "ParameterList",
454
454
  "parameters": [
455
455
  {
456
456
  "constant": false,
457
- "id": 41016,
457
+ "id": 50158,
458
458
  "mutability": "mutable",
459
459
  "name": "",
460
460
  "nameLocation": "-1:-1:-1",
461
461
  "nodeType": "VariableDeclaration",
462
- "scope": 41034,
463
- "src": "575:4:117",
462
+ "scope": 50176,
463
+ "src": "575:4:127",
464
464
  "stateVariable": false,
465
465
  "storageLocation": "default",
466
466
  "typeDescriptions": {
@@ -468,10 +468,10 @@
468
468
  "typeString": "bool"
469
469
  },
470
470
  "typeName": {
471
- "id": 41015,
471
+ "id": 50157,
472
472
  "name": "bool",
473
473
  "nodeType": "ElementaryTypeName",
474
- "src": "575:4:117",
474
+ "src": "575:4:127",
475
475
  "typeDescriptions": {
476
476
  "typeIdentifier": "t_bool",
477
477
  "typeString": "bool"
@@ -480,38 +480,38 @@
480
480
  "visibility": "internal"
481
481
  }
482
482
  ],
483
- "src": "574:6:117"
483
+ "src": "574:6:127"
484
484
  },
485
- "scope": 41067,
485
+ "scope": 50209,
486
486
  "stateMutability": "view",
487
487
  "virtual": false,
488
488
  "visibility": "internal"
489
489
  },
490
490
  {
491
- "id": 41066,
491
+ "id": 50208,
492
492
  "nodeType": "FunctionDefinition",
493
- "src": "770:212:117",
493
+ "src": "770:212:127",
494
494
  "nodes": [],
495
495
  "body": {
496
- "id": 41065,
496
+ "id": 50207,
497
497
  "nodeType": "Block",
498
- "src": "867:115:117",
498
+ "src": "867:115:127",
499
499
  "nodes": [],
500
500
  "statements": [
501
501
  {
502
502
  "assignments": [
503
- 41050
503
+ 50192
504
504
  ],
505
505
  "declarations": [
506
506
  {
507
507
  "constant": false,
508
- "id": 41050,
508
+ "id": 50192,
509
509
  "mutability": "mutable",
510
510
  "name": "keysHash",
511
- "nameLocation": "879:8:117",
511
+ "nameLocation": "879:8:127",
512
512
  "nodeType": "VariableDeclaration",
513
- "scope": 41065,
514
- "src": "871:16:117",
513
+ "scope": 50207,
514
+ "src": "871:16:127",
515
515
  "stateVariable": false,
516
516
  "storageLocation": "default",
517
517
  "typeDescriptions": {
@@ -519,10 +519,10 @@
519
519
  "typeString": "bytes32"
520
520
  },
521
521
  "typeName": {
522
- "id": 41049,
522
+ "id": 50191,
523
523
  "name": "bytes32",
524
524
  "nodeType": "ElementaryTypeName",
525
- "src": "871:7:117",
525
+ "src": "871:7:127",
526
526
  "typeDescriptions": {
527
527
  "typeIdentifier": "t_bytes32",
528
528
  "typeString": "bytes32"
@@ -531,18 +531,18 @@
531
531
  "visibility": "internal"
532
532
  }
533
533
  ],
534
- "id": 41057,
534
+ "id": 50199,
535
535
  "initialValue": {
536
536
  "arguments": [
537
537
  {
538
538
  "arguments": [
539
539
  {
540
- "id": 41054,
540
+ "id": 50196,
541
541
  "name": "keyTuple",
542
542
  "nodeType": "Identifier",
543
543
  "overloadedDeclarations": [],
544
- "referencedDeclaration": 41044,
545
- "src": "911:8:117",
544
+ "referencedDeclaration": 50186,
545
+ "src": "911:8:127",
546
546
  "typeDescriptions": {
547
547
  "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
548
548
  "typeString": "bytes32[] memory"
@@ -557,32 +557,32 @@
557
557
  }
558
558
  ],
559
559
  "expression": {
560
- "id": 41052,
560
+ "id": 50194,
561
561
  "name": "abi",
562
562
  "nodeType": "Identifier",
563
563
  "overloadedDeclarations": [],
564
564
  "referencedDeclaration": -1,
565
- "src": "900:3:117",
565
+ "src": "900:3:127",
566
566
  "typeDescriptions": {
567
567
  "typeIdentifier": "t_magic_abi",
568
568
  "typeString": "abi"
569
569
  }
570
570
  },
571
- "id": 41053,
571
+ "id": 50195,
572
572
  "isConstant": false,
573
573
  "isLValue": false,
574
574
  "isPure": true,
575
575
  "lValueRequested": false,
576
- "memberLocation": "904:6:117",
576
+ "memberLocation": "904:6:127",
577
577
  "memberName": "encode",
578
578
  "nodeType": "MemberAccess",
579
- "src": "900:10:117",
579
+ "src": "900:10:127",
580
580
  "typeDescriptions": {
581
581
  "typeIdentifier": "t_function_abiencode_pure$__$returns$_t_bytes_memory_ptr_$",
582
582
  "typeString": "function () pure returns (bytes memory)"
583
583
  }
584
584
  },
585
- "id": 41055,
585
+ "id": 50197,
586
586
  "isConstant": false,
587
587
  "isLValue": false,
588
588
  "isPure": false,
@@ -591,7 +591,7 @@
591
591
  "nameLocations": [],
592
592
  "names": [],
593
593
  "nodeType": "FunctionCall",
594
- "src": "900:20:117",
594
+ "src": "900:20:127",
595
595
  "tryCall": false,
596
596
  "typeDescriptions": {
597
597
  "typeIdentifier": "t_bytes_memory_ptr",
@@ -606,18 +606,18 @@
606
606
  "typeString": "bytes memory"
607
607
  }
608
608
  ],
609
- "id": 41051,
609
+ "id": 50193,
610
610
  "name": "keccak256",
611
611
  "nodeType": "Identifier",
612
612
  "overloadedDeclarations": [],
613
613
  "referencedDeclaration": -8,
614
- "src": "890:9:117",
614
+ "src": "890:9:127",
615
615
  "typeDescriptions": {
616
616
  "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
617
617
  "typeString": "function (bytes memory) pure returns (bytes32)"
618
618
  }
619
619
  },
620
- "id": 41056,
620
+ "id": 50198,
621
621
  "isConstant": false,
622
622
  "isLValue": false,
623
623
  "isPure": false,
@@ -626,7 +626,7 @@
626
626
  "nameLocations": [],
627
627
  "names": [],
628
628
  "nodeType": "FunctionCall",
629
- "src": "890:31:117",
629
+ "src": "890:31:127",
630
630
  "tryCall": false,
631
631
  "typeDescriptions": {
632
632
  "typeIdentifier": "t_bytes32",
@@ -634,42 +634,42 @@
634
634
  }
635
635
  },
636
636
  "nodeType": "VariableDeclarationStatement",
637
- "src": "871:50:117"
637
+ "src": "871:50:127"
638
638
  },
639
639
  {
640
640
  "expression": {
641
641
  "arguments": [
642
642
  {
643
- "id": 41060,
643
+ "id": 50202,
644
644
  "name": "store",
645
645
  "nodeType": "Identifier",
646
646
  "overloadedDeclarations": [],
647
- "referencedDeclaration": 41038,
648
- "src": "954:5:117",
647
+ "referencedDeclaration": 50180,
648
+ "src": "954:5:127",
649
649
  "typeDescriptions": {
650
- "typeIdentifier": "t_contract$_IStore_$25916",
650
+ "typeIdentifier": "t_contract$_IStore_$28432",
651
651
  "typeString": "contract IStore"
652
652
  }
653
653
  },
654
654
  {
655
- "id": 41061,
655
+ "id": 50203,
656
656
  "name": "tableId",
657
657
  "nodeType": "Identifier",
658
658
  "overloadedDeclarations": [],
659
- "referencedDeclaration": 41041,
660
- "src": "961:7:117",
659
+ "referencedDeclaration": 50183,
660
+ "src": "961:7:127",
661
661
  "typeDescriptions": {
662
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
662
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
663
663
  "typeString": "ResourceId"
664
664
  }
665
665
  },
666
666
  {
667
- "id": 41062,
667
+ "id": 50204,
668
668
  "name": "keysHash",
669
669
  "nodeType": "Identifier",
670
670
  "overloadedDeclarations": [],
671
- "referencedDeclaration": 41050,
672
- "src": "970:8:117",
671
+ "referencedDeclaration": 50192,
672
+ "src": "970:8:127",
673
673
  "typeDescriptions": {
674
674
  "typeIdentifier": "t_bytes32",
675
675
  "typeString": "bytes32"
@@ -679,11 +679,11 @@
679
679
  "expression": {
680
680
  "argumentTypes": [
681
681
  {
682
- "typeIdentifier": "t_contract$_IStore_$25916",
682
+ "typeIdentifier": "t_contract$_IStore_$28432",
683
683
  "typeString": "contract IStore"
684
684
  },
685
685
  {
686
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
686
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
687
687
  "typeString": "ResourceId"
688
688
  },
689
689
  {
@@ -692,33 +692,33 @@
692
692
  }
693
693
  ],
694
694
  "expression": {
695
- "id": 41058,
695
+ "id": 50200,
696
696
  "name": "UsedKeysIndex",
697
697
  "nodeType": "Identifier",
698
698
  "overloadedDeclarations": [],
699
- "referencedDeclaration": 49889,
700
- "src": "933:13:117",
699
+ "referencedDeclaration": 59031,
700
+ "src": "933:13:127",
701
701
  "typeDescriptions": {
702
- "typeIdentifier": "t_type$_t_contract$_UsedKeysIndex_$49889_$",
702
+ "typeIdentifier": "t_type$_t_contract$_UsedKeysIndex_$59031_$",
703
703
  "typeString": "type(library UsedKeysIndex)"
704
704
  }
705
705
  },
706
- "id": 41059,
706
+ "id": 50201,
707
707
  "isConstant": false,
708
708
  "isLValue": false,
709
709
  "isPure": false,
710
710
  "lValueRequested": false,
711
- "memberLocation": "947:6:117",
711
+ "memberLocation": "947:6:127",
712
712
  "memberName": "getHas",
713
713
  "nodeType": "MemberAccess",
714
- "referencedDeclaration": 48730,
715
- "src": "933:20:117",
714
+ "referencedDeclaration": 57872,
715
+ "src": "933:20:127",
716
716
  "typeDescriptions": {
717
- "typeIdentifier": "t_function_internal_view$_t_contract$_IStore_$25916_$_t_userDefinedValueType$_ResourceId_$26605_$_t_bytes32_$returns$_t_bool_$",
717
+ "typeIdentifier": "t_function_internal_view$_t_contract$_IStore_$28432_$_t_userDefinedValueType$_ResourceId_$29121_$_t_bytes32_$returns$_t_bool_$",
718
718
  "typeString": "function (contract IStore,ResourceId,bytes32) view returns (bool)"
719
719
  }
720
720
  },
721
- "id": 41063,
721
+ "id": 50205,
722
722
  "isConstant": false,
723
723
  "isLValue": false,
724
724
  "isPure": false,
@@ -727,67 +727,67 @@
727
727
  "nameLocations": [],
728
728
  "names": [],
729
729
  "nodeType": "FunctionCall",
730
- "src": "933:46:117",
730
+ "src": "933:46:127",
731
731
  "tryCall": false,
732
732
  "typeDescriptions": {
733
733
  "typeIdentifier": "t_bool",
734
734
  "typeString": "bool"
735
735
  }
736
736
  },
737
- "functionReturnParameters": 41048,
738
- "id": 41064,
737
+ "functionReturnParameters": 50190,
738
+ "id": 50206,
739
739
  "nodeType": "Return",
740
- "src": "926:53:117"
740
+ "src": "926:53:127"
741
741
  }
742
742
  ]
743
743
  },
744
744
  "documentation": {
745
- "id": 41035,
745
+ "id": 50177,
746
746
  "nodeType": "StructuredDocumentation",
747
- "src": "691:78:117",
747
+ "src": "691:78:127",
748
748
  "text": " Get whether the keyTuple is in the given table for the given store."
749
749
  },
750
750
  "implemented": true,
751
751
  "kind": "freeFunction",
752
752
  "modifiers": [],
753
753
  "name": "hasKey",
754
- "nameLocation": "779:6:117",
754
+ "nameLocation": "779:6:127",
755
755
  "parameters": {
756
- "id": 41045,
756
+ "id": 50187,
757
757
  "nodeType": "ParameterList",
758
758
  "parameters": [
759
759
  {
760
760
  "constant": false,
761
- "id": 41038,
761
+ "id": 50180,
762
762
  "mutability": "mutable",
763
763
  "name": "store",
764
- "nameLocation": "793:5:117",
764
+ "nameLocation": "793:5:127",
765
765
  "nodeType": "VariableDeclaration",
766
- "scope": 41066,
767
- "src": "786:12:117",
766
+ "scope": 50208,
767
+ "src": "786:12:127",
768
768
  "stateVariable": false,
769
769
  "storageLocation": "default",
770
770
  "typeDescriptions": {
771
- "typeIdentifier": "t_contract$_IStore_$25916",
771
+ "typeIdentifier": "t_contract$_IStore_$28432",
772
772
  "typeString": "contract IStore"
773
773
  },
774
774
  "typeName": {
775
- "id": 41037,
775
+ "id": 50179,
776
776
  "nodeType": "UserDefinedTypeName",
777
777
  "pathNode": {
778
- "id": 41036,
778
+ "id": 50178,
779
779
  "name": "IStore",
780
780
  "nameLocations": [
781
- "786:6:117"
781
+ "786:6:127"
782
782
  ],
783
783
  "nodeType": "IdentifierPath",
784
- "referencedDeclaration": 25916,
785
- "src": "786:6:117"
784
+ "referencedDeclaration": 28432,
785
+ "src": "786:6:127"
786
786
  },
787
- "referencedDeclaration": 25916,
788
- "src": "786:6:117",
787
+ "referencedDeclaration": 28432,
788
+ "src": "786:6:127",
789
789
  "typeDescriptions": {
790
- "typeIdentifier": "t_contract$_IStore_$25916",
790
+ "typeIdentifier": "t_contract$_IStore_$28432",
791
791
  "typeString": "contract IStore"
792
792
  }
793
793
  },
@@ -795,36 +795,36 @@
795
795
  },
796
796
  {
797
797
  "constant": false,
798
- "id": 41041,
798
+ "id": 50183,
799
799
  "mutability": "mutable",
800
800
  "name": "tableId",
801
- "nameLocation": "811:7:117",
801
+ "nameLocation": "811:7:127",
802
802
  "nodeType": "VariableDeclaration",
803
- "scope": 41066,
804
- "src": "800:18:117",
803
+ "scope": 50208,
804
+ "src": "800:18:127",
805
805
  "stateVariable": false,
806
806
  "storageLocation": "default",
807
807
  "typeDescriptions": {
808
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
808
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
809
809
  "typeString": "ResourceId"
810
810
  },
811
811
  "typeName": {
812
- "id": 41040,
812
+ "id": 50182,
813
813
  "nodeType": "UserDefinedTypeName",
814
814
  "pathNode": {
815
- "id": 41039,
815
+ "id": 50181,
816
816
  "name": "ResourceId",
817
817
  "nameLocations": [
818
- "800:10:117"
818
+ "800:10:127"
819
819
  ],
820
820
  "nodeType": "IdentifierPath",
821
- "referencedDeclaration": 26605,
822
- "src": "800:10:117"
821
+ "referencedDeclaration": 29121,
822
+ "src": "800:10:127"
823
823
  },
824
- "referencedDeclaration": 26605,
825
- "src": "800:10:117",
824
+ "referencedDeclaration": 29121,
825
+ "src": "800:10:127",
826
826
  "typeDescriptions": {
827
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
827
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
828
828
  "typeString": "ResourceId"
829
829
  }
830
830
  },
@@ -832,13 +832,13 @@
832
832
  },
833
833
  {
834
834
  "constant": false,
835
- "id": 41044,
835
+ "id": 50186,
836
836
  "mutability": "mutable",
837
837
  "name": "keyTuple",
838
- "nameLocation": "837:8:117",
838
+ "nameLocation": "837:8:127",
839
839
  "nodeType": "VariableDeclaration",
840
- "scope": 41066,
841
- "src": "820:25:117",
840
+ "scope": 50208,
841
+ "src": "820:25:127",
842
842
  "stateVariable": false,
843
843
  "storageLocation": "memory",
844
844
  "typeDescriptions": {
@@ -847,18 +847,18 @@
847
847
  },
848
848
  "typeName": {
849
849
  "baseType": {
850
- "id": 41042,
850
+ "id": 50184,
851
851
  "name": "bytes32",
852
852
  "nodeType": "ElementaryTypeName",
853
- "src": "820:7:117",
853
+ "src": "820:7:127",
854
854
  "typeDescriptions": {
855
855
  "typeIdentifier": "t_bytes32",
856
856
  "typeString": "bytes32"
857
857
  }
858
858
  },
859
- "id": 41043,
859
+ "id": 50185,
860
860
  "nodeType": "ArrayTypeName",
861
- "src": "820:9:117",
861
+ "src": "820:9:127",
862
862
  "typeDescriptions": {
863
863
  "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
864
864
  "typeString": "bytes32[]"
@@ -867,21 +867,21 @@
867
867
  "visibility": "internal"
868
868
  }
869
869
  ],
870
- "src": "785:61:117"
870
+ "src": "785:61:127"
871
871
  },
872
872
  "returnParameters": {
873
- "id": 41048,
873
+ "id": 50190,
874
874
  "nodeType": "ParameterList",
875
875
  "parameters": [
876
876
  {
877
877
  "constant": false,
878
- "id": 41047,
878
+ "id": 50189,
879
879
  "mutability": "mutable",
880
880
  "name": "",
881
881
  "nameLocation": "-1:-1:-1",
882
882
  "nodeType": "VariableDeclaration",
883
- "scope": 41066,
884
- "src": "861:4:117",
883
+ "scope": 50208,
884
+ "src": "861:4:127",
885
885
  "stateVariable": false,
886
886
  "storageLocation": "default",
887
887
  "typeDescriptions": {
@@ -889,10 +889,10 @@
889
889
  "typeString": "bool"
890
890
  },
891
891
  "typeName": {
892
- "id": 41046,
892
+ "id": 50188,
893
893
  "name": "bool",
894
894
  "nodeType": "ElementaryTypeName",
895
- "src": "861:4:117",
895
+ "src": "861:4:127",
896
896
  "typeDescriptions": {
897
897
  "typeIdentifier": "t_bool",
898
898
  "typeString": "bool"
@@ -901,9 +901,9 @@
901
901
  "visibility": "internal"
902
902
  }
903
903
  ],
904
- "src": "860:6:117"
904
+ "src": "860:6:127"
905
905
  },
906
- "scope": 41067,
906
+ "scope": 50209,
907
907
  "stateMutability": "view",
908
908
  "virtual": false,
909
909
  "visibility": "internal"
@@ -911,5 +911,5 @@
911
911
  ],
912
912
  "license": "MIT"
913
913
  },
914
- "id": 117
914
+ "id": 127
915
915
  }