@latticexyz/world-module-erc20 2.2.20 → 2.2.21-041031d271b62a7f41f7c6dc0098c1c0ae222bd5

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 (68) hide show
  1. package/out/AccessManagementSystem.sol/AccessManagementSystem.json +1 -1
  2. package/out/BalanceTransferSystem.sol/BalanceTransferSystem.json +1 -1
  3. package/out/BatchCallSystem.sol/BatchCallSystem.json +1 -1
  4. package/out/Constants.sol/ERC20TableNames.json +1 -1
  5. package/out/Constants.sol/ModuleConstants.json +1 -1
  6. package/out/Constants.sol/PausableTableNames.json +1 -1
  7. package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.abi.json +324 -0
  8. package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.abi.json.d.ts +324 -0
  9. package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.json +1 -1
  10. package/out/ERC20BaseTest.t.sol/ERC20Test.abi.json +324 -0
  11. package/out/ERC20BaseTest.t.sol/ERC20Test.abi.json.d.ts +324 -0
  12. package/out/ERC20BaseTest.t.sol/ERC20Test.json +1 -1
  13. package/out/ERC20BaseTest.t.sol/MockERC20Base.abi.json +21 -280
  14. package/out/ERC20BaseTest.t.sol/MockERC20Base.abi.json.d.ts +21 -280
  15. package/out/ERC20BaseTest.t.sol/MockERC20Base.json +1 -1
  16. package/out/ERC20Burnable.sol/ERC20Burnable.abi.json +8 -317
  17. package/out/ERC20Burnable.sol/ERC20Burnable.abi.json.d.ts +8 -317
  18. package/out/ERC20Burnable.sol/ERC20Burnable.json +1 -1
  19. package/out/ERC20Burnable.t.sol/ERC20BurnableTest.abi.json +324 -0
  20. package/out/ERC20Burnable.t.sol/ERC20BurnableTest.abi.json.d.ts +324 -0
  21. package/out/ERC20Burnable.t.sol/ERC20BurnableTest.json +1 -1
  22. package/out/ERC20Burnable.t.sol/MockERC20Burnable.abi.json +25 -279
  23. package/out/ERC20Burnable.t.sol/MockERC20Burnable.abi.json.d.ts +25 -279
  24. package/out/ERC20Burnable.t.sol/MockERC20Burnable.json +1 -1
  25. package/out/ERC20Module.sol/ERC20Module.json +1 -1
  26. package/out/ERC20Module.sol/ERC20ModuleLib.json +1 -0
  27. package/out/ERC20Module.t.sol/ERC20ModuleTest.json +1 -1
  28. package/out/ERC20Module.t.sol/TestConstants.json +1 -1
  29. package/out/ERC20Pausable.sol/ERC20Pausable.abi.json +8 -317
  30. package/out/ERC20Pausable.sol/ERC20Pausable.abi.json.d.ts +8 -317
  31. package/out/ERC20Pausable.sol/ERC20Pausable.json +1 -1
  32. package/out/ERC20Pausable.t.sol/{ERC20PausableBehaviorTest.abi.json → ERC20PausableTest.abi.json} +324 -0
  33. package/out/ERC20Pausable.t.sol/{ERC20PausableBehaviorTest.abi.json.d.ts → ERC20PausableTest.abi.json.d.ts} +324 -0
  34. package/out/ERC20Pausable.t.sol/ERC20PausableTest.json +1 -0
  35. package/out/ERC20Pausable.t.sol/MockERC20Pausable.abi.json +25 -279
  36. package/out/ERC20Pausable.t.sol/MockERC20Pausable.abi.json.d.ts +25 -279
  37. package/out/ERC20Pausable.t.sol/MockERC20Pausable.json +1 -1
  38. package/out/ERC20PausableBurnable.sol/ERC20PausableBurnable.abi.json +50 -284
  39. package/out/ERC20PausableBurnable.sol/ERC20PausableBurnable.abi.json.d.ts +50 -284
  40. package/out/ERC20PausableBurnable.sol/ERC20PausableBurnable.json +1 -1
  41. package/out/InitModule.sol/InitModule.json +1 -1
  42. package/out/MUDERC20.sol/MUDERC20.abi.json +8 -317
  43. package/out/MUDERC20.sol/MUDERC20.abi.json.d.ts +8 -317
  44. package/out/MUDERC20.sol/MUDERC20.json +1 -1
  45. package/out/Pausable.sol/Pausable.abi.json +8 -369
  46. package/out/Pausable.sol/Pausable.abi.json.d.ts +8 -369
  47. package/out/Pausable.sol/Pausable.json +1 -1
  48. package/out/RegistrationSystem.sol/RegistrationSystem.json +1 -1
  49. package/out/World.sol/World.json +1 -1
  50. package/out/WorldConsumer.sol/WorldConsumer.abi.json +8 -45
  51. package/out/WorldConsumer.sol/WorldConsumer.abi.json.d.ts +8 -45
  52. package/out/WorldConsumer.sol/WorldConsumer.json +1 -1
  53. package/out/build-info/{575e1001b22e51590748b4ce55e7c596.json → 5dec426f2d87057b9b49f18296a28057.json} +1 -1
  54. package/package.json +8 -8
  55. package/src/examples/ERC20PausableBurnable.sol +21 -8
  56. package/src/experimental/Constants.sol +0 -4
  57. package/src/experimental/ERC20Module.sol +46 -9
  58. package/src/experimental/ERC20Pausable.sol +3 -0
  59. package/src/experimental/MUDERC20.sol +24 -29
  60. package/src/experimental/Pausable.sol +15 -15
  61. package/out/Constants.sol/OwnableTableNames.abi.json +0 -1
  62. package/out/Constants.sol/OwnableTableNames.json +0 -1
  63. package/out/ERC20BaseTest.t.sol/TestConstants.abi.json +0 -1
  64. package/out/ERC20BaseTest.t.sol/TestConstants.json +0 -1
  65. package/out/ERC20Module.sol/ERC20RegistryLib.json +0 -1
  66. package/out/ERC20Pausable.t.sol/ERC20PausableBehaviorTest.json +0 -1
  67. /package/out/ERC20Module.sol/{ERC20RegistryLib.abi.json → ERC20ModuleLib.abi.json} +0 -0
  68. /package/out/ERC20Module.sol/{ERC20RegistryLib.abi.json.d.ts → ERC20ModuleLib.abi.json.d.ts} +0 -0
