@zoralabs/protocol-deployments 0.0.3 → 0.0.5-prerelease.0

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 (34) hide show
  1. package/.turbo/turbo-build.log +13 -13
  2. package/CHANGELOG.md +13 -0
  3. package/addresses/7777777.json +3 -3
  4. package/addresses/999.json +6 -6
  5. package/dist/index.cjs +76 -71
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.js +76 -68
  8. package/dist/index.js.map +1 -1
  9. package/dist/package/batchPublish.test.d.ts +16 -16
  10. package/dist/package/wagmiGenerated.d.ts +312 -201
  11. package/dist/package/wagmiGenerated.d.ts.map +1 -1
  12. package/package/wagmiGenerated.ts +76 -105
  13. package/package.json +2 -3
  14. package/script/CalculateDeterministicParams.s.sol +3 -3
  15. package/script/DeployMintersAndImplementations.s.sol +3 -3
  16. package/script/DeployNew1155Impl.s.sol +25 -0
  17. package/script/DeployNewImplementation.s.sol +3 -3
  18. package/script/DeployPreminterImpl.s.sol +3 -3
  19. package/script/DeployProxiesToNewChain.s.sol +4 -4
  20. package/script/DeployUpgradeGate.s.sol +5 -5
  21. package/script/Simulate1155Upgrade.s.sol +37 -0
  22. package/script/Upgrade.s.sol +3 -3
  23. package/script/UpgradePreminter.s.sol +3 -3
  24. package/src/DeploymentConfig.sol +124 -0
  25. package/src/DeploymentTestingUtils.sol +56 -0
  26. package/src/DeterministicDeployerScript.sol +253 -0
  27. package/src/DeterministicProxyDeployer.sol +139 -0
  28. package/src/IImmutableCreate2Factory.sol +59 -0
  29. package/src/ZoraDeployerBase.sol +144 -0
  30. package/src/ZoraDeployerUtils.sol +199 -0
  31. package/test/NewFactoryProxyDeployer.t.sol +4 -4
  32. package/test/ZoraCreator1155Factory_Fork.t.sol +1 -3
  33. package/test/ZoraCreator1155PremintExecutorForkTest.t.sol +1 -1
  34. package/wagmi.config.ts +1 -7
package/dist/index.js CHANGED
@@ -1,69 +1,4 @@
1
1
  // package/wagmiGenerated.ts
