@latticexyz/world-modules 2.0.0-next.10 → 2.0.0-next.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/AccessControl.sol/AccessControl.abi.json +1 -0
- package/out/AccessControl.sol/AccessControl.json +1651 -0
- package/out/ArrayLib.sol/ArrayLib.json +477 -477
- package/out/Balances.sol/Balances.abi.json +1 -0
- package/out/Balances.sol/Balances.json +13002 -0
- package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +354 -354
- package/out/CallboundDelegations.sol/CallboundDelegations.json +4497 -4497
- package/out/DelegationControl.sol/DelegationControl.json +139 -139
- package/out/FunctionSelectors.sol/FunctionSelectors.abi.json +1 -0
- package/out/FunctionSelectors.sol/FunctionSelectors.json +17874 -0
- package/out/Hooks.sol/Hooks.json +45 -45
- package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +18 -18
- package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +15 -15
- package/out/IBaseWorld.sol/IBaseWorld.json +85 -85
- package/out/IBatchCallSystem.sol/IBatchCallSystem.json +15 -15
- package/out/IDelegationControl.sol/IDelegationControl.json +11 -11
- package/out/ISystemHook.sol/ISystemHook.json +16 -16
- package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +25 -25
- package/out/IWorldErrors.sol/IWorldErrors.json +19 -19
- package/out/IWorldKernel.sol/IWorldCall.json +14 -14
- package/out/IWorldKernel.sol/IWorldKernel.json +14 -14
- package/out/IWorldKernel.sol/IWorldModuleInstallation.json +14 -14
- package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +43 -43
- package/out/KeysInTable.sol/KeysInTable.json +18190 -18190
- package/out/KeysInTableHook.sol/KeysInTableHook.json +1407 -1407
- package/out/KeysInTableModule.sol/KeysInTableModule.json +842 -842
- package/out/KeysWithValue.sol/KeysWithValue.json +6631 -6631
- package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1561 -1561
- package/out/KeysWithValueModule.sol/KeysWithValueModule.json +654 -654
- package/out/Module.sol/Module.json +119 -119
- package/out/NamespaceOwner.sol/NamespaceOwner.abi.json +1 -0
- package/out/NamespaceOwner.sol/NamespaceOwner.json +13016 -0
- package/out/ResourceAccess.sol/ResourceAccess.abi.json +1 -0
- package/out/ResourceAccess.sol/ResourceAccess.json +17296 -0
- 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 +729 -729
- package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +452 -452
- package/out/StoreHook.sol/StoreHook.json +639 -639
- package/out/StoreHooks.sol/StoreHooks.json +45 -45
- package/out/System.sol/System.json +32 -32
- package/out/SystemHooks.sol/SystemHooks.abi.json +1 -0
- package/out/SystemHooks.sol/SystemHooks.json +32460 -0
- package/out/SystemSwitch.sol/SystemSwitch.abi.json +1 -0
- package/out/SystemSwitch.sol/SystemSwitch.json +2879 -0
- package/out/Systems.sol/Systems.abi.json +1 -0
- package/out/Systems.sol/Systems.json +18508 -0
- package/out/Tables.sol/Tables.json +73 -73
- package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +187 -187
- package/out/TimeboundDelegations.sol/TimeboundDelegations.json +3474 -3474
- package/out/UniqueEntity.sol/UniqueEntity.json +2345 -2345
- package/out/UniqueEntityModule.sol/UniqueEntityModule.json +486 -486
- package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +132 -132
- package/out/UsedKeysIndex.sol/UsedKeysIndex.json +4590 -4590
- package/out/WorldContext.sol/WorldContextConsumer.json +14 -14
- package/out/WorldContext.sol/WorldContextConsumerLib.json +14 -14
- package/out/WorldContext.sol/WorldContextProviderLib.json +14 -14
- package/out/WorldResourceId.sol/WorldResourceIdInstance.json +107 -107
- package/out/WorldResourceId.sol/WorldResourceIdLib.json +107 -107
- package/out/constants.sol/constants.json +477 -194
- package/out/getKeysInTable.sol/getKeysInTable.json +918 -918
- package/out/getKeysWithValue.sol/getKeysWithValue.json +431 -431
- package/out/getTargetTableId.sol/getTargetTableId.json +272 -272
- package/out/getUniqueEntity.sol/getUniqueEntity.json +389 -240
- package/out/hasKey.sol/hasKey.json +215 -215
- package/out/index.sol/index.json +73 -73
- package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +175 -175
- package/out/query.sol/query.json +1892 -1892
- package/out/revertWithBytes.sol/revertWithBytes.json +52 -52
- package/out/src/Bytes.sol/Bytes.json +3766 -3766
- package/out/src/FieldLayout.sol/FieldLayoutInstance.json +1204 -1204
- package/out/src/FieldLayout.sol/FieldLayoutLib.json +1204 -1204
- package/out/src/Hook.sol/HookInstance.abi.json +1 -0
- package/out/src/Hook.sol/HookInstance.json +2823 -0
- package/out/src/Hook.sol/HookLib.abi.json +1 -0
- package/out/src/Hook.sol/HookLib.json +2823 -0
- package/out/src/IStore.sol/IStore.json +73 -73
- package/out/src/ISystemHook.sol/ISystemHook.abi.json +67 -0
- package/out/src/ISystemHook.sol/ISystemHook.abi.json.d.ts +68 -0
- package/out/src/ISystemHook.sol/ISystemHook.json +852 -0
- package/out/src/IWorldErrors.sol/IWorldErrors.abi.json +189 -0
- package/out/src/IWorldErrors.sol/IWorldErrors.abi.json.d.ts +190 -0
- package/out/src/IWorldErrors.sol/IWorldErrors.json +1463 -0
- package/out/src/IWorldKernel.sol/IWorldCall.json +262 -262
- package/out/src/IWorldKernel.sol/IWorldKernel.json +262 -262
- package/out/src/IWorldKernel.sol/IWorldModuleInstallation.json +262 -262
- package/out/src/Memory.sol/Memory.json +242 -242
- package/out/src/PackedCounter.sol/PackedCounterInstance.json +1633 -1633
- package/out/src/PackedCounter.sol/PackedCounterLib.json +1633 -1633
- package/out/src/ResourceId.sol/ResourceIdInstance.json +206 -206
- package/out/src/ResourceId.sol/ResourceIdLib.json +206 -206
- package/out/src/Schema.sol/SchemaInstance.json +1351 -1351
- package/out/src/Schema.sol/SchemaLib.json +1351 -1351
- package/out/src/Slice.sol/SliceInstance.json +802 -802
- package/out/src/Slice.sol/SliceLib.json +802 -802
- package/out/src/StoreCore.sol/StoreCore.json +7412 -7412
- package/out/src/StoreCore.sol/StoreCoreInternal.json +7412 -7412
- package/out/src/StoreSwitch.sol/StoreSwitch.json +4064 -4064
- package/out/src/WorldContext.sol/WorldContextConsumer.json +805 -805
- package/out/src/WorldContext.sol/WorldContextConsumerLib.json +807 -807
- package/out/src/WorldContext.sol/WorldContextProviderLib.json +807 -807
- package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +813 -813
- package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +813 -813
- package/out/storeHookTypes.sol/storeHookTypes.json +204 -204
- package/out/storeResourceTypes.sol/storeResourceTypes.json +23 -23
- package/out/systemHookTypes.sol/systemHookTypes.json +270 -0
- package/out/tables/ResourceIds.sol/ResourceIds.json +2922 -2922
- package/out/tables/Tables.sol/Tables.json +12189 -12189
- package/out/tightcoder/EncodeArray.sol/EncodeArray.json +6883 -6883
- package/out/types.sol/types.json +71 -71
- package/out/worldResourceTypes.sol/worldResourceTypes.json +92 -92
- package/package.json +8 -8
- package/src/modules/uniqueentity/getUniqueEntity.sol +5 -3
- package/src/utils/SystemSwitch.sol +82 -0
@@ -2,12 +2,12 @@
|
|
2
2
|
"abi": [],
|
3
3
|
"bytecode": {
|
4
4
|
"object": "0x602d6037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000815000a",
|
5
|
-
"sourceMap": "668:459:
|
5
|
+
"sourceMap": "668:459:69:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;668:459:69;;;;;;;;;;;;;;;;;",
|
6
6
|
"linkReferences": {}
|
7
7
|
},
|
8
8
|
"deployedBytecode": {
|
9
9
|
"object": "0x73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000815000a",
|
10
|
-
"sourceMap": "668:459:
|
10
|
+
"sourceMap": "668:459:69:-:0;;;;;;;;",
|
11
11
|
"linkReferences": {}
|
12
12
|
},
|
13
13
|
"methodIdentifiers": {},
|
@@ -62,34 +62,34 @@
|
|
62
62
|
},
|
63
63
|
"ast": {
|
64
64
|
"absolutePath": "node_modules/@latticexyz/store/src/ResourceId.sol",
|
65
|
-
"id":
|
65
|
+
"id": 29211,
|
66
66
|
"exportedSymbols": {
|
67
67
|
"NAME_BITS": [
|
68
|
-
|
68
|
+
29153
|
69
69
|
],
|
70
70
|
"ResourceId": [
|
71
|
-
|
71
|
+
29139
|
72
72
|
],
|
73
73
|
"ResourceIdInstance": [
|
74
|
-
|
74
|
+
29210
|
75
75
|
],
|
76
76
|
"ResourceIdLib": [
|
77
|
-
|
77
|
+
29190
|
78
78
|
],
|
79
79
|
"TYPE_BITS": [
|
80
|
-
|
80
|
+
29145
|
81
81
|
],
|
82
82
|
"TYPE_MASK": [
|
83
|
-
|
83
|
+
29160
|
84
84
|
]
|
85
85
|
},
|
86
86
|
"nodeType": "SourceUnit",
|
87
|
-
"src": "32:1584:
|
87
|
+
"src": "32:1584:69",
|
88
88
|
"nodes": [
|
89
89
|
{
|
90
|
-
"id":
|
90
|
+
"id": 29137,
|
91
91
|
"nodeType": "PragmaDirective",
|
92
|
-
"src": "32:25:
|
92
|
+
"src": "32:25:69",
|
93
93
|
"nodes": [],
|
94
94
|
"literals": [
|
95
95
|
"solidity",
|
@@ -99,18 +99,18 @@
|
|
99
99
|
]
|
100
100
|
},
|
101
101
|
{
|
102
|
-
"id":
|
102
|
+
"id": 29139,
|
103
103
|
"nodeType": "UserDefinedValueTypeDefinition",
|
104
|
-
"src": "213:27:
|
104
|
+
"src": "213:27:69",
|
105
105
|
"nodes": [],
|
106
106
|
"canonicalName": "ResourceId",
|
107
107
|
"name": "ResourceId",
|
108
|
-
"nameLocation": "218:10:
|
108
|
+
"nameLocation": "218:10:69",
|
109
109
|
"underlyingType": {
|
110
|
-
"id":
|
110
|
+
"id": 29138,
|
111
111
|
"name": "bytes32",
|
112
112
|
"nodeType": "ElementaryTypeName",
|
113
|
-
"src": "232:7:
|
113
|
+
"src": "232:7:69",
|
114
114
|
"typeDescriptions": {
|
115
115
|
"typeIdentifier": "t_bytes32",
|
116
116
|
"typeString": "bytes32"
|
@@ -118,15 +118,15 @@
|
|
118
118
|
}
|
119
119
|
},
|
120
120
|
{
|
121
|
-
"id":
|
121
|
+
"id": 29145,
|
122
122
|
"nodeType": "VariableDeclaration",
|
123
|
-
"src": "307:34:
|
123
|
+
"src": "307:34:69",
|
124
124
|
"nodes": [],
|
125
125
|
"constant": true,
|
126
126
|
"mutability": "constant",
|
127
127
|
"name": "TYPE_BITS",
|
128
|
-
"nameLocation": "324:9:
|
129
|
-
"scope":
|
128
|
+
"nameLocation": "324:9:69",
|
129
|
+
"scope": 29211,
|
130
130
|
"stateVariable": false,
|
131
131
|
"storageLocation": "default",
|
132
132
|
"typeDescriptions": {
|
@@ -134,10 +134,10 @@
|
|
134
134
|
"typeString": "uint256"
|
135
135
|
},
|
136
136
|
"typeName": {
|
137
|
-
"id":
|
137
|
+
"id": 29141,
|
138
138
|
"name": "uint256",
|
139
139
|
"nodeType": "ElementaryTypeName",
|
140
|
-
"src": "307:7:
|
140
|
+
"src": "307:7:69",
|
141
141
|
"typeDescriptions": {
|
142
142
|
"typeIdentifier": "t_uint256",
|
143
143
|
"typeString": "uint256"
|
@@ -148,21 +148,21 @@
|
|
148
148
|
"typeIdentifier": "t_rational_16_by_1",
|
149
149
|
"typeString": "int_const 16"
|
150
150
|
},
|
151
|
-
"id":
|
151
|
+
"id": 29144,
|
152
152
|
"isConstant": false,
|
153
153
|
"isLValue": false,
|
154
154
|
"isPure": true,
|
155
155
|
"lValueRequested": false,
|
156
156
|
"leftExpression": {
|
157
157
|
"hexValue": "32",
|
158
|
-
"id":
|
158
|
+
"id": 29142,
|
159
159
|
"isConstant": false,
|
160
160
|
"isLValue": false,
|
161
161
|
"isPure": true,
|
162
162
|
"kind": "number",
|
163
163
|
"lValueRequested": false,
|
164
164
|
"nodeType": "Literal",
|
165
|
-
"src": "336:1:
|
165
|
+
"src": "336:1:69",
|
166
166
|
"typeDescriptions": {
|
167
167
|
"typeIdentifier": "t_rational_2_by_1",
|
168
168
|
"typeString": "int_const 2"
|
@@ -173,21 +173,21 @@
|
|
173
173
|
"operator": "*",
|
174
174
|
"rightExpression": {
|
175
175
|
"hexValue": "38",
|
176
|
-
"id":
|
176
|
+
"id": 29143,
|
177
177
|
"isConstant": false,
|
178
178
|
"isLValue": false,
|
179
179
|
"isPure": true,
|
180
180
|
"kind": "number",
|
181
181
|
"lValueRequested": false,
|
182
182
|
"nodeType": "Literal",
|
183
|
-
"src": "340:1:
|
183
|
+
"src": "340:1:69",
|
184
184
|
"typeDescriptions": {
|
185
185
|
"typeIdentifier": "t_rational_8_by_1",
|
186
186
|
"typeString": "int_const 8"
|
187
187
|
},
|
188
188
|
"value": "8"
|
189
189
|
},
|
190
|
-
"src": "336:5:
|
190
|
+
"src": "336:5:69",
|
191
191
|
"typeDescriptions": {
|
192
192
|
"typeIdentifier": "t_rational_16_by_1",
|
193
193
|
"typeString": "int_const 16"
|
@@ -196,15 +196,15 @@
|
|
196
196
|
"visibility": "internal"
|
197
197
|
},
|
198
198
|
{
|
199
|
-
"id":
|
199
|
+
"id": 29153,
|
200
200
|
"nodeType": "VariableDeclaration",
|
201
|
-
"src": "408:47:
|
201
|
+
"src": "408:47:69",
|
202
202
|
"nodes": [],
|
203
203
|
"constant": true,
|
204
204
|
"mutability": "constant",
|
205
205
|
"name": "NAME_BITS",
|
206
|
-
"nameLocation": "425:9:
|
207
|
-
"scope":
|
206
|
+
"nameLocation": "425:9:69",
|
207
|
+
"scope": 29211,
|
208
208
|
"stateVariable": false,
|
209
209
|
"storageLocation": "default",
|
210
210
|
"typeDescriptions": {
|
@@ -212,10 +212,10 @@
|
|
212
212
|
"typeString": "uint256"
|
213
213
|
},
|
214
214
|
"typeName": {
|
215
|
-
"id":
|
215
|
+
"id": 29147,
|
216
216
|
"name": "uint256",
|
217
217
|
"nodeType": "ElementaryTypeName",
|
218
|
-
"src": "408:7:
|
218
|
+
"src": "408:7:69",
|
219
219
|
"typeDescriptions": {
|
220
220
|
"typeIdentifier": "t_uint256",
|
221
221
|
"typeString": "uint256"
|
@@ -226,7 +226,7 @@
|
|
226
226
|
"typeIdentifier": "t_uint256",
|
227
227
|
"typeString": "uint256"
|
228
228
|
},
|
229
|
-
"id":
|
229
|
+
"id": 29152,
|
230
230
|
"isConstant": false,
|
231
231
|
"isLValue": false,
|
232
232
|
"isPure": true,
|
@@ -236,21 +236,21 @@
|
|
236
236
|
"typeIdentifier": "t_rational_256_by_1",
|
237
237
|
"typeString": "int_const 256"
|
238
238
|
},
|
239
|
-
"id":
|
239
|
+
"id": 29150,
|
240
240
|
"isConstant": false,
|
241
241
|
"isLValue": false,
|
242
242
|
"isPure": true,
|
243
243
|
"lValueRequested": false,
|
244
244
|
"leftExpression": {
|
245
245
|
"hexValue": "3332",
|
246
|
-
"id":
|
246
|
+
"id": 29148,
|
247
247
|
"isConstant": false,
|
248
248
|
"isLValue": false,
|
249
249
|
"isPure": true,
|
250
250
|
"kind": "number",
|
251
251
|
"lValueRequested": false,
|
252
252
|
"nodeType": "Literal",
|
253
|
-
"src": "437:2:
|
253
|
+
"src": "437:2:69",
|
254
254
|
"typeDescriptions": {
|
255
255
|
"typeIdentifier": "t_rational_32_by_1",
|
256
256
|
"typeString": "int_const 32"
|
@@ -261,21 +261,21 @@
|
|
261
261
|
"operator": "*",
|
262
262
|
"rightExpression": {
|
263
263
|
"hexValue": "38",
|
264
|
-
"id":
|
264
|
+
"id": 29149,
|
265
265
|
"isConstant": false,
|
266
266
|
"isLValue": false,
|
267
267
|
"isPure": true,
|
268
268
|
"kind": "number",
|
269
269
|
"lValueRequested": false,
|
270
270
|
"nodeType": "Literal",
|
271
|
-
"src": "442:1:
|
271
|
+
"src": "442:1:69",
|
272
272
|
"typeDescriptions": {
|
273
273
|
"typeIdentifier": "t_rational_8_by_1",
|
274
274
|
"typeString": "int_const 8"
|
275
275
|
},
|
276
276
|
"value": "8"
|
277
277
|
},
|
278
|
-
"src": "437:6:
|
278
|
+
"src": "437:6:69",
|
279
279
|
"typeDescriptions": {
|
280
280
|
"typeIdentifier": "t_rational_256_by_1",
|
281
281
|
"typeString": "int_const 256"
|
@@ -284,18 +284,18 @@
|
|
284
284
|
"nodeType": "BinaryOperation",
|
285
285
|
"operator": "-",
|
286
286
|
"rightExpression": {
|
287
|
-
"id":
|
287
|
+
"id": 29151,
|
288
288
|
"name": "TYPE_BITS",
|
289
289
|
"nodeType": "Identifier",
|
290
290
|
"overloadedDeclarations": [],
|
291
|
-
"referencedDeclaration":
|
292
|
-
"src": "446:9:
|
291
|
+
"referencedDeclaration": 29145,
|
292
|
+
"src": "446:9:69",
|
293
293
|
"typeDescriptions": {
|
294
294
|
"typeIdentifier": "t_uint256",
|
295
295
|
"typeString": "uint256"
|
296
296
|
}
|
297
297
|
},
|
298
|
-
"src": "437:18:
|
298
|
+
"src": "437:18:69",
|
299
299
|
"typeDescriptions": {
|
300
300
|
"typeIdentifier": "t_uint256",
|
301
301
|
"typeString": "uint256"
|
@@ -304,15 +304,15 @@
|
|
304
304
|
"visibility": "internal"
|
305
305
|
},
|
306
306
|
{
|
307
|
-
"id":
|
307
|
+
"id": 29160,
|
308
308
|
"nodeType": "VariableDeclaration",
|
309
|
-
"src": "516:47:
|
309
|
+
"src": "516:47:69",
|
310
310
|
"nodes": [],
|
311
311
|
"constant": true,
|
312
312
|
"mutability": "constant",
|
313
313
|
"name": "TYPE_MASK",
|
314
|
-
"nameLocation": "533:9:
|
315
|
-
"scope":
|
314
|
+
"nameLocation": "533:9:69",
|
315
|
+
"scope": 29211,
|
316
316
|
"stateVariable": false,
|
317
317
|
"storageLocation": "default",
|
318
318
|
"typeDescriptions": {
|
@@ -320,10 +320,10 @@
|
|
320
320
|
"typeString": "bytes32"
|
321
321
|
},
|
322
322
|
"typeName": {
|
323
|
-
"id":
|
323
|
+
"id": 29155,
|
324
324
|
"name": "bytes32",
|
325
325
|
"nodeType": "ElementaryTypeName",
|
326
|
-
"src": "516:7:
|
326
|
+
"src": "516:7:69",
|
327
327
|
"typeDescriptions": {
|
328
328
|
"typeIdentifier": "t_bytes32",
|
329
329
|
"typeString": "bytes32"
|
@@ -333,14 +333,14 @@
|
|
333
333
|
"arguments": [
|
334
334
|
{
|
335
335
|
"hexValue": "ffff",
|
336
|
-
"id":
|
336
|
+
"id": 29158,
|
337
337
|
"isConstant": false,
|
338
338
|
"isLValue": false,
|
339
339
|
"isPure": true,
|
340
340
|
"kind": "hexString",
|
341
341
|
"lValueRequested": false,
|
342
342
|
"nodeType": "Literal",
|
343
|
-
"src": "553:9:
|
343
|
+
"src": "553:9:69",
|
344
344
|
"typeDescriptions": {
|
345
345
|
"typeIdentifier": "t_stringliteral_06d41322d79dfed27126569cb9a80eb0967335bf2f3316359d2a93c779fcd38a",
|
346
346
|
"typeString": "literal_string hex\"ffff\""
|
@@ -354,26 +354,26 @@
|
|
354
354
|
"typeString": "literal_string hex\"ffff\""
|
355
355
|
}
|
356
356
|
],
|
357
|
-
"id":
|
357
|
+
"id": 29157,
|
358
358
|
"isConstant": false,
|
359
359
|
"isLValue": false,
|
360
360
|
"isPure": true,
|
361
361
|
"lValueRequested": false,
|
362
362
|
"nodeType": "ElementaryTypeNameExpression",
|
363
|
-
"src": "545:7:
|
363
|
+
"src": "545:7:69",
|
364
364
|
"typeDescriptions": {
|
365
365
|
"typeIdentifier": "t_type$_t_bytes32_$",
|
366
366
|
"typeString": "type(bytes32)"
|
367
367
|
},
|
368
368
|
"typeName": {
|
369
|
-
"id":
|
369
|
+
"id": 29156,
|
370
370
|
"name": "bytes32",
|
371
371
|
"nodeType": "ElementaryTypeName",
|
372
|
-
"src": "545:7:
|
372
|
+
"src": "545:7:69",
|
373
373
|
"typeDescriptions": {}
|
374
374
|
}
|
375
375
|
},
|
376
|
-
"id":
|
376
|
+
"id": 29159,
|
377
377
|
"isConstant": false,
|
378
378
|
"isLValue": false,
|
379
379
|
"isPure": true,
|
@@ -382,7 +382,7 @@
|
|
382
382
|
"nameLocations": [],
|
383
383
|
"names": [],
|
384
384
|
"nodeType": "FunctionCall",
|
385
|
-
"src": "545:18:
|
385
|
+
"src": "545:18:69",
|
386
386
|
"tryCall": false,
|
387
387
|
"typeDescriptions": {
|
388
388
|
"typeIdentifier": "t_bytes32",
|
@@ -392,19 +392,19 @@
|
|
392
392
|
"visibility": "internal"
|
393
393
|
},
|
394
394
|
{
|
395
|
-
"id":
|
395
|
+
"id": 29190,
|
396
396
|
"nodeType": "ContractDefinition",
|
397
|
-
"src": "668:459:
|
397
|
+
"src": "668:459:69",
|
398
398
|
"nodes": [
|
399
399
|
{
|
400
|
-
"id":
|
400
|
+
"id": 29189,
|
401
401
|
"nodeType": "FunctionDefinition",
|
402
|
-
"src": "964:161:
|
402
|
+
"src": "964:161:69",
|
403
403
|
"nodes": [],
|
404
404
|
"body": {
|
405
|
-
"id":
|
405
|
+
"id": 29188,
|
406
406
|
"nodeType": "Block",
|
407
|
-
"src": "1044:81:
|
407
|
+
"src": "1044:81:69",
|
408
408
|
"nodes": [],
|
409
409
|
"statements": [
|
410
410
|
{
|
@@ -415,7 +415,7 @@
|
|
415
415
|
"typeIdentifier": "t_bytes32",
|
416
416
|
"typeString": "bytes32"
|
417
417
|
},
|
418
|
-
"id":
|
418
|
+
"id": 29185,
|
419
419
|
"isConstant": false,
|
420
420
|
"isLValue": false,
|
421
421
|
"isPure": false,
|
@@ -423,12 +423,12 @@
|
|
423
423
|
"leftExpression": {
|
424
424
|
"arguments": [
|
425
425
|
{
|
426
|
-
"id":
|
426
|
+
"id": 29176,
|
427
427
|
"name": "typeId",
|
428
428
|
"nodeType": "Identifier",
|
429
429
|
"overloadedDeclarations": [],
|
430
|
-
"referencedDeclaration":
|
431
|
-
"src": "1081:6:
|
430
|
+
"referencedDeclaration": 29164,
|
431
|
+
"src": "1081:6:69",
|
432
432
|
"typeDescriptions": {
|
433
433
|
"typeIdentifier": "t_bytes2",
|
434
434
|
"typeString": "bytes2"
|
@@ -442,26 +442,26 @@
|
|
442
442
|
"typeString": "bytes2"
|
443
443
|
}
|
444
444
|
],
|
445
|
-
"id":
|
445
|
+
"id": 29175,
|
446
446
|
"isConstant": false,
|
447
447
|
"isLValue": false,
|
448
448
|
"isPure": true,
|
449
449
|
"lValueRequested": false,
|
450
450
|
"nodeType": "ElementaryTypeNameExpression",
|
451
|
-
"src": "1073:7:
|
451
|
+
"src": "1073:7:69",
|
452
452
|
"typeDescriptions": {
|
453
453
|
"typeIdentifier": "t_type$_t_bytes32_$",
|
454
454
|
"typeString": "type(bytes32)"
|
455
455
|
},
|
456
456
|
"typeName": {
|
457
|
-
"id":
|
457
|
+
"id": 29174,
|
458
458
|
"name": "bytes32",
|
459
459
|
"nodeType": "ElementaryTypeName",
|
460
|
-
"src": "1073:7:
|
460
|
+
"src": "1073:7:69",
|
461
461
|
"typeDescriptions": {}
|
462
462
|
}
|
463
463
|
},
|
464
|
-
"id":
|
464
|
+
"id": 29177,
|
465
465
|
"isConstant": false,
|
466
466
|
"isLValue": false,
|
467
467
|
"isPure": false,
|
@@ -470,7 +470,7 @@
|
|
470
470
|
"nameLocations": [],
|
471
471
|
"names": [],
|
472
472
|
"nodeType": "FunctionCall",
|
473
|
-
"src": "1073:15:
|
473
|
+
"src": "1073:15:69",
|
474
474
|
"tryCall": false,
|
475
475
|
"typeDescriptions": {
|
476
476
|
"typeIdentifier": "t_bytes32",
|
@@ -486,7 +486,7 @@
|
|
486
486
|
"typeIdentifier": "t_bytes32",
|
487
487
|
"typeString": "bytes32"
|
488
488
|
},
|
489
|
-
"id":
|
489
|
+
"id": 29183,
|
490
490
|
"isConstant": false,
|
491
491
|
"isLValue": false,
|
492
492
|
"isPure": false,
|
@@ -494,12 +494,12 @@
|
|
494
494
|
"leftExpression": {
|
495
495
|
"arguments": [
|
496
496
|
{
|
497
|
-
"id":
|
497
|
+
"id": 29180,
|
498
498
|
"name": "name",
|
499
499
|
"nodeType": "Identifier",
|
500
500
|
"overloadedDeclarations": [],
|
501
|
-
"referencedDeclaration":
|
502
|
-
"src": "1100:4:
|
501
|
+
"referencedDeclaration": 29166,
|
502
|
+
"src": "1100:4:69",
|
503
503
|
"typeDescriptions": {
|
504
504
|
"typeIdentifier": "t_bytes30",
|
505
505
|
"typeString": "bytes30"
|
@@ -513,26 +513,26 @@
|
|
513
513
|
"typeString": "bytes30"
|
514
514
|
}
|
515
515
|
],
|
516
|
-
"id":
|
516
|
+
"id": 29179,
|
517
517
|
"isConstant": false,
|
518
518
|
"isLValue": false,
|
519
519
|
"isPure": true,
|
520
520
|
"lValueRequested": false,
|
521
521
|
"nodeType": "ElementaryTypeNameExpression",
|
522
|
-
"src": "1092:7:
|
522
|
+
"src": "1092:7:69",
|
523
523
|
"typeDescriptions": {
|
524
524
|
"typeIdentifier": "t_type$_t_bytes32_$",
|
525
525
|
"typeString": "type(bytes32)"
|
526
526
|
},
|
527
527
|
"typeName": {
|
528
|
-
"id":
|
528
|
+
"id": 29178,
|
529
529
|
"name": "bytes32",
|
530
530
|
"nodeType": "ElementaryTypeName",
|
531
|
-
"src": "1092:7:
|
531
|
+
"src": "1092:7:69",
|
532
532
|
"typeDescriptions": {}
|
533
533
|
}
|
534
534
|
},
|
535
|
-
"id":
|
535
|
+
"id": 29181,
|
536
536
|
"isConstant": false,
|
537
537
|
"isLValue": false,
|
538
538
|
"isPure": false,
|
@@ -541,7 +541,7 @@
|
|
541
541
|
"nameLocations": [],
|
542
542
|
"names": [],
|
543
543
|
"nodeType": "FunctionCall",
|
544
|
-
"src": "1092:13:
|
544
|
+
"src": "1092:13:69",
|
545
545
|
"tryCall": false,
|
546
546
|
"typeDescriptions": {
|
547
547
|
"typeIdentifier": "t_bytes32",
|
@@ -551,38 +551,38 @@
|
|
551
551
|
"nodeType": "BinaryOperation",
|
552
552
|
"operator": ">>",
|
553
553
|
"rightExpression": {
|
554
|
-
"id":
|
554
|
+
"id": 29182,
|
555
555
|
"name": "TYPE_BITS",
|
556
556
|
"nodeType": "Identifier",
|
557
557
|
"overloadedDeclarations": [],
|
558
|
-
"referencedDeclaration":
|
559
|
-
"src": "1109:9:
|
558
|
+
"referencedDeclaration": 29145,
|
559
|
+
"src": "1109:9:69",
|
560
560
|
"typeDescriptions": {
|
561
561
|
"typeIdentifier": "t_uint256",
|
562
562
|
"typeString": "uint256"
|
563
563
|
}
|
564
564
|
},
|
565
|
-
"src": "1092:26:
|
565
|
+
"src": "1092:26:69",
|
566
566
|
"typeDescriptions": {
|
567
567
|
"typeIdentifier": "t_bytes32",
|
568
568
|
"typeString": "bytes32"
|
569
569
|
}
|
570
570
|
}
|
571
571
|
],
|
572
|
-
"id":
|
572
|
+
"id": 29184,
|
573
573
|
"isConstant": false,
|
574
574
|
"isInlineArray": false,
|
575
575
|
"isLValue": false,
|
576
576
|
"isPure": false,
|
577
577
|
"lValueRequested": false,
|
578
578
|
"nodeType": "TupleExpression",
|
579
|
-
"src": "1091:28:
|
579
|
+
"src": "1091:28:69",
|
580
580
|
"typeDescriptions": {
|
581
581
|
"typeIdentifier": "t_bytes32",
|
582
582
|
"typeString": "bytes32"
|
583
583
|
}
|
584
584
|
},
|
585
|
-
"src": "1073:46:
|
585
|
+
"src": "1073:46:69",
|
586
586
|
"typeDescriptions": {
|
587
587
|
"typeIdentifier": "t_bytes32",
|
588
588
|
"typeString": "bytes32"
|
@@ -597,32 +597,32 @@
|
|
597
597
|
}
|
598
598
|
],
|
599
599
|
"expression": {
|
600
|
-
"id":
|
600
|
+
"id": 29172,
|
601
601
|
"name": "ResourceId",
|
602
602
|
"nodeType": "Identifier",
|
603
603
|
"overloadedDeclarations": [],
|
604
|
-
"referencedDeclaration":
|
605
|
-
"src": "1057:10:
|
604
|
+
"referencedDeclaration": 29139,
|
605
|
+
"src": "1057:10:69",
|
606
606
|
"typeDescriptions": {
|
607
|
-
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$
|
607
|
+
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$29139_$",
|
608
608
|
"typeString": "type(ResourceId)"
|
609
609
|
}
|
610
610
|
},
|
611
|
-
"id":
|
611
|
+
"id": 29173,
|
612
612
|
"isConstant": false,
|
613
613
|
"isLValue": false,
|
614
614
|
"isPure": true,
|
615
615
|
"lValueRequested": false,
|
616
|
-
"memberLocation": "1068:4:
|
616
|
+
"memberLocation": "1068:4:69",
|
617
617
|
"memberName": "wrap",
|
618
618
|
"nodeType": "MemberAccess",
|
619
|
-
"src": "1057:15:
|
619
|
+
"src": "1057:15:69",
|
620
620
|
"typeDescriptions": {
|
621
|
-
"typeIdentifier": "t_function_wrap_pure$_t_bytes32_$returns$_t_userDefinedValueType$_ResourceId_$
|
621
|
+
"typeIdentifier": "t_function_wrap_pure$_t_bytes32_$returns$_t_userDefinedValueType$_ResourceId_$29139_$",
|
622
622
|
"typeString": "function (bytes32) pure returns (ResourceId)"
|
623
623
|
}
|
624
624
|
},
|
625
|
-
"id":
|
625
|
+
"id": 29186,
|
626
626
|
"isConstant": false,
|
627
627
|
"isLValue": false,
|
628
628
|
"isPure": false,
|
@@ -631,44 +631,44 @@
|
|
631
631
|
"nameLocations": [],
|
632
632
|
"names": [],
|
633
633
|
"nodeType": "FunctionCall",
|
634
|
-
"src": "1057:63:
|
634
|
+
"src": "1057:63:69",
|
635
635
|
"tryCall": false,
|
636
636
|
"typeDescriptions": {
|
637
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
637
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
|
638
638
|
"typeString": "ResourceId"
|
639
639
|
}
|
640
640
|
},
|
641
|
-
"functionReturnParameters":
|
642
|
-
"id":
|
641
|
+
"functionReturnParameters": 29171,
|
642
|
+
"id": 29187,
|
643
643
|
"nodeType": "Return",
|
644
|
-
"src": "1050:70:
|
644
|
+
"src": "1050:70:69"
|
645
645
|
}
|
646
646
|
]
|
647
647
|
},
|
648
648
|
"documentation": {
|
649
|
-
"id":
|
649
|
+
"id": 29162,
|
650
650
|
"nodeType": "StructuredDocumentation",
|
651
|
-
"src": "694:267:
|
651
|
+
"src": "694:267:69",
|
652
652
|
"text": " @notice Encodes given typeId and name into a ResourceId.\n @param typeId The type identifier to be encoded. Must be 2 bytes.\n @param name The name to be encoded. Must be 30 bytes.\n @return A ResourceId containing the encoded typeId and name."
|
653
653
|
},
|
654
654
|
"implemented": true,
|
655
655
|
"kind": "function",
|
656
656
|
"modifiers": [],
|
657
657
|
"name": "encode",
|
658
|
-
"nameLocation": "973:6:
|
658
|
+
"nameLocation": "973:6:69",
|
659
659
|
"parameters": {
|
660
|
-
"id":
|
660
|
+
"id": 29167,
|
661
661
|
"nodeType": "ParameterList",
|
662
662
|
"parameters": [
|
663
663
|
{
|
664
664
|
"constant": false,
|
665
|
-
"id":
|
665
|
+
"id": 29164,
|
666
666
|
"mutability": "mutable",
|
667
667
|
"name": "typeId",
|
668
|
-
"nameLocation": "987:6:
|
668
|
+
"nameLocation": "987:6:69",
|
669
669
|
"nodeType": "VariableDeclaration",
|
670
|
-
"scope":
|
671
|
-
"src": "980:13:
|
670
|
+
"scope": 29189,
|
671
|
+
"src": "980:13:69",
|
672
672
|
"stateVariable": false,
|
673
673
|
"storageLocation": "default",
|
674
674
|
"typeDescriptions": {
|
@@ -676,10 +676,10 @@
|
|
676
676
|
"typeString": "bytes2"
|
677
677
|
},
|
678
678
|
"typeName": {
|
679
|
-
"id":
|
679
|
+
"id": 29163,
|
680
680
|
"name": "bytes2",
|
681
681
|
"nodeType": "ElementaryTypeName",
|
682
|
-
"src": "980:6:
|
682
|
+
"src": "980:6:69",
|
683
683
|
"typeDescriptions": {
|
684
684
|
"typeIdentifier": "t_bytes2",
|
685
685
|
"typeString": "bytes2"
|
@@ -689,13 +689,13 @@
|
|
689
689
|
},
|
690
690
|
{
|
691
691
|
"constant": false,
|
692
|
-
"id":
|
692
|
+
"id": 29166,
|
693
693
|
"mutability": "mutable",
|
694
694
|
"name": "name",
|
695
|
-
"nameLocation": "1003:4:
|
695
|
+
"nameLocation": "1003:4:69",
|
696
696
|
"nodeType": "VariableDeclaration",
|
697
|
-
"scope":
|
698
|
-
"src": "995:12:
|
697
|
+
"scope": 29189,
|
698
|
+
"src": "995:12:69",
|
699
699
|
"stateVariable": false,
|
700
700
|
"storageLocation": "default",
|
701
701
|
"typeDescriptions": {
|
@@ -703,10 +703,10 @@
|
|
703
703
|
"typeString": "bytes30"
|
704
704
|
},
|
705
705
|
"typeName": {
|
706
|
-
"id":
|
706
|
+
"id": 29165,
|
707
707
|
"name": "bytes30",
|
708
708
|
"nodeType": "ElementaryTypeName",
|
709
|
-
"src": "995:7:
|
709
|
+
"src": "995:7:69",
|
710
710
|
"typeDescriptions": {
|
711
711
|
"typeIdentifier": "t_bytes30",
|
712
712
|
"typeString": "bytes30"
|
@@ -715,53 +715,53 @@
|
|
715
715
|
"visibility": "internal"
|
716
716
|
}
|
717
717
|
],
|
718
|
-
"src": "979:29:
|
718
|
+
"src": "979:29:69"
|
719
719
|
},
|
720
720
|
"returnParameters": {
|
721
|
-
"id":
|
721
|
+
"id": 29171,
|
722
722
|
"nodeType": "ParameterList",
|
723
723
|
"parameters": [
|
724
724
|
{
|
725
725
|
"constant": false,
|
726
|
-
"id":
|
726
|
+
"id": 29170,
|
727
727
|
"mutability": "mutable",
|
728
728
|
"name": "",
|
729
729
|
"nameLocation": "-1:-1:-1",
|
730
730
|
"nodeType": "VariableDeclaration",
|
731
|
-
"scope":
|
732
|
-
"src": "1032:10:
|
731
|
+
"scope": 29189,
|
732
|
+
"src": "1032:10:69",
|
733
733
|
"stateVariable": false,
|
734
734
|
"storageLocation": "default",
|
735
735
|
"typeDescriptions": {
|
736
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
736
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
|
737
737
|
"typeString": "ResourceId"
|
738
738
|
},
|
739
739
|
"typeName": {
|
740
|
-
"id":
|
740
|
+
"id": 29169,
|
741
741
|
"nodeType": "UserDefinedTypeName",
|
742
742
|
"pathNode": {
|
743
|
-
"id":
|
743
|
+
"id": 29168,
|
744
744
|
"name": "ResourceId",
|
745
745
|
"nameLocations": [
|
746
|
-
"1032:10:
|
746
|
+
"1032:10:69"
|
747
747
|
],
|
748
748
|
"nodeType": "IdentifierPath",
|
749
|
-
"referencedDeclaration":
|
750
|
-
"src": "1032:10:
|
749
|
+
"referencedDeclaration": 29139,
|
750
|
+
"src": "1032:10:69"
|
751
751
|
},
|
752
|
-
"referencedDeclaration":
|
753
|
-
"src": "1032:10:
|
752
|
+
"referencedDeclaration": 29139,
|
753
|
+
"src": "1032:10:69",
|
754
754
|
"typeDescriptions": {
|
755
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
755
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
|
756
756
|
"typeString": "ResourceId"
|
757
757
|
}
|
758
758
|
},
|
759
759
|
"visibility": "internal"
|
760
760
|
}
|
761
761
|
],
|
762
|
-
"src": "1031:12:
|
762
|
+
"src": "1031:12:69"
|
763
763
|
},
|
764
|
-
"scope":
|
764
|
+
"scope": 29190,
|
765
765
|
"stateMutability": "pure",
|
766
766
|
"virtual": false,
|
767
767
|
"visibility": "internal"
|
@@ -773,35 +773,35 @@
|
|
773
773
|
"contractDependencies": [],
|
774
774
|
"contractKind": "library",
|
775
775
|
"documentation": {
|
776
|
-
"id":
|
776
|
+
"id": 29161,
|
777
777
|
"nodeType": "StructuredDocumentation",
|
778
|
-
"src": "566:101:
|
778
|
+
"src": "566:101:69",
|
779
779
|
"text": " @title ResourceIdLib Library\n @dev Provides functions to encode data into the ResourceId"
|
780
780
|
},
|
781
781
|
"fullyImplemented": true,
|
782
782
|
"linearizedBaseContracts": [
|
783
|
-
|
783
|
+
29190
|
784
784
|
],
|
785
785
|
"name": "ResourceIdLib",
|
786
|
-
"nameLocation": "676:13:
|
787
|
-
"scope":
|
786
|
+
"nameLocation": "676:13:69",
|
787
|
+
"scope": 29211,
|
788
788
|
"usedErrors": [],
|
789
789
|
"usedEvents": []
|
790
790
|
},
|
791
791
|
{
|
792
|
-
"id":
|
792
|
+
"id": 29210,
|
793
793
|
"nodeType": "ContractDefinition",
|
794
|
-
"src": "1236:379:
|
794
|
+
"src": "1236:379:69",
|
795
795
|
"nodes": [
|
796
796
|
{
|
797
|
-
"id":
|
797
|
+
"id": 29209,
|
798
798
|
"nodeType": "FunctionDefinition",
|
799
|
-
"src": "1487:126:
|
799
|
+
"src": "1487:126:69",
|
800
800
|
"nodes": [],
|
801
801
|
"body": {
|
802
|
-
"id":
|
802
|
+
"id": 29208,
|
803
803
|
"nodeType": "Block",
|
804
|
-
"src": "1558:55:
|
804
|
+
"src": "1558:55:69",
|
805
805
|
"nodes": [],
|
806
806
|
"statements": [
|
807
807
|
{
|
@@ -810,14 +810,14 @@
|
|
810
810
|
{
|
811
811
|
"arguments": [
|
812
812
|
{
|
813
|
-
"id":
|
813
|
+
"id": 29204,
|
814
814
|
"name": "resourceId",
|
815
815
|
"nodeType": "Identifier",
|
816
816
|
"overloadedDeclarations": [],
|
817
|
-
"referencedDeclaration":
|
818
|
-
"src": "1596:10:
|
817
|
+
"referencedDeclaration": 29195,
|
818
|
+
"src": "1596:10:69",
|
819
819
|
"typeDescriptions": {
|
820
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
820
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
|
821
821
|
"typeString": "ResourceId"
|
822
822
|
}
|
823
823
|
}
|
@@ -825,37 +825,37 @@
|
|
825
825
|
"expression": {
|
826
826
|
"argumentTypes": [
|
827
827
|
{
|
828
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
828
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
|
829
829
|
"typeString": "ResourceId"
|
830
830
|
}
|
831
831
|
],
|
832
832
|
"expression": {
|
833
|
-
"id":
|
833
|
+
"id": 29202,
|
834
834
|
"name": "ResourceId",
|
835
835
|
"nodeType": "Identifier",
|
836
836
|
"overloadedDeclarations": [],
|
837
|
-
"referencedDeclaration":
|
838
|
-
"src": "1578:10:
|
837
|
+
"referencedDeclaration": 29139,
|
838
|
+
"src": "1578:10:69",
|
839
839
|
"typeDescriptions": {
|
840
|
-
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$
|
840
|
+
"typeIdentifier": "t_type$_t_userDefinedValueType$_ResourceId_$29139_$",
|
841
841
|
"typeString": "type(ResourceId)"
|
842
842
|
}
|
843
843
|
},
|
844
|
-
"id":
|
844
|
+
"id": 29203,
|
845
845
|
"isConstant": false,
|
846
846
|
"isLValue": false,
|
847
847
|
"isPure": true,
|
848
848
|
"lValueRequested": false,
|
849
|
-
"memberLocation": "1589:6:
|
849
|
+
"memberLocation": "1589:6:69",
|
850
850
|
"memberName": "unwrap",
|
851
851
|
"nodeType": "MemberAccess",
|
852
|
-
"src": "1578:17:
|
852
|
+
"src": "1578:17:69",
|
853
853
|
"typeDescriptions": {
|
854
|
-
"typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_ResourceId_$
|
854
|
+
"typeIdentifier": "t_function_unwrap_pure$_t_userDefinedValueType$_ResourceId_$29139_$returns$_t_bytes32_$",
|
855
855
|
"typeString": "function (ResourceId) pure returns (bytes32)"
|
856
856
|
}
|
857
857
|
},
|
858
|
-
"id":
|
858
|
+
"id": 29205,
|
859
859
|
"isConstant": false,
|
860
860
|
"isLValue": false,
|
861
861
|
"isPure": false,
|
@@ -864,7 +864,7 @@
|
|
864
864
|
"nameLocations": [],
|
865
865
|
"names": [],
|
866
866
|
"nodeType": "FunctionCall",
|
867
|
-
"src": "1578:29:
|
867
|
+
"src": "1578:29:69",
|
868
868
|
"tryCall": false,
|
869
869
|
"typeDescriptions": {
|
870
870
|
"typeIdentifier": "t_bytes32",
|
@@ -879,26 +879,26 @@
|
|
879
879
|
"typeString": "bytes32"
|
880
880
|
}
|
881
881
|
],
|
882
|
-
"id":
|
882
|
+
"id": 29201,
|
883
883
|
"isConstant": false,
|
884
884
|
"isLValue": false,
|
885
885
|
"isPure": true,
|
886
886
|
"lValueRequested": false,
|
887
887
|
"nodeType": "ElementaryTypeNameExpression",
|
888
|
-
"src": "1571:6:
|
888
|
+
"src": "1571:6:69",
|
889
889
|
"typeDescriptions": {
|
890
890
|
"typeIdentifier": "t_type$_t_bytes2_$",
|
891
891
|
"typeString": "type(bytes2)"
|
892
892
|
},
|
893
893
|
"typeName": {
|
894
|
-
"id":
|
894
|
+
"id": 29200,
|
895
895
|
"name": "bytes2",
|
896
896
|
"nodeType": "ElementaryTypeName",
|
897
|
-
"src": "1571:6:
|
897
|
+
"src": "1571:6:69",
|
898
898
|
"typeDescriptions": {}
|
899
899
|
}
|
900
900
|
},
|
901
|
-
"id":
|
901
|
+
"id": 29206,
|
902
902
|
"isConstant": false,
|
903
903
|
"isLValue": false,
|
904
904
|
"isPure": false,
|
@@ -907,88 +907,88 @@
|
|
907
907
|
"nameLocations": [],
|
908
908
|
"names": [],
|
909
909
|
"nodeType": "FunctionCall",
|
910
|
-
"src": "1571:37:
|
910
|
+
"src": "1571:37:69",
|
911
911
|
"tryCall": false,
|
912
912
|
"typeDescriptions": {
|
913
913
|
"typeIdentifier": "t_bytes2",
|
914
914
|
"typeString": "bytes2"
|
915
915
|
}
|
916
916
|
},
|
917
|
-
"functionReturnParameters":
|
918
|
-
"id":
|
917
|
+
"functionReturnParameters": 29199,
|
918
|
+
"id": 29207,
|
919
919
|
"nodeType": "Return",
|
920
|
-
"src": "1564:44:
|
920
|
+
"src": "1564:44:69"
|
921
921
|
}
|
922
922
|
]
|
923
923
|
},
|
924
924
|
"documentation": {
|
925
|
-
"id":
|
925
|
+
"id": 29192,
|
926
926
|
"nodeType": "StructuredDocumentation",
|
927
|
-
"src": "1267:217:
|
927
|
+
"src": "1267:217:69",
|
928
928
|
"text": " @notice Extracts the type identifier from a given ResourceId.\n @param resourceId The ResourceId from which the type identifier should be extracted.\n @return The extracted 2-byte type identifier."
|
929
929
|
},
|
930
930
|
"implemented": true,
|
931
931
|
"kind": "function",
|
932
932
|
"modifiers": [],
|
933
933
|
"name": "getType",
|
934
|
-
"nameLocation": "1496:7:
|
934
|
+
"nameLocation": "1496:7:69",
|
935
935
|
"parameters": {
|
936
|
-
"id":
|
936
|
+
"id": 29196,
|
937
937
|
"nodeType": "ParameterList",
|
938
938
|
"parameters": [
|
939
939
|
{
|
940
940
|
"constant": false,
|
941
|
-
"id":
|
941
|
+
"id": 29195,
|
942
942
|
"mutability": "mutable",
|
943
943
|
"name": "resourceId",
|
944
|
-
"nameLocation": "1515:10:
|
944
|
+
"nameLocation": "1515:10:69",
|
945
945
|
"nodeType": "VariableDeclaration",
|
946
|
-
"scope":
|
947
|
-
"src": "1504:21:
|
946
|
+
"scope": 29209,
|
947
|
+
"src": "1504:21:69",
|
948
948
|
"stateVariable": false,
|
949
949
|
"storageLocation": "default",
|
950
950
|
"typeDescriptions": {
|
951
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
951
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
|
952
952
|
"typeString": "ResourceId"
|
953
953
|
},
|
954
954
|
"typeName": {
|
955
|
-
"id":
|
955
|
+
"id": 29194,
|
956
956
|
"nodeType": "UserDefinedTypeName",
|
957
957
|
"pathNode": {
|
958
|
-
"id":
|
958
|
+
"id": 29193,
|
959
959
|
"name": "ResourceId",
|
960
960
|
"nameLocations": [
|
961
|
-
"1504:10:
|
961
|
+
"1504:10:69"
|
962
962
|
],
|
963
963
|
"nodeType": "IdentifierPath",
|
964
|
-
"referencedDeclaration":
|
965
|
-
"src": "1504:10:
|
964
|
+
"referencedDeclaration": 29139,
|
965
|
+
"src": "1504:10:69"
|
966
966
|
},
|
967
|
-
"referencedDeclaration":
|
968
|
-
"src": "1504:10:
|
967
|
+
"referencedDeclaration": 29139,
|
968
|
+
"src": "1504:10:69",
|
969
969
|
"typeDescriptions": {
|
970
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
970
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$29139",
|
971
971
|
"typeString": "ResourceId"
|
972
972
|
}
|
973
973
|
},
|
974
974
|
"visibility": "internal"
|
975
975
|
}
|
976
976
|
],
|
977
|
-
"src": "1503:23:
|
977
|
+
"src": "1503:23:69"
|
978
978
|
},
|
979
979
|
"returnParameters": {
|
980
|
-
"id":
|
980
|
+
"id": 29199,
|
981
981
|
"nodeType": "ParameterList",
|
982
982
|
"parameters": [
|
983
983
|
{
|
984
984
|
"constant": false,
|
985
|
-
"id":
|
985
|
+
"id": 29198,
|
986
986
|
"mutability": "mutable",
|
987
987
|
"name": "",
|
988
988
|
"nameLocation": "-1:-1:-1",
|
989
989
|
"nodeType": "VariableDeclaration",
|
990
|
-
"scope":
|
991
|
-
"src": "1550:6:
|
990
|
+
"scope": 29209,
|
991
|
+
"src": "1550:6:69",
|
992
992
|
"stateVariable": false,
|
993
993
|
"storageLocation": "default",
|
994
994
|
"typeDescriptions": {
|
@@ -996,10 +996,10 @@
|
|
996
996
|
"typeString": "bytes2"
|
997
997
|
},
|
998
998
|
"typeName": {
|
999
|
-
"id":
|
999
|
+
"id": 29197,
|
1000
1000
|
"name": "bytes2",
|
1001
1001
|
"nodeType": "ElementaryTypeName",
|
1002
|
-
"src": "1550:6:
|
1002
|
+
"src": "1550:6:69",
|
1003
1003
|
"typeDescriptions": {
|
1004
1004
|
"typeIdentifier": "t_bytes2",
|
1005
1005
|
"typeString": "bytes2"
|
@@ -1008,9 +1008,9 @@
|
|
1008
1008
|
"visibility": "internal"
|
1009
1009
|
}
|
1010
1010
|
],
|
1011
|
-
"src": "1549:8:
|
1011
|
+
"src": "1549:8:69"
|
1012
1012
|
},
|
1013
|
-
"scope":
|
1013
|
+
"scope": 29210,
|
1014
1014
|
"stateMutability": "pure",
|
1015
1015
|
"virtual": false,
|
1016
1016
|
"visibility": "internal"
|
@@ -1022,23 +1022,23 @@
|
|
1022
1022
|
"contractDependencies": [],
|
1023
1023
|
"contractKind": "library",
|
1024
1024
|
"documentation": {
|
1025
|
-
"id":
|
1025
|
+
"id": 29191,
|
1026
1026
|
"nodeType": "StructuredDocumentation",
|
1027
|
-
"src": "1129:106:
|
1027
|
+
"src": "1129:106:69",
|
1028
1028
|
"text": " @title ResourceIdInstance Library\n @dev Provides functions to extract data from a ResourceId."
|
1029
1029
|
},
|
1030
1030
|
"fullyImplemented": true,
|
1031
1031
|
"linearizedBaseContracts": [
|
1032
|
-
|
1032
|
+
29210
|
1033
1033
|
],
|
1034
1034
|
"name": "ResourceIdInstance",
|
1035
|
-
"nameLocation": "1244:18:
|
1036
|
-
"scope":
|
1035
|
+
"nameLocation": "1244:18:69",
|
1036
|
+
"scope": 29211,
|
1037
1037
|
"usedErrors": [],
|
1038
1038
|
"usedEvents": []
|
1039
1039
|
}
|
1040
1040
|
],
|
1041
1041
|
"license": "MIT"
|
1042
1042
|
},
|
1043
|
-
"id":
|
1043
|
+
"id": 69
|
1044
1044
|
}
|