@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
|
@@ -131,6 +131,32 @@ 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
|
+
},
|
|
134
160
|
{
|
|
135
161
|
"type": "function",
|
|
136
162
|
"name": "supportsInterface",
|
|
@@ -254,6 +280,43 @@ declare const abi: [
|
|
|
254
280
|
],
|
|
255
281
|
"anonymous": false
|
|
256
282
|
},
|
|
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
|
+
},
|
|
257
320
|
{
|
|
258
321
|
"type": "event",
|
|
259
322
|
"name": "Store_SpliceStaticData",
|
|
@@ -396,6 +459,108 @@ declare const abi: [
|
|
|
396
459
|
}
|
|
397
460
|
]
|
|
398
461
|
},
|
|
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
|
+
},
|
|
399
564
|
{
|
|
400
565
|
"type": "error",
|
|
401
566
|
"name": "Slice_OutOfBounds",
|
|
@@ -417,6 +582,139 @@ declare const abi: [
|
|
|
417
582
|
}
|
|
418
583
|
]
|
|
419
584
|
},
|
|
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
|
+
},
|
|
420
718
|
{
|
|
421
719
|
"type": "error",
|
|
422
720
|
"name": "WorldConsumer_CallerHasNoNamespaceAccess",
|
|
@@ -440,18 +738,13 @@ declare const abi: [
|
|
|
440
738
|
},
|
|
441
739
|
{
|
|
442
740
|
"type": "error",
|
|
443
|
-
"name": "
|
|
741
|
+
"name": "WorldConsumer_CallerIsNotWorld",
|
|
444
742
|
"inputs": [
|
|
445
743
|
{
|
|
446
744
|
"name": "worldAddress",
|
|
447
745
|
"type": "address",
|
|
448
746
|
"internalType": "address"
|
|
449
747
|
},
|
|
450
|
-
{
|
|
451
|
-
"name": "namespace",
|
|
452
|
-
"type": "bytes14",
|
|
453
|
-
"internalType": "bytes14"
|
|
454
|
-
},
|
|
455
748
|
{
|
|
456
749
|
"name": "caller",
|
|
457
750
|
"type": "address",
|
|
@@ -461,7 +754,7 @@ declare const abi: [
|
|
|
461
754
|
},
|
|
462
755
|
{
|
|
463
756
|
"type": "error",
|
|
464
|
-
"name": "
|
|
757
|
+
"name": "WorldConsumer_NamespaceAlreadyExists",
|
|
465
758
|
"inputs": [
|
|
466
759
|
{
|
|
467
760
|
"name": "worldAddress",
|
|
@@ -469,9 +762,25 @@ declare const abi: [
|
|
|
469
762
|
"internalType": "address"
|
|
470
763
|
},
|
|
471
764
|
{
|
|
472
|
-
"name": "
|
|
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",
|
|
473
777
|
"type": "address",
|
|
474
778
|
"internalType": "address"
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
"name": "namespace",
|
|
782
|
+
"type": "bytes14",
|
|
783
|
+
"internalType": "bytes14"
|
|
475
784
|
}
|
|
476
785
|
]
|
|
477
786
|
},
|