2
- var iImmutableCreate2FactoryABI = [
3
- {
4
- stateMutability: "view",
5
- type: "function",
6
- inputs: [
7
- { name: "salt", internalType: "bytes32", type: "bytes32" },
8
- { name: "initCode", internalType: "bytes", type: "bytes" }
9
- ],
10
- name: "findCreate2Address",
11
- outputs: [
12
- { name: "deploymentAddress", internalType: "address", type: "address" }
13
- ]
14
- },
15
- {
16
- stateMutability: "view",
17
- type: "function",
18
- inputs: [
19
- { name: "salt", internalType: "bytes32", type: "bytes32" },
20
- { name: "initCodeHash", internalType: "bytes32", type: "bytes32" }
21
- ],
22
- name: "findCreate2AddressViaHash",
23
- outputs: [
24
- { name: "deploymentAddress", internalType: "address", type: "address" }
25
- ]
26
- },
27
- {
28
- stateMutability: "view",
29
- type: "function",
30
- inputs: [
31
- { name: "deploymentAddress", internalType: "address", type: "address" }
32
- ],
33
- name: "hasBeenDeployed",
34
- outputs: [{ name: "", internalType: "bool", type: "bool" }]
35
- },
36
- {
37
- stateMutability: "payable",
38
- type: "function",
39
- inputs: [
40
- { name: "salt", internalType: "bytes32", type: "bytes32" },
41
- { name: "initializationCode", internalType: "bytes", type: "bytes" }
42
- ],
43
- name: "safeCreate2",
44
- outputs: [
45
- { name: "deploymentAddress", internalType: "address", type: "address" }
46
- ]
47
- }
48
- ];
49
- var iImmutableCreate2FactoryAddress = {
50
- 1: "0x0000000000FFe8B47B3e2130213B802212439497",
51
- 5: "0x0000000000FFe8B47B3e2130213B802212439497",
52
- 10: "0x0000000000FFe8B47B3e2130213B802212439497",
53
- 420: "0x0000000000FFe8B47B3e2130213B802212439497",
54
- 424: "0x0000000000FFe8B47B3e2130213B802212439497",
55
- 999: "0x0000000000FFe8B47B3e2130213B802212439497",
56
- 8453: "0x0000000000FFe8B47B3e2130213B802212439497",
57
- 58008: "0x0000000000FFe8B47B3e2130213B802212439497",
58
- 84531: "0x0000000000FFe8B47B3e2130213B802212439497",
59
- 7777777: "0x0000000000FFe8B47B3e2130213B802212439497",
60
- 11155111: "0x0000000000FFe8B47B3e2130213B802212439497",
61
- 999999999: "0x0000000000FFe8B47B3e2130213B802212439497"
62
- };
63
- var iImmutableCreate2FactoryConfig = {
64
- address: iImmutableCreate2FactoryAddress,
65
- abi: iImmutableCreate2FactoryABI
66
- };
67
2
  var zoraCreator1155FactoryImplABI = [
68
3
  {
69
4
  stateMutability: "nonpayable",
@@ -582,6 +517,7 @@ var zoraCreator1155ImplABI = [
582
517
  name: "CallFailed"
583
518
  },
584
519
  { type: "error", inputs: [], name: "Call_TokenIdMismatch" },
520
+ { type: "error", inputs: [], name: "CallerNotZoraCreator1155" },
585
521
  {
586
522
  type: "error",
587
523
  inputs: [
@@ -680,12 +616,23 @@ var zoraCreator1155ImplABI = [
680
616
  },
681
617
  { type: "error", inputs: [], name: "INVALID_ADDRESS_ZERO" },
682
618
  { type: "error", inputs: [], name: "INVALID_ETH_AMOUNT" },
619
+ {
620
+ type: "error",
621
+ inputs: [
622
+ { name: "mintTo", internalType: "address", type: "address" },
623
+ { name: "merkleProof", internalType: "bytes32[]", type: "bytes32[]" },
624
+ { name: "merkleRoot", internalType: "bytes32", type: "bytes32" }
625
+ ],
626
+ name: "InvalidMerkleProof"
627
+ },
683
628
  { type: "error", inputs: [], name: "InvalidMintSchedule" },
684
629
  { type: "error", inputs: [], name: "MintNotYetStarted" },
685
630
  { type: "error", inputs: [], name: "Mint_InsolventSaleTransfer" },
686
631
  { type: "error", inputs: [], name: "Mint_TokenIDMintNotAllowed" },
687
632
  { type: "error", inputs: [], name: "Mint_UnknownCommand" },
688
633
  { type: "error", inputs: [], name: "Mint_ValueTransferFail" },
634
+ { type: "error", inputs: [], name: "MinterContractAlreadyExists" },
635
+ { type: "error", inputs: [], name: "MinterContractDoesNotExist" },
689
636
  { type: "error", inputs: [], name: "NewOwnerNeedsToBeAdmin" },
690
637
  {
691
638
  type: "error",
@@ -709,6 +656,8 @@ var zoraCreator1155ImplABI = [
709
656
  name: "RendererNotValid"
710
657
  },
711
658
  { type: "error", inputs: [], name: "Renderer_NotValidRendererContract" },
659
+ { type: "error", inputs: [], name: "SaleEnded" },
660
+ { type: "error", inputs: [], name: "SaleHasNotStarted" },
712
661
  {
713
662
  type: "error",
714
663
  inputs: [
@@ -729,6 +678,15 @@ var zoraCreator1155ImplABI = [
729
678
  inputs: [],
730
679
  name: "UUPS_UPGRADEABLE_MUST_NOT_BE_CALLED_THROUGH_DELEGATECALL"
731
680
  },
681
+ {
682
+ type: "error",
683
+ inputs: [
684
+ { name: "user", internalType: "address", type: "address" },
685
+ { name: "limit", internalType: "uint256", type: "uint256" },
686
+ { name: "requestedAmount", internalType: "uint256", type: "uint256" }
687
+ ],
688
+ name: "UserExceedsMintLimit"
689
+ },
732
690
  {
733
691
  type: "error",
734
692
  inputs: [
@@ -738,6 +696,7 @@ var zoraCreator1155ImplABI = [
738
696
  ],
739
697
  name: "UserMissingRoleForToken"
740
698
  },
699
+ { type: "error", inputs: [], name: "WrongValueSent" },
741
700
  {
742
701
  type: "event",
743
702
  anonymous: false,
@@ -1984,6 +1943,7 @@ var zoraCreator1155PremintExecutorImplABI = [
1984
1943
  name: "CallFailed"
1985
1944
  },
1986
1945
  { type: "error", inputs: [], name: "Call_TokenIdMismatch" },
1946
+ { type: "error", inputs: [], name: "CallerNotZoraCreator1155" },
1987
1947
  {
1988
1948
  type: "error",
1989
1949
  inputs: [
@@ -2040,11 +2000,23 @@ var zoraCreator1155PremintExecutorImplABI = [
2040
2000
  inputs: [],
2041
2001
  name: "INITIALIZABLE_CONTRACT_IS_NOT_INITIALIZING"
2042
2002
  },
2003
+ {
2004
+ type: "error",
2005
+ inputs: [
2006
+ { name: "mintTo", internalType: "address", type: "address" },
2007
+ { name: "merkleProof", internalType: "bytes32[]", type: "bytes32[]" },
2008
+ { name: "merkleRoot", internalType: "bytes32", type: "bytes32" }
2009
+ ],
2010
+ name: "InvalidMerkleProof"
2011
+ },
2012
+ { type: "error", inputs: [], name: "InvalidMintSchedule" },
2043
2013
  { type: "error", inputs: [], name: "MintNotYetStarted" },
2044
2014
  { type: "error", inputs: [], name: "Mint_InsolventSaleTransfer" },
2045
2015
  { type: "error", inputs: [], name: "Mint_TokenIDMintNotAllowed" },
2046
2016
  { type: "error", inputs: [], name: "Mint_UnknownCommand" },
2047
2017
  { type: "error", inputs: [], name: "Mint_ValueTransferFail" },
2018
+ { type: "error", inputs: [], name: "MinterContractAlreadyExists" },
2019
+ { type: "error", inputs: [], name: "MinterContractDoesNotExist" },
2048
2020
  { type: "error", inputs: [], name: "NewOwnerNeedsToBeAdmin" },
2049
2021
  { type: "error", inputs: [], name: "ONLY_OWNER" },
2050
2022
  { type: "error", inputs: [], name: "ONLY_PENDING_OWNER" },
@@ -2060,6 +2032,8 @@ var zoraCreator1155PremintExecutorImplABI = [
2060
2032
  name: "ProtocolRewardsWithdrawFailed"
2061
2033
  },
2062
2034
  { type: "error", inputs: [], name: "Renderer_NotValidRendererContract" },
2035
+ { type: "error", inputs: [], name: "SaleEnded" },
2036
+ { type: "error", inputs: [], name: "SaleHasNotStarted" },
2063
2037
  {
2064
2038
  type: "error",
2065
2039
  inputs: [
@@ -2088,6 +2062,15 @@ var zoraCreator1155PremintExecutorImplABI = [
2088
2062
  ],
2089
2063
  name: "UpgradeToMismatchedContractName"
2090
2064
  },
2065
+ {
2066
+ type: "error",
2067
+ inputs: [
2068
+ { name: "user", internalType: "address", type: "address" },
2069
+ { name: "limit", internalType: "uint256", type: "uint256" },
2070
+ { name: "requestedAmount", internalType: "uint256", type: "uint256" }
2071
+ ],
2072
+ name: "UserExceedsMintLimit"
2073
+ },
2091
2074
  {
2092
2075
  type: "error",
2093
2076
  inputs: [
@@ -2097,6 +2080,7 @@ var zoraCreator1155PremintExecutorImplABI = [
2097
2080
  ],
2098
2081
  name: "UserMissingRoleForToken"
2099
2082
  },
2083
+ { type: "error", inputs: [], name: "WrongValueSent" },
2100
2084
  {
2101
2085
  type: "event",
2102
2086
  anonymous: false,
@@ -2625,6 +2609,18 @@ var zoraCreator1155PremintExecutorImplConfig = {
2625
2609
  abi: zoraCreator1155PremintExecutorImplABI
2626
2610
  };
2627
2611
  var zoraCreatorFixedPriceSaleStrategyABI = [
2612
+ { type: "error", inputs: [], name: "CallerNotZoraCreator1155" },
2613
+ {
2614
+ type: "error",
2615
+ inputs: [
2616
+ { name: "mintTo", internalType: "address", type: "address" },
2617
+ { name: "merkleProof", internalType: "bytes32[]", type: "bytes32[]" },
2618
+ { name: "merkleRoot", internalType: "bytes32", type: "bytes32" }
2619
+ ],
2620
+ name: "InvalidMerkleProof"
2621
+ },
2622
+ { type: "error", inputs: [], name: "MinterContractAlreadyExists" },
2623
+ { type: "error", inputs: [], name: "MinterContractDoesNotExist" },
2628
2624
  { type: "error", inputs: [], name: "SaleEnded" },
2629
2625
  { type: "error", inputs: [], name: "SaleHasNotStarted" },
2630
2626
  {
@@ -2863,6 +2859,7 @@ var zoraCreatorFixedPriceSaleStrategyConfig = {
2863
2859
  abi: zoraCreatorFixedPriceSaleStrategyABI
2864
2860
  };
2865
2861
  var zoraCreatorMerkleMinterStrategyABI = [
2862
+ { type: "error", inputs: [], name: "CallerNotZoraCreator1155" },
2866
2863
  {
2867
2864
  type: "error",
2868
2865
  inputs: [
@@ -2873,6 +2870,8 @@ var zoraCreatorMerkleMinterStrategyABI = [
2873
2870
  name: "InvalidMerkleProof"
2874
2871
  },
2875
2872
  { type: "error", inputs: [], name: "MerkleClaimsExceeded" },
2873
+ { type: "error", inputs: [], name: "MinterContractAlreadyExists" },
2874
+ { type: "error", inputs: [], name: "MinterContractDoesNotExist" },
2876
2875
  { type: "error", inputs: [], name: "SaleEnded" },
2877
2876
  { type: "error", inputs: [], name: "SaleHasNotStarted" },
2878
2877
  {
@@ -3076,8 +3075,20 @@ var zoraCreatorMerkleMinterStrategyConfig = {
3076
3075
  var zoraCreatorRedeemMinterFactoryABI = [
3077
3076
  { stateMutability: "nonpayable", type: "constructor", inputs: [] },
3078
3077
  { type: "error", inputs: [], name: "CallerNotZoraCreator1155" },
3078
+ {
3079
+ type: "error",
3080
+ inputs: [
3081
+ { name: "mintTo", internalType: "address", type: "address" },
3082
+ { name: "merkleProof", internalType: "bytes32[]", type: "bytes32[]" },
3083
+ { name: "merkleRoot", internalType: "bytes32", type: "bytes32" }
3084
+ ],
3085
+ name: "InvalidMerkleProof"
3086
+ },
3079
3087
  { type: "error", inputs: [], name: "MinterContractAlreadyExists" },
3080
3088
  { type: "error", inputs: [], name: "MinterContractDoesNotExist" },
3089
+ { type: "error", inputs: [], name: "SaleEnded" },
3090
+ { type: "error", inputs: [], name: "SaleHasNotStarted" },
3091
+ { type: "error", inputs: [], name: "WrongValueSent" },
3081
3092
  {
3082
3093
  type: "event",
3083
3094
  anonymous: false,
@@ -3291,9 +3302,6 @@ var chainConfigs = {
3291
3302
  };
3292
3303
  export {
3293
3304
  chainConfigs,
3294
- iImmutableCreate2FactoryABI,
3295
- iImmutableCreate2FactoryAddress,
3296
- iImmutableCreate2FactoryConfig,
3297
3305
  zoraCreator1155FactoryImplABI,
3298
3306
  zoraCreator1155FactoryImplAddress,
3299
3307
  zoraCreator1155FactoryImplConfig,