@latticexyz/world-module-erc20 2.2.21-581228bd857077023efdb496a9a44fa62ff89936 → 2.2.21-8b83c6b7481219898ab0f8e9c1afd88591646396
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/PausableTableNames.json +1 -1
- package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.abi.json +324 -0
- package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.abi.json.d.ts +324 -0
- package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.json +1 -1
- package/out/ERC20BaseTest.t.sol/ERC20Test.abi.json +324 -0
- package/out/ERC20BaseTest.t.sol/ERC20Test.abi.json.d.ts +324 -0
- package/out/ERC20BaseTest.t.sol/ERC20Test.json +1 -1
- package/out/ERC20BaseTest.t.sol/MockERC20Base.abi.json +21 -280
- package/out/ERC20BaseTest.t.sol/MockERC20Base.abi.json.d.ts +21 -280
- package/out/ERC20BaseTest.t.sol/MockERC20Base.json +1 -1
- package/out/ERC20Burnable.sol/ERC20Burnable.abi.json +8 -317
- package/out/ERC20Burnable.sol/ERC20Burnable.abi.json.d.ts +8 -317
- package/out/ERC20Burnable.sol/ERC20Burnable.json +1 -1
- package/out/ERC20Burnable.t.sol/ERC20BurnableTest.abi.json +324 -0
- package/out/ERC20Burnable.t.sol/ERC20BurnableTest.abi.json.d.ts +324 -0
- package/out/ERC20Burnable.t.sol/ERC20BurnableTest.json +1 -1
- package/out/ERC20Burnable.t.sol/MockERC20Burnable.abi.json +25 -279
- package/out/ERC20Burnable.t.sol/MockERC20Burnable.abi.json.d.ts +25 -279
- package/out/ERC20Burnable.t.sol/MockERC20Burnable.json +1 -1
- package/out/ERC20Module.sol/ERC20Module.json +1 -1
- package/out/ERC20Module.sol/ERC20ModuleLib.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 +8 -317
- package/out/ERC20Pausable.sol/ERC20Pausable.abi.json.d.ts +8 -317
- package/out/ERC20Pausable.sol/ERC20Pausable.json +1 -1
- package/out/ERC20Pausable.t.sol/{ERC20PausableBehaviorTest.abi.json → ERC20PausableTest.abi.json} +324 -0
- package/out/ERC20Pausable.t.sol/{ERC20PausableBehaviorTest.abi.json.d.ts → ERC20PausableTest.abi.json.d.ts} +324 -0
- package/out/ERC20Pausable.t.sol/ERC20PausableTest.json +1 -0
- package/out/ERC20Pausable.t.sol/MockERC20Pausable.abi.json +25 -279
- package/out/ERC20Pausable.t.sol/MockERC20Pausable.abi.json.d.ts +25 -279
- package/out/ERC20Pausable.t.sol/MockERC20Pausable.json +1 -1
- package/out/ERC20PausableBurnable.sol/ERC20PausableBurnable.abi.json +50 -284
- package/out/ERC20PausableBurnable.sol/ERC20PausableBurnable.abi.json.d.ts +50 -284
- package/out/ERC20PausableBurnable.sol/ERC20PausableBurnable.json +1 -1
- package/out/InitModule.sol/InitModule.json +1 -1
- package/out/MUDERC20.sol/MUDERC20.abi.json +8 -317
- package/out/MUDERC20.sol/MUDERC20.abi.json.d.ts +8 -317
- package/out/MUDERC20.sol/MUDERC20.json +1 -1
- package/out/Pausable.sol/Pausable.abi.json +8 -369
- package/out/Pausable.sol/Pausable.abi.json.d.ts +8 -369
- 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 +8 -45
- package/out/WorldConsumer.sol/WorldConsumer.abi.json.d.ts +8 -45
- package/out/WorldConsumer.sol/WorldConsumer.json +1 -1
- package/out/build-info/{575e1001b22e51590748b4ce55e7c596.json → 5dec426f2d87057b9b49f18296a28057.json} +1 -1
- package/package.json +8 -8
- package/src/examples/ERC20PausableBurnable.sol +21 -8
- package/src/experimental/Constants.sol +0 -4
- package/src/experimental/ERC20Module.sol +46 -9
- package/src/experimental/ERC20Pausable.sol +3 -0
- package/src/experimental/MUDERC20.sol +24 -29
- package/src/experimental/Pausable.sol +15 -15
- package/out/Constants.sol/OwnableTableNames.abi.json +0 -1
- package/out/Constants.sol/OwnableTableNames.json +0 -1
- package/out/ERC20BaseTest.t.sol/TestConstants.abi.json +0 -1
- package/out/ERC20BaseTest.t.sol/TestConstants.json +0 -1
- package/out/ERC20Module.sol/ERC20RegistryLib.json +0 -1
- package/out/ERC20Pausable.t.sol/ERC20PausableBehaviorTest.json +0 -1
- /package/out/ERC20Module.sol/{ERC20RegistryLib.abi.json → ERC20ModuleLib.abi.json} +0 -0
- /package/out/ERC20Module.sol/{ERC20RegistryLib.abi.json.d.ts → ERC20ModuleLib.abi.json.d.ts} +0 -0
|
@@ -38,32 +38,6 @@ 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
|
-
},
|
|
67
41
|
{
|
|
68
42
|
"type": "function",
|
|
69
43
|
"name": "paused",
|
|
@@ -109,74 +83,6 @@ declare const abi: [
|
|
|
109
83
|
],
|
|
110
84
|
"anonymous": false
|
|
111
85
|
},
|
|
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
|
-
},
|
|
180
86
|
{
|
|
181
87
|
"type": "event",
|
|
182
88
|
"name": "Unpaused",
|
|
@@ -200,262 +106,6 @@ declare const abi: [
|
|
|
200
106
|
"name": "ExpectedPause",
|
|
201
107
|
"inputs": []
|
|
202
108
|
},
|
|
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
|
-
},
|
|
459
109
|
{
|
|
460
110
|
"type": "error",
|
|
461
111
|
"name": "WorldConsumer_CallerHasNoNamespaceAccess",
|
|
@@ -479,13 +129,18 @@ declare const abi: [
|
|
|
479
129
|
},
|
|
480
130
|
{
|
|
481
131
|
"type": "error",
|
|
482
|
-
"name": "
|
|
132
|
+
"name": "WorldConsumer_CallerIsNotNamespaceOwner",
|
|
483
133
|
"inputs": [
|
|
484
134
|
{
|
|
485
135
|
"name": "worldAddress",
|
|
486
136
|
"type": "address",
|
|
487
137
|
"internalType": "address"
|
|
488
138
|
},
|
|
139
|
+
{
|
|
140
|
+
"name": "namespace",
|
|
141
|
+
"type": "bytes14",
|
|
142
|
+
"internalType": "bytes14"
|
|
143
|
+
},
|
|
489
144
|
{
|
|
490
145
|
"name": "caller",
|
|
491
146
|
"type": "address",
|
|
@@ -495,7 +150,7 @@ declare const abi: [
|
|
|
495
150
|
},
|
|
496
151
|
{
|
|
497
152
|
"type": "error",
|
|
498
|
-
"name": "
|
|
153
|
+
"name": "WorldConsumer_CallerIsNotWorld",
|
|
499
154
|
"inputs": [
|
|
500
155
|
{
|
|
501
156
|
"name": "worldAddress",
|
|
@@ -503,25 +158,9 @@ declare const abi: [
|
|
|
503
158
|
"internalType": "address"
|
|
504
159
|
},
|
|
505
160
|
{
|
|
506
|
-
"name": "
|
|
507
|
-
"type": "bytes14",
|
|
508
|
-
"internalType": "bytes14"
|
|
509
|
-
}
|
|
510
|
-
]
|
|
511
|
-
},
|
|
512
|
-
{
|
|
513
|
-
"type": "error",
|
|
514
|
-
"name": "WorldConsumer_NamespaceDoesNotExists",
|
|
515
|
-
"inputs": [
|
|
516
|
-
{
|
|
517
|
-
"name": "worldAddress",
|
|
161
|
+
"name": "caller",
|
|
518
162
|
"type": "address",
|
|
519
163
|
"internalType": "address"
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
"name": "namespace",
|
|
523
|
-
"type": "bytes14",
|
|
524
|
-
"internalType": "bytes14"
|
|
525
164
|
}
|
|
526
165
|
]
|
|
527
166
|
},
|