@latticexyz/world-modules 2.0.0-main-e4e7d774 → 2.0.0-main-430e6b29
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/AccessControl.sol/AccessControl.json +200 -200
- package/out/ArrayLib.sol/ArrayLib.json +255 -255
- package/out/Balances.sol/Balances.json +1713 -1713
- package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +207 -207
- package/out/CallboundDelegations.sol/CallboundDelegations.json +2595 -2595
- package/out/DelegationControl.sol/DelegationControl.json +89 -89
- package/out/FunctionSelectors.sol/FunctionSelectors.json +2335 -2335
- package/out/Hooks.sol/Hooks.json +45 -45
- package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +18 -18
- package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +15 -15
- package/out/IBaseWorld.sol/IBaseWorld.json +68 -68
- package/out/IBatchCallSystem.sol/IBatchCallSystem.json +15 -15
- package/out/IDelegationControl.sol/IDelegationControl.json +11 -11
- package/out/ISystemHook.sol/ISystemHook.json +16 -16
- package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +13 -13
- package/out/IWorldErrors.sol/IWorldErrors.json +19 -19
- package/out/IWorldKernel.sol/IWorldCall.json +14 -14
- package/out/IWorldKernel.sol/IWorldKernel.json +14 -14
- package/out/IWorldKernel.sol/IWorldModuleInstallation.json +14 -14
- package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +43 -43
- package/out/KeysInTable.sol/KeysInTable.json +10668 -10668
- package/out/KeysInTableHook.sol/KeysInTableHook.json +861 -861
- package/out/KeysInTableModule.sol/KeysInTableModule.json +527 -527
- package/out/KeysWithValue.sol/KeysWithValue.json +3828 -3828
- package/out/KeysWithValueHook.sol/KeysWithValueHook.json +989 -989
- package/out/KeysWithValueModule.sol/KeysWithValueModule.json +416 -416
- package/out/Module.sol/Module.json +75 -75
- package/out/NamespaceOwner.sol/NamespaceOwner.json +464 -464
- package/out/ResourceAccess.sol/ResourceAccess.json +471 -471
- 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 +293 -293
- package/out/StoreHook.sol/StoreHook.json +368 -368
- package/out/StoreHooks.sol/StoreHooks.json +45 -45
- package/out/System.sol/System.json +19 -19
- package/out/SystemHooks.sol/SystemHooks.json +4091 -4091
- package/out/SystemSwitch.sol/SystemSwitch.json +356 -356
- package/out/Systems.sol/Systems.json +2459 -2459
- package/out/Tables.sol/Tables.json +73 -73
- package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +111 -111
- package/out/TimeboundDelegations.sol/TimeboundDelegations.json +1986 -1986
- package/out/UniqueEntity.sol/UniqueEntity.json +1402 -1402
- package/out/UniqueEntityModule.sol/UniqueEntityModule.json +317 -317
- package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +85 -85
- package/out/UsedKeysIndex.sol/UsedKeysIndex.json +2723 -2723
- package/out/WorldContext.sol/WorldContextConsumer.json +14 -14
- package/out/WorldContext.sol/WorldContextConsumerLib.json +14 -14
- package/out/WorldContext.sol/WorldContextProviderLib.json +14 -14
- package/out/WorldResourceId.sol/WorldResourceIdInstance.json +101 -101
- package/out/WorldResourceId.sol/WorldResourceIdLib.json +101 -101
- package/out/constants.sol/constants.json +403 -120
- 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 +105 -105
- package/out/hasKey.sol/hasKey.json +130 -130
- package/out/index.sol/index.json +53 -53
- package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +128 -128
- package/out/query.sol/query.json +1154 -1154
- package/out/revertWithBytes.sol/revertWithBytes.json +15 -15
- package/out/src/Bytes.sol/Bytes.json +1338 -1338
- package/out/src/FieldLayout.sol/FieldLayoutInstance.json +698 -698
- package/out/src/FieldLayout.sol/FieldLayoutLib.json +698 -698
- package/out/src/Hook.sol/HookInstance.json +331 -331
- package/out/src/Hook.sol/HookLib.json +331 -331
- package/out/src/IStore.sol/IStore.json +53 -53
- package/out/src/ISystemHook.sol/ISystemHook.json +90 -90
- package/out/src/IWorldErrors.sol/IWorldErrors.json +151 -151
- package/out/src/IWorldKernel.sol/IWorldCall.json +157 -157
- package/out/src/IWorldKernel.sol/IWorldKernel.json +157 -157
- package/out/src/IWorldKernel.sol/IWorldModuleInstallation.json +157 -157
- package/out/src/Memory.sol/Memory.json +91 -91
- package/out/src/PackedCounter.sol/PackedCounterInstance.json +929 -929
- package/out/src/PackedCounter.sol/PackedCounterLib.json +929 -929
- package/out/src/ResourceId.sol/ResourceIdInstance.json +116 -116
- package/out/src/ResourceId.sol/ResourceIdLib.json +116 -116
- package/out/src/Schema.sol/SchemaInstance.json +790 -790
- package/out/src/Schema.sol/SchemaLib.json +790 -790
- package/out/src/Slice.sol/SliceInstance.json +430 -430
- package/out/src/Slice.sol/SliceLib.json +430 -430
- 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 +2483 -2483
- package/out/src/WorldContext.sol/WorldContextConsumer.json +418 -418
- package/out/src/WorldContext.sol/WorldContextConsumerLib.json +418 -418
- package/out/src/WorldContext.sol/WorldContextProviderLib.json +418 -418
- package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +480 -480
- package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +480 -480
- package/out/storeHookTypes.sol/storeHookTypes.json +115 -115
- package/out/storeResourceTypes.sol/storeResourceTypes.json +12 -12
- package/out/systemHookTypes.sol/systemHookTypes.json +25 -25
- package/out/tables/ResourceIds.sol/ResourceIds.json +1747 -1747
- package/out/tables/Tables.sol/Tables.json +7288 -7288
- package/out/tightcoder/EncodeArray.sol/EncodeArray.json +3345 -3345
- package/out/types.sol/types.json +41 -41
- package/out/worldResourceTypes.sol/worldResourceTypes.json +53 -53
- package/package.json +8 -8
@@ -62,32 +62,32 @@
|
|
62
62
|
},
|
63
63
|
"ast": {
|
64
64
|
"absolutePath": "node_modules/@latticexyz/store/src/ResourceId.sol",
|
65
|
-
"id":
|
65
|
+
"id": 29211,
|
66
66
|
"exportedSymbols": {
|
67
67
|
"NAME_BITS": [
|
68
|
-
|
68
|
+
29153
|
69
69
|
],
|
70
70
|
"ResourceId": [
|
71
|
-
|
71
|
+
29139
|
72
72
|
],
|
73
73
|
"ResourceIdInstance": [
|
74
|
-
|
74
|
+
29210
|
75
75
|
],
|
76
76
|
"ResourceIdLib": [
|
77
|
-
|
77
|
+
29190
|
78
78
|
],
|
79
79
|
"TYPE_BITS": [
|
80
|
-
|
80
|
+
29145
|
81
81
|
],
|
82
82
|
"TYPE_MASK": [
|
83
|
-
|
83
|
+
29160
|
84
84
|
]
|
85
85
|
},
|
86
86
|
"nodeType": "SourceUnit",
|
87
87
|
"src": "32:1584:69",
|
88
88
|
"nodes": [
|
89
89
|
{
|
90
|
-
"id":
|
90
|
+
"id": 29137,
|
91
91
|
"nodeType": "PragmaDirective",
|
92
92
|
"src": "32:25:69",
|
93
93
|
"nodes": [],
|
@@ -99,7 +99,7 @@
|
|
99
99
|
]
|
100
100
|
},
|
101
101
|
{
|
102
|
-
"id":
|
102
|
+
"id": 29139,
|
103
103
|
"nodeType": "UserDefinedValueTypeDefinition",
|
104
104
|
"src": "213:27:69",
|
105
105
|
"nodes": [],
|
@@ -107,7 +107,7 @@
|
|
107
107
|
"name": "ResourceId",
|
108
108
|
"nameLocation": "218:10:69",
|
109
109
|
"underlyingType": {
|
110
|
-
"id":
|
110
|
+
"id": 29138,
|
111
111
|
"name": "bytes32",
|
112
112
|
"nodeType": "ElementaryTypeName",
|
113
113
|
"src": "232:7:69",
|
@@ -118,7 +118,7 @@
|
|
118
118
|
}
|
119
119
|
},
|
120
120
|
{
|
121
|
-
"id":
|
121
|
+
"id": 29145,
|
122
122
|
"nodeType": "VariableDeclaration",
|
123
123
|
"src": "307:34:69",
|
124
124
|
"nodes": [],
|
@@ -126,7 +126,7 @@
|
|
126
126
|
"mutability": "constant",
|
127
127
|
"name": "TYPE_BITS",
|
128
128
|
"nameLocation": "324:9:69",
|
129
|
-
"scope":
|
129
|
+
"scope": 29211,
|
130
130
|
"stateVariable": false,
|
131
131
|
"storageLocation": "default",
|
132
132
|
"typeDescriptions": {
|
@@ -134,7 +134,7 @@
|
|
134
134
|
"typeString": "uint256"
|
135
135
|
},
|
136
136
|
"typeName": {
|
137
|
-
"id":
|
137
|
+
"id": 29141,
|
138
138
|
"name": "uint256",
|
139
139
|
"nodeType": "ElementaryTypeName",
|
140
140
|
"src": "307:7:69",
|
@@ -148,14 +148,14 @@
|
|
148
148
|
"typeIdentifier": "t_rational_16_by_1",
|
149
149
|
"typeString": "int_const 16"
|
150
150
|
},
|
151
|
-
"id":
|
151
|
+
"id": 29144,
|
152
152
|
"isConstant": false,
|
153
153
|
"isLValue": false,
|
154
154
|
"isPure": true,
|
155
155
|
"lValueRequested": false,
|
156
156
|
"leftExpression": {
|
157
157
|
"hexValue": "32",
|
158
|
-
"id":
|
158
|
+
"id": 29142,
|
159
159
|
"isConstant": false,
|
160
160
|
"isLValue": false,
|
161
161
|
"isPure": true,
|
@@ -173,7 +173,7 @@
|
|
173
173
|
"operator": "*",
|
174
174
|
"rightExpression": {
|
175
175
|
"hexValue": "38",
|
176
|
-
"id":
|
176
|
+
"id": 29143,
|
177
177
|
"isConstant": false,
|
178
178
|
"isLValue": false,
|
179
179
|
"isPure": true,
|
@@ -196,7 +196,7 @@
|
|
196
196
|
"visibility": "internal"
|
197
197
|
},
|
198
198
|
{
|
199
|
-
"id":
|
199
|
+
"id": 29153,
|
200
200
|
"nodeType": "VariableDeclaration",
|
201
201
|
"src": "408:47:69",
|
202
202
|
"nodes": [],
|
@@ -204,7 +204,7 @@
|
|
204
204
|
"mutability": "constant",
|
205
205
|
"name": "NAME_BITS",
|
206
206
|
"nameLocation": "425:9:69",
|
207
|
-
"scope":
|
207
|
+
"scope": 29211,
|
208
208
|
"stateVariable": false,
|
209
209
|
"storageLocation": "default",
|
210
210
|
"typeDescriptions": {
|
@@ -212,7 +212,7 @@
|
|
212
212
|
"typeString": "uint256"
|
213
213
|
},
|
214
214
|
"typeName": {
|
215
|
-
"id":
|
215
|
+
"id": 29147,
|
216
216
|
"name": "uint256",
|
217
217
|
"nodeType": "ElementaryTypeName",
|
218
218
|
"src": "408:7:69",
|
@@ -226,7 +226,7 @@
|
|
226
226
|
"typeIdentifier": "t_uint256",
|
227
227
|
"typeString": "uint256"
|
228
228
|
},
|
229
|
-
"id":
|
229
|
+
"id": 29152,
|
230
230
|
"isConstant": false,
|
231
231
|
"isLValue": false,
|
232
232
|
"isPure": true,
|
@@ -236,14 +236,14 @@
|
|
236
236
|
"typeIdentifier": "t_rational_256_by_1",
|
237
237
|
"typeString": "int_const 256"
|
238
238
|
},
|
239
|
-
"id":
|
239
|
+
"id": 29150,
|
240
240
|
"isConstant": false,
|
241
241
|
"isLValue": false,
|
242
242
|
"isPure": true,
|
243
243
|
"lValueRequested": false,
|
244
244
|
"leftExpression": {
|
245
245
|
"hexValue": "3332",
|
246
|
-
"id":
|
246
|
+
"id": 29148,
|
247
247
|
"isConstant": false,
|
248
248
|
"isLValue": false,
|
249
249
|
"isPure": true,
|
@@ -261,7 +261,7 @@
|
|
261
261
|
"operator": "*",
|
262
262
|
"rightExpression": {
|
263
263
|
"hexValue": "38",
|
264
|
-
"id":
|
264
|
+
"id": 29149,
|
265
265
|
"isConstant": false,
|
266
266
|
"isLValue": false,
|
267
267
|
"isPure": true,
|
@@ -284,11 +284,11 @@
|
|
284
284
|
"nodeType": "BinaryOperation",
|
285
285
|
"operator": "-",
|
286
286
|
"rightExpression": {
|
287
|
-
"id":
|
287
|
+
"id": 29151,
|
288
288
|
"name": "TYPE_BITS",
|
289
289
|
"nodeType": "Identifier",
|
290
290
|
"overloadedDeclarations": [],
|
291
|
-
"referencedDeclaration":
|
291
|
+
"referencedDeclaration": 29145,
|
292
292
|
"src": "446:9:69",
|
293
293
|
"typeDescriptions": {
|
294
294
|
"typeIdentifier": "t_uint256",
|
@@ -304,7 +304,7 @@
|
|
304
304
|
"visibility": "internal"
|
305
305
|
},
|
306
306
|
{
|
307
|
-
"id":
|
307
|
+
"id": 29160,
|
308
308
|
"nodeType": "VariableDeclaration",
|
309
309
|
"src": "516:47:69",
|
310
310
|
"nodes": [],
|
@@ -312,7 +312,7 @@
|
|
312
312
|
"mutability": "constant",
|
313
313
|
"name": "TYPE_MASK",
|
314
314
|
"nameLocation": "533:9:69",
|
315
|
-
"scope":
|
315
|
+
"scope": 29211,
|
316
316
|
"stateVariable": false,
|
317
317
|
"storageLocation": "default",
|
318
318
|
"typeDescriptions": {
|
@@ -320,7 +320,7 @@
|
|
320
320
|
"typeString": "bytes32"
|
321
321
|
},
|
322
322
|
"typeName": {
|
323
|
-
"id":
|
323
|
+
"id": 29155,
|
324
324
|
"name": "bytes32",
|
325
325
|
"nodeType": "ElementaryTypeName",
|
326
326
|
"src": "516:7:69",
|
@@ -333,7 +333,7 @@
|
|
333
333
|
"arguments": [
|
334
334
|
{
|
335
335
|
"hexValue": "ffff",
|
336
|
-
"id":
|
336
|
+
"id": 29158,
|
337
337
|
"isConstant": false,
|
338
338
|
"isLValue": false,
|
339
339
|
"isPure": true,
|
@@ -354,7 +354,7 @@
|
|
354
354
|
"typeString": "literal_string hex\"ffff\""
|
355
355
|
}
|
356
356
|
],
|
357
|
-
"id":
|
357
|
+
"id": 29157,
|
358
358
|
"isConstant": false,
|
359
359
|
"isLValue": false,
|
360
360
|
"isPure": true,
|
@@ -366,14 +366,14 @@
|
|
366
366
|
"typeString": "type(bytes32)"
|
367
367
|
},
|
368
368
|
"typeName": {
|
369
|
-
"id":
|
369
|
+
"id": 29156,
|
370
370
|
"name": "bytes32",
|
371
371
|
"nodeType": "ElementaryTypeName",
|
372
372
|
"src": "545:7:69",
|
373
373
|
"typeDescriptions": {}
|
374
374
|
}
|
375
375
|
},
|
376
|
-
"id":
|
376
|
+
"id": 29159,
|
377
377
|
"isConstant": false,
|
378
378
|
"isLValue": false,
|
379
379
|
"isPure": true,
|
@@ -392,17 +392,17 @@
|
|
392
392
|
"visibility": "internal"
|
393
393
|
},
|
394
394
|
{
|
395
|
-
"id":
|
395
|
+
"id": 29190,
|
396
396
|
"nodeType": "ContractDefinition",
|
397
397
|
"src": "668:459:69",
|
398
398
|
"nodes": [
|
399
399
|
{
|
400
|
-
"id":
|
400
|
+
"id": 29189,
|
401
401
|
"nodeType": "FunctionDefinition",
|
402
402
|
"src": "964:161:69",
|
403
403
|
"nodes": [],
|
404
404
|
"body": {
|
405
|
-
"id":
|
405
|
+
"id": 29188,
|
406
406
|
"nodeType": "Block",
|
407
407
|
"src": "1044:81:69",
|
408
408
|
"nodes": [],
|
@@ -415,7 +415,7 @@
|
|
415
415
|
"typeIdentifier": "t_bytes32",
|
416
416
|
"typeString": "bytes32"
|
417
417
|
},
|
418
|
-
"id":
|
418
|
+
"id": 29185,
|
419
419
|
"isConstant": false,
|
420
420
|
"isLValue": false,
|
421
421
|
"isPure": false,
|
@@ -423,11 +423,11 @@
|
|
423
423
|
"leftExpression": {
|
424
424
|
"arguments": [
|
425
425
|
{
|
426
|
-
"id":
|
426
|
+
"id": 29176,
|
427
427
|
"name": "typeId",
|
428
428
|
"nodeType": "Identifier",
|
429
429
|
"overloadedDeclarations": [],
|
430
|
-
"referencedDeclaration":
|
430
|
+
"referencedDeclaration": 29164,
|
431
431
|
"src": "1081:6:69",
|
432
432
|
"typeDescriptions": {
|
433
433
|
"typeIdentifier": "t_bytes2",
|
@@ -442,7 +442,7 @@
|
|
442
442
|
"typeString": "bytes2"
|
443
443
|
}
|
444
444
|
],
|
445
|
-
"id":
|
445
|
+
"id": 29175,
|
446
446
|
"isConstant": false,
|
447
447
|
"isLValue": false,
|
448
448
|
"isPure": true,
|
@@ -454,14 +454,14 @@
|
|
454
454
|
"typeString": "type(bytes32)"
|
455
455
|
},
|
456
456
|
"typeName": {
|
457
|
-
"id":
|
457
|
+
"id": 29174,
|
458
458
|
"name": "bytes32",
|
459
459
|
"nodeType": "ElementaryTypeName",
|
460
460
|
"src": "1073:7:69",
|
461
461
|
"typeDescriptions": {}
|
462
462
|
}
|
463
463
|
},
|
464
|
-
"id":
|
464
|
+
"id": 29177,
|
465
465
|
"isConstant": false,
|
466
466
|
"isLValue": false,
|
467
467
|
"isPure": false,
|
@@ -486,7 +486,7 @@
|
|
486
486
|
"typeIdentifier": "t_bytes32",
|
487
487
|
"typeString": "bytes32"
|
488
488
|
},
|
489
|
-
"id":
|
489
|
+
"id": 29183,
|
490
490
|
"isConstant": false,
|
491
491
|
"isLValue": false,
|
492
492
|
"isPure": false,
|
@@ -494,11 +494,11 @@
|
|
494
494
|
"leftExpression": {
|
495
495
|
"arguments": [
|
496
496
|
{
|
497
|
-
"id":
|
497
|
+
"id": 29180,
|
498
498
|
"name": "name",
|
499
499
|
"nodeType": "Identifier",
|
500
500
|
"overloadedDeclarations": [],
|
501
|
-
"referencedDeclaration":
|
501
|
+
"referencedDeclaration": 29166,
|
502
502
|
"src": "1100:4:69",
|
503
503
|
"typeDescriptions": {
|
504
504
|
"typeIdentifier": "t_bytes30",
|
@@ -513,7 +513,7 @@
|
|
513
513
|
"typeString": "bytes30"
|
514
514
|
}
|
515
515
|
],
|
516
|
-
"id":
|
516
|
+
"id": 29179,
|
517
517
|
"isConstant": false,
|
518
518
|
"isLValue": false,
|
519
519
|
"isPure": true,
|
@@ -525,14 +525,14 @@
|
|
525
525
|
"typeString": "type(bytes32)"
|
526
526
|
},
|
527
527
|
"typeName": {
|
528
|
-
"id":
|
528
|
+
"id": 29178,
|
529
529
|
"name": "bytes32",
|
530
530
|
"nodeType": "ElementaryTypeName",
|
531
531
|
"src": "1092:7:69",
|
532
532
|
"typeDescriptions": {}
|
533
533
|
}
|
534
534
|
},
|
535
|
-
"id":
|
535
|
+
"id": 29181,
|
536
536
|
"isConstant": false,
|
537
537
|
"isLValue": false,
|
538
538
|
"isPure": false,
|
@@ -551,11 +551,11 @@
|
|
551
551
|
"nodeType": "BinaryOperation",
|
552
552
|
"operator": ">>",
|
553
553
|
"rightExpression": {
|
554
|
-
"id":
|
554
|
+
"id": 29182,
|
555
555
|
"name": "TYPE_BITS",
|
556
556
|
"nodeType": "Identifier",
|
557
557
|
"overloadedDeclarations": [],
|
558
|
-
"referencedDeclaration":
|
558
|
+
"referencedDeclaration": 29145,
|
559
559
|
"src": "1109:9:69",
|
560
560
|
"typeDescriptions": {
|
561
561
|
"typeIdentifier": "t_uint256",
|
@@ -569,7 +569,7 @@
|
|
569
569
|
}
|
570
570
|
}
|
571
571
|
],
|
572
|
-
"id":
|
572
|
+
"id": 29184,
|
573
573
|
"isConstant": false,
|
574
574
|
"isInlineArray": false,
|
575
575
|
"isLValue": false,
|
@@ -597,18 +597,18 @@
|
|
597
597
|
}
|
598
598
|
],
|
599
599
|
"expression": {
|
600
|
-
"id":
|
600
|
+
"id": 29172,
|
601
601
|
"name": "ResourceId",
|
602
602
|
"nodeType": "Identifier",
|
603
603
|
"overloadedDeclarations": [],
|
604
|
-
"referencedDeclaration":
|
604
|
+
"referencedDeclaration": 29139,
|
605
605
|
"src": "1057:10:69",
|
606
606
|
"typeDescriptions": {
|
607
|
-
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$
|
607
|
+
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$29139_$",
|
608
608
|
"typeString": "type(ResourceId)"
|
609
609
|
}
|
610
610
|
},
|
611
|
-
"id":
|
611
|
+
"id": 29173,
|
612
612
|
"isConstant": false,
|
613
613
|
"isLValue": false,
|
614
614
|
"isPure": true,
|
@@ -618,11 +618,11 @@
|
|
618
618
|
"nodeType": "MemberAccess",
|
619
619
|
"src": "1057:15:69",
|
620
620
|
"typeDescriptions": {
|
621
|
-
"typeIdentifier": "t_function_wrap_pure$_t_bytes32_$returns$_t_userDefinedValueType$_ResourceId_$
|
621
|
+
"typeIdentifier": "t_function_wrap_pure$_t_bytes32_$returns$_t_userDefinedValueType$_ResourceId_$29139_$",
|
622
622
|
"typeString": "function (bytes32) pure returns (ResourceId)"
|
623
623
|
}
|
624
624
|
},
|
625
|
-
"id":
|
625
|
+
"id": 29186,
|
626
626
|
"isConstant": false,
|
627
627
|
"isLValue": false,
|
628
628
|
"isPure": false,
|
@@ -634,19 +634,19 @@
|
|
634
634
|
"src": "1057:63:69",
|
635
635
|
"tryCall": false,
|
636
636
|
"typeDescriptions": {
|
637
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
637
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
|
638
638
|
"typeString": "ResourceId"
|
639
639
|
}
|
640
640
|
},
|
641
|
-
"functionReturnParameters":
|
642
|
-
"id":
|
641
|
+
"functionReturnParameters": 29171,
|
642
|
+
"id": 29187,
|
643
643
|
"nodeType": "Return",
|
644
644
|
"src": "1050:70:69"
|
645
645
|
}
|
646
646
|
]
|
647
647
|
},
|
648
648
|
"documentation": {
|
649
|
-
"id":
|
649
|
+
"id": 29162,
|
650
650
|
"nodeType": "StructuredDocumentation",
|
651
651
|
"src": "694:267:69",
|
652
652
|
"text": " @notice Encodes given typeId and name into a ResourceId.\n @param typeId The type identifier to be encoded. Must be 2 bytes.\n @param name The name to be encoded. Must be 30 bytes.\n @return A ResourceId containing the encoded typeId and name."
|
@@ -657,17 +657,17 @@
|
|
657
657
|
"name": "encode",
|
658
658
|
"nameLocation": "973:6:69",
|
659
659
|
"parameters": {
|
660
|
-
"id":
|
660
|
+
"id": 29167,
|
661
661
|
"nodeType": "ParameterList",
|
662
662
|
"parameters": [
|
663
663
|
{
|
664
664
|
"constant": false,
|
665
|
-
"id":
|
665
|
+
"id": 29164,
|
666
666
|
"mutability": "mutable",
|
667
667
|
"name": "typeId",
|
668
668
|
"nameLocation": "987:6:69",
|
669
669
|
"nodeType": "VariableDeclaration",
|
670
|
-
"scope":
|
670
|
+
"scope": 29189,
|
671
671
|
"src": "980:13:69",
|
672
672
|
"stateVariable": false,
|
673
673
|
"storageLocation": "default",
|
@@ -676,7 +676,7 @@
|
|
676
676
|
"typeString": "bytes2"
|
677
677
|
},
|
678
678
|
"typeName": {
|
679
|
-
"id":
|
679
|
+
"id": 29163,
|
680
680
|
"name": "bytes2",
|
681
681
|
"nodeType": "ElementaryTypeName",
|
682
682
|
"src": "980:6:69",
|
@@ -689,12 +689,12 @@
|
|
689
689
|
},
|
690
690
|
{
|
691
691
|
"constant": false,
|
692
|
-
"id":
|
692
|
+
"id": 29166,
|
693
693
|
"mutability": "mutable",
|
694
694
|
"name": "name",
|
695
695
|
"nameLocation": "1003:4:69",
|
696
696
|
"nodeType": "VariableDeclaration",
|
697
|
-
"scope":
|
697
|
+
"scope": 29189,
|
698
698
|
"src": "995:12:69",
|
699
699
|
"stateVariable": false,
|
700
700
|
"storageLocation": "default",
|
@@ -703,7 +703,7 @@
|
|
703
703
|
"typeString": "bytes30"
|
704
704
|
},
|
705
705
|
"typeName": {
|
706
|
-
"id":
|
706
|
+
"id": 29165,
|
707
707
|
"name": "bytes30",
|
708
708
|
"nodeType": "ElementaryTypeName",
|
709
709
|
"src": "995:7:69",
|
@@ -718,41 +718,41 @@
|
|
718
718
|
"src": "979:29:69"
|
719
719
|
},
|
720
720
|
"returnParameters": {
|
721
|
-
"id":
|
721
|
+
"id": 29171,
|
722
722
|
"nodeType": "ParameterList",
|
723
723
|
"parameters": [
|
724
724
|
{
|
725
725
|
"constant": false,
|
726
|
-
"id":
|
726
|
+
"id": 29170,
|
727
727
|
"mutability": "mutable",
|
728
728
|
"name": "",
|
729
729
|
"nameLocation": "-1:-1:-1",
|
730
730
|
"nodeType": "VariableDeclaration",
|
731
|
-
"scope":
|
731
|
+
"scope": 29189,
|
732
732
|
"src": "1032:10:69",
|
733
733
|
"stateVariable": false,
|
734
734
|
"storageLocation": "default",
|
735
735
|
"typeDescriptions": {
|
736
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
736
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
|
737
737
|
"typeString": "ResourceId"
|
738
738
|
},
|
739
739
|
"typeName": {
|
740
|
-
"id":
|
740
|
+
"id": 29169,
|
741
741
|
"nodeType": "UserDefinedTypeName",
|
742
742
|
"pathNode": {
|
743
|
-
"id":
|
743
|
+
"id": 29168,
|
744
744
|
"name": "ResourceId",
|
745
745
|
"nameLocations": [
|
746
746
|
"1032:10:69"
|
747
747
|
],
|
748
748
|
"nodeType": "IdentifierPath",
|
749
|
-
"referencedDeclaration":
|
749
|
+
"referencedDeclaration": 29139,
|
750
750
|
"src": "1032:10:69"
|
751
751
|
},
|
752
|
-
"referencedDeclaration":
|
752
|
+
"referencedDeclaration": 29139,
|
753
753
|
"src": "1032:10:69",
|
754
754
|
"typeDescriptions": {
|
755
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
755
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
|
756
756
|
"typeString": "ResourceId"
|
757
757
|
}
|
758
758
|
},
|
@@ -761,7 +761,7 @@
|
|
761
761
|
],
|
762
762
|
"src": "1031:12:69"
|
763
763
|
},
|
764
|
-
"scope":
|
764
|
+
"scope": 29190,
|
765
765
|
"stateMutability": "pure",
|
766
766
|
"virtual": false,
|
767
767
|
"visibility": "internal"
|
@@ -773,33 +773,33 @@
|
|
773
773
|
"contractDependencies": [],
|
774
774
|
"contractKind": "library",
|
775
775
|
"documentation": {
|
776
|
-
"id":
|
776
|
+
"id": 29161,
|
777
777
|
"nodeType": "StructuredDocumentation",
|
778
778
|
"src": "566:101:69",
|
779
779
|
"text": " @title ResourceIdLib Library\n @dev Provides functions to encode data into the ResourceId"
|
780
780
|
},
|
781
781
|
"fullyImplemented": true,
|
782
782
|
"linearizedBaseContracts": [
|
783
|
-
|
783
|
+
29190
|
784
784
|
],
|
785
785
|
"name": "ResourceIdLib",
|
786
786
|
"nameLocation": "676:13:69",
|
787
|
-
"scope":
|
787
|
+
"scope": 29211,
|
788
788
|
"usedErrors": [],
|
789
789
|
"usedEvents": []
|
790
790
|
},
|
791
791
|
{
|
792
|
-
"id":
|
792
|
+
"id": 29210,
|
793
793
|
"nodeType": "ContractDefinition",
|
794
794
|
"src": "1236:379:69",
|
795
795
|
"nodes": [
|
796
796
|
{
|
797
|
-
"id":
|
797
|
+
"id": 29209,
|
798
798
|
"nodeType": "FunctionDefinition",
|
799
799
|
"src": "1487:126:69",
|
800
800
|
"nodes": [],
|
801
801
|
"body": {
|
802
|
-
"id":
|
802
|
+
"id": 29208,
|
803
803
|
"nodeType": "Block",
|
804
804
|
"src": "1558:55:69",
|
805
805
|
"nodes": [],
|
@@ -810,14 +810,14 @@
|
|
810
810
|
{
|
811
811
|
"arguments": [
|
812
812
|
{
|
813
|
-
"id":
|
813
|
+
"id": 29204,
|
814
814
|
"name": "resourceId",
|
815
815
|
"nodeType": "Identifier",
|
816
816
|
"overloadedDeclarations": [],
|
817
|
-
"referencedDeclaration":
|
817
|
+
"referencedDeclaration": 29195,
|
818
818
|
"src": "1596:10:69",
|
819
819
|
"typeDescriptions": {
|
820
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
820
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
|
821
821
|
"typeString": "ResourceId"
|
822
822
|
}
|
823
823
|
}
|
@@ -825,23 +825,23 @@
|
|
825
825
|
"expression": {
|
826
826
|
"argumentTypes": [
|
827
827
|
{
|
828
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
828
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
|
829
829
|
"typeString": "ResourceId"
|
830
830
|
}
|
831
831
|
],
|
832
832
|
"expression": {
|
833
|
-
"id":
|
833
|
+
"id": 29202,
|
834
834
|
"name": "ResourceId",
|
835
835
|
"nodeType": "Identifier",
|
836
836
|
"overloadedDeclarations": [],
|
837
|
-
"referencedDeclaration":
|
837
|
+
"referencedDeclaration": 29139,
|
838
838
|
"src": "1578:10:69",
|
839
839
|
"typeDescriptions": {
|
840
|
-
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$
|
840
|
+
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$29139_$",
|
841
841
|
"typeString": "type(ResourceId)"
|
842
842
|
}
|
843
843
|
},
|
844
|
-
"id":
|
844
|
+
"id": 29203,
|
845
845
|
"isConstant": false,
|
846
846
|
"isLValue": false,
|
847
847
|
"isPure": true,
|
@@ -851,11 +851,11 @@
|
|
851
851
|
"nodeType": "MemberAccess",
|
852
852
|
"src": "1578:17:69",
|
853
853
|
"typeDescriptions": {
|
854
|
-
"typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_ResourceId_$
|
854
|
+
"typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_ResourceId_$29139_$returns$_t_bytes32_$",
|
855
855
|
"typeString": "function (ResourceId) pure returns (bytes32)"
|
856
856
|
}
|
857
857
|
},
|
858
|
-
"id":
|
858
|
+
"id": 29205,
|
859
859
|
"isConstant": false,
|
860
860
|
"isLValue": false,
|
861
861
|
"isPure": false,
|
@@ -879,7 +879,7 @@
|
|
879
879
|
"typeString": "bytes32"
|
880
880
|
}
|
881
881
|
],
|
882
|
-
"id":
|
882
|
+
"id": 29201,
|
883
883
|
"isConstant": false,
|
884
884
|
"isLValue": false,
|
885
885
|
"isPure": true,
|
@@ -891,14 +891,14 @@
|
|
891
891
|
"typeString": "type(bytes2)"
|
892
892
|
},
|
893
893
|
"typeName": {
|
894
|
-
"id":
|
894
|
+
"id": 29200,
|
895
895
|
"name": "bytes2",
|
896
896
|
"nodeType": "ElementaryTypeName",
|
897
897
|
"src": "1571:6:69",
|
898
898
|
"typeDescriptions": {}
|
899
899
|
}
|
900
900
|
},
|
901
|
-
"id":
|
901
|
+
"id": 29206,
|
902
902
|
"isConstant": false,
|
903
903
|
"isLValue": false,
|
904
904
|
"isPure": false,
|
@@ -914,15 +914,15 @@
|
|
914
914
|
"typeString": "bytes2"
|
915
915
|
}
|
916
916
|
},
|
917
|
-
"functionReturnParameters":
|
918
|
-
"id":
|
917
|
+
"functionReturnParameters": 29199,
|
918
|
+
"id": 29207,
|
919
919
|
"nodeType": "Return",
|
920
920
|
"src": "1564:44:69"
|
921
921
|
}
|
922
922
|
]
|
923
923
|
},
|
924
924
|
"documentation": {
|
925
|
-
"id":
|
925
|
+
"id": 29192,
|
926
926
|
"nodeType": "StructuredDocumentation",
|
927
927
|
"src": "1267:217:69",
|
928
928
|
"text": " @notice Extracts the type identifier from a given ResourceId.\n @param resourceId The ResourceId from which the type identifier should be extracted.\n @return The extracted 2-byte type identifier."
|
@@ -933,41 +933,41 @@
|
|
933
933
|
"name": "getType",
|
934
934
|
"nameLocation": "1496:7:69",
|
935
935
|
"parameters": {
|
936
|
-
"id":
|
936
|
+
"id": 29196,
|
937
937
|
"nodeType": "ParameterList",
|
938
938
|
"parameters": [
|
939
939
|
{
|
940
940
|
"constant": false,
|
941
|
-
"id":
|
941
|
+
"id": 29195,
|
942
942
|
"mutability": "mutable",
|
943
943
|
"name": "resourceId",
|
944
944
|
"nameLocation": "1515:10:69",
|
945
945
|
"nodeType": "VariableDeclaration",
|
946
|
-
"scope":
|
946
|
+
"scope": 29209,
|
947
947
|
"src": "1504:21:69",
|
948
948
|
"stateVariable": false,
|
949
949
|
"storageLocation": "default",
|
950
950
|
"typeDescriptions": {
|
951
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
951
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
|
952
952
|
"typeString": "ResourceId"
|
953
953
|
},
|
954
954
|
"typeName": {
|
955
|
-
"id":
|
955
|
+
"id": 29194,
|
956
956
|
"nodeType": "UserDefinedTypeName",
|
957
957
|
"pathNode": {
|
958
|
-
"id":
|
958
|
+
"id": 29193,
|
959
959
|
"name": "ResourceId",
|
960
960
|
"nameLocations": [
|
961
961
|
"1504:10:69"
|
962
962
|
],
|
963
963
|
"nodeType": "IdentifierPath",
|
964
|
-
"referencedDeclaration":
|
964
|
+
"referencedDeclaration": 29139,
|
965
965
|
"src": "1504:10:69"
|
966
966
|
},
|
967
|
-
"referencedDeclaration":
|
967
|
+
"referencedDeclaration": 29139,
|
968
968
|
"src": "1504:10:69",
|
969
969
|
"typeDescriptions": {
|
970
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
970
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
|
971
971
|
"typeString": "ResourceId"
|
972
972
|
}
|
973
973
|
},
|
@@ -977,17 +977,17 @@
|
|
977
977
|
"src": "1503:23:69"
|
978
978
|
},
|
979
979
|
"returnParameters": {
|
980
|
-
"id":
|
980
|
+
"id": 29199,
|
981
981
|
"nodeType": "ParameterList",
|
982
982
|
"parameters": [
|
983
983
|
{
|
984
984
|
"constant": false,
|
985
|
-
"id":
|
985
|
+
"id": 29198,
|
986
986
|
"mutability": "mutable",
|
987
987
|
"name": "",
|
988
988
|
"nameLocation": "-1:-1:-1",
|
989
989
|
"nodeType": "VariableDeclaration",
|
990
|
-
"scope":
|
990
|
+
"scope": 29209,
|
991
991
|
"src": "1550:6:69",
|
992
992
|
"stateVariable": false,
|
993
993
|
"storageLocation": "default",
|
@@ -996,7 +996,7 @@
|
|
996
996
|
"typeString": "bytes2"
|
997
997
|
},
|
998
998
|
"typeName": {
|
999
|
-
"id":
|
999
|
+
"id": 29197,
|
1000
1000
|
"name": "bytes2",
|
1001
1001
|
"nodeType": "ElementaryTypeName",
|
1002
1002
|
"src": "1550:6:69",
|
@@ -1010,7 +1010,7 @@
|
|
1010
1010
|
],
|
1011
1011
|
"src": "1549:8:69"
|
1012
1012
|
},
|
1013
|
-
"scope":
|
1013
|
+
"scope": 29210,
|
1014
1014
|
"stateMutability": "pure",
|
1015
1015
|
"virtual": false,
|
1016
1016
|
"visibility": "internal"
|
@@ -1022,18 +1022,18 @@
|
|
1022
1022
|
"contractDependencies": [],
|
1023
1023
|
"contractKind": "library",
|
1024
1024
|
"documentation": {
|
1025
|
-
"id":
|
1025
|
+
"id": 29191,
|
1026
1026
|
"nodeType": "StructuredDocumentation",
|
1027
1027
|
"src": "1129:106:69",
|
1028
1028
|
"text": " @title ResourceIdInstance Library\n @dev Provides functions to extract data from a ResourceId."
|
1029
1029
|
},
|
1030
1030
|
"fullyImplemented": true,
|
1031
1031
|
"linearizedBaseContracts": [
|
1032
|
-
|
1032
|
+
29210
|
1033
1033
|
],
|
1034
1034
|
"name": "ResourceIdInstance",
|
1035
1035
|
"nameLocation": "1244:18:69",
|
1036
|
-
"scope":
|
1036
|
+
"scope": 29211,
|
1037
1037
|
"usedErrors": [],
|
1038
1038
|
"usedEvents": []
|
1039
1039
|
}
|