@latticexyz/world-modules 2.0.0-main-fa74f25e → 2.0.0-main-be5266dc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/ArrayLib.sol/ArrayLib.json +255 -255
- package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +223 -223
- package/out/CallboundDelegations.sol/CallboundDelegations.json +2614 -2614
- package/out/DecodeSlice.sol/DecodeSlice.json +3158 -3158
- package/out/DelegationControl.sol/DelegationControl.json +104 -104
- package/out/EncodeArray.sol/EncodeArray.json +3253 -3253
- package/out/FieldLayout.sol/FieldLayoutInstance.json +51 -51
- package/out/FieldLayout.sol/FieldLayoutLib.json +51 -51
- package/out/Hook.sol/HookInstance.json +19 -19
- package/out/Hook.sol/HookLib.json +19 -19
- package/out/Hooks.sol/Hooks.json +99 -99
- package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +61 -61
- package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +53 -53
- package/out/IBaseWorld.sol/IBaseWorld.json +70 -70
- package/out/IBatchCallSystem.sol/IBatchCallSystem.json +51 -51
- package/out/ICoreSystem.sol/ICoreSystem.json +6 -6
- package/out/IDelegationControl.sol/IDelegationControl.json +66 -66
- package/out/IModule.sol/IModule.json +78 -78
- package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +27 -27
- package/out/IStore.sol/IStore.json +4 -4
- package/out/IStoreData.sol/IStoreData.json +4 -4
- package/out/IStoreHook.sol/IStoreHook.json +4 -4
- package/out/IStoreRead.sol/IStoreRead.json +4 -4
- package/out/IStoreRegistration.sol/IStoreRegistration.json +4 -4
- package/out/IStoreWrite.sol/IStoreWrite.json +4 -4
- package/out/ISystemHook.sol/ISystemHook.json +90 -90
- package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +13 -13
- package/out/IWorldContextConsumer.sol/IWorldContextConsumer.json +71 -71
- package/out/IWorldErrors.sol/IWorldErrors.json +150 -150
- package/out/IWorldKernel.sol/IWorldCall.json +156 -156
- package/out/IWorldKernel.sol/IWorldKernel.json +156 -156
- package/out/IWorldKernel.sol/IWorldModuleInstallation.json +156 -156
- package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +201 -201
- package/out/KeysInTable.sol/KeysInTable.json +10687 -10687
- package/out/KeysInTableHook.sol/KeysInTableHook.json +882 -882
- package/out/KeysInTableModule.sol/KeysInTableModule.json +542 -542
- package/out/KeysWithValue.sol/KeysWithValue.json +3847 -3847
- package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1005 -1005
- package/out/KeysWithValueModule.sol/KeysWithValueModule.json +431 -431
- package/out/Memory.sol/Memory.json +8 -8
- package/out/Module.sol/Module.json +93 -93
- package/out/ResourceIds.sol/ResourceIds.json +73 -73
- package/out/Schema.sol/SchemaInstance.json +76 -76
- package/out/Schema.sol/SchemaLib.json +76 -76
- package/out/SchemaType.sol/SchemaType.json +276 -276
- package/out/Slice.sol/SliceInstance.json +11 -11
- package/out/Slice.sol/SliceLib.json +11 -11
- package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +308 -308
- package/out/Storage.sol/Storage.json +11 -11
- package/out/StoreCore.sol/StoreCore.json +62 -62
- package/out/StoreCore.sol/StoreCoreInternal.json +62 -62
- package/out/StoreHook.sol/StoreHook.json +362 -362
- package/out/StoreHooks.sol/StoreHooks.json +100 -100
- package/out/StoreSwitch.sol/StoreSwitch.json +19 -19
- package/out/System.sol/System.json +38 -38
- package/out/Tables.sol/Tables.json +101 -101
- package/out/TightCoder.sol/TightCoder.json +553 -553
- package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +127 -127
- package/out/TimeboundDelegations.sol/TimeboundDelegations.json +2005 -2005
- package/out/UniqueEntity.sol/UniqueEntity.json +1421 -1421
- package/out/UniqueEntityModule.sol/UniqueEntityModule.json +332 -332
- package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +101 -101
- package/out/UsedKeysIndex.sol/UsedKeysIndex.json +2741 -2741
- package/out/WorldContext.sol/WorldContextConsumer.json +382 -382
- package/out/WorldContext.sol/WorldContextProvider.json +382 -382
- package/out/WorldResourceId.sol/WorldResourceIdInstance.json +480 -480
- package/out/WorldResourceId.sol/WorldResourceIdLib.json +480 -480
- package/out/constants.sol/LayoutOffsets.json +164 -140
- package/out/constants.sol/constants.json +115 -115
- package/out/getKeysInTable.sol/getKeysInTable.json +564 -564
- package/out/getKeysWithValue.sol/getKeysWithValue.json +264 -264
- package/out/getTargetTableId.sol/getTargetTableId.json +163 -163
- package/out/getUniqueEntity.sol/getUniqueEntity.json +88 -88
- package/out/hasKey.sol/hasKey.json +130 -130
- package/out/index.sol/index.json +53 -53
- package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +142 -142
- package/out/leftMask.sol/leftMask.json +61 -61
- package/out/query.sol/query.json +1154 -1154
- package/out/revertWithBytes.sol/revertWithBytes.json +15 -15
- package/out/src/Bytes.sol/Bytes.json +1332 -1332
- package/out/src/FieldLayout.sol/FieldLayoutInstance.json +701 -701
- package/out/src/FieldLayout.sol/FieldLayoutLib.json +701 -701
- package/out/src/IStore.sol/IStore.json +57 -57
- package/out/src/IWorldKernel.sol/IWorldCall.json +157 -157
- package/out/src/IWorldKernel.sol/IWorldKernel.json +157 -157
- package/out/src/IWorldKernel.sol/IWorldModuleInstallation.json +157 -157
- package/out/src/Memory.sol/Memory.json +93 -93
- package/out/src/PackedCounter.sol/PackedCounterInstance.json +923 -923
- package/out/src/PackedCounter.sol/PackedCounterLib.json +923 -923
- package/out/src/ResourceId.sol/ResourceIdInstance.json +112 -112
- package/out/src/ResourceId.sol/ResourceIdLib.json +112 -112
- package/out/src/Schema.sol/SchemaInstance.json +791 -791
- package/out/src/Schema.sol/SchemaLib.json +791 -791
- package/out/src/Slice.sol/SliceInstance.json +436 -436
- package/out/src/Slice.sol/SliceLib.json +436 -436
- package/out/src/StoreCore.sol/StoreCore.json +4474 -4474
- package/out/src/StoreCore.sol/StoreCoreInternal.json +4474 -4474
- package/out/src/StoreSwitch.sol/StoreSwitch.json +2473 -2473
- package/out/src/WorldContext.sol/WorldContextConsumer.json +382 -382
- package/out/src/WorldContext.sol/WorldContextProvider.json +382 -382
- package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +480 -480
- package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +480 -480
- package/out/storeHookTypes.sol/storeHookTypes.json +202 -202
- package/out/storeResourceTypes.sol/storeResourceTypes.json +21 -21
- package/out/tables/ResourceIds.sol/ResourceIds.json +1765 -1765
- package/out/tables/Tables.sol/Tables.json +7307 -7307
- package/out/tightcoder/EncodeArray.sol/EncodeArray.json +3253 -3253
- package/out/types.sol/types.json +39 -39
- package/out/version.sol/version.json +12 -12
- package/out/world/src/IERC165.sol/IERC165.json +28 -28
- package/out/worldResourceTypes.sol/worldResourceTypes.json +53 -53
- package/package.json +8 -8
@@ -11,7 +11,7 @@
|
|
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\":\"0xb36724e0369ad053579ec04b9b51707dd8dcc4a72b38404cebdf018ce40bf202\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d8745e1632b7ee94f128600837a36ae53fabaf73c506b0c6d1cae70ea2e9b086\",\"dweb:/ipfs/QmXuMqmybWjEPqWEx91DTM7KAUyxAmDcsj7riBfCfA427N\"]},\"node_modules/@latticexyz/store/src/ResourceId.sol\":{\"keccak256\":\"0x4a61aefe72d6035b1e9aca7841aab44ebd26f8706bdbb447f382046fa94753b6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f715743739e4f8f8a98d78397025a92299ecb3b5dde88cc53bc1ab72bf531fa6\",\"dweb:/ipfs/QmVsYAupGWZUemE4t6xjLqztGHadQ8cyo9E4mT5ZDKUmTs\"]},\"node_modules/@latticexyz/store/src/storeResourceTypes.sol\":{\"keccak256\":\"
|
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\":\"0xb36724e0369ad053579ec04b9b51707dd8dcc4a72b38404cebdf018ce40bf202\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d8745e1632b7ee94f128600837a36ae53fabaf73c506b0c6d1cae70ea2e9b086\",\"dweb:/ipfs/QmXuMqmybWjEPqWEx91DTM7KAUyxAmDcsj7riBfCfA427N\"]},\"node_modules/@latticexyz/store/src/ResourceId.sol\":{\"keccak256\":\"0x4a61aefe72d6035b1e9aca7841aab44ebd26f8706bdbb447f382046fa94753b6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f715743739e4f8f8a98d78397025a92299ecb3b5dde88cc53bc1ab72bf531fa6\",\"dweb:/ipfs/QmVsYAupGWZUemE4t6xjLqztGHadQ8cyo9E4mT5ZDKUmTs\"]},\"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}",
|
15
15
|
"metadata": {
|
16
16
|
"compiler": {
|
17
17
|
"version": "0.8.21+commit.d9974bed"
|
@@ -66,10 +66,10 @@
|
|
66
66
|
"license": "MIT"
|
67
67
|
},
|
68
68
|
"node_modules/@latticexyz/store/src/storeResourceTypes.sol": {
|
69
|
-
"keccak256": "
|
69
|
+
"keccak256": "0xada1867ba72930fc5cf5562dd4e36de849dbac9c833b7969cb1b046a808fabf2",
|
70
70
|
"urls": [
|
71
|
-
"bzz-raw://
|
72
|
-
"dweb:/ipfs/
|
71
|
+
"bzz-raw://6e4b5fdcaa54f567a3f8561c2c3fbc0d68c8dad892a4a8e5418bbce8efc53d84",
|
72
|
+
"dweb:/ipfs/QmTWbYJX1yrCqrEwUKB9rGpHdRvLNU8GCkBbxnLjGD4d2t"
|
73
73
|
],
|
74
74
|
"license": "MIT"
|
75
75
|
},
|
@@ -102,59 +102,59 @@
|
|
102
102
|
},
|
103
103
|
"ast": {
|
104
104
|
"absolutePath": "node_modules/@latticexyz/world/src/WorldResourceId.sol",
|
105
|
-
"id":
|
105
|
+
"id": 39208,
|
106
106
|
"exportedSymbols": {
|
107
107
|
"Bytes": [
|
108
|
-
|
108
|
+
25137
|
109
109
|
],
|
110
110
|
"MASK_RESOURCE_NAMESPACE": [
|
111
|
-
|
111
|
+
39338
|
112
112
|
],
|
113
113
|
"NAMESPACE_BITS": [
|
114
|
-
|
114
|
+
38942
|
115
115
|
],
|
116
116
|
"NAMESPACE_MASK": [
|
117
|
-
|
117
|
+
38972
|
118
118
|
],
|
119
119
|
"NAME_BITS": [
|
120
|
-
|
120
|
+
38947
|
121
121
|
],
|
122
122
|
"RESOURCE_NAMESPACE": [
|
123
|
-
|
123
|
+
39326
|
124
124
|
],
|
125
125
|
"ROOT_NAME": [
|
126
|
-
|
126
|
+
39256
|
127
127
|
],
|
128
128
|
"ROOT_NAMESPACE": [
|
129
|
-
|
129
|
+
39253
|
130
130
|
],
|
131
131
|
"ROOT_NAMESPACE_STRING": [
|
132
|
-
|
132
|
+
38953
|
133
133
|
],
|
134
134
|
"ROOT_NAME_STRING": [
|
135
|
-
|
135
|
+
38959
|
136
136
|
],
|
137
137
|
"ResourceId": [
|
138
|
-
|
138
|
+
26262
|
139
139
|
],
|
140
140
|
"ResourceIdInstance": [
|
141
|
-
|
141
|
+
26326
|
142
142
|
],
|
143
143
|
"TYPE_BITS": [
|
144
|
-
|
144
|
+
26267
|
145
145
|
],
|
146
146
|
"WorldResourceIdInstance": [
|
147
|
-
|
147
|
+
39207
|
148
148
|
],
|
149
149
|
"WorldResourceIdLib": [
|
150
|
-
|
150
|
+
39086
|
151
151
|
]
|
152
152
|
},
|
153
153
|
"nodeType": "SourceUnit",
|
154
154
|
"src": "32:3891:98",
|
155
155
|
"nodes": [
|
156
156
|
{
|
157
|
-
"id":
|
157
|
+
"id": 38925,
|
158
158
|
"nodeType": "PragmaDirective",
|
159
159
|
"src": "32:25:98",
|
160
160
|
"nodes": [],
|
@@ -166,23 +166,23 @@
|
|
166
166
|
]
|
167
167
|
},
|
168
168
|
{
|
169
|
-
"id":
|
169
|
+
"id": 38927,
|
170
170
|
"nodeType": "ImportDirective",
|
171
171
|
"src": "59:56:98",
|
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":
|
177
|
-
"sourceUnit":
|
176
|
+
"scope": 39208,
|
177
|
+
"sourceUnit": 25138,
|
178
178
|
"symbolAliases": [
|
179
179
|
{
|
180
180
|
"foreign": {
|
181
|
-
"id":
|
181
|
+
"id": 38926,
|
182
182
|
"name": "Bytes",
|
183
183
|
"nodeType": "Identifier",
|
184
184
|
"overloadedDeclarations": [],
|
185
|
-
"referencedDeclaration":
|
185
|
+
"referencedDeclaration": 25137,
|
186
186
|
"src": "68:5:98",
|
187
187
|
"typeDescriptions": {}
|
188
188
|
},
|
@@ -192,23 +192,23 @@
|
|
192
192
|
"unitAlias": ""
|
193
193
|
},
|
194
194
|
{
|
195
|
-
"id":
|
195
|
+
"id": 38931,
|
196
196
|
"nodeType": "ImportDirective",
|
197
197
|
"src": "116:97:98",
|
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":
|
203
|
-
"sourceUnit":
|
202
|
+
"scope": 39208,
|
203
|
+
"sourceUnit": 26327,
|
204
204
|
"symbolAliases": [
|
205
205
|
{
|
206
206
|
"foreign": {
|
207
|
-
"id":
|
207
|
+
"id": 38928,
|
208
208
|
"name": "ResourceId",
|
209
209
|
"nodeType": "Identifier",
|
210
210
|
"overloadedDeclarations": [],
|
211
|
-
"referencedDeclaration":
|
211
|
+
"referencedDeclaration": 26262,
|
212
212
|
"src": "125:10:98",
|
213
213
|
"typeDescriptions": {}
|
214
214
|
},
|
@@ -216,11 +216,11 @@
|
|
216
216
|
},
|
217
217
|
{
|
218
218
|
"foreign": {
|
219
|
-
"id":
|
219
|
+
"id": 38929,
|
220
220
|
"name": "ResourceIdInstance",
|
221
221
|
"nodeType": "Identifier",
|
222
222
|
"overloadedDeclarations": [],
|
223
|
-
"referencedDeclaration":
|
223
|
+
"referencedDeclaration": 26326,
|
224
224
|
"src": "137:18:98",
|
225
225
|
"typeDescriptions": {}
|
226
226
|
},
|
@@ -228,11 +228,11 @@
|
|
228
228
|
},
|
229
229
|
{
|
230
230
|
"foreign": {
|
231
|
-
"id":
|
231
|
+
"id": 38930,
|
232
232
|
"name": "TYPE_BITS",
|
233
233
|
"nodeType": "Identifier",
|
234
234
|
"overloadedDeclarations": [],
|
235
|
-
"referencedDeclaration":
|
235
|
+
"referencedDeclaration": 26267,
|
236
236
|
"src": "157:9:98",
|
237
237
|
"typeDescriptions": {}
|
238
238
|
},
|
@@ -242,23 +242,23 @@
|
|
242
242
|
"unitAlias": ""
|
243
243
|
},
|
244
244
|
{
|
245
|
-
"id":
|
245
|
+
"id": 38934,
|
246
246
|
"nodeType": "ImportDirective",
|
247
247
|
"src": "215:60:98",
|
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":
|
253
|
-
"sourceUnit":
|
252
|
+
"scope": 39208,
|
253
|
+
"sourceUnit": 39308,
|
254
254
|
"symbolAliases": [
|
255
255
|
{
|
256
256
|
"foreign": {
|
257
|
-
"id":
|
257
|
+
"id": 38932,
|
258
258
|
"name": "ROOT_NAMESPACE",
|
259
259
|
"nodeType": "Identifier",
|
260
260
|
"overloadedDeclarations": [],
|
261
|
-
"referencedDeclaration":
|
261
|
+
"referencedDeclaration": 39253,
|
262
262
|
"src": "224:14:98",
|
263
263
|
"typeDescriptions": {}
|
264
264
|
},
|
@@ -266,11 +266,11 @@
|
|
266
266
|
},
|
267
267
|
{
|
268
268
|
"foreign": {
|
269
|
-
"id":
|
269
|
+
"id": 38933,
|
270
270
|
"name": "ROOT_NAME",
|
271
271
|
"nodeType": "Identifier",
|
272
272
|
"overloadedDeclarations": [],
|
273
|
-
"referencedDeclaration":
|
273
|
+
"referencedDeclaration": 39256,
|
274
274
|
"src": "240:9:98",
|
275
275
|
"typeDescriptions": {}
|
276
276
|
},
|
@@ -280,23 +280,23 @@
|
|
280
280
|
"unitAlias": ""
|
281
281
|
},
|
282
282
|
{
|
283
|
-
"id":
|
283
|
+
"id": 38937,
|
284
284
|
"nodeType": "ImportDirective",
|
285
285
|
"src": "276:87:98",
|
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":
|
291
|
-
"sourceUnit":
|
290
|
+
"scope": 39208,
|
291
|
+
"sourceUnit": 39351,
|
292
292
|
"symbolAliases": [
|
293
293
|
{
|
294
294
|
"foreign": {
|
295
|
-
"id":
|
295
|
+
"id": 38935,
|
296
296
|
"name": "RESOURCE_NAMESPACE",
|
297
297
|
"nodeType": "Identifier",
|
298
298
|
"overloadedDeclarations": [],
|
299
|
-
"referencedDeclaration":
|
299
|
+
"referencedDeclaration": 39326,
|
300
300
|
"src": "285:18:98",
|
301
301
|
"typeDescriptions": {}
|
302
302
|
},
|
@@ -304,11 +304,11 @@
|
|
304
304
|
},
|
305
305
|
{
|
306
306
|
"foreign": {
|
307
|
-
"id":
|
307
|
+
"id": 38936,
|
308
308
|
"name": "MASK_RESOURCE_NAMESPACE",
|
309
309
|
"nodeType": "Identifier",
|
310
310
|
"overloadedDeclarations": [],
|
311
|
-
"referencedDeclaration":
|
311
|
+
"referencedDeclaration": 39338,
|
312
312
|
"src": "305:23:98",
|
313
313
|
"typeDescriptions": {}
|
314
314
|
},
|
@@ -318,7 +318,7 @@
|
|
318
318
|
"unitAlias": ""
|
319
319
|
},
|
320
320
|
{
|
321
|
-
"id":
|
321
|
+
"id": 38942,
|
322
322
|
"nodeType": "VariableDeclaration",
|
323
323
|
"src": "365:40:98",
|
324
324
|
"nodes": [],
|
@@ -326,7 +326,7 @@
|
|
326
326
|
"mutability": "constant",
|
327
327
|
"name": "NAMESPACE_BITS",
|
328
328
|
"nameLocation": "382:14:98",
|
329
|
-
"scope":
|
329
|
+
"scope": 39208,
|
330
330
|
"stateVariable": false,
|
331
331
|
"storageLocation": "default",
|
332
332
|
"typeDescriptions": {
|
@@ -334,7 +334,7 @@
|
|
334
334
|
"typeString": "uint256"
|
335
335
|
},
|
336
336
|
"typeName": {
|
337
|
-
"id":
|
337
|
+
"id": 38938,
|
338
338
|
"name": "uint256",
|
339
339
|
"nodeType": "ElementaryTypeName",
|
340
340
|
"src": "365:7:98",
|
@@ -348,14 +348,14 @@
|
|
348
348
|
"typeIdentifier": "t_rational_112_by_1",
|
349
349
|
"typeString": "int_const 112"
|
350
350
|
},
|
351
|
-
"id":
|
351
|
+
"id": 38941,
|
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":
|
358
|
+
"id": 38939,
|
359
359
|
"isConstant": false,
|
360
360
|
"isLValue": false,
|
361
361
|
"isPure": true,
|
@@ -373,7 +373,7 @@
|
|
373
373
|
"operator": "*",
|
374
374
|
"rightExpression": {
|
375
375
|
"hexValue": "38",
|
376
|
-
"id":
|
376
|
+
"id": 38940,
|
377
377
|
"isConstant": false,
|
378
378
|
"isLValue": false,
|
379
379
|
"isPure": true,
|
@@ -396,7 +396,7 @@
|
|
396
396
|
"visibility": "internal"
|
397
397
|
},
|
398
398
|
{
|
399
|
-
"id":
|
399
|
+
"id": 38947,
|
400
400
|
"nodeType": "VariableDeclaration",
|
401
401
|
"src": "407:35:98",
|
402
402
|
"nodes": [],
|
@@ -404,7 +404,7 @@
|
|
404
404
|
"mutability": "constant",
|
405
405
|
"name": "NAME_BITS",
|
406
406
|
"nameLocation": "424:9:98",
|
407
|
-
"scope":
|
407
|
+
"scope": 39208,
|
408
408
|
"stateVariable": false,
|
409
409
|
"storageLocation": "default",
|
410
410
|
"typeDescriptions": {
|
@@ -412,7 +412,7 @@
|
|
412
412
|
"typeString": "uint256"
|
413
413
|
},
|
414
414
|
"typeName": {
|
415
|
-
"id":
|
415
|
+
"id": 38943,
|
416
416
|
"name": "uint256",
|
417
417
|
"nodeType": "ElementaryTypeName",
|
418
418
|
"src": "407:7:98",
|
@@ -426,14 +426,14 @@
|
|
426
426
|
"typeIdentifier": "t_rational_128_by_1",
|
427
427
|
"typeString": "int_const 128"
|
428
428
|
},
|
429
|
-
"id":
|
429
|
+
"id": 38946,
|
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":
|
436
|
+
"id": 38944,
|
437
437
|
"isConstant": false,
|
438
438
|
"isLValue": false,
|
439
439
|
"isPure": true,
|
@@ -451,7 +451,7 @@
|
|
451
451
|
"operator": "*",
|
452
452
|
"rightExpression": {
|
453
453
|
"hexValue": "38",
|
454
|
-
"id":
|
454
|
+
"id": 38945,
|
455
455
|
"isConstant": false,
|
456
456
|
"isLValue": false,
|
457
457
|
"isPure": true,
|
@@ -474,7 +474,7 @@
|
|
474
474
|
"visibility": "internal"
|
475
475
|
},
|
476
476
|
{
|
477
|
-
"id":
|
477
|
+
"id": 38953,
|
478
478
|
"nodeType": "VariableDeclaration",
|
479
479
|
"src": "445:66:98",
|
480
480
|
"nodes": [],
|
@@ -482,7 +482,7 @@
|
|
482
482
|
"mutability": "constant",
|
483
483
|
"name": "ROOT_NAMESPACE_STRING",
|
484
484
|
"nameLocation": "462:21:98",
|
485
|
-
"scope":
|
485
|
+
"scope": 39208,
|
486
486
|
"stateVariable": false,
|
487
487
|
"storageLocation": "default",
|
488
488
|
"typeDescriptions": {
|
@@ -490,7 +490,7 @@
|
|
490
490
|
"typeString": "bytes16"
|
491
491
|
},
|
492
492
|
"typeName": {
|
493
|
-
"id":
|
493
|
+
"id": 38948,
|
494
494
|
"name": "bytes16",
|
495
495
|
"nodeType": "ElementaryTypeName",
|
496
496
|
"src": "445:7:98",
|
@@ -503,7 +503,7 @@
|
|
503
503
|
"arguments": [
|
504
504
|
{
|
505
505
|
"hexValue": "524f4f545f4e414d455350414345",
|
506
|
-
"id":
|
506
|
+
"id": 38951,
|
507
507
|
"isConstant": false,
|
508
508
|
"isLValue": false,
|
509
509
|
"isPure": true,
|
@@ -525,7 +525,7 @@
|
|
525
525
|
"typeString": "literal_string \"ROOT_NAMESPACE\""
|
526
526
|
}
|
527
527
|
],
|
528
|
-
"id":
|
528
|
+
"id": 38950,
|
529
529
|
"isConstant": false,
|
530
530
|
"isLValue": false,
|
531
531
|
"isPure": true,
|
@@ -537,14 +537,14 @@
|
|
537
537
|
"typeString": "type(bytes16)"
|
538
538
|
},
|
539
539
|
"typeName": {
|
540
|
-
"id":
|
540
|
+
"id": 38949,
|
541
541
|
"name": "bytes16",
|
542
542
|
"nodeType": "ElementaryTypeName",
|
543
543
|
"src": "486:7:98",
|
544
544
|
"typeDescriptions": {}
|
545
545
|
}
|
546
546
|
},
|
547
|
-
"id":
|
547
|
+
"id": 38952,
|
548
548
|
"isConstant": false,
|
549
549
|
"isLValue": false,
|
550
550
|
"isPure": true,
|
@@ -563,7 +563,7 @@
|
|
563
563
|
"visibility": "internal"
|
564
564
|
},
|
565
565
|
{
|
566
|
-
"id":
|
566
|
+
"id": 38959,
|
567
567
|
"nodeType": "VariableDeclaration",
|
568
568
|
"src": "513:56:98",
|
569
569
|
"nodes": [],
|
@@ -571,7 +571,7 @@
|
|
571
571
|
"mutability": "constant",
|
572
572
|
"name": "ROOT_NAME_STRING",
|
573
573
|
"nameLocation": "530:16:98",
|
574
|
-
"scope":
|
574
|
+
"scope": 39208,
|
575
575
|
"stateVariable": false,
|
576
576
|
"storageLocation": "default",
|
577
577
|
"typeDescriptions": {
|
@@ -579,7 +579,7 @@
|
|
579
579
|
"typeString": "bytes16"
|
580
580
|
},
|
581
581
|
"typeName": {
|
582
|
-
"id":
|
582
|
+
"id": 38954,
|
583
583
|
"name": "bytes16",
|
584
584
|
"nodeType": "ElementaryTypeName",
|
585
585
|
"src": "513:7:98",
|
@@ -592,7 +592,7 @@
|
|
592
592
|
"arguments": [
|
593
593
|
{
|
594
594
|
"hexValue": "524f4f545f4e414d45",
|
595
|
-
"id":
|
595
|
+
"id": 38957,
|
596
596
|
"isConstant": false,
|
597
597
|
"isLValue": false,
|
598
598
|
"isPure": true,
|
@@ -614,7 +614,7 @@
|
|
614
614
|
"typeString": "literal_string \"ROOT_NAME\""
|
615
615
|
}
|
616
616
|
],
|
617
|
-
"id":
|
617
|
+
"id": 38956,
|
618
618
|
"isConstant": false,
|
619
619
|
"isLValue": false,
|
620
620
|
"isPure": true,
|
@@ -626,14 +626,14 @@
|
|
626
626
|
"typeString": "type(bytes16)"
|
627
627
|
},
|
628
628
|
"typeName": {
|
629
|
-
"id":
|
629
|
+
"id": 38955,
|
630
630
|
"name": "bytes16",
|
631
631
|
"nodeType": "ElementaryTypeName",
|
632
632
|
"src": "549:7:98",
|
633
633
|
"typeDescriptions": {}
|
634
634
|
}
|
635
635
|
},
|
636
|
-
"id":
|
636
|
+
"id": 38958,
|
637
637
|
"isConstant": false,
|
638
638
|
"isLValue": false,
|
639
639
|
"isPure": true,
|
@@ -652,7 +652,7 @@
|
|
652
652
|
"visibility": "internal"
|
653
653
|
},
|
654
654
|
{
|
655
|
-
"id":
|
655
|
+
"id": 38972,
|
656
656
|
"nodeType": "VariableDeclaration",
|
657
657
|
"src": "572:70:98",
|
658
658
|
"nodes": [],
|
@@ -660,7 +660,7 @@
|
|
660
660
|
"mutability": "constant",
|
661
661
|
"name": "NAMESPACE_MASK",
|
662
662
|
"nameLocation": "589:14:98",
|
663
|
-
"scope":
|
663
|
+
"scope": 39208,
|
664
664
|
"stateVariable": false,
|
665
665
|
"storageLocation": "default",
|
666
666
|
"typeDescriptions": {
|
@@ -668,7 +668,7 @@
|
|
668
668
|
"typeString": "bytes32"
|
669
669
|
},
|
670
670
|
"typeName": {
|
671
|
-
"id":
|
671
|
+
"id": 38960,
|
672
672
|
"name": "bytes32",
|
673
673
|
"nodeType": "ElementaryTypeName",
|
674
674
|
"src": "572:7:98",
|
@@ -682,7 +682,7 @@
|
|
682
682
|
"typeIdentifier": "t_bytes32",
|
683
683
|
"typeString": "bytes32"
|
684
684
|
},
|
685
|
-
"id":
|
685
|
+
"id": 38971,
|
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":
|
693
|
+
"id": 38967,
|
694
694
|
"isConstant": false,
|
695
695
|
"isLValue": false,
|
696
696
|
"isPure": true,
|
@@ -703,7 +703,7 @@
|
|
703
703
|
"arguments": [
|
704
704
|
{
|
705
705
|
"hexValue": "",
|
706
|
-
"id":
|
706
|
+
"id": 38965,
|
707
707
|
"isConstant": false,
|
708
708
|
"isLValue": false,
|
709
709
|
"isPure": true,
|
@@ -725,7 +725,7 @@
|
|
725
725
|
"typeString": "literal_string \"\""
|
726
726
|
}
|
727
727
|
],
|
728
|
-
"id":
|
728
|
+
"id": 38964,
|
729
729
|
"isConstant": false,
|
730
730
|
"isLValue": false,
|
731
731
|
"isPure": true,
|
@@ -737,14 +737,14 @@
|
|
737
737
|
"typeString": "type(bytes14)"
|
738
738
|
},
|
739
739
|
"typeName": {
|
740
|
-
"id":
|
740
|
+
"id": 38963,
|
741
741
|
"name": "bytes14",
|
742
742
|
"nodeType": "ElementaryTypeName",
|
743
743
|
"src": "615:7:98",
|
744
744
|
"typeDescriptions": {}
|
745
745
|
}
|
746
746
|
},
|
747
|
-
"id":
|
747
|
+
"id": 38966,
|
748
748
|
"isConstant": false,
|
749
749
|
"isLValue": false,
|
750
750
|
"isPure": true,
|
@@ -773,7 +773,7 @@
|
|
773
773
|
"typeString": "bytes14"
|
774
774
|
}
|
775
775
|
],
|
776
|
-
"id":
|
776
|
+
"id": 38962,
|
777
777
|
"isConstant": false,
|
778
778
|
"isLValue": false,
|
779
779
|
"isPure": true,
|
@@ -785,14 +785,14 @@
|
|
785
785
|
"typeString": "type(bytes32)"
|
786
786
|
},
|
787
787
|
"typeName": {
|
788
|
-
"id":
|
788
|
+
"id": 38961,
|
789
789
|
"name": "bytes32",
|
790
790
|
"nodeType": "ElementaryTypeName",
|
791
791
|
"src": "606:7:98",
|
792
792
|
"typeDescriptions": {}
|
793
793
|
}
|
794
794
|
},
|
795
|
-
"id":
|
795
|
+
"id": 38968,
|
796
796
|
"isConstant": false,
|
797
797
|
"isLValue": false,
|
798
798
|
"isPure": true,
|
@@ -813,11 +813,11 @@
|
|
813
813
|
"rightExpression": {
|
814
814
|
"components": [
|
815
815
|
{
|
816
|
-
"id":
|
816
|
+
"id": 38969,
|
817
817
|
"name": "TYPE_BITS",
|
818
818
|
"nodeType": "Identifier",
|
819
819
|
"overloadedDeclarations": [],
|
820
|
-
"referencedDeclaration":
|
820
|
+
"referencedDeclaration": 26267,
|
821
821
|
"src": "632:9:98",
|
822
822
|
"typeDescriptions": {
|
823
823
|
"typeIdentifier": "t_uint256",
|
@@ -825,7 +825,7 @@
|
|
825
825
|
}
|
826
826
|
}
|
827
827
|
],
|
828
|
-
"id":
|
828
|
+
"id": 38970,
|
829
829
|
"isConstant": false,
|
830
830
|
"isInlineArray": false,
|
831
831
|
"isLValue": false,
|
@@ -847,17 +847,17 @@
|
|
847
847
|
"visibility": "internal"
|
848
848
|
},
|
849
849
|
{
|
850
|
-
"id":
|
850
|
+
"id": 39086,
|
851
851
|
"nodeType": "ContractDefinition",
|
852
852
|
"src": "757:1391:98",
|
853
853
|
"nodes": [
|
854
854
|
{
|
855
|
-
"id":
|
855
|
+
"id": 39014,
|
856
856
|
"nodeType": "FunctionDefinition",
|
857
857
|
"src": "1008:257:98",
|
858
858
|
"nodes": [],
|
859
859
|
"body": {
|
860
|
-
"id":
|
860
|
+
"id": 39013,
|
861
861
|
"nodeType": "Block",
|
862
862
|
"src": "1107:158:98",
|
863
863
|
"nodes": [],
|
@@ -870,7 +870,7 @@
|
|
870
870
|
"typeIdentifier": "t_bytes32",
|
871
871
|
"typeString": "bytes32"
|
872
872
|
},
|
873
|
-
"id":
|
873
|
+
"id": 39010,
|
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":
|
883
|
+
"id": 38999,
|
884
884
|
"isConstant": false,
|
885
885
|
"isLValue": false,
|
886
886
|
"isPure": false,
|
@@ -888,11 +888,11 @@
|
|
888
888
|
"leftExpression": {
|
889
889
|
"arguments": [
|
890
890
|
{
|
891
|
-
"id":
|
891
|
+
"id": 38990,
|
892
892
|
"name": "typeId",
|
893
893
|
"nodeType": "Identifier",
|
894
894
|
"overloadedDeclarations": [],
|
895
|
-
"referencedDeclaration":
|
895
|
+
"referencedDeclaration": 38976,
|
896
896
|
"src": "1159:6:98",
|
897
897
|
"typeDescriptions": {
|
898
898
|
"typeIdentifier": "t_bytes2",
|
@@ -907,7 +907,7 @@
|
|
907
907
|
"typeString": "bytes2"
|
908
908
|
}
|
909
909
|
],
|
910
|
-
"id":
|
910
|
+
"id": 38989,
|
911
911
|
"isConstant": false,
|
912
912
|
"isLValue": false,
|
913
913
|
"isPure": true,
|
@@ -919,14 +919,14 @@
|
|
919
919
|
"typeString": "type(bytes32)"
|
920
920
|
},
|
921
921
|
"typeName": {
|
922
|
-
"id":
|
922
|
+
"id": 38988,
|
923
923
|
"name": "bytes32",
|
924
924
|
"nodeType": "ElementaryTypeName",
|
925
925
|
"src": "1151:7:98",
|
926
926
|
"typeDescriptions": {}
|
927
927
|
}
|
928
928
|
},
|
929
|
-
"id":
|
929
|
+
"id": 38991,
|
930
930
|
"isConstant": false,
|
931
931
|
"isLValue": false,
|
932
932
|
"isPure": false,
|
@@ -951,7 +951,7 @@
|
|
951
951
|
"typeIdentifier": "t_bytes32",
|
952
952
|
"typeString": "bytes32"
|
953
953
|
},
|
954
|
-
"id":
|
954
|
+
"id": 38997,
|
955
955
|
"isConstant": false,
|
956
956
|
"isLValue": false,
|
957
957
|
"isPure": false,
|
@@ -959,11 +959,11 @@
|
|
959
959
|
"leftExpression": {
|
960
960
|
"arguments": [
|
961
961
|
{
|
962
|
-
"id":
|
962
|
+
"id": 38994,
|
963
963
|
"name": "namespace",
|
964
964
|
"nodeType": "Identifier",
|
965
965
|
"overloadedDeclarations": [],
|
966
|
-
"referencedDeclaration":
|
966
|
+
"referencedDeclaration": 38978,
|
967
967
|
"src": "1178:9:98",
|
968
968
|
"typeDescriptions": {
|
969
969
|
"typeIdentifier": "t_bytes14",
|
@@ -978,7 +978,7 @@
|
|
978
978
|
"typeString": "bytes14"
|
979
979
|
}
|
980
980
|
],
|
981
|
-
"id":
|
981
|
+
"id": 38993,
|
982
982
|
"isConstant": false,
|
983
983
|
"isLValue": false,
|
984
984
|
"isPure": true,
|
@@ -990,14 +990,14 @@
|
|
990
990
|
"typeString": "type(bytes32)"
|
991
991
|
},
|
992
992
|
"typeName": {
|
993
|
-
"id":
|
993
|
+
"id": 38992,
|
994
994
|
"name": "bytes32",
|
995
995
|
"nodeType": "ElementaryTypeName",
|
996
996
|
"src": "1170:7:98",
|
997
997
|
"typeDescriptions": {}
|
998
998
|
}
|
999
999
|
},
|
1000
|
-
"id":
|
1000
|
+
"id": 38995,
|
1001
1001
|
"isConstant": false,
|
1002
1002
|
"isLValue": false,
|
1003
1003
|
"isPure": false,
|
@@ -1016,11 +1016,11 @@
|
|
1016
1016
|
"nodeType": "BinaryOperation",
|
1017
1017
|
"operator": ">>",
|
1018
1018
|
"rightExpression": {
|
1019
|
-
"id":
|
1019
|
+
"id": 38996,
|
1020
1020
|
"name": "TYPE_BITS",
|
1021
1021
|
"nodeType": "Identifier",
|
1022
1022
|
"overloadedDeclarations": [],
|
1023
|
-
"referencedDeclaration":
|
1023
|
+
"referencedDeclaration": 26267,
|
1024
1024
|
"src": "1192:9:98",
|
1025
1025
|
"typeDescriptions": {
|
1026
1026
|
"typeIdentifier": "t_uint256",
|
@@ -1034,7 +1034,7 @@
|
|
1034
1034
|
}
|
1035
1035
|
}
|
1036
1036
|
],
|
1037
|
-
"id":
|
1037
|
+
"id": 38998,
|
1038
1038
|
"isConstant": false,
|
1039
1039
|
"isInlineArray": false,
|
1040
1040
|
"isLValue": false,
|
@@ -1062,7 +1062,7 @@
|
|
1062
1062
|
"typeIdentifier": "t_bytes32",
|
1063
1063
|
"typeString": "bytes32"
|
1064
1064
|
},
|
1065
|
-
"id":
|
1065
|
+
"id": 39008,
|
1066
1066
|
"isConstant": false,
|
1067
1067
|
"isLValue": false,
|
1068
1068
|
"isPure": false,
|
@@ -1070,11 +1070,11 @@
|
|
1070
1070
|
"leftExpression": {
|
1071
1071
|
"arguments": [
|
1072
1072
|
{
|
1073
|
-
"id":
|
1073
|
+
"id": 39002,
|
1074
1074
|
"name": "name",
|
1075
1075
|
"nodeType": "Identifier",
|
1076
1076
|
"overloadedDeclarations": [],
|
1077
|
-
"referencedDeclaration":
|
1077
|
+
"referencedDeclaration": 38980,
|
1078
1078
|
"src": "1214:4:98",
|
1079
1079
|
"typeDescriptions": {
|
1080
1080
|
"typeIdentifier": "t_bytes16",
|
@@ -1089,7 +1089,7 @@
|
|
1089
1089
|
"typeString": "bytes16"
|
1090
1090
|
}
|
1091
1091
|
],
|
1092
|
-
"id":
|
1092
|
+
"id": 39001,
|
1093
1093
|
"isConstant": false,
|
1094
1094
|
"isLValue": false,
|
1095
1095
|
"isPure": true,
|
@@ -1101,14 +1101,14 @@
|
|
1101
1101
|
"typeString": "type(bytes32)"
|
1102
1102
|
},
|
1103
1103
|
"typeName": {
|
1104
|
-
"id":
|
1104
|
+
"id": 39000,
|
1105
1105
|
"name": "bytes32",
|
1106
1106
|
"nodeType": "ElementaryTypeName",
|
1107
1107
|
"src": "1206:7:98",
|
1108
1108
|
"typeDescriptions": {}
|
1109
1109
|
}
|
1110
1110
|
},
|
1111
|
-
"id":
|
1111
|
+
"id": 39003,
|
1112
1112
|
"isConstant": false,
|
1113
1113
|
"isLValue": false,
|
1114
1114
|
"isPure": false,
|
@@ -1133,17 +1133,17 @@
|
|
1133
1133
|
"typeIdentifier": "t_uint256",
|
1134
1134
|
"typeString": "uint256"
|
1135
1135
|
},
|
1136
|
-
"id":
|
1136
|
+
"id": 39006,
|
1137
1137
|
"isConstant": false,
|
1138
1138
|
"isLValue": false,
|
1139
1139
|
"isPure": true,
|
1140
1140
|
"lValueRequested": false,
|
1141
1141
|
"leftExpression": {
|
1142
|
-
"id":
|
1142
|
+
"id": 39004,
|
1143
1143
|
"name": "TYPE_BITS",
|
1144
1144
|
"nodeType": "Identifier",
|
1145
1145
|
"overloadedDeclarations": [],
|
1146
|
-
"referencedDeclaration":
|
1146
|
+
"referencedDeclaration": 26267,
|
1147
1147
|
"src": "1224:9:98",
|
1148
1148
|
"typeDescriptions": {
|
1149
1149
|
"typeIdentifier": "t_uint256",
|
@@ -1153,11 +1153,11 @@
|
|
1153
1153
|
"nodeType": "BinaryOperation",
|
1154
1154
|
"operator": "+",
|
1155
1155
|
"rightExpression": {
|
1156
|
-
"id":
|
1156
|
+
"id": 39005,
|
1157
1157
|
"name": "NAMESPACE_BITS",
|
1158
1158
|
"nodeType": "Identifier",
|
1159
1159
|
"overloadedDeclarations": [],
|
1160
|
-
"referencedDeclaration":
|
1160
|
+
"referencedDeclaration": 38942,
|
1161
1161
|
"src": "1236:14:98",
|
1162
1162
|
"typeDescriptions": {
|
1163
1163
|
"typeIdentifier": "t_uint256",
|
@@ -1171,7 +1171,7 @@
|
|
1171
1171
|
}
|
1172
1172
|
}
|
1173
1173
|
],
|
1174
|
-
"id":
|
1174
|
+
"id": 39007,
|
1175
1175
|
"isConstant": false,
|
1176
1176
|
"isInlineArray": false,
|
1177
1177
|
"isLValue": false,
|
@@ -1191,7 +1191,7 @@
|
|
1191
1191
|
}
|
1192
1192
|
}
|
1193
1193
|
],
|
1194
|
-
"id":
|
1194
|
+
"id": 39009,
|
1195
1195
|
"isConstant": false,
|
1196
1196
|
"isInlineArray": false,
|
1197
1197
|
"isLValue": false,
|
@@ -1219,18 +1219,18 @@
|
|
1219
1219
|
}
|
1220
1220
|
],
|
1221
1221
|
"expression": {
|
1222
|
-
"id":
|
1222
|
+
"id": 38986,
|
1223
1223
|
"name": "ResourceId",
|
1224
1224
|
"nodeType": "Identifier",
|
1225
1225
|
"overloadedDeclarations": [],
|
1226
|
-
"referencedDeclaration":
|
1226
|
+
"referencedDeclaration": 26262,
|
1227
1227
|
"src": "1126:10:98",
|
1228
1228
|
"typeDescriptions": {
|
1229
|
-
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$
|
1229
|
+
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$26262_$",
|
1230
1230
|
"typeString": "type(ResourceId)"
|
1231
1231
|
}
|
1232
1232
|
},
|
1233
|
-
"id":
|
1233
|
+
"id": 38987,
|
1234
1234
|
"isConstant": false,
|
1235
1235
|
"isLValue": false,
|
1236
1236
|
"isPure": true,
|
@@ -1240,11 +1240,11 @@
|
|
1240
1240
|
"nodeType": "MemberAccess",
|
1241
1241
|
"src": "1126:15:98",
|
1242
1242
|
"typeDescriptions": {
|
1243
|
-
"typeIdentifier": "t_function_wrap_pure$_t_bytes32_$returns$_t_userDefinedValueType$_ResourceId_$
|
1243
|
+
"typeIdentifier": "t_function_wrap_pure$_t_bytes32_$returns$_t_userDefinedValueType$_ResourceId_$26262_$",
|
1244
1244
|
"typeString": "function (bytes32) pure returns (ResourceId)"
|
1245
1245
|
}
|
1246
1246
|
},
|
1247
|
-
"id":
|
1247
|
+
"id": 39011,
|
1248
1248
|
"isConstant": false,
|
1249
1249
|
"isLValue": false,
|
1250
1250
|
"isPure": false,
|
@@ -1256,19 +1256,19 @@
|
|
1256
1256
|
"src": "1126:134:98",
|
1257
1257
|
"tryCall": false,
|
1258
1258
|
"typeDescriptions": {
|
1259
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
1259
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26262",
|
1260
1260
|
"typeString": "ResourceId"
|
1261
1261
|
}
|
1262
1262
|
},
|
1263
|
-
"functionReturnParameters":
|
1264
|
-
"id":
|
1263
|
+
"functionReturnParameters": 38985,
|
1264
|
+
"id": 39012,
|
1265
1265
|
"nodeType": "Return",
|
1266
1266
|
"src": "1113:147:98"
|
1267
1267
|
}
|
1268
1268
|
]
|
1269
1269
|
},
|
1270
1270
|
"documentation": {
|
1271
|
-
"id":
|
1271
|
+
"id": 38974,
|
1272
1272
|
"nodeType": "StructuredDocumentation",
|
1273
1273
|
"src": "788:217:98",
|
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."
|
@@ -1279,17 +1279,17 @@
|
|
1279
1279
|
"name": "encode",
|
1280
1280
|
"nameLocation": "1017:6:98",
|
1281
1281
|
"parameters": {
|
1282
|
-
"id":
|
1282
|
+
"id": 38981,
|
1283
1283
|
"nodeType": "ParameterList",
|
1284
1284
|
"parameters": [
|
1285
1285
|
{
|
1286
1286
|
"constant": false,
|
1287
|
-
"id":
|
1287
|
+
"id": 38976,
|
1288
1288
|
"mutability": "mutable",
|
1289
1289
|
"name": "typeId",
|
1290
1290
|
"nameLocation": "1031:6:98",
|
1291
1291
|
"nodeType": "VariableDeclaration",
|
1292
|
-
"scope":
|
1292
|
+
"scope": 39014,
|
1293
1293
|
"src": "1024:13:98",
|
1294
1294
|
"stateVariable": false,
|
1295
1295
|
"storageLocation": "default",
|
@@ -1298,7 +1298,7 @@
|
|
1298
1298
|
"typeString": "bytes2"
|
1299
1299
|
},
|
1300
1300
|
"typeName": {
|
1301
|
-
"id":
|
1301
|
+
"id": 38975,
|
1302
1302
|
"name": "bytes2",
|
1303
1303
|
"nodeType": "ElementaryTypeName",
|
1304
1304
|
"src": "1024:6:98",
|
@@ -1311,12 +1311,12 @@
|
|
1311
1311
|
},
|
1312
1312
|
{
|
1313
1313
|
"constant": false,
|
1314
|
-
"id":
|
1314
|
+
"id": 38978,
|
1315
1315
|
"mutability": "mutable",
|
1316
1316
|
"name": "namespace",
|
1317
1317
|
"nameLocation": "1047:9:98",
|
1318
1318
|
"nodeType": "VariableDeclaration",
|
1319
|
-
"scope":
|
1319
|
+
"scope": 39014,
|
1320
1320
|
"src": "1039:17:98",
|
1321
1321
|
"stateVariable": false,
|
1322
1322
|
"storageLocation": "default",
|
@@ -1325,7 +1325,7 @@
|
|
1325
1325
|
"typeString": "bytes14"
|
1326
1326
|
},
|
1327
1327
|
"typeName": {
|
1328
|
-
"id":
|
1328
|
+
"id": 38977,
|
1329
1329
|
"name": "bytes14",
|
1330
1330
|
"nodeType": "ElementaryTypeName",
|
1331
1331
|
"src": "1039:7:98",
|
@@ -1338,12 +1338,12 @@
|
|
1338
1338
|
},
|
1339
1339
|
{
|
1340
1340
|
"constant": false,
|
1341
|
-
"id":
|
1341
|
+
"id": 38980,
|
1342
1342
|
"mutability": "mutable",
|
1343
1343
|
"name": "name",
|
1344
1344
|
"nameLocation": "1066:4:98",
|
1345
1345
|
"nodeType": "VariableDeclaration",
|
1346
|
-
"scope":
|
1346
|
+
"scope": 39014,
|
1347
1347
|
"src": "1058:12:98",
|
1348
1348
|
"stateVariable": false,
|
1349
1349
|
"storageLocation": "default",
|
@@ -1352,7 +1352,7 @@
|
|
1352
1352
|
"typeString": "bytes16"
|
1353
1353
|
},
|
1354
1354
|
"typeName": {
|
1355
|
-
"id":
|
1355
|
+
"id": 38979,
|
1356
1356
|
"name": "bytes16",
|
1357
1357
|
"nodeType": "ElementaryTypeName",
|
1358
1358
|
"src": "1058:7:98",
|
@@ -1367,41 +1367,41 @@
|
|
1367
1367
|
"src": "1023:48:98"
|
1368
1368
|
},
|
1369
1369
|
"returnParameters": {
|
1370
|
-
"id":
|
1370
|
+
"id": 38985,
|
1371
1371
|
"nodeType": "ParameterList",
|
1372
1372
|
"parameters": [
|
1373
1373
|
{
|
1374
1374
|
"constant": false,
|
1375
|
-
"id":
|
1375
|
+
"id": 38984,
|
1376
1376
|
"mutability": "mutable",
|
1377
1377
|
"name": "",
|
1378
1378
|
"nameLocation": "-1:-1:-1",
|
1379
1379
|
"nodeType": "VariableDeclaration",
|
1380
|
-
"scope":
|
1380
|
+
"scope": 39014,
|
1381
1381
|
"src": "1095:10:98",
|
1382
1382
|
"stateVariable": false,
|
1383
1383
|
"storageLocation": "default",
|
1384
1384
|
"typeDescriptions": {
|
1385
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
1385
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26262",
|
1386
1386
|
"typeString": "ResourceId"
|
1387
1387
|
},
|
1388
1388
|
"typeName": {
|
1389
|
-
"id":
|
1389
|
+
"id": 38983,
|
1390
1390
|
"nodeType": "UserDefinedTypeName",
|
1391
1391
|
"pathNode": {
|
1392
|
-
"id":
|
1392
|
+
"id": 38982,
|
1393
1393
|
"name": "ResourceId",
|
1394
1394
|
"nameLocations": [
|
1395
1395
|
"1095:10:98"
|
1396
1396
|
],
|
1397
1397
|
"nodeType": "IdentifierPath",
|
1398
|
-
"referencedDeclaration":
|
1398
|
+
"referencedDeclaration": 26262,
|
1399
1399
|
"src": "1095:10:98"
|
1400
1400
|
},
|
1401
|
-
"referencedDeclaration":
|
1401
|
+
"referencedDeclaration": 26262,
|
1402
1402
|
"src": "1095:10:98",
|
1403
1403
|
"typeDescriptions": {
|
1404
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
1404
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26262",
|
1405
1405
|
"typeString": "ResourceId"
|
1406
1406
|
}
|
1407
1407
|
},
|
@@ -1410,18 +1410,18 @@
|
|
1410
1410
|
],
|
1411
1411
|
"src": "1094:12:98"
|
1412
1412
|
},
|
1413
|
-
"scope":
|
1413
|
+
"scope": 39086,
|
1414
1414
|
"stateMutability": "pure",
|
1415
1415
|
"virtual": false,
|
1416
1416
|
"visibility": "internal"
|
1417
1417
|
},
|
1418
1418
|
{
|
1419
|
-
"id":
|
1419
|
+
"id": 39041,
|
1420
1420
|
"nodeType": "FunctionDefinition",
|
1421
1421
|
"src": "1443:179:98",
|
1422
1422
|
"nodes": [],
|
1423
1423
|
"body": {
|
1424
|
-
"id":
|
1424
|
+
"id": 39040,
|
1425
1425
|
"nodeType": "Block",
|
1426
1426
|
"src": "1522:100:98",
|
1427
1427
|
"nodes": [],
|
@@ -1434,7 +1434,7 @@
|
|
1434
1434
|
"typeIdentifier": "t_bytes32",
|
1435
1435
|
"typeString": "bytes32"
|
1436
1436
|
},
|
1437
|
-
"id":
|
1437
|
+
"id": 39037,
|
1438
1438
|
"isConstant": false,
|
1439
1439
|
"isLValue": false,
|
1440
1440
|
"isPure": false,
|
@@ -1442,11 +1442,11 @@
|
|
1442
1442
|
"leftExpression": {
|
1443
1443
|
"arguments": [
|
1444
1444
|
{
|
1445
|
-
"id":
|
1445
|
+
"id": 39027,
|
1446
1446
|
"name": "RESOURCE_NAMESPACE",
|
1447
1447
|
"nodeType": "Identifier",
|
1448
1448
|
"overloadedDeclarations": [],
|
1449
|
-
"referencedDeclaration":
|
1449
|
+
"referencedDeclaration": 39326,
|
1450
1450
|
"src": "1559:18:98",
|
1451
1451
|
"typeDescriptions": {
|
1452
1452
|
"typeIdentifier": "t_bytes2",
|
@@ -1461,7 +1461,7 @@
|
|
1461
1461
|
"typeString": "bytes2"
|
1462
1462
|
}
|
1463
1463
|
],
|
1464
|
-
"id":
|
1464
|
+
"id": 39026,
|
1465
1465
|
"isConstant": false,
|
1466
1466
|
"isLValue": false,
|
1467
1467
|
"isPure": true,
|
@@ -1473,14 +1473,14 @@
|
|
1473
1473
|
"typeString": "type(bytes32)"
|
1474
1474
|
},
|
1475
1475
|
"typeName": {
|
1476
|
-
"id":
|
1476
|
+
"id": 39025,
|
1477
1477
|
"name": "bytes32",
|
1478
1478
|
"nodeType": "ElementaryTypeName",
|
1479
1479
|
"src": "1551:7:98",
|
1480
1480
|
"typeDescriptions": {}
|
1481
1481
|
}
|
1482
1482
|
},
|
1483
|
-
"id":
|
1483
|
+
"id": 39028,
|
1484
1484
|
"isConstant": false,
|
1485
1485
|
"isLValue": false,
|
1486
1486
|
"isPure": true,
|
@@ -1505,7 +1505,7 @@
|
|
1505
1505
|
"typeIdentifier": "t_bytes32",
|
1506
1506
|
"typeString": "bytes32"
|
1507
1507
|
},
|
1508
|
-
"id":
|
1508
|
+
"id": 39035,
|
1509
1509
|
"isConstant": false,
|
1510
1510
|
"isLValue": false,
|
1511
1511
|
"isPure": false,
|
@@ -1513,11 +1513,11 @@
|
|
1513
1513
|
"leftExpression": {
|
1514
1514
|
"arguments": [
|
1515
1515
|
{
|
1516
|
-
"id":
|
1516
|
+
"id": 39031,
|
1517
1517
|
"name": "namespace",
|
1518
1518
|
"nodeType": "Identifier",
|
1519
1519
|
"overloadedDeclarations": [],
|
1520
|
-
"referencedDeclaration":
|
1520
|
+
"referencedDeclaration": 39017,
|
1521
1521
|
"src": "1590:9:98",
|
1522
1522
|
"typeDescriptions": {
|
1523
1523
|
"typeIdentifier": "t_bytes14",
|
@@ -1532,7 +1532,7 @@
|
|
1532
1532
|
"typeString": "bytes14"
|
1533
1533
|
}
|
1534
1534
|
],
|
1535
|
-
"id":
|
1535
|
+
"id": 39030,
|
1536
1536
|
"isConstant": false,
|
1537
1537
|
"isLValue": false,
|
1538
1538
|
"isPure": true,
|
@@ -1544,14 +1544,14 @@
|
|
1544
1544
|
"typeString": "type(bytes32)"
|
1545
1545
|
},
|
1546
1546
|
"typeName": {
|
1547
|
-
"id":
|
1547
|
+
"id": 39029,
|
1548
1548
|
"name": "bytes32",
|
1549
1549
|
"nodeType": "ElementaryTypeName",
|
1550
1550
|
"src": "1582:7:98",
|
1551
1551
|
"typeDescriptions": {}
|
1552
1552
|
}
|
1553
1553
|
},
|
1554
|
-
"id":
|
1554
|
+
"id": 39032,
|
1555
1555
|
"isConstant": false,
|
1556
1556
|
"isLValue": false,
|
1557
1557
|
"isPure": false,
|
@@ -1572,11 +1572,11 @@
|
|
1572
1572
|
"rightExpression": {
|
1573
1573
|
"components": [
|
1574
1574
|
{
|
1575
|
-
"id":
|
1575
|
+
"id": 39033,
|
1576
1576
|
"name": "TYPE_BITS",
|
1577
1577
|
"nodeType": "Identifier",
|
1578
1578
|
"overloadedDeclarations": [],
|
1579
|
-
"referencedDeclaration":
|
1579
|
+
"referencedDeclaration": 26267,
|
1580
1580
|
"src": "1605:9:98",
|
1581
1581
|
"typeDescriptions": {
|
1582
1582
|
"typeIdentifier": "t_uint256",
|
@@ -1584,7 +1584,7 @@
|
|
1584
1584
|
}
|
1585
1585
|
}
|
1586
1586
|
],
|
1587
|
-
"id":
|
1587
|
+
"id": 39034,
|
1588
1588
|
"isConstant": false,
|
1589
1589
|
"isInlineArray": false,
|
1590
1590
|
"isLValue": false,
|
@@ -1604,7 +1604,7 @@
|
|
1604
1604
|
}
|
1605
1605
|
}
|
1606
1606
|
],
|
1607
|
-
"id":
|
1607
|
+
"id": 39036,
|
1608
1608
|
"isConstant": false,
|
1609
1609
|
"isInlineArray": false,
|
1610
1610
|
"isLValue": false,
|
@@ -1632,18 +1632,18 @@
|
|
1632
1632
|
}
|
1633
1633
|
],
|
1634
1634
|
"expression": {
|
1635
|
-
"id":
|
1635
|
+
"id": 39023,
|
1636
1636
|
"name": "ResourceId",
|
1637
1637
|
"nodeType": "Identifier",
|
1638
1638
|
"overloadedDeclarations": [],
|
1639
|
-
"referencedDeclaration":
|
1639
|
+
"referencedDeclaration": 26262,
|
1640
1640
|
"src": "1535:10:98",
|
1641
1641
|
"typeDescriptions": {
|
1642
|
-
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$
|
1642
|
+
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$26262_$",
|
1643
1643
|
"typeString": "type(ResourceId)"
|
1644
1644
|
}
|
1645
1645
|
},
|
1646
|
-
"id":
|
1646
|
+
"id": 39024,
|
1647
1647
|
"isConstant": false,
|
1648
1648
|
"isLValue": false,
|
1649
1649
|
"isPure": true,
|
@@ -1653,11 +1653,11 @@
|
|
1653
1653
|
"nodeType": "MemberAccess",
|
1654
1654
|
"src": "1535:15:98",
|
1655
1655
|
"typeDescriptions": {
|
1656
|
-
"typeIdentifier": "t_function_wrap_pure$_t_bytes32_$returns$_t_userDefinedValueType$_ResourceId_$
|
1656
|
+
"typeIdentifier": "t_function_wrap_pure$_t_bytes32_$returns$_t_userDefinedValueType$_ResourceId_$26262_$",
|
1657
1657
|
"typeString": "function (bytes32) pure returns (ResourceId)"
|
1658
1658
|
}
|
1659
1659
|
},
|
1660
|
-
"id":
|
1660
|
+
"id": 39038,
|
1661
1661
|
"isConstant": false,
|
1662
1662
|
"isLValue": false,
|
1663
1663
|
"isPure": false,
|
@@ -1669,19 +1669,19 @@
|
|
1669
1669
|
"src": "1535:82:98",
|
1670
1670
|
"tryCall": false,
|
1671
1671
|
"typeDescriptions": {
|
1672
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
1672
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26262",
|
1673
1673
|
"typeString": "ResourceId"
|
1674
1674
|
}
|
1675
1675
|
},
|
1676
|
-
"functionReturnParameters":
|
1677
|
-
"id":
|
1676
|
+
"functionReturnParameters": 39022,
|
1677
|
+
"id": 39039,
|
1678
1678
|
"nodeType": "Return",
|
1679
1679
|
"src": "1528:89:98"
|
1680
1680
|
}
|
1681
1681
|
]
|
1682
1682
|
},
|
1683
1683
|
"documentation": {
|
1684
|
-
"id":
|
1684
|
+
"id": 39015,
|
1685
1685
|
"nodeType": "StructuredDocumentation",
|
1686
1686
|
"src": "1269:171:98",
|
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."
|
@@ -1692,17 +1692,17 @@
|
|
1692
1692
|
"name": "encodeNamespace",
|
1693
1693
|
"nameLocation": "1452:15:98",
|
1694
1694
|
"parameters": {
|
1695
|
-
"id":
|
1695
|
+
"id": 39018,
|
1696
1696
|
"nodeType": "ParameterList",
|
1697
1697
|
"parameters": [
|
1698
1698
|
{
|
1699
1699
|
"constant": false,
|
1700
|
-
"id":
|
1700
|
+
"id": 39017,
|
1701
1701
|
"mutability": "mutable",
|
1702
1702
|
"name": "namespace",
|
1703
1703
|
"nameLocation": "1476:9:98",
|
1704
1704
|
"nodeType": "VariableDeclaration",
|
1705
|
-
"scope":
|
1705
|
+
"scope": 39041,
|
1706
1706
|
"src": "1468:17:98",
|
1707
1707
|
"stateVariable": false,
|
1708
1708
|
"storageLocation": "default",
|
@@ -1711,7 +1711,7 @@
|
|
1711
1711
|
"typeString": "bytes14"
|
1712
1712
|
},
|
1713
1713
|
"typeName": {
|
1714
|
-
"id":
|
1714
|
+
"id": 39016,
|
1715
1715
|
"name": "bytes14",
|
1716
1716
|
"nodeType": "ElementaryTypeName",
|
1717
1717
|
"src": "1468:7:98",
|
@@ -1726,41 +1726,41 @@
|
|
1726
1726
|
"src": "1467:19:98"
|
1727
1727
|
},
|
1728
1728
|
"returnParameters": {
|
1729
|
-
"id":
|
1729
|
+
"id": 39022,
|
1730
1730
|
"nodeType": "ParameterList",
|
1731
1731
|
"parameters": [
|
1732
1732
|
{
|
1733
1733
|
"constant": false,
|
1734
|
-
"id":
|
1734
|
+
"id": 39021,
|
1735
1735
|
"mutability": "mutable",
|
1736
1736
|
"name": "",
|
1737
1737
|
"nameLocation": "-1:-1:-1",
|
1738
1738
|
"nodeType": "VariableDeclaration",
|
1739
|
-
"scope":
|
1739
|
+
"scope": 39041,
|
1740
1740
|
"src": "1510:10:98",
|
1741
1741
|
"stateVariable": false,
|
1742
1742
|
"storageLocation": "default",
|
1743
1743
|
"typeDescriptions": {
|
1744
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
1744
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26262",
|
1745
1745
|
"typeString": "ResourceId"
|
1746
1746
|
},
|
1747
1747
|
"typeName": {
|
1748
|
-
"id":
|
1748
|
+
"id": 39020,
|
1749
1749
|
"nodeType": "UserDefinedTypeName",
|
1750
1750
|
"pathNode": {
|
1751
|
-
"id":
|
1751
|
+
"id": 39019,
|
1752
1752
|
"name": "ResourceId",
|
1753
1753
|
"nameLocations": [
|
1754
1754
|
"1510:10:98"
|
1755
1755
|
],
|
1756
1756
|
"nodeType": "IdentifierPath",
|
1757
|
-
"referencedDeclaration":
|
1757
|
+
"referencedDeclaration": 26262,
|
1758
1758
|
"src": "1510:10:98"
|
1759
1759
|
},
|
1760
|
-
"referencedDeclaration":
|
1760
|
+
"referencedDeclaration": 26262,
|
1761
1761
|
"src": "1510:10:98",
|
1762
1762
|
"typeDescriptions": {
|
1763
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
1763
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26262",
|
1764
1764
|
"typeString": "ResourceId"
|
1765
1765
|
}
|
1766
1766
|
},
|
@@ -1769,35 +1769,35 @@
|
|
1769
1769
|
],
|
1770
1770
|
"src": "1509:12:98"
|
1771
1771
|
},
|
1772
|
-
"scope":
|
1772
|
+
"scope": 39086,
|
1773
1773
|
"stateMutability": "pure",
|
1774
1774
|
"virtual": false,
|
1775
1775
|
"visibility": "internal"
|
1776
1776
|
},
|
1777
1777
|
{
|
1778
|
-
"id":
|
1778
|
+
"id": 39085,
|
1779
1779
|
"nodeType": "FunctionDefinition",
|
1780
1780
|
"src": "1824:322:98",
|
1781
1781
|
"nodes": [],
|
1782
1782
|
"body": {
|
1783
|
-
"id":
|
1783
|
+
"id": 39084,
|
1784
1784
|
"nodeType": "Block",
|
1785
1785
|
"src": "1909:237:98",
|
1786
1786
|
"nodes": [],
|
1787
1787
|
"statements": [
|
1788
1788
|
{
|
1789
1789
|
"assignments": [
|
1790
|
-
|
1790
|
+
39050
|
1791
1791
|
],
|
1792
1792
|
"declarations": [
|
1793
1793
|
{
|
1794
1794
|
"constant": false,
|
1795
|
-
"id":
|
1795
|
+
"id": 39050,
|
1796
1796
|
"mutability": "mutable",
|
1797
1797
|
"name": "length",
|
1798
1798
|
"nameLocation": "1923:6:98",
|
1799
1799
|
"nodeType": "VariableDeclaration",
|
1800
|
-
"scope":
|
1800
|
+
"scope": 39084,
|
1801
1801
|
"src": "1915:14:98",
|
1802
1802
|
"stateVariable": false,
|
1803
1803
|
"storageLocation": "default",
|
@@ -1806,7 +1806,7 @@
|
|
1806
1806
|
"typeString": "uint256"
|
1807
1807
|
},
|
1808
1808
|
"typeName": {
|
1809
|
-
"id":
|
1809
|
+
"id": 39049,
|
1810
1810
|
"name": "uint256",
|
1811
1811
|
"nodeType": "ElementaryTypeName",
|
1812
1812
|
"src": "1915:7:98",
|
@@ -1818,7 +1818,7 @@
|
|
1818
1818
|
"visibility": "internal"
|
1819
1819
|
}
|
1820
1820
|
],
|
1821
|
-
"id":
|
1821
|
+
"id": 39051,
|
1822
1822
|
"nodeType": "VariableDeclarationStatement",
|
1823
1823
|
"src": "1915:14:98"
|
1824
1824
|
},
|
@@ -1829,7 +1829,7 @@
|
|
1829
1829
|
"typeIdentifier": "t_bytes1",
|
1830
1830
|
"typeString": "bytes1"
|
1831
1831
|
},
|
1832
|
-
"id":
|
1832
|
+
"id": 39064,
|
1833
1833
|
"isConstant": false,
|
1834
1834
|
"isLValue": false,
|
1835
1835
|
"isPure": false,
|
@@ -1837,11 +1837,11 @@
|
|
1837
1837
|
"leftExpression": {
|
1838
1838
|
"arguments": [
|
1839
1839
|
{
|
1840
|
-
"id":
|
1840
|
+
"id": 39060,
|
1841
1841
|
"name": "paddedString",
|
1842
1842
|
"nodeType": "Identifier",
|
1843
1843
|
"overloadedDeclarations": [],
|
1844
|
-
"referencedDeclaration":
|
1844
|
+
"referencedDeclaration": 39044,
|
1845
1845
|
"src": "1982:12:98",
|
1846
1846
|
"typeDescriptions": {
|
1847
1847
|
"typeIdentifier": "t_bytes16",
|
@@ -1849,11 +1849,11 @@
|
|
1849
1849
|
}
|
1850
1850
|
},
|
1851
1851
|
{
|
1852
|
-
"id":
|
1852
|
+
"id": 39061,
|
1853
1853
|
"name": "length",
|
1854
1854
|
"nodeType": "Identifier",
|
1855
1855
|
"overloadedDeclarations": [],
|
1856
|
-
"referencedDeclaration":
|
1856
|
+
"referencedDeclaration": 39050,
|
1857
1857
|
"src": "1996:6:98",
|
1858
1858
|
"typeDescriptions": {
|
1859
1859
|
"typeIdentifier": "t_uint256",
|
@@ -1873,18 +1873,18 @@
|
|
1873
1873
|
}
|
1874
1874
|
],
|
1875
1875
|
"expression": {
|
1876
|
-
"id":
|
1876
|
+
"id": 39058,
|
1877
1877
|
"name": "Bytes",
|
1878
1878
|
"nodeType": "Identifier",
|
1879
1879
|
"overloadedDeclarations": [],
|
1880
|
-
"referencedDeclaration":
|
1880
|
+
"referencedDeclaration": 25137,
|
1881
1881
|
"src": "1969:5:98",
|
1882
1882
|
"typeDescriptions": {
|
1883
|
-
"typeIdentifier": "t_type$_t_contract$_Bytes_$
|
1883
|
+
"typeIdentifier": "t_type$_t_contract$_Bytes_$25137_$",
|
1884
1884
|
"typeString": "type(library Bytes)"
|
1885
1885
|
}
|
1886
1886
|
},
|
1887
|
-
"id":
|
1887
|
+
"id": 39059,
|
1888
1888
|
"isConstant": false,
|
1889
1889
|
"isLValue": false,
|
1890
1890
|
"isPure": false,
|
@@ -1892,14 +1892,14 @@
|
|
1892
1892
|
"memberLocation": "1975:6:98",
|
1893
1893
|
"memberName": "slice1",
|
1894
1894
|
"nodeType": "MemberAccess",
|
1895
|
-
"referencedDeclaration":
|
1895
|
+
"referencedDeclaration": 24561,
|
1896
1896
|
"src": "1969:12:98",
|
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":
|
1902
|
+
"id": 39062,
|
1903
1903
|
"isConstant": false,
|
1904
1904
|
"isLValue": false,
|
1905
1905
|
"isPure": false,
|
@@ -1919,7 +1919,7 @@
|
|
1919
1919
|
"operator": "==",
|
1920
1920
|
"rightExpression": {
|
1921
1921
|
"hexValue": "30",
|
1922
|
-
"id":
|
1922
|
+
"id": 39063,
|
1923
1923
|
"isConstant": false,
|
1924
1924
|
"isLValue": false,
|
1925
1925
|
"isPure": true,
|
@@ -1939,11 +1939,11 @@
|
|
1939
1939
|
"typeString": "bool"
|
1940
1940
|
}
|
1941
1941
|
},
|
1942
|
-
"id":
|
1942
|
+
"id": 39066,
|
1943
1943
|
"nodeType": "IfStatement",
|
1944
1944
|
"src": "1965:50:98",
|
1945
1945
|
"trueBody": {
|
1946
|
-
"id":
|
1946
|
+
"id": 39065,
|
1947
1947
|
"nodeType": "Break",
|
1948
1948
|
"src": "2010:5:98"
|
1949
1949
|
}
|
@@ -1953,17 +1953,17 @@
|
|
1953
1953
|
"typeIdentifier": "t_uint256",
|
1954
1954
|
"typeString": "uint256"
|
1955
1955
|
},
|
1956
|
-
"id":
|
1956
|
+
"id": 39054,
|
1957
1957
|
"isConstant": false,
|
1958
1958
|
"isLValue": false,
|
1959
1959
|
"isPure": false,
|
1960
1960
|
"lValueRequested": false,
|
1961
1961
|
"leftExpression": {
|
1962
|
-
"id":
|
1962
|
+
"id": 39052,
|
1963
1963
|
"name": "length",
|
1964
1964
|
"nodeType": "Identifier",
|
1965
1965
|
"overloadedDeclarations": [],
|
1966
|
-
"referencedDeclaration":
|
1966
|
+
"referencedDeclaration": 39050,
|
1967
1967
|
"src": "1942:6:98",
|
1968
1968
|
"typeDescriptions": {
|
1969
1969
|
"typeIdentifier": "t_uint256",
|
@@ -1974,7 +1974,7 @@
|
|
1974
1974
|
"operator": "<",
|
1975
1975
|
"rightExpression": {
|
1976
1976
|
"hexValue": "3136",
|
1977
|
-
"id":
|
1977
|
+
"id": 39053,
|
1978
1978
|
"isConstant": false,
|
1979
1979
|
"isLValue": false,
|
1980
1980
|
"isPure": true,
|
@@ -1994,10 +1994,10 @@
|
|
1994
1994
|
"typeString": "bool"
|
1995
1995
|
}
|
1996
1996
|
},
|
1997
|
-
"id":
|
1997
|
+
"id": 39067,
|
1998
1998
|
"loopExpression": {
|
1999
1999
|
"expression": {
|
2000
|
-
"id":
|
2000
|
+
"id": 39056,
|
2001
2001
|
"isConstant": false,
|
2002
2002
|
"isLValue": false,
|
2003
2003
|
"isPure": false,
|
@@ -2007,11 +2007,11 @@
|
|
2007
2007
|
"prefix": false,
|
2008
2008
|
"src": "1955:8:98",
|
2009
2009
|
"subExpression": {
|
2010
|
-
"id":
|
2010
|
+
"id": 39055,
|
2011
2011
|
"name": "length",
|
2012
2012
|
"nodeType": "Identifier",
|
2013
2013
|
"overloadedDeclarations": [],
|
2014
|
-
"referencedDeclaration":
|
2014
|
+
"referencedDeclaration": 39050,
|
2015
2015
|
"src": "1955:6:98",
|
2016
2016
|
"typeDescriptions": {
|
2017
2017
|
"typeIdentifier": "t_uint256",
|
@@ -2023,7 +2023,7 @@
|
|
2023
2023
|
"typeString": "uint256"
|
2024
2024
|
}
|
2025
2025
|
},
|
2026
|
-
"id":
|
2026
|
+
"id": 39057,
|
2027
2027
|
"nodeType": "ExpressionStatement",
|
2028
2028
|
"src": "1955:8:98"
|
2029
2029
|
},
|
@@ -2032,17 +2032,17 @@
|
|
2032
2032
|
},
|
2033
2033
|
{
|
2034
2034
|
"assignments": [
|
2035
|
-
|
2035
|
+
39069
|
2036
2036
|
],
|
2037
2037
|
"declarations": [
|
2038
2038
|
{
|
2039
2039
|
"constant": false,
|
2040
|
-
"id":
|
2040
|
+
"id": 39069,
|
2041
2041
|
"mutability": "mutable",
|
2042
2042
|
"name": "packedSelector",
|
2043
2043
|
"nameLocation": "2034:14:98",
|
2044
2044
|
"nodeType": "VariableDeclaration",
|
2045
|
-
"scope":
|
2045
|
+
"scope": 39084,
|
2046
2046
|
"src": "2021:27:98",
|
2047
2047
|
"stateVariable": false,
|
2048
2048
|
"storageLocation": "memory",
|
@@ -2051,7 +2051,7 @@
|
|
2051
2051
|
"typeString": "bytes"
|
2052
2052
|
},
|
2053
2053
|
"typeName": {
|
2054
|
-
"id":
|
2054
|
+
"id": 39068,
|
2055
2055
|
"name": "bytes",
|
2056
2056
|
"nodeType": "ElementaryTypeName",
|
2057
2057
|
"src": "2021:5:98",
|
@@ -2063,15 +2063,15 @@
|
|
2063
2063
|
"visibility": "internal"
|
2064
2064
|
}
|
2065
2065
|
],
|
2066
|
-
"id":
|
2066
|
+
"id": 39074,
|
2067
2067
|
"initialValue": {
|
2068
2068
|
"arguments": [
|
2069
2069
|
{
|
2070
|
-
"id":
|
2070
|
+
"id": 39072,
|
2071
2071
|
"name": "paddedString",
|
2072
2072
|
"nodeType": "Identifier",
|
2073
2073
|
"overloadedDeclarations": [],
|
2074
|
-
"referencedDeclaration":
|
2074
|
+
"referencedDeclaration": 39044,
|
2075
2075
|
"src": "2068:12:98",
|
2076
2076
|
"typeDescriptions": {
|
2077
2077
|
"typeIdentifier": "t_bytes16",
|
@@ -2087,7 +2087,7 @@
|
|
2087
2087
|
}
|
2088
2088
|
],
|
2089
2089
|
"expression": {
|
2090
|
-
"id":
|
2090
|
+
"id": 39070,
|
2091
2091
|
"name": "abi",
|
2092
2092
|
"nodeType": "Identifier",
|
2093
2093
|
"overloadedDeclarations": [],
|
@@ -2098,7 +2098,7 @@
|
|
2098
2098
|
"typeString": "abi"
|
2099
2099
|
}
|
2100
2100
|
},
|
2101
|
-
"id":
|
2101
|
+
"id": 39071,
|
2102
2102
|
"isConstant": false,
|
2103
2103
|
"isLValue": false,
|
2104
2104
|
"isPure": true,
|
@@ -2112,7 +2112,7 @@
|
|
2112
2112
|
"typeString": "function () pure returns (bytes memory)"
|
2113
2113
|
}
|
2114
2114
|
},
|
2115
|
-
"id":
|
2115
|
+
"id": 39073,
|
2116
2116
|
"isConstant": false,
|
2117
2117
|
"isLValue": false,
|
2118
2118
|
"isPure": false,
|
@@ -2137,11 +2137,11 @@
|
|
2137
2137
|
{
|
2138
2138
|
"arguments": [
|
2139
2139
|
{
|
2140
|
-
"id":
|
2140
|
+
"id": 39079,
|
2141
2141
|
"name": "packedSelector",
|
2142
2142
|
"nodeType": "Identifier",
|
2143
2143
|
"overloadedDeclarations": [],
|
2144
|
-
"referencedDeclaration":
|
2144
|
+
"referencedDeclaration": 39069,
|
2145
2145
|
"src": "2117:14:98",
|
2146
2146
|
"typeDescriptions": {
|
2147
2147
|
"typeIdentifier": "t_bytes_memory_ptr",
|
@@ -2149,11 +2149,11 @@
|
|
2149
2149
|
}
|
2150
2150
|
},
|
2151
2151
|
{
|
2152
|
-
"id":
|
2152
|
+
"id": 39080,
|
2153
2153
|
"name": "length",
|
2154
2154
|
"nodeType": "Identifier",
|
2155
2155
|
"overloadedDeclarations": [],
|
2156
|
-
"referencedDeclaration":
|
2156
|
+
"referencedDeclaration": 39050,
|
2157
2157
|
"src": "2133:6:98",
|
2158
2158
|
"typeDescriptions": {
|
2159
2159
|
"typeIdentifier": "t_uint256",
|
@@ -2173,18 +2173,18 @@
|
|
2173
2173
|
}
|
2174
2174
|
],
|
2175
2175
|
"expression": {
|
2176
|
-
"id":
|
2176
|
+
"id": 39077,
|
2177
2177
|
"name": "Bytes",
|
2178
2178
|
"nodeType": "Identifier",
|
2179
2179
|
"overloadedDeclarations": [],
|
2180
|
-
"referencedDeclaration":
|
2180
|
+
"referencedDeclaration": 25137,
|
2181
2181
|
"src": "2101:5:98",
|
2182
2182
|
"typeDescriptions": {
|
2183
|
-
"typeIdentifier": "t_type$_t_contract$_Bytes_$
|
2183
|
+
"typeIdentifier": "t_type$_t_contract$_Bytes_$25137_$",
|
2184
2184
|
"typeString": "type(library Bytes)"
|
2185
2185
|
}
|
2186
2186
|
},
|
2187
|
-
"id":
|
2187
|
+
"id": 39078,
|
2188
2188
|
"isConstant": false,
|
2189
2189
|
"isLValue": false,
|
2190
2190
|
"isPure": false,
|
@@ -2192,14 +2192,14 @@
|
|
2192
2192
|
"memberLocation": "2107:9:98",
|
2193
2193
|
"memberName": "setLength",
|
2194
2194
|
"nodeType": "MemberAccess",
|
2195
|
-
"referencedDeclaration":
|
2195
|
+
"referencedDeclaration": 24394,
|
2196
2196
|
"src": "2101:15:98",
|
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":
|
2202
|
+
"id": 39081,
|
2203
2203
|
"isConstant": false,
|
2204
2204
|
"isLValue": false,
|
2205
2205
|
"isPure": false,
|
@@ -2223,7 +2223,7 @@
|
|
2223
2223
|
"typeString": "bytes memory"
|
2224
2224
|
}
|
2225
2225
|
],
|
2226
|
-
"id":
|
2226
|
+
"id": 39076,
|
2227
2227
|
"isConstant": false,
|
2228
2228
|
"isLValue": false,
|
2229
2229
|
"isPure": true,
|
@@ -2235,14 +2235,14 @@
|
|
2235
2235
|
"typeString": "type(string storage pointer)"
|
2236
2236
|
},
|
2237
2237
|
"typeName": {
|
2238
|
-
"id":
|
2238
|
+
"id": 39075,
|
2239
2239
|
"name": "string",
|
2240
2240
|
"nodeType": "ElementaryTypeName",
|
2241
2241
|
"src": "2094:6:98",
|
2242
2242
|
"typeDescriptions": {}
|
2243
2243
|
}
|
2244
2244
|
},
|
2245
|
-
"id":
|
2245
|
+
"id": 39082,
|
2246
2246
|
"isConstant": false,
|
2247
2247
|
"isLValue": false,
|
2248
2248
|
"isPure": false,
|
@@ -2258,15 +2258,15 @@
|
|
2258
2258
|
"typeString": "string memory"
|
2259
2259
|
}
|
2260
2260
|
},
|
2261
|
-
"functionReturnParameters":
|
2262
|
-
"id":
|
2261
|
+
"functionReturnParameters": 39048,
|
2262
|
+
"id": 39083,
|
2263
2263
|
"nodeType": "Return",
|
2264
2264
|
"src": "2087:54:98"
|
2265
2265
|
}
|
2266
2266
|
]
|
2267
2267
|
},
|
2268
2268
|
"documentation": {
|
2269
|
-
"id":
|
2269
|
+
"id": 39042,
|
2270
2270
|
"nodeType": "StructuredDocumentation",
|
2271
2271
|
"src": "1626:195:98",
|
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."
|
@@ -2277,17 +2277,17 @@
|
|
2277
2277
|
"name": "toTrimmedString",
|
2278
2278
|
"nameLocation": "1833:15:98",
|
2279
2279
|
"parameters": {
|
2280
|
-
"id":
|
2280
|
+
"id": 39045,
|
2281
2281
|
"nodeType": "ParameterList",
|
2282
2282
|
"parameters": [
|
2283
2283
|
{
|
2284
2284
|
"constant": false,
|
2285
|
-
"id":
|
2285
|
+
"id": 39044,
|
2286
2286
|
"mutability": "mutable",
|
2287
2287
|
"name": "paddedString",
|
2288
2288
|
"nameLocation": "1857:12:98",
|
2289
2289
|
"nodeType": "VariableDeclaration",
|
2290
|
-
"scope":
|
2290
|
+
"scope": 39085,
|
2291
2291
|
"src": "1849:20:98",
|
2292
2292
|
"stateVariable": false,
|
2293
2293
|
"storageLocation": "default",
|
@@ -2296,7 +2296,7 @@
|
|
2296
2296
|
"typeString": "bytes16"
|
2297
2297
|
},
|
2298
2298
|
"typeName": {
|
2299
|
-
"id":
|
2299
|
+
"id": 39043,
|
2300
2300
|
"name": "bytes16",
|
2301
2301
|
"nodeType": "ElementaryTypeName",
|
2302
2302
|
"src": "1849:7:98",
|
@@ -2311,17 +2311,17 @@
|
|
2311
2311
|
"src": "1848:22:98"
|
2312
2312
|
},
|
2313
2313
|
"returnParameters": {
|
2314
|
-
"id":
|
2314
|
+
"id": 39048,
|
2315
2315
|
"nodeType": "ParameterList",
|
2316
2316
|
"parameters": [
|
2317
2317
|
{
|
2318
2318
|
"constant": false,
|
2319
|
-
"id":
|
2319
|
+
"id": 39047,
|
2320
2320
|
"mutability": "mutable",
|
2321
2321
|
"name": "",
|
2322
2322
|
"nameLocation": "-1:-1:-1",
|
2323
2323
|
"nodeType": "VariableDeclaration",
|
2324
|
-
"scope":
|
2324
|
+
"scope": 39085,
|
2325
2325
|
"src": "1894:13:98",
|
2326
2326
|
"stateVariable": false,
|
2327
2327
|
"storageLocation": "memory",
|
@@ -2330,7 +2330,7 @@
|
|
2330
2330
|
"typeString": "string"
|
2331
2331
|
},
|
2332
2332
|
"typeName": {
|
2333
|
-
"id":
|
2333
|
+
"id": 39046,
|
2334
2334
|
"name": "string",
|
2335
2335
|
"nodeType": "ElementaryTypeName",
|
2336
2336
|
"src": "1894:6:98",
|
@@ -2344,7 +2344,7 @@
|
|
2344
2344
|
],
|
2345
2345
|
"src": "1893:15:98"
|
2346
2346
|
},
|
2347
|
-
"scope":
|
2347
|
+
"scope": 39086,
|
2348
2348
|
"stateMutability": "pure",
|
2349
2349
|
"virtual": false,
|
2350
2350
|
"visibility": "internal"
|
@@ -2356,33 +2356,33 @@
|
|
2356
2356
|
"contractDependencies": [],
|
2357
2357
|
"contractKind": "library",
|
2358
2358
|
"documentation": {
|
2359
|
-
"id":
|
2359
|
+
"id": 38973,
|
2360
2360
|
"nodeType": "StructuredDocumentation",
|
2361
2361
|
"src": "645:111:98",
|
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
|
-
|
2366
|
+
39086
|
2367
2367
|
],
|
2368
2368
|
"name": "WorldResourceIdLib",
|
2369
2369
|
"nameLocation": "765:18:98",
|
2370
|
-
"scope":
|
2370
|
+
"scope": 39208,
|
2371
2371
|
"usedErrors": [],
|
2372
2372
|
"usedEvents": []
|
2373
2373
|
},
|
2374
2374
|
{
|
2375
|
-
"id":
|
2375
|
+
"id": 39207,
|
2376
2376
|
"nodeType": "ContractDefinition",
|
2377
2377
|
"src": "2259:1663:98",
|
2378
2378
|
"nodes": [
|
2379
2379
|
{
|
2380
|
-
"id":
|
2380
|
+
"id": 39108,
|
2381
2381
|
"nodeType": "FunctionDefinition",
|
2382
2382
|
"src": "2432:148:98",
|
2383
2383
|
"nodes": [],
|
2384
2384
|
"body": {
|
2385
|
-
"id":
|
2385
|
+
"id": 39107,
|
2386
2386
|
"nodeType": "Block",
|
2387
2387
|
"src": "2509:71:98",
|
2388
2388
|
"nodes": [],
|
@@ -2395,7 +2395,7 @@
|
|
2395
2395
|
"typeIdentifier": "t_bytes32",
|
2396
2396
|
"typeString": "bytes32"
|
2397
2397
|
},
|
2398
|
-
"id":
|
2398
|
+
"id": 39104,
|
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":
|
2406
|
+
"id": 39100,
|
2407
2407
|
"name": "resourceId",
|
2408
2408
|
"nodeType": "Identifier",
|
2409
2409
|
"overloadedDeclarations": [],
|
2410
|
-
"referencedDeclaration":
|
2410
|
+
"referencedDeclaration": 39091,
|
2411
2411
|
"src": "2548:10:98",
|
2412
2412
|
"typeDescriptions": {
|
2413
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
2413
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26262",
|
2414
2414
|
"typeString": "ResourceId"
|
2415
2415
|
}
|
2416
2416
|
}
|
@@ -2418,23 +2418,23 @@
|
|
2418
2418
|
"expression": {
|
2419
2419
|
"argumentTypes": [
|
2420
2420
|
{
|
2421
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
2421
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26262",
|
2422
2422
|
"typeString": "ResourceId"
|
2423
2423
|
}
|
2424
2424
|
],
|
2425
2425
|
"expression": {
|
2426
|
-
"id":
|
2426
|
+
"id": 39098,
|
2427
2427
|
"name": "ResourceId",
|
2428
2428
|
"nodeType": "Identifier",
|
2429
2429
|
"overloadedDeclarations": [],
|
2430
|
-
"referencedDeclaration":
|
2430
|
+
"referencedDeclaration": 26262,
|
2431
2431
|
"src": "2530:10:98",
|
2432
2432
|
"typeDescriptions": {
|
2433
|
-
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$
|
2433
|
+
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$26262_$",
|
2434
2434
|
"typeString": "type(ResourceId)"
|
2435
2435
|
}
|
2436
2436
|
},
|
2437
|
-
"id":
|
2437
|
+
"id": 39099,
|
2438
2438
|
"isConstant": false,
|
2439
2439
|
"isLValue": false,
|
2440
2440
|
"isPure": true,
|
@@ -2444,11 +2444,11 @@
|
|
2444
2444
|
"nodeType": "MemberAccess",
|
2445
2445
|
"src": "2530:17:98",
|
2446
2446
|
"typeDescriptions": {
|
2447
|
-
"typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_ResourceId_$
|
2447
|
+
"typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_ResourceId_$26262_$returns$_t_bytes32_$",
|
2448
2448
|
"typeString": "function (ResourceId) pure returns (bytes32)"
|
2449
2449
|
}
|
2450
2450
|
},
|
2451
|
-
"id":
|
2451
|
+
"id": 39101,
|
2452
2452
|
"isConstant": false,
|
2453
2453
|
"isLValue": false,
|
2454
2454
|
"isPure": false,
|
@@ -2469,11 +2469,11 @@
|
|
2469
2469
|
"rightExpression": {
|
2470
2470
|
"components": [
|
2471
2471
|
{
|
2472
|
-
"id":
|
2472
|
+
"id": 39102,
|
2473
2473
|
"name": "TYPE_BITS",
|
2474
2474
|
"nodeType": "Identifier",
|
2475
2475
|
"overloadedDeclarations": [],
|
2476
|
-
"referencedDeclaration":
|
2476
|
+
"referencedDeclaration": 26267,
|
2477
2477
|
"src": "2564:9:98",
|
2478
2478
|
"typeDescriptions": {
|
2479
2479
|
"typeIdentifier": "t_uint256",
|
@@ -2481,7 +2481,7 @@
|
|
2481
2481
|
}
|
2482
2482
|
}
|
2483
2483
|
],
|
2484
|
-
"id":
|
2484
|
+
"id": 39103,
|
2485
2485
|
"isConstant": false,
|
2486
2486
|
"isInlineArray": false,
|
2487
2487
|
"isLValue": false,
|
@@ -2508,7 +2508,7 @@
|
|
2508
2508
|
"typeString": "bytes32"
|
2509
2509
|
}
|
2510
2510
|
],
|
2511
|
-
"id":
|
2511
|
+
"id": 39097,
|
2512
2512
|
"isConstant": false,
|
2513
2513
|
"isLValue": false,
|
2514
2514
|
"isPure": true,
|
@@ -2520,14 +2520,14 @@
|
|
2520
2520
|
"typeString": "type(bytes14)"
|
2521
2521
|
},
|
2522
2522
|
"typeName": {
|
2523
|
-
"id":
|
2523
|
+
"id": 39096,
|
2524
2524
|
"name": "bytes14",
|
2525
2525
|
"nodeType": "ElementaryTypeName",
|
2526
2526
|
"src": "2522:7:98",
|
2527
2527
|
"typeDescriptions": {}
|
2528
2528
|
}
|
2529
2529
|
},
|
2530
|
-
"id":
|
2530
|
+
"id": 39105,
|
2531
2531
|
"isConstant": false,
|
2532
2532
|
"isLValue": false,
|
2533
2533
|
"isPure": false,
|
@@ -2543,15 +2543,15 @@
|
|
2543
2543
|
"typeString": "bytes14"
|
2544
2544
|
}
|
2545
2545
|
},
|
2546
|
-
"functionReturnParameters":
|
2547
|
-
"id":
|
2546
|
+
"functionReturnParameters": 39095,
|
2547
|
+
"id": 39106,
|
2548
2548
|
"nodeType": "Return",
|
2549
2549
|
"src": "2515:60:98"
|
2550
2550
|
}
|
2551
2551
|
]
|
2552
2552
|
},
|
2553
2553
|
"documentation": {
|
2554
|
-
"id":
|
2554
|
+
"id": 39088,
|
2555
2555
|
"nodeType": "StructuredDocumentation",
|
2556
2556
|
"src": "2295:134:98",
|
2557
2557
|
"text": " @notice Get the namespace from a resource ID.\n @param resourceId The resource ID.\n @return A 14-byte namespace."
|
@@ -2562,41 +2562,41 @@
|
|
2562
2562
|
"name": "getNamespace",
|
2563
2563
|
"nameLocation": "2441:12:98",
|
2564
2564
|
"parameters": {
|
2565
|
-
"id":
|
2565
|
+
"id": 39092,
|
2566
2566
|
"nodeType": "ParameterList",
|
2567
2567
|
"parameters": [
|
2568
2568
|
{
|
2569
2569
|
"constant": false,
|
2570
|
-
"id":
|
2570
|
+
"id": 39091,
|
2571
2571
|
"mutability": "mutable",
|
2572
2572
|
"name": "resourceId",
|
2573
2573
|
"nameLocation": "2465:10:98",
|
2574
2574
|
"nodeType": "VariableDeclaration",
|
2575
|
-
"scope":
|
2575
|
+
"scope": 39108,
|
2576
2576
|
"src": "2454:21:98",
|
2577
2577
|
"stateVariable": false,
|
2578
2578
|
"storageLocation": "default",
|
2579
2579
|
"typeDescriptions": {
|
2580
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
2580
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26262",
|
2581
2581
|
"typeString": "ResourceId"
|
2582
2582
|
},
|
2583
2583
|
"typeName": {
|
2584
|
-
"id":
|
2584
|
+
"id": 39090,
|
2585
2585
|
"nodeType": "UserDefinedTypeName",
|
2586
2586
|
"pathNode": {
|
2587
|
-
"id":
|
2587
|
+
"id": 39089,
|
2588
2588
|
"name": "ResourceId",
|
2589
2589
|
"nameLocations": [
|
2590
2590
|
"2454:10:98"
|
2591
2591
|
],
|
2592
2592
|
"nodeType": "IdentifierPath",
|
2593
|
-
"referencedDeclaration":
|
2593
|
+
"referencedDeclaration": 26262,
|
2594
2594
|
"src": "2454:10:98"
|
2595
2595
|
},
|
2596
|
-
"referencedDeclaration":
|
2596
|
+
"referencedDeclaration": 26262,
|
2597
2597
|
"src": "2454:10:98",
|
2598
2598
|
"typeDescriptions": {
|
2599
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
2599
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26262",
|
2600
2600
|
"typeString": "ResourceId"
|
2601
2601
|
}
|
2602
2602
|
},
|
@@ -2606,17 +2606,17 @@
|
|
2606
2606
|
"src": "2453:23:98"
|
2607
2607
|
},
|
2608
2608
|
"returnParameters": {
|
2609
|
-
"id":
|
2609
|
+
"id": 39095,
|
2610
2610
|
"nodeType": "ParameterList",
|
2611
2611
|
"parameters": [
|
2612
2612
|
{
|
2613
2613
|
"constant": false,
|
2614
|
-
"id":
|
2614
|
+
"id": 39094,
|
2615
2615
|
"mutability": "mutable",
|
2616
2616
|
"name": "",
|
2617
2617
|
"nameLocation": "-1:-1:-1",
|
2618
2618
|
"nodeType": "VariableDeclaration",
|
2619
|
-
"scope":
|
2619
|
+
"scope": 39108,
|
2620
2620
|
"src": "2500:7:98",
|
2621
2621
|
"stateVariable": false,
|
2622
2622
|
"storageLocation": "default",
|
@@ -2625,7 +2625,7 @@
|
|
2625
2625
|
"typeString": "bytes14"
|
2626
2626
|
},
|
2627
2627
|
"typeName": {
|
2628
|
-
"id":
|
2628
|
+
"id": 39093,
|
2629
2629
|
"name": "bytes14",
|
2630
2630
|
"nodeType": "ElementaryTypeName",
|
2631
2631
|
"src": "2500:7:98",
|
@@ -2639,18 +2639,18 @@
|
|
2639
2639
|
],
|
2640
2640
|
"src": "2499:9:98"
|
2641
2641
|
},
|
2642
|
-
"scope":
|
2642
|
+
"scope": 39207,
|
2643
2643
|
"stateMutability": "pure",
|
2644
2644
|
"virtual": false,
|
2645
2645
|
"visibility": "internal"
|
2646
2646
|
},
|
2647
2647
|
{
|
2648
|
-
"id":
|
2648
|
+
"id": 39132,
|
2649
2649
|
"nodeType": "FunctionDefinition",
|
2650
2650
|
"src": "2736:191:98",
|
2651
2651
|
"nodes": [],
|
2652
2652
|
"body": {
|
2653
|
-
"id":
|
2653
|
+
"id": 39131,
|
2654
2654
|
"nodeType": "Block",
|
2655
2655
|
"src": "2818:109:98",
|
2656
2656
|
"nodes": [],
|
@@ -2663,7 +2663,7 @@
|
|
2663
2663
|
"typeIdentifier": "t_bytes32",
|
2664
2664
|
"typeString": "bytes32"
|
2665
2665
|
},
|
2666
|
-
"id":
|
2666
|
+
"id": 39128,
|
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":
|
2678
|
+
"id": 39125,
|
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":
|
2686
|
+
"id": 39122,
|
2687
2687
|
"name": "resourceId",
|
2688
2688
|
"nodeType": "Identifier",
|
2689
2689
|
"overloadedDeclarations": [],
|
2690
|
-
"referencedDeclaration":
|
2690
|
+
"referencedDeclaration": 39112,
|
2691
2691
|
"src": "2866:10:98",
|
2692
2692
|
"typeDescriptions": {
|
2693
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
2693
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26262",
|
2694
2694
|
"typeString": "ResourceId"
|
2695
2695
|
}
|
2696
2696
|
}
|
@@ -2698,23 +2698,23 @@
|
|
2698
2698
|
"expression": {
|
2699
2699
|
"argumentTypes": [
|
2700
2700
|
{
|
2701
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
2701
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26262",
|
2702
2702
|
"typeString": "ResourceId"
|
2703
2703
|
}
|
2704
2704
|
],
|
2705
2705
|
"expression": {
|
2706
|
-
"id":
|
2706
|
+
"id": 39120,
|
2707
2707
|
"name": "ResourceId",
|
2708
2708
|
"nodeType": "Identifier",
|
2709
2709
|
"overloadedDeclarations": [],
|
2710
|
-
"referencedDeclaration":
|
2710
|
+
"referencedDeclaration": 26262,
|
2711
2711
|
"src": "2848:10:98",
|
2712
2712
|
"typeDescriptions": {
|
2713
|
-
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$
|
2713
|
+
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$26262_$",
|
2714
2714
|
"typeString": "type(ResourceId)"
|
2715
2715
|
}
|
2716
2716
|
},
|
2717
|
-
"id":
|
2717
|
+
"id": 39121,
|
2718
2718
|
"isConstant": false,
|
2719
2719
|
"isLValue": false,
|
2720
2720
|
"isPure": true,
|
@@ -2724,11 +2724,11 @@
|
|
2724
2724
|
"nodeType": "MemberAccess",
|
2725
2725
|
"src": "2848:17:98",
|
2726
2726
|
"typeDescriptions": {
|
2727
|
-
"typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_ResourceId_$
|
2727
|
+
"typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_ResourceId_$26262_$returns$_t_bytes32_$",
|
2728
2728
|
"typeString": "function (ResourceId) pure returns (bytes32)"
|
2729
2729
|
}
|
2730
2730
|
},
|
2731
|
-
"id":
|
2731
|
+
"id": 39123,
|
2732
2732
|
"isConstant": false,
|
2733
2733
|
"isLValue": false,
|
2734
2734
|
"isPure": false,
|
@@ -2747,11 +2747,11 @@
|
|
2747
2747
|
"nodeType": "BinaryOperation",
|
2748
2748
|
"operator": "&",
|
2749
2749
|
"rightExpression": {
|
2750
|
-
"id":
|
2750
|
+
"id": 39124,
|
2751
2751
|
"name": "NAMESPACE_MASK",
|
2752
2752
|
"nodeType": "Identifier",
|
2753
2753
|
"overloadedDeclarations": [],
|
2754
|
-
"referencedDeclaration":
|
2754
|
+
"referencedDeclaration": 38972,
|
2755
2755
|
"src": "2880:14:98",
|
2756
2756
|
"typeDescriptions": {
|
2757
2757
|
"typeIdentifier": "t_bytes32",
|
@@ -2765,7 +2765,7 @@
|
|
2765
2765
|
}
|
2766
2766
|
}
|
2767
2767
|
],
|
2768
|
-
"id":
|
2768
|
+
"id": 39126,
|
2769
2769
|
"isConstant": false,
|
2770
2770
|
"isInlineArray": false,
|
2771
2771
|
"isLValue": false,
|
@@ -2781,11 +2781,11 @@
|
|
2781
2781
|
"nodeType": "BinaryOperation",
|
2782
2782
|
"operator": "|",
|
2783
2783
|
"rightExpression": {
|
2784
|
-
"id":
|
2784
|
+
"id": 39127,
|
2785
2785
|
"name": "MASK_RESOURCE_NAMESPACE",
|
2786
2786
|
"nodeType": "Identifier",
|
2787
2787
|
"overloadedDeclarations": [],
|
2788
|
-
"referencedDeclaration":
|
2788
|
+
"referencedDeclaration": 39338,
|
2789
2789
|
"src": "2898:23:98",
|
2790
2790
|
"typeDescriptions": {
|
2791
2791
|
"typeIdentifier": "t_bytes32",
|
@@ -2807,18 +2807,18 @@
|
|
2807
2807
|
}
|
2808
2808
|
],
|
2809
2809
|
"expression": {
|
2810
|
-
"id":
|
2810
|
+
"id": 39118,
|
2811
2811
|
"name": "ResourceId",
|
2812
2812
|
"nodeType": "Identifier",
|
2813
2813
|
"overloadedDeclarations": [],
|
2814
|
-
"referencedDeclaration":
|
2814
|
+
"referencedDeclaration": 26262,
|
2815
2815
|
"src": "2831:10:98",
|
2816
2816
|
"typeDescriptions": {
|
2817
|
-
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$
|
2817
|
+
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$26262_$",
|
2818
2818
|
"typeString": "type(ResourceId)"
|
2819
2819
|
}
|
2820
2820
|
},
|
2821
|
-
"id":
|
2821
|
+
"id": 39119,
|
2822
2822
|
"isConstant": false,
|
2823
2823
|
"isLValue": false,
|
2824
2824
|
"isPure": true,
|
@@ -2828,11 +2828,11 @@
|
|
2828
2828
|
"nodeType": "MemberAccess",
|
2829
2829
|
"src": "2831:15:98",
|
2830
2830
|
"typeDescriptions": {
|
2831
|
-
"typeIdentifier": "t_function_wrap_pure$_t_bytes32_$returns$_t_userDefinedValueType$_ResourceId_$
|
2831
|
+
"typeIdentifier": "t_function_wrap_pure$_t_bytes32_$returns$_t_userDefinedValueType$_ResourceId_$26262_$",
|
2832
2832
|
"typeString": "function (bytes32) pure returns (ResourceId)"
|
2833
2833
|
}
|
2834
2834
|
},
|
2835
|
-
"id":
|
2835
|
+
"id": 39129,
|
2836
2836
|
"isConstant": false,
|
2837
2837
|
"isLValue": false,
|
2838
2838
|
"isPure": false,
|
@@ -2844,19 +2844,19 @@
|
|
2844
2844
|
"src": "2831:91:98",
|
2845
2845
|
"tryCall": false,
|
2846
2846
|
"typeDescriptions": {
|
2847
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
2847
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26262",
|
2848
2848
|
"typeString": "ResourceId"
|
2849
2849
|
}
|
2850
2850
|
},
|
2851
|
-
"functionReturnParameters":
|
2852
|
-
"id":
|
2851
|
+
"functionReturnParameters": 39117,
|
2852
|
+
"id": 39130,
|
2853
2853
|
"nodeType": "Return",
|
2854
2854
|
"src": "2824:98:98"
|
2855
2855
|
}
|
2856
2856
|
]
|
2857
2857
|
},
|
2858
2858
|
"documentation": {
|
2859
|
-
"id":
|
2859
|
+
"id": 39109,
|
2860
2860
|
"nodeType": "StructuredDocumentation",
|
2861
2861
|
"src": "2584:149:98",
|
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."
|
@@ -2867,41 +2867,41 @@
|
|
2867
2867
|
"name": "getNamespaceId",
|
2868
2868
|
"nameLocation": "2745:14:98",
|
2869
2869
|
"parameters": {
|
2870
|
-
"id":
|
2870
|
+
"id": 39113,
|
2871
2871
|
"nodeType": "ParameterList",
|
2872
2872
|
"parameters": [
|
2873
2873
|
{
|
2874
2874
|
"constant": false,
|
2875
|
-
"id":
|
2875
|
+
"id": 39112,
|
2876
2876
|
"mutability": "mutable",
|
2877
2877
|
"name": "resourceId",
|
2878
2878
|
"nameLocation": "2771:10:98",
|
2879
2879
|
"nodeType": "VariableDeclaration",
|
2880
|
-
"scope":
|
2880
|
+
"scope": 39132,
|
2881
2881
|
"src": "2760:21:98",
|
2882
2882
|
"stateVariable": false,
|
2883
2883
|
"storageLocation": "default",
|
2884
2884
|
"typeDescriptions": {
|
2885
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
2885
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26262",
|
2886
2886
|
"typeString": "ResourceId"
|
2887
2887
|
},
|
2888
2888
|
"typeName": {
|
2889
|
-
"id":
|
2889
|
+
"id": 39111,
|
2890
2890
|
"nodeType": "UserDefinedTypeName",
|
2891
2891
|
"pathNode": {
|
2892
|
-
"id":
|
2892
|
+
"id": 39110,
|
2893
2893
|
"name": "ResourceId",
|
2894
2894
|
"nameLocations": [
|
2895
2895
|
"2760:10:98"
|
2896
2896
|
],
|
2897
2897
|
"nodeType": "IdentifierPath",
|
2898
|
-
"referencedDeclaration":
|
2898
|
+
"referencedDeclaration": 26262,
|
2899
2899
|
"src": "2760:10:98"
|
2900
2900
|
},
|
2901
|
-
"referencedDeclaration":
|
2901
|
+
"referencedDeclaration": 26262,
|
2902
2902
|
"src": "2760:10:98",
|
2903
2903
|
"typeDescriptions": {
|
2904
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
2904
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26262",
|
2905
2905
|
"typeString": "ResourceId"
|
2906
2906
|
}
|
2907
2907
|
},
|
@@ -2911,41 +2911,41 @@
|
|
2911
2911
|
"src": "2759:23:98"
|
2912
2912
|
},
|
2913
2913
|
"returnParameters": {
|
2914
|
-
"id":
|
2914
|
+
"id": 39117,
|
2915
2915
|
"nodeType": "ParameterList",
|
2916
2916
|
"parameters": [
|
2917
2917
|
{
|
2918
2918
|
"constant": false,
|
2919
|
-
"id":
|
2919
|
+
"id": 39116,
|
2920
2920
|
"mutability": "mutable",
|
2921
2921
|
"name": "",
|
2922
2922
|
"nameLocation": "-1:-1:-1",
|
2923
2923
|
"nodeType": "VariableDeclaration",
|
2924
|
-
"scope":
|
2924
|
+
"scope": 39132,
|
2925
2925
|
"src": "2806:10:98",
|
2926
2926
|
"stateVariable": false,
|
2927
2927
|
"storageLocation": "default",
|
2928
2928
|
"typeDescriptions": {
|
2929
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
2929
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26262",
|
2930
2930
|
"typeString": "ResourceId"
|
2931
2931
|
},
|
2932
2932
|
"typeName": {
|
2933
|
-
"id":
|
2933
|
+
"id": 39115,
|
2934
2934
|
"nodeType": "UserDefinedTypeName",
|
2935
2935
|
"pathNode": {
|
2936
|
-
"id":
|
2936
|
+
"id": 39114,
|
2937
2937
|
"name": "ResourceId",
|
2938
2938
|
"nameLocations": [
|
2939
2939
|
"2806:10:98"
|
2940
2940
|
],
|
2941
2941
|
"nodeType": "IdentifierPath",
|
2942
|
-
"referencedDeclaration":
|
2942
|
+
"referencedDeclaration": 26262,
|
2943
2943
|
"src": "2806:10:98"
|
2944
2944
|
},
|
2945
|
-
"referencedDeclaration":
|
2945
|
+
"referencedDeclaration": 26262,
|
2946
2946
|
"src": "2806:10:98",
|
2947
2947
|
"typeDescriptions": {
|
2948
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
2948
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26262",
|
2949
2949
|
"typeString": "ResourceId"
|
2950
2950
|
}
|
2951
2951
|
},
|
@@ -2954,18 +2954,18 @@
|
|
2954
2954
|
],
|
2955
2955
|
"src": "2805:12:98"
|
2956
2956
|
},
|
2957
|
-
"scope":
|
2957
|
+
"scope": 39207,
|
2958
2958
|
"stateMutability": "pure",
|
2959
2959
|
"virtual": false,
|
2960
2960
|
"visibility": "internal"
|
2961
2961
|
},
|
2962
2962
|
{
|
2963
|
-
"id":
|
2963
|
+
"id": 39155,
|
2964
2964
|
"nodeType": "FunctionDefinition",
|
2965
2965
|
"src": "3058:160:98",
|
2966
2966
|
"nodes": [],
|
2967
2967
|
"body": {
|
2968
|
-
"id":
|
2968
|
+
"id": 39154,
|
2969
2969
|
"nodeType": "Block",
|
2970
2970
|
"src": "3130:88:98",
|
2971
2971
|
"nodes": [],
|
@@ -2978,7 +2978,7 @@
|
|
2978
2978
|
"typeIdentifier": "t_bytes32",
|
2979
2979
|
"typeString": "bytes32"
|
2980
2980
|
},
|
2981
|
-
"id":
|
2981
|
+
"id": 39151,
|
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":
|
2989
|
+
"id": 39145,
|
2990
2990
|
"name": "resourceId",
|
2991
2991
|
"nodeType": "Identifier",
|
2992
2992
|
"overloadedDeclarations": [],
|
2993
|
-
"referencedDeclaration":
|
2993
|
+
"referencedDeclaration": 39136,
|
2994
2994
|
"src": "3169:10:98",
|
2995
2995
|
"typeDescriptions": {
|
2996
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
2996
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26262",
|
2997
2997
|
"typeString": "ResourceId"
|
2998
2998
|
}
|
2999
2999
|
}
|
@@ -3001,23 +3001,23 @@
|
|
3001
3001
|
"expression": {
|
3002
3002
|
"argumentTypes": [
|
3003
3003
|
{
|
3004
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
3004
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26262",
|
3005
3005
|
"typeString": "ResourceId"
|
3006
3006
|
}
|
3007
3007
|
],
|
3008
3008
|
"expression": {
|
3009
|
-
"id":
|
3009
|
+
"id": 39143,
|
3010
3010
|
"name": "ResourceId",
|
3011
3011
|
"nodeType": "Identifier",
|
3012
3012
|
"overloadedDeclarations": [],
|
3013
|
-
"referencedDeclaration":
|
3013
|
+
"referencedDeclaration": 26262,
|
3014
3014
|
"src": "3151:10:98",
|
3015
3015
|
"typeDescriptions": {
|
3016
|
-
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$
|
3016
|
+
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$26262_$",
|
3017
3017
|
"typeString": "type(ResourceId)"
|
3018
3018
|
}
|
3019
3019
|
},
|
3020
|
-
"id":
|
3020
|
+
"id": 39144,
|
3021
3021
|
"isConstant": false,
|
3022
3022
|
"isLValue": false,
|
3023
3023
|
"isPure": true,
|
@@ -3027,11 +3027,11 @@
|
|
3027
3027
|
"nodeType": "MemberAccess",
|
3028
3028
|
"src": "3151:17:98",
|
3029
3029
|
"typeDescriptions": {
|
3030
|
-
"typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_ResourceId_$
|
3030
|
+
"typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_ResourceId_$26262_$returns$_t_bytes32_$",
|
3031
3031
|
"typeString": "function (ResourceId) pure returns (bytes32)"
|
3032
3032
|
}
|
3033
3033
|
},
|
3034
|
-
"id":
|
3034
|
+
"id": 39146,
|
3035
3035
|
"isConstant": false,
|
3036
3036
|
"isLValue": false,
|
3037
3037
|
"isPure": false,
|
@@ -3056,17 +3056,17 @@
|
|
3056
3056
|
"typeIdentifier": "t_uint256",
|
3057
3057
|
"typeString": "uint256"
|
3058
3058
|
},
|
3059
|
-
"id":
|
3059
|
+
"id": 39149,
|
3060
3060
|
"isConstant": false,
|
3061
3061
|
"isLValue": false,
|
3062
3062
|
"isPure": true,
|
3063
3063
|
"lValueRequested": false,
|
3064
3064
|
"leftExpression": {
|
3065
|
-
"id":
|
3065
|
+
"id": 39147,
|
3066
3066
|
"name": "TYPE_BITS",
|
3067
3067
|
"nodeType": "Identifier",
|
3068
3068
|
"overloadedDeclarations": [],
|
3069
|
-
"referencedDeclaration":
|
3069
|
+
"referencedDeclaration": 26267,
|
3070
3070
|
"src": "3185:9:98",
|
3071
3071
|
"typeDescriptions": {
|
3072
3072
|
"typeIdentifier": "t_uint256",
|
@@ -3076,11 +3076,11 @@
|
|
3076
3076
|
"nodeType": "BinaryOperation",
|
3077
3077
|
"operator": "+",
|
3078
3078
|
"rightExpression": {
|
3079
|
-
"id":
|
3079
|
+
"id": 39148,
|
3080
3080
|
"name": "NAMESPACE_BITS",
|
3081
3081
|
"nodeType": "Identifier",
|
3082
3082
|
"overloadedDeclarations": [],
|
3083
|
-
"referencedDeclaration":
|
3083
|
+
"referencedDeclaration": 38942,
|
3084
3084
|
"src": "3197:14:98",
|
3085
3085
|
"typeDescriptions": {
|
3086
3086
|
"typeIdentifier": "t_uint256",
|
@@ -3094,7 +3094,7 @@
|
|
3094
3094
|
}
|
3095
3095
|
}
|
3096
3096
|
],
|
3097
|
-
"id":
|
3097
|
+
"id": 39150,
|
3098
3098
|
"isConstant": false,
|
3099
3099
|
"isInlineArray": false,
|
3100
3100
|
"isLValue": false,
|
@@ -3121,7 +3121,7 @@
|
|
3121
3121
|
"typeString": "bytes32"
|
3122
3122
|
}
|
3123
3123
|
],
|
3124
|
-
"id":
|
3124
|
+
"id": 39142,
|
3125
3125
|
"isConstant": false,
|
3126
3126
|
"isLValue": false,
|
3127
3127
|
"isPure": true,
|
@@ -3133,14 +3133,14 @@
|
|
3133
3133
|
"typeString": "type(bytes16)"
|
3134
3134
|
},
|
3135
3135
|
"typeName": {
|
3136
|
-
"id":
|
3136
|
+
"id": 39141,
|
3137
3137
|
"name": "bytes16",
|
3138
3138
|
"nodeType": "ElementaryTypeName",
|
3139
3139
|
"src": "3143:7:98",
|
3140
3140
|
"typeDescriptions": {}
|
3141
3141
|
}
|
3142
3142
|
},
|
3143
|
-
"id":
|
3143
|
+
"id": 39152,
|
3144
3144
|
"isConstant": false,
|
3145
3145
|
"isLValue": false,
|
3146
3146
|
"isPure": false,
|
@@ -3156,15 +3156,15 @@
|
|
3156
3156
|
"typeString": "bytes16"
|
3157
3157
|
}
|
3158
3158
|
},
|
3159
|
-
"functionReturnParameters":
|
3160
|
-
"id":
|
3159
|
+
"functionReturnParameters": 39140,
|
3160
|
+
"id": 39153,
|
3161
3161
|
"nodeType": "Return",
|
3162
3162
|
"src": "3136:77:98"
|
3163
3163
|
}
|
3164
3164
|
]
|
3165
3165
|
},
|
3166
3166
|
"documentation": {
|
3167
|
-
"id":
|
3167
|
+
"id": 39133,
|
3168
3168
|
"nodeType": "StructuredDocumentation",
|
3169
3169
|
"src": "2931:124:98",
|
3170
3170
|
"text": " @notice Get the name from a resource ID.\n @param resourceId The resource ID.\n @return A 16-byte name."
|
@@ -3175,41 +3175,41 @@
|
|
3175
3175
|
"name": "getName",
|
3176
3176
|
"nameLocation": "3067:7:98",
|
3177
3177
|
"parameters": {
|
3178
|
-
"id":
|
3178
|
+
"id": 39137,
|
3179
3179
|
"nodeType": "ParameterList",
|
3180
3180
|
"parameters": [
|
3181
3181
|
{
|
3182
3182
|
"constant": false,
|
3183
|
-
"id":
|
3183
|
+
"id": 39136,
|
3184
3184
|
"mutability": "mutable",
|
3185
3185
|
"name": "resourceId",
|
3186
3186
|
"nameLocation": "3086:10:98",
|
3187
3187
|
"nodeType": "VariableDeclaration",
|
3188
|
-
"scope":
|
3188
|
+
"scope": 39155,
|
3189
3189
|
"src": "3075:21:98",
|
3190
3190
|
"stateVariable": false,
|
3191
3191
|
"storageLocation": "default",
|
3192
3192
|
"typeDescriptions": {
|
3193
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
3193
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26262",
|
3194
3194
|
"typeString": "ResourceId"
|
3195
3195
|
},
|
3196
3196
|
"typeName": {
|
3197
|
-
"id":
|
3197
|
+
"id": 39135,
|
3198
3198
|
"nodeType": "UserDefinedTypeName",
|
3199
3199
|
"pathNode": {
|
3200
|
-
"id":
|
3200
|
+
"id": 39134,
|
3201
3201
|
"name": "ResourceId",
|
3202
3202
|
"nameLocations": [
|
3203
3203
|
"3075:10:98"
|
3204
3204
|
],
|
3205
3205
|
"nodeType": "IdentifierPath",
|
3206
|
-
"referencedDeclaration":
|
3206
|
+
"referencedDeclaration": 26262,
|
3207
3207
|
"src": "3075:10:98"
|
3208
3208
|
},
|
3209
|
-
"referencedDeclaration":
|
3209
|
+
"referencedDeclaration": 26262,
|
3210
3210
|
"src": "3075:10:98",
|
3211
3211
|
"typeDescriptions": {
|
3212
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
3212
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26262",
|
3213
3213
|
"typeString": "ResourceId"
|
3214
3214
|
}
|
3215
3215
|
},
|
@@ -3219,17 +3219,17 @@
|
|
3219
3219
|
"src": "3074:23:98"
|
3220
3220
|
},
|
3221
3221
|
"returnParameters": {
|
3222
|
-
"id":
|
3222
|
+
"id": 39140,
|
3223
3223
|
"nodeType": "ParameterList",
|
3224
3224
|
"parameters": [
|
3225
3225
|
{
|
3226
3226
|
"constant": false,
|
3227
|
-
"id":
|
3227
|
+
"id": 39139,
|
3228
3228
|
"mutability": "mutable",
|
3229
3229
|
"name": "",
|
3230
3230
|
"nameLocation": "-1:-1:-1",
|
3231
3231
|
"nodeType": "VariableDeclaration",
|
3232
|
-
"scope":
|
3232
|
+
"scope": 39155,
|
3233
3233
|
"src": "3121:7:98",
|
3234
3234
|
"stateVariable": false,
|
3235
3235
|
"storageLocation": "default",
|
@@ -3238,7 +3238,7 @@
|
|
3238
3238
|
"typeString": "bytes16"
|
3239
3239
|
},
|
3240
3240
|
"typeName": {
|
3241
|
-
"id":
|
3241
|
+
"id": 39138,
|
3242
3242
|
"name": "bytes16",
|
3243
3243
|
"nodeType": "ElementaryTypeName",
|
3244
3244
|
"src": "3121:7:98",
|
@@ -3252,35 +3252,35 @@
|
|
3252
3252
|
],
|
3253
3253
|
"src": "3120:9:98"
|
3254
3254
|
},
|
3255
|
-
"scope":
|
3255
|
+
"scope": 39207,
|
3256
3256
|
"stateMutability": "pure",
|
3257
3257
|
"virtual": false,
|
3258
3258
|
"visibility": "internal"
|
3259
3259
|
},
|
3260
3260
|
{
|
3261
|
-
"id":
|
3261
|
+
"id": 39206,
|
3262
3262
|
"nodeType": "FunctionDefinition",
|
3263
3263
|
"src": "3379:541:98",
|
3264
3264
|
"nodes": [],
|
3265
3265
|
"body": {
|
3266
|
-
"id":
|
3266
|
+
"id": 39205,
|
3267
3267
|
"nodeType": "Block",
|
3268
3268
|
"src": "3458:462:98",
|
3269
3269
|
"nodes": [],
|
3270
3270
|
"statements": [
|
3271
3271
|
{
|
3272
3272
|
"assignments": [
|
3273
|
-
|
3273
|
+
39165
|
3274
3274
|
],
|
3275
3275
|
"declarations": [
|
3276
3276
|
{
|
3277
3277
|
"constant": false,
|
3278
|
-
"id":
|
3278
|
+
"id": 39165,
|
3279
3279
|
"mutability": "mutable",
|
3280
3280
|
"name": "resourceType",
|
3281
3281
|
"nameLocation": "3471:12:98",
|
3282
3282
|
"nodeType": "VariableDeclaration",
|
3283
|
-
"scope":
|
3283
|
+
"scope": 39205,
|
3284
3284
|
"src": "3464:19:98",
|
3285
3285
|
"stateVariable": false,
|
3286
3286
|
"storageLocation": "default",
|
@@ -3289,7 +3289,7 @@
|
|
3289
3289
|
"typeString": "bytes2"
|
3290
3290
|
},
|
3291
3291
|
"typeName": {
|
3292
|
-
"id":
|
3292
|
+
"id": 39164,
|
3293
3293
|
"name": "bytes2",
|
3294
3294
|
"nodeType": "ElementaryTypeName",
|
3295
3295
|
"src": "3464:6:98",
|
@@ -3301,18 +3301,18 @@
|
|
3301
3301
|
"visibility": "internal"
|
3302
3302
|
}
|
3303
3303
|
],
|
3304
|
-
"id":
|
3304
|
+
"id": 39170,
|
3305
3305
|
"initialValue": {
|
3306
3306
|
"arguments": [
|
3307
3307
|
{
|
3308
|
-
"id":
|
3308
|
+
"id": 39168,
|
3309
3309
|
"name": "resourceId",
|
3310
3310
|
"nodeType": "Identifier",
|
3311
3311
|
"overloadedDeclarations": [],
|
3312
|
-
"referencedDeclaration":
|
3312
|
+
"referencedDeclaration": 39159,
|
3313
3313
|
"src": "3513:10:98",
|
3314
3314
|
"typeDescriptions": {
|
3315
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
3315
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26262",
|
3316
3316
|
"typeString": "ResourceId"
|
3317
3317
|
}
|
3318
3318
|
}
|
@@ -3320,23 +3320,23 @@
|
|
3320
3320
|
"expression": {
|
3321
3321
|
"argumentTypes": [
|
3322
3322
|
{
|
3323
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
3323
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26262",
|
3324
3324
|
"typeString": "ResourceId"
|
3325
3325
|
}
|
3326
3326
|
],
|
3327
3327
|
"expression": {
|
3328
|
-
"id":
|
3328
|
+
"id": 39166,
|
3329
3329
|
"name": "ResourceIdInstance",
|
3330
3330
|
"nodeType": "Identifier",
|
3331
3331
|
"overloadedDeclarations": [],
|
3332
|
-
"referencedDeclaration":
|
3332
|
+
"referencedDeclaration": 26326,
|
3333
3333
|
"src": "3486:18:98",
|
3334
3334
|
"typeDescriptions": {
|
3335
|
-
"typeIdentifier": "t_type$_t_contract$_ResourceIdInstance_$
|
3335
|
+
"typeIdentifier": "t_type$_t_contract$_ResourceIdInstance_$26326_$",
|
3336
3336
|
"typeString": "type(library ResourceIdInstance)"
|
3337
3337
|
}
|
3338
3338
|
},
|
3339
|
-
"id":
|
3339
|
+
"id": 39167,
|
3340
3340
|
"isConstant": false,
|
3341
3341
|
"isLValue": false,
|
3342
3342
|
"isPure": false,
|
@@ -3344,14 +3344,14 @@
|
|
3344
3344
|
"memberLocation": "3505:7:98",
|
3345
3345
|
"memberName": "getType",
|
3346
3346
|
"nodeType": "MemberAccess",
|
3347
|
-
"referencedDeclaration":
|
3347
|
+
"referencedDeclaration": 26325,
|
3348
3348
|
"src": "3486:26:98",
|
3349
3349
|
"typeDescriptions": {
|
3350
|
-
"typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_ResourceId_$
|
3350
|
+
"typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_ResourceId_$26262_$returns$_t_bytes2_$",
|
3351
3351
|
"typeString": "function (ResourceId) pure returns (bytes2)"
|
3352
3352
|
}
|
3353
3353
|
},
|
3354
|
-
"id":
|
3354
|
+
"id": 39169,
|
3355
3355
|
"isConstant": false,
|
3356
3356
|
"isLValue": false,
|
3357
3357
|
"isPure": false,
|
@@ -3372,17 +3372,17 @@
|
|
3372
3372
|
},
|
3373
3373
|
{
|
3374
3374
|
"assignments": [
|
3375
|
-
|
3375
|
+
39172
|
3376
3376
|
],
|
3377
3377
|
"declarations": [
|
3378
3378
|
{
|
3379
3379
|
"constant": false,
|
3380
|
-
"id":
|
3380
|
+
"id": 39172,
|
3381
3381
|
"mutability": "mutable",
|
3382
3382
|
"name": "resourceNamespace",
|
3383
3383
|
"nameLocation": "3538:17:98",
|
3384
3384
|
"nodeType": "VariableDeclaration",
|
3385
|
-
"scope":
|
3385
|
+
"scope": 39205,
|
3386
3386
|
"src": "3530:25:98",
|
3387
3387
|
"stateVariable": false,
|
3388
3388
|
"storageLocation": "default",
|
@@ -3391,7 +3391,7 @@
|
|
3391
3391
|
"typeString": "bytes14"
|
3392
3392
|
},
|
3393
3393
|
"typeName": {
|
3394
|
-
"id":
|
3394
|
+
"id": 39171,
|
3395
3395
|
"name": "bytes14",
|
3396
3396
|
"nodeType": "ElementaryTypeName",
|
3397
3397
|
"src": "3530:7:98",
|
@@ -3403,18 +3403,18 @@
|
|
3403
3403
|
"visibility": "internal"
|
3404
3404
|
}
|
3405
3405
|
],
|
3406
|
-
"id":
|
3406
|
+
"id": 39176,
|
3407
3407
|
"initialValue": {
|
3408
3408
|
"arguments": [
|
3409
3409
|
{
|
3410
|
-
"id":
|
3410
|
+
"id": 39174,
|
3411
3411
|
"name": "resourceId",
|
3412
3412
|
"nodeType": "Identifier",
|
3413
3413
|
"overloadedDeclarations": [],
|
3414
|
-
"referencedDeclaration":
|
3414
|
+
"referencedDeclaration": 39159,
|
3415
3415
|
"src": "3571:10:98",
|
3416
3416
|
"typeDescriptions": {
|
3417
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
3417
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26262",
|
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_$
|
3425
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26262",
|
3426
3426
|
"typeString": "ResourceId"
|
3427
3427
|
}
|
3428
3428
|
],
|
3429
|
-
"id":
|
3429
|
+
"id": 39173,
|
3430
3430
|
"name": "getNamespace",
|
3431
3431
|
"nodeType": "Identifier",
|
3432
3432
|
"overloadedDeclarations": [],
|
3433
|
-
"referencedDeclaration":
|
3433
|
+
"referencedDeclaration": 39108,
|
3434
3434
|
"src": "3558:12:98",
|
3435
3435
|
"typeDescriptions": {
|
3436
|
-
"typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_ResourceId_$
|
3436
|
+
"typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_ResourceId_$26262_$returns$_t_bytes14_$",
|
3437
3437
|
"typeString": "function (ResourceId) pure returns (bytes14)"
|
3438
3438
|
}
|
3439
3439
|
},
|
3440
|
-
"id":
|
3440
|
+
"id": 39175,
|
3441
3441
|
"isConstant": false,
|
3442
3442
|
"isLValue": false,
|
3443
3443
|
"isPure": false,
|
@@ -3458,17 +3458,17 @@
|
|
3458
3458
|
},
|
3459
3459
|
{
|
3460
3460
|
"assignments": [
|
3461
|
-
|
3461
|
+
39178
|
3462
3462
|
],
|
3463
3463
|
"declarations": [
|
3464
3464
|
{
|
3465
3465
|
"constant": false,
|
3466
|
-
"id":
|
3466
|
+
"id": 39178,
|
3467
3467
|
"mutability": "mutable",
|
3468
3468
|
"name": "resourceName",
|
3469
3469
|
"nameLocation": "3596:12:98",
|
3470
3470
|
"nodeType": "VariableDeclaration",
|
3471
|
-
"scope":
|
3471
|
+
"scope": 39205,
|
3472
3472
|
"src": "3588:20:98",
|
3473
3473
|
"stateVariable": false,
|
3474
3474
|
"storageLocation": "default",
|
@@ -3477,7 +3477,7 @@
|
|
3477
3477
|
"typeString": "bytes16"
|
3478
3478
|
},
|
3479
3479
|
"typeName": {
|
3480
|
-
"id":
|
3480
|
+
"id": 39177,
|
3481
3481
|
"name": "bytes16",
|
3482
3482
|
"nodeType": "ElementaryTypeName",
|
3483
3483
|
"src": "3588:7:98",
|
@@ -3489,18 +3489,18 @@
|
|
3489
3489
|
"visibility": "internal"
|
3490
3490
|
}
|
3491
3491
|
],
|
3492
|
-
"id":
|
3492
|
+
"id": 39182,
|
3493
3493
|
"initialValue": {
|
3494
3494
|
"arguments": [
|
3495
3495
|
{
|
3496
|
-
"id":
|
3496
|
+
"id": 39180,
|
3497
3497
|
"name": "resourceId",
|
3498
3498
|
"nodeType": "Identifier",
|
3499
3499
|
"overloadedDeclarations": [],
|
3500
|
-
"referencedDeclaration":
|
3500
|
+
"referencedDeclaration": 39159,
|
3501
3501
|
"src": "3619:10:98",
|
3502
3502
|
"typeDescriptions": {
|
3503
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
3503
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26262",
|
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_$
|
3511
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26262",
|
3512
3512
|
"typeString": "ResourceId"
|
3513
3513
|
}
|
3514
3514
|
],
|
3515
|
-
"id":
|
3515
|
+
"id": 39179,
|
3516
3516
|
"name": "getName",
|
3517
3517
|
"nodeType": "Identifier",
|
3518
3518
|
"overloadedDeclarations": [],
|
3519
|
-
"referencedDeclaration":
|
3519
|
+
"referencedDeclaration": 39155,
|
3520
3520
|
"src": "3611:7:98",
|
3521
3521
|
"typeDescriptions": {
|
3522
|
-
"typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_ResourceId_$
|
3522
|
+
"typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_ResourceId_$26262_$returns$_t_bytes16_$",
|
3523
3523
|
"typeString": "function (ResourceId) pure returns (bytes16)"
|
3524
3524
|
}
|
3525
3525
|
},
|
3526
|
-
"id":
|
3526
|
+
"id": 39181,
|
3527
3527
|
"isConstant": false,
|
3528
3528
|
"isLValue": false,
|
3529
3529
|
"isPure": false,
|
@@ -3548,11 +3548,11 @@
|
|
3548
3548
|
{
|
3549
3549
|
"arguments": [
|
3550
3550
|
{
|
3551
|
-
"id":
|
3551
|
+
"id": 39187,
|
3552
3552
|
"name": "resourceType",
|
3553
3553
|
"nodeType": "Identifier",
|
3554
3554
|
"overloadedDeclarations": [],
|
3555
|
-
"referencedDeclaration":
|
3555
|
+
"referencedDeclaration": 39165,
|
3556
3556
|
"src": "3693:12:98",
|
3557
3557
|
"typeDescriptions": {
|
3558
3558
|
"typeIdentifier": "t_bytes2",
|
@@ -3561,7 +3561,7 @@
|
|
3561
3561
|
},
|
3562
3562
|
{
|
3563
3563
|
"hexValue": "3a",
|
3564
|
-
"id":
|
3564
|
+
"id": 39188,
|
3565
3565
|
"isConstant": false,
|
3566
3566
|
"isLValue": false,
|
3567
3567
|
"isPure": true,
|
@@ -3581,17 +3581,17 @@
|
|
3581
3581
|
"typeIdentifier": "t_bytes14",
|
3582
3582
|
"typeString": "bytes14"
|
3583
3583
|
},
|
3584
|
-
"id":
|
3584
|
+
"id": 39191,
|
3585
3585
|
"isConstant": false,
|
3586
3586
|
"isLValue": false,
|
3587
3587
|
"isPure": false,
|
3588
3588
|
"lValueRequested": false,
|
3589
3589
|
"leftExpression": {
|
3590
|
-
"id":
|
3590
|
+
"id": 39189,
|
3591
3591
|
"name": "resourceNamespace",
|
3592
3592
|
"nodeType": "Identifier",
|
3593
3593
|
"overloadedDeclarations": [],
|
3594
|
-
"referencedDeclaration":
|
3594
|
+
"referencedDeclaration": 39172,
|
3595
3595
|
"src": "3732:17:98",
|
3596
3596
|
"typeDescriptions": {
|
3597
3597
|
"typeIdentifier": "t_bytes14",
|
@@ -3601,11 +3601,11 @@
|
|
3601
3601
|
"nodeType": "BinaryOperation",
|
3602
3602
|
"operator": "==",
|
3603
3603
|
"rightExpression": {
|
3604
|
-
"id":
|
3604
|
+
"id": 39190,
|
3605
3605
|
"name": "ROOT_NAMESPACE",
|
3606
3606
|
"nodeType": "Identifier",
|
3607
3607
|
"overloadedDeclarations": [],
|
3608
|
-
"referencedDeclaration":
|
3608
|
+
"referencedDeclaration": 39253,
|
3609
3609
|
"src": "3753:14:98",
|
3610
3610
|
"typeDescriptions": {
|
3611
3611
|
"typeIdentifier": "t_bytes14",
|
@@ -3619,18 +3619,18 @@
|
|
3619
3619
|
}
|
3620
3620
|
},
|
3621
3621
|
"falseExpression": {
|
3622
|
-
"id":
|
3622
|
+
"id": 39193,
|
3623
3623
|
"name": "resourceNamespace",
|
3624
3624
|
"nodeType": "Identifier",
|
3625
3625
|
"overloadedDeclarations": [],
|
3626
|
-
"referencedDeclaration":
|
3626
|
+
"referencedDeclaration": 39172,
|
3627
3627
|
"src": "3794:17:98",
|
3628
3628
|
"typeDescriptions": {
|
3629
3629
|
"typeIdentifier": "t_bytes14",
|
3630
3630
|
"typeString": "bytes14"
|
3631
3631
|
}
|
3632
3632
|
},
|
3633
|
-
"id":
|
3633
|
+
"id": 39194,
|
3634
3634
|
"isConstant": false,
|
3635
3635
|
"isLValue": false,
|
3636
3636
|
"isPure": false,
|
@@ -3638,11 +3638,11 @@
|
|
3638
3638
|
"nodeType": "Conditional",
|
3639
3639
|
"src": "3732:79:98",
|
3640
3640
|
"trueExpression": {
|
3641
|
-
"id":
|
3641
|
+
"id": 39192,
|
3642
3642
|
"name": "ROOT_NAMESPACE_STRING",
|
3643
3643
|
"nodeType": "Identifier",
|
3644
3644
|
"overloadedDeclarations": [],
|
3645
|
-
"referencedDeclaration":
|
3645
|
+
"referencedDeclaration": 38953,
|
3646
3646
|
"src": "3770:21:98",
|
3647
3647
|
"typeDescriptions": {
|
3648
3648
|
"typeIdentifier": "t_bytes16",
|
@@ -3656,7 +3656,7 @@
|
|
3656
3656
|
},
|
3657
3657
|
{
|
3658
3658
|
"hexValue": "3a",
|
3659
|
-
"id":
|
3659
|
+
"id": 39195,
|
3660
3660
|
"isConstant": false,
|
3661
3661
|
"isLValue": false,
|
3662
3662
|
"isPure": true,
|
@@ -3676,17 +3676,17 @@
|
|
3676
3676
|
"typeIdentifier": "t_bytes16",
|
3677
3677
|
"typeString": "bytes16"
|
3678
3678
|
},
|
3679
|
-
"id":
|
3679
|
+
"id": 39198,
|
3680
3680
|
"isConstant": false,
|
3681
3681
|
"isLValue": false,
|
3682
3682
|
"isPure": false,
|
3683
3683
|
"lValueRequested": false,
|
3684
3684
|
"leftExpression": {
|
3685
|
-
"id":
|
3685
|
+
"id": 39196,
|
3686
3686
|
"name": "resourceName",
|
3687
3687
|
"nodeType": "Identifier",
|
3688
3688
|
"overloadedDeclarations": [],
|
3689
|
-
"referencedDeclaration":
|
3689
|
+
"referencedDeclaration": 39178,
|
3690
3690
|
"src": "3838:12:98",
|
3691
3691
|
"typeDescriptions": {
|
3692
3692
|
"typeIdentifier": "t_bytes16",
|
@@ -3696,11 +3696,11 @@
|
|
3696
3696
|
"nodeType": "BinaryOperation",
|
3697
3697
|
"operator": "==",
|
3698
3698
|
"rightExpression": {
|
3699
|
-
"id":
|
3699
|
+
"id": 39197,
|
3700
3700
|
"name": "ROOT_NAME",
|
3701
3701
|
"nodeType": "Identifier",
|
3702
3702
|
"overloadedDeclarations": [],
|
3703
|
-
"referencedDeclaration":
|
3703
|
+
"referencedDeclaration": 39256,
|
3704
3704
|
"src": "3854:9:98",
|
3705
3705
|
"typeDescriptions": {
|
3706
3706
|
"typeIdentifier": "t_bytes16",
|
@@ -3714,18 +3714,18 @@
|
|
3714
3714
|
}
|
3715
3715
|
},
|
3716
3716
|
"falseExpression": {
|
3717
|
-
"id":
|
3717
|
+
"id": 39200,
|
3718
3718
|
"name": "resourceName",
|
3719
3719
|
"nodeType": "Identifier",
|
3720
3720
|
"overloadedDeclarations": [],
|
3721
|
-
"referencedDeclaration":
|
3721
|
+
"referencedDeclaration": 39178,
|
3722
3722
|
"src": "3885:12:98",
|
3723
3723
|
"typeDescriptions": {
|
3724
3724
|
"typeIdentifier": "t_bytes16",
|
3725
3725
|
"typeString": "bytes16"
|
3726
3726
|
}
|
3727
3727
|
},
|
3728
|
-
"id":
|
3728
|
+
"id": 39201,
|
3729
3729
|
"isConstant": false,
|
3730
3730
|
"isLValue": false,
|
3731
3731
|
"isPure": false,
|
@@ -3733,11 +3733,11 @@
|
|
3733
3733
|
"nodeType": "Conditional",
|
3734
3734
|
"src": "3838:59:98",
|
3735
3735
|
"trueExpression": {
|
3736
|
-
"id":
|
3736
|
+
"id": 39199,
|
3737
3737
|
"name": "ROOT_NAME_STRING",
|
3738
3738
|
"nodeType": "Identifier",
|
3739
3739
|
"overloadedDeclarations": [],
|
3740
|
-
"referencedDeclaration":
|
3740
|
+
"referencedDeclaration": 38959,
|
3741
3741
|
"src": "3866:16:98",
|
3742
3742
|
"typeDescriptions": {
|
3743
3743
|
"typeIdentifier": "t_bytes16",
|
@@ -3774,7 +3774,7 @@
|
|
3774
3774
|
}
|
3775
3775
|
],
|
3776
3776
|
"expression": {
|
3777
|
-
"id":
|
3777
|
+
"id": 39185,
|
3778
3778
|
"name": "abi",
|
3779
3779
|
"nodeType": "Identifier",
|
3780
3780
|
"overloadedDeclarations": [],
|
@@ -3785,7 +3785,7 @@
|
|
3785
3785
|
"typeString": "abi"
|
3786
3786
|
}
|
3787
3787
|
},
|
3788
|
-
"id":
|
3788
|
+
"id": 39186,
|
3789
3789
|
"isConstant": false,
|
3790
3790
|
"isLValue": false,
|
3791
3791
|
"isPure": true,
|
@@ -3799,7 +3799,7 @@
|
|
3799
3799
|
"typeString": "function () pure returns (bytes memory)"
|
3800
3800
|
}
|
3801
3801
|
},
|
3802
|
-
"id":
|
3802
|
+
"id": 39202,
|
3803
3803
|
"isConstant": false,
|
3804
3804
|
"isLValue": false,
|
3805
3805
|
"isPure": false,
|
@@ -3823,7 +3823,7 @@
|
|
3823
3823
|
"typeString": "bytes memory"
|
3824
3824
|
}
|
3825
3825
|
],
|
3826
|
-
"id":
|
3826
|
+
"id": 39184,
|
3827
3827
|
"isConstant": false,
|
3828
3828
|
"isLValue": false,
|
3829
3829
|
"isPure": true,
|
@@ -3835,14 +3835,14 @@
|
|
3835
3835
|
"typeString": "type(string storage pointer)"
|
3836
3836
|
},
|
3837
3837
|
"typeName": {
|
3838
|
-
"id":
|
3838
|
+
"id": 39183,
|
3839
3839
|
"name": "string",
|
3840
3840
|
"nodeType": "ElementaryTypeName",
|
3841
3841
|
"src": "3649:6:98",
|
3842
3842
|
"typeDescriptions": {}
|
3843
3843
|
}
|
3844
3844
|
},
|
3845
|
-
"id":
|
3845
|
+
"id": 39203,
|
3846
3846
|
"isConstant": false,
|
3847
3847
|
"isLValue": false,
|
3848
3848
|
"isPure": false,
|
@@ -3858,15 +3858,15 @@
|
|
3858
3858
|
"typeString": "string memory"
|
3859
3859
|
}
|
3860
3860
|
},
|
3861
|
-
"functionReturnParameters":
|
3862
|
-
"id":
|
3861
|
+
"functionReturnParameters": 39163,
|
3862
|
+
"id": 39204,
|
3863
3863
|
"nodeType": "Return",
|
3864
3864
|
"src": "3636:279:98"
|
3865
3865
|
}
|
3866
3866
|
]
|
3867
3867
|
},
|
3868
3868
|
"documentation": {
|
3869
|
-
"id":
|
3869
|
+
"id": 39156,
|
3870
3870
|
"nodeType": "StructuredDocumentation",
|
3871
3871
|
"src": "3222:154:98",
|
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."
|
@@ -3877,41 +3877,41 @@
|
|
3877
3877
|
"name": "toString",
|
3878
3878
|
"nameLocation": "3388:8:98",
|
3879
3879
|
"parameters": {
|
3880
|
-
"id":
|
3880
|
+
"id": 39160,
|
3881
3881
|
"nodeType": "ParameterList",
|
3882
3882
|
"parameters": [
|
3883
3883
|
{
|
3884
3884
|
"constant": false,
|
3885
|
-
"id":
|
3885
|
+
"id": 39159,
|
3886
3886
|
"mutability": "mutable",
|
3887
3887
|
"name": "resourceId",
|
3888
3888
|
"nameLocation": "3408:10:98",
|
3889
3889
|
"nodeType": "VariableDeclaration",
|
3890
|
-
"scope":
|
3890
|
+
"scope": 39206,
|
3891
3891
|
"src": "3397:21:98",
|
3892
3892
|
"stateVariable": false,
|
3893
3893
|
"storageLocation": "default",
|
3894
3894
|
"typeDescriptions": {
|
3895
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
3895
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26262",
|
3896
3896
|
"typeString": "ResourceId"
|
3897
3897
|
},
|
3898
3898
|
"typeName": {
|
3899
|
-
"id":
|
3899
|
+
"id": 39158,
|
3900
3900
|
"nodeType": "UserDefinedTypeName",
|
3901
3901
|
"pathNode": {
|
3902
|
-
"id":
|
3902
|
+
"id": 39157,
|
3903
3903
|
"name": "ResourceId",
|
3904
3904
|
"nameLocations": [
|
3905
3905
|
"3397:10:98"
|
3906
3906
|
],
|
3907
3907
|
"nodeType": "IdentifierPath",
|
3908
|
-
"referencedDeclaration":
|
3908
|
+
"referencedDeclaration": 26262,
|
3909
3909
|
"src": "3397:10:98"
|
3910
3910
|
},
|
3911
|
-
"referencedDeclaration":
|
3911
|
+
"referencedDeclaration": 26262,
|
3912
3912
|
"src": "3397:10:98",
|
3913
3913
|
"typeDescriptions": {
|
3914
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
3914
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26262",
|
3915
3915
|
"typeString": "ResourceId"
|
3916
3916
|
}
|
3917
3917
|
},
|
@@ -3921,17 +3921,17 @@
|
|
3921
3921
|
"src": "3396:23:98"
|
3922
3922
|
},
|
3923
3923
|
"returnParameters": {
|
3924
|
-
"id":
|
3924
|
+
"id": 39163,
|
3925
3925
|
"nodeType": "ParameterList",
|
3926
3926
|
"parameters": [
|
3927
3927
|
{
|
3928
3928
|
"constant": false,
|
3929
|
-
"id":
|
3929
|
+
"id": 39162,
|
3930
3930
|
"mutability": "mutable",
|
3931
3931
|
"name": "",
|
3932
3932
|
"nameLocation": "-1:-1:-1",
|
3933
3933
|
"nodeType": "VariableDeclaration",
|
3934
|
-
"scope":
|
3934
|
+
"scope": 39206,
|
3935
3935
|
"src": "3443:13:98",
|
3936
3936
|
"stateVariable": false,
|
3937
3937
|
"storageLocation": "memory",
|
@@ -3940,7 +3940,7 @@
|
|
3940
3940
|
"typeString": "string"
|
3941
3941
|
},
|
3942
3942
|
"typeName": {
|
3943
|
-
"id":
|
3943
|
+
"id": 39161,
|
3944
3944
|
"name": "string",
|
3945
3945
|
"nodeType": "ElementaryTypeName",
|
3946
3946
|
"src": "3443:6:98",
|
@@ -3954,7 +3954,7 @@
|
|
3954
3954
|
],
|
3955
3955
|
"src": "3442:15:98"
|
3956
3956
|
},
|
3957
|
-
"scope":
|
3957
|
+
"scope": 39207,
|
3958
3958
|
"stateMutability": "pure",
|
3959
3959
|
"virtual": false,
|
3960
3960
|
"visibility": "internal"
|
@@ -3966,18 +3966,18 @@
|
|
3966
3966
|
"contractDependencies": [],
|
3967
3967
|
"contractKind": "library",
|
3968
3968
|
"documentation": {
|
3969
|
-
"id":
|
3969
|
+
"id": 39087,
|
3970
3970
|
"nodeType": "StructuredDocumentation",
|
3971
3971
|
"src": "2150:108:98",
|
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
|
-
|
3976
|
+
39207
|
3977
3977
|
],
|
3978
3978
|
"name": "WorldResourceIdInstance",
|
3979
3979
|
"nameLocation": "2267:23:98",
|
3980
|
-
"scope":
|
3980
|
+
"scope": 39208,
|
3981
3981
|
"usedErrors": [],
|
3982
3982
|
"usedEvents": []
|
3983
3983
|
}
|