@zoralabs/protocol-deployments 0.0.9 → 0.0.10

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.
@@ -10,14 +10,14 @@ $ wagmi generate
10
10
  ✔ Writing to package/wagmiGenerated.ts
11
11
  $ node script/bundle-chainConfigs.mjs && yarn prettier
12
12
  $ prettier --write 'package/**/*.ts' 'script/**/*.ts' 'wagmi.config.ts'
13
- package/batchPublish.test.ts 283ms
13
+ package/batchPublish.test.ts 349ms
14
14
  package/chainConfigs.ts 20ms
15
- package/deployment.ts 25ms
15
+ package/deployment.ts 17ms
16
16
  package/index.ts 4ms
17
- package/wagmiGenerated.ts 537ms
18
- script/copy-deployed-contracts.ts 51ms
19
- script/signDeploymentTransactions.ts 65ms
20
- wagmi.config.ts 16ms
17
+ package/wagmiGenerated.ts 712ms
18
+ script/copy-deployed-contracts.ts 71ms
19
+ script/signDeploymentTransactions.ts 58ms
20
+ wagmi.config.ts 26ms
21
21
  CLI Building entry: package/index.ts
22
22
  CLI Using tsconfig: tsconfig.json
23
23
  CLI tsup v7.2.0
@@ -26,9 +26,9 @@ wagmi.config.ts 16ms
26
26
  CLI Cleaning output folder
27
27
  CJS Build start
28
28
  ESM Build start
29
- ESM dist/index.js 98.36 KB
30
- ESM dist/index.js.map 193.58 KB
31
- ESM ⚡️ Build success in 36ms
32
- CJS dist/index.cjs 100.66 KB
33
- CJS dist/index.cjs.map 193.98 KB
34
- CJS ⚡️ Build success in 36ms
29
+ ESM dist/index.js 99.17 KB
30
+ ESM dist/index.js.map 195.01 KB
31
+ ESM ⚡️ Build success in 41ms
32
+ CJS dist/index.cjs 101.48 KB
33
+ CJS dist/index.cjs.map 195.41 KB
34
+ CJS ⚡️ Build success in 49ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @zoralabs/premint-sdk
2
2
 
3
+ ## 0.0.10
4
+
5
+ ### Patch Changes
6
+
7
+ - 68c70a9: Tie protocol deployments to v2.5.4 of 1155
8
+ - Updated dependencies [f0c380d]
9
+ - Updated dependencies [98e78d7]
10
+ - Updated dependencies [050b689]
11
+ - Updated dependencies [3f8b18f]
12
+ - @zoralabs/zora-1155-contracts@2.6.0
13
+
3
14
  ## 0.0.9
4
15
 
5
16
  ### Patch Changes
package/addresses/5.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
- "CONTRACT_1155_IMPL": "0x455c9D3188A3Cd94aCDE8E5Ec90cA92FC10805EA",
3
- "CONTRACT_1155_IMPL_VERSION": "2.0.0",
4
- "UPGRADE_GATE": "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
5
- "FACTORY_IMPL": "0x9074Ae399235d26B56e3aF1331b033366E4FE072",
2
+ "CONTRACT_1155_IMPL": "0x1b315EB39dcDf0656b43F0fe8f0ce190e7A6e565",
3
+ "CONTRACT_1155_IMPL_VERSION": "2.5.4",
4
+ "FACTORY_IMPL": "0xc9cbc7bf48bEd2438352745D27b89FcEDEc702Ab",
6
5
  "FACTORY_PROXY": "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
7
6
  "FIXED_PRICE_SALE_STRATEGY": "0x04E2516A2c207E84a1839755675dfd8eF6302F0a",
8
7
  "MERKLE_MINT_SALE_STRATEGY": "0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7",
9
- "PREMINTER_IMPL": "0x6E2AbBcd82935bFC68A1d5d2c96372b13b65eD9C",
8
+ "PREMINTER_IMPL": "0x309B3614F6CF2E378c341992abD46be6E6e5d755",
10
9
  "PREMINTER_PROXY": "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
11
10
  "REDEEM_MINTER_FACTORY": "0x78964965cF77850224513a367f899435C5B69174",
