@latticexyz/world-modules 2.0.0-next.10 → 2.0.0-next.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/out/AccessControl.sol/AccessControl.abi.json +1 -0
  2. package/out/AccessControl.sol/AccessControl.json +1651 -0
  3. package/out/ArrayLib.sol/ArrayLib.json +477 -477
  4. package/out/Balances.sol/Balances.abi.json +1 -0
  5. package/out/Balances.sol/Balances.json +13002 -0
  6. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +354 -354
  7. package/out/CallboundDelegations.sol/CallboundDelegations.json +4497 -4497
  8. package/out/DelegationControl.sol/DelegationControl.json +139 -139
  9. package/out/FunctionSelectors.sol/FunctionSelectors.abi.json +1 -0
  10. package/out/FunctionSelectors.sol/FunctionSelectors.json +17874 -0
  11. package/out/Hooks.sol/Hooks.json +45 -45
  12. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +18 -18
  13. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +15 -15
  14. package/out/IBaseWorld.sol/IBaseWorld.json +85 -85
  15. package/out/IBatchCallSystem.sol/IBatchCallSystem.json +15 -15
  16. package/out/IDelegationControl.sol/IDelegationControl.json +11 -11
  17. package/out/ISystemHook.sol/ISystemHook.json +16 -16
  18. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +25 -25
  19. package/out/IWorldErrors.sol/IWorldErrors.json +19 -19
  20. package/out/IWorldKernel.sol/IWorldCall.json +14 -14
  21. package/out/IWorldKernel.sol/IWorldKernel.json +14 -14
  22. package/out/IWorldKernel.sol/IWorldModuleInstallation.json +14 -14
  23. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +43 -43
  24. package/out/KeysInTable.sol/KeysInTable.json +18190 -18190
  25. package/out/KeysInTableHook.sol/KeysInTableHook.json +1407 -1407
  26. package/out/KeysInTableModule.sol/KeysInTableModule.json +842 -842
  27. package/out/KeysWithValue.sol/KeysWithValue.json +6631 -6631
  28. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1561 -1561
  29. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +654 -654
  30. package/out/Module.sol/Module.json +119 -119
  31. package/out/NamespaceOwner.sol/NamespaceOwner.abi.json +1 -0
  32. package/out/NamespaceOwner.sol/NamespaceOwner.json +13016 -0
  33. package/out/ResourceAccess.sol/ResourceAccess.abi.json +1 -0
  34. package/out/ResourceAccess.sol/ResourceAccess.json +17296 -0
  35. package/out/ResourceIds.sol/ResourceIds.json +45 -45
  36. package/out/Schema.sol/SchemaInstance.json +30 -30
  37. package/out/Schema.sol/SchemaLib.json +30 -30
  38. package/out/SchemaType.sol/SchemaType.json +729 -729
  39. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +452 -452
  40. package/out/StoreHook.sol/StoreHook.json +639 -639
  41. package/out/StoreHooks.sol/StoreHooks.json +45 -45
  42. package/out/System.sol/System.json +32 -32
  43. package/out/SystemHooks.sol/SystemHooks.abi.json +1 -0
  44. package/out/SystemHooks.sol/SystemHooks.json +32460 -0
  45. package/out/SystemSwitch.sol/SystemSwitch.abi.json +1 -0
  46. package/out/SystemSwitch.sol/SystemSwitch.json +2879 -0
  47. package/out/Systems.sol/Systems.abi.json +1 -0
  48. package/out/Systems.sol/Systems.json +18508 -0
  49. package/out/Tables.sol/Tables.json +73 -73
  50. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +187 -187
  51. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +3474 -3474
  52. package/out/UniqueEntity.sol/UniqueEntity.json +2345 -2345
  53. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +486 -486
  54. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +132 -132
  55. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +4590 -4590
  56. package/out/WorldContext.sol/WorldContextConsumer.json +14 -14
  57. package/out/WorldContext.sol/WorldContextConsumerLib.json +14 -14
  58. package/out/WorldContext.sol/WorldContextProviderLib.json +14 -14
  59. package/out/WorldResourceId.sol/WorldResourceIdInstance.json +107 -107
  60. package/out/WorldResourceId.sol/WorldResourceIdLib.json +107 -107
  61. package/out/constants.sol/constants.json +477 -194
  62. package/out/getKeysInTable.sol/getKeysInTable.json +918 -918
  63. package/out/getKeysWithValue.sol/getKeysWithValue.json +431 -431
  64. package/out/getTargetTableId.sol/getTargetTableId.json +272 -272
  65. package/out/getUniqueEntity.sol/getUniqueEntity.json +389 -240
  66. package/out/hasKey.sol/hasKey.json +215 -215
  67. package/out/index.sol/index.json +73 -73
  68. package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +175 -175
  69. package/out/query.sol/query.json +1892 -1892
  70. package/out/revertWithBytes.sol/revertWithBytes.json +52 -52
  71. package/out/src/Bytes.sol/Bytes.json +3766 -3766
  72. package/out/src/FieldLayout.sol/FieldLayoutInstance.json +1204 -1204
  73. package/out/src/FieldLayout.sol/FieldLayoutLib.json +1204 -1204
  74. package/out/src/Hook.sol/HookInstance.abi.json +1 -0
  75. package/out/src/Hook.sol/HookInstance.json +2823 -0
  76. package/out/src/Hook.sol/HookLib.abi.json +1 -0
  77. package/out/src/Hook.sol/HookLib.json +2823 -0
  78. package/out/src/IStore.sol/IStore.json +73 -73
  79. package/out/src/ISystemHook.sol/ISystemHook.abi.json +67 -0
  80. package/out/src/ISystemHook.sol/ISystemHook.abi.json.d.ts +68 -0
  81. package/out/src/ISystemHook.sol/ISystemHook.json +852 -0
  82. package/out/src/IWorldErrors.sol/IWorldErrors.abi.json +189 -0
  83. package/out/src/IWorldErrors.sol/IWorldErrors.abi.json.d.ts +190 -0
  84. package/out/src/IWorldErrors.sol/IWorldErrors.json +1463 -0
  85. package/out/src/IWorldKernel.sol/IWorldCall.json +262 -262
  86. package/out/src/IWorldKernel.sol/IWorldKernel.json +262 -262
  87. package/out/src/IWorldKernel.sol/IWorldModuleInstallation.json +262 -262
  88. package/out/src/Memory.sol/Memory.json +242 -242
  89. package/out/src/PackedCounter.sol/PackedCounterInstance.json +1633 -1633
  90. package/out/src/PackedCounter.sol/PackedCounterLib.json +1633 -1633
  91. package/out/src/ResourceId.sol/ResourceIdInstance.json +206 -206
  92. package/out/src/ResourceId.sol/ResourceIdLib.json +206 -206
  93. package/out/src/Schema.sol/SchemaInstance.json +1351 -1351
  94. package/out/src/Schema.sol/SchemaLib.json +1351 -1351
  95. package/out/src/Slice.sol/SliceInstance.json +802 -802
  96. package/out/src/Slice.sol/SliceLib.json +802 -802
  97. package/out/src/StoreCore.sol/StoreCore.json +7412 -7412
  98. package/out/src/StoreCore.sol/StoreCoreInternal.json +7412 -7412
  99. package/out/src/StoreSwitch.sol/StoreSwitch.json +4064 -4064
  100. package/out/src/WorldContext.sol/WorldContextConsumer.json +805 -805
  101. package/out/src/WorldContext.sol/WorldContextConsumerLib.json +807 -807
  102. package/out/src/WorldContext.sol/WorldContextProviderLib.json +807 -807
  103. package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +813 -813
  104. package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +813 -813
  105. package/out/storeHookTypes.sol/storeHookTypes.json +204 -204
  106. package/out/storeResourceTypes.sol/storeResourceTypes.json +23 -23
  107. package/out/systemHookTypes.sol/systemHookTypes.json +270 -0
  108. package/out/tables/ResourceIds.sol/ResourceIds.json +2922 -2922
  109. package/out/tables/Tables.sol/Tables.json +12189 -12189
  110. package/out/tightcoder/EncodeArray.sol/EncodeArray.json +6883 -6883
  111. package/out/types.sol/types.json +71 -71
  112. package/out/worldResourceTypes.sol/worldResourceTypes.json +92 -92
  113. package/package.json +8 -8
  114. package/src/modules/uniqueentity/getUniqueEntity.sol +5 -3
  115. package/src/utils/SystemSwitch.sol +82 -0
@@ -2,16 +2,16 @@
2
2
  "abi": [],
3
3
  "bytecode": {
4
4
  "object": "0x602d6037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000815000a",
5
- "sourceMap": "757:1391:98:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;757:1391:98;;;;;;;;;;;;;;;;;",
5
+ "sourceMap": "757:1391:101:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;757:1391:101;;;;;;;;;;;;;;;;;",
6
6
  "linkReferences": {}
7
7
  },
8
8
  "deployedBytecode": {
9
9
  "object": "0x73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000815000a",
10
- "sourceMap": "757:1391:98:-:0;;;;;;;;",
10
+ "sourceMap": "757:1391:101:-:0;;;;;;;;",
11
11
  "linkReferences": {}
12
12
  },
13
13
  "methodIdentifiers": {},
14
- "rawMetadata": "{\"compiler\":{\"version\":\"0.8.21+commit.d9974bed\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"title\":\"WorldResourceIdLib\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"notice\":\"A library for handling World Resource ID encoding and decoding.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"node_modules/@latticexyz/world/src/WorldResourceId.sol\":\"WorldResourceIdLib\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":3000},\"remappings\":[\":@latticexyz/=node_modules/@latticexyz/\",\":ds-test/=node_modules/ds-test/src/\",\":forge-std/=node_modules/forge-std/src/\"]},\"sources\":{\"node_modules/@latticexyz/store/src/Bytes.sol\":{\"keccak256\":\"0xab31edce915377852bb5f29f7f2ccfc50cac087d64d2a8aae669715ad862d558\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3187e86e43be1fbdd59df45c695294f1114aa1ac48e6445c0cb26089434be5c4\",\"dweb:/ipfs/Qmck7shMVrcKMVkgN2pC1byPY7hb3V9fTxnUcGgxAUeXYk\"]},\"node_modules/@latticexyz/store/src/ResourceId.sol\":{\"keccak256\":\"0x40983c580b8958e55db4520095934a535e98544ffe8228327e598973eb6647ed\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://839d658fa2bb2b1f09a08149d2bf0c26a26c301ad2dda8154fc99458085a695d\",\"dweb:/ipfs/Qmd5jHHYrgqraPqF8bjzT4xyjsoPk8K7pkxXLLfz6MRT6d\"]},\"node_modules/@latticexyz/store/src/storeResourceTypes.sol\":{\"keccak256\":\"0xada1867ba72930fc5cf5562dd4e36de849dbac9c833b7969cb1b046a808fabf2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6e4b5fdcaa54f567a3f8561c2c3fbc0d68c8dad892a4a8e5418bbce8efc53d84\",\"dweb:/ipfs/QmTWbYJX1yrCqrEwUKB9rGpHdRvLNU8GCkBbxnLjGD4d2t\"]},\"node_modules/@latticexyz/world/src/WorldResourceId.sol\":{\"keccak256\":\"0xb7bfae2890004001221b3902d185c14cfea0e606d16914f6b7f81cf112aa9417\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://acfd0d09166fc1bf16a8a5c80fbae1bd42426b2fcbab3c492bc836ea5c0375fb\",\"dweb:/ipfs/QmTzZWHVBkx8hipFVpgEwAbZpr4c6hfr7yf7R71JojT3NK\"]},\"node_modules/@latticexyz/world/src/constants.sol\":{\"keccak256\":\"0x36c772d51a5da46fcddf88831194d6d331083b8c8246fa79107c4b697c258d77\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2d2656374c398a2b075d5f26d2ab2c3ea315c99912e52d8030d50f5f8fdda8ac\",\"dweb:/ipfs/QmSG8uJr2ZbFVnht5cTG6xb6XbB6f3kvnznks4BdeAMYET\"]},\"node_modules/@latticexyz/world/src/worldResourceTypes.sol\":{\"keccak256\":\"0xe31ee781596541f60ed71ef327c9d26ffc899e7fb3f4991c67406518bfc00746\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f7b864fea8c77833a322b16c4673f110d5065d0cafcedecd07895699cf4258c2\",\"dweb:/ipfs/QmRkzXVjMLwQFWxjEjgfdXVPAp6SU4zfxPo4NJcmz8HwH9\"]}},\"version\":1}",
14
+ "rawMetadata": "{\"compiler\":{\"version\":\"0.8.21+commit.d9974bed\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"title\":\"WorldResourceIdLib\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"notice\":\"A library for handling World Resource ID encoding and decoding.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"node_modules/@latticexyz/world/src/WorldResourceId.sol\":\"WorldResourceIdLib\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":3000},\"remappings\":[\":@latticexyz/=node_modules/@latticexyz/\",\":ds-test/=node_modules/ds-test/src/\",\":forge-std/=node_modules/forge-std/src/\"]},\"sources\":{\"node_modules/@latticexyz/store/src/Bytes.sol\":{\"keccak256\":\"0xab31edce915377852bb5f29f7f2ccfc50cac087d64d2a8aae669715ad862d558\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3187e86e43be1fbdd59df45c695294f1114aa1ac48e6445c0cb26089434be5c4\",\"dweb:/ipfs/Qmck7shMVrcKMVkgN2pC1byPY7hb3V9fTxnUcGgxAUeXYk\"]},\"node_modules/@latticexyz/store/src/ResourceId.sol\":{\"keccak256\":\"0x40983c580b8958e55db4520095934a535e98544ffe8228327e598973eb6647ed\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://839d658fa2bb2b1f09a08149d2bf0c26a26c301ad2dda8154fc99458085a695d\",\"dweb:/ipfs/Qmd5jHHYrgqraPqF8bjzT4xyjsoPk8K7pkxXLLfz6MRT6d\"]},\"node_modules/@latticexyz/store/src/storeResourceTypes.sol\":{\"keccak256\":\"0xada1867ba72930fc5cf5562dd4e36de849dbac9c833b7969cb1b046a808fabf2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6e4b5fdcaa54f567a3f8561c2c3fbc0d68c8dad892a4a8e5418bbce8efc53d84\",\"dweb:/ipfs/QmTWbYJX1yrCqrEwUKB9rGpHdRvLNU8GCkBbxnLjGD4d2t\"]},\"node_modules/@latticexyz/world/src/WorldResourceId.sol\":{\"keccak256\":\"0xb7bfae2890004001221b3902d185c14cfea0e606d16914f6b7f81cf112aa9417\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://acfd0d09166fc1bf16a8a5c80fbae1bd42426b2fcbab3c492bc836ea5c0375fb\",\"dweb:/ipfs/QmTzZWHVBkx8hipFVpgEwAbZpr4c6hfr7yf7R71JojT3NK\"]},\"node_modules/@latticexyz/world/src/constants.sol\":{\"keccak256\":\"0x07faffa7dc4a2adc4f9bfe93d5a59a7dd89241d360996537608e38f61c2d0588\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b96d4ce331b257a24de2f18503a11b986ed32d218810db9d5e3e7eddc17c2218\",\"dweb:/ipfs/Qme7Cw4RN1eaFWt2j3hk6ZMB7GWUfMY5oyZKYfMvAVxdBc\"]},\"node_modules/@latticexyz/world/src/worldResourceTypes.sol\":{\"keccak256\":\"0xe31ee781596541f60ed71ef327c9d26ffc899e7fb3f4991c67406518bfc00746\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f7b864fea8c77833a322b16c4673f110d5065d0cafcedecd07895699cf4258c2\",\"dweb:/ipfs/QmRkzXVjMLwQFWxjEjgfdXVPAp6SU4zfxPo4NJcmz8HwH9\"]}},\"version\":1}",
15
15
  "metadata": {
16
16
  "compiler": {
17
17
  "version": "0.8.21+commit.d9974bed"
@@ -82,10 +82,10 @@
82
82
  "license": "MIT"
83
83
  },
84
84
  "node_modules/@latticexyz/world/src/constants.sol": {
85
- "keccak256": "0x36c772d51a5da46fcddf88831194d6d331083b8c8246fa79107c4b697c258d77",
85
+ "keccak256": "0x07faffa7dc4a2adc4f9bfe93d5a59a7dd89241d360996537608e38f61c2d0588",
86
86
  "urls": [
87
- "bzz-raw://2d2656374c398a2b075d5f26d2ab2c3ea315c99912e52d8030d50f5f8fdda8ac",
88
- "dweb:/ipfs/QmSG8uJr2ZbFVnht5cTG6xb6XbB6f3kvnznks4BdeAMYET"
87
+ "bzz-raw://b96d4ce331b257a24de2f18503a11b986ed32d218810db9d5e3e7eddc17c2218",
88
+ "dweb:/ipfs/Qme7Cw4RN1eaFWt2j3hk6ZMB7GWUfMY5oyZKYfMvAVxdBc"
89
89
  ],
90
90
  "license": "MIT"
91
91
  },
@@ -102,61 +102,61 @@
102
102
  },