@@ -131,32 +131,6 @@ declare const abi: [
131
131
  ],
132
132
  "stateMutability": "view"
133
133
  },
134
- {
135
- "type": "function",
136
- "name": "namespace",
137
- "inputs": [],
138
- "outputs": [
139
- {
140
- "name": "",
141
- "type": "bytes14",
142
- "internalType": "bytes14"
143
- }
144
- ],
145
- "stateMutability": "view"
146
- },
147
- {
148
- "type": "function",
149
- "name": "namespaceId",
150
- "inputs": [],
151
- "outputs": [
152
- {
153
- "name": "",
154
- "type": "bytes32",
155
- "internalType": "ResourceId"
156
- }
157
- ],
158
- "stateMutability": "view"
159
- },
160
134
  {
161
135
  "type": "function",
162
136
  "name": "supportsInterface",
@@ -280,43 +254,6 @@ declare const abi: [
280
254
  ],
281
255
  "anonymous": false
282
256
  },
283
- {
284
- "type": "event",
285
- "name": "Store_SetRecord",
286
- "inputs": [
287
- {
288
- "name": "tableId",
289
- "type": "bytes32",
290
- "indexed": true,
291
- "internalType": "ResourceId"
292
- },
293
- {
294
- "name": "keyTuple",
295
- "type": "bytes32[]",
296
- "indexed": false,
297
- "internalType": "bytes32[]"
298
- },
299
- {
300
- "name": "staticData",
301
- "type": "bytes",
302
- "indexed": false,
303
- "internalType": "bytes"
304
- },
305
- {
306
- "name": "encodedLengths",
307
- "type": "bytes32",
308
- "indexed": false,
309
- "internalType": "EncodedLengths"
310
- },
311
- {
312
- "name": "dynamicData",
313
- "type": "bytes",
314
- "indexed": false,
315
- "internalType": "bytes"
316
- }
317
- ],
318
- "anonymous": false
319
- },
320
257
  {
321
258
  "type": "event",
322
259
  "name": "Store_SpliceStaticData",
@@ -459,108 +396,6 @@ declare const abi: [
459
396
  }
460
397
  ]
