@latticexyz/world 2.0.0-alpha.1.21 → 2.0.0-alpha.1.22
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/abi/AccessControl.sol/AccessControl.json +241 -241
- package/abi/AccessManagementSystem.sol/AccessManagementSystem.json +157 -157
- package/abi/AddressArray.sol/AddressArray.json +1124 -1124
- package/abi/ArrayLib.sol/ArrayLib.json +139 -139
- package/abi/Bool.sol/Bool.json +704 -704
- package/abi/Bytes.sol/Bytes.json +6 -6
- package/abi/Call.sol/Call.json +112 -112
- package/abi/Callbacks.sol/Callbacks.json +1100 -1100
- package/abi/CoreModule.sol/CoreModule.json +542 -542
- package/abi/CoreSystem.sol/CoreSystem.json +92 -92
- package/abi/DecodeSlice.sol/DecodeSlice.json +3891 -3891
- package/abi/EncodeArray.sol/EncodeArray.json +3344 -3344
- package/abi/FunctionSelectors.sol/FunctionSelectors.json +1678 -1678
- package/abi/Hooks.sol/Hooks.json +1100 -1100
- package/abi/IAccessManagementSystem.sol/IAccessManagementSystem.json +32 -32
- package/abi/IBaseWorld.sol/IBaseWorld.json +224 -99
- package/abi/ICoreSystem.sol/ICoreSystem.json +6 -6
- package/abi/IModule.sol/IModule.json +28 -28
- package/abi/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +40 -40
- package/abi/IStore.sol/IStore.json +551 -349
- package/abi/IStore.sol/IStoreData.json +551 -349
- package/abi/IStore.sol/IStoreHook.json +495 -349
- package/abi/IStore.sol/IStoreRead.json +495 -349
- package/abi/IStore.sol/IStoreRegistration.json +495 -349
- package/abi/IStore.sol/IStoreWrite.json +551 -349
- package/abi/IStoreRegistrationSystem.sol/IStoreRegistrationSystem.json +80 -80
- package/abi/ISystemHook.sol/ISystemHook.json +19 -19
- package/abi/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +13 -13
- package/abi/IWorldKernel.sol/IWorldCall.json +455 -276
- package/abi/IWorldKernel.sol/IWorldData.json +524 -276
- package/abi/IWorldKernel.sol/IWorldKernel.json +524 -276
- package/abi/IWorldKernel.sol/IWorldModuleInstallation.json +455 -276
- package/abi/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +198 -198
- package/abi/InstalledModules.sol/InstalledModules.json +1351 -1351
- package/abi/KeysWithValue.sol/KeysWithValue.json +1124 -1124
- package/abi/KeysWithValueHook.sol/KeysWithValueHook.json +416 -416
- package/abi/KeysWithValueModule.sol/KeysWithValueModule.json +293 -293
- package/abi/Memory.sol/Memory.json +131 -131
- package/abi/Mixed.sol/Mixed.json +2781 -2781
- package/abi/ModuleInstallationSystem.sol/ModuleInstallationSystem.json +138 -138
- package/abi/NamespaceOwner.sol/NamespaceOwner.json +782 -782
- package/abi/PackedCounter.sol/PackedCounterLib.json +665 -665
- package/abi/ResourceAccess.sol/ResourceAccess.json +926 -926
- package/abi/ResourceSelector.sol/ResourceSelector.json +253 -253
- package/abi/ResourceType.sol/ResourceType.json +831 -831
- package/abi/Schema.sol/SchemaLib.json +1469 -1469
- package/abi/SchemaType.sol/SchemaType.json +315 -315
- package/abi/Slice.sol/SliceInstance.json +429 -429
- package/abi/Slice.sol/SliceLib.json +429 -429
- package/abi/Storage.sol/Storage.json +1024 -1061
- package/abi/StoreCore.sol/StoreCore.json +10434 -7652
- package/abi/StoreCore.sol/StoreCoreExtended.json +10434 -7652
- package/abi/StoreCore.sol/StoreCoreInternal.json +10434 -7652
- package/abi/StoreMetadata.sol/StoreMetadata.json +2116 -2116
- package/abi/StoreRead.sol/StoreRead.json +247 -247
- package/abi/StoreRegistrationSystem.sol/StoreRegistrationSystem.json +339 -339
- package/abi/StoreSwitch.sol/StoreSwitch.json +1814 -1359
- package/abi/System.sol/System.json +31 -31
- package/abi/SystemRegistry.sol/SystemRegistry.json +794 -794
- package/abi/Systems.sol/Systems.json +1412 -1412
- package/abi/TableId.sol/TableId.json +27 -27
- package/abi/Tables.sol/Tables.json +92 -92
- package/abi/TightCoder.sol/TightCoder.json +275 -275
- package/abi/Types.sol/Types.json +8 -8
- package/abi/UniqueEntity.sol/UniqueEntity.json +683 -683
- package/abi/UniqueEntityModule.sol/UniqueEntityModule.json +232 -232
- package/abi/UniqueEntitySystem.sol/UniqueEntitySystem.json +114 -114
- package/abi/Utils.sol/Utils.json +67 -67
- package/abi/Vector2.sol/Vector2.json +1473 -1473
- package/abi/World.sol/World.json +2426 -1491
- package/abi/WorldContext.sol/WorldContext.json +65 -65
- package/abi/WorldRegistrationSystem.sol/WorldRegistrationSystem.json +1140 -1140
- package/abi/console.sol/console.json +11417 -11417
- package/abi/constants.sol/constants.json +34 -34
- package/abi/getKeysWithValue.sol/getKeysWithValue.json +129 -129
- package/abi/getTargetTableSelector.sol/getTargetTableSelector.json +75 -75
- package/abi/getUniqueEntity.sol/getUniqueEntity.json +88 -88
- package/abi/interfaces/IErrors.sol/IErrors.json +57 -57
- package/abi/src/Bytes.sol/Bytes.json +1225 -1225
- package/abi/src/IStore.sol/IStore.json +727 -525
- package/abi/src/IStore.sol/IStoreData.json +727 -525
- package/abi/src/IStore.sol/IStoreHook.json +671 -525
- package/abi/src/IStore.sol/IStoreRead.json +671 -525
- package/abi/src/IStore.sol/IStoreRegistration.json +671 -525
- package/abi/src/IStore.sol/IStoreWrite.json +727 -525
- package/abi/src/Memory.sol/Memory.json +131 -131
- package/abi/src/PackedCounter.sol/PackedCounterLib.json +683 -683
- package/abi/src/Schema.sol/SchemaLib.json +1493 -1493
- package/abi/src/Slice.sol/SliceInstance.json +429 -429
- package/abi/src/Slice.sol/SliceLib.json +429 -429
- package/abi/src/StoreCore.sol/StoreCore.json +12500 -9718
- package/abi/src/StoreCore.sol/StoreCoreExtended.json +12500 -9718
- package/abi/src/StoreCore.sol/StoreCoreInternal.json +12500 -9718
- package/abi/src/StoreSwitch.sol/StoreSwitch.json +1822 -1367
- package/abi/tightcoder/EncodeArray.sol/EncodeArray.json +3344 -3344
- package/package.json +6 -6
- package/src/World.sol +32 -0
- package/src/interfaces/IWorldKernel.sol +12 -0
- package/types/ethers-contracts/IBaseWorld.ts +116 -0
- package/types/ethers-contracts/IStore.sol/IStore.ts +55 -0
- package/types/ethers-contracts/IStore.sol/IStoreData.ts +55 -0
- package/types/ethers-contracts/IStore.sol/IStoreWrite.ts +55 -0
- package/types/ethers-contracts/IWorldKernel.sol/IWorldData.ts +61 -0
- package/types/ethers-contracts/IWorldKernel.sol/IWorldKernel.ts +61 -0
- package/types/ethers-contracts/World.ts +116 -0
- package/types/ethers-contracts/factories/AccessManagementSystem__factory.ts +1 -1
- package/types/ethers-contracts/factories/CoreModule__factory.ts +1 -1
- package/types/ethers-contracts/factories/CoreSystem__factory.ts +1 -1
- package/types/ethers-contracts/factories/IBaseWorld__factory.ts +61 -0
- package/types/ethers-contracts/factories/IStore.sol/IStoreData__factory.ts +28 -0
- package/types/ethers-contracts/factories/IStore.sol/IStoreWrite__factory.ts +28 -0
- package/types/ethers-contracts/factories/IStore.sol/IStore__factory.ts +28 -0
- package/types/ethers-contracts/factories/IWorldKernel.sol/IWorldData__factory.ts +33 -0
- package/types/ethers-contracts/factories/IWorldKernel.sol/IWorldKernel__factory.ts +33 -0
- package/types/ethers-contracts/factories/KeysWithValueHook__factory.ts +1 -1
- package/types/ethers-contracts/factories/KeysWithValueModule__factory.ts +1 -1
- package/types/ethers-contracts/factories/ModuleInstallationSystem__factory.ts +1 -1
- package/types/ethers-contracts/factories/StoreCore__factory.ts +1 -1
- package/types/ethers-contracts/factories/StoreRead__factory.ts +1 -1
- package/types/ethers-contracts/factories/StoreRegistrationSystem__factory.ts +1 -1
- package/types/ethers-contracts/factories/StoreSwitch__factory.ts +1 -1
- package/types/ethers-contracts/factories/UniqueEntityModule__factory.ts +1 -1
- package/types/ethers-contracts/factories/UniqueEntitySystem__factory.ts +1 -1
- package/types/ethers-contracts/factories/WorldRegistrationSystem__factory.ts +1 -1
- package/types/ethers-contracts/factories/World__factory.ts +62 -1
- package/types/ethers-contracts/factories/src/IStore.sol/IStoreData__factory.ts +28 -0
- package/types/ethers-contracts/factories/src/IStore.sol/IStoreWrite__factory.ts +28 -0
- package/types/ethers-contracts/factories/src/IStore.sol/IStore__factory.ts +28 -0
- package/types/ethers-contracts/factories/src/StoreCore__factory.ts +1 -1
- package/types/ethers-contracts/factories/src/StoreSwitch__factory.ts +1 -1
- package/types/ethers-contracts/src/IStore.sol/IStore.ts +55 -0
- package/types/ethers-contracts/src/IStore.sol/IStoreData.ts +55 -0
- package/types/ethers-contracts/src/IStore.sol/IStoreWrite.ts +55 -0
|
@@ -10,27 +10,27 @@
|
|
|
10
10
|
},
|
|
11
11
|
"ast": {
|
|
12
12
|
"absolutePath": "src/modules/uniqueentity/getUniqueEntity.sol",
|
|
13
|
-
"id":
|
|
13
|
+
"id": 39909,
|
|
14
14
|
"exportedSymbols": {
|
|
15
15
|
"IBaseWorld": [
|
|
16
|
-
|
|
16
|
+
33804
|
|
17
17
|
],
|
|
18
18
|
"IUniqueEntitySystem": [
|
|
19
|
-
|
|
19
|
+
33931
|
|
20
20
|
],
|
|
21
21
|
"StoreSwitch": [
|
|
22
|
-
|
|
22
|
+
22295
|
|
23
23
|
],
|
|
24
24
|
"getUniqueEntity": [
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
39889,
|
|
26
|
+
39908
|
|
27
27
|
]
|
|
28
28
|
},
|
|
29
29
|
"nodeType": "SourceUnit",
|
|
30
30
|
"src": "32:874:84",
|
|
31
31
|
"nodes": [
|
|
32
32
|
{
|
|
33
|
-
"id":
|
|
33
|
+
"id": 39864,
|
|
34
34
|
"nodeType": "PragmaDirective",
|
|
35
35
|
"src": "32:24:84",
|
|
36
36
|
"nodes": [],
|
|
@@ -42,23 +42,23 @@
|
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
|
-
"id":
|
|
45
|
+
"id": 39866,
|
|
46
46
|
"nodeType": "ImportDirective",
|
|
47
47
|
"src": "58:68:84",
|
|
48
48
|
"nodes": [],
|
|
49
49
|
"absolutePath": "node_modules/@latticexyz/store/src/StoreSwitch.sol",
|
|
50
50
|
"file": "@latticexyz/store/src/StoreSwitch.sol",
|
|
51
51
|
"nameLocation": "-1:-1:-1",
|
|
52
|
-
"scope":
|
|
53
|
-
"sourceUnit":
|
|
52
|
+
"scope": 39909,
|
|
53
|
+
"sourceUnit": 22296,
|
|
54
54
|
"symbolAliases": [
|
|
55
55
|
{
|
|
56
56
|
"foreign": {
|
|
57
|
-
"id":
|
|
57
|
+
"id": 39865,
|
|
58
58
|
"name": "StoreSwitch",
|
|
59
59
|
"nodeType": "Identifier",
|
|
60
60
|
"overloadedDeclarations": [],
|
|
61
|
-
"referencedDeclaration":
|
|
61
|
+
"referencedDeclaration": 22295,
|
|
62
62
|
"src": "67:11:84",
|
|
63
63
|
"typeDescriptions": {}
|
|
64
64
|
},
|
|
@@ -68,23 +68,23 @@
|
|
|
68
68
|
"unitAlias": ""
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
|
-
"id":
|
|
71
|
+
"id": 39868,
|
|
72
72
|
"nodeType": "ImportDirective",
|
|
73
73
|
"src": "128:61:84",
|
|
74
74
|
"nodes": [],
|
|
75
75
|
"absolutePath": "src/interfaces/IBaseWorld.sol",
|
|
76
76
|
"file": "../../interfaces/IBaseWorld.sol",
|
|
77
77
|
"nameLocation": "-1:-1:-1",
|
|
78
|
-
"scope":
|
|
79
|
-
"sourceUnit":
|
|
78
|
+
"scope": 39909,
|
|
79
|
+
"sourceUnit": 33805,
|
|
80
80
|
"symbolAliases": [
|
|
81
81
|
{
|
|
82
82
|
"foreign": {
|
|
83
|
-
"id":
|
|
83
|
+
"id": 39867,
|
|
84
84
|
"name": "IBaseWorld",
|
|
85
85
|
"nodeType": "Identifier",
|
|
86
86
|
"overloadedDeclarations": [],
|
|
87
|
-
"referencedDeclaration":
|
|
87
|
+
"referencedDeclaration": 33804,
|
|
88
88
|
"src": "137:10:84",
|
|
89
89
|
"typeDescriptions": {}
|
|
90
90
|
},
|
|
@@ -94,23 +94,23 @@
|
|
|
94
94
|
"unitAlias": ""
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
|
-
"id":
|
|
97
|
+
"id": 39870,
|
|
98
98
|
"nodeType": "ImportDirective",
|
|
99
99
|
"src": "190:79:84",
|
|
100
100
|
"nodes": [],
|
|
101
101
|
"absolutePath": "src/interfaces/IUniqueEntitySystem.sol",
|
|
102
102
|
"file": "../../interfaces/IUniqueEntitySystem.sol",
|
|
103
103
|
"nameLocation": "-1:-1:-1",
|
|
104
|
-
"scope":
|
|
105
|
-
"sourceUnit":
|
|
104
|
+
"scope": 39909,
|
|
105
|
+
"sourceUnit": 33932,
|
|
106
106
|
"symbolAliases": [
|
|
107
107
|
{
|
|
108
108
|
"foreign": {
|
|
109
|
-
"id":
|
|
109
|
+
"id": 39869,
|
|
110
110
|
"name": "IUniqueEntitySystem",
|
|
111
111
|
"nodeType": "Identifier",
|
|
112
112
|
"overloadedDeclarations": [],
|
|
113
|
-
"referencedDeclaration":
|
|
113
|
+
"referencedDeclaration": 33931,
|
|
114
114
|
"src": "199:19:84",
|
|
115
115
|
"typeDescriptions": {}
|
|
116
116
|
},
|
|
@@ -120,29 +120,29 @@
|
|
|
120
120
|
"unitAlias": ""
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
|
-
"id":
|
|
123
|
+
"id": 39889,
|
|
124
124
|
"nodeType": "FunctionDefinition",
|
|
125
125
|
"src": "509:187:84",
|
|
126
126
|
"nodes": [],
|
|
127
127
|
"body": {
|
|
128
|
-
"id":
|
|
128
|
+
"id": 39888,
|
|
129
129
|
"nodeType": "Block",
|
|
130
130
|
"src": "567:129:84",
|
|
131
131
|
"nodes": [],
|
|
132
132
|
"statements": [
|
|
133
133
|
{
|
|
134
134
|
"assignments": [
|
|
135
|
-
|
|
135
|
+
39877
|
|
136
136
|
],
|
|
137
137
|
"declarations": [
|
|
138
138
|
{
|
|
139
139
|
"constant": false,
|
|
140
|
-
"id":
|
|
140
|
+
"id": 39877,
|
|
141
141
|
"mutability": "mutable",
|
|
142
142
|
"name": "world",
|
|
143
143
|
"nameLocation": "579:5:84",
|
|
144
144
|
"nodeType": "VariableDeclaration",
|
|
145
|
-
"scope":
|
|
145
|
+
"scope": 39888,
|
|
146
146
|
"src": "571:13:84",
|
|
147
147
|
"stateVariable": false,
|
|
148
148
|
"storageLocation": "default",
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
"typeString": "address"
|
|
152
152
|
},
|
|
153
153
|
"typeName": {
|
|
154
|
-
"id":
|
|
154
|
+
"id": 39876,
|
|
155
155
|
"name": "address",
|
|
156
156
|
"nodeType": "ElementaryTypeName",
|
|
157
157
|
"src": "571:7:84",
|
|
@@ -164,38 +164,38 @@
|
|
|
164
164
|
"visibility": "internal"
|
|
165
165
|
}
|
|
166
166
|
],
|
|
167
|
-
"id":
|
|
167
|
+
"id": 39881,
|
|
168
168
|
"initialValue": {
|
|
169
169
|
"arguments": [],
|
|
170
170
|
"expression": {
|
|
171
171
|
"argumentTypes": [],
|
|
172
172
|
"expression": {
|
|
173
|
-
"id":
|
|
173
|
+
"id": 39878,
|
|
174
174
|
"name": "StoreSwitch",
|
|
175
175
|
"nodeType": "Identifier",
|
|
176
176
|
"overloadedDeclarations": [],
|
|
177
|
-
"referencedDeclaration":
|
|
177
|
+
"referencedDeclaration": 22295,
|
|
178
178
|
"src": "587:11:84",
|
|
179
179
|
"typeDescriptions": {
|
|
180
|
-
"typeIdentifier": "t_type$_t_contract$_StoreSwitch_$
|
|
180
|
+
"typeIdentifier": "t_type$_t_contract$_StoreSwitch_$22295_$",
|
|
181
181
|
"typeString": "type(library StoreSwitch)"
|
|
182
182
|
}
|
|
183
183
|
},
|
|
184
|
-
"id":
|
|
184
|
+
"id": 39879,
|
|
185
185
|
"isConstant": false,
|
|
186
186
|
"isLValue": false,
|
|
187
187
|
"isPure": false,
|
|
188
188
|
"lValueRequested": false,
|
|
189
189
|
"memberName": "inferStoreAddress",
|
|
190
190
|
"nodeType": "MemberAccess",
|
|
191
|
-
"referencedDeclaration":
|
|
191
|
+
"referencedDeclaration": 21842,
|
|
192
192
|
"src": "587:29:84",
|
|
193
193
|
"typeDescriptions": {
|
|
194
194
|
"typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
|
|
195
195
|
"typeString": "function () view returns (address)"
|
|
196
196
|
}
|
|
197
197
|
},
|
|
198
|
-
"id":
|
|
198
|
+
"id": 39880,
|
|
199
199
|
"isConstant": false,
|
|
200
200
|
"isLValue": false,
|
|
201
201
|
"isPure": false,
|
|
@@ -221,11 +221,11 @@
|
|
|
221
221
|
"expression": {
|
|
222
222
|
"arguments": [
|
|
223
223
|
{
|
|
224
|
-
"id":
|
|
224
|
+
"id": 39883,
|
|
225
225
|
"name": "world",
|
|
226
226
|
"nodeType": "Identifier",
|
|
227
227
|
"overloadedDeclarations": [],
|
|
228
|
-
"referencedDeclaration":
|
|
228
|
+
"referencedDeclaration": 39877,
|
|
229
229
|
"src": "649:5:84",
|
|
230
230
|
"typeDescriptions": {
|
|
231
231
|
"typeIdentifier": "t_address",
|
|
@@ -240,18 +240,18 @@
|
|
|
240
240
|
"typeString": "address"
|
|
241
241
|
}
|
|
242
242
|
],
|
|
243
|
-
"id":
|
|
243
|
+
"id": 39882,
|
|
244
244
|
"name": "IUniqueEntitySystem",
|
|
245
245
|
"nodeType": "Identifier",
|
|
246
246
|
"overloadedDeclarations": [],
|
|
247
|
-
"referencedDeclaration":
|
|
247
|
+
"referencedDeclaration": 33931,
|
|
248
248
|
"src": "629:19:84",
|
|
249
249
|
"typeDescriptions": {
|
|
250
|
-
"typeIdentifier": "t_type$_t_contract$_IUniqueEntitySystem_$
|
|
250
|
+
"typeIdentifier": "t_type$_t_contract$_IUniqueEntitySystem_$33931_$",
|
|
251
251
|
"typeString": "type(contract IUniqueEntitySystem)"
|
|
252
252
|
}
|
|
253
253
|
},
|
|
254
|
-
"id":
|
|
254
|
+
"id": 39884,
|
|
255
255
|
"isConstant": false,
|
|
256
256
|
"isLValue": false,
|
|
257
257
|
"isPure": false,
|
|
@@ -262,25 +262,25 @@
|
|
|
262
262
|
"src": "629:26:84",
|
|
263
263
|
"tryCall": false,
|
|
264
264
|
"typeDescriptions": {
|
|
265
|
-
"typeIdentifier": "t_contract$_IUniqueEntitySystem_$
|
|
265
|
+
"typeIdentifier": "t_contract$_IUniqueEntitySystem_$33931",
|
|
266
266
|
"typeString": "contract IUniqueEntitySystem"
|
|
267
267
|
}
|
|
268
268
|
},
|
|
269
|
-
"id":
|
|
269
|
+
"id": 39885,
|
|
270
270
|
"isConstant": false,
|
|
271
271
|
"isLValue": false,
|
|
272
272
|
"isPure": false,
|
|
273
273
|
"lValueRequested": false,
|
|
274
274
|
"memberName": "uniqueEntity_system_getUniqueEntity",
|
|
275
275
|
"nodeType": "MemberAccess",
|
|
276
|
-
"referencedDeclaration":
|
|
276
|
+
"referencedDeclaration": 33930,
|
|
277
277
|
"src": "629:62:84",
|
|
278
278
|
"typeDescriptions": {
|
|
279
279
|
"typeIdentifier": "t_function_external_nonpayable$__$returns$_t_bytes32_$",
|
|
280
280
|
"typeString": "function () external returns (bytes32)"
|
|
281
281
|
}
|
|
282
282
|
},
|
|
283
|
-
"id":
|
|
283
|
+
"id": 39886,
|
|
284
284
|
"isConstant": false,
|
|
285
285
|
"isLValue": false,
|
|
286
286
|
"isPure": false,
|
|
@@ -295,15 +295,15 @@
|
|
|
295
295
|
"typeString": "bytes32"
|
|
296
296
|
}
|
|
297
297
|
},
|
|
298
|
-
"functionReturnParameters":
|
|
299
|
-
"id":
|
|
298
|
+
"functionReturnParameters": 39875,
|
|
299
|
+
"id": 39887,
|
|
300
300
|
"nodeType": "Return",
|
|
301
301
|
"src": "622:71:84"
|
|
302
302
|
}
|
|
303
303
|
]
|
|
304
304
|
},
|
|
305
305
|
"documentation": {
|
|
306
|
-
"id":
|
|
306
|
+
"id": 39871,
|
|
307
307
|
"nodeType": "StructuredDocumentation",
|
|
308
308
|
"src": "271:237:84",
|
|
309
309
|
"text": " Increment and get an entity nonce.\n Note: this util can only be called within the context of a World (e.g. from a System or Module).\n For usage outside of a World, use the overload that takes an explicit store argument."
|
|
@@ -314,23 +314,23 @@
|
|
|
314
314
|
"name": "getUniqueEntity",
|
|
315
315
|
"nameLocation": "518:15:84",
|
|
316
316
|
"parameters": {
|
|
317
|
-
"id":
|
|
317
|
+
"id": 39872,
|
|
318
318
|
"nodeType": "ParameterList",
|
|
319
319
|
"parameters": [],
|
|
320
320
|
"src": "533:2:84"
|
|
321
321
|
},
|
|
322
322
|
"returnParameters": {
|
|
323
|
-
"id":
|
|
323
|
+
"id": 39875,
|
|
324
324
|
"nodeType": "ParameterList",
|
|
325
325
|
"parameters": [
|
|
326
326
|
{
|
|
327
327
|
"constant": false,
|
|
328
|
-
"id":
|
|
328
|
+
"id": 39874,
|
|
329
329
|
"mutability": "mutable",
|
|
330
330
|
"name": "uniqueEntity",
|
|
331
331
|
"nameLocation": "553:12:84",
|
|
332
332
|
"nodeType": "VariableDeclaration",
|
|
333
|
-
"scope":
|
|
333
|
+
"scope": 39889,
|
|
334
334
|
"src": "545:20:84",
|
|
335
335
|
"stateVariable": false,
|
|
336
336
|
"storageLocation": "default",
|
|
@@ -339,7 +339,7 @@
|
|
|
339
339
|
"typeString": "bytes32"
|
|
340
340
|
},
|
|
341
341
|
"typeName": {
|
|
342
|
-
"id":
|
|
342
|
+
"id": 39873,
|
|
343
343
|
"name": "bytes32",
|
|
344
344
|
"nodeType": "ElementaryTypeName",
|
|
345
345
|
"src": "545:7:84",
|
|
@@ -353,18 +353,18 @@
|
|
|
353
353
|
],
|
|
354
354
|
"src": "544:22:84"
|
|
355
355
|
},
|
|
356
|
-
"scope":
|
|
356
|
+
"scope": 39909,
|
|
357
357
|
"stateMutability": "nonpayable",
|
|
358
358
|
"virtual": false,
|
|
359
359
|
"visibility": "internal"
|
|
360
360
|
},
|
|
361
361
|
{
|
|
362
|
-
"id":
|
|
362
|
+
"id": 39908,
|
|
363
363
|
"nodeType": "FunctionDefinition",
|
|
364
364
|
"src": "744:161:84",
|
|
365
365
|
"nodes": [],
|
|
366
366
|
"body": {
|
|
367
|
-
"id":
|
|
367
|
+
"id": 39907,
|
|
368
368
|
"nodeType": "Block",
|
|
369
369
|
"src": "818:87:84",
|
|
370
370
|
"nodes": [],
|
|
@@ -379,14 +379,14 @@
|
|
|
379
379
|
{
|
|
380
380
|
"arguments": [
|
|
381
381
|
{
|
|
382
|
-
"id":
|
|
382
|
+
"id": 39901,
|
|
383
383
|
"name": "world",
|
|
384
384
|
"nodeType": "Identifier",
|
|
385
385
|
"overloadedDeclarations": [],
|
|
386
|
-
"referencedDeclaration":
|
|
386
|
+
"referencedDeclaration": 39893,
|
|
387
387
|
"src": "857:5:84",
|
|
388
388
|
"typeDescriptions": {
|
|
389
|
-
"typeIdentifier": "t_contract$_IBaseWorld_$
|
|
389
|
+
"typeIdentifier": "t_contract$_IBaseWorld_$33804",
|
|
390
390
|
"typeString": "contract IBaseWorld"
|
|
391
391
|
}
|
|
392
392
|
}
|
|
@@ -394,11 +394,11 @@
|
|
|
394
394
|
"expression": {
|
|
395
395
|
"argumentTypes": [
|
|
396
396
|
{
|
|
397
|
-
"typeIdentifier": "t_contract$_IBaseWorld_$
|
|
397
|
+
"typeIdentifier": "t_contract$_IBaseWorld_$33804",
|
|
398
398
|
"typeString": "contract IBaseWorld"
|
|
399
399
|
}
|
|
400
400
|
],
|
|
401
|
-
"id":
|
|
401
|
+
"id": 39900,
|
|
402
402
|
"isConstant": false,
|
|
403
403
|
"isLValue": false,
|
|
404
404
|
"isPure": true,
|
|
@@ -410,14 +410,14 @@
|
|
|
410
410
|
"typeString": "type(address)"
|
|
411
411
|
},
|
|
412
412
|
"typeName": {
|
|
413
|
-
"id":
|
|
413
|
+
"id": 39899,
|
|
414
414
|
"name": "address",
|
|
415
415
|
"nodeType": "ElementaryTypeName",
|
|
416
416
|
"src": "849:7:84",
|
|
417
417
|
"typeDescriptions": {}
|
|
418
418
|
}
|
|
419
419
|
},
|
|
420
|
-
"id":
|
|
420
|
+
"id": 39902,
|
|
421
421
|
"isConstant": false,
|
|
422
422
|
"isLValue": false,
|
|
423
423
|
"isPure": false,
|
|
@@ -440,18 +440,18 @@
|
|
|
440
440
|
"typeString": "address"
|
|
441
441
|
}
|
|
442
442
|
],
|
|
443
|
-
"id":
|
|
443
|
+
"id": 39898,
|
|
444
444
|
"name": "IUniqueEntitySystem",
|
|
445
445
|
"nodeType": "Identifier",
|
|
446
446
|
"overloadedDeclarations": [],
|
|
447
|
-
"referencedDeclaration":
|
|
447
|
+
"referencedDeclaration": 33931,
|
|
448
448
|
"src": "829:19:84",
|
|
449
449
|
"typeDescriptions": {
|
|
450
|
-
"typeIdentifier": "t_type$_t_contract$_IUniqueEntitySystem_$
|
|
450
|
+
"typeIdentifier": "t_type$_t_contract$_IUniqueEntitySystem_$33931_$",
|
|
451
451
|
"typeString": "type(contract IUniqueEntitySystem)"
|
|
452
452
|
}
|
|
453
453
|
},
|
|
454
|
-
"id":
|
|
454
|
+
"id": 39903,
|
|
455
455
|
"isConstant": false,
|
|
456
456
|
"isLValue": false,
|
|
457
457
|
"isPure": false,
|
|
@@ -462,25 +462,25 @@
|
|
|
462
462
|
"src": "829:35:84",
|
|
463
463
|
"tryCall": false,
|
|
464
464
|
"typeDescriptions": {
|
|
465
|
-
"typeIdentifier": "t_contract$_IUniqueEntitySystem_$
|
|
465
|
+
"typeIdentifier": "t_contract$_IUniqueEntitySystem_$33931",
|
|
466
466
|
"typeString": "contract IUniqueEntitySystem"
|
|
467
467
|
}
|
|
468
468
|
},
|
|
469
|
-
"id":
|
|
469
|
+
"id": 39904,
|
|
470
470
|
"isConstant": false,
|
|
471
471
|
"isLValue": false,
|
|
472
472
|
"isPure": false,
|
|
473
473
|
"lValueRequested": false,
|
|
474
474
|
"memberName": "uniqueEntity_system_getUniqueEntity",
|
|
475
475
|
"nodeType": "MemberAccess",
|
|
476
|
-
"referencedDeclaration":
|
|
476
|
+
"referencedDeclaration": 33930,
|
|
477
477
|
"src": "829:71:84",
|
|
478
478
|
"typeDescriptions": {
|
|
479
479
|
"typeIdentifier": "t_function_external_nonpayable$__$returns$_t_bytes32_$",
|
|
480
480
|
"typeString": "function () external returns (bytes32)"
|
|
481
481
|
}
|
|
482
482
|
},
|
|
483
|
-
"id":
|
|
483
|
+
"id": 39905,
|
|
484
484
|
"isConstant": false,
|
|
485
485
|
"isLValue": false,
|
|
486
486
|
"isPure": false,
|
|
@@ -495,15 +495,15 @@
|
|
|
495
495
|
"typeString": "bytes32"
|
|
496
496
|
}
|
|
497
497
|
},
|
|
498
|
-
"functionReturnParameters":
|
|
499
|
-
"id":
|
|
498
|
+
"functionReturnParameters": 39897,
|
|
499
|
+
"id": 39906,
|
|
500
500
|
"nodeType": "Return",
|
|
501
501
|
"src": "822:80:84"
|
|
502
502
|
}
|
|
503
503
|
]
|
|
504
504
|
},
|
|
505
505
|
"documentation": {
|
|
506
|
-
"id":
|
|
506
|
+
"id": 39890,
|
|
507
507
|
"nodeType": "StructuredDocumentation",
|
|
508
508
|
"src": "698:45:84",
|
|
509
509
|
"text": " Increment and get an entity nonce."
|
|
@@ -514,38 +514,38 @@
|
|
|
514
514
|
"name": "getUniqueEntity",
|
|
515
515
|
"nameLocation": "753:15:84",
|
|
516
516
|
"parameters": {
|
|
517
|
-
"id":
|
|
517
|
+
"id": 39894,
|
|
518
518
|
"nodeType": "ParameterList",
|
|
519
519
|
"parameters": [
|
|
520
520
|
{
|
|
521
521
|
"constant": false,
|
|
522
|
-
"id":
|
|
522
|
+
"id": 39893,
|
|
523
523
|
"mutability": "mutable",
|
|
524
524
|
"name": "world",
|
|
525
525
|
"nameLocation": "780:5:84",
|
|
526
526
|
"nodeType": "VariableDeclaration",
|
|
527
|
-
"scope":
|
|
527
|
+
"scope": 39908,
|
|
528
528
|
"src": "769:16:84",
|
|
529
529
|
"stateVariable": false,
|
|
530
530
|
"storageLocation": "default",
|
|
531
531
|
"typeDescriptions": {
|
|
532
|
-
"typeIdentifier": "t_contract$_IBaseWorld_$
|
|
532
|
+
"typeIdentifier": "t_contract$_IBaseWorld_$33804",
|
|
533
533
|
"typeString": "contract IBaseWorld"
|
|
534
534
|
},
|
|
535
535
|
"typeName": {
|
|
536
|
-
"id":
|
|
536
|
+
"id": 39892,
|
|
537
537
|
"nodeType": "UserDefinedTypeName",
|
|
538
538
|
"pathNode": {
|
|
539
|
-
"id":
|
|
539
|
+
"id": 39891,
|
|
540
540
|
"name": "IBaseWorld",
|
|
541
541
|
"nodeType": "IdentifierPath",
|
|
542
|
-
"referencedDeclaration":
|
|
542
|
+
"referencedDeclaration": 33804,
|
|
543
543
|
"src": "769:10:84"
|
|
544
544
|
},
|
|
545
|
-
"referencedDeclaration":
|
|
545
|
+
"referencedDeclaration": 33804,
|
|
546
546
|
"src": "769:10:84",
|
|
547
547
|
"typeDescriptions": {
|
|
548
|
-
"typeIdentifier": "t_contract$_IBaseWorld_$
|
|
548
|
+
"typeIdentifier": "t_contract$_IBaseWorld_$33804",
|
|
549
549
|
"typeString": "contract IBaseWorld"
|
|
550
550
|
}
|
|
551
551
|
},
|
|
@@ -555,17 +555,17 @@
|
|
|
555
555
|
"src": "768:18:84"
|
|
556
556
|
},
|
|
557
557
|
"returnParameters": {
|
|
558
|
-
"id":
|
|
558
|
+
"id": 39897,
|
|
559
559
|
"nodeType": "ParameterList",
|
|
560
560
|
"parameters": [
|
|
561
561
|
{
|
|
562
562
|
"constant": false,
|
|
563
|
-
"id":
|
|
563
|
+
"id": 39896,
|
|
564
564
|
"mutability": "mutable",
|
|
565
565
|
"name": "uniqueEntity",
|
|
566
566
|
"nameLocation": "804:12:84",
|
|
567
567
|
"nodeType": "VariableDeclaration",
|
|
568
|
-
"scope":
|
|
568
|
+
"scope": 39908,
|
|
569
569
|
"src": "796:20:84",
|
|
570
570
|
"stateVariable": false,
|
|
571
571
|
"storageLocation": "default",
|
|
@@ -574,7 +574,7 @@
|
|
|
574
574
|
"typeString": "bytes32"
|
|
575
575
|
},
|
|
576
576
|
"typeName": {
|
|
577
|
-
"id":
|
|
577
|
+
"id": 39895,
|
|
578
578
|
"name": "bytes32",
|
|
579
579
|
"nodeType": "ElementaryTypeName",
|
|
580
580
|
"src": "796:7:84",
|
|
@@ -588,7 +588,7 @@
|
|
|
588
588
|
],
|
|
589
589
|
"src": "795:22:84"
|
|
590
590
|
},
|
|
591
|
-
"scope":
|
|
591
|
+
"scope": 39909,
|
|
592
592
|
"stateMutability": "nonpayable",
|
|
593
593
|
"virtual": false,
|
|
594
594
|
"visibility": "internal"
|