@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.
Files changed (99) hide show
  1. package/out/AccessControl.sol/AccessControl.json +200 -200
  2. package/out/ArrayLib.sol/ArrayLib.json +255 -255
  3. package/out/Balances.sol/Balances.json +1713 -1713
  4. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +207 -207
  5. package/out/CallboundDelegations.sol/CallboundDelegations.json +2595 -2595
  6. package/out/DelegationControl.sol/DelegationControl.json +89 -89
  7. package/out/FunctionSelectors.sol/FunctionSelectors.json +2335 -2335
  8. package/out/Hooks.sol/Hooks.json +45 -45
  9. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +18 -18
  10. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +15 -15
  11. package/out/IBaseWorld.sol/IBaseWorld.json +68 -68
  12. package/out/IBatchCallSystem.sol/IBatchCallSystem.json +15 -15
  13. package/out/IDelegationControl.sol/IDelegationControl.json +11 -11
  14. package/out/ISystemHook.sol/ISystemHook.json +16 -16
  15. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +13 -13
  16. package/out/IWorldErrors.sol/IWorldErrors.json +19 -19
  17. package/out/IWorldKernel.sol/IWorldCall.json +14 -14
  18. package/out/IWorldKernel.sol/IWorldKernel.json +14 -14
  19. package/out/IWorldKernel.sol/IWorldModuleInstallation.json +14 -14
  20. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +43 -43
  21. package/out/KeysInTable.sol/KeysInTable.json +10668 -10668
  22. package/out/KeysInTableHook.sol/KeysInTableHook.json +861 -861
  23. package/out/KeysInTableModule.sol/KeysInTableModule.json +527 -527
  24. package/out/KeysWithValue.sol/KeysWithValue.json +3828 -3828
  25. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +989 -989
  26. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +416 -416
  27. package/out/Module.sol/Module.json +75 -75
  28. package/out/NamespaceOwner.sol/NamespaceOwner.json +464 -464
  29. package/out/ResourceAccess.sol/ResourceAccess.json +471 -471
  30. package/out/ResourceIds.sol/ResourceIds.json +45 -45
  31. package/out/Schema.sol/SchemaInstance.json +30 -30
  32. package/out/Schema.sol/SchemaLib.json +30 -30
  33. package/out/SchemaType.sol/SchemaType.json +276 -276
  34. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +293 -293
  35. package/out/StoreHook.sol/StoreHook.json +368 -368
  36. package/out/StoreHooks.sol/StoreHooks.json +45 -45
  37. package/out/System.sol/System.json +19 -19
  38. package/out/SystemHooks.sol/SystemHooks.json +4091 -4091
  39. package/out/SystemSwitch.sol/SystemSwitch.json +356 -356
  40. package/out/Systems.sol/Systems.json +2459 -2459
  41. package/out/Tables.sol/Tables.json +73 -73
  42. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +111 -111
  43. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +1986 -1986
  44. package/out/UniqueEntity.sol/UniqueEntity.json +1402 -1402
  45. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +317 -317
  46. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +85 -85
  47. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +2723 -2723
  48. package/out/WorldContext.sol/WorldContextConsumer.json +14 -14
  49. package/out/WorldContext.sol/WorldContextConsumerLib.json +14 -14
  50. package/out/WorldContext.sol/WorldContextProviderLib.json +14 -14
  51. package/out/WorldResourceId.sol/WorldResourceIdInstance.json +101 -101
  52. package/out/WorldResourceId.sol/WorldResourceIdLib.json +101 -101
  53. package/out/constants.sol/constants.json +403 -120
  54. package/out/getKeysInTable.sol/getKeysInTable.json +564 -564
  55. package/out/getKeysWithValue.sol/getKeysWithValue.json +264 -264
  56. package/out/getTargetTableId.sol/getTargetTableId.json +163 -163
  57. package/out/getUniqueEntity.sol/getUniqueEntity.json +105 -105
  58. package/out/hasKey.sol/hasKey.json +130 -130
  59. package/out/index.sol/index.json +53 -53
  60. package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +128 -128
  61. package/out/query.sol/query.json +1154 -1154
  62. package/out/revertWithBytes.sol/revertWithBytes.json +15 -15
  63. package/out/src/Bytes.sol/Bytes.json +1338 -1338
  64. package/out/src/FieldLayout.sol/FieldLayoutInstance.json +698 -698
  65. package/out/src/FieldLayout.sol/FieldLayoutLib.json +698 -698
  66. package/out/src/Hook.sol/HookInstance.json +331 -331
  67. package/out/src/Hook.sol/HookLib.json +331 -331
  68. package/out/src/IStore.sol/IStore.json +53 -53
  69. package/out/src/ISystemHook.sol/ISystemHook.json +90 -90
  70. package/out/src/IWorldErrors.sol/IWorldErrors.json +151 -151
  71. package/out/src/IWorldKernel.sol/IWorldCall.json +157 -157
  72. package/out/src/IWorldKernel.sol/IWorldKernel.json +157 -157
  73. package/out/src/IWorldKernel.sol/IWorldModuleInstallation.json +157 -157
  74. package/out/src/Memory.sol/Memory.json +91 -91
  75. package/out/src/PackedCounter.sol/PackedCounterInstance.json +929 -929
  76. package/out/src/PackedCounter.sol/PackedCounterLib.json +929 -929
  77. package/out/src/ResourceId.sol/ResourceIdInstance.json +116 -116
  78. package/out/src/ResourceId.sol/ResourceIdLib.json +116 -116
  79. package/out/src/Schema.sol/SchemaInstance.json +790 -790
  80. package/out/src/Schema.sol/SchemaLib.json +790 -790
  81. package/out/src/Slice.sol/SliceInstance.json +430 -430
  82. package/out/src/Slice.sol/SliceLib.json +430 -430
  83. package/out/src/StoreCore.sol/StoreCore.json +4455 -4455
  84. package/out/src/StoreCore.sol/StoreCoreInternal.json +4455 -4455
  85. package/out/src/StoreSwitch.sol/StoreSwitch.json +2483 -2483
  86. package/out/src/WorldContext.sol/WorldContextConsumer.json +418 -418
  87. package/out/src/WorldContext.sol/WorldContextConsumerLib.json +418 -418
  88. package/out/src/WorldContext.sol/WorldContextProviderLib.json +418 -418
  89. package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +480 -480
  90. package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +480 -480
  91. package/out/storeHookTypes.sol/storeHookTypes.json +115 -115
  92. package/out/storeResourceTypes.sol/storeResourceTypes.json +12 -12
  93. package/out/systemHookTypes.sol/systemHookTypes.json +25 -25
  94. package/out/tables/ResourceIds.sol/ResourceIds.json +1747 -1747
  95. package/out/tables/Tables.sol/Tables.json +7288 -7288
  96. package/out/tightcoder/EncodeArray.sol/EncodeArray.json +3345 -3345
  97. package/out/types.sol/types.json +41 -41
  98. package/out/worldResourceTypes.sol/worldResourceTypes.json +53 -53
  99. package/package.json +8 -8