12
- "timestamp": 1696361976,
13
- "commit": "a8eeef3"
11
+ "UPGRADE_GATE": "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
12
+ "timestamp": 1701986381,
13
+ "commit": "2e4b5e0"
14
14
  }
@@ -1,14 +1,15 @@
1
1
  {
2
- "CONTRACT_1155_IMPL": "0x91509707F397e357DCe975399Fc98bB58081Ad63",
3
- "CONTRACT_1155_IMPL_VERSION": "2.4.0",
4
- "FACTORY_IMPL": "0xAeAA622E522130676A8d5a4D04e28aC9Afb84536",
2
+ "CONTRACT_1155_IMPL": "0x7d42Ee84D377D37cfc9EbF10C3aEe56da326642d",
3
+ "CONTRACT_1155_IMPL_VERSION": "2.5.4",
4
+ "FACTORY_IMPL": "0x5c045b3DA075Db370F9951e2DD9D2521e4730b80",
5
5
  "FACTORY_PROXY": "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
6
6
  "FIXED_PRICE_SALE_STRATEGY": "0x04E2516A2c207E84a1839755675dfd8eF6302F0a",
7
+ "FIXED_PRICE_ALLOWED_MINTERS_STRATEGY": "0x61Cb091f8EC70029E393D31BA8F6D533c1308408",
7
8
  "MERKLE_MINT_SALE_STRATEGY": "0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7",
8
- "PREMINTER_IMPL": "0x6E2AbBcd82935bFC68A1d5d2c96372b13b65eD9C",
9
+ "PREMINTER_IMPL": "0x309B3614F6CF2E378c341992abD46be6E6e5d755",
9
10
  "PREMINTER_PROXY": "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
10
11
  "REDEEM_MINTER_FACTORY": "0x78964965cF77850224513a367f899435C5B69174",
11
12
  "UPGRADE_GATE": "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
12
- "timestamp": 1700159352,
13
- "commit": "295b20e9"
14
- }
13
+ "timestamp": 1701996109,
14
+ "commit": "ecf0562"
15
+ }
@@ -4,6 +4,7 @@
4
4
  "FACTORY_IMPL": "0xDcEDD6913D5A6f6e84B2b909409cb44BfC39C64A",
5
5
  "FACTORY_PROXY": "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
6
6
  "FIXED_PRICE_SALE_STRATEGY": "0x04E2516A2c207E84a1839755675dfd8eF6302F0a",
7
+ "FIXED_PRICE_ALLOWED_MINTERS_STRATEGY": "0x9b4aEDF0989B0AF7c5f7511F55d721E37384ca6E",
7
8
  "MERKLE_MINT_SALE_STRATEGY": "0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7",
8
9
  "PREMINTER_IMPL": "0x4380b302BCB4177AD59108C454C0fC220cB945a7",
9
10
  "PREMINTER_PROXY": "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
package/dist/index.cjs CHANGED
@@ -542,6 +542,7 @@ var zoraCreator1155ImplABI = [
542
542
  { name: "_protocolRewards", internalType: "address", type: "address" }
543
543
  ]
544
544
  },
545
+ { stateMutability: "payable", type: "receive" },
545
546
  {
546
547
  stateMutability: "view",
547
548
  type: "function",
@@ -584,6 +585,13 @@ var zoraCreator1155ImplABI = [
584
585
  name: "PERMISSION_BIT_SALES",
585
586
  outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
586
587
  },
588
+ {
589
+ stateMutability: "view",
590
+ type: "function",
591
+ inputs: [],
592
+ name: "PLATFORM_REFERRAL_REWARD_DEPOSIT_REASON",
593
+ outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }]
594
+ },
587
595
  {
588
596
  stateMutability: "nonpayable",
589
597
  type: "function",
@@ -711,7 +719,12 @@ var zoraCreator1155ImplABI = [
711
719
  internalType: "uint256",
712
720
  type: "uint256"
713
721
  },
714
- { name: "zoraReward", internalType: "uint256", type: "uint256" }
722
+ { name: "zoraReward", internalType: "uint256", type: "uint256" },
723
+ {
724
+ name: "platformReferralReward",
725
+ internalType: "uint256",
726
+ type: "uint256"
727
+ }
715
728
  ]
