@latticexyz/world-modules 2.2.17-e347d31fd6f6ac4225ee679bceb6e040c6f8d0d8 → 2.2.17-f1d5432fe2c9abb19fa378f790217e67d6dd8504

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 (130) hide show
  1. package/dist/mud.config.d.ts +57 -1
  2. package/dist/mud.config.js +1 -1
  3. package/dist/mud.config.js.map +1 -1
  4. package/out/AccessManagementSystem.sol/AccessManagementSystem.json +1 -1
  5. package/out/Allowances.sol/Allowances.json +1 -1
  6. package/out/ArrayLib.sol/ArrayLib.json +1 -1
  7. package/out/BalanceTransferSystem.sol/BalanceTransferSystem.json +1 -1
  8. package/out/Balances.sol/Balances.json +1 -1
  9. package/out/BatchCallSystem.sol/BatchCallSystem.json +1 -1
  10. package/out/CallWithSignatureModule.t.sol/Unstable_CallWithSignatureModuleTest.abi.json +541 -0
  11. package/out/CallWithSignatureModule.t.sol/Unstable_CallWithSignatureModuleTest.abi.json.d.ts +543 -0
  12. package/out/CallWithSignatureModule.t.sol/Unstable_CallWithSignatureModuleTest.json +1 -0
  13. package/out/CallWithSignatureNonces.sol/CallWithSignatureNonces.abi.json +1 -0
  14. package/out/CallWithSignatureNonces.sol/CallWithSignatureNonces.json +1 -0
  15. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +1 -1
  16. package/out/CallboundDelegations.sol/CallboundDelegations.json +1 -1
  17. package/out/DelegationControlMock.sol/DelegationControlMock.json +1 -1
  18. package/out/ECDSA.sol/ECDSA.abi.json +29 -0
  19. package/out/ECDSA.sol/ECDSA.abi.json.d.ts +31 -0
  20. package/out/ECDSA.sol/ECDSA.json +1 -0
  21. package/out/ERC20.t.sol/ERC20Test.json +1 -1
  22. package/out/ERC20Metadata.sol/ERC20Metadata.json +1 -1
  23. package/out/ERC20Module.sol/ERC20Module.json +1 -1
  24. package/out/ERC20Module.sol/ERC20ModuleRegistrationLib.json +1 -1
  25. package/out/ERC20Registry.sol/ERC20Registry.json +1 -1
  26. package/out/ERC20System.sol/ERC20System.json +1 -1
  27. package/out/ERC721.t.sol/ERC721Recipient.json +1 -1
  28. package/out/ERC721.t.sol/ERC721Test.json +1 -1
  29. package/out/ERC721.t.sol/ERC721TokenReceiver.json +1 -1
  30. package/out/ERC721.t.sol/NonERC721Recipient.json +1 -1
  31. package/out/ERC721.t.sol/RevertingERC721Recipient.json +1 -1
  32. package/out/ERC721.t.sol/WrongReturnDataERC721Recipient.json +1 -1
  33. package/out/ERC721Metadata.sol/ERC721Metadata.json +1 -1
  34. package/out/ERC721Module.sol/ERC721Module.json +1 -1
  35. package/out/ERC721Module.sol/ERC721ModuleRegistrationLib.json +1 -1
  36. package/out/ERC721Registry.sol/ERC721Registry.json +1 -1
  37. package/out/ERC721System.sol/ERC721System.json +1 -1
  38. package/out/EchoSubscriber.sol/EchoSubscriber.json +1 -1
  39. package/out/GasReporter.sol/GasReporter.json +1 -1
  40. package/out/IERC1271.sol/IERC1271.abi.json +26 -0
  41. package/out/IERC1271.sol/IERC1271.abi.json.d.ts +28 -0
  42. package/out/IERC1271.sol/IERC1271.json +1 -0
  43. package/out/IERC20.sol/IERC20.json +1 -1
  44. package/out/IERC20Errors.sol/IERC20Errors.json +1 -1
  45. package/out/IERC20Events.sol/IERC20Events.json +1 -1
  46. package/out/IERC20Mintable.sol/IERC20Mintable.json +1 -1
  47. package/out/IERC721.sol/IERC721.json +1 -1
  48. package/out/IERC721Errors.sol/IERC721Errors.json +1 -1
  49. package/out/IERC721Events.sol/IERC721Events.json +1 -1
  50. package/out/IERC721Metadata.sol/IERC721Metadata.json +1 -1
  51. package/out/IERC721Mintable.sol/IERC721Mintable.json +1 -1
  52. package/out/IERC721Receiver.sol/IERC721Receiver.json +1 -1
  53. package/out/IUnstable_CallWithSignatureErrors.sol/IUnstable_CallWithSignatureErrors.abi.json +7 -0
  54. package/out/IUnstable_CallWithSignatureErrors.sol/IUnstable_CallWithSignatureErrors.abi.json.d.ts +9 -0
  55. package/out/IUnstable_CallWithSignatureErrors.sol/IUnstable_CallWithSignatureErrors.json +1 -0
  56. package/out/InitModule.sol/InitModule.json +1 -1
  57. package/out/KeysInTable.sol/KeysInTable.json +1 -1
  58. package/out/KeysInTableHook.sol/KeysInTableHook.json +1 -1
  59. package/out/KeysInTableModule.sol/KeysInTableModule.json +1 -1
  60. package/out/KeysInTableModule.t.sol/KeysInTableModuleTest.json +1 -1
  61. package/out/KeysWithValue.sol/KeysWithValue.json +1 -1
  62. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1 -1
  63. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +1 -1
  64. package/out/KeysWithValueModule.t.sol/KeysWithValueModuleTest.json +1 -1
  65. package/out/LibString.sol/LibString.json +1 -1
  66. package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.json +1 -1
  67. package/out/OperatorApproval.sol/OperatorApproval.json +1 -1
  68. package/out/Owners.sol/Owners.json +1 -1
  69. package/out/Puppet.sol/Puppet.json +1 -1
  70. package/out/PuppetDelegationControl.sol/PuppetDelegationControl.json +1 -1
  71. package/out/PuppetFactorySystem.sol/PuppetFactorySystem.json +1 -1
  72. package/out/PuppetMaster.sol/PuppetMaster.json +1 -1
  73. package/out/PuppetModule.sol/PuppetModule.json +1 -1
  74. package/out/PuppetModule.t.sol/PuppetModuleTest.json +1 -1
  75. package/out/PuppetModule.t.sol/PuppetTestSystem.json +1 -1
  76. package/out/PuppetRegistry.sol/PuppetRegistry.json +1 -1
  77. package/out/RegistrationSystem.sol/RegistrationSystem.json +1 -1
  78. package/out/RevertSubscriber.sol/RevertSubscriber.json +1 -1
  79. package/out/SignatureChecker.sol/SignatureChecker.abi.json +1 -0
  80. package/out/SignatureChecker.sol/SignatureChecker.json +1 -0
  81. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +1 -1
  82. package/out/StandardDelegationsModule.t.sol/StandardDelegationsModuleTest.json +1 -1
  83. package/out/StdError.sol/stdError.json +1 -1
  84. package/out/StoreRead.sol/StoreRead.json +1 -1
  85. package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.json +1 -1
  86. package/out/System.sol/System.json +1 -1
  87. package/out/SystemSwitch.sol/SystemSwitch.json +1 -1
  88. package/out/SystemSwitch.t.sol/EchoSystem.json +1 -1
  89. package/out/SystemSwitch.t.sol/SystemSwitchTest.json +1 -1
  90. package/out/SystemboundDelegationControl.sol/SystemboundDelegationControl.json +1 -1
  91. package/out/SystemboundDelegations.sol/SystemboundDelegations.json +1 -1
  92. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +1 -1
  93. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +1 -1
  94. package/out/TokenApproval.sol/TokenApproval.json +1 -1
  95. package/out/TokenURI.sol/TokenURI.json +1 -1
  96. package/out/TotalSupply.sol/TotalSupply.json +1 -1
  97. package/out/UniqueEntity.sol/UniqueEntity.json +1 -1
  98. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +1 -1
  99. package/out/UniqueEntityModule.t.sol/UniqueEntityModuleTest.json +1 -1
  100. package/out/UniqueEntityModule.t.sol/UniqueEntityTestSystem.json +1 -1
  101. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +1 -1
  102. package/out/Unstable_CallWithSignatureModule.sol/Unstable_CallWithSignatureModule.abi.json +436 -0
  103. package/out/Unstable_CallWithSignatureModule.sol/Unstable_CallWithSignatureModule.abi.json.d.ts +438 -0
  104. package/out/Unstable_CallWithSignatureModule.sol/Unstable_CallWithSignatureModule.json +1 -0
  105. package/out/Unstable_CallWithSignatureSystem.sol/Unstable_CallWithSignatureSystem.abi.json +183 -0
  106. package/out/Unstable_CallWithSignatureSystem.sol/Unstable_CallWithSignatureSystem.abi.json.d.ts +185 -0
  107. package/out/Unstable_CallWithSignatureSystem.sol/Unstable_CallWithSignatureSystem.json +1 -0
  108. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +1 -1
  109. package/out/World.sol/World.json +1 -1
  110. package/out/World.t.sol/EchoSystemHook.json +1 -1
  111. package/out/World.t.sol/PayableFallbackSystem.json +1 -1
  112. package/out/World.t.sol/RevertSystemHook.json +1 -1
  113. package/out/World.t.sol/WorldTest.json +1 -1
  114. package/out/World.t.sol/WorldTestSystem.json +1 -1
  115. package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.json +1 -1
  116. package/out/build-info/{5adb61cced337bb5e7b3d4344c85094e.json → 168545c7409f2927f6e50ed7ce0d033c.json} +1 -1
  117. package/out/query.t.sol/QueryTest.json +1 -1
  118. package/out/test.sol/DSTest.json +1 -1
  119. package/package.json +9 -9
  120. package/src/codegen/index.sol +1 -0
  121. package/src/modules/callwithsignature/ECDSA.sol +174 -0
  122. package/src/modules/callwithsignature/IERC1271.sol +17 -0
  123. package/src/modules/callwithsignature/IUnstable_CallWithSignatureErrors.sol +9 -0
  124. package/src/modules/callwithsignature/SignatureChecker.sol +50 -0
  125. package/src/modules/callwithsignature/Unstable_CallWithSignatureModule.sol +48 -0
  126. package/src/modules/callwithsignature/Unstable_CallWithSignatureSystem.sol +36 -0
  127. package/src/modules/callwithsignature/constants.sol +10 -0
  128. package/src/modules/callwithsignature/getSignedMessageHash.sol +54 -0
  129. package/src/modules/callwithsignature/tables/CallWithSignatureNonces.sol +199 -0
  130. package/src/modules/callwithsignature/validateCallWithSignature.sol +31 -0
