@latticexyz/world-modules 2.0.0-main-2b8c0bcc → 2.0.0-main-9448c3f1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/out/ERC20.t.sol/ERC20Test.json +1 -1
  2. package/out/ERC721.t.sol/ERC721Recipient.json +1 -1
  3. package/out/ERC721.t.sol/ERC721Test.json +1 -1
  4. package/out/ERC721.t.sol/ERC721TokenReceiver.json +1 -1
  5. package/out/ERC721.t.sol/NonERC721Recipient.json +1 -1
  6. package/out/ERC721.t.sol/RevertingERC721Recipient.json +1 -1
  7. package/out/ERC721.t.sol/WrongReturnDataERC721Recipient.json +1 -1
  8. package/out/KeysInTableModule.t.sol/KeysInTableModuleTest.json +1 -1
  9. package/out/KeysWithValueModule.t.sol/KeysWithValueModuleTest.json +1 -1
  10. package/out/PuppetModule.t.sol/PuppetModuleTest.json +1 -1
  11. package/out/PuppetModule.t.sol/PuppetTestSystem.json +1 -1
  12. package/out/StandardDelegationsModule.t.sol/StandardDelegationsModuleTest.json +1 -1
  13. package/out/SystemSwitch.sol/SystemSwitch.json +1 -1
  14. package/out/SystemSwitch.t.sol/EchoSystem.abi.json +98 -1
  15. package/out/SystemSwitch.t.sol/EchoSystem.abi.json.d.ts +98 -1
  16. package/out/SystemSwitch.t.sol/EchoSystem.json +1 -1
  17. package/out/SystemSwitch.t.sol/SystemSwitchTest.abi.json +59 -15
  18. package/out/SystemSwitch.t.sol/SystemSwitchTest.abi.json.d.ts +59 -15
  19. package/out/SystemSwitch.t.sol/SystemSwitchTest.json +1 -1
  20. package/out/UniqueEntityModule.t.sol/UniqueEntityModuleTest.json +1 -1
  21. package/out/UniqueEntityModule.t.sol/UniqueEntityTestSystem.abi.json +68 -0
  22. package/out/UniqueEntityModule.t.sol/UniqueEntityTestSystem.abi.json.d.ts +68 -0
  23. package/out/UniqueEntityModule.t.sol/UniqueEntityTestSystem.json +1 -1
  24. package/out/getUniqueEntity.sol/getUniqueEntity.json +1 -1
  25. package/out/query.t.sol/QueryTest.json +1 -1
  26. package/out/registerERC721.sol/registerERC721.json +1 -1
  27. package/package.json +8 -8
  28. package/src/utils/SystemSwitch.sol +6 -9
@@ -98,7 +98,7 @@
98
98
  "internalType": "string"
99
99
  }
100
100
  ],
101
- "stateMutability": "view"
101
+ "stateMutability": "pure"
102
102
  },
103
103
  {
104
104
  "type": "function",
@@ -113,6 +113,19 @@
113
113
  ],
114
114
  "stateMutability": "view"
115
115
  },
116
+ {
117
+ "type": "function",
118
+ "name": "readTable",
119
+ "inputs": [],
120
+ "outputs": [
121
+ {
122
+ "name": "",
123
+ "type": "bytes32",
124
+ "internalType": "Schema"
125
+ }
126
+ ],
127
+ "stateMutability": "view"
128
+ },
116
129
  {
117
130
  "type": "function",
118
131
  "name": "supportsInterface",
@@ -145,6 +158,90 @@
145
158
  ],
146
159
  "stateMutability": "view"
147
160
  },