@@ -10,13 +10,13 @@
10
10
  },
11
11
  "ast": {
12
12
  "absolutePath": "/home/runner/work/mud/mud/packages/world/src/constants.sol",
13
- "id": 26673,
13
+ "id": 26691,
14
14
  "exportedSymbols": {
15
15
  "RESOURCE_NAMESPACE": [
16
- 26716
16
+ 26734
17
17
  ],
18
18
  "RESOURCE_SYSTEM": [
19
- 26722
19
+ 26740
20
20
  ],
21
21
  "ROOT_NAME": [
22
22
  26621
@@ -25,20 +25,23 @@
25
25
  26618
26
26
  ],
27
27
  "ROOT_NAMESPACE_ID": [
28
- 26654
28
+ 26672
29
29
  ],
30
30
  "ResourceId": [
31
- 29121
31
+ 29139
32
+ ],
33
+ "STORE_NAMESPACE_ID": [
34
+ 26639
32
35
  ],
33
36
  "UNLIMITED_DELEGATION": [
34
- 26672
37
+ 26690
35
38
  ],
36
39
  "WORLD_NAMESPACE_ID": [
37
- 26639
40
+ 26657
38
41
  ]
39
42
  },
40
43
  "nodeType": "SourceUnit",
41
- "src": "32:669:50",
44
+ "src": "32:808:50",
42
45
  "nodes": [
43
46
  {
44
47
  "id": 26610,
@@ -60,8 +63,8 @@
60
63
  "absolutePath": "node_modules/@latticexyz/store/src/ResourceId.sol",
61
64
  "file": "@latticexyz/store/src/ResourceId.sol",
62
65
  "nameLocation": "-1:-1:-1",
63
- "scope": 26673,
64
- "sourceUnit": 29193,
66
+ "scope": 26691,
67
+ "sourceUnit": 29211,
65
68
  "symbolAliases": [
66
69
  {
67
70
  "foreign": {
@@ -69,7 +72,7 @@
69
72
  "name": "ResourceId",
70
73
  "nodeType": "Identifier",
71
74
  "overloadedDeclarations": [],
72
- "referencedDeclaration": 29121,
75
+ "referencedDeclaration": 29139,
73
76
  "src": "68:10:50",
74
77
  "typeDescriptions": {}
75
78
  },
@@ -86,8 +89,8 @@
86
89
  "absolutePath": "/home/runner/work/mud/mud/packages/world/src/worldResourceTypes.sol",
87
90
  "file": "./worldResourceTypes.sol",
88
91
  "nameLocation": "-1:-1:-1",
89
- "scope": 26673,
90
- "sourceUnit": 26741,
92
+ "scope": 26691,
93
+ "sourceUnit": 26759,
91
94
  "symbolAliases": [
92
95
  {
93
96
  "foreign": {
@@ -95,7 +98,7 @@
95
98
  "name": "RESOURCE_SYSTEM",
96
99
  "nodeType": "Identifier",
97
100
  "overloadedDeclarations": [],
98
- "referencedDeclaration": 26722,
101
+ "referencedDeclaration": 26740,
99
102
  "src": "136:15:50",
100
103
  "typeDescriptions": {}
101
104
  },
@@ -107,7 +110,7 @@
107
110
  "name": "RESOURCE_NAMESPACE",
108
111
  "nodeType": "Identifier",
109
112
  "overloadedDeclarations": [],
110
- "referencedDeclaration": 26716,
113
+ "referencedDeclaration": 26734,
111
114
  "src": "153:18:50",
112
115
  "typeDescriptions": {}
113
116
  },
@@ -125,7 +128,7 @@
125
128
  "mutability": "constant",
126
129
  "name": "ROOT_NAMESPACE",
127
130
  "nameLocation": "225:14:50",
128
- "scope": 26673,
131
+ "scope": 26691,
129
132
  "stateVariable": false,
130
133
  "storageLocation": "default",
131
134
  "typeDescriptions": {
@@ -169,7 +172,7 @@
169
172
  "mutability": "constant",
170
173
  "name": "ROOT_NAME",
171
174
  "nameLocation": "263:9:50",
172
- "scope": 26673,
175
+ "scope": 26691,
173
176
  "stateVariable": false,
174
177
  "storageLocation": "default",
175
178
  "typeDescriptions": {
@@ -211,13 +214,13 @@
211
214
  "nodes": [],
212
215
  "constant": true,
213
216
  "mutability": "constant",
214
- "name": "WORLD_NAMESPACE_ID",
217
+ "name": "STORE_NAMESPACE_ID",
215
218
  "nameLocation": "300:18:50",
216
- "scope": 26673,
219
+ "scope": 26691,
217
220
  "stateVariable": false,
218
221
  "storageLocation": "default",
219
222
  "typeDescriptions": {
220
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
223
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
221
224
  "typeString": "ResourceId"
222
225
  },
223
226
  "typeName": {
@@ -230,13 +233,13 @@
230
233
  "280:10:50"
231
234
  ],
232
235
  "nodeType": "IdentifierPath",
233
- "referencedDeclaration": 29121,
236
+ "referencedDeclaration": 29139,
234
237
  "src": "280:10:50"
235
238
  },
236
- "referencedDeclaration": 29121,
239
+ "referencedDeclaration": 29139,
237
240
  "src": "280:10:50",
238
241
  "typeDescriptions": {
239
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
242
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
240
243
  "typeString": "ResourceId"
241
244
  }
242
245
  },
@@ -251,7 +254,7 @@
251
254
  "name": "RESOURCE_NAMESPACE",
252
255
  "nodeType": "Identifier",
253
256
  "overloadedDeclarations": [],
254
- "referencedDeclaration": 26716,
257
+ "referencedDeclaration": 26734,
255
258
  "src": "365:18:50",
256
259
  "typeDescriptions": {
257
260
  "typeIdentifier": "t_bytes2",
@@ -261,7 +264,7 @@
261
264
  {
262
265
  "arguments": [
263
266
  {
264
- "hexValue": "776f726c64",
267
+ "hexValue": "73746f7265",
265
268
  "id": 26633,
266
269
  "isConstant": false,
267
270
  "isLValue": false,
@@ -271,17 +274,17 @@
271
274
  "nodeType": "Literal",
272
275
  "src": "393:7:50",
273
276
  "typeDescriptions": {
274
- "typeIdentifier": "t_stringliteral_8452c9b9140222b08593a26daa782707297be9f7b3e8281d7b4974769f19afd0",
275
- "typeString": "literal_string \"world\""
277
+ "typeIdentifier": "t_stringliteral_e41d88711b08bdcd7556c5d2d24e0da6fa1f614cf2055f4d7e10206017cd1680",
278
+ "typeString": "literal_string \"store\""
276
279
  },
277
- "value": "world"
280
+ "value": "store"
278
281
  }
279
282
  ],
280
283
  "expression": {
281
284
  "argumentTypes": [
282
285
  {
283
- "typeIdentifier": "t_stringliteral_8452c9b9140222b08593a26daa782707297be9f7b3e8281d7b4974769f19afd0",
284
- "typeString": "literal_string \"world\""
286
+ "typeIdentifier": "t_stringliteral_e41d88711b08bdcd7556c5d2d24e0da6fa1f614cf2055f4d7e10206017cd1680",
287
+ "typeString": "literal_string \"store\""
285
288
  }
286
289
  ],
287
290
  "id": 26632,
@@ -445,10 +448,10 @@
445
448
  "name": "ResourceId",
446
449
  "nodeType": "Identifier",
447
450
  "overloadedDeclarations": [],
448
- "referencedDeclaration": 29121,
451
+ "referencedDeclaration": 29139,
449
452
  "src": "321:10:50",
450
453
  "typeDescriptions": {
451
- "typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$29121_$",
454
+ "typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$29139_$",
452
455
  "typeString": "type(ResourceId)"
453
456
  }
454
457
  },
@@ -462,7 +465,7 @@
462
465
  "nodeType": "MemberAccess",
463
466
  "src": "321:15:50",
464
467
  "typeDescriptions": {
465
- "typeIdentifier": "t_function_wrap_pure$_t_bytes32_$returns$_t_userDefinedValueType$_ResourceId_$29121_$",
468
+ "typeIdentifier": "t_function_wrap_pure$_t_bytes32_$returns$_t_userDefinedValueType$_ResourceId_$29139_$",
466
469
  "typeString": "function (bytes32) pure returns (ResourceId)"
467
470
  }
468
471
  },
@@ -478,26 +481,26 @@
478
481
  "src": "321:95:50",
479
482
  "tryCall": false,
480
483
  "typeDescriptions": {
481
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
484
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
482
485
  "typeString": "ResourceId"
483
486
  }
484
487
  },
485
488
  "visibility": "internal"
486
489
  },
487
490
  {
488
- "id": 26654,
491
+ "id": 26657,
489
492
  "nodeType": "VariableDeclaration",
490
- "src": "419:133:50",
493
+ "src": "419:136:50",
491
494
  "nodes": [],
492
495
  "constant": true,
493
496
  "mutability": "constant",
494
- "name": "ROOT_NAMESPACE_ID",
495
- "nameLocation": "439:17:50",
496
- "scope": 26673,
497
+ "name": "WORLD_NAMESPACE_ID",
498
+ "nameLocation": "439:18:50",
499
+ "scope": 26691,
497
500
  "stateVariable": false,
498
501
  "storageLocation": "default",
499
502
  "typeDescriptions": {
500
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
503
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
501
504
  "typeString": "ResourceId"
502
505
  },
503
506
  "typeName": {
@@ -510,13 +513,13 @@
510
513
  "419:10:50"
511
514
  ],
512
515
  "nodeType": "IdentifierPath",
513
- "referencedDeclaration": 29121,
516
+ "referencedDeclaration": 29139,
514
517
  "src": "419:10:50"
515
518
  },
516
- "referencedDeclaration": 29121,
519
+ "referencedDeclaration": 29139,
517
520
  "src": "419:10:50",
518
521
  "typeDescriptions": {
519
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
522
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
520
523
  "typeString": "ResourceId"
521
524
  }
522
525
  },
@@ -531,32 +534,81 @@
531
534
  "name": "RESOURCE_NAMESPACE",
532
535
  "nodeType": "Identifier",
533
536
  "overloadedDeclarations": [],
534
- "referencedDeclaration": 26716,
535
- "src": "503:18:50",
537
+ "referencedDeclaration": 26734,
538
+ "src": "504:18:50",
536
539
  "typeDescriptions": {
537
540
  "typeIdentifier": "t_bytes2",
538
541
  "typeString": "bytes2"
539
542
  }
540
543
  },
541
544
  {
542
- "id": 26649,
543
- "name": "ROOT_NAMESPACE",
544
- "nodeType": "Identifier",
545
- "overloadedDeclarations": [],
546
- "referencedDeclaration": 26618,
547
- "src": "523:14:50",
545
+ "arguments": [
546
+ {
547
+ "hexValue": "776f726c64",
548
+ "id": 26651,
549
+ "isConstant": false,
550
+ "isLValue": false,
551
+ "isPure": true,
552
+ "kind": "string",
553
+ "lValueRequested": false,
554
+ "nodeType": "Literal",
555
+ "src": "532:7:50",
556
+ "typeDescriptions": {
557
+ "typeIdentifier": "t_stringliteral_8452c9b9140222b08593a26daa782707297be9f7b3e8281d7b4974769f19afd0",
558
+ "typeString": "literal_string \"world\""
559
+ },
560
+ "value": "world"
561
+ }
562
+ ],
563
+ "expression": {
564
+ "argumentTypes": [
565
+ {
566
+ "typeIdentifier": "t_stringliteral_8452c9b9140222b08593a26daa782707297be9f7b3e8281d7b4974769f19afd0",
567
+ "typeString": "literal_string \"world\""
568
+ }
569
+ ],
570
+ "id": 26650,
571
+ "isConstant": false,
572
+ "isLValue": false,
573
+ "isPure": true,
574
+ "lValueRequested": false,
575
+ "nodeType": "ElementaryTypeNameExpression",
576
+ "src": "524:7:50",
577
+ "typeDescriptions": {
578
+ "typeIdentifier": "t_type$_t_bytes14_$",
579
+ "typeString": "type(bytes14)"
580
+ },
581
+ "typeName": {
582
+ "id": 26649,
583
+ "name": "bytes14",
584
+ "nodeType": "ElementaryTypeName",
585
+ "src": "524:7:50",
586
+ "typeDescriptions": {}
587
+ }
588
+ },
589
+ "id": 26652,
590
+ "isConstant": false,
591
+ "isLValue": false,
592
+ "isPure": true,
593
+ "kind": "typeConversion",
594
+ "lValueRequested": false,
595
+ "nameLocations": [],
596
+ "names": [],
597
+ "nodeType": "FunctionCall",
598
+ "src": "524:16:50",
599
+ "tryCall": false,
548
600
  "typeDescriptions": {
549
601
  "typeIdentifier": "t_bytes14",
550
602
  "typeString": "bytes14"
551
603
  }
552
604
  },
553
605
  {
554
- "id": 26650,
606
+ "id": 26653,
555
607
  "name": "ROOT_NAME",
556
608
  "nodeType": "Identifier",
557
609
  "overloadedDeclarations": [],
558
610
  "referencedDeclaration": 26621,
559
- "src": "539:9:50",
611
+ "src": "542:9:50",
560
612
  "typeDescriptions": {
561
613
  "typeIdentifier": "t_bytes16",
562
614
  "typeString": "bytes16"
@@ -584,7 +636,7 @@
584
636
  "nodeType": "Identifier",
585
637
  "overloadedDeclarations": [],
586
638
  "referencedDeclaration": -1,
587
- "src": "486:3:50",
639
+ "src": "487:3:50",
588
640
  "typeDescriptions": {
589
641
  "typeIdentifier": "t_magic_abi",
590
642
  "typeString": "abi"
@@ -595,16 +647,16 @@
595
647
  "isLValue": false,
596
648
  "isPure": true,
597
649
  "lValueRequested": false,
598
- "memberLocation": "490:12:50",
650
+ "memberLocation": "491:12:50",
599
651
  "memberName": "encodePacked",
600
652
  "nodeType": "MemberAccess",
601
- "src": "486:16:50",
653
+ "src": "487:16:50",
602
654
  "typeDescriptions": {
603
655
  "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
604
656
  "typeString": "function () pure returns (bytes memory)"
605
657
  }
606
658
  },
607
- "id": 26651,
659
+ "id": 26654,
608
660
  "isConstant": false,
609
661
  "isLValue": false,
610
662
  "isPure": true,
@@ -613,7 +665,7 @@
613
665
  "nameLocations": [],
614
666
  "names": [],
615
667
  "nodeType": "FunctionCall",
616
- "src": "486:63:50",
668
+ "src": "487:65:50",
617
669
  "tryCall": false,
618
670
  "typeDescriptions": {
619
671
  "typeIdentifier": "t_bytes_memory_ptr",
@@ -634,7 +686,7 @@
634
686
  "isPure": true,
635
687
  "lValueRequested": false,
636
688
  "nodeType": "ElementaryTypeNameExpression",
637
- "src": "478:7:50",
689
+ "src": "479:7:50",
638
690
  "typeDescriptions": {
639
691
  "typeIdentifier": "t_type$_t_bytes32_$",
640
692
  "typeString": "type(bytes32)"
@@ -643,11 +695,11 @@
643
695
  "id": 26644,
644
696
  "name": "bytes32",
645
697
  "nodeType": "ElementaryTypeName",
646
- "src": "478:7:50",
698
+ "src": "479:7:50",
647
699
  "typeDescriptions": {}
648
700
  }
649
701
  },
650
- "id": 26652,
702
+ "id": 26655,
651
703
  "isConstant": false,
652
704
  "isLValue": false,
653
705
  "isPure": true,
@@ -656,7 +708,7 @@
656
708
  "nameLocations": [],
657
709
  "names": [],
658
710
  "nodeType": "FunctionCall",
659
- "src": "478:72:50",
711
+ "src": "479:74:50",
660
712
  "tryCall": false,
661
713
  "typeDescriptions": {
662
714
  "typeIdentifier": "t_bytes32",
@@ -676,10 +728,10 @@
676
728
  "name": "ResourceId",
677
729
  "nodeType": "Identifier",
678
730
  "overloadedDeclarations": [],
679
- "referencedDeclaration": 29121,
680
- "src": "459:10:50",
731
+ "referencedDeclaration": 29139,
732
+ "src": "460:10:50",
681
733
  "typeDescriptions": {
682
- "typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$29121_$",
734
+ "typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$29139_$",
683
735
  "typeString": "type(ResourceId)"
684
736
  }
685
737
  },
@@ -688,16 +740,16 @@
688
740
  "isLValue": false,
689
741
  "isPure": true,
690
742
  "lValueRequested": false,
691
- "memberLocation": "470:4:50",
743
+ "memberLocation": "471:4:50",
692
744
  "memberName": "wrap",
693
745
  "nodeType": "MemberAccess",
694
- "src": "459:15:50",
746
+ "src": "460:15:50",
695
747
  "typeDescriptions": {
696
- "typeIdentifier": "t_function_wrap_pure$_t_bytes32_$returns$_t_userDefinedValueType$_ResourceId_$29121_$",
748
+ "typeIdentifier": "t_function_wrap_pure$_t_bytes32_$returns$_t_userDefinedValueType$_ResourceId_$29139_$",
697
749
  "typeString": "function (bytes32) pure returns (ResourceId)"
698
750
  }
699
751
  },
700
- "id": 26653,
752
+ "id": 26656,
701
753
  "isConstant": false,
702
754
  "isLValue": false,
703
755
  "isPure": true,
@@ -706,10 +758,10 @@
706
758
  "nameLocations": [],
707
759
  "names": [],
708
760
  "nodeType": "FunctionCall",
709
- "src": "459:93:50",
761
+ "src": "460:95:50",
710
762
  "tryCall": false,
711
763
  "typeDescriptions": {
712
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
764
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
713
765
  "typeString": "ResourceId"
714
766
  }
715
767
  },
@@ -718,36 +770,267 @@
718
770
  {
719
771
  "id": 26672,
720
772
  "nodeType": "VariableDeclaration",
721
- "src": "555:144:50",
773
+ "src": "558:133:50",
774
+ "nodes": [],
775
+ "constant": true,
776
+ "mutability": "constant",
777
+ "name": "ROOT_NAMESPACE_ID",
778
+ "nameLocation": "578:17:50",
779
+ "scope": 26691,
780
+ "stateVariable": false,
781
+ "storageLocation": "default",
782
+ "typeDescriptions": {
783
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
784
+ "typeString": "ResourceId"
785
+ },
786
+ "typeName": {
787
+ "id": 26659,
788
+ "nodeType": "UserDefinedTypeName",
789
+ "pathNode": {
790
+ "id": 26658,
791
+ "name": "ResourceId",
792
+ "nameLocations": [
793
+ "558:10:50"
794
+ ],
795
+ "nodeType": "IdentifierPath",
796
+ "referencedDeclaration": 29139,
797
+ "src": "558:10:50"
798
+ },
799
+ "referencedDeclaration": 29139,
800
+ "src": "558:10:50",
801
+ "typeDescriptions": {
802
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
803
+ "typeString": "ResourceId"
804
+ }
805
+ },
806
+ "value": {
807
+ "arguments": [
808
+ {
809
+ "arguments": [
810
+ {
811
+ "arguments": [
812
+ {
813
+ "id": 26666,
814
+ "name": "RESOURCE_NAMESPACE",
815
+ "nodeType": "Identifier",
816
+ "overloadedDeclarations": [],
817
+ "referencedDeclaration": 26734,
818
+ "src": "642:18:50",
819
+ "typeDescriptions": {
820
+ "typeIdentifier": "t_bytes2",
821
+ "typeString": "bytes2"
822
+ }
823
+ },
824
+ {
825
+ "id": 26667,
826
+ "name": "ROOT_NAMESPACE",
827
+ "nodeType": "Identifier",
828
+ "overloadedDeclarations": [],
829
+ "referencedDeclaration": 26618,
830
+ "src": "662:14:50",
831
+ "typeDescriptions": {
832
+ "typeIdentifier": "t_bytes14",
833
+ "typeString": "bytes14"
834
+ }
835
+ },
836
+ {
837
+ "id": 26668,
838
+ "name": "ROOT_NAME",
839
+ "nodeType": "Identifier",
840
+ "overloadedDeclarations": [],
841
+ "referencedDeclaration": 26621,
842
+ "src": "678:9:50",
843
+ "typeDescriptions": {
844
+ "typeIdentifier": "t_bytes16",
845
+ "typeString": "bytes16"
846
+ }
847
+ }
848
+ ],
849
+ "expression": {
850
+ "argumentTypes": [
851
+ {
852
+ "typeIdentifier": "t_bytes2",
853
+ "typeString": "bytes2"
854
+ },
855
+ {
856
+ "typeIdentifier": "t_bytes14",
857
+ "typeString": "bytes14"
858
+ },
859
+ {
860
+ "typeIdentifier": "t_bytes16",
861
+ "typeString": "bytes16"
862
+ }
863
+ ],
864
+ "expression": {
865
+ "id": 26664,
866
+ "name": "abi",
867
+ "nodeType": "Identifier",
868
+ "overloadedDeclarations": [],
869
+ "referencedDeclaration": -1,
870
+ "src": "625:3:50",
871
+ "typeDescriptions": {
872
+ "typeIdentifier": "t_magic_abi",
873
+ "typeString": "abi"
874
+ }
875
+ },
876
+ "id": 26665,
877
+ "isConstant": false,
878
+ "isLValue": false,
879
+ "isPure": true,
880
+ "lValueRequested": false,
881
+ "memberLocation": "629:12:50",
882
+ "memberName": "encodePacked",
883
+ "nodeType": "MemberAccess",
884
+ "src": "625:16:50",
885
+ "typeDescriptions": {
886
+ "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
887
+ "typeString": "function () pure returns (bytes memory)"
888
+ }
889
+ },
890
+ "id": 26669,
891
+ "isConstant": false,
892
+ "isLValue": false,
893
+ "isPure": true,
894
+ "kind": "functionCall",
895
+ "lValueRequested": false,
896
+ "nameLocations": [],
897
+ "names": [],
898
+ "nodeType": "FunctionCall",
899
+ "src": "625:63:50",
900
+ "tryCall": false,
901
+ "typeDescriptions": {
902
+ "typeIdentifier": "t_bytes_memory_ptr",
903
+ "typeString": "bytes memory"
904
+ }
905
+ }
906
+ ],
907
+ "expression": {
908
+ "argumentTypes": [
909
+ {
910
+ "typeIdentifier": "t_bytes_memory_ptr",
911
+ "typeString": "bytes memory"
912
+ }
913
+ ],
914
+ "id": 26663,
915
+ "isConstant": false,
916
+ "isLValue": false,
917
+ "isPure": true,
918
+ "lValueRequested": false,
919
+ "nodeType": "ElementaryTypeNameExpression",
920
+ "src": "617:7:50",
921
+ "typeDescriptions": {
922
+ "typeIdentifier": "t_type$_t_bytes32_$",
923
+ "typeString": "type(bytes32)"
924
+ },
925
+ "typeName": {
926
+ "id": 26662,
927
+ "name": "bytes32",
928
+ "nodeType": "ElementaryTypeName",
929
+ "src": "617:7:50",
930
+ "typeDescriptions": {}
931
+ }
932
+ },
933
+ "id": 26670,
934
+ "isConstant": false,
935
+ "isLValue": false,
936
+ "isPure": true,
937
+ "kind": "typeConversion",
938
+ "lValueRequested": false,
939
+ "nameLocations": [],
940
+ "names": [],
941
+ "nodeType": "FunctionCall",
942
+ "src": "617:72:50",
943
+ "tryCall": false,
944
+ "typeDescriptions": {
945
+ "typeIdentifier": "t_bytes32",
946
+ "typeString": "bytes32"
947
+ }
948
+ }
949
+ ],
950
+ "expression": {
951
+ "argumentTypes": [
952
+ {
953
+ "typeIdentifier": "t_bytes32",
954
+ "typeString": "bytes32"
955
+ }
956
+ ],
957
+ "expression": {
958
+ "id": 26660,
959
+ "name": "ResourceId",
960
+ "nodeType": "Identifier",
961
+ "overloadedDeclarations": [],
962
+ "referencedDeclaration": 29139,
963
+ "src": "598:10:50",
964
+ "typeDescriptions": {
965
+ "typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$29139_$",
966
+ "typeString": "type(ResourceId)"
967
+ }
968
+ },
969
+ "id": 26661,
970
+ "isConstant": false,
971
+ "isLValue": false,
972
+ "isPure": true,
973
+ "lValueRequested": false,
974
+ "memberLocation": "609:4:50",
975
+ "memberName": "wrap",
976
+ "nodeType": "MemberAccess",
977
+ "src": "598:15:50",
978
+ "typeDescriptions": {
979
+ "typeIdentifier": "t_function_wrap_pure$_t_bytes32_$returns$_t_userDefinedValueType$_ResourceId_$29139_$",
980
+ "typeString": "function (bytes32) pure returns (ResourceId)"
981
+ }
982
+ },
983
+ "id": 26671,
984
+ "isConstant": false,
985
+ "isLValue": false,
986
+ "isPure": true,
987
+ "kind": "functionCall",
988
+ "lValueRequested": false,
989
+ "nameLocations": [],
990
+ "names": [],
991
+ "nodeType": "FunctionCall",
992
+ "src": "598:93:50",
993
+ "tryCall": false,
994
+ "typeDescriptions": {
995
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
996
+ "typeString": "ResourceId"
997
+ }
998
+ },
999
+ "visibility": "internal"
1000
+ },
1001
+ {
1002
+ "id": 26690,
1003
+ "nodeType": "VariableDeclaration",
1004
+ "src": "694:144:50",
722
1005
  "nodes": [],
723
1006
  "constant": true,
724
1007
  "mutability": "constant",
725
1008
  "name": "UNLIMITED_DELEGATION",
726
- "nameLocation": "575:20:50",
727
- "scope": 26673,
1009
+ "nameLocation": "714:20:50",
1010
+ "scope": 26691,
728
1011
  "stateVariable": false,
729
1012
  "storageLocation": "default",
730
1013
  "typeDescriptions": {
731
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
1014
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
732
1015
  "typeString": "ResourceId"
733
1016
  },
734
1017
  "typeName": {
735
- "id": 26656,
1018
+ "id": 26674,
736
1019
  "nodeType": "UserDefinedTypeName",
737
1020
  "pathNode": {
738
- "id": 26655,
1021
+ "id": 26673,
739
1022
  "name": "ResourceId",
740
1023
  "nameLocations": [
741
- "555:10:50"
1024
+ "694:10:50"
742
1025
  ],
743
1026
  "nodeType": "IdentifierPath",
744
- "referencedDeclaration": 29121,
745
- "src": "555:10:50"
1027
+ "referencedDeclaration": 29139,
1028
+ "src": "694:10:50"
746
1029
  },
747
- "referencedDeclaration": 29121,
748
- "src": "555:10:50",
1030
+ "referencedDeclaration": 29139,
1031
+ "src": "694:10:50",
749
1032
  "typeDescriptions": {
750
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
1033
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
751
1034
  "typeString": "ResourceId"
752
1035
  }
753
1036
  },
@@ -758,24 +1041,24 @@
758
1041
  {
759
1042
  "arguments": [
760
1043
  {
761
- "id": 26663,
1044
+ "id": 26681,
762
1045
  "name": "RESOURCE_SYSTEM",
763
1046
  "nodeType": "Identifier",
764
1047
  "overloadedDeclarations": [],
765
- "referencedDeclaration": 26722,
766
- "src": "642:15:50",
1048
+ "referencedDeclaration": 26740,
1049
+ "src": "781:15:50",
767
1050
  "typeDescriptions": {
768
1051
  "typeIdentifier": "t_bytes2",
769
1052
  "typeString": "bytes2"
770
1053
  }
771
1054
  },
772
1055
  {
773
- "id": 26664,
1056
+ "id": 26682,
774
1057
  "name": "ROOT_NAMESPACE",
775
1058
  "nodeType": "Identifier",
776
1059
  "overloadedDeclarations": [],
777
1060
  "referencedDeclaration": 26618,
778
- "src": "659:14:50",
1061
+ "src": "798:14:50",
779
1062
  "typeDescriptions": {
780
1063
  "typeIdentifier": "t_bytes14",
781
1064
  "typeString": "bytes14"
@@ -785,14 +1068,14 @@
785
1068
  "arguments": [
786
1069
  {
787
1070
  "hexValue": "756e6c696d69746564",
788
- "id": 26667,
1071
+ "id": 26685,
789
1072
  "isConstant": false,
790
1073
  "isLValue": false,
791
1074
  "isPure": true,
792
1075
  "kind": "string",
793
1076
  "lValueRequested": false,
794
1077
  "nodeType": "Literal",
795
- "src": "683:11:50",
1078
+ "src": "822:11:50",
796
1079
  "typeDescriptions": {
797
1080
  "typeIdentifier": "t_stringliteral_2a99c007357d7836fff579cc3480b735ced34796eb2805e33c23d0eaeefdc492",
798
1081
  "typeString": "literal_string \"unlimited\""
@@ -807,26 +1090,26 @@
807
1090
  "typeString": "literal_string \"unlimited\""
808
1091
  }
809
1092
  ],
810
- "id": 26666,
1093
+ "id": 26684,
811
1094
  "isConstant": false,
812
1095
  "isLValue": false,
813
1096
  "isPure": true,
814
1097
  "lValueRequested": false,
815
1098
  "nodeType": "ElementaryTypeNameExpression",
816
- "src": "675:7:50",
1099
+ "src": "814:7:50",
817
1100
  "typeDescriptions": {
818
1101
  "typeIdentifier": "t_type$_t_bytes16_$",
819
1102
  "typeString": "type(bytes16)"
820
1103
  },
821
1104
  "typeName": {
822
- "id": 26665,
1105
+ "id": 26683,
823
1106
  "name": "bytes16",
824
1107
  "nodeType": "ElementaryTypeName",
825
- "src": "675:7:50",
1108
+ "src": "814:7:50",
826
1109
  "typeDescriptions": {}
827
1110
  }
828
1111
  },
829
- "id": 26668,
1112
+ "id": 26686,
830
1113
  "isConstant": false,
831
1114
  "isLValue": false,
832
1115
  "isPure": true,
@@ -835,7 +1118,7 @@
835
1118
  "nameLocations": [],
836
1119
  "names": [],
837
1120
  "nodeType": "FunctionCall",
838
- "src": "675:20:50",
1121
+ "src": "814:20:50",
839
1122
  "tryCall": false,
840
1123
  "typeDescriptions": {
841
1124
  "typeIdentifier": "t_bytes16",
@@ -859,32 +1142,32 @@
859
1142
  }
860
1143
  ],
861
1144
  "expression": {
862
- "id": 26661,
1145
+ "id": 26679,
863
1146
  "name": "abi",
864
1147
  "nodeType": "Identifier",
865
1148
  "overloadedDeclarations": [],
866
1149
  "referencedDeclaration": -1,
867
- "src": "625:3:50",
1150
+ "src": "764:3:50",
868
1151
  "typeDescriptions": {
869
1152
  "typeIdentifier": "t_magic_abi",
870
1153
  "typeString": "abi"
871
1154
  }
872
1155
  },
873
- "id": 26662,
1156
+ "id": 26680,
874
1157
  "isConstant": false,
875
1158
  "isLValue": false,
876
1159
  "isPure": true,
877
1160
  "lValueRequested": false,
878
- "memberLocation": "629:12:50",
1161
+ "memberLocation": "768:12:50",
879
1162
  "memberName": "encodePacked",
880
1163
  "nodeType": "MemberAccess",
881
- "src": "625:16:50",
1164
+ "src": "764:16:50",
882
1165
  "typeDescriptions": {
883
1166
  "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
884
1167
  "typeString": "function () pure returns (bytes memory)"
885
1168
  }
886
1169
  },
887
- "id": 26669,
1170
+ "id": 26687,
888
1171
  "isConstant": false,
889
1172
  "isLValue": false,
890
1173
  "isPure": true,
@@ -893,7 +1176,7 @@
893
1176
  "nameLocations": [],
894
1177
  "names": [],
895
1178
  "nodeType": "FunctionCall",
896
- "src": "625:71:50",
1179
+ "src": "764:71:50",
897
1180
  "tryCall": false,
898
1181
  "typeDescriptions": {
899
1182
  "typeIdentifier": "t_bytes_memory_ptr",
@@ -908,26 +1191,26 @@
908
1191
  "typeString": "bytes memory"
909
1192
  }
910
1193
  ],
911
- "id": 26660,
1194
+ "id": 26678,
912
1195
  "isConstant": false,
913
1196
  "isLValue": false,
914
1197
  "isPure": true,
915
1198
  "lValueRequested": false,
916
1199
  "nodeType": "ElementaryTypeNameExpression",
917
- "src": "617:7:50",
1200
+ "src": "756:7:50",
918
1201
  "typeDescriptions": {
919
1202
  "typeIdentifier": "t_type$_t_bytes32_$",
920
1203
  "typeString": "type(bytes32)"
921
1204
  },
922
1205
  "typeName": {
923
- "id": 26659,
1206
+ "id": 26677,
924
1207
  "name": "bytes32",
925
1208
  "nodeType": "ElementaryTypeName",
926
- "src": "617:7:50",
1209
+ "src": "756:7:50",
927
1210
  "typeDescriptions": {}
928
1211
  }
929
1212
  },
930
- "id": 26670,
1213
+ "id": 26688,
931
1214
  "isConstant": false,
932
1215
  "isLValue": false,
933
1216
  "isPure": true,
@@ -936,7 +1219,7 @@
936
1219
  "nameLocations": [],
937
1220
  "names": [],
938
1221
  "nodeType": "FunctionCall",
939
- "src": "617:80:50",
1222
+ "src": "756:80:50",
940
1223
  "tryCall": false,
941
1224
  "typeDescriptions": {
942
1225
  "typeIdentifier": "t_bytes32",
@@ -952,32 +1235,32 @@
952
1235
  }
953
1236
  ],
954
1237
  "expression": {
955
- "id": 26657,
1238
+ "id": 26675,
956
1239
  "name": "ResourceId",
957
1240
  "nodeType": "Identifier",
958
1241
  "overloadedDeclarations": [],
959
- "referencedDeclaration": 29121,
960
- "src": "598:10:50",
1242
+ "referencedDeclaration": 29139,
1243
+ "src": "737:10:50",
961
1244
  "typeDescriptions": {
962
- "typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$29121_$",
1245
+ "typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$29139_$",
963
1246
  "typeString": "type(ResourceId)"
964
1247
  }
965
1248
  },
966
- "id": 26658,
1249
+ "id": 26676,
967
1250
  "isConstant": false,
968
1251
  "isLValue": false,
969
1252
  "isPure": true,
970
1253
  "lValueRequested": false,
971
- "memberLocation": "609:4:50",
1254
+ "memberLocation": "748:4:50",
972
1255
  "memberName": "wrap",
973
1256
  "nodeType": "MemberAccess",
974
- "src": "598:15:50",
1257
+ "src": "737:15:50",
975
1258
  "typeDescriptions": {
976
- "typeIdentifier": "t_function_wrap_pure$_t_bytes32_$returns$_t_userDefinedValueType$_ResourceId_$29121_$",
1259
+ "typeIdentifier": "t_function_wrap_pure$_t_bytes32_$returns$_t_userDefinedValueType$_ResourceId_$29139_$",
977
1260
  "typeString": "function (bytes32) pure returns (ResourceId)"
978
1261
  }
979
1262
  },
980
- "id": 26671,
1263
+ "id": 26689,
981
1264
  "isConstant": false,
982
1265
  "isLValue": false,
983
1266
  "isPure": true,
@@ -986,10 +1269,10 @@
986
1269
  "nameLocations": [],
987
1270
  "names": [],
988
1271
  "nodeType": "FunctionCall",
989
- "src": "598:101:50",
1272
+ "src": "737:101:50",
990
1273
  "tryCall": false,
991
1274
  "typeDescriptions": {
992
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
1275
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
993
1276
  "typeString": "ResourceId"
994
1277
  }
995
1278
  },