@latticexyz/world-modules 2.0.0-main-87235a21 → 2.0.0-main-85218618
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 +264 -227
- package/out/CallboundDelegations.sol/CallboundDelegations.json +2595 -2595
- package/out/DelegationControl.sol/DelegationControl.json +193 -143
- package/out/Hooks.sol/Hooks.json +45 -45
- package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +64 -64
- package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +53 -53
- package/out/IBaseWorld.sol/IBaseWorld.json +136 -91
- package/out/IBatchCallSystem.sol/IBatchCallSystem.json +51 -51
- package/out/ICoreSystem.sol/ICoreSystem.json +6 -6
- package/out/IDelegationControl.sol/IDelegationControl.json +138 -108
- package/out/IModule.sol/IModule.json +181 -151
- package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +34 -34
- package/out/ISystemHook.sol/ISystemHook.json +192 -152
- package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +13 -13
- package/out/IWorldContextConsumer.sol/IWorldContextConsumer.json +172 -124
- package/out/IWorldErrors.sol/IWorldErrors.json +346 -256
- package/out/IWorldKernel.sol/IWorldCall.json +312 -272
- package/out/IWorldKernel.sol/IWorldKernel.json +339 -276
- package/out/IWorldKernel.sol/IWorldModuleInstallation.json +297 -271
- package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +201 -201
- package/out/KeysInTable.sol/KeysInTable.json +10668 -10668
- package/out/KeysInTableHook.sol/KeysInTableHook.json +862 -862
- package/out/KeysInTableModule.sol/KeysInTableModule.json +607 -558
- package/out/KeysWithValue.sol/KeysWithValue.json +3828 -3828
- package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1014 -1014
- package/out/KeysWithValueModule.sol/KeysWithValueModule.json +496 -447
- package/out/Module.sol/Module.json +192 -125
- package/out/ResourceIds.sol/ResourceIds.json +45 -45
- package/out/Schema.sol/SchemaInstance.json +30 -30
- package/out/Schema.sol/SchemaLib.json +30 -30
- package/out/SchemaType.sol/SchemaType.json +276 -276
- package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +372 -329
- package/out/StoreHook.sol/StoreHook.json +358 -358
- package/out/StoreHooks.sol/StoreHooks.json +45 -45
- package/out/System.sol/System.json +84 -41
- package/out/Tables.sol/Tables.json +73 -73
- package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +168 -131
- package/out/TimeboundDelegations.sol/TimeboundDelegations.json +1986 -1986
- package/out/UniqueEntity.sol/UniqueEntity.json +1402 -1402
- package/out/UniqueEntityModule.sol/UniqueEntityModule.json +393 -350
- package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +138 -102
- package/out/UsedKeysIndex.sol/UsedKeysIndex.json +2722 -2722
- package/out/WorldContext.sol/WorldContextConsumer.json +780 -683
- package/out/WorldContext.sol/WorldContextProvider.json +743 -683
- package/out/WorldResourceId.sol/WorldResourceIdInstance.json +777 -765
- package/out/WorldResourceId.sol/WorldResourceIdLib.json +777 -765
- package/out/constants.sol/constants.json +115 -115
- package/out/getKeysInTable.sol/getKeysInTable.json +564 -564
- package/out/getKeysWithValue.sol/getKeysWithValue.json +264 -264
- package/out/getTargetTableId.sol/getTargetTableId.json +163 -163
- package/out/getUniqueEntity.sol/getUniqueEntity.json +88 -88
- package/out/hasKey.sol/hasKey.json +130 -130
- package/out/index.sol/index.json +53 -53
- package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +205 -160
- 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 +697 -697
- package/out/src/FieldLayout.sol/FieldLayoutLib.json +697 -697
- package/out/src/IStore.sol/IStore.json +53 -53
- package/out/src/IWorldKernel.sol/IWorldCall.json +313 -273
- package/out/src/IWorldKernel.sol/IWorldKernel.json +340 -277
- package/out/src/IWorldKernel.sol/IWorldModuleInstallation.json +298 -272
- package/out/src/Memory.sol/Memory.json +89 -89
- package/out/src/PackedCounter.sol/PackedCounterInstance.json +923 -923
- package/out/src/PackedCounter.sol/PackedCounterLib.json +923 -923
- package/out/src/ResourceId.sol/ResourceIdInstance.json +112 -112
- package/out/src/ResourceId.sol/ResourceIdLib.json +112 -112
- package/out/src/Schema.sol/SchemaInstance.json +787 -787
- package/out/src/Schema.sol/SchemaLib.json +787 -787
- package/out/src/Slice.sol/SliceInstance.json +429 -429
- package/out/src/Slice.sol/SliceLib.json +429 -429
- package/out/src/StoreCore.sol/StoreCore.json +4455 -4455
- package/out/src/StoreCore.sol/StoreCoreInternal.json +4455 -4455
- package/out/src/StoreSwitch.sol/StoreSwitch.json +2454 -2454
- package/out/src/WorldContext.sol/WorldContextConsumer.json +780 -683
- package/out/src/WorldContext.sol/WorldContextProvider.json +743 -683
- package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +777 -765
- package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +777 -765
- package/out/storeHookTypes.sol/storeHookTypes.json +115 -115
- package/out/storeResourceTypes.sol/storeResourceTypes.json +12 -12
- package/out/tables/ResourceIds.sol/ResourceIds.json +1746 -1746
- package/out/tables/Tables.sol/Tables.json +7288 -7288
- package/out/tightcoder/EncodeArray.sol/EncodeArray.json +3246 -3246
- package/out/types.sol/types.json +39 -39
- package/out/world/src/IERC165.sol/IERC165.json +63 -57
- package/out/worldResourceTypes.sol/worldResourceTypes.json +87 -87
- package/package.json +8 -8
@@ -2,16 +2,16 @@
|
|
2
2
|
"abi": [],
|
3
3
|
"bytecode": {
|
4
4
|
"object": "0x602d6037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000815000a",
|
5
|
-
"sourceMap": "
|
5
|
+
"sourceMap": "2259:1663:98:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;2259:1663:98;;;;;;;;;;;;;;;;;",
|
6
6
|
"linkReferences": {}
|
7
7
|
},
|
8
8
|
"deployedBytecode": {
|
9
9
|
"object": "0x73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000815000a",
|
10
|
-
"sourceMap": "
|
10
|
+
"sourceMap": "2259:1663:98:-:0;;;;;;;;",
|
11
11
|
"linkReferences": {}
|
12
12
|
},
|
13
13
|
"methodIdentifiers": {},
|
14
|
-
"rawMetadata": "{\"compiler\":{\"version\":\"0.8.21+commit.d9974bed\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"node_modules/@latticexyz/world/src/WorldResourceId.sol\":\"WorldResourceIdInstance\"},\"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\":\"0xb2c27c7b8f974f1e3c70dd82c92f35f5bbd2887e16afe454e6dbc38300a51feb\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6cbdbcc95835f67030eebdebeaf0bfd6faa612381179e7f7be8b9d3c00b20878\",\"dweb:/ipfs/QmNeZU5MmRQqhcLxN6BA2BQvgEst8yg67F4VQoPJEEK6kg\"]},\"node_modules/@latticexyz/world/src/WorldResourceId.sol\":{\"keccak256\":\"
|
14
|
+
"rawMetadata": "{\"compiler\":{\"version\":\"0.8.21+commit.d9974bed\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"title\":\"WorldResourceIdInstance\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"notice\":\"A library for handling instances of World Resource IDs.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"node_modules/@latticexyz/world/src/WorldResourceId.sol\":\"WorldResourceIdInstance\"},\"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\":\"0xb2c27c7b8f974f1e3c70dd82c92f35f5bbd2887e16afe454e6dbc38300a51feb\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6cbdbcc95835f67030eebdebeaf0bfd6faa612381179e7f7be8b9d3c00b20878\",\"dweb:/ipfs/QmNeZU5MmRQqhcLxN6BA2BQvgEst8yg67F4VQoPJEEK6kg\"]},\"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"
|
@@ -74,10 +74,10 @@
|
|
74
74
|
"license": "MIT"
|
75
75
|
},
|
76
76
|
"node_modules/@latticexyz/world/src/WorldResourceId.sol": {
|
77
|
-
"keccak256": "
|
77
|
+
"keccak256": "0xb7bfae2890004001221b3902d185c14cfea0e606d16914f6b7f81cf112aa9417",
|
78
78
|
"urls": [
|
79
|
-
"bzz-raw://
|
80
|
-
"dweb:/ipfs/
|
79
|
+
"bzz-raw://acfd0d09166fc1bf16a8a5c80fbae1bd42426b2fcbab3c492bc836ea5c0375fb",
|
80
|
+
"dweb:/ipfs/QmTzZWHVBkx8hipFVpgEwAbZpr4c6hfr7yf7R71JojT3NK"
|
81
81
|
],
|
82
82
|
"license": "MIT"
|
83
83
|
},
|
@@ -90,10 +90,10 @@
|
|
90
90
|
"license": "MIT"
|
91
91
|
},
|
92
92
|
"node_modules/@latticexyz/world/src/worldResourceTypes.sol": {
|
93
|
-
"keccak256": "
|
93
|
+
"keccak256": "0xe31ee781596541f60ed71ef327c9d26ffc899e7fb3f4991c67406518bfc00746",
|
94
94
|
"urls": [
|
95
|
-
"bzz-raw://
|
96
|
-
"dweb:/ipfs/
|
95
|
+
"bzz-raw://f7b864fea8c77833a322b16c4673f110d5065d0cafcedecd07895699cf4258c2",
|
96
|
+
"dweb:/ipfs/QmRkzXVjMLwQFWxjEjgfdXVPAp6SU4zfxPo4NJcmz8HwH9"
|
97
97
|
],
|
98
98
|
"license": "MIT"
|
99
99
|
}
|
@@ -102,59 +102,59 @@
|
|
102
102
|
},
|
103
103
|
"ast": {
|
104
104
|
"absolutePath": "node_modules/@latticexyz/world/src/WorldResourceId.sol",
|
105
|
-
"id":
|
105
|
+
"id": 39171,
|
106
106
|
"exportedSymbols": {
|
107
107
|
"Bytes": [
|
108
|
-
|
108
|
+
25113
|
109
109
|
],
|
110
110
|
"MASK_RESOURCE_NAMESPACE": [
|
111
|
-
|
111
|
+
39301
|
112
112
|
],
|
113
113
|
"NAMESPACE_BITS": [
|
114
|
-
|
114
|
+
38905
|
115
115
|
],
|
116
116
|
"NAMESPACE_MASK": [
|
117
|
-
|
117
|
+
38935
|
118
118
|
],
|
119
119
|
"NAME_BITS": [
|
120
|
-
|
120
|
+
38910
|
121
121
|
],
|
122
122
|
"RESOURCE_NAMESPACE": [
|
123
|
-
|
123
|
+
39289
|
124
124
|
],
|
125
125
|
"ROOT_NAME": [
|
126
|
-
|
126
|
+
39219
|
127
127
|
],
|
128
128
|
"ROOT_NAMESPACE": [
|
129
|
-
|
129
|
+
39216
|
130
130
|
],
|
131
131
|
"ROOT_NAMESPACE_STRING": [
|
132
|
-
|
132
|
+
38916
|
133
133
|
],
|
134
134
|
"ROOT_NAME_STRING": [
|
135
|
-
|
135
|
+
38922
|
136
136
|
],
|
137
137
|
"ResourceId": [
|
138
|
-
|
138
|
+
26238
|
139
139
|
],
|
140
140
|
"ResourceIdInstance": [
|
141
|
-
|
141
|
+
26302
|
142
142
|
],
|
143
143
|
"TYPE_BITS": [
|
144
|
-
|
144
|
+
26243
|
145
145
|
],
|
146
146
|
"WorldResourceIdInstance": [
|
147
|
-
|
147
|
+
39170
|
148
148
|
],
|
149
149
|
"WorldResourceIdLib": [
|
150
|
-
|
150
|
+
39049
|
151
151
|
]
|
152
152
|
},
|
153
153
|
"nodeType": "SourceUnit",
|
154
|
-
"src": "32:
|
154
|
+
"src": "32:3891:98",
|
155
155
|
"nodes": [
|
156
156
|
{
|
157
|
-
"id":
|
157
|
+
"id": 38888,
|
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": 38890,
|
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": 39171,
|
177
|
+
"sourceUnit": 25114,
|
178
178
|
"symbolAliases": [
|
179
179
|
{
|
180
180
|
"foreign": {
|
181
|
-
"id":
|
181
|
+
"id": 38889,
|
182
182
|
"name": "Bytes",
|
183
183
|
"nodeType": "Identifier",
|
184
184
|
"overloadedDeclarations": [],
|
185
|
-
"referencedDeclaration":
|
185
|
+
"referencedDeclaration": 25113,
|
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": 38894,
|
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": 39171,
|
203
|
+
"sourceUnit": 26303,
|
204
204
|
"symbolAliases": [
|
205
205
|
{
|
206
206
|
"foreign": {
|
207
|
-
"id":
|
207
|
+
"id": 38891,
|
208
208
|
"name": "ResourceId",
|
209
209
|
"nodeType": "Identifier",
|
210
210
|
"overloadedDeclarations": [],
|
211
|
-
"referencedDeclaration":
|
211
|
+
"referencedDeclaration": 26238,
|
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": 38892,
|
220
220
|
"name": "ResourceIdInstance",
|
221
221
|
"nodeType": "Identifier",
|
222
222
|
"overloadedDeclarations": [],
|
223
|
-
"referencedDeclaration":
|
223
|
+
"referencedDeclaration": 26302,
|
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": 38893,
|
232
232
|
"name": "TYPE_BITS",
|
233
233
|
"nodeType": "Identifier",
|
234
234
|
"overloadedDeclarations": [],
|
235
|
-
"referencedDeclaration":
|
235
|
+
"referencedDeclaration": 26243,
|
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": 38897,
|
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": 39171,
|
253
|
+
"sourceUnit": 39271,
|
254
254
|
"symbolAliases": [
|
255
255
|
{
|
256
256
|
"foreign": {
|
257
|
-
"id":
|
257
|
+
"id": 38895,
|
258
258
|
"name": "ROOT_NAMESPACE",
|
259
259
|
"nodeType": "Identifier",
|
260
260
|
"overloadedDeclarations": [],
|
261
|
-
"referencedDeclaration":
|
261
|
+
"referencedDeclaration": 39216,
|
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": 38896,
|
270
270
|
"name": "ROOT_NAME",
|
271
271
|
"nodeType": "Identifier",
|
272
272
|
"overloadedDeclarations": [],
|
273
|
-
"referencedDeclaration":
|
273
|
+
"referencedDeclaration": 39219,
|
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": 38900,
|
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": 39171,
|
291
|
+
"sourceUnit": 39314,
|
292
292
|
"symbolAliases": [
|
293
293
|
{
|
294
294
|
"foreign": {
|
295
|
-
"id":
|
295
|
+
"id": 38898,
|
296
296
|
"name": "RESOURCE_NAMESPACE",
|
297
297
|
"nodeType": "Identifier",
|
298
298
|
"overloadedDeclarations": [],
|
299
|
-
"referencedDeclaration":
|
299
|
+
"referencedDeclaration": 39289,
|
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": 38899,
|
308
308
|
"name": "MASK_RESOURCE_NAMESPACE",
|
309
309
|
"nodeType": "Identifier",
|
310
310
|
"overloadedDeclarations": [],
|
311
|
-
"referencedDeclaration":
|
311
|
+
"referencedDeclaration": 39301,
|
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": 38905,
|
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": 39171,
|
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": 38901,
|
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": 38904,
|
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": 38902,
|
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": 38903,
|
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": 38910,
|
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": 39171,
|
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": 38906,
|
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": 38909,
|
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": 38907,
|
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": 38908,
|
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": 38916,
|
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": 39171,
|
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": 38911,
|
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": 38914,
|
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": 38913,
|
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": 38912,
|
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": 38915,
|
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": 38922,
|
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": 39171,
|
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": 38917,
|
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": 38920,
|
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": 38919,
|
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": 38918,
|
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": 38921,
|
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": 38935,
|
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": 39171,
|
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": 38923,
|
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": 38934,
|
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": 38930,
|
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": 38928,
|
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": 38927,
|
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": 38926,
|
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": 38929,
|
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": 38925,
|
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": 38924,
|
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": 38931,
|
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": 38932,
|
817
817
|
"name": "TYPE_BITS",
|
818
818
|
"nodeType": "Identifier",
|
819
819
|
"overloadedDeclarations": [],
|
820
|
-
"referencedDeclaration":
|
820
|
+
"referencedDeclaration": 26243,
|
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": 38933,
|
829
829
|
"isConstant": false,
|
830
830
|
"isInlineArray": false,
|
831
831
|
"isLValue": false,
|
@@ -847,19 +847,19 @@
|
|
847
847
|
"visibility": "internal"
|
848
848
|
},
|
849
849
|
{
|
850
|
-
"id":
|
850
|
+
"id": 39049,
|
851
851
|
"nodeType": "ContractDefinition",
|
852
|
-
"src": "
|
852
|
+
"src": "757:1391:98",
|
853
853
|
"nodes": [
|
854
854
|
{
|
855
|
-
"id":
|
855
|
+
"id": 38977,
|
856
856
|
"nodeType": "FunctionDefinition",
|
857
|
-
"src": "
|
857
|
+
"src": "1008:257:98",
|
858
858
|
"nodes": [],
|
859
859
|
"body": {
|
860
|
-
"id":
|
860
|
+
"id": 38976,
|
861
861
|
"nodeType": "Block",
|
862
|
-
"src": "
|
862
|
+
"src": "1107:158:98",
|
863
863
|
"nodes": [],
|
864
864
|
"statements": [
|
865
865
|
{
|
@@ -870,7 +870,7 @@
|
|
870
870
|
"typeIdentifier": "t_bytes32",
|
871
871
|
"typeString": "bytes32"
|
872
872
|
},
|
873
|
-
"id":
|
873
|
+
"id": 38973,
|
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": 38962,
|
884
884
|
"isConstant": false,
|
885
885
|
"isLValue": false,
|
886
886
|
"isPure": false,
|
@@ -888,12 +888,12 @@
|
|
888
888
|
"leftExpression": {
|
889
889
|
"arguments": [
|
890
890
|
{
|
891
|
-
"id":
|
891
|
+
"id": 38953,
|
892
892
|
"name": "typeId",
|
893
893
|
"nodeType": "Identifier",
|
894
894
|
"overloadedDeclarations": [],
|
895
|
-
"referencedDeclaration":
|
896
|
-
"src": "
|
895
|
+
"referencedDeclaration": 38939,
|
896
|
+
"src": "1159:6:98",
|
897
897
|
"typeDescriptions": {
|
898
898
|
"typeIdentifier": "t_bytes2",
|
899
899
|
"typeString": "bytes2"
|
@@ -907,26 +907,26 @@
|
|
907
907
|
"typeString": "bytes2"
|
908
908
|
}
|
909
909
|
],
|
910
|
-
"id":
|
910
|
+
"id": 38952,
|
911
911
|
"isConstant": false,
|
912
912
|
"isLValue": false,
|
913
913
|
"isPure": true,
|
914
914
|
"lValueRequested": false,
|
915
915
|
"nodeType": "ElementaryTypeNameExpression",
|
916
|
-
"src": "
|
916
|
+
"src": "1151:7:98",
|
917
917
|
"typeDescriptions": {
|
918
918
|
"typeIdentifier": "t_type$_t_bytes32_$",
|
919
919
|
"typeString": "type(bytes32)"
|
920
920
|
},
|
921
921
|
"typeName": {
|
922
|
-
"id":
|
922
|
+
"id": 38951,
|
923
923
|
"name": "bytes32",
|
924
924
|
"nodeType": "ElementaryTypeName",
|
925
|
-
"src": "
|
925
|
+
"src": "1151:7:98",
|
926
926
|
"typeDescriptions": {}
|
927
927
|
}
|
928
928
|
},
|
929
|
-
"id":
|
929
|
+
"id": 38954,
|
930
930
|
"isConstant": false,
|
931
931
|
"isLValue": false,
|
932
932
|
"isPure": false,
|
@@ -935,7 +935,7 @@
|
|
935
935
|
"nameLocations": [],
|
936
936
|
"names": [],
|
937
937
|
"nodeType": "FunctionCall",
|
938
|
-
"src": "
|
938
|
+
"src": "1151:15:98",
|
939
939
|
"tryCall": false,
|
940
940
|
"typeDescriptions": {
|
941
941
|
"typeIdentifier": "t_bytes32",
|
@@ -951,7 +951,7 @@
|
|
951
951
|
"typeIdentifier": "t_bytes32",
|
952
952
|
"typeString": "bytes32"
|
953
953
|
},
|
954
|
-
"id":
|
954
|
+
"id": 38960,
|
955
955
|
"isConstant": false,
|
956
956
|
"isLValue": false,
|
957
957
|
"isPure": false,
|
@@ -959,12 +959,12 @@
|
|
959
959
|
"leftExpression": {
|
960
960
|
"arguments": [
|
961
961
|
{
|
962
|
-
"id":
|
962
|
+
"id": 38957,
|
963
963
|
"name": "namespace",
|
964
964
|
"nodeType": "Identifier",
|
965
965
|
"overloadedDeclarations": [],
|
966
|
-
"referencedDeclaration":
|
967
|
-
"src": "
|
966
|
+
"referencedDeclaration": 38941,
|
967
|
+
"src": "1178:9:98",
|
968
968
|
"typeDescriptions": {
|
969
969
|
"typeIdentifier": "t_bytes14",
|
970
970
|
"typeString": "bytes14"
|
@@ -978,26 +978,26 @@
|
|
978
978
|
"typeString": "bytes14"
|
979
979
|
}
|
980
980
|
],
|
981
|
-
"id":
|
981
|
+
"id": 38956,
|
982
982
|
"isConstant": false,
|
983
983
|
"isLValue": false,
|
984
984
|
"isPure": true,
|
985
985
|
"lValueRequested": false,
|
986
986
|
"nodeType": "ElementaryTypeNameExpression",
|
987
|
-
"src": "
|
987
|
+
"src": "1170:7:98",
|
988
988
|
"typeDescriptions": {
|
989
989
|
"typeIdentifier": "t_type$_t_bytes32_$",
|
990
990
|
"typeString": "type(bytes32)"
|
991
991
|
},
|
992
992
|
"typeName": {
|
993
|
-
"id":
|
993
|
+
"id": 38955,
|
994
994
|
"name": "bytes32",
|
995
995
|
"nodeType": "ElementaryTypeName",
|
996
|
-
"src": "
|
996
|
+
"src": "1170:7:98",
|
997
997
|
"typeDescriptions": {}
|
998
998
|
}
|
999
999
|
},
|
1000
|
-
"id":
|
1000
|
+
"id": 38958,
|
1001
1001
|
"isConstant": false,
|
1002
1002
|
"isLValue": false,
|
1003
1003
|
"isPure": false,
|
@@ -1006,7 +1006,7 @@
|
|
1006
1006
|
"nameLocations": [],
|
1007
1007
|
"names": [],
|
1008
1008
|
"nodeType": "FunctionCall",
|
1009
|
-
"src": "
|
1009
|
+
"src": "1170:18:98",
|
1010
1010
|
"tryCall": false,
|
1011
1011
|
"typeDescriptions": {
|
1012
1012
|
"typeIdentifier": "t_bytes32",
|
@@ -1016,38 +1016,38 @@
|
|
1016
1016
|
"nodeType": "BinaryOperation",
|
1017
1017
|
"operator": ">>",
|
1018
1018
|
"rightExpression": {
|
1019
|
-
"id":
|
1019
|
+
"id": 38959,
|
1020
1020
|
"name": "TYPE_BITS",
|
1021
1021
|
"nodeType": "Identifier",
|
1022
1022
|
"overloadedDeclarations": [],
|
1023
|
-
"referencedDeclaration":
|
1024
|
-
"src": "
|
1023
|
+
"referencedDeclaration": 26243,
|
1024
|
+
"src": "1192:9:98",
|
1025
1025
|
"typeDescriptions": {
|
1026
1026
|
"typeIdentifier": "t_uint256",
|
1027
1027
|
"typeString": "uint256"
|
1028
1028
|
}
|
1029
1029
|
},
|
1030
|
-
"src": "
|
1030
|
+
"src": "1170:31:98",
|
1031
1031
|
"typeDescriptions": {
|
1032
1032
|
"typeIdentifier": "t_bytes32",
|
1033
1033
|
"typeString": "bytes32"
|
1034
1034
|
}
|
1035
1035
|
}
|
1036
1036
|
],
|
1037
|
-
"id":
|
1037
|
+
"id": 38961,
|
1038
1038
|
"isConstant": false,
|
1039
1039
|
"isInlineArray": false,
|
1040
1040
|
"isLValue": false,
|
1041
1041
|
"isPure": false,
|
1042
1042
|
"lValueRequested": false,
|
1043
1043
|
"nodeType": "TupleExpression",
|
1044
|
-
"src": "
|
1044
|
+
"src": "1169:33:98",
|
1045
1045
|
"typeDescriptions": {
|
1046
1046
|
"typeIdentifier": "t_bytes32",
|
1047
1047
|
"typeString": "bytes32"
|
1048
1048
|
}
|
1049
1049
|
},
|
1050
|
-
"src": "
|
1050
|
+
"src": "1151:51:98",
|
1051
1051
|
"typeDescriptions": {
|
1052
1052
|
"typeIdentifier": "t_bytes32",
|
1053
1053
|
"typeString": "bytes32"
|
@@ -1062,7 +1062,7 @@
|
|
1062
1062
|
"typeIdentifier": "t_bytes32",
|
1063
1063
|
"typeString": "bytes32"
|
1064
1064
|
},
|
1065
|
-
"id":
|
1065
|
+
"id": 38971,
|
1066
1066
|
"isConstant": false,
|
1067
1067
|
"isLValue": false,
|
1068
1068
|
"isPure": false,
|
@@ -1070,12 +1070,12 @@
|
|
1070
1070
|
"leftExpression": {
|
1071
1071
|
"arguments": [
|
1072
1072
|
{
|
1073
|
-
"id":
|
1073
|
+
"id": 38965,
|
1074
1074
|
"name": "name",
|
1075
1075
|
"nodeType": "Identifier",
|
1076
1076
|
"overloadedDeclarations": [],
|
1077
|
-
"referencedDeclaration":
|
1078
|
-
"src": "
|
1077
|
+
"referencedDeclaration": 38943,
|
1078
|
+
"src": "1214:4:98",
|
1079
1079
|
"typeDescriptions": {
|
1080
1080
|
"typeIdentifier": "t_bytes16",
|
1081
1081
|
"typeString": "bytes16"
|
@@ -1089,26 +1089,26 @@
|
|
1089
1089
|
"typeString": "bytes16"
|
1090
1090
|
}
|
1091
1091
|
],
|
1092
|
-
"id":
|
1092
|
+
"id": 38964,
|
1093
1093
|
"isConstant": false,
|
1094
1094
|
"isLValue": false,
|
1095
1095
|
"isPure": true,
|
1096
1096
|
"lValueRequested": false,
|
1097
1097
|
"nodeType": "ElementaryTypeNameExpression",
|
1098
|
-
"src": "
|
1098
|
+
"src": "1206:7:98",
|
1099
1099
|
"typeDescriptions": {
|
1100
1100
|
"typeIdentifier": "t_type$_t_bytes32_$",
|
1101
1101
|
"typeString": "type(bytes32)"
|
1102
1102
|
},
|
1103
1103
|
"typeName": {
|
1104
|
-
"id":
|
1104
|
+
"id": 38963,
|
1105
1105
|
"name": "bytes32",
|
1106
1106
|
"nodeType": "ElementaryTypeName",
|
1107
|
-
"src": "
|
1107
|
+
"src": "1206:7:98",
|
1108
1108
|
"typeDescriptions": {}
|
1109
1109
|
}
|
1110
1110
|
},
|
1111
|
-
"id":
|
1111
|
+
"id": 38966,
|
1112
1112
|
"isConstant": false,
|
1113
1113
|
"isLValue": false,
|
1114
1114
|
"isPure": false,
|
@@ -1117,7 +1117,7 @@
|
|
1117
1117
|
"nameLocations": [],
|
1118
1118
|
"names": [],
|
1119
1119
|
"nodeType": "FunctionCall",
|
1120
|
-
"src": "
|
1120
|
+
"src": "1206:13:98",
|
1121
1121
|
"tryCall": false,
|
1122
1122
|
"typeDescriptions": {
|
1123
1123
|
"typeIdentifier": "t_bytes32",
|
@@ -1133,18 +1133,18 @@
|
|
1133
1133
|
"typeIdentifier": "t_uint256",
|
1134
1134
|
"typeString": "uint256"
|
1135
1135
|
},
|
1136
|
-
"id":
|
1136
|
+
"id": 38969,
|
1137
1137
|
"isConstant": false,
|
1138
1138
|
"isLValue": false,
|
1139
1139
|
"isPure": true,
|
1140
1140
|
"lValueRequested": false,
|
1141
1141
|
"leftExpression": {
|
1142
|
-
"id":
|
1142
|
+
"id": 38967,
|
1143
1143
|
"name": "TYPE_BITS",
|
1144
1144
|
"nodeType": "Identifier",
|
1145
1145
|
"overloadedDeclarations": [],
|
1146
|
-
"referencedDeclaration":
|
1147
|
-
"src": "
|
1146
|
+
"referencedDeclaration": 26243,
|
1147
|
+
"src": "1224:9:98",
|
1148
1148
|
"typeDescriptions": {
|
1149
1149
|
"typeIdentifier": "t_uint256",
|
1150
1150
|
"typeString": "uint256"
|
@@ -1153,58 +1153,58 @@
|
|
1153
1153
|
"nodeType": "BinaryOperation",
|
1154
1154
|
"operator": "+",
|
1155
1155
|
"rightExpression": {
|
1156
|
-
"id":
|
1156
|
+
"id": 38968,
|
1157
1157
|
"name": "NAMESPACE_BITS",
|
1158
1158
|
"nodeType": "Identifier",
|
1159
1159
|
"overloadedDeclarations": [],
|
1160
|
-
"referencedDeclaration":
|
1161
|
-
"src": "
|
1160
|
+
"referencedDeclaration": 38905,
|
1161
|
+
"src": "1236:14:98",
|
1162
1162
|
"typeDescriptions": {
|
1163
1163
|
"typeIdentifier": "t_uint256",
|
1164
1164
|
"typeString": "uint256"
|
1165
1165
|
}
|
1166
1166
|
},
|
1167
|
-
"src": "
|
1167
|
+
"src": "1224:26:98",
|
1168
1168
|
"typeDescriptions": {
|
1169
1169
|
"typeIdentifier": "t_uint256",
|
1170
1170
|
"typeString": "uint256"
|
1171
1171
|
}
|
1172
1172
|
}
|
1173
1173
|
],
|
1174
|
-
"id":
|
1174
|
+
"id": 38970,
|
1175
1175
|
"isConstant": false,
|
1176
1176
|
"isInlineArray": false,
|
1177
1177
|
"isLValue": false,
|
1178
1178
|
"isPure": true,
|
1179
1179
|
"lValueRequested": false,
|
1180
1180
|
"nodeType": "TupleExpression",
|
1181
|
-
"src": "
|
1181
|
+
"src": "1223:28:98",
|
1182
1182
|
"typeDescriptions": {
|
1183
1183
|
"typeIdentifier": "t_uint256",
|
1184
1184
|
"typeString": "uint256"
|
1185
1185
|
}
|
1186
1186
|
},
|
1187
|
-
"src": "
|
1187
|
+
"src": "1206:45:98",
|
1188
1188
|
"typeDescriptions": {
|
1189
1189
|
"typeIdentifier": "t_bytes32",
|
1190
1190
|
"typeString": "bytes32"
|
1191
1191
|
}
|
1192
1192
|
}
|
1193
1193
|
],
|
1194
|
-
"id":
|
1194
|
+
"id": 38972,
|
1195
1195
|
"isConstant": false,
|
1196
1196
|
"isInlineArray": false,
|
1197
1197
|
"isLValue": false,
|
1198
1198
|
"isPure": false,
|
1199
1199
|
"lValueRequested": false,
|
1200
1200
|
"nodeType": "TupleExpression",
|
1201
|
-
"src": "
|
1201
|
+
"src": "1205:47:98",
|
1202
1202
|
"typeDescriptions": {
|
1203
1203
|
"typeIdentifier": "t_bytes32",
|
1204
1204
|
"typeString": "bytes32"
|
1205
1205
|
}
|
1206
1206
|
},
|
1207
|
-
"src": "
|
1207
|
+
"src": "1151:101:98",
|
1208
1208
|
"typeDescriptions": {
|
1209
1209
|
"typeIdentifier": "t_bytes32",
|
1210
1210
|
"typeString": "bytes32"
|
@@ -1219,32 +1219,32 @@
|
|
1219
1219
|
}
|
1220
1220
|
],
|
1221
1221
|
"expression": {
|
1222
|
-
"id":
|
1222
|
+
"id": 38949,
|
1223
1223
|
"name": "ResourceId",
|
1224
1224
|
"nodeType": "Identifier",
|
1225
1225
|
"overloadedDeclarations": [],
|
1226
|
-
"referencedDeclaration":
|
1227
|
-
"src": "
|
1226
|
+
"referencedDeclaration": 26238,
|
1227
|
+
"src": "1126:10:98",
|
1228
1228
|
"typeDescriptions": {
|
1229
|
-
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$
|
1229
|
+
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$26238_$",
|
1230
1230
|
"typeString": "type(ResourceId)"
|
1231
1231
|
}
|
1232
1232
|
},
|
1233
|
-
"id":
|
1233
|
+
"id": 38950,
|
1234
1234
|
"isConstant": false,
|
1235
1235
|
"isLValue": false,
|
1236
1236
|
"isPure": true,
|
1237
1237
|
"lValueRequested": false,
|
1238
|
-
"memberLocation": "
|
1238
|
+
"memberLocation": "1137:4:98",
|
1239
1239
|
"memberName": "wrap",
|
1240
1240
|
"nodeType": "MemberAccess",
|
1241
|
-
"src": "
|
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_$26238_$",
|
1244
1244
|
"typeString": "function (bytes32) pure returns (ResourceId)"
|
1245
1245
|
}
|
1246
1246
|
},
|
1247
|
-
"id":
|
1247
|
+
"id": 38974,
|
1248
1248
|
"isConstant": false,
|
1249
1249
|
"isLValue": false,
|
1250
1250
|
"isPure": false,
|
@@ -1253,44 +1253,44 @@
|
|
1253
1253
|
"nameLocations": [],
|
1254
1254
|
"names": [],
|
1255
1255
|
"nodeType": "FunctionCall",
|
1256
|
-
"src": "
|
1256
|
+
"src": "1126:134:98",
|
1257
1257
|
"tryCall": false,
|
1258
1258
|
"typeDescriptions": {
|
1259
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
1259
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
1260
1260
|
"typeString": "ResourceId"
|
1261
1261
|
}
|
1262
1262
|
},
|
1263
|
-
"functionReturnParameters":
|
1264
|
-
"id":
|
1263
|
+
"functionReturnParameters": 38948,
|
1264
|
+
"id": 38975,
|
1265
1265
|
"nodeType": "Return",
|
1266
|
-
"src": "
|
1266
|
+
"src": "1113:147:98"
|
1267
1267
|
}
|
1268
1268
|
]
|
1269
1269
|
},
|
1270
1270
|
"documentation": {
|
1271
|
-
"id":
|
1271
|
+
"id": 38937,
|
1272
1272
|
"nodeType": "StructuredDocumentation",
|
1273
|
-
"src": "
|
1274
|
-
"text": "
|
1273
|
+
"src": "788:217:98",
|
1274
|
+
"text": " @notice Encode a resource ID.\n @param typeId The resource type ID.\n @param namespace The namespace of the resource.\n @param name The name of the resource.\n @return A 32-byte resource ID."
|
1275
1275
|
},
|
1276
1276
|
"implemented": true,
|
1277
1277
|
"kind": "function",
|
1278
1278
|
"modifiers": [],
|
1279
1279
|
"name": "encode",
|
1280
|
-
"nameLocation": "
|
1280
|
+
"nameLocation": "1017:6:98",
|
1281
1281
|
"parameters": {
|
1282
|
-
"id":
|
1282
|
+
"id": 38944,
|
1283
1283
|
"nodeType": "ParameterList",
|
1284
1284
|
"parameters": [
|
1285
1285
|
{
|
1286
1286
|
"constant": false,
|
1287
|
-
"id":
|
1287
|
+
"id": 38939,
|
1288
1288
|
"mutability": "mutable",
|
1289
1289
|
"name": "typeId",
|
1290
|
-
"nameLocation": "
|
1290
|
+
"nameLocation": "1031:6:98",
|
1291
1291
|
"nodeType": "VariableDeclaration",
|
1292
|
-
"scope":
|
1293
|
-
"src": "
|
1292
|
+
"scope": 38977,
|
1293
|
+
"src": "1024:13:98",
|
1294
1294
|
"stateVariable": false,
|
1295
1295
|
"storageLocation": "default",
|
1296
1296
|
"typeDescriptions": {
|
@@ -1298,10 +1298,10 @@
|
|
1298
1298
|
"typeString": "bytes2"
|
1299
1299
|
},
|
1300
1300
|
"typeName": {
|
1301
|
-
"id":
|
1301
|
+
"id": 38938,
|
1302
1302
|
"name": "bytes2",
|
1303
1303
|
"nodeType": "ElementaryTypeName",
|
1304
|
-
"src": "
|
1304
|
+
"src": "1024:6:98",
|
1305
1305
|
"typeDescriptions": {
|
1306
1306
|
"typeIdentifier": "t_bytes2",
|
1307
1307
|
"typeString": "bytes2"
|
@@ -1311,13 +1311,13 @@
|
|
1311
1311
|
},
|
1312
1312
|
{
|
1313
1313
|
"constant": false,
|
1314
|
-
"id":
|
1314
|
+
"id": 38941,
|
1315
1315
|
"mutability": "mutable",
|
1316
1316
|
"name": "namespace",
|
1317
|
-
"nameLocation": "
|
1317
|
+
"nameLocation": "1047:9:98",
|
1318
1318
|
"nodeType": "VariableDeclaration",
|
1319
|
-
"scope":
|
1320
|
-
"src": "
|
1319
|
+
"scope": 38977,
|
1320
|
+
"src": "1039:17:98",
|
1321
1321
|
"stateVariable": false,
|
1322
1322
|
"storageLocation": "default",
|
1323
1323
|
"typeDescriptions": {
|
@@ -1325,10 +1325,10 @@
|
|
1325
1325
|
"typeString": "bytes14"
|
1326
1326
|
},
|
1327
1327
|
"typeName": {
|
1328
|
-
"id":
|
1328
|
+
"id": 38940,
|
1329
1329
|
"name": "bytes14",
|
1330
1330
|
"nodeType": "ElementaryTypeName",
|
1331
|
-
"src": "
|
1331
|
+
"src": "1039:7:98",
|
1332
1332
|
"typeDescriptions": {
|
1333
1333
|
"typeIdentifier": "t_bytes14",
|
1334
1334
|
"typeString": "bytes14"
|
@@ -1338,13 +1338,13 @@
|
|
1338
1338
|
},
|
1339
1339
|
{
|
1340
1340
|
"constant": false,
|
1341
|
-
"id":
|
1341
|
+
"id": 38943,
|
1342
1342
|
"mutability": "mutable",
|
1343
1343
|
"name": "name",
|
1344
|
-
"nameLocation": "
|
1344
|
+
"nameLocation": "1066:4:98",
|
1345
1345
|
"nodeType": "VariableDeclaration",
|
1346
|
-
"scope":
|
1347
|
-
"src": "
|
1346
|
+
"scope": 38977,
|
1347
|
+
"src": "1058:12:98",
|
1348
1348
|
"stateVariable": false,
|
1349
1349
|
"storageLocation": "default",
|
1350
1350
|
"typeDescriptions": {
|
@@ -1352,10 +1352,10 @@
|
|
1352
1352
|
"typeString": "bytes16"
|
1353
1353
|
},
|
1354
1354
|
"typeName": {
|
1355
|
-
"id":
|
1355
|
+
"id": 38942,
|
1356
1356
|
"name": "bytes16",
|
1357
1357
|
"nodeType": "ElementaryTypeName",
|
1358
|
-
"src": "
|
1358
|
+
"src": "1058:7:98",
|
1359
1359
|
"typeDescriptions": {
|
1360
1360
|
"typeIdentifier": "t_bytes16",
|
1361
1361
|
"typeString": "bytes16"
|
@@ -1364,66 +1364,66 @@
|
|
1364
1364
|
"visibility": "internal"
|
1365
1365
|
}
|
1366
1366
|
],
|
1367
|
-
"src": "
|
1367
|
+
"src": "1023:48:98"
|
1368
1368
|
},
|
1369
1369
|
"returnParameters": {
|
1370
|
-
"id":
|
1370
|
+
"id": 38948,
|
1371
1371
|
"nodeType": "ParameterList",
|
1372
1372
|
"parameters": [
|
1373
1373
|
{
|
1374
1374
|
"constant": false,
|
1375
|
-
"id":
|
1375
|
+
"id": 38947,
|
1376
1376
|
"mutability": "mutable",
|
1377
1377
|
"name": "",
|
1378
1378
|
"nameLocation": "-1:-1:-1",
|
1379
1379
|
"nodeType": "VariableDeclaration",
|
1380
|
-
"scope":
|
1381
|
-
"src": "
|
1380
|
+
"scope": 38977,
|
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_$26238",
|
1386
1386
|
"typeString": "ResourceId"
|
1387
1387
|
},
|
1388
1388
|
"typeName": {
|
1389
|
-
"id":
|
1389
|
+
"id": 38946,
|
1390
1390
|
"nodeType": "UserDefinedTypeName",
|
1391
1391
|
"pathNode": {
|
1392
|
-
"id":
|
1392
|
+
"id": 38945,
|
1393
1393
|
"name": "ResourceId",
|
1394
1394
|
"nameLocations": [
|
1395
|
-
"
|
1395
|
+
"1095:10:98"
|
1396
1396
|
],
|
1397
1397
|
"nodeType": "IdentifierPath",
|
1398
|
-
"referencedDeclaration":
|
1399
|
-
"src": "
|
1398
|
+
"referencedDeclaration": 26238,
|
1399
|
+
"src": "1095:10:98"
|
1400
1400
|
},
|
1401
|
-
"referencedDeclaration":
|
1402
|
-
"src": "
|
1401
|
+
"referencedDeclaration": 26238,
|
1402
|
+
"src": "1095:10:98",
|
1403
1403
|
"typeDescriptions": {
|
1404
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
1404
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
1405
1405
|
"typeString": "ResourceId"
|
1406
1406
|
}
|
1407
1407
|
},
|
1408
1408
|
"visibility": "internal"
|
1409
1409
|
}
|
1410
1410
|
],
|
1411
|
-
"src": "
|
1411
|
+
"src": "1094:12:98"
|
1412
1412
|
},
|
1413
|
-
"scope":
|
1413
|
+
"scope": 39049,
|
1414
1414
|
"stateMutability": "pure",
|
1415
1415
|
"virtual": false,
|
1416
1416
|
"visibility": "internal"
|
1417
1417
|
},
|
1418
1418
|
{
|
1419
|
-
"id":
|
1419
|
+
"id": 39004,
|
1420
1420
|
"nodeType": "FunctionDefinition",
|
1421
|
-
"src": "
|
1421
|
+
"src": "1443:179:98",
|
1422
1422
|
"nodes": [],
|
1423
1423
|
"body": {
|
1424
|
-
"id":
|
1424
|
+
"id": 39003,
|
1425
1425
|
"nodeType": "Block",
|
1426
|
-
"src": "
|
1426
|
+
"src": "1522:100:98",
|
1427
1427
|
"nodes": [],
|
1428
1428
|
"statements": [
|
1429
1429
|
{
|
@@ -1434,7 +1434,7 @@
|
|
1434
1434
|
"typeIdentifier": "t_bytes32",
|
1435
1435
|
"typeString": "bytes32"
|
1436
1436
|
},
|
1437
|
-
"id":
|
1437
|
+
"id": 39000,
|
1438
1438
|
"isConstant": false,
|
1439
1439
|
"isLValue": false,
|
1440
1440
|
"isPure": false,
|
@@ -1442,12 +1442,12 @@
|
|
1442
1442
|
"leftExpression": {
|
1443
1443
|
"arguments": [
|
1444
1444
|
{
|
1445
|
-
"id":
|
1445
|
+
"id": 38990,
|
1446
1446
|
"name": "RESOURCE_NAMESPACE",
|
1447
1447
|
"nodeType": "Identifier",
|
1448
1448
|
"overloadedDeclarations": [],
|
1449
|
-
"referencedDeclaration":
|
1450
|
-
"src": "
|
1449
|
+
"referencedDeclaration": 39289,
|
1450
|
+
"src": "1559:18:98",
|
1451
1451
|
"typeDescriptions": {
|
1452
1452
|
"typeIdentifier": "t_bytes2",
|
1453
1453
|
"typeString": "bytes2"
|
@@ -1461,26 +1461,26 @@
|
|
1461
1461
|
"typeString": "bytes2"
|
1462
1462
|
}
|
1463
1463
|
],
|
1464
|
-
"id":
|
1464
|
+
"id": 38989,
|
1465
1465
|
"isConstant": false,
|
1466
1466
|
"isLValue": false,
|
1467
1467
|
"isPure": true,
|
1468
1468
|
"lValueRequested": false,
|
1469
1469
|
"nodeType": "ElementaryTypeNameExpression",
|
1470
|
-
"src": "
|
1470
|
+
"src": "1551:7:98",
|
1471
1471
|
"typeDescriptions": {
|
1472
1472
|
"typeIdentifier": "t_type$_t_bytes32_$",
|
1473
1473
|
"typeString": "type(bytes32)"
|
1474
1474
|
},
|
1475
1475
|
"typeName": {
|
1476
|
-
"id":
|
1476
|
+
"id": 38988,
|
1477
1477
|
"name": "bytes32",
|
1478
1478
|
"nodeType": "ElementaryTypeName",
|
1479
|
-
"src": "
|
1479
|
+
"src": "1551:7:98",
|
1480
1480
|
"typeDescriptions": {}
|
1481
1481
|
}
|
1482
1482
|
},
|
1483
|
-
"id":
|
1483
|
+
"id": 38991,
|
1484
1484
|
"isConstant": false,
|
1485
1485
|
"isLValue": false,
|
1486
1486
|
"isPure": true,
|
@@ -1489,7 +1489,7 @@
|
|
1489
1489
|
"nameLocations": [],
|
1490
1490
|
"names": [],
|
1491
1491
|
"nodeType": "FunctionCall",
|
1492
|
-
"src": "
|
1492
|
+
"src": "1551:27:98",
|
1493
1493
|
"tryCall": false,
|
1494
1494
|
"typeDescriptions": {
|
1495
1495
|
"typeIdentifier": "t_bytes32",
|
@@ -1505,7 +1505,7 @@
|
|
1505
1505
|
"typeIdentifier": "t_bytes32",
|
1506
1506
|
"typeString": "bytes32"
|
1507
1507
|
},
|
1508
|
-
"id":
|
1508
|
+
"id": 38998,
|
1509
1509
|
"isConstant": false,
|
1510
1510
|
"isLValue": false,
|
1511
1511
|
"isPure": false,
|
@@ -1513,12 +1513,12 @@
|
|
1513
1513
|
"leftExpression": {
|
1514
1514
|
"arguments": [
|
1515
1515
|
{
|
1516
|
-
"id":
|
1516
|
+
"id": 38994,
|
1517
1517
|
"name": "namespace",
|
1518
1518
|
"nodeType": "Identifier",
|
1519
1519
|
"overloadedDeclarations": [],
|
1520
|
-
"referencedDeclaration":
|
1521
|
-
"src": "
|
1520
|
+
"referencedDeclaration": 38980,
|
1521
|
+
"src": "1590:9:98",
|
1522
1522
|
"typeDescriptions": {
|
1523
1523
|
"typeIdentifier": "t_bytes14",
|
1524
1524
|
"typeString": "bytes14"
|
@@ -1532,26 +1532,26 @@
|
|
1532
1532
|
"typeString": "bytes14"
|
1533
1533
|
}
|
1534
1534
|
],
|
1535
|
-
"id":
|
1535
|
+
"id": 38993,
|
1536
1536
|
"isConstant": false,
|
1537
1537
|
"isLValue": false,
|
1538
1538
|
"isPure": true,
|
1539
1539
|
"lValueRequested": false,
|
1540
1540
|
"nodeType": "ElementaryTypeNameExpression",
|
1541
|
-
"src": "
|
1541
|
+
"src": "1582:7:98",
|
1542
1542
|
"typeDescriptions": {
|
1543
1543
|
"typeIdentifier": "t_type$_t_bytes32_$",
|
1544
1544
|
"typeString": "type(bytes32)"
|
1545
1545
|
},
|
1546
1546
|
"typeName": {
|
1547
|
-
"id":
|
1547
|
+
"id": 38992,
|
1548
1548
|
"name": "bytes32",
|
1549
1549
|
"nodeType": "ElementaryTypeName",
|
1550
|
-
"src": "
|
1550
|
+
"src": "1582:7:98",
|
1551
1551
|
"typeDescriptions": {}
|
1552
1552
|
}
|
1553
1553
|
},
|
1554
|
-
"id":
|
1554
|
+
"id": 38995,
|
1555
1555
|
"isConstant": false,
|
1556
1556
|
"isLValue": false,
|
1557
1557
|
"isPure": false,
|
@@ -1560,7 +1560,7 @@
|
|
1560
1560
|
"nameLocations": [],
|
1561
1561
|
"names": [],
|
1562
1562
|
"nodeType": "FunctionCall",
|
1563
|
-
"src": "
|
1563
|
+
"src": "1582:18:98",
|
1564
1564
|
"tryCall": false,
|
1565
1565
|
"typeDescriptions": {
|
1566
1566
|
"typeIdentifier": "t_bytes32",
|
@@ -1572,52 +1572,52 @@
|
|
1572
1572
|
"rightExpression": {
|
1573
1573
|
"components": [
|
1574
1574
|
{
|
1575
|
-
"id":
|
1575
|
+
"id": 38996,
|
1576
1576
|
"name": "TYPE_BITS",
|
1577
1577
|
"nodeType": "Identifier",
|
1578
1578
|
"overloadedDeclarations": [],
|
1579
|
-
"referencedDeclaration":
|
1580
|
-
"src": "
|
1579
|
+
"referencedDeclaration": 26243,
|
1580
|
+
"src": "1605:9:98",
|
1581
1581
|
"typeDescriptions": {
|
1582
1582
|
"typeIdentifier": "t_uint256",
|
1583
1583
|
"typeString": "uint256"
|
1584
1584
|
}
|
1585
1585
|
}
|
1586
1586
|
],
|
1587
|
-
"id":
|
1587
|
+
"id": 38997,
|
1588
1588
|
"isConstant": false,
|
1589
1589
|
"isInlineArray": false,
|
1590
1590
|
"isLValue": false,
|
1591
1591
|
"isPure": true,
|
1592
1592
|
"lValueRequested": false,
|
1593
1593
|
"nodeType": "TupleExpression",
|
1594
|
-
"src": "
|
1594
|
+
"src": "1604:11:98",
|
1595
1595
|
"typeDescriptions": {
|
1596
1596
|
"typeIdentifier": "t_uint256",
|
1597
1597
|
"typeString": "uint256"
|
1598
1598
|
}
|
1599
1599
|
},
|
1600
|
-
"src": "
|
1600
|
+
"src": "1582:33:98",
|
1601
1601
|
"typeDescriptions": {
|
1602
1602
|
"typeIdentifier": "t_bytes32",
|
1603
1603
|
"typeString": "bytes32"
|
1604
1604
|
}
|
1605
1605
|
}
|
1606
1606
|
],
|
1607
|
-
"id":
|
1607
|
+
"id": 38999,
|
1608
1608
|
"isConstant": false,
|
1609
1609
|
"isInlineArray": false,
|
1610
1610
|
"isLValue": false,
|
1611
1611
|
"isPure": false,
|
1612
1612
|
"lValueRequested": false,
|
1613
1613
|
"nodeType": "TupleExpression",
|
1614
|
-
"src": "
|
1614
|
+
"src": "1581:35:98",
|
1615
1615
|
"typeDescriptions": {
|
1616
1616
|
"typeIdentifier": "t_bytes32",
|
1617
1617
|
"typeString": "bytes32"
|
1618
1618
|
}
|
1619
1619
|
},
|
1620
|
-
"src": "
|
1620
|
+
"src": "1551:65:98",
|
1621
1621
|
"typeDescriptions": {
|
1622
1622
|
"typeIdentifier": "t_bytes32",
|
1623
1623
|
"typeString": "bytes32"
|
@@ -1632,32 +1632,32 @@
|
|
1632
1632
|
}
|
1633
1633
|
],
|
1634
1634
|
"expression": {
|
1635
|
-
"id":
|
1635
|
+
"id": 38986,
|
1636
1636
|
"name": "ResourceId",
|
1637
1637
|
"nodeType": "Identifier",
|
1638
1638
|
"overloadedDeclarations": [],
|
1639
|
-
"referencedDeclaration":
|
1640
|
-
"src": "
|
1639
|
+
"referencedDeclaration": 26238,
|
1640
|
+
"src": "1535:10:98",
|
1641
1641
|
"typeDescriptions": {
|
1642
|
-
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$
|
1642
|
+
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$26238_$",
|
1643
1643
|
"typeString": "type(ResourceId)"
|
1644
1644
|
}
|
1645
1645
|
},
|
1646
|
-
"id":
|
1646
|
+
"id": 38987,
|
1647
1647
|
"isConstant": false,
|
1648
1648
|
"isLValue": false,
|
1649
1649
|
"isPure": true,
|
1650
1650
|
"lValueRequested": false,
|
1651
|
-
"memberLocation": "
|
1651
|
+
"memberLocation": "1546:4:98",
|
1652
1652
|
"memberName": "wrap",
|
1653
1653
|
"nodeType": "MemberAccess",
|
1654
|
-
"src": "
|
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_$26238_$",
|
1657
1657
|
"typeString": "function (bytes32) pure returns (ResourceId)"
|
1658
1658
|
}
|
1659
1659
|
},
|
1660
|
-
"id":
|
1660
|
+
"id": 39001,
|
1661
1661
|
"isConstant": false,
|
1662
1662
|
"isLValue": false,
|
1663
1663
|
"isPure": false,
|
@@ -1666,44 +1666,44 @@
|
|
1666
1666
|
"nameLocations": [],
|
1667
1667
|
"names": [],
|
1668
1668
|
"nodeType": "FunctionCall",
|
1669
|
-
"src": "
|
1669
|
+
"src": "1535:82:98",
|
1670
1670
|
"tryCall": false,
|
1671
1671
|
"typeDescriptions": {
|
1672
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
1672
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
1673
1673
|
"typeString": "ResourceId"
|
1674
1674
|
}
|
1675
1675
|
},
|
1676
|
-
"functionReturnParameters":
|
1677
|
-
"id":
|
1676
|
+
"functionReturnParameters": 38985,
|
1677
|
+
"id": 39002,
|
1678
1678
|
"nodeType": "Return",
|
1679
|
-
"src": "
|
1679
|
+
"src": "1528:89:98"
|
1680
1680
|
}
|
1681
1681
|
]
|
1682
1682
|
},
|
1683
1683
|
"documentation": {
|
1684
|
-
"id":
|
1684
|
+
"id": 38978,
|
1685
1685
|
"nodeType": "StructuredDocumentation",
|
1686
|
-
"src": "
|
1687
|
-
"text": "
|
1686
|
+
"src": "1269:171:98",
|
1687
|
+
"text": " @notice Encode a namespace to resource ID.\n @param namespace The namespace to be encoded.\n @return A 32-byte resource ID with the namespace encoded."
|
1688
1688
|
},
|
1689
1689
|
"implemented": true,
|
1690
1690
|
"kind": "function",
|
1691
1691
|
"modifiers": [],
|
1692
1692
|
"name": "encodeNamespace",
|
1693
|
-
"nameLocation": "
|
1693
|
+
"nameLocation": "1452:15:98",
|
1694
1694
|
"parameters": {
|
1695
|
-
"id":
|
1695
|
+
"id": 38981,
|
1696
1696
|
"nodeType": "ParameterList",
|
1697
1697
|
"parameters": [
|
1698
1698
|
{
|
1699
1699
|
"constant": false,
|
1700
|
-
"id":
|
1700
|
+
"id": 38980,
|
1701
1701
|
"mutability": "mutable",
|
1702
1702
|
"name": "namespace",
|
1703
|
-
"nameLocation": "
|
1703
|
+
"nameLocation": "1476:9:98",
|
1704
1704
|
"nodeType": "VariableDeclaration",
|
1705
|
-
"scope":
|
1706
|
-
"src": "
|
1705
|
+
"scope": 39004,
|
1706
|
+
"src": "1468:17:98",
|
1707
1707
|
"stateVariable": false,
|
1708
1708
|
"storageLocation": "default",
|
1709
1709
|
"typeDescriptions": {
|
@@ -1711,10 +1711,10 @@
|
|
1711
1711
|
"typeString": "bytes14"
|
1712
1712
|
},
|
1713
1713
|
"typeName": {
|
1714
|
-
"id":
|
1714
|
+
"id": 38979,
|
1715
1715
|
"name": "bytes14",
|
1716
1716
|
"nodeType": "ElementaryTypeName",
|
1717
|
-
"src": "
|
1717
|
+
"src": "1468:7:98",
|
1718
1718
|
"typeDescriptions": {
|
1719
1719
|
"typeIdentifier": "t_bytes14",
|
1720
1720
|
"typeString": "bytes14"
|
@@ -1723,82 +1723,82 @@
|
|
1723
1723
|
"visibility": "internal"
|
1724
1724
|
}
|
1725
1725
|
],
|
1726
|
-
"src": "
|
1726
|
+
"src": "1467:19:98"
|
1727
1727
|
},
|
1728
1728
|
"returnParameters": {
|
1729
|
-
"id":
|
1729
|
+
"id": 38985,
|
1730
1730
|
"nodeType": "ParameterList",
|
1731
1731
|
"parameters": [
|
1732
1732
|
{
|
1733
1733
|
"constant": false,
|
1734
|
-
"id":
|
1734
|
+
"id": 38984,
|
1735
1735
|
"mutability": "mutable",
|
1736
1736
|
"name": "",
|
1737
1737
|
"nameLocation": "-1:-1:-1",
|
1738
1738
|
"nodeType": "VariableDeclaration",
|
1739
|
-
"scope":
|
1740
|
-
"src": "
|
1739
|
+
"scope": 39004,
|
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_$26238",
|
1745
1745
|
"typeString": "ResourceId"
|
1746
1746
|
},
|
1747
1747
|
"typeName": {
|
1748
|
-
"id":
|
1748
|
+
"id": 38983,
|
1749
1749
|
"nodeType": "UserDefinedTypeName",
|
1750
1750
|
"pathNode": {
|
1751
|
-
"id":
|
1751
|
+
"id": 38982,
|
1752
1752
|
"name": "ResourceId",
|
1753
1753
|
"nameLocations": [
|
1754
|
-
"
|
1754
|
+
"1510:10:98"
|
1755
1755
|
],
|
1756
1756
|
"nodeType": "IdentifierPath",
|
1757
|
-
"referencedDeclaration":
|
1758
|
-
"src": "
|
1757
|
+
"referencedDeclaration": 26238,
|
1758
|
+
"src": "1510:10:98"
|
1759
1759
|
},
|
1760
|
-
"referencedDeclaration":
|
1761
|
-
"src": "
|
1760
|
+
"referencedDeclaration": 26238,
|
1761
|
+
"src": "1510:10:98",
|
1762
1762
|
"typeDescriptions": {
|
1763
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
1763
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
1764
1764
|
"typeString": "ResourceId"
|
1765
1765
|
}
|
1766
1766
|
},
|
1767
1767
|
"visibility": "internal"
|
1768
1768
|
}
|
1769
1769
|
],
|
1770
|
-
"src": "
|
1770
|
+
"src": "1509:12:98"
|
1771
1771
|
},
|
1772
|
-
"scope":
|
1772
|
+
"scope": 39049,
|
1773
1773
|
"stateMutability": "pure",
|
1774
1774
|
"virtual": false,
|
1775
1775
|
"visibility": "internal"
|
1776
1776
|
},
|
1777
1777
|
{
|
1778
|
-
"id":
|
1778
|
+
"id": 39048,
|
1779
1779
|
"nodeType": "FunctionDefinition",
|
1780
|
-
"src": "
|
1780
|
+
"src": "1824:322:98",
|
1781
1781
|
"nodes": [],
|
1782
1782
|
"body": {
|
1783
|
-
"id":
|
1783
|
+
"id": 39047,
|
1784
1784
|
"nodeType": "Block",
|
1785
|
-
"src": "
|
1785
|
+
"src": "1909:237:98",
|
1786
1786
|
"nodes": [],
|
1787
1787
|
"statements": [
|
1788
1788
|
{
|
1789
1789
|
"assignments": [
|
1790
|
-
|
1790
|
+
39013
|
1791
1791
|
],
|
1792
1792
|
"declarations": [
|
1793
1793
|
{
|
1794
1794
|
"constant": false,
|
1795
|
-
"id":
|
1795
|
+
"id": 39013,
|
1796
1796
|
"mutability": "mutable",
|
1797
1797
|
"name": "length",
|
1798
|
-
"nameLocation": "
|
1798
|
+
"nameLocation": "1923:6:98",
|
1799
1799
|
"nodeType": "VariableDeclaration",
|
1800
|
-
"scope":
|
1801
|
-
"src": "
|
1800
|
+
"scope": 39047,
|
1801
|
+
"src": "1915:14:98",
|
1802
1802
|
"stateVariable": false,
|
1803
1803
|
"storageLocation": "default",
|
1804
1804
|
"typeDescriptions": {
|
@@ -1806,10 +1806,10 @@
|
|
1806
1806
|
"typeString": "uint256"
|
1807
1807
|
},
|
1808
1808
|
"typeName": {
|
1809
|
-
"id":
|
1809
|
+
"id": 39012,
|
1810
1810
|
"name": "uint256",
|
1811
1811
|
"nodeType": "ElementaryTypeName",
|
1812
|
-
"src": "
|
1812
|
+
"src": "1915:7:98",
|
1813
1813
|
"typeDescriptions": {
|
1814
1814
|
"typeIdentifier": "t_uint256",
|
1815
1815
|
"typeString": "uint256"
|
@@ -1818,9 +1818,9 @@
|
|
1818
1818
|
"visibility": "internal"
|
1819
1819
|
}
|
1820
1820
|
],
|
1821
|
-
"id":
|
1821
|
+
"id": 39014,
|
1822
1822
|
"nodeType": "VariableDeclarationStatement",
|
1823
|
-
"src": "
|
1823
|
+
"src": "1915:14:98"
|
1824
1824
|
},
|
1825
1825
|
{
|
1826
1826
|
"body": {
|
@@ -1829,7 +1829,7 @@
|
|
1829
1829
|
"typeIdentifier": "t_bytes1",
|
1830
1830
|
"typeString": "bytes1"
|
1831
1831
|
},
|
1832
|
-
"id":
|
1832
|
+
"id": 39027,
|
1833
1833
|
"isConstant": false,
|
1834
1834
|
"isLValue": false,
|
1835
1835
|
"isPure": false,
|
@@ -1837,24 +1837,24 @@
|
|
1837
1837
|
"leftExpression": {
|
1838
1838
|
"arguments": [
|
1839
1839
|
{
|
1840
|
-
"id":
|
1840
|
+
"id": 39023,
|
1841
1841
|
"name": "paddedString",
|
1842
1842
|
"nodeType": "Identifier",
|
1843
1843
|
"overloadedDeclarations": [],
|
1844
|
-
"referencedDeclaration":
|
1845
|
-
"src": "
|
1844
|
+
"referencedDeclaration": 39007,
|
1845
|
+
"src": "1982:12:98",
|
1846
1846
|
"typeDescriptions": {
|
1847
1847
|
"typeIdentifier": "t_bytes16",
|
1848
1848
|
"typeString": "bytes16"
|
1849
1849
|
}
|
1850
1850
|
},
|
1851
1851
|
{
|
1852
|
-
"id":
|
1852
|
+
"id": 39024,
|
1853
1853
|
"name": "length",
|
1854
1854
|
"nodeType": "Identifier",
|
1855
1855
|
"overloadedDeclarations": [],
|
1856
|
-
"referencedDeclaration":
|
1857
|
-
"src": "
|
1856
|
+
"referencedDeclaration": 39013,
|
1857
|
+
"src": "1996:6:98",
|
1858
1858
|
"typeDescriptions": {
|
1859
1859
|
"typeIdentifier": "t_uint256",
|
1860
1860
|
"typeString": "uint256"
|
@@ -1873,33 +1873,33 @@
|
|
1873
1873
|
}
|
1874
1874
|
],
|
1875
1875
|
"expression": {
|
1876
|
-
"id":
|
1876
|
+
"id": 39021,
|
1877
1877
|
"name": "Bytes",
|
1878
1878
|
"nodeType": "Identifier",
|
1879
1879
|
"overloadedDeclarations": [],
|
1880
|
-
"referencedDeclaration":
|
1881
|
-
"src": "
|
1880
|
+
"referencedDeclaration": 25113,
|
1881
|
+
"src": "1969:5:98",
|
1882
1882
|
"typeDescriptions": {
|
1883
|
-
"typeIdentifier": "t_type$_t_contract$_Bytes_$
|
1883
|
+
"typeIdentifier": "t_type$_t_contract$_Bytes_$25113_$",
|
1884
1884
|
"typeString": "type(library Bytes)"
|
1885
1885
|
}
|
1886
1886
|
},
|
1887
|
-
"id":
|
1887
|
+
"id": 39022,
|
1888
1888
|
"isConstant": false,
|
1889
1889
|
"isLValue": false,
|
1890
1890
|
"isPure": false,
|
1891
1891
|
"lValueRequested": false,
|
1892
|
-
"memberLocation": "
|
1892
|
+
"memberLocation": "1975:6:98",
|
1893
1893
|
"memberName": "slice1",
|
1894
1894
|
"nodeType": "MemberAccess",
|
1895
|
-
"referencedDeclaration":
|
1896
|
-
"src": "
|
1895
|
+
"referencedDeclaration": 24537,
|
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": 39025,
|
1903
1903
|
"isConstant": false,
|
1904
1904
|
"isLValue": false,
|
1905
1905
|
"isPure": false,
|
@@ -1908,7 +1908,7 @@
|
|
1908
1908
|
"nameLocations": [],
|
1909
1909
|
"names": [],
|
1910
1910
|
"nodeType": "FunctionCall",
|
1911
|
-
"src": "
|
1911
|
+
"src": "1969:34:98",
|
1912
1912
|
"tryCall": false,
|
1913
1913
|
"typeDescriptions": {
|
1914
1914
|
"typeIdentifier": "t_bytes1",
|
@@ -1919,33 +1919,33 @@
|
|
1919
1919
|
"operator": "==",
|
1920
1920
|
"rightExpression": {
|
1921
1921
|
"hexValue": "30",
|
1922
|
-
"id":
|
1922
|
+
"id": 39026,
|
1923
1923
|
"isConstant": false,
|
1924
1924
|
"isLValue": false,
|
1925
1925
|
"isPure": true,
|
1926
1926
|
"kind": "number",
|
1927
1927
|
"lValueRequested": false,
|
1928
1928
|
"nodeType": "Literal",
|
1929
|
-
"src": "
|
1929
|
+
"src": "2007:1:98",
|
1930
1930
|
"typeDescriptions": {
|
1931
1931
|
"typeIdentifier": "t_rational_0_by_1",
|
1932
1932
|
"typeString": "int_const 0"
|
1933
1933
|
},
|
1934
1934
|
"value": "0"
|
1935
1935
|
},
|
1936
|
-
"src": "
|
1936
|
+
"src": "1969:39:98",
|
1937
1937
|
"typeDescriptions": {
|
1938
1938
|
"typeIdentifier": "t_bool",
|
1939
1939
|
"typeString": "bool"
|
1940
1940
|
}
|
1941
1941
|
},
|
1942
|
-
"id":
|
1942
|
+
"id": 39029,
|
1943
1943
|
"nodeType": "IfStatement",
|
1944
|
-
"src": "
|
1944
|
+
"src": "1965:50:98",
|
1945
1945
|
"trueBody": {
|
1946
|
-
"id":
|
1946
|
+
"id": 39028,
|
1947
1947
|
"nodeType": "Break",
|
1948
|
-
"src": "
|
1948
|
+
"src": "2010:5:98"
|
1949
1949
|
}
|
1950
1950
|
},
|
1951
1951
|
"condition": {
|
@@ -1953,18 +1953,18 @@
|
|
1953
1953
|
"typeIdentifier": "t_uint256",
|
1954
1954
|
"typeString": "uint256"
|
1955
1955
|
},
|
1956
|
-
"id":
|
1956
|
+
"id": 39017,
|
1957
1957
|
"isConstant": false,
|
1958
1958
|
"isLValue": false,
|
1959
1959
|
"isPure": false,
|
1960
1960
|
"lValueRequested": false,
|
1961
1961
|
"leftExpression": {
|
1962
|
-
"id":
|
1962
|
+
"id": 39015,
|
1963
1963
|
"name": "length",
|
1964
1964
|
"nodeType": "Identifier",
|
1965
1965
|
"overloadedDeclarations": [],
|
1966
|
-
"referencedDeclaration":
|
1967
|
-
"src": "
|
1966
|
+
"referencedDeclaration": 39013,
|
1967
|
+
"src": "1942:6:98",
|
1968
1968
|
"typeDescriptions": {
|
1969
1969
|
"typeIdentifier": "t_uint256",
|
1970
1970
|
"typeString": "uint256"
|
@@ -1974,30 +1974,30 @@
|
|
1974
1974
|
"operator": "<",
|
1975
1975
|
"rightExpression": {
|
1976
1976
|
"hexValue": "3136",
|
1977
|
-
"id":
|
1977
|
+
"id": 39016,
|
1978
1978
|
"isConstant": false,
|
1979
1979
|
"isLValue": false,
|
1980
1980
|
"isPure": true,
|
1981
1981
|
"kind": "number",
|
1982
1982
|
"lValueRequested": false,
|
1983
1983
|
"nodeType": "Literal",
|
1984
|
-
"src": "
|
1984
|
+
"src": "1951:2:98",
|
1985
1985
|
"typeDescriptions": {
|
1986
1986
|
"typeIdentifier": "t_rational_16_by_1",
|
1987
1987
|
"typeString": "int_const 16"
|
1988
1988
|
},
|
1989
1989
|
"value": "16"
|
1990
1990
|
},
|
1991
|
-
"src": "
|
1991
|
+
"src": "1942:11:98",
|
1992
1992
|
"typeDescriptions": {
|
1993
1993
|
"typeIdentifier": "t_bool",
|
1994
1994
|
"typeString": "bool"
|
1995
1995
|
}
|
1996
1996
|
},
|
1997
|
-
"id":
|
1997
|
+
"id": 39030,
|
1998
1998
|
"loopExpression": {
|
1999
1999
|
"expression": {
|
2000
|
-
"id":
|
2000
|
+
"id": 39019,
|
2001
2001
|
"isConstant": false,
|
2002
2002
|
"isLValue": false,
|
2003
2003
|
"isPure": false,
|
@@ -2005,14 +2005,14 @@
|
|
2005
2005
|
"nodeType": "UnaryOperation",
|
2006
2006
|
"operator": "++",
|
2007
2007
|
"prefix": false,
|
2008
|
-
"src": "
|
2008
|
+
"src": "1955:8:98",
|
2009
2009
|
"subExpression": {
|
2010
|
-
"id":
|
2010
|
+
"id": 39018,
|
2011
2011
|
"name": "length",
|
2012
2012
|
"nodeType": "Identifier",
|
2013
2013
|
"overloadedDeclarations": [],
|
2014
|
-
"referencedDeclaration":
|
2015
|
-
"src": "
|
2014
|
+
"referencedDeclaration": 39013,
|
2015
|
+
"src": "1955:6:98",
|
2016
2016
|
"typeDescriptions": {
|
2017
2017
|
"typeIdentifier": "t_uint256",
|
2018
2018
|
"typeString": "uint256"
|
@@ -2023,27 +2023,27 @@
|
|
2023
2023
|
"typeString": "uint256"
|
2024
2024
|
}
|
2025
2025
|
},
|
2026
|
-
"id":
|
2026
|
+
"id": 39020,
|
2027
2027
|
"nodeType": "ExpressionStatement",
|
2028
|
-
"src": "
|
2028
|
+
"src": "1955:8:98"
|
2029
2029
|
},
|
2030
2030
|
"nodeType": "ForStatement",
|
2031
|
-
"src": "
|
2031
|
+
"src": "1935:80:98"
|
2032
2032
|
},
|
2033
2033
|
{
|
2034
2034
|
"assignments": [
|
2035
|
-
|
2035
|
+
39032
|
2036
2036
|
],
|
2037
2037
|
"declarations": [
|
2038
2038
|
{
|
2039
2039
|
"constant": false,
|
2040
|
-
"id":
|
2040
|
+
"id": 39032,
|
2041
2041
|
"mutability": "mutable",
|
2042
2042
|
"name": "packedSelector",
|
2043
|
-
"nameLocation": "
|
2043
|
+
"nameLocation": "2034:14:98",
|
2044
2044
|
"nodeType": "VariableDeclaration",
|
2045
|
-
"scope":
|
2046
|
-
"src": "
|
2045
|
+
"scope": 39047,
|
2046
|
+
"src": "2021:27:98",
|
2047
2047
|
"stateVariable": false,
|
2048
2048
|
"storageLocation": "memory",
|
2049
2049
|
"typeDescriptions": {
|
@@ -2051,10 +2051,10 @@
|
|
2051
2051
|
"typeString": "bytes"
|
2052
2052
|
},
|
2053
2053
|
"typeName": {
|
2054
|
-
"id":
|
2054
|
+
"id": 39031,
|
2055
2055
|
"name": "bytes",
|
2056
2056
|
"nodeType": "ElementaryTypeName",
|
2057
|
-
"src": "
|
2057
|
+
"src": "2021:5:98",
|
2058
2058
|
"typeDescriptions": {
|
2059
2059
|
"typeIdentifier": "t_bytes_storage_ptr",
|
2060
2060
|
"typeString": "bytes"
|
@@ -2063,16 +2063,16 @@
|
|
2063
2063
|
"visibility": "internal"
|
2064
2064
|
}
|
2065
2065
|
],
|
2066
|
-
"id":
|
2066
|
+
"id": 39037,
|
2067
2067
|
"initialValue": {
|
2068
2068
|
"arguments": [
|
2069
2069
|
{
|
2070
|
-
"id":
|
2070
|
+
"id": 39035,
|
2071
2071
|
"name": "paddedString",
|
2072
2072
|
"nodeType": "Identifier",
|
2073
2073
|
"overloadedDeclarations": [],
|
2074
|
-
"referencedDeclaration":
|
2075
|
-
"src": "
|
2074
|
+
"referencedDeclaration": 39007,
|
2075
|
+
"src": "2068:12:98",
|
2076
2076
|
"typeDescriptions": {
|
2077
2077
|
"typeIdentifier": "t_bytes16",
|
2078
2078
|
"typeString": "bytes16"
|
@@ -2087,32 +2087,32 @@
|
|
2087
2087
|
}
|
2088
2088
|
],
|
2089
2089
|
"expression": {
|
2090
|
-
"id":
|
2090
|
+
"id": 39033,
|
2091
2091
|
"name": "abi",
|
2092
2092
|
"nodeType": "Identifier",
|
2093
2093
|
"overloadedDeclarations": [],
|
2094
2094
|
"referencedDeclaration": -1,
|
2095
|
-
"src": "
|
2095
|
+
"src": "2051:3:98",
|
2096
2096
|
"typeDescriptions": {
|
2097
2097
|
"typeIdentifier": "t_magic_abi",
|
2098
2098
|
"typeString": "abi"
|
2099
2099
|
}
|
2100
2100
|
},
|
2101
|
-
"id":
|
2101
|
+
"id": 39034,
|
2102
2102
|
"isConstant": false,
|
2103
2103
|
"isLValue": false,
|
2104
2104
|
"isPure": true,
|
2105
2105
|
"lValueRequested": false,
|
2106
|
-
"memberLocation": "
|
2106
|
+
"memberLocation": "2055:12:98",
|
2107
2107
|
"memberName": "encodePacked",
|
2108
2108
|
"nodeType": "MemberAccess",
|
2109
|
-
"src": "
|
2109
|
+
"src": "2051:16:98",
|
2110
2110
|
"typeDescriptions": {
|
2111
2111
|
"typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
|
2112
2112
|
"typeString": "function () pure returns (bytes memory)"
|
2113
2113
|
}
|
2114
2114
|
},
|
2115
|
-
"id":
|
2115
|
+
"id": 39036,
|
2116
2116
|
"isConstant": false,
|
2117
2117
|
"isLValue": false,
|
2118
2118
|
"isPure": false,
|
@@ -2121,7 +2121,7 @@
|
|
2121
2121
|
"nameLocations": [],
|
2122
2122
|
"names": [],
|
2123
2123
|
"nodeType": "FunctionCall",
|
2124
|
-
"src": "
|
2124
|
+
"src": "2051:30:98",
|
2125
2125
|
"tryCall": false,
|
2126
2126
|
"typeDescriptions": {
|
2127
2127
|
"typeIdentifier": "t_bytes_memory_ptr",
|
@@ -2129,7 +2129,7 @@
|
|
2129
2129
|
}
|
2130
2130
|
},
|
2131
2131
|
"nodeType": "VariableDeclarationStatement",
|
2132
|
-
"src": "
|
2132
|
+
"src": "2021:60:98"
|
2133
2133
|
},
|
2134
2134
|
{
|
2135
2135
|
"expression": {
|
@@ -2137,24 +2137,24 @@
|
|
2137
2137
|
{
|
2138
2138
|
"arguments": [
|
2139
2139
|
{
|
2140
|
-
"id":
|
2140
|
+
"id": 39042,
|
2141
2141
|
"name": "packedSelector",
|
2142
2142
|
"nodeType": "Identifier",
|
2143
2143
|
"overloadedDeclarations": [],
|
2144
|
-
"referencedDeclaration":
|
2145
|
-
"src": "
|
2144
|
+
"referencedDeclaration": 39032,
|
2145
|
+
"src": "2117:14:98",
|
2146
2146
|
"typeDescriptions": {
|
2147
2147
|
"typeIdentifier": "t_bytes_memory_ptr",
|
2148
2148
|
"typeString": "bytes memory"
|
2149
2149
|
}
|
2150
2150
|
},
|
2151
2151
|
{
|
2152
|
-
"id":
|
2152
|
+
"id": 39043,
|
2153
2153
|
"name": "length",
|
2154
2154
|
"nodeType": "Identifier",
|
2155
2155
|
"overloadedDeclarations": [],
|
2156
|
-
"referencedDeclaration":
|
2157
|
-
"src": "
|
2156
|
+
"referencedDeclaration": 39013,
|
2157
|
+
"src": "2133:6:98",
|
2158
2158
|
"typeDescriptions": {
|
2159
2159
|
"typeIdentifier": "t_uint256",
|
2160
2160
|
"typeString": "uint256"
|
@@ -2173,33 +2173,33 @@
|
|
2173
2173
|
}
|
2174
2174
|
],
|
2175
2175
|
"expression": {
|
2176
|
-
"id":
|
2176
|
+
"id": 39040,
|
2177
2177
|
"name": "Bytes",
|
2178
2178
|
"nodeType": "Identifier",
|
2179
2179
|
"overloadedDeclarations": [],
|
2180
|
-
"referencedDeclaration":
|
2181
|
-
"src": "
|
2180
|
+
"referencedDeclaration": 25113,
|
2181
|
+
"src": "2101:5:98",
|
2182
2182
|
"typeDescriptions": {
|
2183
|
-
"typeIdentifier": "t_type$_t_contract$_Bytes_$
|
2183
|
+
"typeIdentifier": "t_type$_t_contract$_Bytes_$25113_$",
|
2184
2184
|
"typeString": "type(library Bytes)"
|
2185
2185
|
}
|
2186
2186
|
},
|
2187
|
-
"id":
|
2187
|
+
"id": 39041,
|
2188
2188
|
"isConstant": false,
|
2189
2189
|
"isLValue": false,
|
2190
2190
|
"isPure": false,
|
2191
2191
|
"lValueRequested": false,
|
2192
|
-
"memberLocation": "
|
2192
|
+
"memberLocation": "2107:9:98",
|
2193
2193
|
"memberName": "setLength",
|
2194
2194
|
"nodeType": "MemberAccess",
|
2195
|
-
"referencedDeclaration":
|
2196
|
-
"src": "
|
2195
|
+
"referencedDeclaration": 24370,
|
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": 39044,
|
2203
2203
|
"isConstant": false,
|
2204
2204
|
"isLValue": false,
|
2205
2205
|
"isPure": false,
|
@@ -2208,7 +2208,7 @@
|
|
2208
2208
|
"nameLocations": [],
|
2209
2209
|
"names": [],
|
2210
2210
|
"nodeType": "FunctionCall",
|
2211
|
-
"src": "
|
2211
|
+
"src": "2101:39:98",
|
2212
2212
|
"tryCall": false,
|
2213
2213
|
"typeDescriptions": {
|
2214
2214
|
"typeIdentifier": "t_bytes_memory_ptr",
|
@@ -2223,26 +2223,26 @@
|
|
2223
2223
|
"typeString": "bytes memory"
|
2224
2224
|
}
|
2225
2225
|
],
|
2226
|
-
"id":
|
2226
|
+
"id": 39039,
|
2227
2227
|
"isConstant": false,
|
2228
2228
|
"isLValue": false,
|
2229
2229
|
"isPure": true,
|
2230
2230
|
"lValueRequested": false,
|
2231
2231
|
"nodeType": "ElementaryTypeNameExpression",
|
2232
|
-
"src": "
|
2232
|
+
"src": "2094:6:98",
|
2233
2233
|
"typeDescriptions": {
|
2234
2234
|
"typeIdentifier": "t_type$_t_string_storage_ptr_$",
|
2235
2235
|
"typeString": "type(string storage pointer)"
|
2236
2236
|
},
|
2237
2237
|
"typeName": {
|
2238
|
-
"id":
|
2238
|
+
"id": 39038,
|
2239
2239
|
"name": "string",
|
2240
2240
|
"nodeType": "ElementaryTypeName",
|
2241
|
-
"src": "
|
2241
|
+
"src": "2094:6:98",
|
2242
2242
|
"typeDescriptions": {}
|
2243
2243
|
}
|
2244
2244
|
},
|
2245
|
-
"id":
|
2245
|
+
"id": 39045,
|
2246
2246
|
"isConstant": false,
|
2247
2247
|
"isLValue": false,
|
2248
2248
|
"isPure": false,
|
@@ -2251,44 +2251,44 @@
|
|
2251
2251
|
"nameLocations": [],
|
2252
2252
|
"names": [],
|
2253
2253
|
"nodeType": "FunctionCall",
|
2254
|
-
"src": "
|
2254
|
+
"src": "2094:47:98",
|
2255
2255
|
"tryCall": false,
|
2256
2256
|
"typeDescriptions": {
|
2257
2257
|
"typeIdentifier": "t_string_memory_ptr",
|
2258
2258
|
"typeString": "string memory"
|
2259
2259
|
}
|
2260
2260
|
},
|
2261
|
-
"functionReturnParameters":
|
2262
|
-
"id":
|
2261
|
+
"functionReturnParameters": 39011,
|
2262
|
+
"id": 39046,
|
2263
2263
|
"nodeType": "Return",
|
2264
|
-
"src": "
|
2264
|
+
"src": "2087:54:98"
|
2265
2265
|
}
|
2266
2266
|
]
|
2267
2267
|
},
|
2268
2268
|
"documentation": {
|
2269
|
-
"id":
|
2269
|
+
"id": 39005,
|
2270
2270
|
"nodeType": "StructuredDocumentation",
|
2271
|
-
"src": "
|
2272
|
-
"text": " Convert a padded string to a trimmed string
|
2271
|
+
"src": "1626:195:98",
|
2272
|
+
"text": " @notice Convert a padded string to a trimmed string.\n @param paddedString The input string with potential padding.\n @return A string without trailing null ASCII characters."
|
2273
2273
|
},
|
2274
2274
|
"implemented": true,
|
2275
2275
|
"kind": "function",
|
2276
2276
|
"modifiers": [],
|
2277
2277
|
"name": "toTrimmedString",
|
2278
|
-
"nameLocation": "
|
2278
|
+
"nameLocation": "1833:15:98",
|
2279
2279
|
"parameters": {
|
2280
|
-
"id":
|
2280
|
+
"id": 39008,
|
2281
2281
|
"nodeType": "ParameterList",
|
2282
2282
|
"parameters": [
|
2283
2283
|
{
|
2284
2284
|
"constant": false,
|
2285
|
-
"id":
|
2285
|
+
"id": 39007,
|
2286
2286
|
"mutability": "mutable",
|
2287
2287
|
"name": "paddedString",
|
2288
|
-
"nameLocation": "
|
2288
|
+
"nameLocation": "1857:12:98",
|
2289
2289
|
"nodeType": "VariableDeclaration",
|
2290
|
-
"scope":
|
2291
|
-
"src": "
|
2290
|
+
"scope": 39048,
|
2291
|
+
"src": "1849:20:98",
|
2292
2292
|
"stateVariable": false,
|
2293
2293
|
"storageLocation": "default",
|
2294
2294
|
"typeDescriptions": {
|
@@ -2296,10 +2296,10 @@
|
|
2296
2296
|
"typeString": "bytes16"
|
2297
2297
|
},
|
2298
2298
|
"typeName": {
|
2299
|
-
"id":
|
2299
|
+
"id": 39006,
|
2300
2300
|
"name": "bytes16",
|
2301
2301
|
"nodeType": "ElementaryTypeName",
|
2302
|
-
"src": "
|
2302
|
+
"src": "1849:7:98",
|
2303
2303
|
"typeDescriptions": {
|
2304
2304
|
"typeIdentifier": "t_bytes16",
|
2305
2305
|
"typeString": "bytes16"
|
@@ -2308,21 +2308,21 @@
|
|
2308
2308
|
"visibility": "internal"
|
2309
2309
|
}
|
2310
2310
|
],
|
2311
|
-
"src": "
|
2311
|
+
"src": "1848:22:98"
|
2312
2312
|
},
|
2313
2313
|
"returnParameters": {
|
2314
|
-
"id":
|
2314
|
+
"id": 39011,
|
2315
2315
|
"nodeType": "ParameterList",
|
2316
2316
|
"parameters": [
|
2317
2317
|
{
|
2318
2318
|
"constant": false,
|
2319
|
-
"id":
|
2319
|
+
"id": 39010,
|
2320
2320
|
"mutability": "mutable",
|
2321
2321
|
"name": "",
|
2322
2322
|
"nameLocation": "-1:-1:-1",
|
2323
2323
|
"nodeType": "VariableDeclaration",
|
2324
|
-
"scope":
|
2325
|
-
"src": "
|
2324
|
+
"scope": 39048,
|
2325
|
+
"src": "1894:13:98",
|
2326
2326
|
"stateVariable": false,
|
2327
2327
|
"storageLocation": "memory",
|
2328
2328
|
"typeDescriptions": {
|
@@ -2330,10 +2330,10 @@
|
|
2330
2330
|
"typeString": "string"
|
2331
2331
|
},
|
2332
2332
|
"typeName": {
|
2333
|
-
"id":
|
2333
|
+
"id": 39009,
|
2334
2334
|
"name": "string",
|
2335
2335
|
"nodeType": "ElementaryTypeName",
|
2336
|
-
"src": "
|
2336
|
+
"src": "1894:6:98",
|
2337
2337
|
"typeDescriptions": {
|
2338
2338
|
"typeIdentifier": "t_string_storage_ptr",
|
2339
2339
|
"typeString": "string"
|
@@ -2342,9 +2342,9 @@
|
|
2342
2342
|
"visibility": "internal"
|
2343
2343
|
}
|
2344
2344
|
],
|
2345
|
-
"src": "
|
2345
|
+
"src": "1893:15:98"
|
2346
2346
|
},
|
2347
|
-
"scope":
|
2347
|
+
"scope": 39049,
|
2348
2348
|
"stateMutability": "pure",
|
2349
2349
|
"virtual": false,
|
2350
2350
|
"visibility": "internal"
|
@@ -2355,30 +2355,36 @@
|
|
2355
2355
|
"canonicalName": "WorldResourceIdLib",
|
2356
2356
|
"contractDependencies": [],
|
2357
2357
|
"contractKind": "library",
|
2358
|
+
"documentation": {
|
2359
|
+
"id": 38936,
|
2360
|
+
"nodeType": "StructuredDocumentation",
|
2361
|
+
"src": "645:111:98",
|
2362
|
+
"text": " @title WorldResourceIdLib\n @notice A library for handling World Resource ID encoding and decoding."
|
2363
|
+
},
|
2358
2364
|
"fullyImplemented": true,
|
2359
2365
|
"linearizedBaseContracts": [
|
2360
|
-
|
2366
|
+
39049
|
2361
2367
|
],
|
2362
2368
|
"name": "WorldResourceIdLib",
|
2363
|
-
"nameLocation": "
|
2364
|
-
"scope":
|
2369
|
+
"nameLocation": "765:18:98",
|
2370
|
+
"scope": 39171,
|
2365
2371
|
"usedErrors": [],
|
2366
2372
|
"usedEvents": []
|
2367
2373
|
},
|
2368
2374
|
{
|
2369
|
-
"id":
|
2375
|
+
"id": 39170,
|
2370
2376
|
"nodeType": "ContractDefinition",
|
2371
|
-
"src": "
|
2377
|
+
"src": "2259:1663:98",
|
2372
2378
|
"nodes": [
|
2373
2379
|
{
|
2374
|
-
"id":
|
2380
|
+
"id": 39071,
|
2375
2381
|
"nodeType": "FunctionDefinition",
|
2376
|
-
"src": "
|
2382
|
+
"src": "2432:148:98",
|
2377
2383
|
"nodes": [],
|
2378
2384
|
"body": {
|
2379
|
-
"id":
|
2385
|
+
"id": 39070,
|
2380
2386
|
"nodeType": "Block",
|
2381
|
-
"src": "
|
2387
|
+
"src": "2509:71:98",
|
2382
2388
|
"nodes": [],
|
2383
2389
|
"statements": [
|
2384
2390
|
{
|
@@ -2389,7 +2395,7 @@
|
|
2389
2395
|
"typeIdentifier": "t_bytes32",
|
2390
2396
|
"typeString": "bytes32"
|
2391
2397
|
},
|
2392
|
-
"id":
|
2398
|
+
"id": 39067,
|
2393
2399
|
"isConstant": false,
|
2394
2400
|
"isLValue": false,
|
2395
2401
|
"isPure": false,
|
@@ -2397,14 +2403,14 @@
|
|
2397
2403
|
"leftExpression": {
|
2398
2404
|
"arguments": [
|
2399
2405
|
{
|
2400
|
-
"id":
|
2406
|
+
"id": 39063,
|
2401
2407
|
"name": "resourceId",
|
2402
2408
|
"nodeType": "Identifier",
|
2403
2409
|
"overloadedDeclarations": [],
|
2404
|
-
"referencedDeclaration":
|
2405
|
-
"src": "
|
2410
|
+
"referencedDeclaration": 39054,
|
2411
|
+
"src": "2548:10:98",
|
2406
2412
|
"typeDescriptions": {
|
2407
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
2413
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
2408
2414
|
"typeString": "ResourceId"
|
2409
2415
|
}
|
2410
2416
|
}
|
@@ -2412,37 +2418,37 @@
|
|
2412
2418
|
"expression": {
|
2413
2419
|
"argumentTypes": [
|
2414
2420
|
{
|
2415
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
2421
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
2416
2422
|
"typeString": "ResourceId"
|
2417
2423
|
}
|
2418
2424
|
],
|
2419
2425
|
"expression": {
|
2420
|
-
"id":
|
2426
|
+
"id": 39061,
|
2421
2427
|
"name": "ResourceId",
|
2422
2428
|
"nodeType": "Identifier",
|
2423
2429
|
"overloadedDeclarations": [],
|
2424
|
-
"referencedDeclaration":
|
2425
|
-
"src": "
|
2430
|
+
"referencedDeclaration": 26238,
|
2431
|
+
"src": "2530:10:98",
|
2426
2432
|
"typeDescriptions": {
|
2427
|
-
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$
|
2433
|
+
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$26238_$",
|
2428
2434
|
"typeString": "type(ResourceId)"
|
2429
2435
|
}
|
2430
2436
|
},
|
2431
|
-
"id":
|
2437
|
+
"id": 39062,
|
2432
2438
|
"isConstant": false,
|
2433
2439
|
"isLValue": false,
|
2434
2440
|
"isPure": true,
|
2435
2441
|
"lValueRequested": false,
|
2436
|
-
"memberLocation": "
|
2442
|
+
"memberLocation": "2541:6:98",
|
2437
2443
|
"memberName": "unwrap",
|
2438
2444
|
"nodeType": "MemberAccess",
|
2439
|
-
"src": "
|
2445
|
+
"src": "2530:17:98",
|
2440
2446
|
"typeDescriptions": {
|
2441
|
-
"typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_ResourceId_$
|
2447
|
+
"typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_ResourceId_$26238_$returns$_t_bytes32_$",
|
2442
2448
|
"typeString": "function (ResourceId) pure returns (bytes32)"
|
2443
2449
|
}
|
2444
2450
|
},
|
2445
|
-
"id":
|
2451
|
+
"id": 39064,
|
2446
2452
|
"isConstant": false,
|
2447
2453
|
"isLValue": false,
|
2448
2454
|
"isPure": false,
|
@@ -2451,7 +2457,7 @@
|
|
2451
2457
|
"nameLocations": [],
|
2452
2458
|
"names": [],
|
2453
2459
|
"nodeType": "FunctionCall",
|
2454
|
-
"src": "
|
2460
|
+
"src": "2530:29:98",
|
2455
2461
|
"tryCall": false,
|
2456
2462
|
"typeDescriptions": {
|
2457
2463
|
"typeIdentifier": "t_bytes32",
|
@@ -2463,32 +2469,32 @@
|
|
2463
2469
|
"rightExpression": {
|
2464
2470
|
"components": [
|
2465
2471
|
{
|
2466
|
-
"id":
|
2472
|
+
"id": 39065,
|
2467
2473
|
"name": "TYPE_BITS",
|
2468
2474
|
"nodeType": "Identifier",
|
2469
2475
|
"overloadedDeclarations": [],
|
2470
|
-
"referencedDeclaration":
|
2471
|
-
"src": "
|
2476
|
+
"referencedDeclaration": 26243,
|
2477
|
+
"src": "2564:9:98",
|
2472
2478
|
"typeDescriptions": {
|
2473
2479
|
"typeIdentifier": "t_uint256",
|
2474
2480
|
"typeString": "uint256"
|
2475
2481
|
}
|
2476
2482
|
}
|
2477
2483
|
],
|
2478
|
-
"id":
|
2484
|
+
"id": 39066,
|
2479
2485
|
"isConstant": false,
|
2480
2486
|
"isInlineArray": false,
|
2481
2487
|
"isLValue": false,
|
2482
2488
|
"isPure": true,
|
2483
2489
|
"lValueRequested": false,
|
2484
2490
|
"nodeType": "TupleExpression",
|
2485
|
-
"src": "
|
2491
|
+
"src": "2563:11:98",
|
2486
2492
|
"typeDescriptions": {
|
2487
2493
|
"typeIdentifier": "t_uint256",
|
2488
2494
|
"typeString": "uint256"
|
2489
2495
|
}
|
2490
2496
|
},
|
2491
|
-
"src": "
|
2497
|
+
"src": "2530:44:98",
|
2492
2498
|
"typeDescriptions": {
|
2493
2499
|
"typeIdentifier": "t_bytes32",
|
2494
2500
|
"typeString": "bytes32"
|
@@ -2502,26 +2508,26 @@
|
|
2502
2508
|
"typeString": "bytes32"
|
2503
2509
|
}
|
2504
2510
|
],
|
2505
|
-
"id":
|
2511
|
+
"id": 39060,
|
2506
2512
|
"isConstant": false,
|
2507
2513
|
"isLValue": false,
|
2508
2514
|
"isPure": true,
|
2509
2515
|
"lValueRequested": false,
|
2510
2516
|
"nodeType": "ElementaryTypeNameExpression",
|
2511
|
-
"src": "
|
2517
|
+
"src": "2522:7:98",
|
2512
2518
|
"typeDescriptions": {
|
2513
2519
|
"typeIdentifier": "t_type$_t_bytes14_$",
|
2514
2520
|
"typeString": "type(bytes14)"
|
2515
2521
|
},
|
2516
2522
|
"typeName": {
|
2517
|
-
"id":
|
2523
|
+
"id": 39059,
|
2518
2524
|
"name": "bytes14",
|
2519
2525
|
"nodeType": "ElementaryTypeName",
|
2520
|
-
"src": "
|
2526
|
+
"src": "2522:7:98",
|
2521
2527
|
"typeDescriptions": {}
|
2522
2528
|
}
|
2523
2529
|
},
|
2524
|
-
"id":
|
2530
|
+
"id": 39068,
|
2525
2531
|
"isConstant": false,
|
2526
2532
|
"isLValue": false,
|
2527
2533
|
"isPure": false,
|
@@ -2530,88 +2536,88 @@
|
|
2530
2536
|
"nameLocations": [],
|
2531
2537
|
"names": [],
|
2532
2538
|
"nodeType": "FunctionCall",
|
2533
|
-
"src": "
|
2539
|
+
"src": "2522:53:98",
|
2534
2540
|
"tryCall": false,
|
2535
2541
|
"typeDescriptions": {
|
2536
2542
|
"typeIdentifier": "t_bytes14",
|
2537
2543
|
"typeString": "bytes14"
|
2538
2544
|
}
|
2539
2545
|
},
|
2540
|
-
"functionReturnParameters":
|
2541
|
-
"id":
|
2546
|
+
"functionReturnParameters": 39058,
|
2547
|
+
"id": 39069,
|
2542
2548
|
"nodeType": "Return",
|
2543
|
-
"src": "
|
2549
|
+
"src": "2515:60:98"
|
2544
2550
|
}
|
2545
2551
|
]
|
2546
2552
|
},
|
2547
2553
|
"documentation": {
|
2548
|
-
"id":
|
2554
|
+
"id": 39051,
|
2549
2555
|
"nodeType": "StructuredDocumentation",
|
2550
|
-
"src": "
|
2551
|
-
"text": " Get the namespace
|
2556
|
+
"src": "2295:134:98",
|
2557
|
+
"text": " @notice Get the namespace from a resource ID.\n @param resourceId The resource ID.\n @return A 14-byte namespace."
|
2552
2558
|
},
|
2553
2559
|
"implemented": true,
|
2554
2560
|
"kind": "function",
|
2555
2561
|
"modifiers": [],
|
2556
2562
|
"name": "getNamespace",
|
2557
|
-
"nameLocation": "
|
2563
|
+
"nameLocation": "2441:12:98",
|
2558
2564
|
"parameters": {
|
2559
|
-
"id":
|
2565
|
+
"id": 39055,
|
2560
2566
|
"nodeType": "ParameterList",
|
2561
2567
|
"parameters": [
|
2562
2568
|
{
|
2563
2569
|
"constant": false,
|
2564
|
-
"id":
|
2570
|
+
"id": 39054,
|
2565
2571
|
"mutability": "mutable",
|
2566
2572
|
"name": "resourceId",
|
2567
|
-
"nameLocation": "
|
2573
|
+
"nameLocation": "2465:10:98",
|
2568
2574
|
"nodeType": "VariableDeclaration",
|
2569
|
-
"scope":
|
2570
|
-
"src": "
|
2575
|
+
"scope": 39071,
|
2576
|
+
"src": "2454:21:98",
|
2571
2577
|
"stateVariable": false,
|
2572
2578
|
"storageLocation": "default",
|
2573
2579
|
"typeDescriptions": {
|
2574
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
2580
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
2575
2581
|
"typeString": "ResourceId"
|
2576
2582
|
},
|
2577
2583
|
"typeName": {
|
2578
|
-
"id":
|
2584
|
+
"id": 39053,
|
2579
2585
|
"nodeType": "UserDefinedTypeName",
|
2580
2586
|
"pathNode": {
|
2581
|
-
"id":
|
2587
|
+
"id": 39052,
|
2582
2588
|
"name": "ResourceId",
|
2583
2589
|
"nameLocations": [
|
2584
|
-
"
|
2590
|
+
"2454:10:98"
|
2585
2591
|
],
|
2586
2592
|
"nodeType": "IdentifierPath",
|
2587
|
-
"referencedDeclaration":
|
2588
|
-
"src": "
|
2593
|
+
"referencedDeclaration": 26238,
|
2594
|
+
"src": "2454:10:98"
|
2589
2595
|
},
|
2590
|
-
"referencedDeclaration":
|
2591
|
-
"src": "
|
2596
|
+
"referencedDeclaration": 26238,
|
2597
|
+
"src": "2454:10:98",
|
2592
2598
|
"typeDescriptions": {
|
2593
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
2599
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
2594
2600
|
"typeString": "ResourceId"
|
2595
2601
|
}
|
2596
2602
|
},
|
2597
2603
|
"visibility": "internal"
|
2598
2604
|
}
|
2599
2605
|
],
|
2600
|
-
"src": "
|
2606
|
+
"src": "2453:23:98"
|
2601
2607
|
},
|
2602
2608
|
"returnParameters": {
|
2603
|
-
"id":
|
2609
|
+
"id": 39058,
|
2604
2610
|
"nodeType": "ParameterList",
|
2605
2611
|
"parameters": [
|
2606
2612
|
{
|
2607
2613
|
"constant": false,
|
2608
|
-
"id":
|
2614
|
+
"id": 39057,
|
2609
2615
|
"mutability": "mutable",
|
2610
2616
|
"name": "",
|
2611
2617
|
"nameLocation": "-1:-1:-1",
|
2612
2618
|
"nodeType": "VariableDeclaration",
|
2613
|
-
"scope":
|
2614
|
-
"src": "
|
2619
|
+
"scope": 39071,
|
2620
|
+
"src": "2500:7:98",
|
2615
2621
|
"stateVariable": false,
|
2616
2622
|
"storageLocation": "default",
|
2617
2623
|
"typeDescriptions": {
|
@@ -2619,10 +2625,10 @@
|
|
2619
2625
|
"typeString": "bytes14"
|
2620
2626
|
},
|
2621
2627
|
"typeName": {
|
2622
|
-
"id":
|
2628
|
+
"id": 39056,
|
2623
2629
|
"name": "bytes14",
|
2624
2630
|
"nodeType": "ElementaryTypeName",
|
2625
|
-
"src": "
|
2631
|
+
"src": "2500:7:98",
|
2626
2632
|
"typeDescriptions": {
|
2627
2633
|
"typeIdentifier": "t_bytes14",
|
2628
2634
|
"typeString": "bytes14"
|
@@ -2631,22 +2637,22 @@
|
|
2631
2637
|
"visibility": "internal"
|
2632
2638
|
}
|
2633
2639
|
],
|
2634
|
-
"src": "
|
2640
|
+
"src": "2499:9:98"
|
2635
2641
|
},
|
2636
|
-
"scope":
|
2642
|
+
"scope": 39170,
|
2637
2643
|
"stateMutability": "pure",
|
2638
2644
|
"virtual": false,
|
2639
2645
|
"visibility": "internal"
|
2640
2646
|
},
|
2641
2647
|
{
|
2642
|
-
"id":
|
2648
|
+
"id": 39095,
|
2643
2649
|
"nodeType": "FunctionDefinition",
|
2644
|
-
"src": "
|
2650
|
+
"src": "2736:191:98",
|
2645
2651
|
"nodes": [],
|
2646
2652
|
"body": {
|
2647
|
-
"id":
|
2653
|
+
"id": 39094,
|
2648
2654
|
"nodeType": "Block",
|
2649
|
-
"src": "
|
2655
|
+
"src": "2818:109:98",
|
2650
2656
|
"nodes": [],
|
2651
2657
|
"statements": [
|
2652
2658
|
{
|
@@ -2657,7 +2663,7 @@
|
|
2657
2663
|
"typeIdentifier": "t_bytes32",
|
2658
2664
|
"typeString": "bytes32"
|
2659
2665
|
},
|
2660
|
-
"id":
|
2666
|
+
"id": 39091,
|
2661
2667
|
"isConstant": false,
|
2662
2668
|
"isLValue": false,
|
2663
2669
|
"isPure": false,
|
@@ -2669,7 +2675,7 @@
|
|
2669
2675
|
"typeIdentifier": "t_bytes32",
|
2670
2676
|
"typeString": "bytes32"
|
2671
2677
|
},
|
2672
|
-
"id":
|
2678
|
+
"id": 39088,
|
2673
2679
|
"isConstant": false,
|
2674
2680
|
"isLValue": false,
|
2675
2681
|
"isPure": false,
|
@@ -2677,14 +2683,14 @@
|
|
2677
2683
|
"leftExpression": {
|
2678
2684
|
"arguments": [
|
2679
2685
|
{
|
2680
|
-
"id":
|
2686
|
+
"id": 39085,
|
2681
2687
|
"name": "resourceId",
|
2682
2688
|
"nodeType": "Identifier",
|
2683
2689
|
"overloadedDeclarations": [],
|
2684
|
-
"referencedDeclaration":
|
2685
|
-
"src": "
|
2690
|
+
"referencedDeclaration": 39075,
|
2691
|
+
"src": "2866:10:98",
|
2686
2692
|
"typeDescriptions": {
|
2687
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
2693
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
2688
2694
|
"typeString": "ResourceId"
|
2689
2695
|
}
|
2690
2696
|
}
|
@@ -2692,37 +2698,37 @@
|
|
2692
2698
|
"expression": {
|
2693
2699
|
"argumentTypes": [
|
2694
2700
|
{
|
2695
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
2701
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
2696
2702
|
"typeString": "ResourceId"
|
2697
2703
|
}
|
2698
2704
|
],
|
2699
2705
|
"expression": {
|
2700
|
-
"id":
|
2706
|
+
"id": 39083,
|
2701
2707
|
"name": "ResourceId",
|
2702
2708
|
"nodeType": "Identifier",
|
2703
2709
|
"overloadedDeclarations": [],
|
2704
|
-
"referencedDeclaration":
|
2705
|
-
"src": "
|
2710
|
+
"referencedDeclaration": 26238,
|
2711
|
+
"src": "2848:10:98",
|
2706
2712
|
"typeDescriptions": {
|
2707
|
-
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$
|
2713
|
+
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$26238_$",
|
2708
2714
|
"typeString": "type(ResourceId)"
|
2709
2715
|
}
|
2710
2716
|
},
|
2711
|
-
"id":
|
2717
|
+
"id": 39084,
|
2712
2718
|
"isConstant": false,
|
2713
2719
|
"isLValue": false,
|
2714
2720
|
"isPure": true,
|
2715
2721
|
"lValueRequested": false,
|
2716
|
-
"memberLocation": "
|
2722
|
+
"memberLocation": "2859:6:98",
|
2717
2723
|
"memberName": "unwrap",
|
2718
2724
|
"nodeType": "MemberAccess",
|
2719
|
-
"src": "
|
2725
|
+
"src": "2848:17:98",
|
2720
2726
|
"typeDescriptions": {
|
2721
|
-
"typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_ResourceId_$
|
2727
|
+
"typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_ResourceId_$26238_$returns$_t_bytes32_$",
|
2722
2728
|
"typeString": "function (ResourceId) pure returns (bytes32)"
|
2723
2729
|
}
|
2724
2730
|
},
|
2725
|
-
"id":
|
2731
|
+
"id": 39086,
|
2726
2732
|
"isConstant": false,
|
2727
2733
|
"isLValue": false,
|
2728
2734
|
"isPure": false,
|
@@ -2731,7 +2737,7 @@
|
|
2731
2737
|
"nameLocations": [],
|
2732
2738
|
"names": [],
|
2733
2739
|
"nodeType": "FunctionCall",
|
2734
|
-
"src": "
|
2740
|
+
"src": "2848:29:98",
|
2735
2741
|
"tryCall": false,
|
2736
2742
|
"typeDescriptions": {
|
2737
2743
|
"typeIdentifier": "t_bytes32",
|
@@ -2741,32 +2747,32 @@
|
|
2741
2747
|
"nodeType": "BinaryOperation",
|
2742
2748
|
"operator": "&",
|
2743
2749
|
"rightExpression": {
|
2744
|
-
"id":
|
2750
|
+
"id": 39087,
|
2745
2751
|
"name": "NAMESPACE_MASK",
|
2746
2752
|
"nodeType": "Identifier",
|
2747
2753
|
"overloadedDeclarations": [],
|
2748
|
-
"referencedDeclaration":
|
2749
|
-
"src": "
|
2754
|
+
"referencedDeclaration": 38935,
|
2755
|
+
"src": "2880:14:98",
|
2750
2756
|
"typeDescriptions": {
|
2751
2757
|
"typeIdentifier": "t_bytes32",
|
2752
2758
|
"typeString": "bytes32"
|
2753
2759
|
}
|
2754
2760
|
},
|
2755
|
-
"src": "
|
2761
|
+
"src": "2848:46:98",
|
2756
2762
|
"typeDescriptions": {
|
2757
2763
|
"typeIdentifier": "t_bytes32",
|
2758
2764
|
"typeString": "bytes32"
|
2759
2765
|
}
|
2760
2766
|
}
|
2761
2767
|
],
|
2762
|
-
"id":
|
2768
|
+
"id": 39089,
|
2763
2769
|
"isConstant": false,
|
2764
2770
|
"isInlineArray": false,
|
2765
2771
|
"isLValue": false,
|
2766
2772
|
"isPure": false,
|
2767
2773
|
"lValueRequested": false,
|
2768
2774
|
"nodeType": "TupleExpression",
|
2769
|
-
"src": "
|
2775
|
+
"src": "2847:48:98",
|
2770
2776
|
"typeDescriptions": {
|
2771
2777
|
"typeIdentifier": "t_bytes32",
|
2772
2778
|
"typeString": "bytes32"
|
@@ -2775,18 +2781,18 @@
|
|
2775
2781
|
"nodeType": "BinaryOperation",
|
2776
2782
|
"operator": "|",
|
2777
2783
|
"rightExpression": {
|
2778
|
-
"id":
|
2784
|
+
"id": 39090,
|
2779
2785
|
"name": "MASK_RESOURCE_NAMESPACE",
|
2780
2786
|
"nodeType": "Identifier",
|
2781
2787
|
"overloadedDeclarations": [],
|
2782
|
-
"referencedDeclaration":
|
2783
|
-
"src": "
|
2788
|
+
"referencedDeclaration": 39301,
|
2789
|
+
"src": "2898:23:98",
|
2784
2790
|
"typeDescriptions": {
|
2785
2791
|
"typeIdentifier": "t_bytes32",
|
2786
2792
|
"typeString": "bytes32"
|
2787
2793
|
}
|
2788
2794
|
},
|
2789
|
-
"src": "
|
2795
|
+
"src": "2847:74:98",
|
2790
2796
|
"typeDescriptions": {
|
2791
2797
|
"typeIdentifier": "t_bytes32",
|
2792
2798
|
"typeString": "bytes32"
|
@@ -2801,32 +2807,32 @@
|
|
2801
2807
|
}
|
2802
2808
|
],
|
2803
2809
|
"expression": {
|
2804
|
-
"id":
|
2810
|
+
"id": 39081,
|
2805
2811
|
"name": "ResourceId",
|
2806
2812
|
"nodeType": "Identifier",
|
2807
2813
|
"overloadedDeclarations": [],
|
2808
|
-
"referencedDeclaration":
|
2809
|
-
"src": "
|
2814
|
+
"referencedDeclaration": 26238,
|
2815
|
+
"src": "2831:10:98",
|
2810
2816
|
"typeDescriptions": {
|
2811
|
-
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$
|
2817
|
+
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$26238_$",
|
2812
2818
|
"typeString": "type(ResourceId)"
|
2813
2819
|
}
|
2814
2820
|
},
|
2815
|
-
"id":
|
2821
|
+
"id": 39082,
|
2816
2822
|
"isConstant": false,
|
2817
2823
|
"isLValue": false,
|
2818
2824
|
"isPure": true,
|
2819
2825
|
"lValueRequested": false,
|
2820
|
-
"memberLocation": "
|
2826
|
+
"memberLocation": "2842:4:98",
|
2821
2827
|
"memberName": "wrap",
|
2822
2828
|
"nodeType": "MemberAccess",
|
2823
|
-
"src": "
|
2829
|
+
"src": "2831:15:98",
|
2824
2830
|
"typeDescriptions": {
|
2825
|
-
"typeIdentifier": "t_function_wrap_pure$_t_bytes32_$returns$_t_userDefinedValueType$_ResourceId_$
|
2831
|
+
"typeIdentifier": "t_function_wrap_pure$_t_bytes32_$returns$_t_userDefinedValueType$_ResourceId_$26238_$",
|
2826
2832
|
"typeString": "function (bytes32) pure returns (ResourceId)"
|
2827
2833
|
}
|
2828
2834
|
},
|
2829
|
-
"id":
|
2835
|
+
"id": 39092,
|
2830
2836
|
"isConstant": false,
|
2831
2837
|
"isLValue": false,
|
2832
2838
|
"isPure": false,
|
@@ -2835,133 +2841,133 @@
|
|
2835
2841
|
"nameLocations": [],
|
2836
2842
|
"names": [],
|
2837
2843
|
"nodeType": "FunctionCall",
|
2838
|
-
"src": "
|
2844
|
+
"src": "2831:91:98",
|
2839
2845
|
"tryCall": false,
|
2840
2846
|
"typeDescriptions": {
|
2841
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
2847
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
2842
2848
|
"typeString": "ResourceId"
|
2843
2849
|
}
|
2844
2850
|
},
|
2845
|
-
"functionReturnParameters":
|
2846
|
-
"id":
|
2851
|
+
"functionReturnParameters": 39080,
|
2852
|
+
"id": 39093,
|
2847
2853
|
"nodeType": "Return",
|
2848
|
-
"src": "
|
2854
|
+
"src": "2824:98:98"
|
2849
2855
|
}
|
2850
2856
|
]
|
2851
2857
|
},
|
2852
2858
|
"documentation": {
|
2853
|
-
"id":
|
2859
|
+
"id": 39072,
|
2854
2860
|
"nodeType": "StructuredDocumentation",
|
2855
|
-
"src": "
|
2856
|
-
"text": " Get the namespace resource ID
|
2861
|
+
"src": "2584:149:98",
|
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."
|
2857
2863
|
},
|
2858
2864
|
"implemented": true,
|
2859
2865
|
"kind": "function",
|
2860
2866
|
"modifiers": [],
|
2861
2867
|
"name": "getNamespaceId",
|
2862
|
-
"nameLocation": "
|
2868
|
+
"nameLocation": "2745:14:98",
|
2863
2869
|
"parameters": {
|
2864
|
-
"id":
|
2870
|
+
"id": 39076,
|
2865
2871
|
"nodeType": "ParameterList",
|
2866
2872
|
"parameters": [
|
2867
2873
|
{
|
2868
2874
|
"constant": false,
|
2869
|
-
"id":
|
2875
|
+
"id": 39075,
|
2870
2876
|
"mutability": "mutable",
|
2871
2877
|
"name": "resourceId",
|
2872
|
-
"nameLocation": "
|
2878
|
+
"nameLocation": "2771:10:98",
|
2873
2879
|
"nodeType": "VariableDeclaration",
|
2874
|
-
"scope":
|
2875
|
-
"src": "
|
2880
|
+
"scope": 39095,
|
2881
|
+
"src": "2760:21:98",
|
2876
2882
|
"stateVariable": false,
|
2877
2883
|
"storageLocation": "default",
|
2878
2884
|
"typeDescriptions": {
|
2879
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
2885
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
2880
2886
|
"typeString": "ResourceId"
|
2881
2887
|
},
|
2882
2888
|
"typeName": {
|
2883
|
-
"id":
|
2889
|
+
"id": 39074,
|
2884
2890
|
"nodeType": "UserDefinedTypeName",
|
2885
2891
|
"pathNode": {
|
2886
|
-
"id":
|
2892
|
+
"id": 39073,
|
2887
2893
|
"name": "ResourceId",
|
2888
2894
|
"nameLocations": [
|
2889
|
-
"
|
2895
|
+
"2760:10:98"
|
2890
2896
|
],
|
2891
2897
|
"nodeType": "IdentifierPath",
|
2892
|
-
"referencedDeclaration":
|
2893
|
-
"src": "
|
2898
|
+
"referencedDeclaration": 26238,
|
2899
|
+
"src": "2760:10:98"
|
2894
2900
|
},
|
2895
|
-
"referencedDeclaration":
|
2896
|
-
"src": "
|
2901
|
+
"referencedDeclaration": 26238,
|
2902
|
+
"src": "2760:10:98",
|
2897
2903
|
"typeDescriptions": {
|
2898
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
2904
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
2899
2905
|
"typeString": "ResourceId"
|
2900
2906
|
}
|
2901
2907
|
},
|
2902
2908
|
"visibility": "internal"
|
2903
2909
|
}
|
2904
2910
|
],
|
2905
|
-
"src": "
|
2911
|
+
"src": "2759:23:98"
|
2906
2912
|
},
|
2907
2913
|
"returnParameters": {
|
2908
|
-
"id":
|
2914
|
+
"id": 39080,
|
2909
2915
|
"nodeType": "ParameterList",
|
2910
2916
|
"parameters": [
|
2911
2917
|
{
|
2912
2918
|
"constant": false,
|
2913
|
-
"id":
|
2919
|
+
"id": 39079,
|
2914
2920
|
"mutability": "mutable",
|
2915
2921
|
"name": "",
|
2916
2922
|
"nameLocation": "-1:-1:-1",
|
2917
2923
|
"nodeType": "VariableDeclaration",
|
2918
|
-
"scope":
|
2919
|
-
"src": "
|
2924
|
+
"scope": 39095,
|
2925
|
+
"src": "2806:10:98",
|
2920
2926
|
"stateVariable": false,
|
2921
2927
|
"storageLocation": "default",
|
2922
2928
|
"typeDescriptions": {
|
2923
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
2929
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
2924
2930
|
"typeString": "ResourceId"
|
2925
2931
|
},
|
2926
2932
|
"typeName": {
|
2927
|
-
"id":
|
2933
|
+
"id": 39078,
|
2928
2934
|
"nodeType": "UserDefinedTypeName",
|
2929
2935
|
"pathNode": {
|
2930
|
-
"id":
|
2936
|
+
"id": 39077,
|
2931
2937
|
"name": "ResourceId",
|
2932
2938
|
"nameLocations": [
|
2933
|
-
"
|
2939
|
+
"2806:10:98"
|
2934
2940
|
],
|
2935
2941
|
"nodeType": "IdentifierPath",
|
2936
|
-
"referencedDeclaration":
|
2937
|
-
"src": "
|
2942
|
+
"referencedDeclaration": 26238,
|
2943
|
+
"src": "2806:10:98"
|
2938
2944
|
},
|
2939
|
-
"referencedDeclaration":
|
2940
|
-
"src": "
|
2945
|
+
"referencedDeclaration": 26238,
|
2946
|
+
"src": "2806:10:98",
|
2941
2947
|
"typeDescriptions": {
|
2942
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
2948
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
2943
2949
|
"typeString": "ResourceId"
|
2944
2950
|
}
|
2945
2951
|
},
|
2946
2952
|
"visibility": "internal"
|
2947
2953
|
}
|
2948
2954
|
],
|
2949
|
-
"src": "
|
2955
|
+
"src": "2805:12:98"
|
2950
2956
|
},
|
2951
|
-
"scope":
|
2957
|
+
"scope": 39170,
|
2952
2958
|
"stateMutability": "pure",
|
2953
2959
|
"virtual": false,
|
2954
2960
|
"visibility": "internal"
|
2955
2961
|
},
|
2956
2962
|
{
|
2957
|
-
"id":
|
2963
|
+
"id": 39118,
|
2958
2964
|
"nodeType": "FunctionDefinition",
|
2959
|
-
"src": "
|
2965
|
+
"src": "3058:160:98",
|
2960
2966
|
"nodes": [],
|
2961
2967
|
"body": {
|
2962
|
-
"id":
|
2968
|
+
"id": 39117,
|
2963
2969
|
"nodeType": "Block",
|
2964
|
-
"src": "
|
2970
|
+
"src": "3130:88:98",
|
2965
2971
|
"nodes": [],
|
2966
2972
|
"statements": [
|
2967
2973
|
{
|
@@ -2972,7 +2978,7 @@
|
|
2972
2978
|
"typeIdentifier": "t_bytes32",
|
2973
2979
|
"typeString": "bytes32"
|
2974
2980
|
},
|
2975
|
-
"id":
|
2981
|
+
"id": 39114,
|
2976
2982
|
"isConstant": false,
|
2977
2983
|
"isLValue": false,
|
2978
2984
|
"isPure": false,
|
@@ -2980,14 +2986,14 @@
|
|
2980
2986
|
"leftExpression": {
|
2981
2987
|
"arguments": [
|
2982
2988
|
{
|
2983
|
-
"id":
|
2989
|
+
"id": 39108,
|
2984
2990
|
"name": "resourceId",
|
2985
2991
|
"nodeType": "Identifier",
|
2986
2992
|
"overloadedDeclarations": [],
|
2987
|
-
"referencedDeclaration":
|
2988
|
-
"src": "
|
2993
|
+
"referencedDeclaration": 39099,
|
2994
|
+
"src": "3169:10:98",
|
2989
2995
|
"typeDescriptions": {
|
2990
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
2996
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
2991
2997
|
"typeString": "ResourceId"
|
2992
2998
|
}
|
2993
2999
|
}
|
@@ -2995,37 +3001,37 @@
|
|
2995
3001
|
"expression": {
|
2996
3002
|
"argumentTypes": [
|
2997
3003
|
{
|
2998
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
3004
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
2999
3005
|
"typeString": "ResourceId"
|
3000
3006
|
}
|
3001
3007
|
],
|
3002
3008
|
"expression": {
|
3003
|
-
"id":
|
3009
|
+
"id": 39106,
|
3004
3010
|
"name": "ResourceId",
|
3005
3011
|
"nodeType": "Identifier",
|
3006
3012
|
"overloadedDeclarations": [],
|
3007
|
-
"referencedDeclaration":
|
3008
|
-
"src": "
|
3013
|
+
"referencedDeclaration": 26238,
|
3014
|
+
"src": "3151:10:98",
|
3009
3015
|
"typeDescriptions": {
|
3010
|
-
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$
|
3016
|
+
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$26238_$",
|
3011
3017
|
"typeString": "type(ResourceId)"
|
3012
3018
|
}
|
3013
3019
|
},
|
3014
|
-
"id":
|
3020
|
+
"id": 39107,
|
3015
3021
|
"isConstant": false,
|
3016
3022
|
"isLValue": false,
|
3017
3023
|
"isPure": true,
|
3018
3024
|
"lValueRequested": false,
|
3019
|
-
"memberLocation": "
|
3025
|
+
"memberLocation": "3162:6:98",
|
3020
3026
|
"memberName": "unwrap",
|
3021
3027
|
"nodeType": "MemberAccess",
|
3022
|
-
"src": "
|
3028
|
+
"src": "3151:17:98",
|
3023
3029
|
"typeDescriptions": {
|
3024
|
-
"typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_ResourceId_$
|
3030
|
+
"typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_ResourceId_$26238_$returns$_t_bytes32_$",
|
3025
3031
|
"typeString": "function (ResourceId) pure returns (bytes32)"
|
3026
3032
|
}
|
3027
3033
|
},
|
3028
|
-
"id":
|
3034
|
+
"id": 39109,
|
3029
3035
|
"isConstant": false,
|
3030
3036
|
"isLValue": false,
|
3031
3037
|
"isPure": false,
|
@@ -3034,7 +3040,7 @@
|
|
3034
3040
|
"nameLocations": [],
|
3035
3041
|
"names": [],
|
3036
3042
|
"nodeType": "FunctionCall",
|
3037
|
-
"src": "
|
3043
|
+
"src": "3151:29:98",
|
3038
3044
|
"tryCall": false,
|
3039
3045
|
"typeDescriptions": {
|
3040
3046
|
"typeIdentifier": "t_bytes32",
|
@@ -3050,18 +3056,18 @@
|
|
3050
3056
|
"typeIdentifier": "t_uint256",
|
3051
3057
|
"typeString": "uint256"
|
3052
3058
|
},
|
3053
|
-
"id":
|
3059
|
+
"id": 39112,
|
3054
3060
|
"isConstant": false,
|
3055
3061
|
"isLValue": false,
|
3056
3062
|
"isPure": true,
|
3057
3063
|
"lValueRequested": false,
|
3058
3064
|
"leftExpression": {
|
3059
|
-
"id":
|
3065
|
+
"id": 39110,
|
3060
3066
|
"name": "TYPE_BITS",
|
3061
3067
|
"nodeType": "Identifier",
|
3062
3068
|
"overloadedDeclarations": [],
|
3063
|
-
"referencedDeclaration":
|
3064
|
-
"src": "
|
3069
|
+
"referencedDeclaration": 26243,
|
3070
|
+
"src": "3185:9:98",
|
3065
3071
|
"typeDescriptions": {
|
3066
3072
|
"typeIdentifier": "t_uint256",
|
3067
3073
|
"typeString": "uint256"
|
@@ -3070,38 +3076,38 @@
|
|
3070
3076
|
"nodeType": "BinaryOperation",
|
3071
3077
|
"operator": "+",
|
3072
3078
|
"rightExpression": {
|
3073
|
-
"id":
|
3079
|
+
"id": 39111,
|
3074
3080
|
"name": "NAMESPACE_BITS",
|
3075
3081
|
"nodeType": "Identifier",
|
3076
3082
|
"overloadedDeclarations": [],
|
3077
|
-
"referencedDeclaration":
|
3078
|
-
"src": "
|
3083
|
+
"referencedDeclaration": 38905,
|
3084
|
+
"src": "3197:14:98",
|
3079
3085
|
"typeDescriptions": {
|
3080
3086
|
"typeIdentifier": "t_uint256",
|
3081
3087
|
"typeString": "uint256"
|
3082
3088
|
}
|
3083
3089
|
},
|
3084
|
-
"src": "
|
3090
|
+
"src": "3185:26:98",
|
3085
3091
|
"typeDescriptions": {
|
3086
3092
|
"typeIdentifier": "t_uint256",
|
3087
3093
|
"typeString": "uint256"
|
3088
3094
|
}
|
3089
3095
|
}
|
3090
3096
|
],
|
3091
|
-
"id":
|
3097
|
+
"id": 39113,
|
3092
3098
|
"isConstant": false,
|
3093
3099
|
"isInlineArray": false,
|
3094
3100
|
"isLValue": false,
|
3095
3101
|
"isPure": true,
|
3096
3102
|
"lValueRequested": false,
|
3097
3103
|
"nodeType": "TupleExpression",
|
3098
|
-
"src": "
|
3104
|
+
"src": "3184:28:98",
|
3099
3105
|
"typeDescriptions": {
|
3100
3106
|
"typeIdentifier": "t_uint256",
|
3101
3107
|
"typeString": "uint256"
|
3102
3108
|
}
|
3103
3109
|
},
|
3104
|
-
"src": "
|
3110
|
+
"src": "3151:61:98",
|
3105
3111
|
"typeDescriptions": {
|
3106
3112
|
"typeIdentifier": "t_bytes32",
|
3107
3113
|
"typeString": "bytes32"
|
@@ -3115,26 +3121,26 @@
|
|
3115
3121
|
"typeString": "bytes32"
|
3116
3122
|
}
|
3117
3123
|
],
|
3118
|
-
"id":
|
3124
|
+
"id": 39105,
|
3119
3125
|
"isConstant": false,
|
3120
3126
|
"isLValue": false,
|
3121
3127
|
"isPure": true,
|
3122
3128
|
"lValueRequested": false,
|
3123
3129
|
"nodeType": "ElementaryTypeNameExpression",
|
3124
|
-
"src": "
|
3130
|
+
"src": "3143:7:98",
|
3125
3131
|
"typeDescriptions": {
|
3126
3132
|
"typeIdentifier": "t_type$_t_bytes16_$",
|
3127
3133
|
"typeString": "type(bytes16)"
|
3128
3134
|
},
|
3129
3135
|
"typeName": {
|
3130
|
-
"id":
|
3136
|
+
"id": 39104,
|
3131
3137
|
"name": "bytes16",
|
3132
3138
|
"nodeType": "ElementaryTypeName",
|
3133
|
-
"src": "
|
3139
|
+
"src": "3143:7:98",
|
3134
3140
|
"typeDescriptions": {}
|
3135
3141
|
}
|
3136
3142
|
},
|
3137
|
-
"id":
|
3143
|
+
"id": 39115,
|
3138
3144
|
"isConstant": false,
|
3139
3145
|
"isLValue": false,
|
3140
3146
|
"isPure": false,
|
@@ -3143,88 +3149,88 @@
|
|
3143
3149
|
"nameLocations": [],
|
3144
3150
|
"names": [],
|
3145
3151
|
"nodeType": "FunctionCall",
|
3146
|
-
"src": "
|
3152
|
+
"src": "3143:70:98",
|
3147
3153
|
"tryCall": false,
|
3148
3154
|
"typeDescriptions": {
|
3149
3155
|
"typeIdentifier": "t_bytes16",
|
3150
3156
|
"typeString": "bytes16"
|
3151
3157
|
}
|
3152
3158
|
},
|
3153
|
-
"functionReturnParameters":
|
3154
|
-
"id":
|
3159
|
+
"functionReturnParameters": 39103,
|
3160
|
+
"id": 39116,
|
3155
3161
|
"nodeType": "Return",
|
3156
|
-
"src": "
|
3162
|
+
"src": "3136:77:98"
|
3157
3163
|
}
|
3158
3164
|
]
|
3159
3165
|
},
|
3160
3166
|
"documentation": {
|
3161
|
-
"id":
|
3167
|
+
"id": 39096,
|
3162
3168
|
"nodeType": "StructuredDocumentation",
|
3163
|
-
"src": "
|
3164
|
-
"text": " Get the name
|
3169
|
+
"src": "2931:124:98",
|
3170
|
+
"text": " @notice Get the name from a resource ID.\n @param resourceId The resource ID.\n @return A 16-byte name."
|
3165
3171
|
},
|
3166
3172
|
"implemented": true,
|
3167
3173
|
"kind": "function",
|
3168
3174
|
"modifiers": [],
|
3169
3175
|
"name": "getName",
|
3170
|
-
"nameLocation": "
|
3176
|
+
"nameLocation": "3067:7:98",
|
3171
3177
|
"parameters": {
|
3172
|
-
"id":
|
3178
|
+
"id": 39100,
|
3173
3179
|
"nodeType": "ParameterList",
|
3174
3180
|
"parameters": [
|
3175
3181
|
{
|
3176
3182
|
"constant": false,
|
3177
|
-
"id":
|
3183
|
+
"id": 39099,
|
3178
3184
|
"mutability": "mutable",
|
3179
3185
|
"name": "resourceId",
|
3180
|
-
"nameLocation": "
|
3186
|
+
"nameLocation": "3086:10:98",
|
3181
3187
|
"nodeType": "VariableDeclaration",
|
3182
|
-
"scope":
|
3183
|
-
"src": "
|
3188
|
+
"scope": 39118,
|
3189
|
+
"src": "3075:21:98",
|
3184
3190
|
"stateVariable": false,
|
3185
3191
|
"storageLocation": "default",
|
3186
3192
|
"typeDescriptions": {
|
3187
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
3193
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
3188
3194
|
"typeString": "ResourceId"
|
3189
3195
|
},
|
3190
3196
|
"typeName": {
|
3191
|
-
"id":
|
3197
|
+
"id": 39098,
|
3192
3198
|
"nodeType": "UserDefinedTypeName",
|
3193
3199
|
"pathNode": {
|
3194
|
-
"id":
|
3200
|
+
"id": 39097,
|
3195
3201
|
"name": "ResourceId",
|
3196
3202
|
"nameLocations": [
|
3197
|
-
"
|
3203
|
+
"3075:10:98"
|
3198
3204
|
],
|
3199
3205
|
"nodeType": "IdentifierPath",
|
3200
|
-
"referencedDeclaration":
|
3201
|
-
"src": "
|
3206
|
+
"referencedDeclaration": 26238,
|
3207
|
+
"src": "3075:10:98"
|
3202
3208
|
},
|
3203
|
-
"referencedDeclaration":
|
3204
|
-
"src": "
|
3209
|
+
"referencedDeclaration": 26238,
|
3210
|
+
"src": "3075:10:98",
|
3205
3211
|
"typeDescriptions": {
|
3206
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
3212
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
3207
3213
|
"typeString": "ResourceId"
|
3208
3214
|
}
|
3209
3215
|
},
|
3210
3216
|
"visibility": "internal"
|
3211
3217
|
}
|
3212
3218
|
],
|
3213
|
-
"src": "
|
3219
|
+
"src": "3074:23:98"
|
3214
3220
|
},
|
3215
3221
|
"returnParameters": {
|
3216
|
-
"id":
|
3222
|
+
"id": 39103,
|
3217
3223
|
"nodeType": "ParameterList",
|
3218
3224
|
"parameters": [
|
3219
3225
|
{
|
3220
3226
|
"constant": false,
|
3221
|
-
"id":
|
3227
|
+
"id": 39102,
|
3222
3228
|
"mutability": "mutable",
|
3223
3229
|
"name": "",
|
3224
3230
|
"nameLocation": "-1:-1:-1",
|
3225
3231
|
"nodeType": "VariableDeclaration",
|
3226
|
-
"scope":
|
3227
|
-
"src": "
|
3232
|
+
"scope": 39118,
|
3233
|
+
"src": "3121:7:98",
|
3228
3234
|
"stateVariable": false,
|
3229
3235
|
"storageLocation": "default",
|
3230
3236
|
"typeDescriptions": {
|
@@ -3232,10 +3238,10 @@
|
|
3232
3238
|
"typeString": "bytes16"
|
3233
3239
|
},
|
3234
3240
|
"typeName": {
|
3235
|
-
"id":
|
3241
|
+
"id": 39101,
|
3236
3242
|
"name": "bytes16",
|
3237
3243
|
"nodeType": "ElementaryTypeName",
|
3238
|
-
"src": "
|
3244
|
+
"src": "3121:7:98",
|
3239
3245
|
"typeDescriptions": {
|
3240
3246
|
"typeIdentifier": "t_bytes16",
|
3241
3247
|
"typeString": "bytes16"
|
@@ -3244,38 +3250,38 @@
|
|
3244
3250
|
"visibility": "internal"
|
3245
3251
|
}
|
3246
3252
|
],
|
3247
|
-
"src": "
|
3253
|
+
"src": "3120:9:98"
|
3248
3254
|
},
|
3249
|
-
"scope":
|
3255
|
+
"scope": 39170,
|
3250
3256
|
"stateMutability": "pure",
|
3251
3257
|
"virtual": false,
|
3252
3258
|
"visibility": "internal"
|
3253
3259
|
},
|
3254
3260
|
{
|
3255
|
-
"id":
|
3261
|
+
"id": 39169,
|
3256
3262
|
"nodeType": "FunctionDefinition",
|
3257
|
-
"src": "
|
3263
|
+
"src": "3379:541:98",
|
3258
3264
|
"nodes": [],
|
3259
3265
|
"body": {
|
3260
|
-
"id":
|
3266
|
+
"id": 39168,
|
3261
3267
|
"nodeType": "Block",
|
3262
|
-
"src": "
|
3268
|
+
"src": "3458:462:98",
|
3263
3269
|
"nodes": [],
|
3264
3270
|
"statements": [
|
3265
3271
|
{
|
3266
3272
|
"assignments": [
|
3267
|
-
|
3273
|
+
39128
|
3268
3274
|
],
|
3269
3275
|
"declarations": [
|
3270
3276
|
{
|
3271
3277
|
"constant": false,
|
3272
|
-
"id":
|
3278
|
+
"id": 39128,
|
3273
3279
|
"mutability": "mutable",
|
3274
3280
|
"name": "resourceType",
|
3275
|
-
"nameLocation": "
|
3281
|
+
"nameLocation": "3471:12:98",
|
3276
3282
|
"nodeType": "VariableDeclaration",
|
3277
|
-
"scope":
|
3278
|
-
"src": "
|
3283
|
+
"scope": 39168,
|
3284
|
+
"src": "3464:19:98",
|
3279
3285
|
"stateVariable": false,
|
3280
3286
|
"storageLocation": "default",
|
3281
3287
|
"typeDescriptions": {
|
@@ -3283,10 +3289,10 @@
|
|
3283
3289
|
"typeString": "bytes2"
|
3284
3290
|
},
|
3285
3291
|
"typeName": {
|
3286
|
-
"id":
|
3292
|
+
"id": 39127,
|
3287
3293
|
"name": "bytes2",
|
3288
3294
|
"nodeType": "ElementaryTypeName",
|
3289
|
-
"src": "
|
3295
|
+
"src": "3464:6:98",
|
3290
3296
|
"typeDescriptions": {
|
3291
3297
|
"typeIdentifier": "t_bytes2",
|
3292
3298
|
"typeString": "bytes2"
|
@@ -3295,18 +3301,18 @@
|
|
3295
3301
|
"visibility": "internal"
|
3296
3302
|
}
|
3297
3303
|
],
|
3298
|
-
"id":
|
3304
|
+
"id": 39133,
|
3299
3305
|
"initialValue": {
|
3300
3306
|
"arguments": [
|
3301
3307
|
{
|
3302
|
-
"id":
|
3308
|
+
"id": 39131,
|
3303
3309
|
"name": "resourceId",
|
3304
3310
|
"nodeType": "Identifier",
|
3305
3311
|
"overloadedDeclarations": [],
|
3306
|
-
"referencedDeclaration":
|
3307
|
-
"src": "
|
3312
|
+
"referencedDeclaration": 39122,
|
3313
|
+
"src": "3513:10:98",
|
3308
3314
|
"typeDescriptions": {
|
3309
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
3315
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
3310
3316
|
"typeString": "ResourceId"
|
3311
3317
|
}
|
3312
3318
|
}
|
@@ -3314,38 +3320,38 @@
|
|
3314
3320
|
"expression": {
|
3315
3321
|
"argumentTypes": [
|
3316
3322
|
{
|
3317
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
3323
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
3318
3324
|
"typeString": "ResourceId"
|
3319
3325
|
}
|
3320
3326
|
],
|
3321
3327
|
"expression": {
|
3322
|
-
"id":
|
3328
|
+
"id": 39129,
|
3323
3329
|
"name": "ResourceIdInstance",
|
3324
3330
|
"nodeType": "Identifier",
|
3325
3331
|
"overloadedDeclarations": [],
|
3326
|
-
"referencedDeclaration":
|
3327
|
-
"src": "
|
3332
|
+
"referencedDeclaration": 26302,
|
3333
|
+
"src": "3486:18:98",
|
3328
3334
|
"typeDescriptions": {
|
3329
|
-
"typeIdentifier": "t_type$_t_contract$_ResourceIdInstance_$
|
3335
|
+
"typeIdentifier": "t_type$_t_contract$_ResourceIdInstance_$26302_$",
|
3330
3336
|
"typeString": "type(library ResourceIdInstance)"
|
3331
3337
|
}
|
3332
3338
|
},
|
3333
|
-
"id":
|
3339
|
+
"id": 39130,
|
3334
3340
|
"isConstant": false,
|
3335
3341
|
"isLValue": false,
|
3336
3342
|
"isPure": false,
|
3337
3343
|
"lValueRequested": false,
|
3338
|
-
"memberLocation": "
|
3344
|
+
"memberLocation": "3505:7:98",
|
3339
3345
|
"memberName": "getType",
|
3340
3346
|
"nodeType": "MemberAccess",
|
3341
|
-
"referencedDeclaration":
|
3342
|
-
"src": "
|
3347
|
+
"referencedDeclaration": 26301,
|
3348
|
+
"src": "3486:26:98",
|
3343
3349
|
"typeDescriptions": {
|
3344
|
-
"typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_ResourceId_$
|
3350
|
+
"typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_ResourceId_$26238_$returns$_t_bytes2_$",
|
3345
3351
|
"typeString": "function (ResourceId) pure returns (bytes2)"
|
3346
3352
|
}
|
3347
3353
|
},
|
3348
|
-
"id":
|
3354
|
+
"id": 39132,
|
3349
3355
|
"isConstant": false,
|
3350
3356
|
"isLValue": false,
|
3351
3357
|
"isPure": false,
|
@@ -3354,7 +3360,7 @@
|
|
3354
3360
|
"nameLocations": [],
|
3355
3361
|
"names": [],
|
3356
3362
|
"nodeType": "FunctionCall",
|
3357
|
-
"src": "
|
3363
|
+
"src": "3486:38:98",
|
3358
3364
|
"tryCall": false,
|
3359
3365
|
"typeDescriptions": {
|
3360
3366
|
"typeIdentifier": "t_bytes2",
|
@@ -3362,22 +3368,22 @@
|
|
3362
3368
|
}
|
3363
3369
|
},
|
3364
3370
|
"nodeType": "VariableDeclarationStatement",
|
3365
|
-
"src": "
|
3371
|
+
"src": "3464:60:98"
|
3366
3372
|
},
|
3367
3373
|
{
|
3368
3374
|
"assignments": [
|
3369
|
-
|
3375
|
+
39135
|
3370
3376
|
],
|
3371
3377
|
"declarations": [
|
3372
3378
|
{
|
3373
3379
|
"constant": false,
|
3374
|
-
"id":
|
3380
|
+
"id": 39135,
|
3375
3381
|
"mutability": "mutable",
|
3376
3382
|
"name": "resourceNamespace",
|
3377
|
-
"nameLocation": "
|
3383
|
+
"nameLocation": "3538:17:98",
|
3378
3384
|
"nodeType": "VariableDeclaration",
|
3379
|
-
"scope":
|
3380
|
-
"src": "
|
3385
|
+
"scope": 39168,
|
3386
|
+
"src": "3530:25:98",
|
3381
3387
|
"stateVariable": false,
|
3382
3388
|
"storageLocation": "default",
|
3383
3389
|
"typeDescriptions": {
|
@@ -3385,10 +3391,10 @@
|
|
3385
3391
|
"typeString": "bytes14"
|
3386
3392
|
},
|
3387
3393
|
"typeName": {
|
3388
|
-
"id":
|
3394
|
+
"id": 39134,
|
3389
3395
|
"name": "bytes14",
|
3390
3396
|
"nodeType": "ElementaryTypeName",
|
3391
|
-
"src": "
|
3397
|
+
"src": "3530:7:98",
|
3392
3398
|
"typeDescriptions": {
|
3393
3399
|
"typeIdentifier": "t_bytes14",
|
3394
3400
|
"typeString": "bytes14"
|
@@ -3397,18 +3403,18 @@
|
|
3397
3403
|
"visibility": "internal"
|
3398
3404
|
}
|
3399
3405
|
],
|
3400
|
-
"id":
|
3406
|
+
"id": 39139,
|
3401
3407
|
"initialValue": {
|
3402
3408
|
"arguments": [
|
3403
3409
|
{
|
3404
|
-
"id":
|
3410
|
+
"id": 39137,
|
3405
3411
|
"name": "resourceId",
|
3406
3412
|
"nodeType": "Identifier",
|
3407
3413
|
"overloadedDeclarations": [],
|
3408
|
-
"referencedDeclaration":
|
3409
|
-
"src": "
|
3414
|
+
"referencedDeclaration": 39122,
|
3415
|
+
"src": "3571:10:98",
|
3410
3416
|
"typeDescriptions": {
|
3411
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
3417
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
3412
3418
|
"typeString": "ResourceId"
|
3413
3419
|
}
|
3414
3420
|
}
|
@@ -3416,22 +3422,22 @@
|
|
3416
3422
|
"expression": {
|
3417
3423
|
"argumentTypes": [
|
3418
3424
|
{
|
3419
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
3425
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
3420
3426
|
"typeString": "ResourceId"
|
3421
3427
|
}
|
3422
3428
|
],
|
3423
|
-
"id":
|
3429
|
+
"id": 39136,
|
3424
3430
|
"name": "getNamespace",
|
3425
3431
|
"nodeType": "Identifier",
|
3426
3432
|
"overloadedDeclarations": [],
|
3427
|
-
"referencedDeclaration":
|
3428
|
-
"src": "
|
3433
|
+
"referencedDeclaration": 39071,
|
3434
|
+
"src": "3558:12:98",
|
3429
3435
|
"typeDescriptions": {
|
3430
|
-
"typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_ResourceId_$
|
3436
|
+
"typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_ResourceId_$26238_$returns$_t_bytes14_$",
|
3431
3437
|
"typeString": "function (ResourceId) pure returns (bytes14)"
|
3432
3438
|
}
|
3433
3439
|
},
|
3434
|
-
"id":
|
3440
|
+
"id": 39138,
|
3435
3441
|
"isConstant": false,
|
3436
3442
|
"isLValue": false,
|
3437
3443
|
"isPure": false,
|
@@ -3440,7 +3446,7 @@
|
|
3440
3446
|
"nameLocations": [],
|
3441
3447
|
"names": [],
|
3442
3448
|
"nodeType": "FunctionCall",
|
3443
|
-
"src": "
|
3449
|
+
"src": "3558:24:98",
|
3444
3450
|
"tryCall": false,
|
3445
3451
|
"typeDescriptions": {
|
3446
3452
|
"typeIdentifier": "t_bytes14",
|
@@ -3448,22 +3454,22 @@
|
|
3448
3454
|
}
|
3449
3455
|
},
|
3450
3456
|
"nodeType": "VariableDeclarationStatement",
|
3451
|
-
"src": "
|
3457
|
+
"src": "3530:52:98"
|
3452
3458
|
},
|
3453
3459
|
{
|
3454
3460
|
"assignments": [
|
3455
|
-
|
3461
|
+
39141
|
3456
3462
|
],
|
3457
3463
|
"declarations": [
|
3458
3464
|
{
|
3459
3465
|
"constant": false,
|
3460
|
-
"id":
|
3466
|
+
"id": 39141,
|
3461
3467
|
"mutability": "mutable",
|
3462
3468
|
"name": "resourceName",
|
3463
|
-
"nameLocation": "
|
3469
|
+
"nameLocation": "3596:12:98",
|
3464
3470
|
"nodeType": "VariableDeclaration",
|
3465
|
-
"scope":
|
3466
|
-
"src": "
|
3471
|
+
"scope": 39168,
|
3472
|
+
"src": "3588:20:98",
|
3467
3473
|
"stateVariable": false,
|
3468
3474
|
"storageLocation": "default",
|
3469
3475
|
"typeDescriptions": {
|
@@ -3471,10 +3477,10 @@
|
|
3471
3477
|
"typeString": "bytes16"
|
3472
3478
|
},
|
3473
3479
|
"typeName": {
|
3474
|
-
"id":
|
3480
|
+
"id": 39140,
|
3475
3481
|
"name": "bytes16",
|
3476
3482
|
"nodeType": "ElementaryTypeName",
|
3477
|
-
"src": "
|
3483
|
+
"src": "3588:7:98",
|
3478
3484
|
"typeDescriptions": {
|
3479
3485
|
"typeIdentifier": "t_bytes16",
|
3480
3486
|
"typeString": "bytes16"
|
@@ -3483,18 +3489,18 @@
|
|
3483
3489
|
"visibility": "internal"
|
3484
3490
|
}
|
3485
3491
|
],
|
3486
|
-
"id":
|
3492
|
+
"id": 39145,
|
3487
3493
|
"initialValue": {
|
3488
3494
|
"arguments": [
|
3489
3495
|
{
|
3490
|
-
"id":
|
3496
|
+
"id": 39143,
|
3491
3497
|
"name": "resourceId",
|
3492
3498
|
"nodeType": "Identifier",
|
3493
3499
|
"overloadedDeclarations": [],
|
3494
|
-
"referencedDeclaration":
|
3495
|
-
"src": "
|
3500
|
+
"referencedDeclaration": 39122,
|
3501
|
+
"src": "3619:10:98",
|
3496
3502
|
"typeDescriptions": {
|
3497
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
3503
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
3498
3504
|
"typeString": "ResourceId"
|
3499
3505
|
}
|
3500
3506
|
}
|
@@ -3502,22 +3508,22 @@
|
|
3502
3508
|
"expression": {
|
3503
3509
|
"argumentTypes": [
|
3504
3510
|
{
|
3505
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
3511
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
3506
3512
|
"typeString": "ResourceId"
|
3507
3513
|
}
|
3508
3514
|
],
|
3509
|
-
"id":
|
3515
|
+
"id": 39142,
|
3510
3516
|
"name": "getName",
|
3511
3517
|
"nodeType": "Identifier",
|
3512
3518
|
"overloadedDeclarations": [],
|
3513
|
-
"referencedDeclaration":
|
3514
|
-
"src": "
|
3519
|
+
"referencedDeclaration": 39118,
|
3520
|
+
"src": "3611:7:98",
|
3515
3521
|
"typeDescriptions": {
|
3516
|
-
"typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_ResourceId_$
|
3522
|
+
"typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_ResourceId_$26238_$returns$_t_bytes16_$",
|
3517
3523
|
"typeString": "function (ResourceId) pure returns (bytes16)"
|
3518
3524
|
}
|
3519
3525
|
},
|
3520
|
-
"id":
|
3526
|
+
"id": 39144,
|
3521
3527
|
"isConstant": false,
|
3522
3528
|
"isLValue": false,
|
3523
3529
|
"isPure": false,
|
@@ -3526,7 +3532,7 @@
|
|
3526
3532
|
"nameLocations": [],
|
3527
3533
|
"names": [],
|
3528
3534
|
"nodeType": "FunctionCall",
|
3529
|
-
"src": "
|
3535
|
+
"src": "3611:19:98",
|
3530
3536
|
"tryCall": false,
|
3531
3537
|
"typeDescriptions": {
|
3532
3538
|
"typeIdentifier": "t_bytes16",
|
@@ -3534,7 +3540,7 @@
|
|
3534
3540
|
}
|
3535
3541
|
},
|
3536
3542
|
"nodeType": "VariableDeclarationStatement",
|
3537
|
-
"src": "
|
3543
|
+
"src": "3588:42:98"
|
3538
3544
|
},
|
3539
3545
|
{
|
3540
3546
|
"expression": {
|
@@ -3542,12 +3548,12 @@
|
|
3542
3548
|
{
|
3543
3549
|
"arguments": [
|
3544
3550
|
{
|
3545
|
-
"id":
|
3551
|
+
"id": 39150,
|
3546
3552
|
"name": "resourceType",
|
3547
3553
|
"nodeType": "Identifier",
|
3548
3554
|
"overloadedDeclarations": [],
|
3549
|
-
"referencedDeclaration":
|
3550
|
-
"src": "
|
3555
|
+
"referencedDeclaration": 39128,
|
3556
|
+
"src": "3693:12:98",
|
3551
3557
|
"typeDescriptions": {
|
3552
3558
|
"typeIdentifier": "t_bytes2",
|
3553
3559
|
"typeString": "bytes2"
|
@@ -3555,14 +3561,14 @@
|
|
3555
3561
|
},
|
3556
3562
|
{
|
3557
3563
|
"hexValue": "3a",
|
3558
|
-
"id":
|
3564
|
+
"id": 39151,
|
3559
3565
|
"isConstant": false,
|
3560
3566
|
"isLValue": false,
|
3561
3567
|
"isPure": true,
|
3562
3568
|
"kind": "string",
|
3563
3569
|
"lValueRequested": false,
|
3564
3570
|
"nodeType": "Literal",
|
3565
|
-
"src": "
|
3571
|
+
"src": "3717:3:98",
|
3566
3572
|
"typeDescriptions": {
|
3567
3573
|
"typeIdentifier": "t_stringliteral_96d280011b274d9410ea6c6fc28e2bb076b01d2fac329c49c4b29a719ec4650c",
|
3568
3574
|
"typeString": "literal_string \":\""
|
@@ -3575,18 +3581,18 @@
|
|
3575
3581
|
"typeIdentifier": "t_bytes14",
|
3576
3582
|
"typeString": "bytes14"
|
3577
3583
|
},
|
3578
|
-
"id":
|
3584
|
+
"id": 39154,
|
3579
3585
|
"isConstant": false,
|
3580
3586
|
"isLValue": false,
|
3581
3587
|
"isPure": false,
|
3582
3588
|
"lValueRequested": false,
|
3583
3589
|
"leftExpression": {
|
3584
|
-
"id":
|
3590
|
+
"id": 39152,
|
3585
3591
|
"name": "resourceNamespace",
|
3586
3592
|
"nodeType": "Identifier",
|
3587
3593
|
"overloadedDeclarations": [],
|
3588
|
-
"referencedDeclaration":
|
3589
|
-
"src": "
|
3594
|
+
"referencedDeclaration": 39135,
|
3595
|
+
"src": "3732:17:98",
|
3590
3596
|
"typeDescriptions": {
|
3591
3597
|
"typeIdentifier": "t_bytes14",
|
3592
3598
|
"typeString": "bytes14"
|
@@ -3595,49 +3601,49 @@
|
|
3595
3601
|
"nodeType": "BinaryOperation",
|
3596
3602
|
"operator": "==",
|
3597
3603
|
"rightExpression": {
|
3598
|
-
"id":
|
3604
|
+
"id": 39153,
|
3599
3605
|
"name": "ROOT_NAMESPACE",
|
3600
3606
|
"nodeType": "Identifier",
|
3601
3607
|
"overloadedDeclarations": [],
|
3602
|
-
"referencedDeclaration":
|
3603
|
-
"src": "
|
3608
|
+
"referencedDeclaration": 39216,
|
3609
|
+
"src": "3753:14:98",
|
3604
3610
|
"typeDescriptions": {
|
3605
3611
|
"typeIdentifier": "t_bytes14",
|
3606
3612
|
"typeString": "bytes14"
|
3607
3613
|
}
|
3608
3614
|
},
|
3609
|
-
"src": "
|
3615
|
+
"src": "3732:35:98",
|
3610
3616
|
"typeDescriptions": {
|
3611
3617
|
"typeIdentifier": "t_bool",
|
3612
3618
|
"typeString": "bool"
|
3613
3619
|
}
|
3614
3620
|
},
|
3615
3621
|
"falseExpression": {
|
3616
|
-
"id":
|
3622
|
+
"id": 39156,
|
3617
3623
|
"name": "resourceNamespace",
|
3618
3624
|
"nodeType": "Identifier",
|
3619
3625
|
"overloadedDeclarations": [],
|
3620
|
-
"referencedDeclaration":
|
3621
|
-
"src": "
|
3626
|
+
"referencedDeclaration": 39135,
|
3627
|
+
"src": "3794:17:98",
|
3622
3628
|
"typeDescriptions": {
|
3623
3629
|
"typeIdentifier": "t_bytes14",
|
3624
3630
|
"typeString": "bytes14"
|
3625
3631
|
}
|
3626
3632
|
},
|
3627
|
-
"id":
|
3633
|
+
"id": 39157,
|
3628
3634
|
"isConstant": false,
|
3629
3635
|
"isLValue": false,
|
3630
3636
|
"isPure": false,
|
3631
3637
|
"lValueRequested": false,
|
3632
3638
|
"nodeType": "Conditional",
|
3633
|
-
"src": "
|
3639
|
+
"src": "3732:79:98",
|
3634
3640
|
"trueExpression": {
|
3635
|
-
"id":
|
3641
|
+
"id": 39155,
|
3636
3642
|
"name": "ROOT_NAMESPACE_STRING",
|
3637
3643
|
"nodeType": "Identifier",
|
3638
3644
|
"overloadedDeclarations": [],
|
3639
|
-
"referencedDeclaration":
|
3640
|
-
"src": "
|
3645
|
+
"referencedDeclaration": 38916,
|
3646
|
+
"src": "3770:21:98",
|
3641
3647
|
"typeDescriptions": {
|
3642
3648
|
"typeIdentifier": "t_bytes16",
|
3643
3649
|
"typeString": "bytes16"
|
@@ -3650,14 +3656,14 @@
|
|
3650
3656
|
},
|
3651
3657
|
{
|
3652
3658
|
"hexValue": "3a",
|
3653
|
-
"id":
|
3659
|
+
"id": 39158,
|
3654
3660
|
"isConstant": false,
|
3655
3661
|
"isLValue": false,
|
3656
3662
|
"isPure": true,
|
3657
3663
|
"kind": "string",
|
3658
3664
|
"lValueRequested": false,
|
3659
3665
|
"nodeType": "Literal",
|
3660
|
-
"src": "
|
3666
|
+
"src": "3823:3:98",
|
3661
3667
|
"typeDescriptions": {
|
3662
3668
|
"typeIdentifier": "t_stringliteral_96d280011b274d9410ea6c6fc28e2bb076b01d2fac329c49c4b29a719ec4650c",
|
3663
3669
|
"typeString": "literal_string \":\""
|
@@ -3670,18 +3676,18 @@
|
|
3670
3676
|
"typeIdentifier": "t_bytes16",
|
3671
3677
|
"typeString": "bytes16"
|
3672
3678
|
},
|
3673
|
-
"id":
|
3679
|
+
"id": 39161,
|
3674
3680
|
"isConstant": false,
|
3675
3681
|
"isLValue": false,
|
3676
3682
|
"isPure": false,
|
3677
3683
|
"lValueRequested": false,
|
3678
3684
|
"leftExpression": {
|
3679
|
-
"id":
|
3685
|
+
"id": 39159,
|
3680
3686
|
"name": "resourceName",
|
3681
3687
|
"nodeType": "Identifier",
|
3682
3688
|
"overloadedDeclarations": [],
|
3683
|
-
"referencedDeclaration":
|
3684
|
-
"src": "
|
3689
|
+
"referencedDeclaration": 39141,
|
3690
|
+
"src": "3838:12:98",
|
3685
3691
|
"typeDescriptions": {
|
3686
3692
|
"typeIdentifier": "t_bytes16",
|
3687
3693
|
"typeString": "bytes16"
|
@@ -3690,49 +3696,49 @@
|
|
3690
3696
|
"nodeType": "BinaryOperation",
|
3691
3697
|
"operator": "==",
|
3692
3698
|
"rightExpression": {
|
3693
|
-
"id":
|
3699
|
+
"id": 39160,
|
3694
3700
|
"name": "ROOT_NAME",
|
3695
3701
|
"nodeType": "Identifier",
|
3696
3702
|
"overloadedDeclarations": [],
|
3697
|
-
"referencedDeclaration":
|
3698
|
-
"src": "
|
3703
|
+
"referencedDeclaration": 39219,
|
3704
|
+
"src": "3854:9:98",
|
3699
3705
|
"typeDescriptions": {
|
3700
3706
|
"typeIdentifier": "t_bytes16",
|
3701
3707
|
"typeString": "bytes16"
|
3702
3708
|
}
|
3703
3709
|
},
|
3704
|
-
"src": "
|
3710
|
+
"src": "3838:25:98",
|
3705
3711
|
"typeDescriptions": {
|
3706
3712
|
"typeIdentifier": "t_bool",
|
3707
3713
|
"typeString": "bool"
|
3708
3714
|
}
|
3709
3715
|
},
|
3710
3716
|
"falseExpression": {
|
3711
|
-
"id":
|
3717
|
+
"id": 39163,
|
3712
3718
|
"name": "resourceName",
|
3713
3719
|
"nodeType": "Identifier",
|
3714
3720
|
"overloadedDeclarations": [],
|
3715
|
-
"referencedDeclaration":
|
3716
|
-
"src": "
|
3721
|
+
"referencedDeclaration": 39141,
|
3722
|
+
"src": "3885:12:98",
|
3717
3723
|
"typeDescriptions": {
|
3718
3724
|
"typeIdentifier": "t_bytes16",
|
3719
3725
|
"typeString": "bytes16"
|
3720
3726
|
}
|
3721
3727
|
},
|
3722
|
-
"id":
|
3728
|
+
"id": 39164,
|
3723
3729
|
"isConstant": false,
|
3724
3730
|
"isLValue": false,
|
3725
3731
|
"isPure": false,
|
3726
3732
|
"lValueRequested": false,
|
3727
3733
|
"nodeType": "Conditional",
|
3728
|
-
"src": "
|
3734
|
+
"src": "3838:59:98",
|
3729
3735
|
"trueExpression": {
|
3730
|
-
"id":
|
3736
|
+
"id": 39162,
|
3731
3737
|
"name": "ROOT_NAME_STRING",
|
3732
3738
|
"nodeType": "Identifier",
|
3733
3739
|
"overloadedDeclarations": [],
|
3734
|
-
"referencedDeclaration":
|
3735
|
-
"src": "
|
3740
|
+
"referencedDeclaration": 38922,
|
3741
|
+
"src": "3866:16:98",
|
3736
3742
|
"typeDescriptions": {
|
3737
3743
|
"typeIdentifier": "t_bytes16",
|
3738
3744
|
"typeString": "bytes16"
|
@@ -3768,32 +3774,32 @@
|
|
3768
3774
|
}
|
3769
3775
|
],
|
3770
3776
|
"expression": {
|
3771
|
-
"id":
|
3777
|
+
"id": 39148,
|
3772
3778
|
"name": "abi",
|
3773
3779
|
"nodeType": "Identifier",
|
3774
3780
|
"overloadedDeclarations": [],
|
3775
3781
|
"referencedDeclaration": -1,
|
3776
|
-
"src": "
|
3782
|
+
"src": "3665:3:98",
|
3777
3783
|
"typeDescriptions": {
|
3778
3784
|
"typeIdentifier": "t_magic_abi",
|
3779
3785
|
"typeString": "abi"
|
3780
3786
|
}
|
3781
3787
|
},
|
3782
|
-
"id":
|
3788
|
+
"id": 39149,
|
3783
3789
|
"isConstant": false,
|
3784
3790
|
"isLValue": false,
|
3785
3791
|
"isPure": true,
|
3786
3792
|
"lValueRequested": false,
|
3787
|
-
"memberLocation": "
|
3793
|
+
"memberLocation": "3669:12:98",
|
3788
3794
|
"memberName": "encodePacked",
|
3789
3795
|
"nodeType": "MemberAccess",
|
3790
|
-
"src": "
|
3796
|
+
"src": "3665:16:98",
|
3791
3797
|
"typeDescriptions": {
|
3792
3798
|
"typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
|
3793
3799
|
"typeString": "function () pure returns (bytes memory)"
|
3794
3800
|
}
|
3795
3801
|
},
|
3796
|
-
"id":
|
3802
|
+
"id": 39165,
|
3797
3803
|
"isConstant": false,
|
3798
3804
|
"isLValue": false,
|
3799
3805
|
"isPure": false,
|
@@ -3802,7 +3808,7 @@
|
|
3802
3808
|
"nameLocations": [],
|
3803
3809
|
"names": [],
|
3804
3810
|
"nodeType": "FunctionCall",
|
3805
|
-
"src": "
|
3811
|
+
"src": "3665:242:98",
|
3806
3812
|
"tryCall": false,
|
3807
3813
|
"typeDescriptions": {
|
3808
3814
|
"typeIdentifier": "t_bytes_memory_ptr",
|
@@ -3817,26 +3823,26 @@
|
|
3817
3823
|
"typeString": "bytes memory"
|
3818
3824
|
}
|
3819
3825
|
],
|
3820
|
-
"id":
|
3826
|
+
"id": 39147,
|
3821
3827
|
"isConstant": false,
|
3822
3828
|
"isLValue": false,
|
3823
3829
|
"isPure": true,
|
3824
3830
|
"lValueRequested": false,
|
3825
3831
|
"nodeType": "ElementaryTypeNameExpression",
|
3826
|
-
"src": "
|
3832
|
+
"src": "3649:6:98",
|
3827
3833
|
"typeDescriptions": {
|
3828
3834
|
"typeIdentifier": "t_type$_t_string_storage_ptr_$",
|
3829
3835
|
"typeString": "type(string storage pointer)"
|
3830
3836
|
},
|
3831
3837
|
"typeName": {
|
3832
|
-
"id":
|
3838
|
+
"id": 39146,
|
3833
3839
|
"name": "string",
|
3834
3840
|
"nodeType": "ElementaryTypeName",
|
3835
|
-
"src": "
|
3841
|
+
"src": "3649:6:98",
|
3836
3842
|
"typeDescriptions": {}
|
3837
3843
|
}
|
3838
3844
|
},
|
3839
|
-
"id":
|
3845
|
+
"id": 39166,
|
3840
3846
|
"isConstant": false,
|
3841
3847
|
"isLValue": false,
|
3842
3848
|
"isPure": false,
|
@@ -3845,88 +3851,88 @@
|
|
3845
3851
|
"nameLocations": [],
|
3846
3852
|
"names": [],
|
3847
3853
|
"nodeType": "FunctionCall",
|
3848
|
-
"src": "
|
3854
|
+
"src": "3649:266:98",
|
3849
3855
|
"tryCall": false,
|
3850
3856
|
"typeDescriptions": {
|
3851
3857
|
"typeIdentifier": "t_string_memory_ptr",
|
3852
3858
|
"typeString": "string memory"
|
3853
3859
|
}
|
3854
3860
|
},
|
3855
|
-
"functionReturnParameters":
|
3856
|
-
"id":
|
3861
|
+
"functionReturnParameters": 39126,
|
3862
|
+
"id": 39167,
|
3857
3863
|
"nodeType": "Return",
|
3858
|
-
"src": "
|
3864
|
+
"src": "3636:279:98"
|
3859
3865
|
}
|
3860
3866
|
]
|
3861
3867
|
},
|
3862
3868
|
"documentation": {
|
3863
|
-
"id":
|
3869
|
+
"id": 39119,
|
3864
3870
|
"nodeType": "StructuredDocumentation",
|
3865
|
-
"src": "
|
3866
|
-
"text": " Convert a resource ID to a string
|
3871
|
+
"src": "3222:154:98",
|
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."
|
3867
3873
|
},
|
3868
3874
|
"implemented": true,
|
3869
3875
|
"kind": "function",
|
3870
3876
|
"modifiers": [],
|
3871
3877
|
"name": "toString",
|
3872
|
-
"nameLocation": "
|
3878
|
+
"nameLocation": "3388:8:98",
|
3873
3879
|
"parameters": {
|
3874
|
-
"id":
|
3880
|
+
"id": 39123,
|
3875
3881
|
"nodeType": "ParameterList",
|
3876
3882
|
"parameters": [
|
3877
3883
|
{
|
3878
3884
|
"constant": false,
|
3879
|
-
"id":
|
3885
|
+
"id": 39122,
|
3880
3886
|
"mutability": "mutable",
|
3881
3887
|
"name": "resourceId",
|
3882
|
-
"nameLocation": "
|
3888
|
+
"nameLocation": "3408:10:98",
|
3883
3889
|
"nodeType": "VariableDeclaration",
|
3884
|
-
"scope":
|
3885
|
-
"src": "
|
3890
|
+
"scope": 39169,
|
3891
|
+
"src": "3397:21:98",
|
3886
3892
|
"stateVariable": false,
|
3887
3893
|
"storageLocation": "default",
|
3888
3894
|
"typeDescriptions": {
|
3889
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
3895
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
3890
3896
|
"typeString": "ResourceId"
|
3891
3897
|
},
|
3892
3898
|
"typeName": {
|
3893
|
-
"id":
|
3899
|
+
"id": 39121,
|
3894
3900
|
"nodeType": "UserDefinedTypeName",
|
3895
3901
|
"pathNode": {
|
3896
|
-
"id":
|
3902
|
+
"id": 39120,
|
3897
3903
|
"name": "ResourceId",
|
3898
3904
|
"nameLocations": [
|
3899
|
-
"
|
3905
|
+
"3397:10:98"
|
3900
3906
|
],
|
3901
3907
|
"nodeType": "IdentifierPath",
|
3902
|
-
"referencedDeclaration":
|
3903
|
-
"src": "
|
3908
|
+
"referencedDeclaration": 26238,
|
3909
|
+
"src": "3397:10:98"
|
3904
3910
|
},
|
3905
|
-
"referencedDeclaration":
|
3906
|
-
"src": "
|
3911
|
+
"referencedDeclaration": 26238,
|
3912
|
+
"src": "3397:10:98",
|
3907
3913
|
"typeDescriptions": {
|
3908
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
3914
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
|
3909
3915
|
"typeString": "ResourceId"
|
3910
3916
|
}
|
3911
3917
|
},
|
3912
3918
|
"visibility": "internal"
|
3913
3919
|
}
|
3914
3920
|
],
|
3915
|
-
"src": "
|
3921
|
+
"src": "3396:23:98"
|
3916
3922
|
},
|
3917
3923
|
"returnParameters": {
|
3918
|
-
"id":
|
3924
|
+
"id": 39126,
|
3919
3925
|
"nodeType": "ParameterList",
|
3920
3926
|
"parameters": [
|
3921
3927
|
{
|
3922
3928
|
"constant": false,
|
3923
|
-
"id":
|
3929
|
+
"id": 39125,
|
3924
3930
|
"mutability": "mutable",
|
3925
3931
|
"name": "",
|
3926
3932
|
"nameLocation": "-1:-1:-1",
|
3927
3933
|
"nodeType": "VariableDeclaration",
|
3928
|
-
"scope":
|
3929
|
-
"src": "
|
3934
|
+
"scope": 39169,
|
3935
|
+
"src": "3443:13:98",
|
3930
3936
|
"stateVariable": false,
|
3931
3937
|
"storageLocation": "memory",
|
3932
3938
|
"typeDescriptions": {
|
@@ -3934,10 +3940,10 @@
|
|
3934
3940
|
"typeString": "string"
|
3935
3941
|
},
|
3936
3942
|
"typeName": {
|
3937
|
-
"id":
|
3943
|
+
"id": 39124,
|
3938
3944
|
"name": "string",
|
3939
3945
|
"nodeType": "ElementaryTypeName",
|
3940
|
-
"src": "
|
3946
|
+
"src": "3443:6:98",
|
3941
3947
|
"typeDescriptions": {
|
3942
3948
|
"typeIdentifier": "t_string_storage_ptr",
|
3943
3949
|
"typeString": "string"
|
@@ -3946,9 +3952,9 @@
|
|
3946
3952
|
"visibility": "internal"
|
3947
3953
|
}
|
3948
3954
|
],
|
3949
|
-
"src": "
|
3955
|
+
"src": "3442:15:98"
|
3950
3956
|
},
|
3951
|
-
"scope":
|
3957
|
+
"scope": 39170,
|
3952
3958
|
"stateMutability": "pure",
|
3953
3959
|
"virtual": false,
|
3954
3960
|
"visibility": "internal"
|
@@ -3959,13 +3965,19 @@
|
|
3959
3965
|
"canonicalName": "WorldResourceIdInstance",
|
3960
3966
|
"contractDependencies": [],
|
3961
3967
|
"contractKind": "library",
|
3968
|
+
"documentation": {
|
3969
|
+
"id": 39050,
|
3970
|
+
"nodeType": "StructuredDocumentation",
|
3971
|
+
"src": "2150:108:98",
|
3972
|
+
"text": " @title WorldResourceIdInstance\n @notice A library for handling instances of World Resource IDs."
|
3973
|
+
},
|
3962
3974
|
"fullyImplemented": true,
|
3963
3975
|
"linearizedBaseContracts": [
|
3964
|
-
|
3976
|
+
39170
|
3965
3977
|
],
|
3966
3978
|
"name": "WorldResourceIdInstance",
|
3967
|
-
"nameLocation": "
|
3968
|
-
"scope":
|
3979
|
+
"nameLocation": "2267:23:98",
|
3980
|
+
"scope": 39171,
|
3969
3981
|
"usedErrors": [],
|
3970
3982
|
"usedEvents": []
|
3971
3983
|
}
|