161
+ {
162
+ "type": "event",
163
+ "name": "Store_SpliceStaticData",
164
+ "inputs": [
165
+ {
166
+ "name": "tableId",
167
+ "type": "bytes32",
168
+ "indexed": true,
169
+ "internalType": "ResourceId"
170
+ },
171
+ {
172
+ "name": "keyTuple",
173
+ "type": "bytes32[]",
174
+ "indexed": false,
175
+ "internalType": "bytes32[]"
176
+ },
177
+ {
178
+ "name": "start",
179
+ "type": "uint48",
180
+ "indexed": false,
181
+ "internalType": "uint48"
182
+ },
183
+ {
184
+ "name": "data",
185
+ "type": "bytes",
186
+ "indexed": false,
187
+ "internalType": "bytes"
188
+ }
189
+ ],
190
+ "anonymous": false
191
+ },
192
+ {
193
+ "type": "error",
194
+ "name": "Slice_OutOfBounds",
195
+ "inputs": [
196
+ {
197
+ "name": "data",
198
+ "type": "bytes",
199
+ "internalType": "bytes"
200
+ },
201
+ {
202
+ "name": "start",
203
+ "type": "uint256",
204
+ "internalType": "uint256"
205
+ },
206
+ {
207
+ "name": "end",
208
+ "type": "uint256",
209
+ "internalType": "uint256"
210
+ }
211
+ ]
212
+ },
213
+ {
214
+ "type": "error",
215
+ "name": "Store_TableNotFound",
216
+ "inputs": [
217
+ {
218
+ "name": "tableId",
219
+ "type": "bytes32",
220
+ "internalType": "ResourceId"
221
+ },
222
+ {
223
+ "name": "tableIdString",
224
+ "type": "string",
225
+ "internalType": "string"
226
+ }
227
+ ]
228
+ },
229
+ {
230
+ "type": "error",
231
+ "name": "World_AccessDenied",
232
+ "inputs": [
233
+ {
234
+ "name": "resource",
235
+ "type": "string",
236
+ "internalType": "string"
237
+ },
238
+ {
239
+ "name": "caller",
240
+ "type": "address",
241
+ "internalType": "address"
242
+ }
243
+ ]
244
+ },
148
245
  {
149
246
  "type": "error",
150
247
  "name": "World_FunctionSelectorNotFound",
@@ -98,7 +98,7 @@ declare const abi: [
98
98
  "internalType": "string"
99
99
  }
100
100
  ],
101
- "stateMutability": "view"
101
+ "stateMutability": "pure"
102
102
  },
103
103
  {
104
104
  "type": "function",
@@ -113,6 +113,19 @@ declare const abi: [
113
113
  ],
114
114
  "stateMutability": "view"
115
115
  },
116
+ {
117
+ "type": "function",
118
+ "name": "readTable",
119
+ "inputs": [],
120
+ "outputs": [
121
+ {
122
+ "name": "",
123
+ "type": "bytes32",
124
+ "internalType": "Schema"
125
+ }
126
+ ],
127
+ "stateMutability": "view"
128
+ },
116
129
  {
117
130
  "type": "function",
118
131
  "name": "supportsInterface",
@@ -145,6 +158,90 @@ declare const abi: [
145
158
  ],
146
159
  "stateMutability": "view"
147
160
  },
161
+ {
162
+ "type": "event",
163
+ "name": "Store_SpliceStaticData",
164
+ "inputs": [
165
+ {
166
+ "name": "tableId",
167
+ "type": "bytes32",
168
+ "indexed": true,
169
+ "internalType": "ResourceId"
170
+ },
171
+ {
172
+ "name": "keyTuple",
173
+ "type": "bytes32[]",
174
+ "indexed": false,
175
+ "internalType": "bytes32[]"
176
+ },
177
+ {
178
+ "name": "start",
179
+ "type": "uint48",
180
+ "indexed": false,
181
+ "internalType": "uint48"
182
+ },
183
+ {
184
+ "name": "data",
185
+ "type": "bytes",
186
+ "indexed": false,
187
+ "internalType": "bytes"
188
+ }
189
+ ],
190
+ "anonymous": false
191
+ },
192
+ {
193
+ "type": "error",
194
+ "name": "Slice_OutOfBounds",
195
+ "inputs": [
196
+ {
197
+ "name": "data",
198
+ "type": "bytes",
199
+ "internalType": "bytes"
200
+ },
201
+ {
202
+ "name": "start",
203
+ "type": "uint256",
204
+ "internalType": "uint256"
205
+ },
206
+ {
207
+ "name": "end",
208
+ "type": "uint256",
209
+ "internalType": "uint256"
210
+ }
211
+ ]
212
+ },
213
+ {
214
+ "type": "error",
215
+ "name": "Store_TableNotFound",
216
+ "inputs": [
217
+ {
218
+ "name": "tableId",
219
+ "type": "bytes32",
220
+ "internalType": "ResourceId"
221
+ },
222
+ {
223
+ "name": "tableIdString",
224
+ "type": "string",
225
+ "internalType": "string"
226
+ }
227
+ ]
228
+ },
229
+ {
230
+ "type": "error",
231
+ "name": "World_AccessDenied",
232
+ "inputs": [
233
+ {
234
+ "name": "resource",
235
+ "type": "string",
236
+ "internalType": "string"
237
+ },
238
+ {
239
+ "name": "caller",
240
+ "type": "address",
241
+ "internalType": "address"
242
+ }
243
+ ]
244
+ },
148
245
  {
149
246
  "type": "error",
150
247
  "name": "World_FunctionSelectorNotFound",