@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
|
@@ -162,6 +162,32 @@ declare const abi: [
|
|
|
162
162
|
],
|
|
163
163
|
"stateMutability": "view"
|
|
164
164
|
},
|
|
165
|
+
{
|
|
166
|
+
"type": "function",
|
|
167
|
+
"name": "namespace",
|
|
168
|
+
"inputs": [],
|
|
169
|
+
"outputs": [
|
|
170
|
+
{
|
|
171
|
+
"name": "",
|
|
172
|
+
"type": "bytes14",
|
|
173
|
+
"internalType": "bytes14"
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
"stateMutability": "view"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"type": "function",
|
|
180
|
+
"name": "namespaceId",
|
|
181
|
+
"inputs": [],
|
|
182
|
+
"outputs": [
|
|
183
|
+
{
|
|
184
|
+
"name": "",
|
|
185
|
+
"type": "bytes32",
|
|
186
|
+
"internalType": "ResourceId"
|
|
187
|
+
}
|
|
188
|
+
],
|
|
189
|
+
"stateMutability": "view"
|
|
190
|
+
},
|
|
165
191
|
{
|
|
166
192
|
"type": "function",
|
|
167
193
|
"name": "supportsInterface",
|
|
@@ -285,6 +311,43 @@ declare const abi: [
|
|
|
285
311
|
],
|
|
286
312
|
"anonymous": false
|
|
287
313
|
},
|
|
314
|
+
{
|
|
315
|
+
"type": "event",
|
|
316
|
+
"name": "Store_SetRecord",
|
|
317
|
+
"inputs": [
|
|
318
|
+
{
|
|
319
|
+
"name": "tableId",
|
|
320
|
+
"type": "bytes32",
|
|
321
|
+
"indexed": true,
|
|
322
|
+
"internalType": "ResourceId"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"name": "keyTuple",
|
|
326
|
+
"type": "bytes32[]",
|
|
327
|
+
"indexed": false,
|
|
328
|
+
"internalType": "bytes32[]"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"name": "staticData",
|
|
332
|
+
"type": "bytes",
|
|
333
|
+
"indexed": false,
|
|
334
|
+
"internalType": "bytes"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"name": "encodedLengths",
|
|
338
|
+
"type": "bytes32",
|
|
339
|
+
"indexed": false,
|
|
340
|
+
"internalType": "EncodedLengths"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"name": "dynamicData",
|
|
344
|
+
"type": "bytes",
|
|
345
|
+
"indexed": false,
|
|
346
|
+
"internalType": "bytes"
|
|
347
|
+
}
|
|
348
|
+
],
|
|
349
|
+
"anonymous": false
|
|
350
|
+
},
|
|
288
351
|
{
|
|
289
352
|
"type": "event",
|
|
290
353
|
"name": "Store_SpliceStaticData",
|
|
@@ -427,6 +490,108 @@ declare const abi: [
|
|
|
427
490
|
}
|
|
428
491
|
]
|
|
429
492
|
},
|
|
493
|
+
{
|
|
494
|
+
"type": "error",
|
|
495
|
+
"name": "FieldLayout_Empty",
|
|
496
|
+
"inputs": []
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
"type": "error",
|
|
500
|
+
"name": "FieldLayout_InvalidStaticDataLength",
|
|
501
|
+
"inputs": [
|
|
502
|
+
{
|
|
503
|
+
"name": "staticDataLength",
|
|
504
|
+
"type": "uint256",
|
|
505
|
+
"internalType": "uint256"
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"name": "computedStaticDataLength",
|
|
509
|
+
"type": "uint256",
|
|
510
|
+
"internalType": "uint256"
|
|
511
|
+
}
|
|
512
|
+
]
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"type": "error",
|
|
516
|
+
"name": "FieldLayout_StaticLengthDoesNotFitInAWord",
|
|
517
|
+
"inputs": [
|
|
518
|
+
{
|
|
519
|
+
"name": "index",
|
|
520
|
+
"type": "uint256",
|
|
521
|
+
"internalType": "uint256"
|
|
522
|
+
}
|
|
523
|
+
]
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"type": "error",
|
|
527
|
+
"name": "FieldLayout_StaticLengthIsNotZero",
|
|
528
|
+
"inputs": [
|
|
529
|
+
{
|
|
530
|
+
"name": "index",
|
|
531
|
+
"type": "uint256",
|
|
532
|
+
"internalType": "uint256"
|
|
533
|
+
}
|
|
534
|
+
]
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"type": "error",
|
|
538
|
+
"name": "FieldLayout_StaticLengthIsZero",
|
|
539
|
+
"inputs": [
|
|
540
|
+
{
|
|
541
|
+
"name": "index",
|
|
542
|
+
"type": "uint256",
|
|
543
|
+
"internalType": "uint256"
|
|
544
|
+
}
|
|
545
|
+
]
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
"type": "error",
|
|
549
|
+
"name": "FieldLayout_TooManyDynamicFields",
|
|
550
|
+
"inputs": [
|
|
551
|
+
{
|
|
552
|
+
"name": "numFields",
|
|
553
|
+
"type": "uint256",
|
|
554
|
+
"internalType": "uint256"
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"name": "maxFields",
|
|
558
|
+
"type": "uint256",
|
|
559
|
+
"internalType": "uint256"
|
|
560
|
+
}
|
|
561
|
+
]
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"type": "error",
|
|
565
|
+
"name": "FieldLayout_TooManyFields",
|
|
566
|
+
"inputs": [
|
|
567
|
+
{
|
|
568
|
+
"name": "numFields",
|
|
569
|
+
"type": "uint256",
|
|
570
|
+
"internalType": "uint256"
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
"name": "maxFields",
|
|
574
|
+
"type": "uint256",
|
|
575
|
+
"internalType": "uint256"
|
|
576
|
+
}
|
|
577
|
+
]
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
"type": "error",
|
|
581
|
+
"name": "Schema_InvalidLength",
|
|
582
|
+
"inputs": [
|
|
583
|
+
{
|
|
584
|
+
"name": "length",
|
|
585
|
+
"type": "uint256",
|
|
586
|
+
"internalType": "uint256"
|
|
587
|
+
}
|
|
588
|
+
]
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"type": "error",
|
|
592
|
+
"name": "Schema_StaticTypeAfterDynamicType",
|
|
593
|
+
"inputs": []
|
|
594
|
+
},
|
|
430
595
|
{
|
|
431
596
|
"type": "error",
|
|
432
597
|
"name": "Slice_OutOfBounds",
|
|
@@ -448,6 +613,139 @@ declare const abi: [
|
|
|
448
613
|
}
|
|
449
614
|
]
|
|
450
615
|
},
|
|
616
|
+
{
|
|
617
|
+
"type": "error",
|
|
618
|
+
"name": "Store_InvalidFieldNamesLength",
|
|
619
|
+
"inputs": [
|
|
620
|
+
{
|
|
621
|
+
"name": "expected",
|
|
622
|
+
"type": "uint256",
|
|
623
|
+
"internalType": "uint256"
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"name": "received",
|
|
627
|
+
"type": "uint256",
|
|
628
|
+
"internalType": "uint256"
|
|
629
|
+
}
|
|
630
|
+
]
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"type": "error",
|
|
634
|
+
"name": "Store_InvalidKeyNamesLength",
|
|
635
|
+
"inputs": [
|
|
636
|
+
{
|
|
637
|
+
"name": "expected",
|
|
638
|
+
"type": "uint256",
|
|
639
|
+
"internalType": "uint256"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"name": "received",
|
|
643
|
+
"type": "uint256",
|
|
644
|
+
"internalType": "uint256"
|
|
645
|
+
}
|
|
646
|
+
]
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
"type": "error",
|
|
650
|
+
"name": "Store_InvalidResourceType",
|
|
651
|
+
"inputs": [
|
|
652
|
+
{
|
|
653
|
+
"name": "expected",
|
|
654
|
+
"type": "bytes2",
|
|
655
|
+
"internalType": "bytes2"
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"name": "resourceId",
|
|
659
|
+
"type": "bytes32",
|
|
660
|
+
"internalType": "ResourceId"
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
"name": "resourceIdString",
|
|
664
|
+
"type": "string",
|
|
665
|
+
"internalType": "string"
|
|
666
|
+
}
|
|
667
|
+
]
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"type": "error",
|
|
671
|
+
"name": "Store_InvalidStaticDataLength",
|
|
672
|
+
"inputs": [
|
|
673
|
+
{
|
|
674
|
+
"name": "expected",
|
|
675
|
+
"type": "uint256",
|
|
676
|
+
"internalType": "uint256"
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
"name": "received",
|
|
680
|
+
"type": "uint256",
|
|
681
|
+
"internalType": "uint256"
|
|
682
|
+
}
|
|
683
|
+
]
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"type": "error",
|
|
687
|
+
"name": "Store_InvalidValueSchemaDynamicLength",
|
|
688
|
+
"inputs": [
|
|
689
|
+
{
|
|
690
|
+
"name": "expected",
|
|
691
|
+
"type": "uint256",
|
|
692
|
+
"internalType": "uint256"
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
"name": "received",
|
|
696
|
+
"type": "uint256",
|
|
697
|
+
"internalType": "uint256"
|
|
698
|
+
}
|
|
699
|
+
]
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
"type": "error",
|
|
703
|
+
"name": "Store_InvalidValueSchemaLength",
|
|
704
|
+
"inputs": [
|
|
705
|
+
{
|
|
706
|
+
"name": "expected",
|
|
707
|
+
"type": "uint256",
|
|
708
|
+
"internalType": "uint256"
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
"name": "received",
|
|
712
|
+
"type": "uint256",
|
|
713
|
+
"internalType": "uint256"
|
|
714
|
+
}
|
|
715
|
+
]
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
"type": "error",
|
|
719
|
+
"name": "Store_InvalidValueSchemaStaticLength",
|
|
720
|
+
"inputs": [
|
|
721
|
+
{
|
|
722
|
+
"name": "expected",
|
|
723
|
+
"type": "uint256",
|
|
724
|
+
"internalType": "uint256"
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
"name": "received",
|
|
728
|
+
"type": "uint256",
|
|
729
|
+
"internalType": "uint256"
|
|
730
|
+
}
|
|
731
|
+
]
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
"type": "error",
|
|
735
|
+
"name": "Store_TableAlreadyExists",
|
|
736
|
+
"inputs": [
|
|
737
|
+
{
|
|
738
|
+
"name": "tableId",
|
|
739
|
+
"type": "bytes32",
|
|
740
|
+
"internalType": "ResourceId"
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
"name": "tableIdString",
|
|
744
|
+
"type": "string",
|
|
745
|
+
"internalType": "string"
|
|
746
|
+
}
|
|
747
|
+
]
|
|
748
|
+
},
|
|
451
749
|
{
|
|
452
750
|
"type": "error",
|
|
453
751
|
"name": "WorldConsumer_CallerHasNoNamespaceAccess",
|
|
@@ -471,18 +769,13 @@ declare const abi: [
|
|
|
471
769
|
},
|
|
472
770
|
{
|
|
473
771
|
"type": "error",
|
|
474
|
-
"name": "
|
|
772
|
+
"name": "WorldConsumer_CallerIsNotWorld",
|
|
475
773
|
"inputs": [
|
|
476
774
|
{
|
|
477
775
|
"name": "worldAddress",
|
|
478
776
|
"type": "address",
|
|
479
777
|
"internalType": "address"
|
|
480
778
|
},
|
|
481
|
-
{
|
|
482
|
-
"name": "namespace",
|
|
483
|
-
"type": "bytes14",
|
|
484
|
-
"internalType": "bytes14"
|
|
485
|
-
},
|
|
486
779
|
{
|
|
487
780
|
"name": "caller",
|
|
488
781
|
"type": "address",
|
|
@@ -492,7 +785,7 @@ declare const abi: [
|
|
|
492
785
|
},
|
|
493
786
|
{
|
|
494
787
|
"type": "error",
|
|
495
|
-
"name": "
|
|
788
|
+
"name": "WorldConsumer_NamespaceAlreadyExists",
|
|
496
789
|
"inputs": [
|
|
497
790
|
{
|
|
498
791
|
"name": "worldAddress",
|
|
@@ -500,9 +793,25 @@ declare const abi: [
|
|
|
500
793
|
"internalType": "address"
|
|
501
794
|
},
|
|
502
795
|
{
|
|
503
|
-
"name": "
|
|
796
|
+
"name": "namespace",
|
|
797
|
+
"type": "bytes14",
|
|
798
|
+
"internalType": "bytes14"
|
|
799
|
+
}
|
|
800
|
+
]
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
"type": "error",
|
|
804
|
+
"name": "WorldConsumer_NamespaceDoesNotExists",
|
|
805
|
+
"inputs": [
|
|
806
|
+
{
|
|
807
|
+
"name": "worldAddress",
|
|
504
808
|
"type": "address",
|
|
505
809
|
"internalType": "address"
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
"name": "namespace",
|
|
813
|
+
"type": "bytes14",
|
|
814
|
+
"internalType": "bytes14"
|
|
506
815
|
}
|
|
507
816
|
]
|
|
508
817
|
},
|