461
398
  },
462
- {
463
- "type": "error",
464
- "name": "FieldLayout_Empty",
465
- "inputs": []
466
- },
467
- {
468
- "type": "error",
469
- "name": "FieldLayout_InvalidStaticDataLength",
470
- "inputs": [
471
- {
472
- "name": "staticDataLength",
473
- "type": "uint256",
474
- "internalType": "uint256"
475
- },
476
- {
477
- "name": "computedStaticDataLength",
478
- "type": "uint256",
479
- "internalType": "uint256"
480
- }
481
- ]
482
- },
483
- {
484
- "type": "error",
485
- "name": "FieldLayout_StaticLengthDoesNotFitInAWord",
486
- "inputs": [
487
- {
488
- "name": "index",
489
- "type": "uint256",
490
- "internalType": "uint256"
491
- }
492
- ]
493
- },
494
- {
495
- "type": "error",
496
- "name": "FieldLayout_StaticLengthIsNotZero",
497
- "inputs": [
498
- {
499
- "name": "index",
500
- "type": "uint256",
501
- "internalType": "uint256"
502
- }
503
- ]
504
- },
505
- {
506
- "type": "error",
507
- "name": "FieldLayout_StaticLengthIsZero",
508
- "inputs": [
509
- {
510
- "name": "index",
511
- "type": "uint256",
512
- "internalType": "uint256"
513
- }
514
- ]
515
- },
516
- {
517
- "type": "error",
518
- "name": "FieldLayout_TooManyDynamicFields",
519
- "inputs": [
520
- {
521
- "name": "numFields",
522
- "type": "uint256",
523
- "internalType": "uint256"
524
- },
525
- {
526
- "name": "maxFields",
527
- "type": "uint256",
528
- "internalType": "uint256"
529
- }
530
- ]
531
- },
532
- {
533
- "type": "error",
534
- "name": "FieldLayout_TooManyFields",
535
- "inputs": [
536
- {
537
- "name": "numFields",
538
- "type": "uint256",
539
- "internalType": "uint256"
540
- },
541
- {
542
- "name": "maxFields",
543
- "type": "uint256",
544
- "internalType": "uint256"
545
- }
546
- ]
547
- },
548
- {
549
- "type": "error",
550
- "name": "Schema_InvalidLength",
551
- "inputs": [
552
- {
553
- "name": "length",
554
- "type": "uint256",
555
- "internalType": "uint256"
556
- }
557
- ]
558
- },
559
- {
560
- "type": "error",
561
- "name": "Schema_StaticTypeAfterDynamicType",
562
- "inputs": []
563
- },
564
399
  {
565
400
  "type": "error",
566
401
  "name": "Slice_OutOfBounds",
@@ -582,139 +417,6 @@ declare const abi: [
582
417
  }
583
418
  ]
584
419
  },