716
729
  }
717
730
  ]
@@ -743,7 +756,12 @@ var zoraCreator1155ImplABI = [
743
756
  internalType: "uint256",
744
757
  type: "uint256"
745
758
  },
746
- { name: "zoraReward", internalType: "uint256", type: "uint256" }
759
+ { name: "zoraReward", internalType: "uint256", type: "uint256" },
760
+ {
761
+ name: "platformReferralReward",
762
+ internalType: "uint256",
763
+ type: "uint256"
764
+ }
747
765
  ]
748
766
  }
749
767
  ]
@@ -973,6 +991,11 @@ var zoraCreator1155ImplABI = [
973
991
  { name: "minter", internalType: "contract IMinter1155", type: "address" },
974
992
  { name: "tokenId", internalType: "uint256", type: "uint256" },
975
993
  { name: "quantity", internalType: "uint256", type: "uint256" },
994
+ {
995
+ name: "rewardsRecipients",
996
+ internalType: "address[]",
997
+ type: "address[]"
998
+ },
976
999
  { name: "minterArguments", internalType: "bytes", type: "bytes" }
977
1000
  ],
978
1001
  name: "mint",
@@ -1036,6 +1059,15 @@ var zoraCreator1155ImplABI = [
1036
1059
  name: "permissions",
1037
1060
  outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
1038
1061
  },
1062
+ {
1063
+ stateMutability: "view",
1064
+ type: "function",
1065
+ inputs: [],
1066
+ name: "protocolRewards",
1067
+ outputs: [
1068
+ { name: "", internalType: "contract IProtocolRewards", type: "address" }
1069
+ ]
1070
+ },
1039
1071
  {
1040
1072
  stateMutability: "view",
1041
1073
  type: "function",
@@ -1293,16 +1325,6 @@ var zoraCreator1155ImplABI = [
1293
1325
  name: "withdraw",
1294
1326
  outputs: []
1295
1327
  },
1296
- {
1297
- stateMutability: "nonpayable",
1298
- type: "function",
1299
- inputs: [
1300
- { name: "to", internalType: "address", type: "address" },
1301
- { name: "amount", internalType: "uint256", type: "uint256" }
1302
- ],
1303
- name: "withdrawRewards",
1304
- outputs: []
1305
- },
1306
1328
  {
1307
1329
  type: "event",
1308
1330
  anonymous: false,
@@ -2659,6 +2681,7 @@ var zoraCreator1155PremintExecutorImplABI = [
2659
2681
  ],
2660
2682
  name: "Burn_NotOwnerOrApproved"
2661
2683
  },
2684
+ { type: "error", inputs: [], name: "CREATOR_FUNDS_RECIPIENT_NOT_SET" },
2662
2685
  {
2663
2686
  type: "error",
2664
2687
  inputs: [{ name: "reason", internalType: "bytes", type: "bytes" }],
@@ -2723,6 +2746,8 @@ var zoraCreator1155PremintExecutorImplABI = [
2723
2746
  inputs: [],
2724
2747
  name: "INITIALIZABLE_CONTRACT_IS_NOT_INITIALIZING"
2725
2748
  },
2749
+ { type: "error", inputs: [], name: "INVALID_ADDRESS_ZERO" },
2750
+ { type: "error", inputs: [], name: "INVALID_ETH_AMOUNT" },
2726
2751
  {
2727
2752
  type: "error",
2728
2753
  inputs: [
@@ -2742,6 +2767,7 @@ var zoraCreator1155PremintExecutorImplABI = [
2742
2767
  { type: "error", inputs: [], name: "MinterContractAlreadyExists" },
2743
2768
  { type: "error", inputs: [], name: "MinterContractDoesNotExist" },
2744
2769
  { type: "error", inputs: [], name: "NewOwnerNeedsToBeAdmin" },
2770
+ { type: "error", inputs: [], name: "ONLY_CREATE_REFERRAL" },
2745
2771
  { type: "error", inputs: [], name: "ONLY_OWNER" },
2746
2772
  { type: "error", inputs: [], name: "ONLY_PENDING_OWNER" },
2747
2773
  { type: "error", inputs: [], name: "OWNER_CANNOT_BE_ZERO_ADDRESS" },