@artblocks/contracts 1.0.1 → 1.0.2

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 (87) hide show
  1. package/.env.example +8 -1
  2. package/README.md +42 -157
  3. package/artifacts/contracts/AdminACLV1.sol/AdminACLV1.json +2 -2
  4. package/artifacts/contracts/DependencyRegistryV0.sol/DependencyRegistryV0.json +2 -2
  5. package/artifacts/contracts/GenArt721CoreV3.sol/GenArt721CoreV3.json +2 -2
  6. package/artifacts/contracts/GenArt721CoreV3_Engine.sol/GenArt721CoreV3_Engine.json +2 -2
  7. package/artifacts/contracts/GenArt721CoreV3_Engine_Flex.sol/GenArt721CoreV3_Engine_Flex.json +2229 -0
  8. package/artifacts/contracts/archive/minter-suite/Minters/MinterDAExp/MinterDAExpV2.sol/MinterDAExpV2.json +2 -2
  9. package/artifacts/contracts/archive/minter-suite/Minters/MinterDAExp/MinterDAExpV3.sol/MinterDAExpV3.json +2 -2
  10. package/artifacts/contracts/archive/minter-suite/Minters/MinterDAExpSettlement/MinterDAExpSettlementV0.sol/MinterDAExpSettlementV0.json +2 -2
  11. package/artifacts/contracts/archive/minter-suite/Minters/MinterDAExpSettlement/MinterDAExpSettlementV1.sol/MinterDAExpSettlementV1.json +2 -2
  12. package/artifacts/contracts/archive/minter-suite/Minters/MinterDALin/MinterDALinV2.sol/MinterDALinV2.json +2 -2
  13. package/artifacts/contracts/archive/minter-suite/Minters/MinterDALin/MinterDALinV3.sol/MinterDALinV3.json +2 -2
  14. package/artifacts/contracts/archive/minter-suite/Minters/MinterHolder/MinterHolderV1.sol/MinterHolderV1.json +2 -2
  15. package/artifacts/contracts/archive/minter-suite/Minters/MinterHolder/MinterHolderV2.sol/MinterHolderV2.json +2 -2
  16. package/artifacts/contracts/archive/minter-suite/Minters/MinterHolder/MinterHolderV3.sol/MinterHolderV3.json +2 -2
  17. package/artifacts/contracts/archive/minter-suite/Minters/MinterMerkle/MinterMerkleV1.sol/MinterMerkleV1.json +2 -2
  18. package/artifacts/contracts/archive/minter-suite/Minters/MinterMerkle/MinterMerkleV2.sol/MinterMerkleV2.json +2 -2
  19. package/artifacts/contracts/archive/minter-suite/Minters/MinterMerkle/MinterMerkleV3.sol/MinterMerkleV3.json +2 -2
  20. package/artifacts/contracts/archive/minter-suite/Minters/MinterMerkle/MinterMerkleV4.sol/MinterMerkleV4.json +2 -2
  21. package/artifacts/contracts/archive/minter-suite/Minters/MinterSetPrice/MinterSetPriceV2.sol/MinterSetPriceV2.json +2 -2
  22. package/artifacts/contracts/archive/minter-suite/Minters/MinterSetPrice/MinterSetPriceV3.sol/MinterSetPriceV3.json +2 -2
  23. package/artifacts/contracts/archive/minter-suite/Minters/MinterSetPriceERC20/MinterSetPriceERC20V2.sol/MinterSetPriceERC20V2.json +2 -2
  24. package/artifacts/contracts/archive/minter-suite/Minters/MinterSetPriceERC20/MinterSetPriceERC20V3.sol/MinterSetPriceERC20V3.json +2 -2
  25. package/artifacts/contracts/explorations/GenArt721CoreV3_Explorations.sol/GenArt721CoreV3_Explorations.json +2 -2
  26. package/artifacts/contracts/interfaces/0.8.x/IFilteredMinterSEAV0.sol/IFilteredMinterSEAV0.json +1032 -0
  27. package/artifacts/contracts/interfaces/0.8.x/IGenArt721CoreContractV3.sol/IGenArt721CoreContractV3.json +149 -0
  28. package/artifacts/contracts/interfaces/0.8.x/IGenArt721CoreContractV3_Base.sol/IGenArt721CoreContractV3_Base.json +149 -0
  29. package/artifacts/contracts/interfaces/0.8.x/IGenArt721CoreContractV3_Engine.sol/IGenArt721CoreContractV3_Engine.json +130 -0
  30. package/artifacts/contracts/interfaces/0.8.x/IGenArt721CoreContractV3_Engine_Flex.sol/IGenArt721CoreContractV3_Engine_Flex.json +1066 -0
  31. package/artifacts/contracts/interfaces/0.8.x/IWETH.sol/IWETH.json +55 -0
  32. package/artifacts/contracts/libs/integration-refs/weth9/weth9.sol/WETH9_.json +295 -0
  33. package/artifacts/contracts/minter-suite/MinterFilter/MinterFilterV1.sol/MinterFilterV1.json +2 -2
  34. package/artifacts/contracts/minter-suite/Minters/MinterDAExpSettlementV2.sol/MinterDAExpSettlementV2.json +2 -2
  35. package/artifacts/contracts/minter-suite/Minters/MinterDAExpV4.sol/MinterDAExpV4.json +2 -2
  36. package/artifacts/contracts/minter-suite/Minters/MinterDALinV4.sol/MinterDALinV4.json +2 -2
  37. package/artifacts/contracts/minter-suite/Minters/MinterHolderV4.sol/MinterHolderV4.json +2 -2
  38. package/artifacts/contracts/minter-suite/Minters/MinterMerkleV5.sol/MinterMerkleV5.json +2 -2
  39. package/artifacts/contracts/minter-suite/Minters/MinterPolyptychV0.sol/IGenArt721CoreContractV3WithRandomizer.json +130 -0
  40. package/artifacts/contracts/minter-suite/Minters/MinterPolyptychV0.sol/MinterPolyptychV0.json +2 -2
  41. package/artifacts/contracts/minter-suite/Minters/MinterSEAV0.sol/MinterSEAV0.json +1310 -0
  42. package/artifacts/contracts/minter-suite/Minters/MinterSetPriceERC20V4.sol/MinterSetPriceERC20V4.json +2 -2
  43. package/artifacts/contracts/minter-suite/Minters/MinterSetPriceV4.sol/MinterSetPriceV4.json +2 -2
  44. package/artifacts/contracts/mock/DeadReceiverBidderMock.sol/DeadReceiverBidderMock.json +33 -0
  45. package/artifacts/contracts/mock/GasLimitReceiverBidderMock.sol/GasLimitReceiverBidderMock.json +46 -0
  46. package/artifacts/contracts/mock/GasLimitReceiverMock.sol/GasLimitReceiverMock.json +28 -0
  47. package/artifacts/contracts/mock/GenArt721CoreV3_Engine_IncorrectCoreType.sol/GenArt721CoreV3_Engine_IncorrectCoreType.json +2 -2
  48. package/artifacts/contracts/mock/RandomizerV2_NoAssignMock.sol/RandomizerV2_NoAssignMock.json +2 -2
  49. package/artifacts/contracts/mock/ReentrancySEAMock.sol/ReentrancySEAAutoBidderMock.json +51 -0
  50. package/artifacts/contracts/{BasicRandomizer.sol → randomizer/BasicRandomizer.sol}/BasicRandomizer.json +3 -3
  51. package/artifacts/contracts/randomizer/BasicRandomizerBase_v0_0_0.sol/RandomizerBase.json +10 -0
  52. package/artifacts/contracts/randomizer/PolyptychRandomizerV0.sol/BasicPolyptychRandomizerV0.json +229 -0
  53. package/artifacts/contracts/randomizer/RandomizerV2.sol/BasicRandomizerV2.json +102 -0
  54. package/artifacts/contracts/royalty-registry/GenArt721RoyaltyOverride.sol/GenArt721RoyaltyOverride.json +2 -2
  55. package/contracts/DependencyRegistryV0.sol +74 -113
  56. package/contracts/GenArt721CoreV3.sol +124 -171
  57. package/contracts/GenArt721CoreV3_Engine.sol +136 -198
  58. package/contracts/GenArt721CoreV3_Engine_Flex.sol +2274 -0
  59. package/contracts/explorations/GenArt721CoreV3_Explorations.sol +147 -176
  60. package/contracts/interfaces/0.8.x/IFilteredMinterSEAV0.sol +145 -0
  61. package/contracts/interfaces/0.8.x/IGenArt721CoreContractV3_Base.sol +39 -0
  62. package/contracts/interfaces/0.8.x/IGenArt721CoreContractV3_Engine.sol +0 -3
  63. package/contracts/interfaces/0.8.x/IGenArt721CoreContractV3_Engine_Flex.sol +132 -0
  64. package/contracts/interfaces/0.8.x/IWETH.sol +11 -0
  65. package/contracts/libs/integration-refs/weth9/weth9.sol +763 -0
  66. package/contracts/minter-suite/MinterFilter/MinterFilterV1.sol +35 -47
  67. package/contracts/minter-suite/Minters/MinterDAExpSettlementV2.sol +26 -34
  68. package/contracts/minter-suite/Minters/MinterDAExpV4.sol +16 -21
  69. package/contracts/minter-suite/Minters/MinterDALinV4.sol +15 -17
  70. package/contracts/minter-suite/Minters/MinterHolderV4.sol +19 -19
  71. package/contracts/minter-suite/Minters/MinterMerkleV5.sol +13 -15
  72. package/contracts/minter-suite/Minters/MinterPolyptychV0.sol +23 -23
  73. package/contracts/minter-suite/Minters/MinterSEAV0.sol +1224 -0
  74. package/contracts/minter-suite/Minters/MinterSetPriceERC20V4.sol +11 -11
  75. package/contracts/minter-suite/Minters/MinterSetPriceV4.sol +9 -10
  76. package/contracts/mock/DeadReceiverBidderMock.sol +23 -0
  77. package/contracts/mock/GasLimitReceiverBidderMock.sol +23 -0
  78. package/contracts/mock/GasLimitReceiverMock.sol +19 -0
  79. package/contracts/mock/RandomizerV2_NoAssignMock.sol +2 -11
  80. package/contracts/mock/ReentrancySEAMock.sol +36 -0
  81. package/contracts/{BasicRandomizer.sol → randomizer/BasicRandomizer.sol} +1 -1
  82. package/contracts/randomizer/BasicRandomizerBase_v0_0_0.sol +23 -0
  83. package/contracts/{BasicPolyptychRandomizerV0.sol → randomizer/PolyptychRandomizerV0.sol} +19 -28
  84. package/contracts/{BasicRandomizerV2.sol → randomizer/RandomizerV2.sol} +5 -13
  85. package/package.json +27 -14
  86. package/artifacts/contracts/BasicPolyptychRandomizerV0.sol/BasicPolyptychRandomizerV0.json +0 -229
  87. package/artifacts/contracts/BasicRandomizerV2.sol/BasicRandomizerV2.json +0 -102