585
- {
586
- "type": "error",
587
- "name": "Store_InvalidFieldNamesLength",
588
- "inputs": [
589
- {
590
- "name": "expected",
591
- "type": "uint256",
592
- "internalType": "uint256"
593
- },
594
- {
595
- "name": "received",
596
- "type": "uint256",
597
- "internalType": "uint256"
598
- }
599
- ]
600
- },
601
- {
602
- "type": "error",
603
- "name": "Store_InvalidKeyNamesLength",
604
- "inputs": [
605
- {
606
- "name": "expected",
607
- "type": "uint256",
608
- "internalType": "uint256"
609
- },
610
- {
611
- "name": "received",
612
- "type": "uint256",
613
- "internalType": "uint256"
614
- }
615
- ]
616
- },
617
- {
618
- "type": "error",
619
- "name": "Store_InvalidResourceType",
620
- "inputs": [
621
- {
622
- "name": "expected",
623
- "type": "bytes2",
624
- "internalType": "bytes2"
625
- },
626
- {
627
- "name": "resourceId",
628
- "type": "bytes32",
629
- "internalType": "ResourceId"
630
- },
631
- {
632
- "name": "resourceIdString",
633
- "type": "string",
634
- "internalType": "string"
635
- }
636
- ]
637
- },
638
- {
639
- "type": "error",
640
- "name": "Store_InvalidStaticDataLength",
641
- "inputs": [
642
- {
643
- "name": "expected",
644
- "type": "uint256",
645
- "internalType": "uint256"
646
- },
647
- {
648
- "name": "received",
649
- "type": "uint256",
650
- "internalType": "uint256"
651
- }
652
- ]
653
- },
654
- {
655
- "type": "error",
656
- "name": "Store_InvalidValueSchemaDynamicLength",
657
- "inputs": [
658
- {
659
- "name": "expected",
660
- "type": "uint256",
661
- "internalType": "uint256"
662
- },
663
- {
664
- "name": "received",
665
- "type": "uint256",
666
- "internalType": "uint256"
667
- }
668
- ]
669
- },
670
- {
671
- "type": "error",
672
- "name": "Store_InvalidValueSchemaLength",
673
- "inputs": [
674
- {
675
- "name": "expected",
676
- "type": "uint256",
677
- "internalType": "uint256"
678
- },
679
- {
680
- "name": "received",
681
- "type": "uint256",
682
- "internalType": "uint256"
683
- }
684
- ]
685
- },
686
- {
687
- "type": "error",
688
- "name": "Store_InvalidValueSchemaStaticLength",
689
- "inputs": [
690
- {
691
- "name": "expected",
692
- "type": "uint256",
693
- "internalType": "uint256"
694
- },
695
- {
696
- "name": "received",
697
- "type": "uint256",
698
- "internalType": "uint256"
699
- }
700
- ]
701
- },
702
- {
703
- "type": "error",
704
- "name": "Store_TableAlreadyExists",
705
- "inputs": [
706
- {
707
- "name": "tableId",
708
- "type": "bytes32",
709
- "internalType": "ResourceId"
710
- },
711
- {
712
- "name": "tableIdString",
713
- "type": "string",
714
- "internalType": "string"
715
- }
716
- ]
717
- },
718
420
  {
719
421
  "type": "error",
720
422
  "name": "WorldConsumer_CallerHasNoNamespaceAccess",
@@ -738,13 +440,18 @@ declare const abi: [
738
440
  },
739
441
  {
740
442
  "type": "error",
741
- "name": "WorldConsumer_CallerIsNotWorld",
443
+ "name": "WorldConsumer_CallerIsNotNamespaceOwner",
742
444
  "inputs": [
743
445
  {
744
446
  "name": "worldAddress",
745
447
  "type": "address",
746
448
  "internalType": "address"
747
449
  },
450
+ {
451
+ "name": "namespace",
452
+ "type": "bytes14",
453
+ "internalType": "bytes14"
454
+ },
748
455
  {
749
456
  "name": "caller",
750
457
  "type": "address",
@@ -754,7 +461,7 @@ declare const abi: [
754
461
  },
755
462
  {
756
463
  "type": "error",
757
- "name": "WorldConsumer_NamespaceAlreadyExists",
464
+ "name": "WorldConsumer_CallerIsNotWorld",
758
465
  "inputs": [
759
466
  {
760
467
  "name": "worldAddress",
@@ -762,25 +469,9 @@ declare const abi: [
762
469
  "internalType": "address"
763
470
  },
764
471
  {
765
- "name": "namespace",
766
- "type": "bytes14",
767
- "internalType": "bytes14"
768
- }
769
- ]
770
- },
771
- {
772
- "type": "error",
773
- "name": "WorldConsumer_NamespaceDoesNotExists",
774
- "inputs": [
775
- {
776
- "name": "worldAddress",
472
+ "name": "caller",
777
473
  "type": "address",
778
474
  "internalType": "address"
779
- },
780
- {
781
- "name": "namespace",
782
- "type": "bytes14",
783
- "internalType": "bytes14"
784
475
  }
785
476
  ]
786
477
  },