@@ -0,0 +1,438 @@
1
+ declare const abi: [
2
+ {
3
+ "type": "function",
4
+ "name": "_msgSender",
5
+ "inputs": [],
6
+ "outputs": [
7
+ {
8
+ "name": "sender",
9
+ "type": "address",
10
+ "internalType": "address"
11
+ }
12
+ ],
13
+ "stateMutability": "view"
14
+ },
15
+ {
16
+ "type": "function",
17
+ "name": "_msgValue",
18
+ "inputs": [],
19
+ "outputs": [
20
+ {
21
+ "name": "value",
22
+ "type": "uint256",
23
+ "internalType": "uint256"
24
+ }
25
+ ],
26
+ "stateMutability": "pure"
27
+ },
28
+ {
29
+ "type": "function",
30
+ "name": "_world",
31
+ "inputs": [],
32
+ "outputs": [
33
+ {
34
+ "name": "",
35
+ "type": "address",
36
+ "internalType": "address"
37
+ }
38
+ ],
39
+ "stateMutability": "view"
40
+ },
41
+ {
42
+ "type": "function",
43
+ "name": "install",
44
+ "inputs": [
45
+ {
46
+ "name": "",
47
+ "type": "bytes",
48
+ "internalType": "bytes"
49
+ }
50
+ ],
51
+ "outputs": [],
52
+ "stateMutability": "pure"
53
+ },
54
+ {
55
+ "type": "function",
56
+ "name": "installRoot",
57
+ "inputs": [
58
+ {
59
+ "name": "encodedArgs",
60
+ "type": "bytes",
61
+ "internalType": "bytes"
62
+ }
63
+ ],
64
+ "outputs": [],
65
+ "stateMutability": "nonpayable"
66
+ },
67
+ {
68
+ "type": "function",
69
+ "name": "supportsInterface",
70
+ "inputs": [
71
+ {
72
+ "name": "interfaceId",
73
+ "type": "bytes4",
74
+ "internalType": "bytes4"
75
+ }
76
+ ],
77
+ "outputs": [
78
+ {
79
+ "name": "",
80
+ "type": "bool",
81
+ "internalType": "bool"
82
+ }
83
+ ],
84
+ "stateMutability": "pure"
85
+ },
86
+ {
87
+ "type": "event",
88
+ "name": "Store_SetRecord",
89
+ "inputs": [
90
+ {
91
+ "name": "tableId",
92
+ "type": "bytes32",
93
+ "indexed": true,
94
+ "internalType": "ResourceId"
95
+ },
96
+ {
97
+ "name": "keyTuple",
98
+ "type": "bytes32[]",
99
+ "indexed": false,
100
+ "internalType": "bytes32[]"
101
+ },
102
+ {
103
+ "name": "staticData",
104
+ "type": "bytes",
105
+ "indexed": false,
106
+ "internalType": "bytes"
107
+ },
108
+ {
109
+ "name": "encodedLengths",
110
+ "type": "bytes32",
111
+ "indexed": false,
112
+ "internalType": "EncodedLengths"
113
+ },
114
+ {
115
+ "name": "dynamicData",
116
+ "type": "bytes",
117
+ "indexed": false,
118
+ "internalType": "bytes"
119
+ }
120
+ ],
121
+ "anonymous": false
122
+ },
123
+ {
124
+ "type": "event",
125
+ "name": "Store_SpliceStaticData",
126
+ "inputs": [
127
+ {
128
+ "name": "tableId",
129
+ "type": "bytes32",
130
+ "indexed": true,
131
+ "internalType": "ResourceId"
132
+ },
133
+ {
134
+ "name": "keyTuple",
135
+ "type": "bytes32[]",
136
+ "indexed": false,
137
+ "internalType": "bytes32[]"
138
+ },
139
+ {
140
+ "name": "start",
141
+ "type": "uint48",
142
+ "indexed": false,
143
+ "internalType": "uint48"
144
+ },
145
+ {
146
+ "name": "data",
147
+ "type": "bytes",
148
+ "indexed": false,
149
+ "internalType": "bytes"
150
+ }
151
+ ],
152
+ "anonymous": false
153
+ },
154
+ {
155
+ "type": "error",
156
+ "name": "FieldLayout_Empty",
157
+ "inputs": []
158
+ },
159
+ {
160
+ "type": "error",
161
+ "name": "FieldLayout_InvalidStaticDataLength",
162
+ "inputs": [
163
+ {
164
+ "name": "staticDataLength",
165
+ "type": "uint256",
166
+ "internalType": "uint256"
167
+ },
168
+ {
169
+ "name": "computedStaticDataLength",
170
+ "type": "uint256",
171
+ "internalType": "uint256"
172
+ }
173
+ ]
174
+ },
175
+ {
176
+ "type": "error",
177
+ "name": "FieldLayout_StaticLengthDoesNotFitInAWord",
178
+ "inputs": [
179
+ {
180
+ "name": "index",
181
+ "type": "uint256",
182
+ "internalType": "uint256"
183
+ }
184
+ ]
185
+ },
186
+ {
187
+ "type": "error",
188
+ "name": "FieldLayout_StaticLengthIsNotZero",
189
+ "inputs": [
190
+ {
191
+ "name": "index",
192
+ "type": "uint256",
193
+ "internalType": "uint256"
194
+ }
195
+ ]
196
+ },
197
+ {
198
+ "type": "error",
199
+ "name": "FieldLayout_StaticLengthIsZero",
200
+ "inputs": [
201
+ {
202
+ "name": "index",
203
+ "type": "uint256",
204
+ "internalType": "uint256"
205
+ }
206
+ ]
207
+ },
208
+ {
209
+ "type": "error",
210
+ "name": "FieldLayout_TooManyDynamicFields",
211
+ "inputs": [
212
+ {
213
+ "name": "numFields",
214
+ "type": "uint256",
215
+ "internalType": "uint256"
216
+ },
217
+ {
218
+ "name": "maxFields",
219
+ "type": "uint256",
220
+ "internalType": "uint256"
221
+ }
222
+ ]
223
+ },
224
+ {
225
+ "type": "error",
226
+ "name": "FieldLayout_TooManyFields",
227
+ "inputs": [
228
+ {
229
+ "name": "numFields",
230
+ "type": "uint256",
231
+ "internalType": "uint256"
232
+ },
233
+ {
234
+ "name": "maxFields",
235
+ "type": "uint256",
236
+ "internalType": "uint256"
237
+ }
238
+ ]
239
+ },
240
+ {
241
+ "type": "error",
242
+ "name": "Module_AlreadyInstalled",
243
+ "inputs": []
244
+ },
245
+ {
246
+ "type": "error",
247
+ "name": "Module_MissingDependency",
248
+ "inputs": [
249
+ {
250
+ "name": "dependency",
251
+ "type": "address",
252
+ "internalType": "address"
253
+ }
254
+ ]
255
+ },
256
+ {
257
+ "type": "error",
258
+ "name": "Module_NonRootInstallNotSupported",
259
+ "inputs": []
260
+ },
261
+ {
262
+ "type": "error",
263
+ "name": "Module_RootInstallNotSupported",
264
+ "inputs": []
265
+ },
266
+ {
267
+ "type": "error",
268
+ "name": "Schema_InvalidLength",
269
+ "inputs": [
270
+ {
271
+ "name": "length",
272
+ "type": "uint256",
273
+ "internalType": "uint256"
274
+ }
275
+ ]
276
+ },
277
+ {
278
+ "type": "error",
279
+ "name": "Schema_StaticTypeAfterDynamicType",
280
+ "inputs": []
281
+ },
282
+ {
283
+ "type": "error",
284
+ "name": "Slice_OutOfBounds",
285
+ "inputs": [
286
+ {
287
+ "name": "data",
288
+ "type": "bytes",
289
+ "internalType": "bytes"
290
+ },
291
+ {
292
+ "name": "start",
293
+ "type": "uint256",
294
+ "internalType": "uint256"
295
+ },
296
+ {
297
+ "name": "end",
298
+ "type": "uint256",
299
+ "internalType": "uint256"
300
+ }
301
+ ]
302
+ },
303
+ {
304
+ "type": "error",
305
+ "name": "Store_InvalidFieldNamesLength",
306
+ "inputs": [
307
+ {
308
+ "name": "expected",
309
+ "type": "uint256",
310
+ "internalType": "uint256"
311
+ },
312
+ {
313
+ "name": "received",
314
+ "type": "uint256",
315
+ "internalType": "uint256"
316
+ }
317
+ ]
318
+ },
319
+ {
320
+ "type": "error",
321
+ "name": "Store_InvalidKeyNamesLength",
322
+ "inputs": [
323
+ {
324
+ "name": "expected",
325
+ "type": "uint256",
326
+ "internalType": "uint256"
327
+ },
328
+ {
329
+ "name": "received",
330
+ "type": "uint256",
331
+ "internalType": "uint256"
332
+ }
333
+ ]
334
+ },
335
+ {
336
+ "type": "error",
337
+ "name": "Store_InvalidResourceType",
338
+ "inputs": [
339
+ {
340
+ "name": "expected",
341
+ "type": "bytes2",
342
+ "internalType": "bytes2"
343
+ },
344
+ {
345
+ "name": "resourceId",
346
+ "type": "bytes32",
347
+ "internalType": "ResourceId"
348
+ },
349
+ {
350
+ "name": "resourceIdString",
351
+ "type": "string",
352
+ "internalType": "string"
353
+ }
354
+ ]
355
+ },
356
+ {
357
+ "type": "error",
358
+ "name": "Store_InvalidStaticDataLength",
359
+ "inputs": [
360
+ {
361
+ "name": "expected",
362
+ "type": "uint256",
363
+ "internalType": "uint256"
364
+ },
365
+ {
366
+ "name": "received",
367
+ "type": "uint256",
368
+ "internalType": "uint256"
369
+ }
370
+ ]
371
+ },
372
+ {
373
+ "type": "error",
374
+ "name": "Store_InvalidValueSchemaDynamicLength",
375
+ "inputs": [
376
+ {
377
+ "name": "expected",
378
+ "type": "uint256",
379
+ "internalType": "uint256"
380
+ },
381
+ {
382
+ "name": "received",
383
+ "type": "uint256",
384
+ "internalType": "uint256"
385
+ }
386
+ ]
387
+ },
388
+ {
389
+ "type": "error",
390
+ "name": "Store_InvalidValueSchemaLength",
391
+ "inputs": [
392
+ {
393
+ "name": "expected",
394
+ "type": "uint256",
395
+ "internalType": "uint256"
396
+ },
397
+ {
398
+ "name": "received",
399
+ "type": "uint256",
400
+ "internalType": "uint256"
401
+ }
402
+ ]
403
+ },
404
+ {
405
+ "type": "error",
406
+ "name": "Store_InvalidValueSchemaStaticLength",
407
+ "inputs": [
408
+ {
409
+ "name": "expected",
410
+ "type": "uint256",
411
+ "internalType": "uint256"
412
+ },
413
+ {
414
+ "name": "received",
415
+ "type": "uint256",
416
+ "internalType": "uint256"
417
+ }
418
+ ]
419
+ },
420
+ {
421
+ "type": "error",
422
+ "name": "Store_TableAlreadyExists",
423
+ "inputs": [
424
+ {
425
+ "name": "tableId",
426
+ "type": "bytes32",
427
+ "internalType": "ResourceId"
428
+ },
429
+ {
430
+ "name": "tableIdString",
431
+ "type": "string",
432
+ "internalType": "string"
433
+ }
434
+ ]
435
+ }
436
+ ];
437
+
438
+ export default abi;