@@ -463,6 +463,45 @@
463
463
  "stateMutability": "view",
464
464
  "type": "function"
465
465
  },
466
+ {
467
+ "inputs": [
468
+ {
469
+ "internalType": "uint256",
470
+ "name": "_projectId",
471
+ "type": "uint256"
472
+ }
473
+ ],
474
+ "name": "projectDetails",
475
+ "outputs": [
476
+ {
477
+ "internalType": "string",
478
+ "name": "projectName",
479
+ "type": "string"
480
+ },
481
+ {
482
+ "internalType": "string",
483
+ "name": "artist",
484
+ "type": "string"
485
+ },
486
+ {
487
+ "internalType": "string",
488
+ "name": "description",
489
+ "type": "string"
490
+ },
491
+ {
492
+ "internalType": "string",
493
+ "name": "website",
494
+ "type": "string"
495
+ },
496
+ {
497
+ "internalType": "string",
498
+ "name": "license",
499
+ "type": "string"
500
+ }
501
+ ],
502
+ "stateMutability": "view",
503
+ "type": "function"
504
+ },
466
505
  {
467
506
  "inputs": [
468
507
  {
@@ -520,6 +559,78 @@
520
559
  "stateMutability": "view",
521
560
  "type": "function"
522
561
  },
562
+ {
563
+ "inputs": [
564
+ {
565
+ "internalType": "uint256",
566
+ "name": "_projectId",
567
+ "type": "uint256"
568
+ }
569
+ ],
570
+ "name": "projectIdToSecondaryMarketRoyaltyPercentage",
571
+ "outputs": [
572
+ {
573
+ "internalType": "uint256",
574
+ "name": "",
575
+ "type": "uint256"
576
+ }
577
+ ],
578
+ "stateMutability": "view",
579
+ "type": "function"
580
+ },
581
+ {
582
+ "inputs": [
583
+ {
584
+ "internalType": "uint256",
585
+ "name": "_projectId",
586
+ "type": "uint256"
587
+ },
588
+ {
589
+ "internalType": "uint256",
590
+ "name": "_index",
591
+ "type": "uint256"
592
+ }
593
+ ],
594
+ "name": "projectScriptByIndex",
595
+ "outputs": [
596
+ {
597
+ "internalType": "string",
598
+ "name": "",
599
+ "type": "string"
600
+ }
601
+ ],
602
+ "stateMutability": "view",
603
+ "type": "function"
604
+ },
605
+ {
606
+ "inputs": [
607
+ {
608
+ "internalType": "uint256",
609
+ "name": "_projectId",
610
+ "type": "uint256"
611
+ }
612
+ ],
613
+ "name": "projectScriptDetails",
614
+ "outputs": [
615
+ {
616
+ "internalType": "string",
617
+ "name": "scriptTypeAndVersion",
618
+ "type": "string"
619
+ },
620
+ {
621
+ "internalType": "string",
622
+ "name": "aspectRatio",
623
+ "type": "string"
624
+ },
625
+ {
626
+ "internalType": "uint256",
627
+ "name": "scriptCount",
628
+ "type": "uint256"
629
+ }
630
+ ],
631
+ "stateMutability": "view",
632
+ "type": "function"
633
+ },
523
634
  {
524
635
  "inputs": [
525
636
  {
@@ -564,6 +675,25 @@
564
675
  "stateMutability": "view",
565
676
  "type": "function"
566
677
  },
678
+ {
679
+ "inputs": [
680
+ {
681
+ "internalType": "uint256",
682
+ "name": "_projectId",
683
+ "type": "uint256"
684
+ }
685
+ ],
686
+ "name": "projectURIInfo",
687
+ "outputs": [
688
+ {
689
+ "internalType": "string",
690
+ "name": "projectBaseURI",
691
+ "type": "string"
692
+ }
693
+ ],
694
+ "stateMutability": "view",
695
+ "type": "function"
696
+ },
567
697
  {
568
698
  "inputs": [
569
699
  {
@@ -582,6 +712,25 @@
582
712
  "stateMutability": "nonpayable",
583
713
  "type": "function"
584
714
  },
715
+ {
716
+ "inputs": [
717
+ {
718
+ "internalType": "uint256",
719
+ "name": "_tokenId",
720
+ "type": "uint256"
721
+ }
722
+ ],
723
+ "name": "tokenIdToHash",
724
+ "outputs": [
725
+ {
726
+ "internalType": "bytes32",
727
+ "name": "",
728
+ "type": "bytes32"
729
+ }
730
+ ],
731
+ "stateMutability": "view",
732
+ "type": "function"
733
+ },
585
734
  {
586
735
  "inputs": [
587
736
  {
@@ -302,6 +302,45 @@
302
302
  "stateMutability": "view",
303
303
  "type": "function"
304
304
  },
305
+ {
306
+ "inputs": [
307
+ {
308
+ "internalType": "uint256",
309
+ "name": "_projectId",
310
+ "type": "uint256"
311
+ }
312
+ ],
313
+ "name": "projectDetails",
314
+ "outputs": [
315
+ {
316
+ "internalType": "string",
317
+ "name": "projectName",
318
+ "type": "string"
319
+ },
320
+ {
321
+ "internalType": "string",
322
+ "name": "artist",
323
+ "type": "string"
324
+ },
325
+ {
326
+ "internalType": "string",
327
+ "name": "description",
328
+ "type": "string"
329
+ },
330
+ {
331
+ "internalType": "string",
332
+ "name": "website",
333
+ "type": "string"
334
+ },
335
+ {
336
+ "internalType": "string",
337
+ "name": "license",
338
+ "type": "string"
339
+ }
340
+ ],
341
+ "stateMutability": "view",
342
+ "type": "function"
343
+ },
305
344
  {
306
345
  "inputs": [
307
346
  {
@@ -359,6 +398,78 @@
359
398
  "stateMutability": "view",
360
399
  "type": "function"
361
400
  },
401
+ {
402
+ "inputs": [
403
+ {
404
+ "internalType": "uint256",
405
+ "name": "_projectId",
406
+ "type": "uint256"
407
+ }
408
+ ],
409
+ "name": "projectIdToSecondaryMarketRoyaltyPercentage",
410
+ "outputs": [
411
+ {
412
+ "internalType": "uint256",
413
+ "name": "",
414
+ "type": "uint256"
415
+ }
416
+ ],
417
+ "stateMutability": "view",
418
+ "type": "function"
419
+ },
420
+ {
421
+ "inputs": [
422
+ {
423
+ "internalType": "uint256",
424
+ "name": "_projectId",
425
+ "type": "uint256"
426
+ },
427
+ {
428
+ "internalType": "uint256",
429
+ "name": "_index",
430
+ "type": "uint256"
431
+ }
432
+ ],
433
+ "name": "projectScriptByIndex",
434
+ "outputs": [
435
+ {
436
+ "internalType": "string",
437
+ "name": "",
438
+ "type": "string"
439
+ }
440
+ ],
441
+ "stateMutability": "view",
442
+ "type": "function"
443
+ },
444
+ {
445
+ "inputs": [
446
+ {
447
+ "internalType": "uint256",
448
+ "name": "_projectId",
449
+ "type": "uint256"
450
+ }
451
+ ],
452
+ "name": "projectScriptDetails",
453
+ "outputs": [
454
+ {
455
+ "internalType": "string",
456
+ "name": "scriptTypeAndVersion",
457
+ "type": "string"
458
+ },
459
+ {
460
+ "internalType": "string",
461
+ "name": "aspectRatio",
462
+ "type": "string"
463
+ },
464
+ {
465
+ "internalType": "uint256",
466
+ "name": "scriptCount",
467
+ "type": "uint256"
468
+ }
469
+ ],
470
+ "stateMutability": "view",
471
+ "type": "function"
472
+ },
362
473
  {
363
474
  "inputs": [
364
475
  {
@@ -403,6 +514,25 @@
403
514
  "stateMutability": "view",
404
515
  "type": "function"
405
516
  },
517
+ {
518
+ "inputs": [
519
+ {
520
+ "internalType": "uint256",
521
+ "name": "_projectId",
522
+ "type": "uint256"
523
+ }
524
+ ],
525
+ "name": "projectURIInfo",
526
+ "outputs": [
527
+ {
528
+ "internalType": "string",
529
+ "name": "projectBaseURI",
530
+ "type": "string"
531
+ }
532
+ ],
533
+ "stateMutability": "view",
534
+ "type": "function"
535
+ },
406
536
  {
407
537
  "inputs": [
408
538
  {
@@ -421,6 +551,25 @@
421
551
  "stateMutability": "nonpayable",
422
552
  "type": "function"
423
553
  },
554
+ {
555
+ "inputs": [
556
+ {
557
+ "internalType": "uint256",
558
+ "name": "_tokenId",
559
+ "type": "uint256"
560
+ }
561
+ ],
562
+ "name": "tokenIdToHash",
563
+ "outputs": [
564
+ {
565
+ "internalType": "bytes32",
566
+ "name": "",
567
+ "type": "bytes32"
568
+ }
569
+ ],
570
+ "stateMutability": "view",
571
+ "type": "function"
572
+ },
424
573
  {
425
574
  "inputs": [
426
575
  {
@@ -413,6 +413,45 @@
413
413
  "stateMutability": "view",
414
414
  "type": "function"
415
415
  },
416
+ {
417
+ "inputs": [
418
+ {
419
+ "internalType": "uint256",
420
+ "name": "_projectId",
421
+ "type": "uint256"
422
+ }
423
+ ],
424
+ "name": "projectDetails",
425
+ "outputs": [
426
+ {
427
+ "internalType": "string",
428
+ "name": "projectName",
429
+ "type": "string"
430
+ },
431
+ {
432
+ "internalType": "string",
433
+ "name": "artist",
434
+ "type": "string"
435
+ },
436
+ {
437
+ "internalType": "string",
438
+ "name": "description",
439
+ "type": "string"
440
+ },
441
+ {
442
+ "internalType": "string",
443
+ "name": "website",
444
+ "type": "string"
445
+ },
446
+ {
447
+ "internalType": "string",
448
+ "name": "license",
449
+ "type": "string"
450
+ }
451
+ ],
452
+ "stateMutability": "view",
453
+ "type": "function"
454
+ },
416
455
  {
417
456
  "inputs": [
418
457
  {
@@ -470,6 +509,78 @@
470
509
  "stateMutability": "view",
471
510
  "type": "function"
472
511
  },
512
+ {
513
+ "inputs": [
514
+ {
515
+ "internalType": "uint256",
516
+ "name": "_projectId",
517
+ "type": "uint256"
518
+ }
519
+ ],
520
+ "name": "projectIdToSecondaryMarketRoyaltyPercentage",
521
+ "outputs": [
522
+ {
523
+ "internalType": "uint256",
524
+ "name": "",
525
+ "type": "uint256"
526
+ }
527
+ ],
528
+ "stateMutability": "view",
529
+ "type": "function"
530
+ },
531
+ {
532
+ "inputs": [
533
+ {
534
+ "internalType": "uint256",
535
+ "name": "_projectId",
536
+ "type": "uint256"
537
+ },
538
+ {
539
+ "internalType": "uint256",
540
+ "name": "_index",
541
+ "type": "uint256"
542
+ }
543
+ ],
544
+ "name": "projectScriptByIndex",
545
+ "outputs": [
546
+ {
547
+ "internalType": "string",
548
+ "name": "",
549
+ "type": "string"
550
+ }
551
+ ],
552
+ "stateMutability": "view",
553
+ "type": "function"
554
+ },
555
+ {
556
+ "inputs": [
557
+ {
558
+ "internalType": "uint256",
559
+ "name": "_projectId",
560
+ "type": "uint256"
561
+ }
562
+ ],
563
+ "name": "projectScriptDetails",
564
+ "outputs": [
565
+ {
566
+ "internalType": "string",
567
+ "name": "scriptTypeAndVersion",
568
+ "type": "string"
569
+ },
570
+ {
571
+ "internalType": "string",
572
+ "name": "aspectRatio",
573
+ "type": "string"
574
+ },
575
+ {
576
+ "internalType": "uint256",
577
+ "name": "scriptCount",
578
+ "type": "uint256"
579
+ }
580
+ ],
581
+ "stateMutability": "view",
582
+ "type": "function"
583
+ },
473
584
  {
474
585
  "inputs": [
475
586
  {
@@ -514,6 +625,25 @@
514
625
  "stateMutability": "view",
515
626
  "type": "function"
516
627
  },
628
+ {
629
+ "inputs": [
630
+ {
631
+ "internalType": "uint256",
632
+ "name": "_projectId",
633
+ "type": "uint256"
634
+ }
635
+ ],
636
+ "name": "projectURIInfo",
637
+ "outputs": [
638
+ {
639
+ "internalType": "string",
640
+ "name": "projectBaseURI",
641
+ "type": "string"
642
+ }
643
+ ],
644
+ "stateMutability": "view",
645
+ "type": "function"
646
+ },
517
647
  {
518
648
  "inputs": [],
519
649
  "name": "renderProviderPrimarySalesAddress",