@latticexyz/world-modules 2.0.0-main-fd10cff6 → 2.0.0-main-fa74f25e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/ArrayLib.sol/ArrayLib.json +255 -255
- package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +244 -220
- package/out/CallboundDelegations.sol/CallboundDelegations.json +2595 -2595
- package/out/DelegationControl.sol/DelegationControl.json +125 -101
- package/out/Hooks.sol/Hooks.json +45 -45
- package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +64 -64
- package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +53 -53
- package/out/IBaseWorld.sol/IBaseWorld.json +130 -85
- package/out/IBatchCallSystem.sol/IBatchCallSystem.json +51 -51
- package/out/ICoreSystem.sol/ICoreSystem.json +6 -6
- package/out/IDelegationControl.sol/IDelegationControl.json +50 -26
- package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +20 -20
- package/out/ISystemHook.sol/ISystemHook.json +171 -131
- package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +13 -13
- package/out/IWorldContextConsumer.sol/IWorldContextConsumer.json +157 -109
- package/out/IWorldErrors.sol/IWorldErrors.json +345 -255
- package/out/IWorldKernel.sol/IWorldCall.json +294 -254
- package/out/IWorldKernel.sol/IWorldKernel.json +321 -258
- package/out/IWorldKernel.sol/IWorldModuleInstallation.json +279 -253
- package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +201 -201
- package/out/KeysInTable.sol/KeysInTable.json +10668 -10668
- package/out/KeysInTableHook.sol/KeysInTableHook.json +862 -862
- package/out/KeysInTableModule.sol/KeysInTableModule.json +573 -549
- package/out/KeysWithValue.sol/KeysWithValue.json +3828 -3828
- package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1011 -1011
- package/out/KeysWithValueModule.sol/KeysWithValueModule.json +462 -438
- package/out/Module.sol/Module.json +109 -85
- package/out/ResourceIds.sol/ResourceIds.json +45 -45
- package/out/Schema.sol/SchemaInstance.json +30 -30
- package/out/Schema.sol/SchemaLib.json +30 -30
- package/out/SchemaType.sol/SchemaType.json +276 -276
- package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +339 -315
- package/out/StoreHook.sol/StoreHook.json +358 -358
- package/out/StoreHooks.sol/StoreHooks.json +45 -45
- package/out/System.sol/System.json +84 -41
- package/out/Tables.sol/Tables.json +73 -73
- package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +148 -124
- package/out/TimeboundDelegations.sol/TimeboundDelegations.json +1986 -1986
- package/out/UniqueEntity.sol/UniqueEntity.json +1402 -1402
- package/out/UniqueEntityModule.sol/UniqueEntityModule.json +366 -342
- package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +138 -102
- package/out/UsedKeysIndex.sol/UsedKeysIndex.json +2722 -2722
- package/out/WorldContext.sol/WorldContextConsumer.json +774 -677
- package/out/WorldContext.sol/WorldContextProvider.json +737 -677
- package/out/WorldResourceId.sol/WorldResourceIdInstance.json +777 -765
- package/out/WorldResourceId.sol/WorldResourceIdLib.json +777 -765
- package/out/constants.sol/constants.json +115 -115
- package/out/getKeysInTable.sol/getKeysInTable.json +564 -564
- package/out/getKeysWithValue.sol/getKeysWithValue.json +264 -264
- package/out/getTargetTableId.sol/getTargetTableId.json +163 -163
- package/out/getUniqueEntity.sol/getUniqueEntity.json +88 -88
- package/out/hasKey.sol/hasKey.json +130 -130
- package/out/index.sol/index.json +53 -53
- package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +202 -157
- package/out/query.sol/query.json +1154 -1154
- package/out/revertWithBytes.sol/revertWithBytes.json +51 -51
- package/out/src/Bytes.sol/Bytes.json +1332 -1332
- package/out/src/FieldLayout.sol/FieldLayoutInstance.json +697 -697
- package/out/src/FieldLayout.sol/FieldLayoutLib.json +697 -697
- package/out/src/IStore.sol/IStore.json +53 -53
- package/out/src/IWorldKernel.sol/IWorldCall.json +307 -267
- package/out/src/IWorldKernel.sol/IWorldKernel.json +334 -271
- package/out/src/IWorldKernel.sol/IWorldModuleInstallation.json +292 -266
- package/out/src/Memory.sol/Memory.json +89 -89
- package/out/src/PackedCounter.sol/PackedCounterInstance.json +923 -923
- package/out/src/PackedCounter.sol/PackedCounterLib.json +923 -923
- package/out/src/ResourceId.sol/ResourceIdInstance.json +112 -112
- package/out/src/ResourceId.sol/ResourceIdLib.json +112 -112
- package/out/src/Schema.sol/SchemaInstance.json +787 -787
- package/out/src/Schema.sol/SchemaLib.json +787 -787
- package/out/src/Slice.sol/SliceInstance.json +429 -429
- package/out/src/Slice.sol/SliceLib.json +429 -429
- package/out/src/StoreCore.sol/StoreCore.json +4455 -4455
- package/out/src/StoreCore.sol/StoreCoreInternal.json +4455 -4455
- package/out/src/StoreSwitch.sol/StoreSwitch.json +2454 -2454
- package/out/src/WorldContext.sol/WorldContextConsumer.json +780 -683
- package/out/src/WorldContext.sol/WorldContextProvider.json +743 -683
- package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +777 -765
- package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +777 -765
- package/out/storeHookTypes.sol/storeHookTypes.json +115 -115
- package/out/storeResourceTypes.sol/storeResourceTypes.json +12 -12
- package/out/tables/ResourceIds.sol/ResourceIds.json +1746 -1746
- package/out/tables/Tables.sol/Tables.json +7288 -7288
- package/out/tightcoder/EncodeArray.sol/EncodeArray.json +3246 -3246
- package/out/types.sol/types.json +39 -39
- package/out/worldResourceTypes.sol/worldResourceTypes.json +87 -87
- package/package.json +8 -8
@@ -10,27 +10,27 @@
|
|
10
10
|
},
|
11
11
|
"ast": {
|
12
12
|
"absolutePath": "src/modules/keysintable/hasKey.sol",
|
13
|
-
"id":
|
13
|
+
"id": 40498,
|
14
14
|
"exportedSymbols": {
|
15
15
|
"IStore": [
|
16
|
-
|
16
|
+
25557
|
17
17
|
],
|
18
18
|
"ResourceId": [
|
19
|
-
|
19
|
+
26238
|
20
20
|
],
|
21
21
|
"UsedKeysIndex": [
|
22
|
-
|
22
|
+
49320
|
23
23
|
],
|
24
24
|
"hasKey": [
|
25
|
-
|
26
|
-
|
25
|
+
40465,
|
26
|
+
40497
|
27
27
|
]
|
28
28
|
},
|
29
29
|
"nodeType": "SourceUnit",
|
30
30
|
"src": "32:951:117",
|
31
31
|
"nodes": [
|
32
32
|
{
|
33
|
-
"id":
|
33
|
+
"id": 40431,
|
34
34
|
"nodeType": "PragmaDirective",
|
35
35
|
"src": "32:25:117",
|
36
36
|
"nodes": [],
|
@@ -42,23 +42,23 @@
|
|
42
42
|
]
|
43
43
|
},
|
44
44
|
{
|
45
|
-
"id":
|
45
|
+
"id": 40433,
|
46
46
|
"nodeType": "ImportDirective",
|
47
47
|
"src": "59:58:117",
|
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":
|
53
|
-
"sourceUnit":
|
52
|
+
"scope": 40498,
|
53
|
+
"sourceUnit": 25558,
|
54
54
|
"symbolAliases": [
|
55
55
|
{
|
56
56
|
"foreign": {
|
57
|
-
"id":
|
57
|
+
"id": 40432,
|
58
58
|
"name": "IStore",
|
59
59
|
"nodeType": "Identifier",
|
60
60
|
"overloadedDeclarations": [],
|
61
|
-
"referencedDeclaration":
|
61
|
+
"referencedDeclaration": 25557,
|
62
62
|
"src": "68:6:117",
|
63
63
|
"typeDescriptions": {}
|
64
64
|
},
|
@@ -68,23 +68,23 @@
|
|
68
68
|
"unitAlias": ""
|
69
69
|
},
|
70
70
|
{
|
71
|
-
"id":
|
71
|
+
"id": 40435,
|
72
72
|
"nodeType": "ImportDirective",
|
73
73
|
"src": "118:66:117",
|
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":
|
79
|
-
"sourceUnit":
|
78
|
+
"scope": 40498,
|
79
|
+
"sourceUnit": 26303,
|
80
80
|
"symbolAliases": [
|
81
81
|
{
|
82
82
|
"foreign": {
|
83
|
-
"id":
|
83
|
+
"id": 40434,
|
84
84
|
"name": "ResourceId",
|
85
85
|
"nodeType": "Identifier",
|
86
86
|
"overloadedDeclarations": [],
|
87
|
-
"referencedDeclaration":
|
87
|
+
"referencedDeclaration": 26238,
|
88
88
|
"src": "127:10:117",
|
89
89
|
"typeDescriptions": {}
|
90
90
|
},
|
@@ -94,23 +94,23 @@
|
|
94
94
|
"unitAlias": ""
|
95
95
|
},
|
96
96
|
{
|
97
|
-
"id":
|
97
|
+
"id": 40437,
|
98
98
|
"nodeType": "ImportDirective",
|
99
99
|
"src": "186:59:117",
|
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":
|
105
|
-
"sourceUnit":
|
104
|
+
"scope": 40498,
|
105
|
+
"sourceUnit": 49330,
|
106
106
|
"symbolAliases": [
|
107
107
|
{
|
108
108
|
"foreign": {
|
109
|
-
"id":
|
109
|
+
"id": 40436,
|
110
110
|
"name": "UsedKeysIndex",
|
111
111
|
"nodeType": "Identifier",
|
112
112
|
"overloadedDeclarations": [],
|
113
|
-
"referencedDeclaration":
|
113
|
+
"referencedDeclaration": 49320,
|
114
114
|
"src": "195:13:117",
|
115
115
|
"typeDescriptions": {}
|
116
116
|
},
|
@@ -120,29 +120,29 @@
|
|
120
120
|
"unitAlias": ""
|
121
121
|
},
|
122
122
|
{
|
123
|
-
"id":
|
123
|
+
"id": 40465,
|
124
124
|
"nodeType": "FunctionDefinition",
|
125
125
|
"src": "498:191:117",
|
126
126
|
"nodes": [],
|
127
127
|
"body": {
|
128
|
-
"id":
|
128
|
+
"id": 40464,
|
129
129
|
"nodeType": "Block",
|
130
130
|
"src": "581:108:117",
|
131
131
|
"nodes": [],
|
132
132
|
"statements": [
|
133
133
|
{
|
134
134
|
"assignments": [
|
135
|
-
|
135
|
+
40450
|
136
136
|
],
|
137
137
|
"declarations": [
|
138
138
|
{
|
139
139
|
"constant": false,
|
140
|
-
"id":
|
140
|
+
"id": 40450,
|
141
141
|
"mutability": "mutable",
|
142
142
|
"name": "keysHash",
|
143
143
|
"nameLocation": "593:8:117",
|
144
144
|
"nodeType": "VariableDeclaration",
|
145
|
-
"scope":
|
145
|
+
"scope": 40464,
|
146
146
|
"src": "585:16:117",
|
147
147
|
"stateVariable": false,
|
148
148
|
"storageLocation": "default",
|
@@ -151,7 +151,7 @@
|
|
151
151
|
"typeString": "bytes32"
|
152
152
|
},
|
153
153
|
"typeName": {
|
154
|
-
"id":
|
154
|
+
"id": 40449,
|
155
155
|
"name": "bytes32",
|
156
156
|
"nodeType": "ElementaryTypeName",
|
157
157
|
"src": "585:7:117",
|
@@ -163,17 +163,17 @@
|
|
163
163
|
"visibility": "internal"
|
164
164
|
}
|
165
165
|
],
|
166
|
-
"id":
|
166
|
+
"id": 40457,
|
167
167
|
"initialValue": {
|
168
168
|
"arguments": [
|
169
169
|
{
|
170
170
|
"arguments": [
|
171
171
|
{
|
172
|
-
"id":
|
172
|
+
"id": 40454,
|
173
173
|
"name": "keyTuple",
|
174
174
|
"nodeType": "Identifier",
|
175
175
|
"overloadedDeclarations": [],
|
176
|
-
"referencedDeclaration":
|
176
|
+
"referencedDeclaration": 40444,
|
177
177
|
"src": "625:8:117",
|
178
178
|
"typeDescriptions": {
|
179
179
|
"typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
|
@@ -189,7 +189,7 @@
|
|
189
189
|
}
|
190
190
|
],
|
191
191
|
"expression": {
|
192
|
-
"id":
|
192
|
+
"id": 40452,
|
193
193
|
"name": "abi",
|
194
194
|
"nodeType": "Identifier",
|
195
195
|
"overloadedDeclarations": [],
|
@@ -200,7 +200,7 @@
|
|
200
200
|
"typeString": "abi"
|
201
201
|
}
|
202
202
|
},
|
203
|
-
"id":
|
203
|
+
"id": 40453,
|
204
204
|
"isConstant": false,
|
205
205
|
"isLValue": false,
|
206
206
|
"isPure": true,
|
@@ -214,7 +214,7 @@
|
|
214
214
|
"typeString": "function () pure returns (bytes memory)"
|
215
215
|
}
|
216
216
|
},
|
217
|
-
"id":
|
217
|
+
"id": 40455,
|
218
218
|
"isConstant": false,
|
219
219
|
"isLValue": false,
|
220
220
|
"isPure": false,
|
@@ -238,7 +238,7 @@
|
|
238
238
|
"typeString": "bytes memory"
|
239
239
|
}
|
240
240
|
],
|
241
|
-
"id":
|
241
|
+
"id": 40451,
|
242
242
|
"name": "keccak256",
|
243
243
|
"nodeType": "Identifier",
|
244
244
|
"overloadedDeclarations": [],
|
@@ -249,7 +249,7 @@
|
|
249
249
|
"typeString": "function (bytes memory) pure returns (bytes32)"
|
250
250
|
}
|
251
251
|
},
|
252
|
-
"id":
|
252
|
+
"id": 40456,
|
253
253
|
"isConstant": false,
|
254
254
|
"isLValue": false,
|
255
255
|
"isPure": false,
|
@@ -272,23 +272,23 @@
|
|
272
272
|
"expression": {
|
273
273
|
"arguments": [
|
274
274
|
{
|
275
|
-
"id":
|
275
|
+
"id": 40460,
|
276
276
|
"name": "tableId",
|
277
277
|
"nodeType": "Identifier",
|
278
278
|
"overloadedDeclarations": [],
|
279
|
-
"referencedDeclaration":
|
279
|
+
"referencedDeclaration": 40441,
|
280
280
|
"src": "668:7:117",
|
281
281
|
"typeDescriptions": {
|
282
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
282
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
283
283
|
"typeString": "ResourceId"
|
284
284
|
}
|
285
285
|
},
|
286
286
|
{
|
287
|
-
"id":
|
287
|
+
"id": 40461,
|
288
288
|
"name": "keysHash",
|
289
289
|
"nodeType": "Identifier",
|
290
290
|
"overloadedDeclarations": [],
|
291
|
-
"referencedDeclaration":
|
291
|
+
"referencedDeclaration": 40450,
|
292
292
|
"src": "677:8:117",
|
293
293
|
"typeDescriptions": {
|
294
294
|
"typeIdentifier": "t_bytes32",
|
@@ -299,7 +299,7 @@
|
|
299
299
|
"expression": {
|
300
300
|
"argumentTypes": [
|
301
301
|
{
|
302
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
302
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
303
303
|
"typeString": "ResourceId"
|
304
304
|
},
|
305
305
|
{
|
@@ -308,18 +308,18 @@
|
|
308
308
|
}
|
309
309
|
],
|
310
310
|
"expression": {
|
311
|
-
"id":
|
311
|
+
"id": 40458,
|
312
312
|
"name": "UsedKeysIndex",
|
313
313
|
"nodeType": "Identifier",
|
314
314
|
"overloadedDeclarations": [],
|
315
|
-
"referencedDeclaration":
|
315
|
+
"referencedDeclaration": 49320,
|
316
316
|
"src": "647:13:117",
|
317
317
|
"typeDescriptions": {
|
318
|
-
"typeIdentifier": "t_type$_t_contract$_UsedKeysIndex_$
|
318
|
+
"typeIdentifier": "t_type$_t_contract$_UsedKeysIndex_$49320_$",
|
319
319
|
"typeString": "type(library UsedKeysIndex)"
|
320
320
|
}
|
321
321
|
},
|
322
|
-
"id":
|
322
|
+
"id": 40459,
|
323
323
|
"isConstant": false,
|
324
324
|
"isLValue": false,
|
325
325
|
"isPure": false,
|
@@ -327,14 +327,14 @@
|
|
327
327
|
"memberLocation": "661:6:117",
|
328
328
|
"memberName": "getHas",
|
329
329
|
"nodeType": "MemberAccess",
|
330
|
-
"referencedDeclaration":
|
330
|
+
"referencedDeclaration": 48040,
|
331
331
|
"src": "647:20:117",
|
332
332
|
"typeDescriptions": {
|
333
|
-
"typeIdentifier": "t_function_internal_view$_t_userDefinedValueType$_ResourceId_$
|
333
|
+
"typeIdentifier": "t_function_internal_view$_t_userDefinedValueType$_ResourceId_$26238_$_t_bytes32_$returns$_t_bool_$",
|
334
334
|
"typeString": "function (ResourceId,bytes32) view returns (bool)"
|
335
335
|
}
|
336
336
|
},
|
337
|
-
"id":
|
337
|
+
"id": 40462,
|
338
338
|
"isConstant": false,
|
339
339
|
"isLValue": false,
|
340
340
|
"isPure": false,
|
@@ -350,15 +350,15 @@
|
|
350
350
|
"typeString": "bool"
|
351
351
|
}
|
352
352
|
},
|
353
|
-
"functionReturnParameters":
|
354
|
-
"id":
|
353
|
+
"functionReturnParameters": 40448,
|
354
|
+
"id": 40463,
|
355
355
|
"nodeType": "Return",
|
356
356
|
"src": "640:46:117"
|
357
357
|
}
|
358
358
|
]
|
359
359
|
},
|
360
360
|
"documentation": {
|
361
|
-
"id":
|
361
|
+
"id": 40438,
|
362
362
|
"nodeType": "StructuredDocumentation",
|
363
363
|
"src": "247:250:117",
|
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."
|
@@ -369,41 +369,41 @@
|
|
369
369
|
"name": "hasKey",
|
370
370
|
"nameLocation": "507:6:117",
|
371
371
|
"parameters": {
|
372
|
-
"id":
|
372
|
+
"id": 40445,
|
373
373
|
"nodeType": "ParameterList",
|
374
374
|
"parameters": [
|
375
375
|
{
|
376
376
|
"constant": false,
|
377
|
-
"id":
|
377
|
+
"id": 40441,
|
378
378
|
"mutability": "mutable",
|
379
379
|
"name": "tableId",
|
380
380
|
"nameLocation": "525:7:117",
|
381
381
|
"nodeType": "VariableDeclaration",
|
382
|
-
"scope":
|
382
|
+
"scope": 40465,
|
383
383
|
"src": "514:18:117",
|
384
384
|
"stateVariable": false,
|
385
385
|
"storageLocation": "default",
|
386
386
|
"typeDescriptions": {
|
387
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
387
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
388
388
|
"typeString": "ResourceId"
|
389
389
|
},
|
390
390
|
"typeName": {
|
391
|
-
"id":
|
391
|
+
"id": 40440,
|
392
392
|
"nodeType": "UserDefinedTypeName",
|
393
393
|
"pathNode": {
|
394
|
-
"id":
|
394
|
+
"id": 40439,
|
395
395
|
"name": "ResourceId",
|
396
396
|
"nameLocations": [
|
397
397
|
"514:10:117"
|
398
398
|
],
|
399
399
|
"nodeType": "IdentifierPath",
|
400
|
-
"referencedDeclaration":
|
400
|
+
"referencedDeclaration": 26238,
|
401
401
|
"src": "514:10:117"
|
402
402
|
},
|
403
|
-
"referencedDeclaration":
|
403
|
+
"referencedDeclaration": 26238,
|
404
404
|
"src": "514:10:117",
|
405
405
|
"typeDescriptions": {
|
406
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
406
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
407
407
|
"typeString": "ResourceId"
|
408
408
|
}
|
409
409
|
},
|
@@ -411,12 +411,12 @@
|
|
411
411
|
},
|
412
412
|
{
|
413
413
|
"constant": false,
|
414
|
-
"id":
|
414
|
+
"id": 40444,
|
415
415
|
"mutability": "mutable",
|
416
416
|
"name": "keyTuple",
|
417
417
|
"nameLocation": "551:8:117",
|
418
418
|
"nodeType": "VariableDeclaration",
|
419
|
-
"scope":
|
419
|
+
"scope": 40465,
|
420
420
|
"src": "534:25:117",
|
421
421
|
"stateVariable": false,
|
422
422
|
"storageLocation": "memory",
|
@@ -426,7 +426,7 @@
|
|
426
426
|
},
|
427
427
|
"typeName": {
|
428
428
|
"baseType": {
|
429
|
-
"id":
|
429
|
+
"id": 40442,
|
430
430
|
"name": "bytes32",
|
431
431
|
"nodeType": "ElementaryTypeName",
|
432
432
|
"src": "534:7:117",
|
@@ -435,7 +435,7 @@
|
|
435
435
|
"typeString": "bytes32"
|
436
436
|
}
|
437
437
|
},
|
438
|
-
"id":
|
438
|
+
"id": 40443,
|
439
439
|
"nodeType": "ArrayTypeName",
|
440
440
|
"src": "534:9:117",
|
441
441
|
"typeDescriptions": {
|
@@ -449,17 +449,17 @@
|
|
449
449
|
"src": "513:47:117"
|
450
450
|
},
|
451
451
|
"returnParameters": {
|
452
|
-
"id":
|
452
|
+
"id": 40448,
|
453
453
|
"nodeType": "ParameterList",
|
454
454
|
"parameters": [
|
455
455
|
{
|
456
456
|
"constant": false,
|
457
|
-
"id":
|
457
|
+
"id": 40447,
|
458
458
|
"mutability": "mutable",
|
459
459
|
"name": "",
|
460
460
|
"nameLocation": "-1:-1:-1",
|
461
461
|
"nodeType": "VariableDeclaration",
|
462
|
-
"scope":
|
462
|
+
"scope": 40465,
|
463
463
|
"src": "575:4:117",
|
464
464
|
"stateVariable": false,
|
465
465
|
"storageLocation": "default",
|
@@ -468,7 +468,7 @@
|
|
468
468
|
"typeString": "bool"
|
469
469
|
},
|
470
470
|
"typeName": {
|
471
|
-
"id":
|
471
|
+
"id": 40446,
|
472
472
|
"name": "bool",
|
473
473
|
"nodeType": "ElementaryTypeName",
|
474
474
|
"src": "575:4:117",
|
@@ -482,35 +482,35 @@
|
|
482
482
|
],
|
483
483
|
"src": "574:6:117"
|
484
484
|
},
|
485
|
-
"scope":
|
485
|
+
"scope": 40498,
|
486
486
|
"stateMutability": "view",
|
487
487
|
"virtual": false,
|
488
488
|
"visibility": "internal"
|
489
489
|
},
|
490
490
|
{
|
491
|
-
"id":
|
491
|
+
"id": 40497,
|
492
492
|
"nodeType": "FunctionDefinition",
|
493
493
|
"src": "770:212:117",
|
494
494
|
"nodes": [],
|
495
495
|
"body": {
|
496
|
-
"id":
|
496
|
+
"id": 40496,
|
497
497
|
"nodeType": "Block",
|
498
498
|
"src": "867:115:117",
|
499
499
|
"nodes": [],
|
500
500
|
"statements": [
|
501
501
|
{
|
502
502
|
"assignments": [
|
503
|
-
|
503
|
+
40481
|
504
504
|
],
|
505
505
|
"declarations": [
|
506
506
|
{
|
507
507
|
"constant": false,
|
508
|
-
"id":
|
508
|
+
"id": 40481,
|
509
509
|
"mutability": "mutable",
|
510
510
|
"name": "keysHash",
|
511
511
|
"nameLocation": "879:8:117",
|
512
512
|
"nodeType": "VariableDeclaration",
|
513
|
-
"scope":
|
513
|
+
"scope": 40496,
|
514
514
|
"src": "871:16:117",
|
515
515
|
"stateVariable": false,
|
516
516
|
"storageLocation": "default",
|
@@ -519,7 +519,7 @@
|
|
519
519
|
"typeString": "bytes32"
|
520
520
|
},
|
521
521
|
"typeName": {
|
522
|
-
"id":
|
522
|
+
"id": 40480,
|
523
523
|
"name": "bytes32",
|
524
524
|
"nodeType": "ElementaryTypeName",
|
525
525
|
"src": "871:7:117",
|
@@ -531,17 +531,17 @@
|
|
531
531
|
"visibility": "internal"
|
532
532
|
}
|
533
533
|
],
|
534
|
-
"id":
|
534
|
+
"id": 40488,
|
535
535
|
"initialValue": {
|
536
536
|
"arguments": [
|
537
537
|
{
|
538
538
|
"arguments": [
|
539
539
|
{
|
540
|
-
"id":
|
540
|
+
"id": 40485,
|
541
541
|
"name": "keyTuple",
|
542
542
|
"nodeType": "Identifier",
|
543
543
|
"overloadedDeclarations": [],
|
544
|
-
"referencedDeclaration":
|
544
|
+
"referencedDeclaration": 40475,
|
545
545
|
"src": "911:8:117",
|
546
546
|
"typeDescriptions": {
|
547
547
|
"typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
|
@@ -557,7 +557,7 @@
|
|
557
557
|
}
|
558
558
|
],
|
559
559
|
"expression": {
|
560
|
-
"id":
|
560
|
+
"id": 40483,
|
561
561
|
"name": "abi",
|
562
562
|
"nodeType": "Identifier",
|
563
563
|
"overloadedDeclarations": [],
|
@@ -568,7 +568,7 @@
|
|
568
568
|
"typeString": "abi"
|
569
569
|
}
|
570
570
|
},
|
571
|
-
"id":
|
571
|
+
"id": 40484,
|
572
572
|
"isConstant": false,
|
573
573
|
"isLValue": false,
|
574
574
|
"isPure": true,
|
@@ -582,7 +582,7 @@
|
|
582
582
|
"typeString": "function () pure returns (bytes memory)"
|
583
583
|
}
|
584
584
|
},
|
585
|
-
"id":
|
585
|
+
"id": 40486,
|
586
586
|
"isConstant": false,
|
587
587
|
"isLValue": false,
|
588
588
|
"isPure": false,
|
@@ -606,7 +606,7 @@
|
|
606
606
|
"typeString": "bytes memory"
|
607
607
|
}
|
608
608
|
],
|
609
|
-
"id":
|
609
|
+
"id": 40482,
|
610
610
|
"name": "keccak256",
|
611
611
|
"nodeType": "Identifier",
|
612
612
|
"overloadedDeclarations": [],
|
@@ -617,7 +617,7 @@
|
|
617
617
|
"typeString": "function (bytes memory) pure returns (bytes32)"
|
618
618
|
}
|
619
619
|
},
|
620
|
-
"id":
|
620
|
+
"id": 40487,
|
621
621
|
"isConstant": false,
|
622
622
|
"isLValue": false,
|
623
623
|
"isPure": false,
|
@@ -640,35 +640,35 @@
|
|
640
640
|
"expression": {
|
641
641
|
"arguments": [
|
642
642
|
{
|
643
|
-
"id":
|
643
|
+
"id": 40491,
|
644
644
|
"name": "store",
|
645
645
|
"nodeType": "Identifier",
|
646
646
|
"overloadedDeclarations": [],
|
647
|
-
"referencedDeclaration":
|
647
|
+
"referencedDeclaration": 40469,
|
648
648
|
"src": "954:5:117",
|
649
649
|
"typeDescriptions": {
|
650
|
-
"typeIdentifier": "t_contract$_IStore_$
|
650
|
+
"typeIdentifier": "t_contract$_IStore_$25557",
|
651
651
|
"typeString": "contract IStore"
|
652
652
|
}
|
653
653
|
},
|
654
654
|
{
|
655
|
-
"id":
|
655
|
+
"id": 40492,
|
656
656
|
"name": "tableId",
|
657
657
|
"nodeType": "Identifier",
|
658
658
|
"overloadedDeclarations": [],
|
659
|
-
"referencedDeclaration":
|
659
|
+
"referencedDeclaration": 40472,
|
660
660
|
"src": "961:7:117",
|
661
661
|
"typeDescriptions": {
|
662
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
662
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
663
663
|
"typeString": "ResourceId"
|
664
664
|
}
|
665
665
|
},
|
666
666
|
{
|
667
|
-
"id":
|
667
|
+
"id": 40493,
|
668
668
|
"name": "keysHash",
|
669
669
|
"nodeType": "Identifier",
|
670
670
|
"overloadedDeclarations": [],
|
671
|
-
"referencedDeclaration":
|
671
|
+
"referencedDeclaration": 40481,
|
672
672
|
"src": "970:8:117",
|
673
673
|
"typeDescriptions": {
|
674
674
|
"typeIdentifier": "t_bytes32",
|
@@ -679,11 +679,11 @@
|
|
679
679
|
"expression": {
|
680
680
|
"argumentTypes": [
|
681
681
|
{
|
682
|
-
"typeIdentifier": "t_contract$_IStore_$
|
682
|
+
"typeIdentifier": "t_contract$_IStore_$25557",
|
683
683
|
"typeString": "contract IStore"
|
684
684
|
},
|
685
685
|
{
|
686
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
686
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
687
687
|
"typeString": "ResourceId"
|
688
688
|
},
|
689
689
|
{
|
@@ -692,18 +692,18 @@
|
|
692
692
|
}
|
693
693
|
],
|
694
694
|
"expression": {
|
695
|
-
"id":
|
695
|
+
"id": 40489,
|
696
696
|
"name": "UsedKeysIndex",
|
697
697
|
"nodeType": "Identifier",
|
698
698
|
"overloadedDeclarations": [],
|
699
|
-
"referencedDeclaration":
|
699
|
+
"referencedDeclaration": 49320,
|
700
700
|
"src": "933:13:117",
|
701
701
|
"typeDescriptions": {
|
702
|
-
"typeIdentifier": "t_type$_t_contract$_UsedKeysIndex_$
|
702
|
+
"typeIdentifier": "t_type$_t_contract$_UsedKeysIndex_$49320_$",
|
703
703
|
"typeString": "type(library UsedKeysIndex)"
|
704
704
|
}
|
705
705
|
},
|
706
|
-
"id":
|
706
|
+
"id": 40490,
|
707
707
|
"isConstant": false,
|
708
708
|
"isLValue": false,
|
709
709
|
"isPure": false,
|
@@ -711,14 +711,14 @@
|
|
711
711
|
"memberLocation": "947:6:117",
|
712
712
|
"memberName": "getHas",
|
713
713
|
"nodeType": "MemberAccess",
|
714
|
-
"referencedDeclaration":
|
714
|
+
"referencedDeclaration": 48161,
|
715
715
|
"src": "933:20:117",
|
716
716
|
"typeDescriptions": {
|
717
|
-
"typeIdentifier": "t_function_internal_view$_t_contract$_IStore_$
|
717
|
+
"typeIdentifier": "t_function_internal_view$_t_contract$_IStore_$25557_$_t_userDefinedValueType$_ResourceId_$26238_$_t_bytes32_$returns$_t_bool_$",
|
718
718
|
"typeString": "function (contract IStore,ResourceId,bytes32) view returns (bool)"
|
719
719
|
}
|
720
720
|
},
|
721
|
-
"id":
|
721
|
+
"id": 40494,
|
722
722
|
"isConstant": false,
|
723
723
|
"isLValue": false,
|
724
724
|
"isPure": false,
|
@@ -734,15 +734,15 @@
|
|
734
734
|
"typeString": "bool"
|
735
735
|
}
|
736
736
|
},
|
737
|
-
"functionReturnParameters":
|
738
|
-
"id":
|
737
|
+
"functionReturnParameters": 40479,
|
738
|
+
"id": 40495,
|
739
739
|
"nodeType": "Return",
|
740
740
|
"src": "926:53:117"
|
741
741
|
}
|
742
742
|
]
|
743
743
|
},
|
744
744
|
"documentation": {
|
745
|
-
"id":
|
745
|
+
"id": 40466,
|
746
746
|
"nodeType": "StructuredDocumentation",
|
747
747
|
"src": "691:78:117",
|
748
748
|
"text": " Get whether the keyTuple is in the given table for the given store."
|
@@ -753,41 +753,41 @@
|
|
753
753
|
"name": "hasKey",
|
754
754
|
"nameLocation": "779:6:117",
|
755
755
|
"parameters": {
|
756
|
-
"id":
|
756
|
+
"id": 40476,
|
757
757
|
"nodeType": "ParameterList",
|
758
758
|
"parameters": [
|
759
759
|
{
|
760
760
|
"constant": false,
|
761
|
-
"id":
|
761
|
+
"id": 40469,
|
762
762
|
"mutability": "mutable",
|
763
763
|
"name": "store",
|
764
764
|
"nameLocation": "793:5:117",
|
765
765
|
"nodeType": "VariableDeclaration",
|
766
|
-
"scope":
|
766
|
+
"scope": 40497,
|
767
767
|
"src": "786:12:117",
|
768
768
|
"stateVariable": false,
|
769
769
|
"storageLocation": "default",
|
770
770
|
"typeDescriptions": {
|
771
|
-
"typeIdentifier": "t_contract$_IStore_$
|
771
|
+
"typeIdentifier": "t_contract$_IStore_$25557",
|
772
772
|
"typeString": "contract IStore"
|
773
773
|
},
|
774
774
|
"typeName": {
|
775
|
-
"id":
|
775
|
+
"id": 40468,
|
776
776
|
"nodeType": "UserDefinedTypeName",
|
777
777
|
"pathNode": {
|
778
|
-
"id":
|
778
|
+
"id": 40467,
|
779
779
|
"name": "IStore",
|
780
780
|
"nameLocations": [
|
781
781
|
"786:6:117"
|
782
782
|
],
|
783
783
|
"nodeType": "IdentifierPath",
|
784
|
-
"referencedDeclaration":
|
784
|
+
"referencedDeclaration": 25557,
|
785
785
|
"src": "786:6:117"
|
786
786
|
},
|
787
|
-
"referencedDeclaration":
|
787
|
+
"referencedDeclaration": 25557,
|
788
788
|
"src": "786:6:117",
|
789
789
|
"typeDescriptions": {
|
790
|
-
"typeIdentifier": "t_contract$_IStore_$
|
790
|
+
"typeIdentifier": "t_contract$_IStore_$25557",
|
791
791
|
"typeString": "contract IStore"
|
792
792
|
}
|
793
793
|
},
|
@@ -795,36 +795,36 @@
|
|
795
795
|
},
|
796
796
|
{
|
797
797
|
"constant": false,
|
798
|
-
"id":
|
798
|
+
"id": 40472,
|
799
799
|
"mutability": "mutable",
|
800
800
|
"name": "tableId",
|
801
801
|
"nameLocation": "811:7:117",
|
802
802
|
"nodeType": "VariableDeclaration",
|
803
|
-
"scope":
|
803
|
+
"scope": 40497,
|
804
804
|
"src": "800:18:117",
|
805
805
|
"stateVariable": false,
|
806
806
|
"storageLocation": "default",
|
807
807
|
"typeDescriptions": {
|
808
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
808
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
809
809
|
"typeString": "ResourceId"
|
810
810
|
},
|
811
811
|
"typeName": {
|
812
|
-
"id":
|
812
|
+
"id": 40471,
|
813
813
|
"nodeType": "UserDefinedTypeName",
|
814
814
|
"pathNode": {
|
815
|
-
"id":
|
815
|
+
"id": 40470,
|
816
816
|
"name": "ResourceId",
|
817
817
|
"nameLocations": [
|
818
818
|
"800:10:117"
|
819
819
|
],
|
820
820
|
"nodeType": "IdentifierPath",
|
821
|
-
"referencedDeclaration":
|
821
|
+
"referencedDeclaration": 26238,
|
822
822
|
"src": "800:10:117"
|
823
823
|
},
|
824
|
-
"referencedDeclaration":
|
824
|
+
"referencedDeclaration": 26238,
|
825
825
|
"src": "800:10:117",
|
826
826
|
"typeDescriptions": {
|
827
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
827
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
828
828
|
"typeString": "ResourceId"
|
829
829
|
}
|
830
830
|
},
|
@@ -832,12 +832,12 @@
|
|
832
832
|
},
|
833
833
|
{
|
834
834
|
"constant": false,
|
835
|
-
"id":
|
835
|
+
"id": 40475,
|
836
836
|
"mutability": "mutable",
|
837
837
|
"name": "keyTuple",
|
838
838
|
"nameLocation": "837:8:117",
|
839
839
|
"nodeType": "VariableDeclaration",
|
840
|
-
"scope":
|
840
|
+
"scope": 40497,
|
841
841
|
"src": "820:25:117",
|
842
842
|
"stateVariable": false,
|
843
843
|
"storageLocation": "memory",
|
@@ -847,7 +847,7 @@
|
|
847
847
|
},
|
848
848
|
"typeName": {
|
849
849
|
"baseType": {
|
850
|
-
"id":
|
850
|
+
"id": 40473,
|
851
851
|
"name": "bytes32",
|
852
852
|
"nodeType": "ElementaryTypeName",
|
853
853
|
"src": "820:7:117",
|
@@ -856,7 +856,7 @@
|
|
856
856
|
"typeString": "bytes32"
|
857
857
|
}
|
858
858
|
},
|
859
|
-
"id":
|
859
|
+
"id": 40474,
|
860
860
|
"nodeType": "ArrayTypeName",
|
861
861
|
"src": "820:9:117",
|
862
862
|
"typeDescriptions": {
|
@@ -870,17 +870,17 @@
|
|
870
870
|
"src": "785:61:117"
|
871
871
|
},
|
872
872
|
"returnParameters": {
|
873
|
-
"id":
|
873
|
+
"id": 40479,
|
874
874
|
"nodeType": "ParameterList",
|
875
875
|
"parameters": [
|
876
876
|
{
|
877
877
|
"constant": false,
|
878
|
-
"id":
|
878
|
+
"id": 40478,
|
879
879
|
"mutability": "mutable",
|
880
880
|
"name": "",
|
881
881
|
"nameLocation": "-1:-1:-1",
|
882
882
|
"nodeType": "VariableDeclaration",
|
883
|
-
"scope":
|
883
|
+
"scope": 40497,
|
884
884
|
"src": "861:4:117",
|
885
885
|
"stateVariable": false,
|
886
886
|
"storageLocation": "default",
|
@@ -889,7 +889,7 @@
|
|
889
889
|
"typeString": "bool"
|
890
890
|
},
|
891
891
|
"typeName": {
|
892
|
-
"id":
|
892
|
+
"id": 40477,
|
893
893
|
"name": "bool",
|
894
894
|
"nodeType": "ElementaryTypeName",
|
895
895
|
"src": "861:4:117",
|
@@ -903,7 +903,7 @@
|
|
903
903
|
],
|
904
904
|
"src": "860:6:117"
|
905
905
|
},
|
906
|
-
"scope":
|
906
|
+
"scope": 40498,
|
907
907
|
"stateMutability": "view",
|
908
908
|
"virtual": false,
|
909
909
|
"visibility": "internal"
|