@latticexyz/world-module-erc20 2.2.21-041031d271b62a7f41f7c6dc0098c1c0ae222bd5 → 2.2.21-581228bd857077023efdb496a9a44fa62ff89936
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/AccessManagementSystem.sol/AccessManagementSystem.json +1 -1
- package/out/BalanceTransferSystem.sol/BalanceTransferSystem.json +1 -1
- package/out/BatchCallSystem.sol/BatchCallSystem.json +1 -1
- package/out/Constants.sol/ERC20TableNames.json +1 -1
- package/out/Constants.sol/ModuleConstants.json +1 -1
- package/out/Constants.sol/OwnableTableNames.abi.json +1 -0
- package/out/Constants.sol/OwnableTableNames.json +1 -0
- package/out/Constants.sol/PausableTableNames.json +1 -1
- package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.abi.json +0 -324
- package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.abi.json.d.ts +0 -324
- package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.json +1 -1
- package/out/ERC20BaseTest.t.sol/ERC20Test.abi.json +0 -324
- package/out/ERC20BaseTest.t.sol/ERC20Test.abi.json.d.ts +0 -324
- package/out/ERC20BaseTest.t.sol/ERC20Test.json +1 -1
- package/out/ERC20BaseTest.t.sol/MockERC20Base.abi.json +280 -21
- package/out/ERC20BaseTest.t.sol/MockERC20Base.abi.json.d.ts +280 -21
- package/out/ERC20BaseTest.t.sol/MockERC20Base.json +1 -1
- package/out/ERC20BaseTest.t.sol/TestConstants.abi.json +1 -0
- package/out/ERC20BaseTest.t.sol/TestConstants.json +1 -0
- package/out/ERC20Burnable.sol/ERC20Burnable.abi.json +317 -8
- package/out/ERC20Burnable.sol/ERC20Burnable.abi.json.d.ts +317 -8
- package/out/ERC20Burnable.sol/ERC20Burnable.json +1 -1
- package/out/ERC20Burnable.t.sol/ERC20BurnableTest.abi.json +0 -324
- package/out/ERC20Burnable.t.sol/ERC20BurnableTest.abi.json.d.ts +0 -324
- package/out/ERC20Burnable.t.sol/ERC20BurnableTest.json +1 -1
- package/out/ERC20Burnable.t.sol/MockERC20Burnable.abi.json +279 -25
- package/out/ERC20Burnable.t.sol/MockERC20Burnable.abi.json.d.ts +279 -25
- package/out/ERC20Burnable.t.sol/MockERC20Burnable.json +1 -1
- package/out/ERC20Module.sol/ERC20Module.json +1 -1
- package/out/ERC20Module.sol/ERC20RegistryLib.json +1 -0
- package/out/ERC20Module.t.sol/ERC20ModuleTest.json +1 -1
- package/out/ERC20Module.t.sol/TestConstants.json +1 -1
- package/out/ERC20Pausable.sol/ERC20Pausable.abi.json +317 -8
- package/out/ERC20Pausable.sol/ERC20Pausable.abi.json.d.ts +317 -8
- package/out/ERC20Pausable.sol/ERC20Pausable.json +1 -1
- package/out/ERC20Pausable.t.sol/{ERC20PausableTest.abi.json → ERC20PausableBehaviorTest.abi.json} +0 -324
- package/out/ERC20Pausable.t.sol/{ERC20PausableTest.abi.json.d.ts → ERC20PausableBehaviorTest.abi.json.d.ts} +0 -324
- package/out/ERC20Pausable.t.sol/ERC20PausableBehaviorTest.json +1 -0
- package/out/ERC20Pausable.t.sol/MockERC20Pausable.abi.json +279 -25
- package/out/ERC20Pausable.t.sol/MockERC20Pausable.abi.json.d.ts +279 -25
- package/out/ERC20Pausable.t.sol/MockERC20Pausable.json +1 -1
- package/out/ERC20PausableBurnable.sol/ERC20PausableBurnable.abi.json +284 -50
- package/out/ERC20PausableBurnable.sol/ERC20PausableBurnable.abi.json.d.ts +284 -50
- package/out/ERC20PausableBurnable.sol/ERC20PausableBurnable.json +1 -1
- package/out/InitModule.sol/InitModule.json +1 -1
- package/out/MUDERC20.sol/MUDERC20.abi.json +317 -8
- package/out/MUDERC20.sol/MUDERC20.abi.json.d.ts +317 -8
- package/out/MUDERC20.sol/MUDERC20.json +1 -1
- package/out/Pausable.sol/Pausable.abi.json +369 -8
- package/out/Pausable.sol/Pausable.abi.json.d.ts +369 -8
- package/out/Pausable.sol/Pausable.json +1 -1
- package/out/RegistrationSystem.sol/RegistrationSystem.json +1 -1
- package/out/World.sol/World.json +1 -1
- package/out/WorldConsumer.sol/WorldConsumer.abi.json +45 -8
- package/out/WorldConsumer.sol/WorldConsumer.abi.json.d.ts +45 -8
- package/out/WorldConsumer.sol/WorldConsumer.json +1 -1
- package/out/build-info/{5dec426f2d87057b9b49f18296a28057.json → 575e1001b22e51590748b4ce55e7c596.json} +1 -1
- package/package.json +8 -8
- package/src/examples/ERC20PausableBurnable.sol +8 -21
- package/src/experimental/Constants.sol +4 -0
- package/src/experimental/ERC20Module.sol +9 -46
- package/src/experimental/ERC20Pausable.sol +0 -3
- package/src/experimental/MUDERC20.sol +29 -24
- package/src/experimental/Pausable.sol +15 -15
- package/out/ERC20Module.sol/ERC20ModuleLib.json +0 -1
- package/out/ERC20Pausable.t.sol/ERC20PausableTest.json +0 -1
- /package/out/ERC20Module.sol/{ERC20ModuleLib.abi.json → ERC20RegistryLib.abi.json} +0 -0
- /package/out/ERC20Module.sol/{ERC20ModuleLib.abi.json.d.ts → ERC20RegistryLib.abi.json.d.ts} +0 -0
|
@@ -38,6 +38,32 @@ declare const abi: [
|
|
|
38
38
|
],
|
|
39
39
|
"stateMutability": "view"
|
|
40
40
|
},
|
|
41
|
+
{
|
|
42
|
+
"type": "function",
|
|
43
|
+
"name": "namespace",
|
|
44
|
+
"inputs": [],
|
|
45
|
+
"outputs": [
|
|
46
|
+
{
|
|
47
|
+
"name": "",
|
|
48
|
+
"type": "bytes14",
|
|
49
|
+
"internalType": "bytes14"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"stateMutability": "view"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"type": "function",
|
|
56
|
+
"name": "namespaceId",
|
|
57
|
+
"inputs": [],
|
|
58
|
+
"outputs": [
|
|
59
|
+
{
|
|
60
|
+
"name": "",
|
|
61
|
+
"type": "bytes32",
|
|
62
|
+
"internalType": "ResourceId"
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"stateMutability": "view"
|
|
66
|
+
},
|
|
41
67
|
{
|
|
42
68
|
"type": "function",
|
|
43
69
|
"name": "paused",
|
|
@@ -83,6 +109,74 @@ declare const abi: [
|
|
|
83
109
|
],
|
|
84
110
|
"anonymous": false
|
|
85
111
|
},
|
|
112
|
+
{
|
|
113
|
+
"type": "event",
|
|
114
|
+
"name": "Store_SetRecord",
|
|
115
|
+
"inputs": [
|
|
116
|
+
{
|
|
117
|
+
"name": "tableId",
|
|
118
|
+
"type": "bytes32",
|
|
119
|
+
"indexed": true,
|
|
120
|
+
"internalType": "ResourceId"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "keyTuple",
|
|
124
|
+
"type": "bytes32[]",
|
|
125
|
+
"indexed": false,
|
|
126
|
+
"internalType": "bytes32[]"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "staticData",
|
|
130
|
+
"type": "bytes",
|
|
131
|
+
"indexed": false,
|
|
132
|
+
"internalType": "bytes"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "encodedLengths",
|
|
136
|
+
"type": "bytes32",
|
|
137
|
+
"indexed": false,
|
|
138
|
+
"internalType": "EncodedLengths"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "dynamicData",
|
|
142
|
+
"type": "bytes",
|
|
143
|
+
"indexed": false,
|
|
144
|
+
"internalType": "bytes"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"anonymous": false
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"type": "event",
|
|
151
|
+
"name": "Store_SpliceStaticData",
|
|
152
|
+
"inputs": [
|
|
153
|
+
{
|
|
154
|
+
"name": "tableId",
|
|
155
|
+
"type": "bytes32",
|
|
156
|
+
"indexed": true,
|
|
157
|
+
"internalType": "ResourceId"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"name": "keyTuple",
|
|
161
|
+
"type": "bytes32[]",
|
|
162
|
+
"indexed": false,
|
|
163
|
+
"internalType": "bytes32[]"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"name": "start",
|
|
167
|
+
"type": "uint48",
|
|
168
|
+
"indexed": false,
|
|
169
|
+
"internalType": "uint48"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "data",
|
|
173
|
+
"type": "bytes",
|
|
174
|
+
"indexed": false,
|
|
175
|
+
"internalType": "bytes"
|
|
176
|
+
}
|
|
177
|
+
],
|
|
178
|
+
"anonymous": false
|
|
179
|
+
},
|
|
86
180
|
{
|
|
87
181
|
"type": "event",
|
|
88
182
|
"name": "Unpaused",
|
|
@@ -106,6 +200,262 @@ declare const abi: [
|
|
|
106
200
|
"name": "ExpectedPause",
|
|
107
201
|
"inputs": []
|
|
108
202
|
},
|
|
203
|
+
{
|
|
204
|
+
"type": "error",
|
|
205
|
+
"name": "FieldLayout_Empty",
|
|
206
|
+
"inputs": []
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"type": "error",
|
|
210
|
+
"name": "FieldLayout_InvalidStaticDataLength",
|
|
211
|
+
"inputs": [
|
|
212
|
+
{
|
|
213
|
+
"name": "staticDataLength",
|
|
214
|
+
"type": "uint256",
|
|
215
|
+
"internalType": "uint256"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "computedStaticDataLength",
|
|
219
|
+
"type": "uint256",
|
|
220
|
+
"internalType": "uint256"
|
|
221
|
+
}
|
|
222
|
+
]
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"type": "error",
|
|
226
|
+
"name": "FieldLayout_StaticLengthDoesNotFitInAWord",
|
|
227
|
+
"inputs": [
|
|
228
|
+
{
|
|
229
|
+
"name": "index",
|
|
230
|
+
"type": "uint256",
|
|
231
|
+
"internalType": "uint256"
|
|
232
|
+
}
|
|
233
|
+
]
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"type": "error",
|
|
237
|
+
"name": "FieldLayout_StaticLengthIsNotZero",
|
|
238
|
+
"inputs": [
|
|
239
|
+
{
|
|
240
|
+
"name": "index",
|
|
241
|
+
"type": "uint256",
|
|
242
|
+
"internalType": "uint256"
|
|
243
|
+
}
|
|
244
|
+
]
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"type": "error",
|
|
248
|
+
"name": "FieldLayout_StaticLengthIsZero",
|
|
249
|
+
"inputs": [
|
|
250
|
+
{
|
|
251
|
+
"name": "index",
|
|
252
|
+
"type": "uint256",
|
|
253
|
+
"internalType": "uint256"
|
|
254
|
+
}
|
|
255
|
+
]
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"type": "error",
|
|
259
|
+
"name": "FieldLayout_TooManyDynamicFields",
|
|
260
|
+
"inputs": [
|
|
261
|
+
{
|
|
262
|
+
"name": "numFields",
|
|
263
|
+
"type": "uint256",
|
|
264
|
+
"internalType": "uint256"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"name": "maxFields",
|
|
268
|
+
"type": "uint256",
|
|
269
|
+
"internalType": "uint256"
|
|
270
|
+
}
|
|
271
|
+
]
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"type": "error",
|
|
275
|
+
"name": "FieldLayout_TooManyFields",
|
|
276
|
+
"inputs": [
|
|
277
|
+
{
|
|
278
|
+
"name": "numFields",
|
|
279
|
+
"type": "uint256",
|
|
280
|
+
"internalType": "uint256"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"name": "maxFields",
|
|
284
|
+
"type": "uint256",
|
|
285
|
+
"internalType": "uint256"
|
|
286
|
+
}
|
|
287
|
+
]
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"type": "error",
|
|
291
|
+
"name": "Schema_InvalidLength",
|
|
292
|
+
"inputs": [
|
|
293
|
+
{
|
|
294
|
+
"name": "length",
|
|
295
|
+
"type": "uint256",
|
|
296
|
+
"internalType": "uint256"
|
|
297
|
+
}
|
|
298
|
+
]
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"type": "error",
|
|
302
|
+
"name": "Schema_StaticTypeAfterDynamicType",
|
|
303
|
+
"inputs": []
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"type": "error",
|
|
307
|
+
"name": "Slice_OutOfBounds",
|
|
308
|
+
"inputs": [
|
|
309
|
+
{
|
|
310
|
+
"name": "data",
|
|
311
|
+
"type": "bytes",
|
|
312
|
+
"internalType": "bytes"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"name": "start",
|
|
316
|
+
"type": "uint256",
|
|
317
|
+
"internalType": "uint256"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"name": "end",
|
|
321
|
+
"type": "uint256",
|
|
322
|
+
"internalType": "uint256"
|
|
323
|
+
}
|
|
324
|
+
]
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"type": "error",
|
|
328
|
+
"name": "Store_InvalidFieldNamesLength",
|
|
329
|
+
"inputs": [
|
|
330
|
+
{
|
|
331
|
+
"name": "expected",
|
|
332
|
+
"type": "uint256",
|
|
333
|
+
"internalType": "uint256"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"name": "received",
|
|
337
|
+
"type": "uint256",
|
|
338
|
+
"internalType": "uint256"
|
|
339
|
+
}
|
|
340
|
+
]
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"type": "error",
|
|
344
|
+
"name": "Store_InvalidKeyNamesLength",
|
|
345
|
+
"inputs": [
|
|
346
|
+
{
|
|
347
|
+
"name": "expected",
|
|
348
|
+
"type": "uint256",
|
|
349
|
+
"internalType": "uint256"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"name": "received",
|
|
353
|
+
"type": "uint256",
|
|
354
|
+
"internalType": "uint256"
|
|
355
|
+
}
|
|
356
|
+
]
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"type": "error",
|
|
360
|
+
"name": "Store_InvalidResourceType",
|
|
361
|
+
"inputs": [
|
|
362
|
+
{
|
|
363
|
+
"name": "expected",
|
|
364
|
+
"type": "bytes2",
|
|
365
|
+
"internalType": "bytes2"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"name": "resourceId",
|
|
369
|
+
"type": "bytes32",
|
|
370
|
+
"internalType": "ResourceId"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"name": "resourceIdString",
|
|
374
|
+
"type": "string",
|
|
375
|
+
"internalType": "string"
|
|
376
|
+
}
|
|
377
|
+
]
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"type": "error",
|
|
381
|
+
"name": "Store_InvalidStaticDataLength",
|
|
382
|
+
"inputs": [
|
|
383
|
+
{
|
|
384
|
+
"name": "expected",
|
|
385
|
+
"type": "uint256",
|
|
386
|
+
"internalType": "uint256"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"name": "received",
|
|
390
|
+
"type": "uint256",
|
|
391
|
+
"internalType": "uint256"
|
|
392
|
+
}
|
|
393
|
+
]
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"type": "error",
|
|
397
|
+
"name": "Store_InvalidValueSchemaDynamicLength",
|
|
398
|
+
"inputs": [
|
|
399
|
+
{
|
|
400
|
+
"name": "expected",
|
|
401
|
+
"type": "uint256",
|
|
402
|
+
"internalType": "uint256"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"name": "received",
|
|
406
|
+
"type": "uint256",
|
|
407
|
+
"internalType": "uint256"
|
|
408
|
+
}
|
|
409
|
+
]
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"type": "error",
|
|
413
|
+
"name": "Store_InvalidValueSchemaLength",
|
|
414
|
+
"inputs": [
|
|
415
|
+
{
|
|
416
|
+
"name": "expected",
|
|
417
|
+
"type": "uint256",
|
|
418
|
+
"internalType": "uint256"
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"name": "received",
|
|
422
|
+
"type": "uint256",
|
|
423
|
+
"internalType": "uint256"
|
|
424
|
+
}
|
|
425
|
+
]
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"type": "error",
|
|
429
|
+
"name": "Store_InvalidValueSchemaStaticLength",
|
|
430
|
+
"inputs": [
|
|
431
|
+
{
|
|
432
|
+
"name": "expected",
|
|
433
|
+
"type": "uint256",
|
|
434
|
+
"internalType": "uint256"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"name": "received",
|
|
438
|
+
"type": "uint256",
|
|
439
|
+
"internalType": "uint256"
|
|
440
|
+
}
|
|
441
|
+
]
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"type": "error",
|
|
445
|
+
"name": "Store_TableAlreadyExists",
|
|
446
|
+
"inputs": [
|
|
447
|
+
{
|
|
448
|
+
"name": "tableId",
|
|
449
|
+
"type": "bytes32",
|
|
450
|
+
"internalType": "ResourceId"
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"name": "tableIdString",
|
|
454
|
+
"type": "string",
|
|
455
|
+
"internalType": "string"
|
|
456
|
+
}
|
|
457
|
+
]
|
|
458
|
+
},
|
|
109
459
|
{
|
|
110
460
|
"type": "error",
|
|
111
461
|
"name": "WorldConsumer_CallerHasNoNamespaceAccess",
|
|
@@ -129,18 +479,13 @@ declare const abi: [
|
|
|
129
479
|
},
|
|
130
480
|
{
|
|
131
481
|
"type": "error",
|
|
132
|
-
"name": "
|
|
482
|
+
"name": "WorldConsumer_CallerIsNotWorld",
|
|
133
483
|
"inputs": [
|
|
134
484
|
{
|
|
135
485
|
"name": "worldAddress",
|
|
136
486
|
"type": "address",
|
|
137
487
|
"internalType": "address"
|
|
138
488
|
},
|
|
139
|
-
{
|
|
140
|
-
"name": "namespace",
|
|
141
|
-
"type": "bytes14",
|
|
142
|
-
"internalType": "bytes14"
|
|
143
|
-
},
|
|
144
489
|
{
|
|
145
490
|
"name": "caller",
|
|
146
491
|
"type": "address",
|
|
@@ -150,7 +495,7 @@ declare const abi: [
|
|
|
150
495
|
},
|
|
151
496
|
{
|
|
152
497
|
"type": "error",
|
|
153
|
-
"name": "
|
|
498
|
+
"name": "WorldConsumer_NamespaceAlreadyExists",
|
|
154
499
|
"inputs": [
|
|
155
500
|
{
|
|
156
501
|
"name": "worldAddress",
|
|
@@ -158,9 +503,25 @@ declare const abi: [
|
|
|
158
503
|
"internalType": "address"
|
|
159
504
|
},
|
|
160
505
|
{
|
|
161
|
-
"name": "
|
|
506
|
+
"name": "namespace",
|
|
507
|
+
"type": "bytes14",
|
|
508
|
+
"internalType": "bytes14"
|
|
509
|
+
}
|
|
510
|
+
]
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"type": "error",
|
|
514
|
+
"name": "WorldConsumer_NamespaceDoesNotExists",
|
|
515
|
+
"inputs": [
|
|
516
|
+
{
|
|
517
|
+
"name": "worldAddress",
|
|
162
518
|
"type": "address",
|
|
163
519
|
"internalType": "address"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"name": "namespace",
|
|
523
|
+
"type": "bytes14",
|
|
524
|
+
"internalType": "bytes14"
|
|
164
525
|
}
|
|
165
526
|
]
|
|
166
527
|
},
|