103
103
  "ast": {
104
104
  "absolutePath": "node_modules/@latticexyz/world/src/WorldResourceId.sol",
105
- "id": 39740,
105
+ "id": 42511,
106
106
  "exportedSymbols": {
107
107
  "Bytes": [
108
- 25471
108
+ 27808
109
109
  ],
110
110
  "MASK_RESOURCE_NAMESPACE": [
111
- 39870
111
+ 49048
112
112
  ],
113
113
  "NAMESPACE_BITS": [
114
- 39474
114
+ 42245
115
115
  ],
116
116
  "NAMESPACE_MASK": [
117
- 39504
117
+ 42275
118
118
  ],
119
119
  "NAME_BITS": [
120
- 39479
120
+ 42250
121
121
  ],
122
122
  "RESOURCE_NAMESPACE": [
123
- 39858
123
+ 49036
124
124
  ],
125
125
  "ROOT_NAME": [
126
- 39788
126
+ 48928
127
127
  ],
128
128
  "ROOT_NAMESPACE": [
129
- 39785
129
+ 48925
130
130
  ],
131
131
  "ROOT_NAMESPACE_STRING": [
132
- 39485
132
+ 42256
133
133
  ],
134
134
  "ROOT_NAME_STRING": [
135
- 39491
135
+ 42262
136
136
  ],
137
137
  "ResourceId": [
138
- 26605
138
+ 29139
139
139
  ],
140
140
  "ResourceIdInstance": [
141
- 26676
141
+ 29210
142
142
  ],
143
143
  "TYPE_BITS": [
144
- 26611
144
+ 29145
145
145
  ],
146
146
  "WorldResourceIdInstance": [
147
- 39739
147
+ 42510
148
148
  ],
149
149
  "WorldResourceIdLib": [
150
- 39618
150
+ 42389
151
151
  ]
152
152
  },
153
153
  "nodeType": "SourceUnit",
154
- "src": "32:3891:98",
154
+ "src": "32:3891:101",
155
155
  "nodes": [
156
156
  {
157
- "id": 39457,
157
+ "id": 42228,
158
158
  "nodeType": "PragmaDirective",
159
- "src": "32:25:98",
159
+ "src": "32:25:101",
160
160
  "nodes": [],
161
161
  "literals": [
162
162
  "solidity",
@@ -166,24 +166,24 @@
166
166
  ]
167
167
  },
168
168
  {
169
- "id": 39459,
169
+ "id": 42230,
170
170
  "nodeType": "ImportDirective",
171
- "src": "59:56:98",
171
+ "src": "59:56:101",
172
172
  "nodes": [],
173
173
  "absolutePath": "node_modules/@latticexyz/store/src/Bytes.sol",
174
174
  "file": "@latticexyz/store/src/Bytes.sol",
175
175
  "nameLocation": "-1:-1:-1",
176
- "scope": 39740,
177
- "sourceUnit": 25472,
176
+ "scope": 42511,
177
+ "sourceUnit": 27809,
178
178
  "symbolAliases": [
179
179
  {
180
180
  "foreign": {
181
- "id": 39458,
181
+ "id": 42229,
182
182
  "name": "Bytes",
183
183
  "nodeType": "Identifier",
184
184
  "overloadedDeclarations": [],
185
- "referencedDeclaration": 25471,
186
- "src": "68:5:98",
185
+ "referencedDeclaration": 27808,
186
+ "src": "68:5:101",
187
187
  "typeDescriptions": {}
188
188
  },
189
189
  "nameLocation": "-1:-1:-1"
@@ -192,48 +192,48 @@
192
192
  "unitAlias": ""
193
193
  },
194
194
  {
195
- "id": 39463,
195
+ "id": 42234,
196
196
  "nodeType": "ImportDirective",
197
- "src": "116:97:98",
197
+ "src": "116:97:101",
198
198
  "nodes": [],
199
199
  "absolutePath": "node_modules/@latticexyz/store/src/ResourceId.sol",
200
200
  "file": "@latticexyz/store/src/ResourceId.sol",
201
201
  "nameLocation": "-1:-1:-1",
202
- "scope": 39740,
203
- "sourceUnit": 26677,
202
+ "scope": 42511,
203
+ "sourceUnit": 29211,
204
204
  "symbolAliases": [
205
205
  {
206
206
  "foreign": {
207
- "id": 39460,
207
+ "id": 42231,
208
208
  "name": "ResourceId",
209
209
  "nodeType": "Identifier",
210
210
  "overloadedDeclarations": [],
211
- "referencedDeclaration": 26605,
212
- "src": "125:10:98",
211
+ "referencedDeclaration": 29139,
212
+ "src": "125:10:101",
213
213
  "typeDescriptions": {}
214
214
  },
215
215
  "nameLocation": "-1:-1:-1"
216
216
  },
217
217
  {
218
218
  "foreign": {
219
- "id": 39461,
219
+ "id": 42232,
220
220
  "name": "ResourceIdInstance",
221
221
  "nodeType": "Identifier",
222
222
  "overloadedDeclarations": [],
223
- "referencedDeclaration": 26676,
224
- "src": "137:18:98",
223
+ "referencedDeclaration": 29210,
224
+ "src": "137:18:101",
225
225
  "typeDescriptions": {}
226
226
  },
227
227
  "nameLocation": "-1:-1:-1"
228
228
  },
229
229
  {
230
230
  "foreign": {
231
- "id": 39462,
231
+ "id": 42233,
232
232
  "name": "TYPE_BITS",
233
233
  "nodeType": "Identifier",
234
234
  "overloadedDeclarations": [],
235
- "referencedDeclaration": 26611,
236
- "src": "157:9:98",
235
+ "referencedDeclaration": 29145,
236
+ "src": "157:9:101",
237
237
  "typeDescriptions": {}
238
238
  },
239
239
  "nameLocation": "-1:-1:-1"
@@ -242,36 +242,36 @@
242
242
  "unitAlias": ""
243
243
  },
244
244
  {
245
- "id": 39466,
245
+ "id": 42237,
246
246
  "nodeType": "ImportDirective",
247
- "src": "215:60:98",
247
+ "src": "215:60:101",
248
248
  "nodes": [],
249
249
  "absolutePath": "node_modules/@latticexyz/world/src/constants.sol",
250
250
  "file": "./constants.sol",
251
251
  "nameLocation": "-1:-1:-1",
252
- "scope": 39740,
253
- "sourceUnit": 39840,
252
+ "scope": 42511,
253
+ "sourceUnit": 48998,
254
254
  "symbolAliases": [
255
255
  {
256
256
  "foreign": {
257
- "id": 39464,
257
+ "id": 42235,
258
258
  "name": "ROOT_NAMESPACE",
259
259
  "nodeType": "Identifier",
260
260
  "overloadedDeclarations": [],
261
- "referencedDeclaration": 39785,
262
- "src": "224:14:98",
261
+ "referencedDeclaration": 48925,
262
+ "src": "224:14:101",
263
263
  "typeDescriptions": {}
264
264
  },
265
265
  "nameLocation": "-1:-1:-1"
266
266
  },
267
267
  {
268
268
  "foreign": {
269
- "id": 39465,
269
+ "id": 42236,
270
270
  "name": "ROOT_NAME",
271
271
  "nodeType": "Identifier",
272
272
  "overloadedDeclarations": [],
273
- "referencedDeclaration": 39788,
274
- "src": "240:9:98",
273
+ "referencedDeclaration": 48928,
274
+ "src": "240:9:101",
275
275
  "typeDescriptions": {}
276
276
  },
277
277
  "nameLocation": "-1:-1:-1"
@@ -280,36 +280,36 @@
280
280
  "unitAlias": ""
281
281
  },
282
282
  {
283
- "id": 39469,
283
+ "id": 42240,
284
284
  "nodeType": "ImportDirective",
285
- "src": "276:87:98",
285
+ "src": "276:87:101",
286
286
  "nodes": [],
287
287
  "absolutePath": "node_modules/@latticexyz/world/src/worldResourceTypes.sol",
288
288
  "file": "./worldResourceTypes.sol",
289
289
  "nameLocation": "-1:-1:-1",
290
- "scope": 39740,
291
- "sourceUnit": 39883,
290
+ "scope": 42511,
291
+ "sourceUnit": 49061,
292
292
  "symbolAliases": [
293
293
  {
294
294
  "foreign": {
295
- "id": 39467,
295
+ "id": 42238,
296
296
  "name": "RESOURCE_NAMESPACE",
297
297
  "nodeType": "Identifier",
298
298
  "overloadedDeclarations": [],
299
- "referencedDeclaration": 39858,
300
- "src": "285:18:98",
299
+ "referencedDeclaration": 49036,
300
+ "src": "285:18:101",
301
301
  "typeDescriptions": {}
302
302
  },
303
303
  "nameLocation": "-1:-1:-1"
304
304
  },
305
305
  {
306
306
  "foreign": {
307
- "id": 39468,
307
+ "id": 42239,
308
308
  "name": "MASK_RESOURCE_NAMESPACE",
309
309
  "nodeType": "Identifier",
310
310
  "overloadedDeclarations": [],
311
- "referencedDeclaration": 39870,
312
- "src": "305:23:98",
311
+ "referencedDeclaration": 49048,
312
+ "src": "305:23:101",
313
313
  "typeDescriptions": {}
314
314
  },
315
315
  "nameLocation": "-1:-1:-1"
@@ -318,15 +318,15 @@
318
318
  "unitAlias": ""
319
319
  },
320
320
  {
321
- "id": 39474,
321
+ "id": 42245,
322
322
  "nodeType": "VariableDeclaration",
323
- "src": "365:40:98",
323
+ "src": "365:40:101",
324
324
  "nodes": [],
325
325
  "constant": true,
326
326
  "mutability": "constant",
327
327
  "name": "NAMESPACE_BITS",
328
- "nameLocation": "382:14:98",
329
- "scope": 39740,
328
+ "nameLocation": "382:14:101",
329
+ "scope": 42511,
330
330
  "stateVariable": false,
331
331
  "storageLocation": "default",
332
332
  "typeDescriptions": {
@@ -334,10 +334,10 @@
334
334
  "typeString": "uint256"
335
335
  },
336
336
  "typeName": {
337
- "id": 39470,
337
+ "id": 42241,
338
338
  "name": "uint256",
339
339
  "nodeType": "ElementaryTypeName",
340
- "src": "365:7:98",
340
+ "src": "365:7:101",
341
341
  "typeDescriptions": {
342
342
  "typeIdentifier": "t_uint256",
343
343
  "typeString": "uint256"
@@ -348,21 +348,21 @@
348
348
  "typeIdentifier": "t_rational_112_by_1",
349
349
  "typeString": "int_const 112"
350
350
  },
351
- "id": 39473,
351
+ "id": 42244,
352
352
  "isConstant": false,
353
353
  "isLValue": false,
354
354
  "isPure": true,
355
355
  "lValueRequested": false,
356
356
  "leftExpression": {
357
357
  "hexValue": "3134",
358
- "id": 39471,
358
+ "id": 42242,
359
359
  "isConstant": false,
360
360
  "isLValue": false,
361
361
  "isPure": true,
362
362
  "kind": "number",
363
363
  "lValueRequested": false,
364
364
  "nodeType": "Literal",
365
- "src": "399:2:98",
365
+ "src": "399:2:101",
366
366
  "typeDescriptions": {
367
367
  "typeIdentifier": "t_rational_14_by_1",
368
368
  "typeString": "int_const 14"
@@ -373,21 +373,21 @@
373
373
  "operator": "*",
374
374
  "rightExpression": {
375
375
  "hexValue": "38",
376
- "id": 39472,
376
+ "id": 42243,
377
377
  "isConstant": false,
378
378
  "isLValue": false,
379
379
  "isPure": true,
380
380
  "kind": "number",
381
381
  "lValueRequested": false,
382
382
  "nodeType": "Literal",
383
- "src": "404:1:98",
383
+ "src": "404:1:101",
384
384
  "typeDescriptions": {
385
385
  "typeIdentifier": "t_rational_8_by_1",
386
386
  "typeString": "int_const 8"
387
387
  },
388
388
  "value": "8"
389
389
  },
390
- "src": "399:6:98",
390
+ "src": "399:6:101",
391
391
  "typeDescriptions": {
392
392
  "typeIdentifier": "t_rational_112_by_1",
393
393
  "typeString": "int_const 112"
@@ -396,15 +396,15 @@
396
396
  "visibility": "internal"
397
397
  },
398
398
  {
399
- "id": 39479,
399
+ "id": 42250,
400
400
  "nodeType": "VariableDeclaration",
401
- "src": "407:35:98",
401
+ "src": "407:35:101",
402
402
  "nodes": [],
403
403
  "constant": true,
404
404
  "mutability": "constant",
405
405
  "name": "NAME_BITS",
406
- "nameLocation": "424:9:98",
407
- "scope": 39740,
406
+ "nameLocation": "424:9:101",
407
+ "scope": 42511,
408
408
  "stateVariable": false,
409
409
  "storageLocation": "default",
410
410
  "typeDescriptions": {
@@ -412,10 +412,10 @@
412
412
  "typeString": "uint256"
413
413
  },
414
414
  "typeName": {
415
- "id": 39475,
415
+ "id": 42246,
416
416
  "name": "uint256",
417
417
  "nodeType": "ElementaryTypeName",
418
- "src": "407:7:98",
418
+ "src": "407:7:101",
419
419
  "typeDescriptions": {
420
420
  "typeIdentifier": "t_uint256",
421
421
  "typeString": "uint256"
@@ -426,21 +426,21 @@
426
426
  "typeIdentifier": "t_rational_128_by_1",
427
427
  "typeString": "int_const 128"
428
428
  },
429
- "id": 39478,
429
+ "id": 42249,
430
430
  "isConstant": false,
431
431
  "isLValue": false,
432
432
  "isPure": true,
433
433
  "lValueRequested": false,
434
434
  "leftExpression": {
435
435
  "hexValue": "3136",
436
- "id": 39476,
436
+ "id": 42247,
437
437
  "isConstant": false,
438
438
  "isLValue": false,
439
439
  "isPure": true,
440
440
  "kind": "number",
441
441
  "lValueRequested": false,
442
442
  "nodeType": "Literal",
443
- "src": "436:2:98",
443
+ "src": "436:2:101",
444
444
  "typeDescriptions": {
445
445
  "typeIdentifier": "t_rational_16_by_1",
446
446
  "typeString": "int_const 16"
@@ -451,21 +451,21 @@
451
451
  "operator": "*",
452
452
  "rightExpression": {
453
453
  "hexValue": "38",
454
- "id": 39477,
454
+ "id": 42248,
455
455
  "isConstant": false,
456
456
  "isLValue": false,
457
457
  "isPure": true,
458
458
  "kind": "number",
459
459
  "lValueRequested": false,
460
460
  "nodeType": "Literal",
461
- "src": "441:1:98",
461
+ "src": "441:1:101",
462
462
  "typeDescriptions": {
463
463
  "typeIdentifier": "t_rational_8_by_1",
464
464
  "typeString": "int_const 8"
465
465
  },
466
466
  "value": "8"
467
467
  },
468
- "src": "436:6:98",
468
+ "src": "436:6:101",
469
469
  "typeDescriptions": {
470
470
  "typeIdentifier": "t_rational_128_by_1",
471
471
  "typeString": "int_const 128"
@@ -474,15 +474,15 @@
474
474
  "visibility": "internal"
475
475
  },
476
476
  {
477
- "id": 39485,
477
+ "id": 42256,
478
478
  "nodeType": "VariableDeclaration",
479
- "src": "445:66:98",
479
+ "src": "445:66:101",
480
480
  "nodes": [],
481
481
  "constant": true,
482
482
  "mutability": "constant",
483
483
  "name": "ROOT_NAMESPACE_STRING",
484
- "nameLocation": "462:21:98",
485
- "scope": 39740,
484
+ "nameLocation": "462:21:101",
485
+ "scope": 42511,
486
486
  "stateVariable": false,
487
487
  "storageLocation": "default",
488
488
  "typeDescriptions": {
@@ -490,10 +490,10 @@
490
490
  "typeString": "bytes16"
491
491
  },
492
492
  "typeName": {
493
- "id": 39480,
493
+ "id": 42251,
494
494
  "name": "bytes16",
495
495
  "nodeType": "ElementaryTypeName",
496
- "src": "445:7:98",
496
+ "src": "445:7:101",
497
497
  "typeDescriptions": {
498
498
  "typeIdentifier": "t_bytes16",
499
499
  "typeString": "bytes16"
@@ -503,14 +503,14 @@
503
503
  "arguments": [
504
504
  {
505
505
  "hexValue": "524f4f545f4e414d455350414345",
506
- "id": 39483,
506
+ "id": 42254,
507
507
  "isConstant": false,
508
508
  "isLValue": false,
509
509
  "isPure": true,
510
510
  "kind": "string",
511
511
  "lValueRequested": false,
512
512
  "nodeType": "Literal",
513
- "src": "494:16:98",
513
+ "src": "494:16:101",
514
514
  "typeDescriptions": {
515
515
  "typeIdentifier": "t_stringliteral_e13bed48a2e5550efec2568cb522c7b2d0fb7aac45ef0251f617ca1f82298171",
516
516
  "typeString": "literal_string \"ROOT_NAMESPACE\""
@@ -525,26 +525,26 @@
525
525
  "typeString": "literal_string \"ROOT_NAMESPACE\""
526
526
  }
527
527
  ],
528
- "id": 39482,
528
+ "id": 42253,
529
529
  "isConstant": false,
530
530
  "isLValue": false,
531
531
  "isPure": true,
532
532
  "lValueRequested": false,
533
533
  "nodeType": "ElementaryTypeNameExpression",
534
- "src": "486:7:98",
534
+ "src": "486:7:101",
535
535
  "typeDescriptions": {
536
536
  "typeIdentifier": "t_type$_t_bytes16_$",
537
537
  "typeString": "type(bytes16)"
538
538
  },
539
539
  "typeName": {
540
- "id": 39481,
540
+ "id": 42252,
541
541
  "name": "bytes16",
542
542
  "nodeType": "ElementaryTypeName",
543
- "src": "486:7:98",
543
+ "src": "486:7:101",
544
544
  "typeDescriptions": {}
545
545
  }
546
546
  },
547
- "id": 39484,
547
+ "id": 42255,
548
548
  "isConstant": false,
549
549
  "isLValue": false,
550
550
  "isPure": true,
@@ -553,7 +553,7 @@
553
553
  "nameLocations": [],
554
554
  "names": [],
555
555
  "nodeType": "FunctionCall",
556
- "src": "486:25:98",
556
+ "src": "486:25:101",
557
557
  "tryCall": false,
558
558
  "typeDescriptions": {
559
559
  "typeIdentifier": "t_bytes16",
@@ -563,15 +563,15 @@
563
563
  "visibility": "internal"
564
564
  },
565
565
  {
566
- "id": 39491,
566
+ "id": 42262,
567
567
  "nodeType": "VariableDeclaration",
568
- "src": "513:56:98",
568
+ "src": "513:56:101",
569
569
  "nodes": [],
570
570
  "constant": true,
571
571
  "mutability": "constant",
572
572
  "name": "ROOT_NAME_STRING",
573
- "nameLocation": "530:16:98",
574
- "scope": 39740,
573
+ "nameLocation": "530:16:101",
574
+ "scope": 42511,
575
575
  "stateVariable": false,
576
576
  "storageLocation": "default",
577
577
  "typeDescriptions": {
@@ -579,10 +579,10 @@
579
579
  "typeString": "bytes16"
580
580
  },
581
581
  "typeName": {
582
- "id": 39486,
582
+ "id": 42257,
583
583
  "name": "bytes16",
584
584
  "nodeType": "ElementaryTypeName",
585
- "src": "513:7:98",
585
+ "src": "513:7:101",
586
586
  "typeDescriptions": {
587
587
  "typeIdentifier": "t_bytes16",
588
588
  "typeString": "bytes16"
@@ -592,14 +592,14 @@
592
592
  "arguments": [
593
593
  {
594
594
  "hexValue": "524f4f545f4e414d45",
595
- "id": 39489,
595
+ "id": 42260,
596
596
  "isConstant": false,
597
597
  "isLValue": false,
598
598
  "isPure": true,
599
599
  "kind": "string",
600
600
  "lValueRequested": false,
601
601
  "nodeType": "Literal",
602
- "src": "557:11:98",
602
+ "src": "557:11:101",
603
603
  "typeDescriptions": {
604
604
  "typeIdentifier": "t_stringliteral_2e4f6f15e0455f09536cccf8b4c56cbfd24db049bacc296cf1d02f3948de14bd",
605
605
  "typeString": "literal_string \"ROOT_NAME\""
@@ -614,26 +614,26 @@
614
614
  "typeString": "literal_string \"ROOT_NAME\""
615
615
  }
616
616
  ],
617
- "id": 39488,
617
+ "id": 42259,
618
618
  "isConstant": false,
619
619
  "isLValue": false,
620
620
  "isPure": true,
621
621
  "lValueRequested": false,
622
622
  "nodeType": "ElementaryTypeNameExpression",
623
- "src": "549:7:98",
623
+ "src": "549:7:101",
624
624
  "typeDescriptions": {
625
625
  "typeIdentifier": "t_type$_t_bytes16_$",
626
626
  "typeString": "type(bytes16)"
627
627
  },
628
628
  "typeName": {
629
- "id": 39487,
629
+ "id": 42258,
630
630
  "name": "bytes16",
631
631
  "nodeType": "ElementaryTypeName",
632
- "src": "549:7:98",
632
+ "src": "549:7:101",
633
633
  "typeDescriptions": {}
634
634
  }
635
635
  },
636
- "id": 39490,
636
+ "id": 42261,
637
637
  "isConstant": false,
638
638
  "isLValue": false,
639
639
  "isPure": true,
@@ -642,7 +642,7 @@
642
642
  "nameLocations": [],
643
643
  "names": [],
644
644
  "nodeType": "FunctionCall",
645
- "src": "549:20:98",
645
+ "src": "549:20:101",
646
646
  "tryCall": false,
647
647
  "typeDescriptions": {
648
648
  "typeIdentifier": "t_bytes16",
@@ -652,15 +652,15 @@
652
652
  "visibility": "internal"
653
653
  },
654
654
  {
655
- "id": 39504,
655
+ "id": 42275,
656
656
  "nodeType": "VariableDeclaration",
657
- "src": "572:70:98",
657
+ "src": "572:70:101",
658
658
  "nodes": [],
659
659
  "constant": true,
660
660
  "mutability": "constant",
661
661
  "name": "NAMESPACE_MASK",
662
- "nameLocation": "589:14:98",
663
- "scope": 39740,
662
+ "nameLocation": "589:14:101",
663
+ "scope": 42511,
664
664
  "stateVariable": false,
665
665
  "storageLocation": "default",
666
666
  "typeDescriptions": {
@@ -668,10 +668,10 @@
668
668
  "typeString": "bytes32"
669
669
  },
670
670
  "typeName": {
671
- "id": 39492,
671
+ "id": 42263,
672
672
  "name": "bytes32",
673
673
  "nodeType": "ElementaryTypeName",
674
- "src": "572:7:98",
674
+ "src": "572:7:101",
675
675
  "typeDescriptions": {
676
676
  "typeIdentifier": "t_bytes32",
677
677
  "typeString": "bytes32"
@@ -682,7 +682,7 @@
682
682
  "typeIdentifier": "t_bytes32",
683
683
  "typeString": "bytes32"
684
684
  },
685
- "id": 39503,
685
+ "id": 42274,
686
686
  "isConstant": false,
687
687
  "isLValue": false,
688
688
  "isPure": true,
@@ -690,7 +690,7 @@
690
690
  "leftExpression": {
691
691
  "arguments": [
692
692
  {
693
- "id": 39499,
693
+ "id": 42270,
694
694
  "isConstant": false,
695
695
  "isLValue": false,
696
696
  "isPure": true,
@@ -698,19 +698,19 @@
698
698
  "nodeType": "UnaryOperation",
699
699
  "operator": "~",
700
700
  "prefix": true,
701
- "src": "614:12:98",
701
+ "src": "614:12:101",
702
702
  "subExpression": {
703
703
  "arguments": [
704
704
  {
705
705
  "hexValue": "",
706
- "id": 39497,
706
+ "id": 42268,
707
707
  "isConstant": false,
708
708
  "isLValue": false,
709
709
  "isPure": true,
710
710
  "kind": "string",
711
711
  "lValueRequested": false,
712
712
  "nodeType": "Literal",
713
- "src": "623:2:98",
713
+ "src": "623:2:101",
714
714
  "typeDescriptions": {
715
715
  "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
716
716
  "typeString": "literal_string \"\""
@@ -725,26 +725,26 @@
725
725
  "typeString": "literal_string \"\""
726
726
  }
727
727
  ],
728
- "id": 39496,
728
+ "id": 42267,
729
729
  "isConstant": false,
730
730
  "isLValue": false,
731
731
  "isPure": true,
732
732
  "lValueRequested": false,
733
733
  "nodeType": "ElementaryTypeNameExpression",
734
- "src": "615:7:98",
734
+ "src": "615:7:101",
735
735
  "typeDescriptions": {
736
736
  "typeIdentifier": "t_type$_t_bytes14_$",
737
737
  "typeString": "type(bytes14)"
738
738
  },
739
739
  "typeName": {
740
- "id": 39495,
740
+ "id": 42266,
741
741
  "name": "bytes14",
742
742
  "nodeType": "ElementaryTypeName",
743
- "src": "615:7:98",
743
+ "src": "615:7:101",
744
744
  "typeDescriptions": {}
745
745
  }
746
746
  },
747
- "id": 39498,
747
+ "id": 42269,
748
748
  "isConstant": false,
749
749
  "isLValue": false,
750
750
  "isPure": true,
@@ -753,7 +753,7 @@
753
753
  "nameLocations": [],
754
754
  "names": [],
755
755
  "nodeType": "FunctionCall",
756
- "src": "615:11:98",
756
+ "src": "615:11:101",
757
757
  "tryCall": false,
758
758
  "typeDescriptions": {
759
759
  "typeIdentifier": "t_bytes14",
@@ -773,26 +773,26 @@
773
773
  "typeString": "bytes14"
774
774
  }
775
775
  ],
776
- "id": 39494,
776
+ "id": 42265,
777
777
  "isConstant": false,
778
778
  "isLValue": false,
779
779
  "isPure": true,
780
780
  "lValueRequested": false,
781
781
  "nodeType": "ElementaryTypeNameExpression",
782
- "src": "606:7:98",
782
+ "src": "606:7:101",
783
783
  "typeDescriptions": {
784
784
  "typeIdentifier": "t_type$_t_bytes32_$",
785
785
  "typeString": "type(bytes32)"
786
786
  },
787
787
  "typeName": {
788
- "id": 39493,
788
+ "id": 42264,
789
789
  "name": "bytes32",
790
790
  "nodeType": "ElementaryTypeName",
791
- "src": "606:7:98",
791
+ "src": "606:7:101",
792
792
  "typeDescriptions": {}
793
793
  }
794
794
  },
795
- "id": 39500,
795
+ "id": 42271,
796
796
  "isConstant": false,
797
797
  "isLValue": false,
798
798
  "isPure": true,
@@ -801,7 +801,7 @@
801
801
  "nameLocations": [],
802
802
  "names": [],
803
803
  "nodeType": "FunctionCall",
804
- "src": "606:21:98",
804
+ "src": "606:21:101",
805
805
  "tryCall": false,
806
806
  "typeDescriptions": {
807
807
  "typeIdentifier": "t_bytes32",
@@ -813,32 +813,32 @@
813
813
  "rightExpression": {
814
814
  "components": [
815
815
  {
816
- "id": 39501,
816
+ "id": 42272,
817
817
  "name": "TYPE_BITS",
818
818
  "nodeType": "Identifier",
819
819
  "overloadedDeclarations": [],
820
- "referencedDeclaration": 26611,
821
- "src": "632:9:98",
820
+ "referencedDeclaration": 29145,
821
+ "src": "632:9:101",
822
822
  "typeDescriptions": {
823
823
  "typeIdentifier": "t_uint256",
824
824
  "typeString": "uint256"
825
825
  }
826
826
  }
827
827
  ],
828
- "id": 39502,
828
+ "id": 42273,
829
829
  "isConstant": false,
830
830
  "isInlineArray": false,
831
831
  "isLValue": false,
832
832
  "isPure": true,
833
833
  "lValueRequested": false,
834
834
  "nodeType": "TupleExpression",
835
- "src": "631:11:98",
835
+ "src": "631:11:101",
836
836
  "typeDescriptions": {
837
837
  "typeIdentifier": "t_uint256",
838
838
  "typeString": "uint256"
839
839
  }
840
840
  },
841
- "src": "606:36:98",
841
+ "src": "606:36:101",
842
842
  "typeDescriptions": {
843
843
  "typeIdentifier": "t_bytes32",
844
844
  "typeString": "bytes32"
@@ -847,19 +847,19 @@
847
847
  "visibility": "internal"
848
848
  },
849
849
  {
850
- "id": 39618,
850
+ "id": 42389,
851
851
  "nodeType": "ContractDefinition",
852
- "src": "757:1391:98",
852
+ "src": "757:1391:101",
853
853
  "nodes": [
854
854
  {
855
- "id": 39546,
855
+ "id": 42317,
856
856
  "nodeType": "FunctionDefinition",
857
- "src": "1008:257:98",
857
+ "src": "1008:257:101",
858
858
  "nodes": [],
859
859
  "body": {
860
- "id": 39545,
860
+ "id": 42316,
861
861
  "nodeType": "Block",
862
- "src": "1107:158:98",
862
+ "src": "1107:158:101",
863
863
  "nodes": [],
864
864
  "statements": [
865
865
  {
@@ -870,7 +870,7 @@
870
870
  "typeIdentifier": "t_bytes32",
871
871
  "typeString": "bytes32"
872
872
  },
873
- "id": 39542,
873
+ "id": 42313,
874
874
  "isConstant": false,
875
875
  "isLValue": false,
876
876
  "isPure": false,
@@ -880,7 +880,7 @@
880
880
  "typeIdentifier": "t_bytes32",
881
881
  "typeString": "bytes32"
882
882
  },
883
- "id": 39531,
883
+ "id": 42302,
884
884
  "isConstant": false,
885
885
  "isLValue": false,
886
886
  "isPure": false,
@@ -888,12 +888,12 @@
888
888
  "leftExpression": {
889
889
  "arguments": [
890
890
  {
891
- "id": 39522,
891
+ "id": 42293,
892
892
  "name": "typeId",
893
893
  "nodeType": "Identifier",
894
894
  "overloadedDeclarations": [],
895
- "referencedDeclaration": 39508,
896
- "src": "1159:6:98",
895
+ "referencedDeclaration": 42279,
896
+ "src": "1159:6:101",
897
897
  "typeDescriptions": {
898
898
  "typeIdentifier": "t_bytes2",
899
899
  "typeString": "bytes2"
@@ -907,26 +907,26 @@
907
907
  "typeString": "bytes2"
908
908
  }
909
909
  ],
910
- "id": 39521,
910
+ "id": 42292,
911
911
  "isConstant": false,
912
912
  "isLValue": false,
913
913
  "isPure": true,
914
914
  "lValueRequested": false,
915
915
  "nodeType": "ElementaryTypeNameExpression",
916
- "src": "1151:7:98",
916
+ "src": "1151:7:101",
917
917
  "typeDescriptions": {
918
918
  "typeIdentifier": "t_type$_t_bytes32_$",
919
919
  "typeString": "type(bytes32)"
920
920
  },
921
921
  "typeName": {
922
- "id": 39520,
922
+ "id": 42291,
923
923
  "name": "bytes32",
924
924
  "nodeType": "ElementaryTypeName",
925
- "src": "1151:7:98",
925
+ "src": "1151:7:101",
926
926
  "typeDescriptions": {}
927
927
  }
928
928
  },
929
- "id": 39523,
929
+ "id": 42294,
930
930
  "isConstant": false,
931
931
  "isLValue": false,
932
932
  "isPure": false,
@@ -935,7 +935,7 @@
935
935
  "nameLocations": [],
936
936
  "names": [],
937
937
  "nodeType": "FunctionCall",
938
- "src": "1151:15:98",
938
+ "src": "1151:15:101",
939
939
  "tryCall": false,
940
940
  "typeDescriptions": {
941
941
  "typeIdentifier": "t_bytes32",
@@ -951,7 +951,7 @@
951
951
  "typeIdentifier": "t_bytes32",
952
952
  "typeString": "bytes32"
953
953
  },
954
- "id": 39529,
954
+ "id": 42300,
955
955
  "isConstant": false,
956
956
  "isLValue": false,
957
957
  "isPure": false,
@@ -959,12 +959,12 @@
959
959
  "leftExpression": {
960
960
  "arguments": [
961
961
  {
962
- "id": 39526,
962
+ "id": 42297,
963
963
  "name": "namespace",
964
964
  "nodeType": "Identifier",
965
965
  "overloadedDeclarations": [],
966
- "referencedDeclaration": 39510,
967
- "src": "1178:9:98",
966
+ "referencedDeclaration": 42281,
967
+ "src": "1178:9:101",
968
968
  "typeDescriptions": {
969
969
  "typeIdentifier": "t_bytes14",
970
970
  "typeString": "bytes14"
@@ -978,26 +978,26 @@
978
978
  "typeString": "bytes14"
979
979
  }
980
980
  ],
981
- "id": 39525,
981
+ "id": 42296,
982
982
  "isConstant": false,
983
983
  "isLValue": false,
984
984
  "isPure": true,
985
985
  "lValueRequested": false,
986
986
  "nodeType": "ElementaryTypeNameExpression",
987
- "src": "1170:7:98",
987
+ "src": "1170:7:101",
988
988
  "typeDescriptions": {
989
989
  "typeIdentifier": "t_type$_t_bytes32_$",
990
990
  "typeString": "type(bytes32)"
991
991
  },
992
992
  "typeName": {
993
- "id": 39524,
993
+ "id": 42295,
994
994
  "name": "bytes32",
995
995
  "nodeType": "ElementaryTypeName",
996
- "src": "1170:7:98",
996
+ "src": "1170:7:101",
997
997
  "typeDescriptions": {}
998
998
  }
999
999
  },
1000
- "id": 39527,
1000
+ "id": 42298,
1001
1001
  "isConstant": false,
1002
1002
  "isLValue": false,
1003
1003
  "isPure": false,
@@ -1006,7 +1006,7 @@
1006
1006
  "nameLocations": [],
1007
1007
  "names": [],
1008
1008
  "nodeType": "FunctionCall",
1009
- "src": "1170:18:98",
1009
+ "src": "1170:18:101",
1010
1010
  "tryCall": false,
1011
1011
  "typeDescriptions": {
1012
1012
  "typeIdentifier": "t_bytes32",
@@ -1016,38 +1016,38 @@
1016
1016
  "nodeType": "BinaryOperation",
1017
1017
  "operator": ">>",
1018
1018
  "rightExpression": {
1019
- "id": 39528,
1019
+ "id": 42299,
1020
1020
  "name": "TYPE_BITS",
1021
1021
  "nodeType": "Identifier",
1022
1022
  "overloadedDeclarations": [],
1023
- "referencedDeclaration": 26611,
1024
- "src": "1192:9:98",
1023
+ "referencedDeclaration": 29145,
1024
+ "src": "1192:9:101",
1025
1025
  "typeDescriptions": {
1026
1026
  "typeIdentifier": "t_uint256",
1027
1027
  "typeString": "uint256"
1028
1028
  }
1029
1029
  },
1030
- "src": "1170:31:98",
1030
+ "src": "1170:31:101",
1031
1031
  "typeDescriptions": {
1032
1032
  "typeIdentifier": "t_bytes32",
1033
1033
  "typeString": "bytes32"
1034
1034
  }
1035
1035
  }
1036
1036
  ],
1037
- "id": 39530,
1037
+ "id": 42301,
1038
1038
  "isConstant": false,
1039
1039
  "isInlineArray": false,
1040
1040
  "isLValue": false,
1041
1041
  "isPure": false,
1042
1042
  "lValueRequested": false,
1043
1043
  "nodeType": "TupleExpression",
1044
- "src": "1169:33:98",
1044
+ "src": "1169:33:101",
1045
1045
  "typeDescriptions": {
1046
1046
  "typeIdentifier": "t_bytes32",
1047
1047
  "typeString": "bytes32"
1048
1048
  }
1049
1049
  },
1050
- "src": "1151:51:98",
1050
+ "src": "1151:51:101",
1051
1051
  "typeDescriptions": {
1052
1052
  "typeIdentifier": "t_bytes32",
1053
1053
  "typeString": "bytes32"
@@ -1062,7 +1062,7 @@
1062
1062
  "typeIdentifier": "t_bytes32",
1063
1063
  "typeString": "bytes32"
1064
1064
  },
1065
- "id": 39540,
1065
+ "id": 42311,
1066
1066
  "isConstant": false,
1067
1067
  "isLValue": false,
1068
1068
  "isPure": false,
@@ -1070,12 +1070,12 @@
1070
1070
  "leftExpression": {
1071
1071
  "arguments": [
1072
1072
  {
1073
- "id": 39534,
1073
+ "id": 42305,
1074
1074
  "name": "name",
1075
1075
  "nodeType": "Identifier",
1076
1076
  "overloadedDeclarations": [],
1077
- "referencedDeclaration": 39512,
1078
- "src": "1214:4:98",
1077
+ "referencedDeclaration": 42283,
1078
+ "src": "1214:4:101",
1079
1079
  "typeDescriptions": {
1080
1080
  "typeIdentifier": "t_bytes16",
1081
1081
  "typeString": "bytes16"
@@ -1089,26 +1089,26 @@
1089
1089
  "typeString": "bytes16"
1090
1090
  }
1091
1091
  ],
1092
- "id": 39533,
1092
+ "id": 42304,
1093
1093
  "isConstant": false,
1094
1094
  "isLValue": false,
1095
1095
  "isPure": true,
1096
1096
  "lValueRequested": false,
1097
1097
  "nodeType": "ElementaryTypeNameExpression",
1098
- "src": "1206:7:98",
1098
+ "src": "1206:7:101",
1099
1099
  "typeDescriptions": {
1100
1100
  "typeIdentifier": "t_type$_t_bytes32_$",
1101
1101
  "typeString": "type(bytes32)"
1102
1102
  },
1103
1103
  "typeName": {
1104
- "id": 39532,
1104
+ "id": 42303,
1105
1105
  "name": "bytes32",
1106
1106
  "nodeType": "ElementaryTypeName",
1107
- "src": "1206:7:98",
1107
+ "src": "1206:7:101",
1108
1108
  "typeDescriptions": {}
1109
1109
  }
1110
1110
  },
1111
- "id": 39535,
1111
+ "id": 42306,
1112
1112
  "isConstant": false,
1113
1113
  "isLValue": false,
1114
1114
  "isPure": false,
@@ -1117,7 +1117,7 @@
1117
1117
  "nameLocations": [],
1118
1118
  "names": [],
1119
1119
  "nodeType": "FunctionCall",
1120
- "src": "1206:13:98",
1120
+ "src": "1206:13:101",
1121
1121
  "tryCall": false,
1122
1122
  "typeDescriptions": {
1123
1123
  "typeIdentifier": "t_bytes32",
@@ -1133,18 +1133,18 @@
1133
1133
  "typeIdentifier": "t_uint256",
1134
1134
  "typeString": "uint256"
1135
1135
  },
1136
- "id": 39538,
1136
+ "id": 42309,
1137
1137
  "isConstant": false,
1138
1138
  "isLValue": false,
1139
1139
  "isPure": true,
1140
1140
  "lValueRequested": false,
1141
1141
  "leftExpression": {
1142
- "id": 39536,
1142
+ "id": 42307,
1143
1143
  "name": "TYPE_BITS",
1144
1144
  "nodeType": "Identifier",
1145
1145
  "overloadedDeclarations": [],
1146
- "referencedDeclaration": 26611,
1147
- "src": "1224:9:98",
1146
+ "referencedDeclaration": 29145,
1147
+ "src": "1224:9:101",
1148
1148
  "typeDescriptions": {
1149
1149
  "typeIdentifier": "t_uint256",
1150
1150
  "typeString": "uint256"
@@ -1153,58 +1153,58 @@
1153
1153
  "nodeType": "BinaryOperation",
1154
1154
  "operator": "+",
1155
1155
  "rightExpression": {
1156
- "id": 39537,
1156
+ "id": 42308,
1157
1157
  "name": "NAMESPACE_BITS",
1158
1158
  "nodeType": "Identifier",
1159
1159
  "overloadedDeclarations": [],
1160
- "referencedDeclaration": 39474,
1161
- "src": "1236:14:98",
1160
+ "referencedDeclaration": 42245,
1161
+ "src": "1236:14:101",
1162
1162
  "typeDescriptions": {
1163
1163
  "typeIdentifier": "t_uint256",
1164
1164
  "typeString": "uint256"
1165
1165
  }
1166
1166
  },
1167
- "src": "1224:26:98",
1167
+ "src": "1224:26:101",
1168
1168
  "typeDescriptions": {
1169
1169
  "typeIdentifier": "t_uint256",
1170
1170
  "typeString": "uint256"
1171
1171
  }
1172
1172
  }
1173
1173
  ],
1174
- "id": 39539,
1174
+ "id": 42310,
1175
1175
  "isConstant": false,
1176
1176
  "isInlineArray": false,
1177
1177
  "isLValue": false,
1178
1178
  "isPure": true,
1179
1179
  "lValueRequested": false,
1180
1180
  "nodeType": "TupleExpression",
1181
- "src": "1223:28:98",
1181
+ "src": "1223:28:101",
1182
1182
  "typeDescriptions": {
1183
1183
  "typeIdentifier": "t_uint256",
1184
1184
  "typeString": "uint256"
1185
1185
  }
1186
1186
  },
1187
- "src": "1206:45:98",
1187
+ "src": "1206:45:101",
1188
1188
  "typeDescriptions": {
1189
1189
  "typeIdentifier": "t_bytes32",
1190
1190
  "typeString": "bytes32"
1191
1191
  }
1192
1192
  }
1193
1193
  ],
1194
- "id": 39541,
1194
+ "id": 42312,
1195
1195
  "isConstant": false,
1196
1196
  "isInlineArray": false,
1197
1197
  "isLValue": false,
1198
1198
  "isPure": false,
1199
1199
  "lValueRequested": false,
1200
1200
  "nodeType": "TupleExpression",
1201
- "src": "1205:47:98",
1201
+ "src": "1205:47:101",
1202
1202
  "typeDescriptions": {
1203
1203
  "typeIdentifier": "t_bytes32",
1204
1204
  "typeString": "bytes32"
1205
1205
  }
1206
1206
  },
1207
- "src": "1151:101:98",
1207
+ "src": "1151:101:101",
1208
1208
  "typeDescriptions": {
1209
1209
  "typeIdentifier": "t_bytes32",
1210
1210
  "typeString": "bytes32"
@@ -1219,32 +1219,32 @@
1219
1219
  }
1220
1220
  ],
1221
1221
  "expression": {
1222
- "id": 39518,
1222
+ "id": 42289,
1223
1223
  "name": "ResourceId",
1224
1224
  "nodeType": "Identifier",
1225
1225
  "overloadedDeclarations": [],
1226
- "referencedDeclaration": 26605,
1227
- "src": "1126:10:98",
1226
+ "referencedDeclaration": 29139,
1227
+ "src": "1126:10:101",
1228
1228
  "typeDescriptions": {
1229
- "typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$26605_$",
1229
+ "typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$29139_$",
1230
1230
  "typeString": "type(ResourceId)"
1231
1231
  }
1232
1232
  },
1233
- "id": 39519,
1233
+ "id": 42290,
1234
1234
  "isConstant": false,
1235
1235
  "isLValue": false,
1236
1236
  "isPure": true,
1237
1237
  "lValueRequested": false,
1238
- "memberLocation": "1137:4:98",
1238
+ "memberLocation": "1137:4:101",
1239
1239
  "memberName": "wrap",
1240
1240
  "nodeType": "MemberAccess",
1241
- "src": "1126:15:98",
1241
+ "src": "1126:15:101",
1242
1242
  "typeDescriptions": {
1243
- "typeIdentifier": "t_function_wrap_pure$_t_bytes32_$returns$_t_userDefinedValueType$_ResourceId_$26605_$",
1243
+ "typeIdentifier": "t_function_wrap_pure$_t_bytes32_$returns$_t_userDefinedValueType$_ResourceId_$29139_$",
1244
1244
  "typeString": "function (bytes32) pure returns (ResourceId)"
1245
1245
  }
1246
1246
  },
1247
- "id": 39543,
1247
+ "id": 42314,
1248
1248
  "isConstant": false,
1249
1249
  "isLValue": false,
1250
1250
  "isPure": false,
@@ -1253,44 +1253,44 @@
1253
1253
  "nameLocations": [],
1254
1254
  "names": [],
1255
1255
  "nodeType": "FunctionCall",
1256
- "src": "1126:134:98",
1256
+ "src": "1126:134:101",
1257
1257
  "tryCall": false,
1258
1258
  "typeDescriptions": {
1259
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
1259
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
1260
1260
  "typeString": "ResourceId"
1261
1261
  }
1262
1262
  },
1263
- "functionReturnParameters": 39517,
1264
- "id": 39544,
1263
+ "functionReturnParameters": 42288,
1264
+ "id": 42315,
1265
1265
  "nodeType": "Return",
1266
- "src": "1113:147:98"
1266
+ "src": "1113:147:101"
1267
1267
  }
1268
1268
  ]
1269
1269
  },
1270
1270
  "documentation": {
1271
- "id": 39506,
1271
+ "id": 42277,
1272
1272
  "nodeType": "StructuredDocumentation",
1273
- "src": "788:217:98",
1273
+ "src": "788:217:101",
1274
1274
  "text": " @notice Encode a resource ID.\n @param typeId The resource type ID.\n @param namespace The namespace of the resource.\n @param name The name of the resource.\n @return A 32-byte resource ID."
1275
1275
  },
1276
1276
  "implemented": true,
1277
1277
  "kind": "function",
1278
1278
  "modifiers": [],
1279
1279
  "name": "encode",
1280
- "nameLocation": "1017:6:98",
1280
+ "nameLocation": "1017:6:101",
1281
1281
  "parameters": {
1282
- "id": 39513,
1282
+ "id": 42284,
1283
1283
  "nodeType": "ParameterList",
1284
1284
  "parameters": [
1285
1285
  {
1286
1286
  "constant": false,
1287
- "id": 39508,
1287
+ "id": 42279,
1288
1288
  "mutability": "mutable",
1289
1289
  "name": "typeId",
1290
- "nameLocation": "1031:6:98",
1290
+ "nameLocation": "1031:6:101",
1291
1291
  "nodeType": "VariableDeclaration",
1292
- "scope": 39546,
1293
- "src": "1024:13:98",
1292
+ "scope": 42317,
1293
+ "src": "1024:13:101",
1294
1294
  "stateVariable": false,
1295
1295
  "storageLocation": "default",
1296
1296
  "typeDescriptions": {
@@ -1298,10 +1298,10 @@
1298
1298
  "typeString": "bytes2"
1299
1299
  },
1300
1300
  "typeName": {
1301
- "id": 39507,
1301
+ "id": 42278,
1302
1302
  "name": "bytes2",
1303
1303
  "nodeType": "ElementaryTypeName",
1304
- "src": "1024:6:98",
1304
+ "src": "1024:6:101",
1305
1305
  "typeDescriptions": {
1306
1306
  "typeIdentifier": "t_bytes2",
1307
1307
  "typeString": "bytes2"
@@ -1311,13 +1311,13 @@
1311
1311
  },
1312
1312
  {
1313
1313
  "constant": false,
1314
- "id": 39510,
1314
+ "id": 42281,
1315
1315
  "mutability": "mutable",
1316
1316
  "name": "namespace",
1317
- "nameLocation": "1047:9:98",
1317
+ "nameLocation": "1047:9:101",
1318
1318
  "nodeType": "VariableDeclaration",
1319
- "scope": 39546,
1320
- "src": "1039:17:98",
1319
+ "scope": 42317,
1320
+ "src": "1039:17:101",
1321
1321
  "stateVariable": false,
1322
1322
  "storageLocation": "default",
1323
1323
  "typeDescriptions": {
@@ -1325,10 +1325,10 @@
1325
1325
  "typeString": "bytes14"
1326
1326
  },
1327
1327
  "typeName": {
1328
- "id": 39509,
1328
+ "id": 42280,
1329
1329
  "name": "bytes14",
1330
1330
  "nodeType": "ElementaryTypeName",
1331
- "src": "1039:7:98",
1331
+ "src": "1039:7:101",
1332
1332
  "typeDescriptions": {
1333
1333
  "typeIdentifier": "t_bytes14",
1334
1334
  "typeString": "bytes14"
@@ -1338,13 +1338,13 @@
1338
1338
  },
1339
1339
  {
1340
1340
  "constant": false,
1341
- "id": 39512,
1341
+ "id": 42283,
1342
1342
  "mutability": "mutable",
1343
1343
  "name": "name",
1344
- "nameLocation": "1066:4:98",
1344
+ "nameLocation": "1066:4:101",
1345
1345
  "nodeType": "VariableDeclaration",
1346
- "scope": 39546,
1347
- "src": "1058:12:98",
1346
+ "scope": 42317,
1347
+ "src": "1058:12:101",
1348
1348
  "stateVariable": false,
1349
1349
  "storageLocation": "default",
1350
1350
  "typeDescriptions": {
@@ -1352,10 +1352,10 @@
1352
1352
  "typeString": "bytes16"
1353
1353
  },
1354
1354
  "typeName": {
1355
- "id": 39511,
1355
+ "id": 42282,
1356
1356
  "name": "bytes16",
1357
1357
  "nodeType": "ElementaryTypeName",
1358
- "src": "1058:7:98",
1358
+ "src": "1058:7:101",
1359
1359
  "typeDescriptions": {
1360
1360
  "typeIdentifier": "t_bytes16",
1361
1361
  "typeString": "bytes16"
@@ -1364,66 +1364,66 @@
1364
1364
  "visibility": "internal"
1365
1365
  }
1366
1366
  ],
1367
- "src": "1023:48:98"
1367
+ "src": "1023:48:101"
1368
1368
  },
1369
1369
  "returnParameters": {
1370
- "id": 39517,
1370
+ "id": 42288,
1371
1371
  "nodeType": "ParameterList",
1372
1372
  "parameters": [
1373
1373
  {
1374
1374
  "constant": false,
1375
- "id": 39516,
1375
+ "id": 42287,
1376
1376
  "mutability": "mutable",
1377
1377
  "name": "",
1378
1378
  "nameLocation": "-1:-1:-1",
1379
1379
  "nodeType": "VariableDeclaration",
1380
- "scope": 39546,
1381
- "src": "1095:10:98",
1380
+ "scope": 42317,
1381
+ "src": "1095:10:101",
1382
1382
  "stateVariable": false,
1383
1383
  "storageLocation": "default",
1384
1384
  "typeDescriptions": {
1385
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
1385
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
1386
1386
  "typeString": "ResourceId"
1387
1387
  },
1388
1388
  "typeName": {
1389
- "id": 39515,
1389
+ "id": 42286,
1390
1390
  "nodeType": "UserDefinedTypeName",
1391
1391
  "pathNode": {
1392
- "id": 39514,
1392
+ "id": 42285,
1393
1393
  "name": "ResourceId",
1394
1394
  "nameLocations": [
1395
- "1095:10:98"
1395
+ "1095:10:101"
1396
1396
  ],
1397
1397
  "nodeType": "IdentifierPath",
1398
- "referencedDeclaration": 26605,
1399
- "src": "1095:10:98"
1398
+ "referencedDeclaration": 29139,
1399
+ "src": "1095:10:101"
1400
1400
  },
1401
- "referencedDeclaration": 26605,
1402
- "src": "1095:10:98",
1401
+ "referencedDeclaration": 29139,
1402
+ "src": "1095:10:101",
1403
1403
  "typeDescriptions": {
1404
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
1404
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
1405
1405
  "typeString": "ResourceId"
1406
1406
  }
1407
1407
  },
1408
1408
  "visibility": "internal"
1409
1409
  }
1410
1410
  ],
1411
- "src": "1094:12:98"
1411
+ "src": "1094:12:101"
1412
1412
  },
1413
- "scope": 39618,
1413
+ "scope": 42389,
1414
1414
  "stateMutability": "pure",
1415
1415
  "virtual": false,
1416
1416
  "visibility": "internal"
1417
1417
  },
1418
1418
  {
1419
- "id": 39573,
1419
+ "id": 42344,
1420
1420
  "nodeType": "FunctionDefinition",
1421
- "src": "1443:179:98",
1421
+ "src": "1443:179:101",
1422
1422
  "nodes": [],
1423
1423
  "body": {
1424
- "id": 39572,
1424
+ "id": 42343,
1425
1425
  "nodeType": "Block",
1426
- "src": "1522:100:98",
1426
+ "src": "1522:100:101",
1427
1427
  "nodes": [],
1428
1428
  "statements": [
1429
1429
  {
@@ -1434,7 +1434,7 @@
1434
1434
  "typeIdentifier": "t_bytes32",
1435
1435
  "typeString": "bytes32"
1436
1436
  },
1437
- "id": 39569,
1437
+ "id": 42340,
1438
1438
  "isConstant": false,
1439
1439
  "isLValue": false,
1440
1440
  "isPure": false,
@@ -1442,12 +1442,12 @@
1442
1442
  "leftExpression": {
1443
1443
  "arguments": [
1444
1444
  {
1445
- "id": 39559,
1445
+ "id": 42330,
1446
1446
  "name": "RESOURCE_NAMESPACE",
1447
1447
  "nodeType": "Identifier",
1448
1448
  "overloadedDeclarations": [],
1449
- "referencedDeclaration": 39858,
1450
- "src": "1559:18:98",
1449
+ "referencedDeclaration": 49036,
1450
+ "src": "1559:18:101",
1451
1451
  "typeDescriptions": {
1452
1452
  "typeIdentifier": "t_bytes2",
1453
1453
  "typeString": "bytes2"
@@ -1461,26 +1461,26 @@
1461
1461
  "typeString": "bytes2"
1462
1462
  }
1463
1463
  ],
1464
- "id": 39558,
1464
+ "id": 42329,
1465
1465
  "isConstant": false,
1466
1466
  "isLValue": false,
1467
1467
  "isPure": true,
1468
1468
  "lValueRequested": false,
1469
1469
  "nodeType": "ElementaryTypeNameExpression",
1470
- "src": "1551:7:98",
1470
+ "src": "1551:7:101",
1471
1471
  "typeDescriptions": {
1472
1472
  "typeIdentifier": "t_type$_t_bytes32_$",
1473
1473
  "typeString": "type(bytes32)"
1474
1474
  },
1475
1475
  "typeName": {
1476
- "id": 39557,
1476
+ "id": 42328,
1477
1477
  "name": "bytes32",
1478
1478
  "nodeType": "ElementaryTypeName",
1479
- "src": "1551:7:98",
1479
+ "src": "1551:7:101",
1480
1480
  "typeDescriptions": {}
1481
1481
  }
1482
1482
  },
1483
- "id": 39560,
1483
+ "id": 42331,
1484
1484
  "isConstant": false,
1485
1485
  "isLValue": false,
1486
1486
  "isPure": true,
@@ -1489,7 +1489,7 @@
1489
1489
  "nameLocations": [],
1490
1490
  "names": [],
1491
1491
  "nodeType": "FunctionCall",
1492
- "src": "1551:27:98",
1492
+ "src": "1551:27:101",
1493
1493
  "tryCall": false,
1494
1494
  "typeDescriptions": {
1495
1495
  "typeIdentifier": "t_bytes32",
@@ -1505,7 +1505,7 @@
1505
1505
  "typeIdentifier": "t_bytes32",
1506
1506
  "typeString": "bytes32"
1507
1507
  },
1508
- "id": 39567,
1508
+ "id": 42338,
1509
1509
  "isConstant": false,
1510
1510
  "isLValue": false,
1511
1511
  "isPure": false,
@@ -1513,12 +1513,12 @@
1513
1513
  "leftExpression": {
1514
1514
  "arguments": [
1515
1515
  {
1516
- "id": 39563,
1516
+ "id": 42334,
1517
1517
  "name": "namespace",
1518
1518
  "nodeType": "Identifier",
1519
1519
  "overloadedDeclarations": [],
1520
- "referencedDeclaration": 39549,
1521
- "src": "1590:9:98",
1520
+ "referencedDeclaration": 42320,
1521
+ "src": "1590:9:101",
1522
1522
  "typeDescriptions": {
1523
1523
  "typeIdentifier": "t_bytes14",
1524
1524
  "typeString": "bytes14"
@@ -1532,26 +1532,26 @@
1532
1532
  "typeString": "bytes14"
1533
1533
  }
1534
1534
  ],
1535
- "id": 39562,
1535
+ "id": 42333,
1536
1536
  "isConstant": false,
1537
1537
  "isLValue": false,
1538
1538
  "isPure": true,
1539
1539
  "lValueRequested": false,
1540
1540
  "nodeType": "ElementaryTypeNameExpression",
1541
- "src": "1582:7:98",
1541
+ "src": "1582:7:101",
1542
1542
  "typeDescriptions": {
1543
1543
  "typeIdentifier": "t_type$_t_bytes32_$",
1544
1544
  "typeString": "type(bytes32)"
1545
1545
  },
1546
1546
  "typeName": {
1547
- "id": 39561,
1547
+ "id": 42332,
1548
1548
  "name": "bytes32",
1549
1549
  "nodeType": "ElementaryTypeName",
1550
- "src": "1582:7:98",
1550
+ "src": "1582:7:101",
1551
1551
  "typeDescriptions": {}
1552
1552
  }
1553
1553
  },
1554
- "id": 39564,
1554
+ "id": 42335,
1555
1555
  "isConstant": false,
1556
1556
  "isLValue": false,
1557
1557
  "isPure": false,
@@ -1560,7 +1560,7 @@
1560
1560
  "nameLocations": [],
1561
1561
  "names": [],
1562
1562
  "nodeType": "FunctionCall",
1563
- "src": "1582:18:98",
1563
+ "src": "1582:18:101",
1564
1564
  "tryCall": false,
1565
1565
  "typeDescriptions": {
1566
1566
  "typeIdentifier": "t_bytes32",
@@ -1572,52 +1572,52 @@
1572
1572
  "rightExpression": {
1573
1573
  "components": [
1574
1574
  {
1575
- "id": 39565,
1575
+ "id": 42336,
1576
1576
  "name": "TYPE_BITS",
1577
1577
  "nodeType": "Identifier",
1578
1578
  "overloadedDeclarations": [],
1579
- "referencedDeclaration": 26611,
1580
- "src": "1605:9:98",
1579
+ "referencedDeclaration": 29145,
1580
+ "src": "1605:9:101",
1581
1581
  "typeDescriptions": {
1582
1582
  "typeIdentifier": "t_uint256",
1583
1583
  "typeString": "uint256"
1584
1584
  }
1585
1585
  }
1586
1586
  ],
1587
- "id": 39566,
1587
+ "id": 42337,
1588
1588
  "isConstant": false,
1589
1589
  "isInlineArray": false,
1590
1590
  "isLValue": false,
1591
1591
  "isPure": true,
1592
1592
  "lValueRequested": false,
1593
1593
  "nodeType": "TupleExpression",
1594
- "src": "1604:11:98",
1594
+ "src": "1604:11:101",
1595
1595
  "typeDescriptions": {
1596
1596
  "typeIdentifier": "t_uint256",
1597
1597
  "typeString": "uint256"
1598
1598
  }
1599
1599
  },
1600
- "src": "1582:33:98",
1600
+ "src": "1582:33:101",
1601
1601
  "typeDescriptions": {
1602
1602
  "typeIdentifier": "t_bytes32",
1603
1603
  "typeString": "bytes32"
1604
1604
  }
1605
1605
  }
1606
1606
  ],
1607
- "id": 39568,
1607
+ "id": 42339,
1608
1608
  "isConstant": false,
1609
1609
  "isInlineArray": false,
1610
1610
  "isLValue": false,
1611
1611
  "isPure": false,
1612
1612
  "lValueRequested": false,
1613
1613
  "nodeType": "TupleExpression",
1614
- "src": "1581:35:98",
1614
+ "src": "1581:35:101",
1615
1615
  "typeDescriptions": {
1616
1616
  "typeIdentifier": "t_bytes32",
1617
1617
  "typeString": "bytes32"
1618
1618
  }
1619
1619
  },
1620
- "src": "1551:65:98",
1620
+ "src": "1551:65:101",
1621
1621
  "typeDescriptions": {
1622
1622
  "typeIdentifier": "t_bytes32",
1623
1623
  "typeString": "bytes32"
@@ -1632,32 +1632,32 @@
1632
1632
  }
1633
1633
  ],
1634
1634
  "expression": {
1635
- "id": 39555,
1635
+ "id": 42326,
1636
1636
  "name": "ResourceId",
1637
1637
  "nodeType": "Identifier",
1638
1638
  "overloadedDeclarations": [],
1639
- "referencedDeclaration": 26605,
1640
- "src": "1535:10:98",
1639
+ "referencedDeclaration": 29139,
1640
+ "src": "1535:10:101",
1641
1641
  "typeDescriptions": {
1642
- "typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$26605_$",
1642
+ "typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$29139_$",
1643
1643
  "typeString": "type(ResourceId)"
1644
1644
  }
1645
1645
  },
1646
- "id": 39556,
1646
+ "id": 42327,
1647
1647
  "isConstant": false,
1648
1648
  "isLValue": false,
1649
1649
  "isPure": true,
1650
1650
  "lValueRequested": false,
1651
- "memberLocation": "1546:4:98",
1651
+ "memberLocation": "1546:4:101",
1652
1652
  "memberName": "wrap",
1653
1653
  "nodeType": "MemberAccess",
1654
- "src": "1535:15:98",
1654
+ "src": "1535:15:101",
1655
1655
  "typeDescriptions": {
1656
- "typeIdentifier": "t_function_wrap_pure$_t_bytes32_$returns$_t_userDefinedValueType$_ResourceId_$26605_$",
1656
+ "typeIdentifier": "t_function_wrap_pure$_t_bytes32_$returns$_t_userDefinedValueType$_ResourceId_$29139_$",
1657
1657
  "typeString": "function (bytes32) pure returns (ResourceId)"
1658
1658
  }
1659
1659
  },
1660
- "id": 39570,
1660
+ "id": 42341,
1661
1661
  "isConstant": false,
1662
1662
  "isLValue": false,
1663
1663
  "isPure": false,
@@ -1666,44 +1666,44 @@
1666
1666
  "nameLocations": [],
1667
1667
  "names": [],
1668
1668
  "nodeType": "FunctionCall",
1669
- "src": "1535:82:98",
1669
+ "src": "1535:82:101",
1670
1670
  "tryCall": false,
1671
1671
  "typeDescriptions": {
1672
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
1672
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
1673
1673
  "typeString": "ResourceId"
1674
1674
  }
1675
1675
  },
1676
- "functionReturnParameters": 39554,
1677
- "id": 39571,
1676
+ "functionReturnParameters": 42325,
1677
+ "id": 42342,
1678
1678
  "nodeType": "Return",
1679
- "src": "1528:89:98"
1679
+ "src": "1528:89:101"
1680
1680
  }
1681
1681
  ]
1682
1682
  },
1683
1683
  "documentation": {
1684
- "id": 39547,
1684
+ "id": 42318,
1685
1685
  "nodeType": "StructuredDocumentation",
1686
- "src": "1269:171:98",
1686
+ "src": "1269:171:101",
1687
1687
  "text": " @notice Encode a namespace to resource ID.\n @param namespace The namespace to be encoded.\n @return A 32-byte resource ID with the namespace encoded."
1688
1688
  },
1689
1689
  "implemented": true,
1690
1690
  "kind": "function",
1691
1691
  "modifiers": [],
1692
1692
  "name": "encodeNamespace",
1693
- "nameLocation": "1452:15:98",
1693
+ "nameLocation": "1452:15:101",
1694
1694
  "parameters": {
1695
- "id": 39550,
1695
+ "id": 42321,
1696
1696
  "nodeType": "ParameterList",
1697
1697
  "parameters": [
1698
1698
  {
1699
1699
  "constant": false,
1700
- "id": 39549,
1700
+ "id": 42320,
1701
1701
  "mutability": "mutable",
1702
1702
  "name": "namespace",
1703
- "nameLocation": "1476:9:98",
1703
+ "nameLocation": "1476:9:101",
1704
1704
  "nodeType": "VariableDeclaration",
1705
- "scope": 39573,
1706
- "src": "1468:17:98",
1705
+ "scope": 42344,
1706
+ "src": "1468:17:101",
1707
1707
  "stateVariable": false,
1708
1708
  "storageLocation": "default",
1709
1709
  "typeDescriptions": {
@@ -1711,10 +1711,10 @@
1711
1711
  "typeString": "bytes14"
1712
1712
  },
1713
1713
  "typeName": {
1714
- "id": 39548,
1714
+ "id": 42319,
1715
1715
  "name": "bytes14",
1716
1716
  "nodeType": "ElementaryTypeName",
1717
- "src": "1468:7:98",
1717
+ "src": "1468:7:101",
1718
1718
  "typeDescriptions": {
1719
1719
  "typeIdentifier": "t_bytes14",
1720
1720
  "typeString": "bytes14"
@@ -1723,82 +1723,82 @@
1723
1723
  "visibility": "internal"
1724
1724
  }
1725
1725
  ],
1726
- "src": "1467:19:98"
1726
+ "src": "1467:19:101"
1727
1727
  },
1728
1728
  "returnParameters": {
1729
- "id": 39554,
1729
+ "id": 42325,
1730
1730
  "nodeType": "ParameterList",
1731
1731
  "parameters": [
1732
1732
  {
1733
1733
  "constant": false,
1734
- "id": 39553,
1734
+ "id": 42324,
1735
1735
  "mutability": "mutable",
1736
1736
  "name": "",
1737
1737
  "nameLocation": "-1:-1:-1",
1738
1738
  "nodeType": "VariableDeclaration",
1739
- "scope": 39573,
1740
- "src": "1510:10:98",
1739
+ "scope": 42344,
1740
+ "src": "1510:10:101",
1741
1741
  "stateVariable": false,
1742
1742
  "storageLocation": "default",
1743
1743
  "typeDescriptions": {
1744
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
1744
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
1745
1745
  "typeString": "ResourceId"
1746
1746
  },
1747
1747
  "typeName": {
1748
- "id": 39552,
1748
+ "id": 42323,
1749
1749
  "nodeType": "UserDefinedTypeName",
1750
1750
  "pathNode": {
1751
- "id": 39551,
1751
+ "id": 42322,
1752
1752
  "name": "ResourceId",
1753
1753
  "nameLocations": [
1754
- "1510:10:98"
1754
+ "1510:10:101"
1755
1755
  ],
1756
1756
  "nodeType": "IdentifierPath",
1757
- "referencedDeclaration": 26605,
1758
- "src": "1510:10:98"
1757
+ "referencedDeclaration": 29139,
1758
+ "src": "1510:10:101"
1759
1759
  },
1760
- "referencedDeclaration": 26605,
1761
- "src": "1510:10:98",
1760
+ "referencedDeclaration": 29139,
1761
+ "src": "1510:10:101",
1762
1762
  "typeDescriptions": {
1763
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
1763
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
1764
1764
  "typeString": "ResourceId"
1765
1765
  }
1766
1766
  },
1767
1767
  "visibility": "internal"
1768
1768
  }
1769
1769
  ],
1770
- "src": "1509:12:98"
1770
+ "src": "1509:12:101"
1771
1771
  },
1772
- "scope": 39618,
1772
+ "scope": 42389,
1773
1773
  "stateMutability": "pure",
1774
1774
  "virtual": false,
1775
1775
  "visibility": "internal"
1776
1776
  },
1777
1777
  {
1778
- "id": 39617,
1778
+ "id": 42388,
1779
1779
  "nodeType": "FunctionDefinition",
1780
- "src": "1824:322:98",
1780
+ "src": "1824:322:101",
1781
1781
  "nodes": [],
1782
1782
  "body": {
1783
- "id": 39616,
1783
+ "id": 42387,
1784
1784
  "nodeType": "Block",
1785
- "src": "1909:237:98",
1785
+ "src": "1909:237:101",
1786
1786
  "nodes": [],
1787
1787
  "statements": [
1788
1788
  {
1789
1789
  "assignments": [
1790
- 39582
1790
+ 42353
1791
1791
  ],
1792
1792
  "declarations": [
1793
1793
  {
1794
1794
  "constant": false,
1795
- "id": 39582,
1795
+ "id": 42353,
1796
1796
  "mutability": "mutable",
1797
1797
  "name": "length",
1798
- "nameLocation": "1923:6:98",
1798
+ "nameLocation": "1923:6:101",
1799
1799
  "nodeType": "VariableDeclaration",
1800
- "scope": 39616,
1801
- "src": "1915:14:98",
1800
+ "scope": 42387,
1801
+ "src": "1915:14:101",
1802
1802
  "stateVariable": false,
1803
1803
  "storageLocation": "default",
1804
1804
  "typeDescriptions": {
@@ -1806,10 +1806,10 @@
1806
1806
  "typeString": "uint256"
1807
1807
  },
1808
1808
  "typeName": {
1809
- "id": 39581,
1809
+ "id": 42352,
1810
1810
  "name": "uint256",
1811
1811
  "nodeType": "ElementaryTypeName",
1812
- "src": "1915:7:98",
1812
+ "src": "1915:7:101",
1813
1813
  "typeDescriptions": {
1814
1814
  "typeIdentifier": "t_uint256",
1815
1815
  "typeString": "uint256"
@@ -1818,9 +1818,9 @@
1818
1818
  "visibility": "internal"
1819
1819
  }
1820
1820
  ],
1821
- "id": 39583,
1821
+ "id": 42354,
1822
1822
  "nodeType": "VariableDeclarationStatement",
1823
- "src": "1915:14:98"
1823
+ "src": "1915:14:101"
1824
1824
  },
1825
1825
  {
1826
1826
  "body": {
@@ -1829,7 +1829,7 @@
1829
1829
  "typeIdentifier": "t_bytes1",
1830
1830
  "typeString": "bytes1"
1831
1831
  },
1832
- "id": 39596,
1832
+ "id": 42367,
1833
1833
  "isConstant": false,
1834
1834
  "isLValue": false,
1835
1835
  "isPure": false,
@@ -1837,24 +1837,24 @@
1837
1837
  "leftExpression": {
1838
1838
  "arguments": [
1839
1839
  {
1840
- "id": 39592,
1840
+ "id": 42363,
1841
1841
  "name": "paddedString",
1842
1842
  "nodeType": "Identifier",
1843
1843
  "overloadedDeclarations": [],
1844
- "referencedDeclaration": 39576,
1845
- "src": "1982:12:98",
1844
+ "referencedDeclaration": 42347,
1845
+ "src": "1982:12:101",
1846
1846
  "typeDescriptions": {
1847
1847
  "typeIdentifier": "t_bytes16",
1848
1848
  "typeString": "bytes16"
1849
1849
  }
1850
1850
  },
1851
1851
  {
1852
- "id": 39593,
1852
+ "id": 42364,
1853
1853
  "name": "length",
1854
1854
  "nodeType": "Identifier",
1855
1855
  "overloadedDeclarations": [],
1856
- "referencedDeclaration": 39582,
1857
- "src": "1996:6:98",
1856
+ "referencedDeclaration": 42353,
1857
+ "src": "1996:6:101",
1858
1858
  "typeDescriptions": {
1859
1859
  "typeIdentifier": "t_uint256",
1860
1860
  "typeString": "uint256"
@@ -1873,33 +1873,33 @@
1873
1873
  }
1874
1874
  ],
1875
1875
  "expression": {
1876
- "id": 39590,
1876
+ "id": 42361,
1877
1877
  "name": "Bytes",
1878
1878
  "nodeType": "Identifier",
1879
1879
  "overloadedDeclarations": [],
1880
- "referencedDeclaration": 25471,
1881
- "src": "1969:5:98",
1880
+ "referencedDeclaration": 27808,
1881
+ "src": "1969:5:101",
1882
1882
  "typeDescriptions": {
1883
- "typeIdentifier": "t_type$_t_contract$_Bytes_$25471_$",
1883
+ "typeIdentifier": "t_type$_t_contract$_Bytes_$27808_$",
1884
1884
  "typeString": "type(library Bytes)"
1885
1885
  }
1886
1886
  },
1887
- "id": 39591,
1887
+ "id": 42362,
1888
1888
  "isConstant": false,
1889
1889
  "isLValue": false,
1890
1890
  "isPure": false,
1891
1891
  "lValueRequested": false,
1892
- "memberLocation": "1975:6:98",
1892
+ "memberLocation": "1975:6:101",
1893
1893
  "memberName": "slice1",
1894
1894
  "nodeType": "MemberAccess",
1895
- "referencedDeclaration": 24892,
1896
- "src": "1969:12:98",
1895
+ "referencedDeclaration": 27229,
1896
+ "src": "1969:12:101",
1897
1897
  "typeDescriptions": {
1898
1898
  "typeIdentifier": "t_function_internal_pure$_t_bytes32_$_t_uint256_$returns$_t_bytes1_$",
1899
1899
  "typeString": "function (bytes32,uint256) pure returns (bytes1)"
1900
1900
  }
1901
1901
  },
1902
- "id": 39594,
1902
+ "id": 42365,
1903
1903
  "isConstant": false,
1904
1904
  "isLValue": false,
1905
1905
  "isPure": false,
@@ -1908,7 +1908,7 @@
1908
1908
  "nameLocations": [],
1909
1909
  "names": [],
1910
1910
  "nodeType": "FunctionCall",
1911
- "src": "1969:34:98",
1911
+ "src": "1969:34:101",
1912
1912
  "tryCall": false,
1913
1913
  "typeDescriptions": {
1914
1914
  "typeIdentifier": "t_bytes1",
@@ -1919,33 +1919,33 @@
1919
1919
  "operator": "==",
1920
1920
  "rightExpression": {
1921
1921
  "hexValue": "30",
1922
- "id": 39595,
1922
+ "id": 42366,
1923
1923
  "isConstant": false,
1924
1924
  "isLValue": false,
1925
1925
  "isPure": true,
1926
1926
  "kind": "number",
1927
1927
  "lValueRequested": false,
1928
1928
  "nodeType": "Literal",
1929
- "src": "2007:1:98",
1929
+ "src": "2007:1:101",
1930
1930
  "typeDescriptions": {
1931
1931
  "typeIdentifier": "t_rational_0_by_1",
1932
1932
  "typeString": "int_const 0"
1933
1933
  },
1934
1934
  "value": "0"
1935
1935
  },
1936
- "src": "1969:39:98",
1936
+ "src": "1969:39:101",
1937
1937
  "typeDescriptions": {
1938
1938
  "typeIdentifier": "t_bool",
1939
1939
  "typeString": "bool"
1940
1940
  }
1941
1941
  },
1942
- "id": 39598,
1942
+ "id": 42369,
1943
1943
  "nodeType": "IfStatement",
1944
- "src": "1965:50:98",
1944
+ "src": "1965:50:101",
1945
1945
  "trueBody": {
1946
- "id": 39597,
1946
+ "id": 42368,
1947
1947
  "nodeType": "Break",
1948
- "src": "2010:5:98"
1948
+ "src": "2010:5:101"
1949
1949
  }
1950
1950
  },
1951
1951
  "condition": {
@@ -1953,18 +1953,18 @@
1953
1953
  "typeIdentifier": "t_uint256",
1954
1954
  "typeString": "uint256"
1955
1955
  },
1956
- "id": 39586,
1956
+ "id": 42357,
1957
1957
  "isConstant": false,
1958
1958
  "isLValue": false,
1959
1959
  "isPure": false,
1960
1960
  "lValueRequested": false,
1961
1961
  "leftExpression": {
1962
- "id": 39584,
1962
+ "id": 42355,
1963
1963
  "name": "length",
1964
1964
  "nodeType": "Identifier",
1965
1965
  "overloadedDeclarations": [],
1966
- "referencedDeclaration": 39582,
1967
- "src": "1942:6:98",
1966
+ "referencedDeclaration": 42353,
1967
+ "src": "1942:6:101",
1968
1968
  "typeDescriptions": {
1969
1969
  "typeIdentifier": "t_uint256",
1970
1970
  "typeString": "uint256"
@@ -1974,30 +1974,30 @@
1974
1974
  "operator": "<",
1975
1975
  "rightExpression": {
1976
1976
  "hexValue": "3136",
1977
- "id": 39585,
1977
+ "id": 42356,
1978
1978
  "isConstant": false,
1979
1979
  "isLValue": false,
1980
1980
  "isPure": true,
1981
1981
  "kind": "number",
1982
1982
  "lValueRequested": false,
1983
1983
  "nodeType": "Literal",
1984
- "src": "1951:2:98",
1984
+ "src": "1951:2:101",
1985
1985
  "typeDescriptions": {
1986
1986
  "typeIdentifier": "t_rational_16_by_1",
1987
1987
  "typeString": "int_const 16"
1988
1988
  },
1989
1989
  "value": "16"
1990
1990
  },
1991
- "src": "1942:11:98",
1991
+ "src": "1942:11:101",
1992
1992
  "typeDescriptions": {
1993
1993
  "typeIdentifier": "t_bool",
1994
1994
  "typeString": "bool"
1995
1995
  }
1996
1996
  },
1997
- "id": 39599,
1997
+ "id": 42370,
1998
1998
  "loopExpression": {
1999
1999
  "expression": {
2000
- "id": 39588,
2000
+ "id": 42359,
2001
2001
  "isConstant": false,
2002
2002
  "isLValue": false,
2003
2003
  "isPure": false,
@@ -2005,14 +2005,14 @@
2005
2005
  "nodeType": "UnaryOperation",
2006
2006
  "operator": "++",
2007
2007
  "prefix": false,
2008
- "src": "1955:8:98",
2008
+ "src": "1955:8:101",
2009
2009
  "subExpression": {
2010
- "id": 39587,
2010
+ "id": 42358,
2011
2011
  "name": "length",
2012
2012
  "nodeType": "Identifier",
2013
2013
  "overloadedDeclarations": [],
2014
- "referencedDeclaration": 39582,
2015
- "src": "1955:6:98",
2014
+ "referencedDeclaration": 42353,
2015
+ "src": "1955:6:101",
2016
2016
  "typeDescriptions": {
2017
2017
  "typeIdentifier": "t_uint256",
2018
2018
  "typeString": "uint256"
@@ -2023,27 +2023,27 @@
2023
2023
  "typeString": "uint256"
2024
2024
  }
2025
2025
  },
2026
- "id": 39589,
2026
+ "id": 42360,
2027
2027
  "nodeType": "ExpressionStatement",
2028
- "src": "1955:8:98"
2028
+ "src": "1955:8:101"
2029
2029
  },
2030
2030
  "nodeType": "ForStatement",
2031
- "src": "1935:80:98"
2031
+ "src": "1935:80:101"
2032
2032
  },
2033
2033
  {
2034
2034
  "assignments": [
2035
- 39601
2035
+ 42372
2036
2036
  ],
2037
2037
  "declarations": [
2038
2038
  {
2039
2039
  "constant": false,
2040
- "id": 39601,
2040
+ "id": 42372,
2041
2041
  "mutability": "mutable",
2042
2042
  "name": "packedSelector",
2043
- "nameLocation": "2034:14:98",
2043
+ "nameLocation": "2034:14:101",
2044
2044
  "nodeType": "VariableDeclaration",
2045
- "scope": 39616,
2046
- "src": "2021:27:98",
2045
+ "scope": 42387,
2046
+ "src": "2021:27:101",
2047
2047
  "stateVariable": false,
2048
2048
  "storageLocation": "memory",
2049
2049
  "typeDescriptions": {
@@ -2051,10 +2051,10 @@
2051
2051
  "typeString": "bytes"
2052
2052
  },
2053
2053
  "typeName": {
2054
- "id": 39600,
2054
+ "id": 42371,
2055
2055
  "name": "bytes",
2056
2056
  "nodeType": "ElementaryTypeName",
2057
- "src": "2021:5:98",
2057
+ "src": "2021:5:101",
2058
2058
  "typeDescriptions": {
2059
2059
  "typeIdentifier": "t_bytes_storage_ptr",
2060
2060
  "typeString": "bytes"
@@ -2063,16 +2063,16 @@
2063
2063
  "visibility": "internal"
2064
2064
  }
2065
2065
  ],
2066
- "id": 39606,
2066
+ "id": 42377,
2067
2067
  "initialValue": {
2068
2068
  "arguments": [
2069
2069
  {
2070
- "id": 39604,
2070
+ "id": 42375,
2071
2071
  "name": "paddedString",
2072
2072
  "nodeType": "Identifier",
2073
2073
  "overloadedDeclarations": [],
2074
- "referencedDeclaration": 39576,
2075
- "src": "2068:12:98",
2074
+ "referencedDeclaration": 42347,
2075
+ "src": "2068:12:101",
2076
2076
  "typeDescriptions": {
2077
2077
  "typeIdentifier": "t_bytes16",
2078
2078
  "typeString": "bytes16"
@@ -2087,32 +2087,32 @@
2087
2087
  }
2088
2088
  ],
2089
2089
  "expression": {
2090
- "id": 39602,
2090
+ "id": 42373,
2091
2091
  "name": "abi",
2092
2092
  "nodeType": "Identifier",
2093
2093
  "overloadedDeclarations": [],
2094
2094
  "referencedDeclaration": -1,
2095
- "src": "2051:3:98",
2095
+ "src": "2051:3:101",
2096
2096
  "typeDescriptions": {
2097
2097
  "typeIdentifier": "t_magic_abi",
2098
2098
  "typeString": "abi"
2099
2099
  }
2100
2100
  },
2101
- "id": 39603,
2101
+ "id": 42374,
2102
2102
  "isConstant": false,
2103
2103
  "isLValue": false,
2104
2104
  "isPure": true,
2105
2105
  "lValueRequested": false,
2106
- "memberLocation": "2055:12:98",
2106
+ "memberLocation": "2055:12:101",
2107
2107
  "memberName": "encodePacked",
2108
2108
  "nodeType": "MemberAccess",
2109
- "src": "2051:16:98",
2109
+ "src": "2051:16:101",
2110
2110
  "typeDescriptions": {
2111
2111
  "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
2112
2112
  "typeString": "function () pure returns (bytes memory)"
2113
2113
  }
2114
2114
  },
2115
- "id": 39605,
2115
+ "id": 42376,
2116
2116
  "isConstant": false,
2117
2117
  "isLValue": false,
2118
2118
  "isPure": false,
@@ -2121,7 +2121,7 @@
2121
2121
  "nameLocations": [],
2122
2122
  "names": [],
2123
2123
  "nodeType": "FunctionCall",
2124
- "src": "2051:30:98",
2124
+ "src": "2051:30:101",
2125
2125
  "tryCall": false,
2126
2126
  "typeDescriptions": {
2127
2127
  "typeIdentifier": "t_bytes_memory_ptr",
@@ -2129,7 +2129,7 @@
2129
2129
  }
2130
2130
  },
2131
2131
  "nodeType": "VariableDeclarationStatement",
2132
- "src": "2021:60:98"
2132
+ "src": "2021:60:101"
2133
2133
  },
2134
2134
  {
2135
2135
  "expression": {
@@ -2137,24 +2137,24 @@
2137
2137
  {
2138
2138
  "arguments": [
2139
2139
  {
2140
- "id": 39611,
2140
+ "id": 42382,
2141
2141
  "name": "packedSelector",
2142
2142
  "nodeType": "Identifier",
2143
2143
  "overloadedDeclarations": [],
2144
- "referencedDeclaration": 39601,
2145
- "src": "2117:14:98",
2144
+ "referencedDeclaration": 42372,
2145
+ "src": "2117:14:101",
2146
2146
  "typeDescriptions": {
2147
2147
  "typeIdentifier": "t_bytes_memory_ptr",
2148
2148
  "typeString": "bytes memory"
2149
2149
  }
2150
2150
  },
2151
2151
  {
2152
- "id": 39612,
2152
+ "id": 42383,
2153
2153
  "name": "length",
2154
2154
  "nodeType": "Identifier",
2155
2155
  "overloadedDeclarations": [],
2156
- "referencedDeclaration": 39582,
2157
- "src": "2133:6:98",
2156
+ "referencedDeclaration": 42353,
2157
+ "src": "2133:6:101",
2158
2158
  "typeDescriptions": {
2159
2159
  "typeIdentifier": "t_uint256",
2160
2160
  "typeString": "uint256"
@@ -2173,33 +2173,33 @@
2173
2173
  }
2174
2174
  ],
2175
2175
  "expression": {
2176
- "id": 39609,
2176
+ "id": 42380,
2177
2177
  "name": "Bytes",
2178
2178
  "nodeType": "Identifier",
2179
2179
  "overloadedDeclarations": [],
2180
- "referencedDeclaration": 25471,
2181
- "src": "2101:5:98",
2180
+ "referencedDeclaration": 27808,
2181
+ "src": "2101:5:101",
2182
2182
  "typeDescriptions": {
2183
- "typeIdentifier": "t_type$_t_contract$_Bytes_$25471_$",
2183
+ "typeIdentifier": "t_type$_t_contract$_Bytes_$27808_$",
2184
2184
  "typeString": "type(library Bytes)"
2185
2185
  }
2186
2186
  },
2187
- "id": 39610,
2187
+ "id": 42381,
2188
2188
  "isConstant": false,
2189
2189
  "isLValue": false,
2190
2190
  "isPure": false,
2191
2191
  "lValueRequested": false,
2192
- "memberLocation": "2107:9:98",
2192
+ "memberLocation": "2107:9:101",
2193
2193
  "memberName": "setLength",
2194
2194
  "nodeType": "MemberAccess",
2195
- "referencedDeclaration": 24724,
2196
- "src": "2101:15:98",
2195
+ "referencedDeclaration": 27061,
2196
+ "src": "2101:15:101",
2197
2197
  "typeDescriptions": {
2198
2198
  "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$_t_uint256_$returns$_t_bytes_memory_ptr_$",
2199
2199
  "typeString": "function (bytes memory,uint256) pure returns (bytes memory)"
2200
2200
  }
2201
2201
  },
2202
- "id": 39613,
2202
+ "id": 42384,
2203
2203
  "isConstant": false,
2204
2204
  "isLValue": false,
2205
2205
  "isPure": false,
@@ -2208,7 +2208,7 @@
2208
2208
  "nameLocations": [],
2209
2209
  "names": [],
2210
2210
  "nodeType": "FunctionCall",
2211
- "src": "2101:39:98",
2211
+ "src": "2101:39:101",
2212
2212
  "tryCall": false,
2213
2213
  "typeDescriptions": {
2214
2214
  "typeIdentifier": "t_bytes_memory_ptr",
@@ -2223,26 +2223,26 @@
2223
2223
  "typeString": "bytes memory"
2224
2224
  }
2225
2225
  ],
2226
- "id": 39608,
2226
+ "id": 42379,
2227
2227
  "isConstant": false,
2228
2228
  "isLValue": false,
2229
2229
  "isPure": true,
2230
2230
  "lValueRequested": false,
2231
2231
  "nodeType": "ElementaryTypeNameExpression",
2232
- "src": "2094:6:98",
2232
+ "src": "2094:6:101",
2233
2233
  "typeDescriptions": {
2234
2234
  "typeIdentifier": "t_type$_t_string_storage_ptr_$",
2235
2235
  "typeString": "type(string storage pointer)"
2236
2236
  },
2237
2237
  "typeName": {
2238
- "id": 39607,
2238
+ "id": 42378,
2239
2239
  "name": "string",
2240
2240
  "nodeType": "ElementaryTypeName",
2241
- "src": "2094:6:98",
2241
+ "src": "2094:6:101",
2242
2242
  "typeDescriptions": {}
2243
2243
  }
2244
2244
  },
2245
- "id": 39614,
2245
+ "id": 42385,
2246
2246
  "isConstant": false,
2247
2247
  "isLValue": false,
2248
2248
  "isPure": false,
@@ -2251,44 +2251,44 @@
2251
2251
  "nameLocations": [],
2252
2252
  "names": [],
2253
2253
  "nodeType": "FunctionCall",
2254
- "src": "2094:47:98",
2254
+ "src": "2094:47:101",
2255
2255
  "tryCall": false,
2256
2256
  "typeDescriptions": {
2257
2257
  "typeIdentifier": "t_string_memory_ptr",
2258
2258
  "typeString": "string memory"
2259
2259
  }
2260
2260
  },
2261
- "functionReturnParameters": 39580,
2262
- "id": 39615,
2261
+ "functionReturnParameters": 42351,
2262
+ "id": 42386,
2263
2263
  "nodeType": "Return",
2264
- "src": "2087:54:98"
2264
+ "src": "2087:54:101"
2265
2265
  }
2266
2266
  ]
2267
2267
  },
2268
2268
  "documentation": {
2269
- "id": 39574,
2269
+ "id": 42345,
2270
2270
  "nodeType": "StructuredDocumentation",
2271
- "src": "1626:195:98",
2271
+ "src": "1626:195:101",
2272
2272
  "text": " @notice Convert a padded string to a trimmed string.\n @param paddedString The input string with potential padding.\n @return A string without trailing null ASCII characters."
2273
2273
  },
2274
2274
  "implemented": true,
2275
2275
  "kind": "function",
2276
2276
  "modifiers": [],
2277
2277
  "name": "toTrimmedString",
2278
- "nameLocation": "1833:15:98",
2278
+ "nameLocation": "1833:15:101",
2279
2279
  "parameters": {
2280
- "id": 39577,
2280
+ "id": 42348,
2281
2281
  "nodeType": "ParameterList",
2282
2282
  "parameters": [
2283
2283
  {
2284
2284
  "constant": false,
2285
- "id": 39576,
2285
+ "id": 42347,
2286
2286
  "mutability": "mutable",
2287
2287
  "name": "paddedString",
2288
- "nameLocation": "1857:12:98",
2288
+ "nameLocation": "1857:12:101",
2289
2289
  "nodeType": "VariableDeclaration",
2290
- "scope": 39617,
2291
- "src": "1849:20:98",
2290
+ "scope": 42388,
2291
+ "src": "1849:20:101",
2292
2292
  "stateVariable": false,
2293
2293
  "storageLocation": "default",
2294
2294
  "typeDescriptions": {
@@ -2296,10 +2296,10 @@
2296
2296
  "typeString": "bytes16"
2297
2297
  },
2298
2298
  "typeName": {
2299
- "id": 39575,
2299
+ "id": 42346,
2300
2300
  "name": "bytes16",
2301
2301
  "nodeType": "ElementaryTypeName",
2302
- "src": "1849:7:98",
2302
+ "src": "1849:7:101",
2303
2303
  "typeDescriptions": {
2304
2304
  "typeIdentifier": "t_bytes16",
2305
2305
  "typeString": "bytes16"
@@ -2308,21 +2308,21 @@
2308
2308
  "visibility": "internal"
2309
2309
  }
2310
2310
  ],
2311
- "src": "1848:22:98"
2311
+ "src": "1848:22:101"
2312
2312
  },
2313
2313
  "returnParameters": {
2314
- "id": 39580,
2314
+ "id": 42351,
2315
2315
  "nodeType": "ParameterList",
2316
2316
  "parameters": [
2317
2317
  {
2318
2318
  "constant": false,
2319
- "id": 39579,
2319
+ "id": 42350,
2320
2320
  "mutability": "mutable",
2321
2321
  "name": "",
2322
2322
  "nameLocation": "-1:-1:-1",
2323
2323
  "nodeType": "VariableDeclaration",
2324
- "scope": 39617,
2325
- "src": "1894:13:98",
2324
+ "scope": 42388,
2325
+ "src": "1894:13:101",
2326
2326
  "stateVariable": false,
2327
2327
  "storageLocation": "memory",
2328
2328
  "typeDescriptions": {
@@ -2330,10 +2330,10 @@
2330
2330
  "typeString": "string"
2331
2331
  },
2332
2332
  "typeName": {
2333
- "id": 39578,
2333
+ "id": 42349,
2334
2334
  "name": "string",
2335
2335
  "nodeType": "ElementaryTypeName",
2336
- "src": "1894:6:98",
2336
+ "src": "1894:6:101",
2337
2337
  "typeDescriptions": {
2338
2338
  "typeIdentifier": "t_string_storage_ptr",
2339
2339
  "typeString": "string"
@@ -2342,9 +2342,9 @@
2342
2342
  "visibility": "internal"
2343
2343
  }
2344
2344
  ],
2345
- "src": "1893:15:98"
2345
+ "src": "1893:15:101"
2346
2346
  },
2347
- "scope": 39618,
2347
+ "scope": 42389,
2348
2348
  "stateMutability": "pure",
2349
2349
  "virtual": false,
2350
2350
  "visibility": "internal"
@@ -2356,35 +2356,35 @@
2356
2356
  "contractDependencies": [],
2357
2357
  "contractKind": "library",
2358
2358
  "documentation": {
2359
- "id": 39505,
2359
+ "id": 42276,
2360
2360
  "nodeType": "StructuredDocumentation",
2361
- "src": "645:111:98",
2361
+ "src": "645:111:101",
2362
2362
  "text": " @title WorldResourceIdLib\n @notice A library for handling World Resource ID encoding and decoding."
2363
2363
  },
2364
2364
  "fullyImplemented": true,
2365
2365
  "linearizedBaseContracts": [
2366
- 39618
2366
+ 42389
2367
2367
  ],
2368
2368
  "name": "WorldResourceIdLib",
2369
- "nameLocation": "765:18:98",
2370
- "scope": 39740,
2369
+ "nameLocation": "765:18:101",
2370
+ "scope": 42511,
2371
2371
  "usedErrors": [],
2372
2372
  "usedEvents": []
2373
2373
  },
2374
2374
  {
2375
- "id": 39739,
2375
+ "id": 42510,
2376
2376
  "nodeType": "ContractDefinition",
2377
- "src": "2259:1663:98",
2377
+ "src": "2259:1663:101",
2378
2378
  "nodes": [
2379
2379
  {
2380
- "id": 39640,
2380
+ "id": 42411,
2381
2381
  "nodeType": "FunctionDefinition",
2382
- "src": "2432:148:98",
2382
+ "src": "2432:148:101",
2383
2383
  "nodes": [],
2384
2384
  "body": {
2385
- "id": 39639,
2385
+ "id": 42410,
2386
2386
  "nodeType": "Block",
2387
- "src": "2509:71:98",
2387
+ "src": "2509:71:101",
2388
2388
  "nodes": [],
2389
2389
  "statements": [
2390
2390
  {
@@ -2395,7 +2395,7 @@
2395
2395
  "typeIdentifier": "t_bytes32",
2396
2396
  "typeString": "bytes32"
2397
2397
  },
2398
- "id": 39636,
2398
+ "id": 42407,
2399
2399
  "isConstant": false,
2400
2400
  "isLValue": false,
2401
2401
  "isPure": false,
@@ -2403,14 +2403,14 @@
2403
2403
  "leftExpression": {
2404
2404
  "arguments": [
2405
2405
  {
2406
- "id": 39632,
2406
+ "id": 42403,
2407
2407
  "name": "resourceId",
2408
2408
  "nodeType": "Identifier",
2409
2409
  "overloadedDeclarations": [],
2410
- "referencedDeclaration": 39623,
2411
- "src": "2548:10:98",
2410
+ "referencedDeclaration": 42394,
2411
+ "src": "2548:10:101",
2412
2412
  "typeDescriptions": {
2413
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
2413
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
2414
2414
  "typeString": "ResourceId"
2415
2415
  }
2416
2416
  }
@@ -2418,37 +2418,37 @@
2418
2418
  "expression": {
2419
2419
  "argumentTypes": [
2420
2420
  {
2421
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
2421
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
2422
2422
  "typeString": "ResourceId"
2423
2423
  }
2424
2424
  ],
2425
2425
  "expression": {
2426
- "id": 39630,
2426
+ "id": 42401,
2427
2427
  "name": "ResourceId",
2428
2428
  "nodeType": "Identifier",
2429
2429
  "overloadedDeclarations": [],
2430
- "referencedDeclaration": 26605,
2431
- "src": "2530:10:98",
2430
+ "referencedDeclaration": 29139,
2431
+ "src": "2530:10:101",
2432
2432
  "typeDescriptions": {
2433
- "typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$26605_$",
2433
+ "typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$29139_$",
2434
2434
  "typeString": "type(ResourceId)"
2435
2435
  }
2436
2436
  },
2437
- "id": 39631,
2437
+ "id": 42402,
2438
2438
  "isConstant": false,
2439
2439
  "isLValue": false,
2440
2440
  "isPure": true,
2441
2441
  "lValueRequested": false,
2442
- "memberLocation": "2541:6:98",
2442
+ "memberLocation": "2541:6:101",
2443
2443
  "memberName": "unwrap",
2444
2444
  "nodeType": "MemberAccess",
2445
- "src": "2530:17:98",
2445
+ "src": "2530:17:101",
2446
2446
  "typeDescriptions": {
2447
- "typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_ResourceId_$26605_$returns$_t_bytes32_$",
2447
+ "typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_ResourceId_$29139_$returns$_t_bytes32_$",
2448
2448
  "typeString": "function (ResourceId) pure returns (bytes32)"
2449
2449
  }
2450
2450
  },
2451
- "id": 39633,
2451
+ "id": 42404,
2452
2452
  "isConstant": false,
2453
2453
  "isLValue": false,
2454
2454
  "isPure": false,
@@ -2457,7 +2457,7 @@
2457
2457
  "nameLocations": [],
2458
2458
  "names": [],
2459
2459
  "nodeType": "FunctionCall",
2460
- "src": "2530:29:98",
2460
+ "src": "2530:29:101",
2461
2461
  "tryCall": false,
2462
2462
  "typeDescriptions": {
2463
2463
  "typeIdentifier": "t_bytes32",
@@ -2469,32 +2469,32 @@
2469
2469
  "rightExpression": {
2470
2470
  "components": [
2471
2471
  {
2472
- "id": 39634,
2472
+ "id": 42405,
2473
2473
  "name": "TYPE_BITS",
2474
2474
  "nodeType": "Identifier",
2475
2475
  "overloadedDeclarations": [],
2476
- "referencedDeclaration": 26611,
2477
- "src": "2564:9:98",
2476
+ "referencedDeclaration": 29145,
2477
+ "src": "2564:9:101",
2478
2478
  "typeDescriptions": {
2479
2479
  "typeIdentifier": "t_uint256",
2480
2480
  "typeString": "uint256"
2481
2481
  }
2482
2482
  }
2483
2483
  ],
2484
- "id": 39635,
2484
+ "id": 42406,
2485
2485
  "isConstant": false,
2486
2486
  "isInlineArray": false,
2487
2487
  "isLValue": false,
2488
2488
  "isPure": true,
2489
2489
  "lValueRequested": false,
2490
2490
  "nodeType": "TupleExpression",
2491
- "src": "2563:11:98",
2491
+ "src": "2563:11:101",
2492
2492
  "typeDescriptions": {
2493
2493
  "typeIdentifier": "t_uint256",
2494
2494
  "typeString": "uint256"
2495
2495
  }
2496
2496
  },
2497
- "src": "2530:44:98",
2497
+ "src": "2530:44:101",
2498
2498
  "typeDescriptions": {
2499
2499
  "typeIdentifier": "t_bytes32",
2500
2500
  "typeString": "bytes32"
@@ -2508,26 +2508,26 @@
2508
2508
  "typeString": "bytes32"
2509
2509
  }
2510
2510
  ],
2511
- "id": 39629,
2511
+ "id": 42400,
2512
2512
  "isConstant": false,
2513
2513
  "isLValue": false,
2514
2514
  "isPure": true,
2515
2515
  "lValueRequested": false,
2516
2516
  "nodeType": "ElementaryTypeNameExpression",
2517
- "src": "2522:7:98",
2517
+ "src": "2522:7:101",
2518
2518
  "typeDescriptions": {
2519
2519
  "typeIdentifier": "t_type$_t_bytes14_$",
2520
2520
  "typeString": "type(bytes14)"
2521
2521
  },
2522
2522
  "typeName": {
2523
- "id": 39628,
2523
+ "id": 42399,
2524
2524
  "name": "bytes14",
2525
2525
  "nodeType": "ElementaryTypeName",
2526
- "src": "2522:7:98",
2526
+ "src": "2522:7:101",
2527
2527
  "typeDescriptions": {}
2528
2528
  }
2529
2529
  },
2530
- "id": 39637,
2530
+ "id": 42408,
2531
2531
  "isConstant": false,
2532
2532
  "isLValue": false,
2533
2533
  "isPure": false,
@@ -2536,88 +2536,88 @@
2536
2536
  "nameLocations": [],
2537
2537
  "names": [],
2538
2538
  "nodeType": "FunctionCall",
2539
- "src": "2522:53:98",
2539
+ "src": "2522:53:101",
2540
2540
  "tryCall": false,
2541
2541
  "typeDescriptions": {
2542
2542
  "typeIdentifier": "t_bytes14",
2543
2543
  "typeString": "bytes14"
2544
2544
  }
2545
2545
  },
2546
- "functionReturnParameters": 39627,
2547
- "id": 39638,
2546
+ "functionReturnParameters": 42398,
2547
+ "id": 42409,
2548
2548
  "nodeType": "Return",
2549
- "src": "2515:60:98"
2549
+ "src": "2515:60:101"
2550
2550
  }
2551
2551
  ]
2552
2552
  },
2553
2553
  "documentation": {
2554
- "id": 39620,
2554
+ "id": 42391,
2555
2555
  "nodeType": "StructuredDocumentation",
2556
- "src": "2295:134:98",
2556
+ "src": "2295:134:101",
2557
2557
  "text": " @notice Get the namespace from a resource ID.\n @param resourceId The resource ID.\n @return A 14-byte namespace."
2558
2558
  },
2559
2559
  "implemented": true,
2560
2560
  "kind": "function",
2561
2561
  "modifiers": [],
2562
2562
  "name": "getNamespace",
2563
- "nameLocation": "2441:12:98",
2563
+ "nameLocation": "2441:12:101",
2564
2564
  "parameters": {
2565
- "id": 39624,
2565
+ "id": 42395,
2566
2566
  "nodeType": "ParameterList",
2567
2567
  "parameters": [
2568
2568
  {
2569
2569
  "constant": false,
2570
- "id": 39623,
2570
+ "id": 42394,
2571
2571
  "mutability": "mutable",
2572
2572
  "name": "resourceId",
2573
- "nameLocation": "2465:10:98",
2573
+ "nameLocation": "2465:10:101",
2574
2574
  "nodeType": "VariableDeclaration",
2575
- "scope": 39640,
2576
- "src": "2454:21:98",
2575
+ "scope": 42411,
2576
+ "src": "2454:21:101",
2577
2577
  "stateVariable": false,
2578
2578
  "storageLocation": "default",
2579
2579
  "typeDescriptions": {
2580
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
2580
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
2581
2581
  "typeString": "ResourceId"
2582
2582
  },
2583
2583
  "typeName": {
2584
- "id": 39622,
2584
+ "id": 42393,
2585
2585
  "nodeType": "UserDefinedTypeName",
2586
2586
  "pathNode": {
2587
- "id": 39621,
2587
+ "id": 42392,
2588
2588
  "name": "ResourceId",
2589
2589
  "nameLocations": [
2590
- "2454:10:98"
2590
+ "2454:10:101"
2591
2591
  ],
2592
2592
  "nodeType": "IdentifierPath",
2593
- "referencedDeclaration": 26605,
2594
- "src": "2454:10:98"
2593
+ "referencedDeclaration": 29139,
2594
+ "src": "2454:10:101"
2595
2595
  },
2596
- "referencedDeclaration": 26605,
2597
- "src": "2454:10:98",
2596
+ "referencedDeclaration": 29139,
2597
+ "src": "2454:10:101",
2598
2598
  "typeDescriptions": {
2599
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
2599
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
2600
2600
  "typeString": "ResourceId"
2601
2601
  }
2602
2602
  },
2603
2603
  "visibility": "internal"
2604
2604
  }
2605
2605
  ],
2606
- "src": "2453:23:98"
2606
+ "src": "2453:23:101"
2607
2607
  },
2608
2608
  "returnParameters": {
2609
- "id": 39627,
2609
+ "id": 42398,
2610
2610
  "nodeType": "ParameterList",
2611
2611
  "parameters": [
2612
2612
  {
2613
2613
  "constant": false,
2614
- "id": 39626,
2614
+ "id": 42397,
2615
2615
  "mutability": "mutable",
2616
2616
  "name": "",
2617
2617
  "nameLocation": "-1:-1:-1",
2618
2618
  "nodeType": "VariableDeclaration",
2619
- "scope": 39640,
2620
- "src": "2500:7:98",
2619
+ "scope": 42411,
2620
+ "src": "2500:7:101",
2621
2621
  "stateVariable": false,
2622
2622
  "storageLocation": "default",
2623
2623
  "typeDescriptions": {
@@ -2625,10 +2625,10 @@
2625
2625
  "typeString": "bytes14"
2626
2626
  },
2627
2627
  "typeName": {
2628
- "id": 39625,
2628
+ "id": 42396,
2629
2629
  "name": "bytes14",
2630
2630
  "nodeType": "ElementaryTypeName",
2631
- "src": "2500:7:98",
2631
+ "src": "2500:7:101",
2632
2632
  "typeDescriptions": {
2633
2633
  "typeIdentifier": "t_bytes14",
2634
2634
  "typeString": "bytes14"
@@ -2637,22 +2637,22 @@
2637
2637
  "visibility": "internal"
2638
2638
  }
2639
2639
  ],
2640
- "src": "2499:9:98"
2640
+ "src": "2499:9:101"
2641
2641
  },
2642
- "scope": 39739,
2642
+ "scope": 42510,
2643
2643
  "stateMutability": "pure",
2644
2644
  "virtual": false,
2645
2645
  "visibility": "internal"
2646
2646
  },
2647
2647
  {
2648
- "id": 39664,
2648
+ "id": 42435,
2649
2649
  "nodeType": "FunctionDefinition",
2650
- "src": "2736:191:98",
2650
+ "src": "2736:191:101",
2651
2651
  "nodes": [],
2652
2652
  "body": {
2653
- "id": 39663,
2653
+ "id": 42434,
2654
2654
  "nodeType": "Block",
2655
- "src": "2818:109:98",
2655
+ "src": "2818:109:101",
2656
2656
  "nodes": [],
2657
2657
  "statements": [
2658
2658
  {
@@ -2663,7 +2663,7 @@
2663
2663
  "typeIdentifier": "t_bytes32",
2664
2664
  "typeString": "bytes32"
2665
2665
  },
2666
- "id": 39660,
2666
+ "id": 42431,
2667
2667
  "isConstant": false,
2668
2668
  "isLValue": false,
2669
2669
  "isPure": false,
@@ -2675,7 +2675,7 @@
2675
2675
  "typeIdentifier": "t_bytes32",
2676
2676
  "typeString": "bytes32"
2677
2677
  },
2678
- "id": 39657,
2678
+ "id": 42428,
2679
2679
  "isConstant": false,
2680
2680
  "isLValue": false,
2681
2681
  "isPure": false,
@@ -2683,14 +2683,14 @@
2683
2683
  "leftExpression": {
2684
2684
  "arguments": [
2685
2685
  {
2686
- "id": 39654,
2686
+ "id": 42425,
2687
2687
  "name": "resourceId",
2688
2688
  "nodeType": "Identifier",
2689
2689
  "overloadedDeclarations": [],
2690
- "referencedDeclaration": 39644,
2691
- "src": "2866:10:98",
2690
+ "referencedDeclaration": 42415,
2691
+ "src": "2866:10:101",
2692
2692
  "typeDescriptions": {
2693
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
2693
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
2694
2694
  "typeString": "ResourceId"
2695
2695
  }
2696
2696
  }
@@ -2698,37 +2698,37 @@
2698
2698
  "expression": {
2699
2699
  "argumentTypes": [
2700
2700
  {
2701
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
2701
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
2702
2702
  "typeString": "ResourceId"
2703
2703
  }
2704
2704
  ],
2705
2705
  "expression": {
2706
- "id": 39652,
2706
+ "id": 42423,
2707
2707
  "name": "ResourceId",
2708
2708
  "nodeType": "Identifier",
2709
2709
  "overloadedDeclarations": [],
2710
- "referencedDeclaration": 26605,
2711
- "src": "2848:10:98",
2710
+ "referencedDeclaration": 29139,
2711
+ "src": "2848:10:101",
2712
2712
  "typeDescriptions": {
2713
- "typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$26605_$",
2713
+ "typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$29139_$",
2714
2714
  "typeString": "type(ResourceId)"
2715
2715
  }
2716
2716
  },
2717
- "id": 39653,
2717
+ "id": 42424,
2718
2718
  "isConstant": false,
2719
2719
  "isLValue": false,
2720
2720
  "isPure": true,
2721
2721
  "lValueRequested": false,
2722
- "memberLocation": "2859:6:98",
2722
+ "memberLocation": "2859:6:101",
2723
2723
  "memberName": "unwrap",
2724
2724
  "nodeType": "MemberAccess",
2725
- "src": "2848:17:98",
2725
+ "src": "2848:17:101",
2726
2726
  "typeDescriptions": {
2727
- "typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_ResourceId_$26605_$returns$_t_bytes32_$",
2727
+ "typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_ResourceId_$29139_$returns$_t_bytes32_$",
2728
2728
  "typeString": "function (ResourceId) pure returns (bytes32)"
2729
2729
  }
2730
2730
  },
2731
- "id": 39655,
2731
+ "id": 42426,
2732
2732
  "isConstant": false,
2733
2733
  "isLValue": false,
2734
2734
  "isPure": false,
@@ -2737,7 +2737,7 @@
2737
2737
  "nameLocations": [],
2738
2738
  "names": [],
2739
2739
  "nodeType": "FunctionCall",
2740
- "src": "2848:29:98",
2740
+ "src": "2848:29:101",
2741
2741
  "tryCall": false,
2742
2742
  "typeDescriptions": {
2743
2743
  "typeIdentifier": "t_bytes32",
@@ -2747,32 +2747,32 @@
2747
2747
  "nodeType": "BinaryOperation",
2748
2748
  "operator": "&",
2749
2749
  "rightExpression": {
2750
- "id": 39656,
2750
+ "id": 42427,
2751
2751
  "name": "NAMESPACE_MASK",
2752
2752
  "nodeType": "Identifier",
2753
2753
  "overloadedDeclarations": [],
2754
- "referencedDeclaration": 39504,
2755
- "src": "2880:14:98",
2754
+ "referencedDeclaration": 42275,
2755
+ "src": "2880:14:101",
2756
2756
  "typeDescriptions": {
2757
2757
  "typeIdentifier": "t_bytes32",
2758
2758
  "typeString": "bytes32"
2759
2759
  }
2760
2760
  },
2761
- "src": "2848:46:98",
2761
+ "src": "2848:46:101",
2762
2762
  "typeDescriptions": {
2763
2763
  "typeIdentifier": "t_bytes32",
2764
2764
  "typeString": "bytes32"
2765
2765
  }
2766
2766
  }
2767
2767
  ],
2768
- "id": 39658,
2768
+ "id": 42429,
2769
2769
  "isConstant": false,
2770
2770
  "isInlineArray": false,
2771
2771
  "isLValue": false,
2772
2772
  "isPure": false,
2773
2773
  "lValueRequested": false,
2774
2774
  "nodeType": "TupleExpression",
2775
- "src": "2847:48:98",
2775
+ "src": "2847:48:101",
2776
2776
  "typeDescriptions": {
2777
2777
  "typeIdentifier": "t_bytes32",
2778
2778
  "typeString": "bytes32"
@@ -2781,18 +2781,18 @@
2781
2781
  "nodeType": "BinaryOperation",
2782
2782
  "operator": "|",
2783
2783
  "rightExpression": {
2784
- "id": 39659,
2784
+ "id": 42430,
2785
2785
  "name": "MASK_RESOURCE_NAMESPACE",
2786
2786
  "nodeType": "Identifier",
2787
2787
  "overloadedDeclarations": [],
2788
- "referencedDeclaration": 39870,
2789
- "src": "2898:23:98",
2788
+ "referencedDeclaration": 49048,
2789
+ "src": "2898:23:101",
2790
2790
  "typeDescriptions": {
2791
2791
  "typeIdentifier": "t_bytes32",
2792
2792
  "typeString": "bytes32"
2793
2793
  }
2794
2794
  },
2795
- "src": "2847:74:98",
2795
+ "src": "2847:74:101",
2796
2796
  "typeDescriptions": {
2797
2797
  "typeIdentifier": "t_bytes32",
2798
2798
  "typeString": "bytes32"
@@ -2807,32 +2807,32 @@
2807
2807
  }
2808
2808
  ],
2809
2809
  "expression": {
2810
- "id": 39650,
2810
+ "id": 42421,
2811
2811
  "name": "ResourceId",
2812
2812
  "nodeType": "Identifier",
2813
2813
  "overloadedDeclarations": [],
2814
- "referencedDeclaration": 26605,
2815
- "src": "2831:10:98",
2814
+ "referencedDeclaration": 29139,
2815
+ "src": "2831:10:101",
2816
2816
  "typeDescriptions": {
2817
- "typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$26605_$",
2817
+ "typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$29139_$",
2818
2818
  "typeString": "type(ResourceId)"
2819
2819
  }
2820
2820
  },
2821
- "id": 39651,
2821
+ "id": 42422,
2822
2822
  "isConstant": false,
2823
2823
  "isLValue": false,
2824
2824
  "isPure": true,
2825
2825
  "lValueRequested": false,
2826
- "memberLocation": "2842:4:98",
2826
+ "memberLocation": "2842:4:101",
2827
2827
  "memberName": "wrap",
2828
2828
  "nodeType": "MemberAccess",
2829
- "src": "2831:15:98",
2829
+ "src": "2831:15:101",
2830
2830
  "typeDescriptions": {
2831
- "typeIdentifier": "t_function_wrap_pure$_t_bytes32_$returns$_t_userDefinedValueType$_ResourceId_$26605_$",
2831
+ "typeIdentifier": "t_function_wrap_pure$_t_bytes32_$returns$_t_userDefinedValueType$_ResourceId_$29139_$",
2832
2832
  "typeString": "function (bytes32) pure returns (ResourceId)"
2833
2833
  }
2834
2834
  },
2835
- "id": 39661,
2835
+ "id": 42432,
2836
2836
  "isConstant": false,
2837
2837
  "isLValue": false,
2838
2838
  "isPure": false,
@@ -2841,133 +2841,133 @@
2841
2841
  "nameLocations": [],
2842
2842
  "names": [],
2843
2843
  "nodeType": "FunctionCall",
2844
- "src": "2831:91:98",
2844
+ "src": "2831:91:101",
2845
2845
  "tryCall": false,
2846
2846
  "typeDescriptions": {
2847
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
2847
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
2848
2848
  "typeString": "ResourceId"
2849
2849
  }
2850
2850
  },
2851
- "functionReturnParameters": 39649,
2852
- "id": 39662,
2851
+ "functionReturnParameters": 42420,
2852
+ "id": 42433,
2853
2853
  "nodeType": "Return",
2854
- "src": "2824:98:98"
2854
+ "src": "2824:98:101"
2855
2855
  }
2856
2856
  ]
2857
2857
  },
2858
2858
  "documentation": {
2859
- "id": 39641,
2859
+ "id": 42412,
2860
2860
  "nodeType": "StructuredDocumentation",
2861
- "src": "2584:149:98",
2861
+ "src": "2584:149:101",
2862
2862
  "text": " @notice Get the namespace ID from a resource ID.\n @param resourceId The resource ID.\n @return A 32-byte namespace resource ID."
2863
2863
  },
2864
2864
  "implemented": true,
2865
2865
  "kind": "function",
2866
2866
  "modifiers": [],
2867
2867
  "name": "getNamespaceId",
2868
- "nameLocation": "2745:14:98",
2868
+ "nameLocation": "2745:14:101",
2869
2869
  "parameters": {
2870
- "id": 39645,
2870
+ "id": 42416,
2871
2871
  "nodeType": "ParameterList",
2872
2872
  "parameters": [
2873
2873
  {
2874
2874
  "constant": false,
2875
- "id": 39644,
2875
+ "id": 42415,
2876
2876
  "mutability": "mutable",
2877
2877
  "name": "resourceId",
2878
- "nameLocation": "2771:10:98",
2878
+ "nameLocation": "2771:10:101",
2879
2879
  "nodeType": "VariableDeclaration",
2880
- "scope": 39664,
2881
- "src": "2760:21:98",
2880
+ "scope": 42435,
2881
+ "src": "2760:21:101",
2882
2882
  "stateVariable": false,
2883
2883
  "storageLocation": "default",
2884
2884
  "typeDescriptions": {
2885
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
2885
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
2886
2886
  "typeString": "ResourceId"
2887
2887
  },
2888
2888
  "typeName": {
2889
- "id": 39643,
2889
+ "id": 42414,
2890
2890
  "nodeType": "UserDefinedTypeName",
2891
2891
  "pathNode": {
2892
- "id": 39642,
2892
+ "id": 42413,
2893
2893
  "name": "ResourceId",
2894
2894
  "nameLocations": [
2895
- "2760:10:98"
2895
+ "2760:10:101"
2896
2896
  ],
2897
2897
  "nodeType": "IdentifierPath",
2898
- "referencedDeclaration": 26605,
2899
- "src": "2760:10:98"
2898
+ "referencedDeclaration": 29139,
2899
+ "src": "2760:10:101"
2900
2900
  },
2901
- "referencedDeclaration": 26605,
2902
- "src": "2760:10:98",
2901
+ "referencedDeclaration": 29139,
2902
+ "src": "2760:10:101",
2903
2903
  "typeDescriptions": {
2904
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
2904
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
2905
2905
  "typeString": "ResourceId"
2906
2906
  }
2907
2907
  },
2908
2908
  "visibility": "internal"
2909
2909
  }
2910
2910
  ],
2911
- "src": "2759:23:98"
2911
+ "src": "2759:23:101"
2912
2912
  },
2913
2913
  "returnParameters": {
2914
- "id": 39649,
2914
+ "id": 42420,
2915
2915
  "nodeType": "ParameterList",
2916
2916
  "parameters": [
2917
2917
  {
2918
2918
  "constant": false,
2919
- "id": 39648,
2919
+ "id": 42419,
2920
2920
  "mutability": "mutable",
2921
2921
  "name": "",
2922
2922
  "nameLocation": "-1:-1:-1",
2923
2923
  "nodeType": "VariableDeclaration",
2924
- "scope": 39664,
2925
- "src": "2806:10:98",
2924
+ "scope": 42435,
2925
+ "src": "2806:10:101",
2926
2926
  "stateVariable": false,
2927
2927
  "storageLocation": "default",
2928
2928
  "typeDescriptions": {
2929
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
2929
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
2930
2930
  "typeString": "ResourceId"
2931
2931
  },
2932
2932
  "typeName": {
2933
- "id": 39647,
2933
+ "id": 42418,
2934
2934
  "nodeType": "UserDefinedTypeName",
2935
2935
  "pathNode": {
2936
- "id": 39646,
2936
+ "id": 42417,
2937
2937
  "name": "ResourceId",
2938
2938
  "nameLocations": [
2939
- "2806:10:98"
2939
+ "2806:10:101"
2940
2940
  ],
2941
2941
  "nodeType": "IdentifierPath",
2942
- "referencedDeclaration": 26605,
2943
- "src": "2806:10:98"
2942
+ "referencedDeclaration": 29139,
2943
+ "src": "2806:10:101"
2944
2944
  },
2945
- "referencedDeclaration": 26605,
2946
- "src": "2806:10:98",
2945
+ "referencedDeclaration": 29139,
2946
+ "src": "2806:10:101",
2947
2947
  "typeDescriptions": {
2948
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
2948
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
2949
2949
  "typeString": "ResourceId"
2950
2950
  }
2951
2951
  },
2952
2952
  "visibility": "internal"
2953
2953
  }
2954
2954
  ],
2955
- "src": "2805:12:98"
2955
+ "src": "2805:12:101"
2956
2956
  },
2957
- "scope": 39739,
2957
+ "scope": 42510,
2958
2958
  "stateMutability": "pure",
2959
2959
  "virtual": false,
2960
2960
  "visibility": "internal"
2961
2961
  },
2962
2962
  {
2963
- "id": 39687,
2963
+ "id": 42458,
2964
2964
  "nodeType": "FunctionDefinition",
2965
- "src": "3058:160:98",
2965
+ "src": "3058:160:101",
2966
2966
  "nodes": [],
2967
2967
  "body": {
2968
- "id": 39686,
2968
+ "id": 42457,
2969
2969
  "nodeType": "Block",
2970
- "src": "3130:88:98",
2970
+ "src": "3130:88:101",
2971
2971
  "nodes": [],
2972
2972
  "statements": [
2973
2973
  {
@@ -2978,7 +2978,7 @@
2978
2978
  "typeIdentifier": "t_bytes32",
2979
2979
  "typeString": "bytes32"
2980
2980
  },
2981
- "id": 39683,
2981
+ "id": 42454,
2982
2982
  "isConstant": false,
2983
2983
  "isLValue": false,
2984
2984
  "isPure": false,
@@ -2986,14 +2986,14 @@
2986
2986
  "leftExpression": {
2987
2987
  "arguments": [
2988
2988
  {
2989
- "id": 39677,
2989
+ "id": 42448,
2990
2990
  "name": "resourceId",
2991
2991
  "nodeType": "Identifier",
2992
2992
  "overloadedDeclarations": [],
2993
- "referencedDeclaration": 39668,
2994
- "src": "3169:10:98",
2993
+ "referencedDeclaration": 42439,
2994
+ "src": "3169:10:101",
2995
2995
  "typeDescriptions": {
2996
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
2996
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
2997
2997
  "typeString": "ResourceId"
2998
2998
  }
2999
2999
  }
@@ -3001,37 +3001,37 @@
3001
3001
  "expression": {
3002
3002
  "argumentTypes": [
3003
3003
  {
3004
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
3004
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
3005
3005
  "typeString": "ResourceId"
3006
3006
  }
3007
3007
  ],
3008
3008
  "expression": {
3009
- "id": 39675,
3009
+ "id": 42446,
3010
3010
  "name": "ResourceId",
3011
3011
  "nodeType": "Identifier",
3012
3012
  "overloadedDeclarations": [],
3013
- "referencedDeclaration": 26605,
3014
- "src": "3151:10:98",
3013
+ "referencedDeclaration": 29139,
3014
+ "src": "3151:10:101",
3015
3015
  "typeDescriptions": {
3016
- "typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$26605_$",
3016
+ "typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$29139_$",
3017
3017
  "typeString": "type(ResourceId)"
3018
3018
  }
3019
3019
  },
3020
- "id": 39676,
3020
+ "id": 42447,
3021
3021
  "isConstant": false,
3022
3022
  "isLValue": false,
3023
3023
  "isPure": true,
3024
3024
  "lValueRequested": false,
3025
- "memberLocation": "3162:6:98",
3025
+ "memberLocation": "3162:6:101",
3026
3026
  "memberName": "unwrap",
3027
3027
  "nodeType": "MemberAccess",
3028
- "src": "3151:17:98",
3028
+ "src": "3151:17:101",
3029
3029
  "typeDescriptions": {
3030
- "typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_ResourceId_$26605_$returns$_t_bytes32_$",
3030
+ "typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_ResourceId_$29139_$returns$_t_bytes32_$",
3031
3031
  "typeString": "function (ResourceId) pure returns (bytes32)"
3032
3032
  }
3033
3033
  },
3034
- "id": 39678,
3034
+ "id": 42449,
3035
3035
  "isConstant": false,
3036
3036
  "isLValue": false,
3037
3037
  "isPure": false,
@@ -3040,7 +3040,7 @@
3040
3040
  "nameLocations": [],
3041
3041
  "names": [],
3042
3042
  "nodeType": "FunctionCall",
3043
- "src": "3151:29:98",
3043
+ "src": "3151:29:101",
3044
3044
  "tryCall": false,
3045
3045
  "typeDescriptions": {
3046
3046
  "typeIdentifier": "t_bytes32",
@@ -3056,18 +3056,18 @@
3056
3056
  "typeIdentifier": "t_uint256",
3057
3057
  "typeString": "uint256"
3058
3058
  },
3059
- "id": 39681,
3059
+ "id": 42452,
3060
3060
  "isConstant": false,
3061
3061
  "isLValue": false,
3062
3062
  "isPure": true,
3063
3063
  "lValueRequested": false,
3064
3064
  "leftExpression": {
3065
- "id": 39679,
3065
+ "id": 42450,
3066
3066
  "name": "TYPE_BITS",
3067
3067
  "nodeType": "Identifier",
3068
3068
  "overloadedDeclarations": [],
3069
- "referencedDeclaration": 26611,
3070
- "src": "3185:9:98",
3069
+ "referencedDeclaration": 29145,
3070
+ "src": "3185:9:101",
3071
3071
  "typeDescriptions": {
3072
3072
  "typeIdentifier": "t_uint256",
3073
3073
  "typeString": "uint256"
@@ -3076,38 +3076,38 @@
3076
3076
  "nodeType": "BinaryOperation",
3077
3077
  "operator": "+",
3078
3078
  "rightExpression": {
3079
- "id": 39680,
3079
+ "id": 42451,
3080
3080
  "name": "NAMESPACE_BITS",
3081
3081
  "nodeType": "Identifier",
3082
3082
  "overloadedDeclarations": [],
3083
- "referencedDeclaration": 39474,
3084
- "src": "3197:14:98",
3083
+ "referencedDeclaration": 42245,
3084
+ "src": "3197:14:101",
3085
3085
  "typeDescriptions": {
3086
3086
  "typeIdentifier": "t_uint256",
3087
3087
  "typeString": "uint256"
3088
3088
  }
3089
3089
  },
3090
- "src": "3185:26:98",
3090
+ "src": "3185:26:101",
3091
3091
  "typeDescriptions": {
3092
3092
  "typeIdentifier": "t_uint256",
3093
3093
  "typeString": "uint256"
3094
3094
  }
3095
3095
  }
3096
3096
  ],
3097
- "id": 39682,
3097
+ "id": 42453,
3098
3098
  "isConstant": false,
3099
3099
  "isInlineArray": false,
3100
3100
  "isLValue": false,
3101
3101
  "isPure": true,
3102
3102
  "lValueRequested": false,
3103
3103
  "nodeType": "TupleExpression",
3104
- "src": "3184:28:98",
3104
+ "src": "3184:28:101",
3105
3105
  "typeDescriptions": {
3106
3106
  "typeIdentifier": "t_uint256",
3107
3107
  "typeString": "uint256"
3108
3108
  }
3109
3109
  },
3110
- "src": "3151:61:98",
3110
+ "src": "3151:61:101",
3111
3111
  "typeDescriptions": {
3112
3112
  "typeIdentifier": "t_bytes32",
3113
3113
  "typeString": "bytes32"
@@ -3121,26 +3121,26 @@
3121
3121
  "typeString": "bytes32"
3122
3122
  }
3123
3123
  ],
3124
- "id": 39674,
3124
+ "id": 42445,
3125
3125
  "isConstant": false,
3126
3126
  "isLValue": false,
3127
3127
  "isPure": true,
3128
3128
  "lValueRequested": false,
3129
3129
  "nodeType": "ElementaryTypeNameExpression",
3130
- "src": "3143:7:98",
3130
+ "src": "3143:7:101",
3131
3131
  "typeDescriptions": {
3132
3132
  "typeIdentifier": "t_type$_t_bytes16_$",
3133
3133
  "typeString": "type(bytes16)"
3134
3134
  },
3135
3135
  "typeName": {
3136
- "id": 39673,
3136
+ "id": 42444,
3137
3137
  "name": "bytes16",
3138
3138
  "nodeType": "ElementaryTypeName",
3139
- "src": "3143:7:98",
3139
+ "src": "3143:7:101",
3140
3140
  "typeDescriptions": {}
3141
3141
  }
3142
3142
  },
3143
- "id": 39684,
3143
+ "id": 42455,
3144
3144
  "isConstant": false,
3145
3145
  "isLValue": false,
3146
3146
  "isPure": false,
@@ -3149,88 +3149,88 @@
3149
3149
  "nameLocations": [],
3150
3150
  "names": [],
3151
3151
  "nodeType": "FunctionCall",
3152
- "src": "3143:70:98",
3152
+ "src": "3143:70:101",
3153
3153
  "tryCall": false,
3154
3154
  "typeDescriptions": {
3155
3155
  "typeIdentifier": "t_bytes16",
3156
3156
  "typeString": "bytes16"
3157
3157
  }
3158
3158
  },
3159
- "functionReturnParameters": 39672,
3160
- "id": 39685,
3159
+ "functionReturnParameters": 42443,
3160
+ "id": 42456,
3161
3161
  "nodeType": "Return",
3162
- "src": "3136:77:98"
3162
+ "src": "3136:77:101"
3163
3163
  }
3164
3164
  ]
3165
3165
  },
3166
3166
  "documentation": {
3167
- "id": 39665,
3167
+ "id": 42436,
3168
3168
  "nodeType": "StructuredDocumentation",
3169
- "src": "2931:124:98",
3169
+ "src": "2931:124:101",
3170
3170
  "text": " @notice Get the name from a resource ID.\n @param resourceId The resource ID.\n @return A 16-byte name."
3171
3171
  },
3172
3172
  "implemented": true,
3173
3173
  "kind": "function",
3174
3174
  "modifiers": [],
3175
3175
  "name": "getName",
3176
- "nameLocation": "3067:7:98",
3176
+ "nameLocation": "3067:7:101",
3177
3177
  "parameters": {
3178
- "id": 39669,
3178
+ "id": 42440,
3179
3179
  "nodeType": "ParameterList",
3180
3180
  "parameters": [
3181
3181
  {
3182
3182
  "constant": false,
3183
- "id": 39668,
3183
+ "id": 42439,
3184
3184
  "mutability": "mutable",
3185
3185
  "name": "resourceId",
3186
- "nameLocation": "3086:10:98",
3186
+ "nameLocation": "3086:10:101",
3187
3187
  "nodeType": "VariableDeclaration",
3188
- "scope": 39687,
3189
- "src": "3075:21:98",
3188
+ "scope": 42458,
3189
+ "src": "3075:21:101",
3190
3190
  "stateVariable": false,
3191
3191
  "storageLocation": "default",
3192
3192
  "typeDescriptions": {
3193
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
3193
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
3194
3194
  "typeString": "ResourceId"
3195
3195
  },
3196
3196
  "typeName": {
3197
- "id": 39667,
3197
+ "id": 42438,
3198
3198
  "nodeType": "UserDefinedTypeName",
3199
3199
  "pathNode": {
3200
- "id": 39666,
3200
+ "id": 42437,
3201
3201
  "name": "ResourceId",
3202
3202
  "nameLocations": [
3203
- "3075:10:98"
3203
+ "3075:10:101"
3204
3204
  ],
3205
3205
  "nodeType": "IdentifierPath",
3206
- "referencedDeclaration": 26605,
3207
- "src": "3075:10:98"
3206
+ "referencedDeclaration": 29139,
3207
+ "src": "3075:10:101"
3208
3208
  },
3209
- "referencedDeclaration": 26605,
3210
- "src": "3075:10:98",
3209
+ "referencedDeclaration": 29139,
3210
+ "src": "3075:10:101",
3211
3211
  "typeDescriptions": {
3212
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
3212
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
3213
3213
  "typeString": "ResourceId"
3214
3214
  }
3215
3215
  },
3216
3216
  "visibility": "internal"
3217
3217
  }
3218
3218
  ],
3219
- "src": "3074:23:98"
3219
+ "src": "3074:23:101"
3220
3220
  },
3221
3221
  "returnParameters": {
3222
- "id": 39672,
3222
+ "id": 42443,
3223
3223
  "nodeType": "ParameterList",
3224
3224
  "parameters": [
3225
3225
  {
3226
3226
  "constant": false,
3227
- "id": 39671,
3227
+ "id": 42442,
3228
3228
  "mutability": "mutable",
3229
3229
  "name": "",
3230
3230
  "nameLocation": "-1:-1:-1",
3231
3231
  "nodeType": "VariableDeclaration",
3232
- "scope": 39687,
3233
- "src": "3121:7:98",
3232
+ "scope": 42458,
3233
+ "src": "3121:7:101",
3234
3234
  "stateVariable": false,
3235
3235
  "storageLocation": "default",
3236
3236
  "typeDescriptions": {
@@ -3238,10 +3238,10 @@
3238
3238
  "typeString": "bytes16"
3239
3239
  },
3240
3240
  "typeName": {
3241
- "id": 39670,
3241
+ "id": 42441,
3242
3242
  "name": "bytes16",
3243
3243
  "nodeType": "ElementaryTypeName",
3244
- "src": "3121:7:98",
3244
+ "src": "3121:7:101",
3245
3245
  "typeDescriptions": {
3246
3246
  "typeIdentifier": "t_bytes16",
3247
3247
  "typeString": "bytes16"
@@ -3250,38 +3250,38 @@
3250
3250
  "visibility": "internal"
3251
3251
  }
3252
3252
  ],
3253
- "src": "3120:9:98"
3253
+ "src": "3120:9:101"
3254
3254
  },
3255
- "scope": 39739,
3255
+ "scope": 42510,
3256
3256
  "stateMutability": "pure",
3257
3257
  "virtual": false,
3258
3258
  "visibility": "internal"
3259
3259
  },
3260
3260
  {
3261
- "id": 39738,
3261
+ "id": 42509,
3262
3262
  "nodeType": "FunctionDefinition",
3263
- "src": "3379:541:98",
3263
+ "src": "3379:541:101",
3264
3264
  "nodes": [],
3265
3265
  "body": {
3266
- "id": 39737,
3266
+ "id": 42508,
3267
3267
  "nodeType": "Block",
3268
- "src": "3458:462:98",
3268
+ "src": "3458:462:101",
3269
3269
  "nodes": [],
3270
3270
  "statements": [
3271
3271
  {
3272
3272
  "assignments": [
3273
- 39697
3273
+ 42468
3274
3274
  ],
3275
3275
  "declarations": [
3276
3276
  {
3277
3277
  "constant": false,
3278
- "id": 39697,
3278
+ "id": 42468,
3279
3279
  "mutability": "mutable",
3280
3280
  "name": "resourceType",
3281
- "nameLocation": "3471:12:98",
3281
+ "nameLocation": "3471:12:101",
3282
3282
  "nodeType": "VariableDeclaration",
3283
- "scope": 39737,
3284
- "src": "3464:19:98",
3283
+ "scope": 42508,
3284
+ "src": "3464:19:101",
3285
3285
  "stateVariable": false,
3286
3286
  "storageLocation": "default",
3287
3287
  "typeDescriptions": {
@@ -3289,10 +3289,10 @@
3289
3289
  "typeString": "bytes2"
3290
3290
  },
3291
3291
  "typeName": {
3292
- "id": 39696,
3292
+ "id": 42467,
3293
3293
  "name": "bytes2",
3294
3294
  "nodeType": "ElementaryTypeName",
3295
- "src": "3464:6:98",
3295
+ "src": "3464:6:101",
3296
3296
  "typeDescriptions": {
3297
3297
  "typeIdentifier": "t_bytes2",
3298
3298
  "typeString": "bytes2"
@@ -3301,18 +3301,18 @@
3301
3301
  "visibility": "internal"
3302
3302
  }
3303
3303
  ],
3304
- "id": 39702,
3304
+ "id": 42473,
3305
3305
  "initialValue": {
3306
3306
  "arguments": [
3307
3307
  {
3308
- "id": 39700,
3308
+ "id": 42471,
3309
3309
  "name": "resourceId",
3310
3310
  "nodeType": "Identifier",
3311
3311
  "overloadedDeclarations": [],
3312
- "referencedDeclaration": 39691,
3313
- "src": "3513:10:98",
3312
+ "referencedDeclaration": 42462,
3313
+ "src": "3513:10:101",
3314
3314
  "typeDescriptions": {
3315
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
3315
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
3316
3316
  "typeString": "ResourceId"
3317
3317
  }
3318
3318
  }
@@ -3320,38 +3320,38 @@
3320
3320
  "expression": {
3321
3321
  "argumentTypes": [
3322
3322
  {
3323
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
3323
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
3324
3324
  "typeString": "ResourceId"
3325
3325
  }
3326
3326
  ],
3327
3327
  "expression": {
3328
- "id": 39698,
3328
+ "id": 42469,
3329
3329
  "name": "ResourceIdInstance",
3330
3330
  "nodeType": "Identifier",
3331
3331
  "overloadedDeclarations": [],
3332
- "referencedDeclaration": 26676,
3333
- "src": "3486:18:98",
3332
+ "referencedDeclaration": 29210,
3333
+ "src": "3486:18:101",
3334
3334
  "typeDescriptions": {
3335
- "typeIdentifier": "t_type$_t_contract$_ResourceIdInstance_$26676_$",
3335
+ "typeIdentifier": "t_type$_t_contract$_ResourceIdInstance_$29210_$",
3336
3336
  "typeString": "type(library ResourceIdInstance)"
3337
3337
  }
3338
3338
  },
3339
- "id": 39699,
3339
+ "id": 42470,
3340
3340
  "isConstant": false,
3341
3341
  "isLValue": false,
3342
3342
  "isPure": false,
3343
3343
  "lValueRequested": false,
3344
- "memberLocation": "3505:7:98",
3344
+ "memberLocation": "3505:7:101",
3345
3345
  "memberName": "getType",
3346
3346
  "nodeType": "MemberAccess",
3347
- "referencedDeclaration": 26675,
3348
- "src": "3486:26:98",
3347
+ "referencedDeclaration": 29209,
3348
+ "src": "3486:26:101",
3349
3349
  "typeDescriptions": {
3350
- "typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_ResourceId_$26605_$returns$_t_bytes2_$",
3350
+ "typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_ResourceId_$29139_$returns$_t_bytes2_$",
3351
3351
  "typeString": "function (ResourceId) pure returns (bytes2)"
3352
3352
  }
3353
3353
  },
3354
- "id": 39701,
3354
+ "id": 42472,
3355
3355
  "isConstant": false,
3356
3356
  "isLValue": false,
3357
3357
  "isPure": false,
@@ -3360,7 +3360,7 @@
3360
3360
  "nameLocations": [],
3361
3361
  "names": [],
3362
3362
  "nodeType": "FunctionCall",
3363
- "src": "3486:38:98",
3363
+ "src": "3486:38:101",
3364
3364
  "tryCall": false,
3365
3365
  "typeDescriptions": {
3366
3366
  "typeIdentifier": "t_bytes2",
@@ -3368,22 +3368,22 @@
3368
3368
  }
3369
3369
  },
3370
3370
  "nodeType": "VariableDeclarationStatement",
3371
- "src": "3464:60:98"
3371
+ "src": "3464:60:101"
3372
3372
  },
3373
3373
  {
3374
3374
  "assignments": [
3375
- 39704
3375
+ 42475
3376
3376
  ],
3377
3377
  "declarations": [
3378
3378
  {
3379
3379
  "constant": false,
3380
- "id": 39704,
3380
+ "id": 42475,
3381
3381
  "mutability": "mutable",
3382
3382
  "name": "resourceNamespace",
3383
- "nameLocation": "3538:17:98",
3383
+ "nameLocation": "3538:17:101",
3384
3384
  "nodeType": "VariableDeclaration",
3385
- "scope": 39737,
3386
- "src": "3530:25:98",
3385
+ "scope": 42508,
3386
+ "src": "3530:25:101",
3387
3387
  "stateVariable": false,
3388
3388
  "storageLocation": "default",
3389
3389
  "typeDescriptions": {
@@ -3391,10 +3391,10 @@
3391
3391
  "typeString": "bytes14"
3392
3392
  },
3393
3393
  "typeName": {
3394
- "id": 39703,
3394
+ "id": 42474,
3395
3395
  "name": "bytes14",
3396
3396
  "nodeType": "ElementaryTypeName",
3397
- "src": "3530:7:98",
3397
+ "src": "3530:7:101",
3398
3398
  "typeDescriptions": {
3399
3399
  "typeIdentifier": "t_bytes14",
3400
3400
  "typeString": "bytes14"
@@ -3403,18 +3403,18 @@
3403
3403
  "visibility": "internal"
3404
3404
  }
3405
3405
  ],
3406
- "id": 39708,
3406
+ "id": 42479,
3407
3407
  "initialValue": {
3408
3408
  "arguments": [
3409
3409
  {
3410
- "id": 39706,
3410
+ "id": 42477,
3411
3411
  "name": "resourceId",
3412
3412
  "nodeType": "Identifier",
3413
3413
  "overloadedDeclarations": [],
3414
- "referencedDeclaration": 39691,
3415
- "src": "3571:10:98",
3414
+ "referencedDeclaration": 42462,
3415
+ "src": "3571:10:101",
3416
3416
  "typeDescriptions": {
3417
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
3417
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
3418
3418
  "typeString": "ResourceId"
3419
3419
  }
3420
3420
  }
@@ -3422,22 +3422,22 @@
3422
3422
  "expression": {
3423
3423
  "argumentTypes": [
3424
3424
  {
3425
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
3425
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
3426
3426
  "typeString": "ResourceId"
3427
3427
  }
3428
3428
  ],
3429
- "id": 39705,
3429
+ "id": 42476,
3430
3430
  "name": "getNamespace",
3431
3431
  "nodeType": "Identifier",
3432
3432
  "overloadedDeclarations": [],
3433
- "referencedDeclaration": 39640,
3434
- "src": "3558:12:98",
3433
+ "referencedDeclaration": 42411,
3434
+ "src": "3558:12:101",
3435
3435
  "typeDescriptions": {
3436
- "typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_ResourceId_$26605_$returns$_t_bytes14_$",
3436
+ "typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_ResourceId_$29139_$returns$_t_bytes14_$",
3437
3437
  "typeString": "function (ResourceId) pure returns (bytes14)"
3438
3438
  }
3439
3439
  },
3440
- "id": 39707,
3440
+ "id": 42478,
3441
3441
  "isConstant": false,
3442
3442
  "isLValue": false,
3443
3443
  "isPure": false,
@@ -3446,7 +3446,7 @@
3446
3446
  "nameLocations": [],
3447
3447
  "names": [],
3448
3448
  "nodeType": "FunctionCall",
3449
- "src": "3558:24:98",
3449
+ "src": "3558:24:101",
3450
3450
  "tryCall": false,
3451
3451
  "typeDescriptions": {
3452
3452
  "typeIdentifier": "t_bytes14",
@@ -3454,22 +3454,22 @@
3454
3454
  }
3455
3455
  },
3456
3456
  "nodeType": "VariableDeclarationStatement",
3457
- "src": "3530:52:98"
3457
+ "src": "3530:52:101"
3458
3458
  },
3459
3459
  {
3460
3460
  "assignments": [
3461
- 39710
3461
+ 42481
3462
3462
  ],
3463
3463
  "declarations": [
3464
3464
  {
3465
3465
  "constant": false,
3466
- "id": 39710,
3466
+ "id": 42481,
3467
3467
  "mutability": "mutable",
3468
3468
  "name": "resourceName",
3469
- "nameLocation": "3596:12:98",
3469
+ "nameLocation": "3596:12:101",
3470
3470
  "nodeType": "VariableDeclaration",
3471
- "scope": 39737,
3472
- "src": "3588:20:98",
3471
+ "scope": 42508,
3472
+ "src": "3588:20:101",
3473
3473
  "stateVariable": false,
3474
3474
  "storageLocation": "default",
3475
3475
  "typeDescriptions": {
@@ -3477,10 +3477,10 @@
3477
3477
  "typeString": "bytes16"
3478
3478
  },
3479
3479
  "typeName": {
3480
- "id": 39709,
3480
+ "id": 42480,
3481
3481
  "name": "bytes16",
3482
3482
  "nodeType": "ElementaryTypeName",
3483
- "src": "3588:7:98",
3483
+ "src": "3588:7:101",
3484
3484
  "typeDescriptions": {
3485
3485
  "typeIdentifier": "t_bytes16",
3486
3486
  "typeString": "bytes16"
@@ -3489,18 +3489,18 @@
3489
3489
  "visibility": "internal"
3490
3490
  }
3491
3491
  ],
3492
- "id": 39714,
3492
+ "id": 42485,
3493
3493
  "initialValue": {
3494
3494
  "arguments": [
3495
3495
  {
3496
- "id": 39712,
3496
+ "id": 42483,
3497
3497
  "name": "resourceId",
3498
3498
  "nodeType": "Identifier",
3499
3499
  "overloadedDeclarations": [],
3500
- "referencedDeclaration": 39691,
3501
- "src": "3619:10:98",
3500
+ "referencedDeclaration": 42462,
3501
+ "src": "3619:10:101",
3502
3502
  "typeDescriptions": {
3503
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
3503
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
3504
3504
  "typeString": "ResourceId"
3505
3505
  }
3506
3506
  }
@@ -3508,22 +3508,22 @@
3508
3508
  "expression": {
3509
3509
  "argumentTypes": [
3510
3510
  {
3511
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
3511
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
3512
3512
  "typeString": "ResourceId"
3513
3513
  }
3514
3514
  ],
3515
- "id": 39711,
3515
+ "id": 42482,
3516
3516
  "name": "getName",
3517
3517
  "nodeType": "Identifier",
3518
3518
  "overloadedDeclarations": [],
3519
- "referencedDeclaration": 39687,
3520
- "src": "3611:7:98",
3519
+ "referencedDeclaration": 42458,
3520
+ "src": "3611:7:101",
3521
3521
  "typeDescriptions": {
3522
- "typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_ResourceId_$26605_$returns$_t_bytes16_$",
3522
+ "typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_ResourceId_$29139_$returns$_t_bytes16_$",
3523
3523
  "typeString": "function (ResourceId) pure returns (bytes16)"
3524
3524
  }
3525
3525
  },
3526
- "id": 39713,
3526
+ "id": 42484,
3527
3527
  "isConstant": false,
3528
3528
  "isLValue": false,
3529
3529
  "isPure": false,
@@ -3532,7 +3532,7 @@
3532
3532
  "nameLocations": [],
3533
3533
  "names": [],
3534
3534
  "nodeType": "FunctionCall",
3535
- "src": "3611:19:98",
3535
+ "src": "3611:19:101",
3536
3536
  "tryCall": false,
3537
3537
  "typeDescriptions": {
3538
3538
  "typeIdentifier": "t_bytes16",
@@ -3540,7 +3540,7 @@
3540
3540
  }
3541
3541
  },
3542
3542
  "nodeType": "VariableDeclarationStatement",
3543
- "src": "3588:42:98"
3543
+ "src": "3588:42:101"
3544
3544
  },
3545
3545
  {
3546
3546
  "expression": {
@@ -3548,12 +3548,12 @@
3548
3548
  {
3549
3549
  "arguments": [
3550
3550
  {
3551
- "id": 39719,
3551
+ "id": 42490,
3552
3552
  "name": "resourceType",
3553
3553
  "nodeType": "Identifier",
3554
3554
  "overloadedDeclarations": [],
3555
- "referencedDeclaration": 39697,
3556
- "src": "3693:12:98",
3555
+ "referencedDeclaration": 42468,
3556
+ "src": "3693:12:101",
3557
3557
  "typeDescriptions": {
3558
3558
  "typeIdentifier": "t_bytes2",
3559
3559
  "typeString": "bytes2"
@@ -3561,14 +3561,14 @@
3561
3561
  },
3562
3562
  {
3563
3563
  "hexValue": "3a",
3564
- "id": 39720,
3564
+ "id": 42491,
3565
3565
  "isConstant": false,
3566
3566
  "isLValue": false,
3567
3567
  "isPure": true,
3568
3568
  "kind": "string",
3569
3569
  "lValueRequested": false,
3570
3570
  "nodeType": "Literal",
3571
- "src": "3717:3:98",
3571
+ "src": "3717:3:101",
3572
3572
  "typeDescriptions": {
3573
3573
  "typeIdentifier": "t_stringliteral_96d280011b274d9410ea6c6fc28e2bb076b01d2fac329c49c4b29a719ec4650c",
3574
3574
  "typeString": "literal_string \":\""
@@ -3581,18 +3581,18 @@
3581
3581
  "typeIdentifier": "t_bytes14",
3582
3582
  "typeString": "bytes14"
3583
3583
  },
3584
- "id": 39723,
3584
+ "id": 42494,
3585
3585
  "isConstant": false,
3586
3586
  "isLValue": false,
3587
3587
  "isPure": false,
3588
3588
  "lValueRequested": false,
3589
3589
  "leftExpression": {
3590
- "id": 39721,
3590
+ "id": 42492,
3591
3591
  "name": "resourceNamespace",
3592
3592
  "nodeType": "Identifier",
3593
3593
  "overloadedDeclarations": [],
3594
- "referencedDeclaration": 39704,
3595
- "src": "3732:17:98",
3594
+ "referencedDeclaration": 42475,
3595
+ "src": "3732:17:101",
3596
3596
  "typeDescriptions": {
3597
3597
  "typeIdentifier": "t_bytes14",
3598
3598
  "typeString": "bytes14"
@@ -3601,49 +3601,49 @@
3601
3601
  "nodeType": "BinaryOperation",
3602
3602
  "operator": "==",
3603
3603
  "rightExpression": {
3604
- "id": 39722,
3604
+ "id": 42493,
3605
3605
  "name": "ROOT_NAMESPACE",
3606
3606
  "nodeType": "Identifier",
3607
3607
  "overloadedDeclarations": [],
3608
- "referencedDeclaration": 39785,
3609
- "src": "3753:14:98",
3608
+ "referencedDeclaration": 48925,
3609
+ "src": "3753:14:101",
3610
3610
  "typeDescriptions": {
3611
3611
  "typeIdentifier": "t_bytes14",
3612
3612
  "typeString": "bytes14"
3613
3613
  }
3614
3614
  },
3615
- "src": "3732:35:98",
3615
+ "src": "3732:35:101",
3616
3616
  "typeDescriptions": {
3617
3617
  "typeIdentifier": "t_bool",
3618
3618
  "typeString": "bool"
3619
3619
  }
3620
3620
  },
3621
3621
  "falseExpression": {
3622
- "id": 39725,
3622
+ "id": 42496,
3623
3623
  "name": "resourceNamespace",
3624
3624
  "nodeType": "Identifier",
3625
3625
  "overloadedDeclarations": [],
3626
- "referencedDeclaration": 39704,
3627
- "src": "3794:17:98",
3626
+ "referencedDeclaration": 42475,
3627
+ "src": "3794:17:101",
3628
3628
  "typeDescriptions": {
3629
3629
  "typeIdentifier": "t_bytes14",
3630
3630
  "typeString": "bytes14"
3631
3631
  }
3632
3632
  },
3633
- "id": 39726,
3633
+ "id": 42497,
3634
3634
  "isConstant": false,
3635
3635
  "isLValue": false,
3636
3636
  "isPure": false,
3637
3637
  "lValueRequested": false,
3638
3638
  "nodeType": "Conditional",
3639
- "src": "3732:79:98",
3639
+ "src": "3732:79:101",
3640
3640
  "trueExpression": {
3641
- "id": 39724,
3641
+ "id": 42495,
3642
3642
  "name": "ROOT_NAMESPACE_STRING",
3643
3643
  "nodeType": "Identifier",
3644
3644
  "overloadedDeclarations": [],
3645
- "referencedDeclaration": 39485,
3646
- "src": "3770:21:98",
3645
+ "referencedDeclaration": 42256,
3646
+ "src": "3770:21:101",
3647
3647
  "typeDescriptions": {
3648
3648
  "typeIdentifier": "t_bytes16",
3649
3649
  "typeString": "bytes16"
@@ -3656,14 +3656,14 @@
3656
3656
  },
3657
3657
  {
3658
3658
  "hexValue": "3a",
3659
- "id": 39727,
3659
+ "id": 42498,
3660
3660
  "isConstant": false,
3661
3661
  "isLValue": false,
3662
3662
  "isPure": true,
3663
3663
  "kind": "string",
3664
3664
  "lValueRequested": false,
3665
3665
  "nodeType": "Literal",
3666
- "src": "3823:3:98",
3666
+ "src": "3823:3:101",
3667
3667
  "typeDescriptions": {
3668
3668
  "typeIdentifier": "t_stringliteral_96d280011b274d9410ea6c6fc28e2bb076b01d2fac329c49c4b29a719ec4650c",
3669
3669
  "typeString": "literal_string \":\""
@@ -3676,18 +3676,18 @@
3676
3676
  "typeIdentifier": "t_bytes16",
3677
3677
  "typeString": "bytes16"
3678
3678
  },
3679
- "id": 39730,
3679
+ "id": 42501,
3680
3680
  "isConstant": false,
3681
3681
  "isLValue": false,
3682
3682
  "isPure": false,
3683
3683
  "lValueRequested": false,
3684
3684
  "leftExpression": {
3685
- "id": 39728,
3685
+ "id": 42499,
3686
3686
  "name": "resourceName",
3687
3687
  "nodeType": "Identifier",
3688
3688
  "overloadedDeclarations": [],
3689
- "referencedDeclaration": 39710,
3690
- "src": "3838:12:98",
3689
+ "referencedDeclaration": 42481,
3690
+ "src": "3838:12:101",
3691
3691
  "typeDescriptions": {
3692
3692
  "typeIdentifier": "t_bytes16",
3693
3693
  "typeString": "bytes16"
@@ -3696,49 +3696,49 @@
3696
3696
  "nodeType": "BinaryOperation",
3697
3697
  "operator": "==",
3698
3698
  "rightExpression": {
3699
- "id": 39729,
3699
+ "id": 42500,
3700
3700
  "name": "ROOT_NAME",
3701
3701
  "nodeType": "Identifier",
3702
3702
  "overloadedDeclarations": [],
3703
- "referencedDeclaration": 39788,
3704
- "src": "3854:9:98",
3703
+ "referencedDeclaration": 48928,
3704
+ "src": "3854:9:101",
3705
3705
  "typeDescriptions": {
3706
3706
  "typeIdentifier": "t_bytes16",
3707
3707
  "typeString": "bytes16"
3708
3708
  }
3709
3709
  },
3710
- "src": "3838:25:98",
3710
+ "src": "3838:25:101",
3711
3711
  "typeDescriptions": {
3712
3712
  "typeIdentifier": "t_bool",
3713
3713
  "typeString": "bool"
3714
3714
  }
3715
3715
  },
3716
3716
  "falseExpression": {
3717
- "id": 39732,
3717
+ "id": 42503,
3718
3718
  "name": "resourceName",
3719
3719
  "nodeType": "Identifier",
3720
3720
  "overloadedDeclarations": [],
3721
- "referencedDeclaration": 39710,
3722
- "src": "3885:12:98",
3721
+ "referencedDeclaration": 42481,
3722
+ "src": "3885:12:101",
3723
3723
  "typeDescriptions": {
3724
3724
  "typeIdentifier": "t_bytes16",
3725
3725
  "typeString": "bytes16"
3726
3726
  }
3727
3727
  },
3728
- "id": 39733,
3728
+ "id": 42504,
3729
3729
  "isConstant": false,
3730
3730
  "isLValue": false,
3731
3731
  "isPure": false,
3732
3732
  "lValueRequested": false,
3733
3733
  "nodeType": "Conditional",
3734
- "src": "3838:59:98",
3734
+ "src": "3838:59:101",
3735
3735
  "trueExpression": {
3736
- "id": 39731,
3736
+ "id": 42502,
3737
3737
  "name": "ROOT_NAME_STRING",
3738
3738
  "nodeType": "Identifier",
3739
3739
  "overloadedDeclarations": [],
3740
- "referencedDeclaration": 39491,
3741
- "src": "3866:16:98",
3740
+ "referencedDeclaration": 42262,
3741
+ "src": "3866:16:101",
3742
3742
  "typeDescriptions": {
3743
3743
  "typeIdentifier": "t_bytes16",
3744
3744
  "typeString": "bytes16"
@@ -3774,32 +3774,32 @@
3774
3774
  }
3775
3775
  ],
3776
3776
  "expression": {
3777
- "id": 39717,
3777
+ "id": 42488,
3778
3778
  "name": "abi",
3779
3779
  "nodeType": "Identifier",
3780
3780
  "overloadedDeclarations": [],
3781
3781
  "referencedDeclaration": -1,
3782
- "src": "3665:3:98",
3782
+ "src": "3665:3:101",
3783
3783
  "typeDescriptions": {
3784
3784
  "typeIdentifier": "t_magic_abi",
3785
3785
  "typeString": "abi"
3786
3786
  }
3787
3787
  },
3788
- "id": 39718,
3788
+ "id": 42489,
3789
3789
  "isConstant": false,
3790
3790
  "isLValue": false,
3791
3791
  "isPure": true,
3792
3792
  "lValueRequested": false,
3793
- "memberLocation": "3669:12:98",
3793
+ "memberLocation": "3669:12:101",
3794
3794
  "memberName": "encodePacked",
3795
3795
  "nodeType": "MemberAccess",
3796
- "src": "3665:16:98",
3796
+ "src": "3665:16:101",
3797
3797
  "typeDescriptions": {
3798
3798
  "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
3799
3799
  "typeString": "function () pure returns (bytes memory)"
3800
3800
  }
3801
3801
  },
3802
- "id": 39734,
3802
+ "id": 42505,
3803
3803
  "isConstant": false,
3804
3804
  "isLValue": false,
3805
3805
  "isPure": false,
@@ -3808,7 +3808,7 @@
3808
3808
  "nameLocations": [],
3809
3809
  "names": [],
3810
3810
  "nodeType": "FunctionCall",
3811
- "src": "3665:242:98",
3811
+ "src": "3665:242:101",
3812
3812
  "tryCall": false,
3813
3813
  "typeDescriptions": {
3814
3814
  "typeIdentifier": "t_bytes_memory_ptr",
@@ -3823,26 +3823,26 @@
3823
3823
  "typeString": "bytes memory"
3824
3824
  }
3825
3825
  ],
3826
- "id": 39716,
3826
+ "id": 42487,
3827
3827
  "isConstant": false,
3828
3828
  "isLValue": false,
3829
3829
  "isPure": true,
3830
3830
  "lValueRequested": false,
3831
3831
  "nodeType": "ElementaryTypeNameExpression",
3832
- "src": "3649:6:98",
3832
+ "src": "3649:6:101",
3833
3833
  "typeDescriptions": {
3834
3834
  "typeIdentifier": "t_type$_t_string_storage_ptr_$",
3835
3835
  "typeString": "type(string storage pointer)"
3836
3836
  },
3837
3837
  "typeName": {
3838
- "id": 39715,
3838
+ "id": 42486,
3839
3839
  "name": "string",
3840
3840
  "nodeType": "ElementaryTypeName",
3841
- "src": "3649:6:98",
3841
+ "src": "3649:6:101",
3842
3842
  "typeDescriptions": {}
3843
3843
  }
3844
3844
  },
3845
- "id": 39735,
3845
+ "id": 42506,
3846
3846
  "isConstant": false,
3847
3847
  "isLValue": false,
3848
3848
  "isPure": false,
@@ -3851,88 +3851,88 @@
3851
3851
  "nameLocations": [],
3852
3852
  "names": [],
3853
3853
  "nodeType": "FunctionCall",
3854
- "src": "3649:266:98",
3854
+ "src": "3649:266:101",
3855
3855
  "tryCall": false,
3856
3856
  "typeDescriptions": {
3857
3857
  "typeIdentifier": "t_string_memory_ptr",
3858
3858
  "typeString": "string memory"
3859
3859
  }
3860
3860
  },
3861
- "functionReturnParameters": 39695,
3862
- "id": 39736,
3861
+ "functionReturnParameters": 42466,
3862
+ "id": 42507,
3863
3863
  "nodeType": "Return",
3864
- "src": "3636:279:98"
3864
+ "src": "3636:279:101"
3865
3865
  }
3866
3866
  ]
3867
3867
  },
3868
3868
  "documentation": {
3869
- "id": 39688,
3869
+ "id": 42459,
3870
3870
  "nodeType": "StructuredDocumentation",
3871
- "src": "3222:154:98",
3871
+ "src": "3222:154:101",
3872
3872
  "text": " @notice Convert a resource ID to a string.\n @param resourceId The resource ID.\n @return A string representation of the resource ID."
3873
3873
  },
3874
3874
  "implemented": true,
3875
3875
  "kind": "function",
3876
3876
  "modifiers": [],
3877
3877
  "name": "toString",
3878
- "nameLocation": "3388:8:98",
3878
+ "nameLocation": "3388:8:101",
3879
3879
  "parameters": {
3880
- "id": 39692,
3880
+ "id": 42463,
3881
3881
  "nodeType": "ParameterList",
3882
3882
  "parameters": [
3883
3883
  {
3884
3884
  "constant": false,
3885
- "id": 39691,
3885
+ "id": 42462,
3886
3886
  "mutability": "mutable",
3887
3887
  "name": "resourceId",
3888
- "nameLocation": "3408:10:98",
3888
+ "nameLocation": "3408:10:101",
3889
3889
  "nodeType": "VariableDeclaration",
3890
- "scope": 39738,
3891
- "src": "3397:21:98",
3890
+ "scope": 42509,
3891
+ "src": "3397:21:101",
3892
3892
  "stateVariable": false,
3893
3893
  "storageLocation": "default",
3894
3894
  "typeDescriptions": {
3895
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
3895
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
3896
3896
  "typeString": "ResourceId"
3897
3897
  },
3898
3898
  "typeName": {
3899
- "id": 39690,
3899
+ "id": 42461,
3900
3900
  "nodeType": "UserDefinedTypeName",
3901
3901
  "pathNode": {
3902
- "id": 39689,
3902
+ "id": 42460,
3903
3903
  "name": "ResourceId",
3904
3904
  "nameLocations": [
3905
- "3397:10:98"
3905
+ "3397:10:101"
3906
3906
  ],
3907
3907
  "nodeType": "IdentifierPath",
3908
- "referencedDeclaration": 26605,
3909
- "src": "3397:10:98"
3908
+ "referencedDeclaration": 29139,
3909
+ "src": "3397:10:101"
3910
3910
  },
3911
- "referencedDeclaration": 26605,
3912
- "src": "3397:10:98",
3911
+ "referencedDeclaration": 29139,
3912
+ "src": "3397:10:101",
3913
3913
  "typeDescriptions": {
3914
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
3914
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
3915
3915
  "typeString": "ResourceId"
3916
3916
  }
3917
3917
  },
3918
3918
  "visibility": "internal"
3919
3919
  }
3920
3920
  ],
3921
- "src": "3396:23:98"
3921
+ "src": "3396:23:101"
3922
3922
  },
3923
3923
  "returnParameters": {
3924
- "id": 39695,
3924
+ "id": 42466,
3925
3925
  "nodeType": "ParameterList",
3926
3926
  "parameters": [
3927
3927
  {
3928
3928
  "constant": false,
3929
- "id": 39694,
3929
+ "id": 42465,
3930
3930
  "mutability": "mutable",
3931
3931
  "name": "",
3932
3932
  "nameLocation": "-1:-1:-1",
3933
3933
  "nodeType": "VariableDeclaration",
3934
- "scope": 39738,
3935
- "src": "3443:13:98",
3934
+ "scope": 42509,
3935
+ "src": "3443:13:101",
3936
3936
  "stateVariable": false,
3937
3937
  "storageLocation": "memory",
3938
3938
  "typeDescriptions": {
@@ -3940,10 +3940,10 @@
3940
3940
  "typeString": "string"
3941
3941
  },
3942
3942
  "typeName": {
3943
- "id": 39693,
3943
+ "id": 42464,
3944
3944
  "name": "string",
3945
3945
  "nodeType": "ElementaryTypeName",
3946
- "src": "3443:6:98",
3946
+ "src": "3443:6:101",
3947
3947
  "typeDescriptions": {
3948
3948
  "typeIdentifier": "t_string_storage_ptr",
3949
3949
  "typeString": "string"
@@ -3952,9 +3952,9 @@
3952
3952
  "visibility": "internal"
3953
3953
  }
3954
3954
  ],
3955
- "src": "3442:15:98"
3955
+ "src": "3442:15:101"
3956
3956
  },
3957
- "scope": 39739,
3957
+ "scope": 42510,
3958
3958
  "stateMutability": "pure",
3959
3959
  "virtual": false,
3960
3960
  "visibility": "internal"
@@ -3966,23 +3966,23 @@
3966
3966
  "contractDependencies": [],
3967
3967
  "contractKind": "library",
3968
3968
  "documentation": {
3969
- "id": 39619,
3969
+ "id": 42390,
3970
3970
  "nodeType": "StructuredDocumentation",
3971
- "src": "2150:108:98",
3971
+ "src": "2150:108:101",
3972
3972
  "text": " @title WorldResourceIdInstance\n @notice A library for handling instances of World Resource IDs."
3973
3973
  },
3974
3974
  "fullyImplemented": true,
3975
3975
  "linearizedBaseContracts": [
3976
- 39739
3976
+ 42510
3977
3977
  ],
3978
3978
  "name": "WorldResourceIdInstance",
3979
- "nameLocation": "2267:23:98",
3980
- "scope": 39740,
3979
+ "nameLocation": "2267:23:101",
3980
+ "scope": 42511,
3981
3981
  "usedErrors": [],
3982
3982
  "usedEvents": []
3983
3983
  }
3984
3984
  ],
3985
3985
  "license": "MIT"
3986
3986
  },
3987
- "id": 98
3987
+ "id": 101
3988
3988
  }