@zoralabs/protocol-sdk 0.5.0 → 0.5.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 (79) hide show
  1. package/.turbo/turbo-build.log +7 -7
  2. package/CHANGELOG.md +19 -0
  3. package/dist/anvil.d.ts.map +1 -0
  4. package/dist/apis/chain-constants.d.ts.map +1 -0
  5. package/dist/apis/client-base.d.ts.map +1 -0
  6. package/dist/apis/generated/premint-api-types.d.ts.map +1 -0
  7. package/dist/apis/http-api-base.d.ts.map +1 -0
  8. package/dist/constants.d.ts.map +1 -0
  9. package/dist/create/1155-create-helper.d.ts.map +1 -0
  10. package/dist/index.cjs +34 -34
  11. package/dist/index.cjs.map +1 -1
  12. package/dist/index.d.ts.map +1 -0
  13. package/dist/index.js +5 -5
  14. package/dist/index.js.map +1 -1
  15. package/dist/mint/mint-api-client.d.ts.map +1 -0
  16. package/dist/mint/mint-client.d.ts.map +1 -0
  17. package/dist/{src/premint → premint}/contract-types.d.ts +1 -1
  18. package/dist/premint/contract-types.d.ts.map +1 -0
  19. package/dist/premint/conversions.d.ts.map +1 -0
  20. package/dist/premint/premint-api-client.d.ts.map +1 -0
  21. package/dist/{src/premint → premint}/premint-client.d.ts +1 -1
  22. package/dist/premint/premint-client.d.ts.map +1 -0
  23. package/dist/{src/premint → premint}/preminter.d.ts +1 -1
  24. package/dist/premint/preminter.d.ts.map +1 -0
  25. package/dist/{src/preminter.d.ts → preminter.d.ts} +1 -1
  26. package/dist/preminter.d.ts.map +1 -0
  27. package/dist/types.d.ts.map +1 -0
  28. package/package.json +2 -2
  29. package/src/apis/chain-constants.ts +1 -1
  30. package/src/create/1155-create-helper.ts +1 -1
  31. package/src/mint/mint-client.test.ts +1 -1
  32. package/src/mint/mint-client.ts +1 -1
  33. package/src/premint/contract-types.ts +1 -1
  34. package/src/premint/premint-client.ts +1 -1
  35. package/src/premint/preminter.test.ts +1 -1
  36. package/src/premint/preminter.ts +1 -1
  37. package/src/preminter.ts +1 -1
  38. package/tsconfig.build.json +10 -0
  39. package/tsup.config.js +2 -1
  40. package/dist/src/anvil.d.ts.map +0 -1
  41. package/dist/src/apis/chain-constants.d.ts.map +0 -1
  42. package/dist/src/apis/client-base.d.ts.map +0 -1
  43. package/dist/src/apis/generated/premint-api-types.d.ts.map +0 -1
  44. package/dist/src/apis/http-api-base.d.ts.map +0 -1
  45. package/dist/src/constants.d.ts.map +0 -1
  46. package/dist/src/create/1155-create-helper.d.ts.map +0 -1
  47. package/dist/src/create/1155-create-helper.test.d.ts +0 -2
  48. package/dist/src/create/1155-create-helper.test.d.ts.map +0 -1
  49. package/dist/src/index.d.ts.map +0 -1
  50. package/dist/src/mint/mint-api-client.d.ts.map +0 -1
  51. package/dist/src/mint/mint-client.d.ts.map +0 -1
  52. package/dist/src/mint/mint-client.test.d.ts +0 -2
  53. package/dist/src/mint/mint-client.test.d.ts.map +0 -1
  54. package/dist/src/premint/contract-types.d.ts.map +0 -1
  55. package/dist/src/premint/conversions.d.ts.map +0 -1
  56. package/dist/src/premint/premint-api-client.d.ts.map +0 -1
  57. package/dist/src/premint/premint-client.d.ts.map +0 -1
  58. package/dist/src/premint/premint-client.test.d.ts +0 -2
  59. package/dist/src/premint/premint-client.test.d.ts.map +0 -1
  60. package/dist/src/premint/preminter.d.ts.map +0 -1
  61. package/dist/src/premint/preminter.test.d.ts +0 -2
  62. package/dist/src/premint/preminter.test.d.ts.map +0 -1
  63. package/dist/src/preminter.d.ts.map +0 -1
  64. package/dist/src/types.d.ts.map +0 -1
  65. package/dist/test-integration/premint-client.test.d.ts +0 -2
  66. package/dist/test-integration/premint-client.test.d.ts.map +0 -1
  67. /package/dist/{src/anvil.d.ts → anvil.d.ts} +0 -0
  68. /package/dist/{src/apis → apis}/chain-constants.d.ts +0 -0
  69. /package/dist/{src/apis → apis}/client-base.d.ts +0 -0
  70. /package/dist/{src/apis → apis}/generated/premint-api-types.d.ts +0 -0
  71. /package/dist/{src/apis → apis}/http-api-base.d.ts +0 -0
  72. /package/dist/{src/constants.d.ts → constants.d.ts} +0 -0
  73. /package/dist/{src/create → create}/1155-create-helper.d.ts +0 -0
  74. /package/dist/{src/index.d.ts → index.d.ts} +0 -0
  75. /package/dist/{src/mint → mint}/mint-api-client.d.ts +0 -0
  76. /package/dist/{src/mint → mint}/mint-client.d.ts +0 -0
  77. /package/dist/{src/premint → premint}/conversions.d.ts +0 -0
  78. /package/dist/{src/premint → premint}/premint-api-client.d.ts +0 -0
  79. /package/dist/{src/types.d.ts → types.d.ts} +0 -0
@@ -1,16 +1,16 @@
1
1
  warning package.json: "dependencies" has dependency "vite" with range "4.5.0" that collides with a dependency in "devDependencies" of the same name with version "^4.5.0"
2
2
  $ tsup
3
3
  CLI Building entry: src/index.ts
4
- CLI Using tsconfig: tsconfig.json
4
+ CLI Using tsconfig: tsconfig.build.json
5
5
  CLI tsup v7.3.0
6
6
  CLI Using tsup config: /home/runner/work/zora-protocol-private/zora-protocol-private/packages/protocol-sdk/tsup.config.js
7
7
  CLI Target: es2021
8
8
  CLI Cleaning output folder
9
9
  CJS Build start
10
10
  ESM Build start
11
- CJS dist/index.cjs 50.09 KB
12
- CJS dist/index.cjs.map 96.94 KB
13
- CJS ⚡️ Build success in 85ms
14
- ESM dist/index.js 46.17 KB
15
- ESM dist/index.js.map 97.00 KB
16
- ESM ⚡️ Build success in 85ms
11
+ ESM dist/index.js 46.16 KB
12
+ ESM dist/index.js.map 96.98 KB
13
+ ESM ⚡️ Build success in 54ms
14
+ CJS dist/index.cjs 49.78 KB
15
+ CJS dist/index.cjs.map 96.89 KB
16
+ CJS ⚡️ Build success in 55ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @zoralabs/protocol-sdk
2
2
 
3
+ ## 0.5.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 5c536dc: Update optimism eth constant
8
+ - Updated dependencies [f3332ee]
9
+ - Updated dependencies [d2085fd]
10
+ - Updated dependencies [a51a0cb]
11
+ - @zoralabs/1155-deployments@0.0.13
12
+
13
+ ## 0.5.1
14
+
15
+ ### Patch Changes
16
+
17
+ - 73070c0:
18
+ - Fix types export - make sure that types are exported to the correct directory. Broken by commit 627f8c37716f0b5c201f75ab1d025ae878be0ae29e7a269d21185fa04e4bcf93
19
+ - Exclude tests from built bundle
20
+ - Fixes #396
21
+
3
22
  ## 0.5.0
4
23
 
5
24
  ### Minor Changes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"anvil.d.ts","sourceRoot":"","sources":["../src/anvil.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,EACL,YAAY,EACZ,UAAU,EACV,YAAY,EAKb,MAAM,MAAM,CAAC;AAGd,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE;QACX,YAAY,EAAE,YAAY,CAAC;QAC3B,YAAY,EAAE,YAAY,CAAC;QAC3B,UAAU,EAAE,UAAU,CAAC;QACvB,KAAK,EAAE,KAAK,CAAC;KACd,CAAC;CACH;AAUD,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,aAAa,gDAIvB,qBAAqB;;sBAzBN,YAAY;sBACZ,YAAY;oBACd,UAAU;eACf,KAAK;;EA8EZ,CAAC;AAEL,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAEF,eAAO,MAAM,SAAS;;sBAzFJ,YAAY;sBACZ,YAAY;oBACd,UAAU;eACf,KAAK;;EA0Fd,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chain-constants.d.ts","sourceRoot":"","sources":["../../src/apis/chain-constants.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAIhE,KAAK,gBAAgB,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,CAAC;AAE3D,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,wBAAwB,EAAE,MAAM,CAAC;IACjC,oBAAoB,EAAE,gBAAgB,CAAC;IACvC,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAyB,CAAC;AAEvD,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAuE9D,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-base.d.ts","sourceRoot":"","sources":["../../src/apis/client-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,YAAY,EAA4B,MAAM,MAAM,CAAC;AACrE,OAAO,EAAE,aAAa,EAAwB,MAAM,mBAAmB,CAAC;AAExE,8BAAsB,UAAU;IAC9B,OAAO,EAAE,aAAa,CAAC;IACvB,KAAK,EAAE,KAAK,CAAC;gBAED,KAAK,EAAE,KAAK;IASxB;;;;;OAKG;IACH,SAAS,CAAC,eAAe,CAAC,YAAY,CAAC,EAAE,YAAY,GAAG,YAAY;CAMrE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"premint-api-types.d.ts","sourceRoot":"","sources":["../../../src/apis/generated/premint-api-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,KAAK;IACpB,YAAY,EAAE;QACZ,+BAA+B;QAC/B,IAAI,EAAE,UAAU,CAAC,yCAAyC,CAAC,CAAC;KAC7D,CAAC;IACF,8CAA8C,EAAE;QAC9C,4CAA4C;QAC5C,GAAG,EAAE,UAAU,CAAC,uFAAuF,CAAC,CAAC;KAC1G,CAAC;IACF,uDAAuD,EAAE;QACvD,mBAAmB;QACnB,GAAG,EAAE,UAAU,CAAC,uEAAuE,CAAC,CAAC;KAC1F,CAAC;IACF,oDAAoD,EAAE;QACpD,4BAA4B;QAC5B,GAAG,EAAE,UAAU,CAAC,6EAA6E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AAkB,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,qBAAqB,CAAC,CAAC;iBAClE,CAAC;aACH,CAAC;SACH,CAAC;KACH,CAAC;CACH"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-api-base.d.ts","sourceRoot":"","sources":["../../src/apis/http-api-base.ts"],"names":[],"mappings":"AAAA,qBAAa,gBAAgB,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,KAAK;IAClD,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,CAAC,CAAC;gBACI,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG;CAMvD;AAQD;;;;;;;GAOG;AACH,eAAO,MAAM,GAAG,WAAkB,MAAM,eAcvC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,IAAI,WAAkB,MAAM,QAAQ,GAAG,eAqBnD,CAAC;AAEF,eAAO,MAAM,OAAO,iCAER,MAAM,UACT,MAAM,oBACI,MAAM,eAexB,CAAC;AAEF,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,OAAO,GAAG,CAAC;IAChB,IAAI,EAAE,OAAO,IAAI,CAAC;IAClB,OAAO,EAAE,OAAO,OAAO,CAAC;CACzB;AAED,eAAO,MAAM,UAAU,EAAE,WAIxB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,yBAAyB,CAAC;AACpD,eAAO,MAAM,sBAAsB,QAAiC,CAAC;AAMrE,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAEjE;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGZ,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1155-create-helper.d.ts","sourceRoot":"","sources":["../../src/create/1155-create-helper.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G;IAC9B,OAAO,EAAE,0BAA0B,CAAC;IACpC,iBAAiB,EAAE,GAAG,EAAE,CAAC;IACzB,eAAe,EAAE,OAAO,CAAC;IACzB,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,EACtC,YAAY,GACb,EAAE;IACD,YAAY,EAAE,YAAY,CAAC;CAC5B;;iBAWY,OAAO;;;;kBAIN,YAAY;0BACJ,MAAM;;;4CAGW;YACjC,OAAO,EAAE,MAAM,CAAC;YAChB,eAAe,EAAE,OAAO,CAAC;SAC1B,KAAK,GAAG,EAAE;UACT,QAAQ,wBAAwB,CAAC;EAgGtC"}
package/dist/index.cjs CHANGED
@@ -67,10 +67,10 @@ module.exports = __toCommonJS(src_exports);
67
67
 
68
68
  // src/premint/premint-client.ts
69
69
  var import_viem4 = require("viem");
70
- var import_protocol_deployments2 = require("@zoralabs/protocol-deployments");
70
+ var import_deployments2 = require("@zoralabs/1155-deployments");
71
71
 
72
72
  // src/premint/preminter.ts
73
- var import_protocol_deployments = require("@zoralabs/protocol-deployments");
73
+ var import_deployments = require("@zoralabs/1155-deployments");
74
74
  var import_viem = require("viem");
75
75
 
76
76
  // src/premint/contract-types.ts
@@ -130,7 +130,7 @@ var PremintConfigVersion = /* @__PURE__ */ ((PremintConfigVersion2) => {
130
130
  })(PremintConfigVersion || {});
131
131
 
132
132
  // src/premint/preminter.ts
133
- var getPremintExecutorAddress = () => import_protocol_deployments.zoraCreator1155PremintExecutorImplAddress[999];
133
+ var getPremintExecutorAddress = () => import_deployments.zoraCreator1155PremintExecutorImplAddress[999];
134
134
  var premintTypedDataDefinition = ({
135
135
  verifyingContract,
136
136
  chainId,
@@ -167,7 +167,7 @@ async function isAuthorizedToCreatePremint({
167
167
  signer
168
168
  }) {
169
169
  return await publicClient.readContract({
170
- abi: import_protocol_deployments.zoraCreator1155PremintExecutorImplABI,
170
+ abi: import_deployments.zoraCreator1155PremintExecutorImplABI,
171
171
  address: getPremintExecutorAddress(),
172
172
  functionName: "isAuthorizedToCreatePremint",
173
173
  args: [signer, collection.contractAdmin, collectionAddress]
@@ -283,7 +283,7 @@ var supportedPremintVersions = async ({
283
283
  publicClient
284
284
  }) => {
285
285
  return await publicClient.readContract({
286
- abi: import_protocol_deployments.zoraCreator1155PremintExecutorImplABI,
286
+ abi: import_deployments.zoraCreator1155PremintExecutorImplABI,
287
287
  address: getPremintExecutorAddress(),
288
288
  functionName: "supportedPremintSignatureVersions",
289
289
  args: [tokenContract]
@@ -302,7 +302,7 @@ async function getPremintCollectionAddress({
302
302
  }) {
303
303
  return publicClient.readContract({
304
304
  address: getPremintExecutorAddress(),
305
- abi: import_protocol_deployments.zoraCreator1155PremintExecutorImplABI,
305
+ abi: import_deployments.zoraCreator1155PremintExecutorImplABI,
306
306
  functionName: "getContractAddress",
307
307
  args: [collection]
308
308
  });
@@ -350,7 +350,7 @@ async function getPremintMintFee({
350
350
  try {
351
351
  return await publicClient.readContract({
352
352
  address: getPremintExecutorAddress(),
353
- abi: import_protocol_deployments.zoraCreator1155PremintExecutorImplABI,
353
+ abi: import_deployments.zoraCreator1155PremintExecutorImplABI,
354
354
  functionName: "mintFee",
355
355
  args: [tokenContract]
356
356
  });
@@ -379,7 +379,7 @@ function makeMintRewardsRecipient({
379
379
  return [mintReferral, platformReferral];
380
380
  }
381
381
  function getDefaultFixedPriceMinterAddress(chainId) {
382
- return import_protocol_deployments.zoraCreatorFixedPriceSaleStrategyAddress[chainId];
382
+ return import_deployments.zoraCreatorFixedPriceSaleStrategyAddress[chainId];
383
383
  }
384
384
 
385
385
  // src/apis/http-api-base.ts
@@ -512,7 +512,7 @@ var networkConfigByChain = {
512
512
  [import_chains.optimism.id]: {
513
513
  chainId: import_chains.optimism.id,
514
514
  isTestnet: false,
515
- zoraCollectPathChainName: "opt",
515
+ zoraCollectPathChainName: "oeth",
516
516
  zoraBackendChainName: "OPTIMISM-MAINNET",
517
517
  subgraphUrl: getSubgraph("zora-create-optimism", "stable")
518
518
  },
@@ -851,7 +851,7 @@ function getPremintedLogFromReceipt(receipt) {
851
851
  for (const data of receipt.logs) {
852
852
  try {
853
853
  const decodedLog = (0, import_viem4.decodeEventLog)({
854
- abi: import_protocol_deployments2.zoraCreator1155PremintExecutorImplABI,
854
+ abi: import_deployments2.zoraCreator1155PremintExecutorImplABI,
855
855
  eventName: "PremintedV2",
856
856
  ...data
857
857
  });
@@ -1163,7 +1163,7 @@ var PremintClient = class {
1163
1163
  if (premintConfigVersion === "1" /* V1 */) {
1164
1164
  return {
1165
1165
  account: minterAccount,
1166
- abi: import_protocol_deployments2.zoraCreator1155PremintExecutorImplABI,
1166
+ abi: import_deployments2.zoraCreator1155PremintExecutorImplABI,
1167
1167
  functionName: "premintV1",
1168
1168
  value,
1169
1169
  address: getPremintExecutorAddress(),
@@ -1178,7 +1178,7 @@ var PremintClient = class {
1178
1178
  } else if (premintConfigVersion === "2" /* V2 */) {
1179
1179
  return {
1180
1180
  account: minterAccount,
1181
- abi: import_protocol_deployments2.zoraCreator1155PremintExecutorImplABI,
1181
+ abi: import_deployments2.zoraCreator1155PremintExecutorImplABI,
1182
1182
  functionName: "premintV2",
1183
1183
  value,
1184
1184
  address: getPremintExecutorAddress(),
@@ -1267,7 +1267,7 @@ async function signAndSubmitPremint({
1267
1267
 
1268
1268
  // src/mint/mint-client.ts
1269
1269
  var import_viem5 = require("viem");
1270
- var import_protocol_deployments3 = require("@zoralabs/protocol-deployments");
1270
+ var import_deployments3 = require("@zoralabs/1155-deployments");
1271
1271
  var MintError = class extends Error {
1272
1272
  };
1273
1273
  var MintInactiveError = class extends Error {
@@ -1380,14 +1380,14 @@ async function makePrepareMint1155TokenParams({
1380
1380
  quantityToMint: mintQuantity
1381
1381
  }).totalCost;
1382
1382
  const result = {
1383
- abi: import_protocol_deployments3.zoraCreator1155ImplABI,
1383
+ abi: import_deployments3.zoraCreator1155ImplABI,
1384
1384
  functionName: "mintWithRewards",
1385
1385
  account: minterAccount,
1386
1386
  value: mintValue,
1387
1387
  address: tokenAddress,
1388
1388
  /* args: minter, tokenId, quantity, minterArguments, mintReferral */
1389
1389
  args: [
1390
- salesConfigAndTokenInfo?.fixedPrice.address || import_protocol_deployments3.zoraCreatorFixedPriceSaleStrategyAddress[999],
1390
+ salesConfigAndTokenInfo?.fixedPrice.address || import_deployments3.zoraCreatorFixedPriceSaleStrategyAddress[999],
1391
1391
  BigInt(tokenId),
1392
1392
  mintQuantity,
1393
1393
  (0, import_viem5.encodeAbiParameters)((0, import_viem5.parseAbiParameters)("address, string"), [
@@ -1401,7 +1401,7 @@ async function makePrepareMint1155TokenParams({
1401
1401
  }
1402
1402
 
1403
1403
  // src/create/1155-create-helper.ts
1404
- var import_protocol_deployments4 = require("@zoralabs/protocol-deployments");
1404
+ var import_deployments4 = require("@zoralabs/1155-deployments");
1405
1405
  var import_viem6 = require("viem");
1406
1406
  var SALE_END_FOREVER = 18446744073709551615n;
1407
1407
  var ROYALTY_BPS_DEFAULT = 1e3;
@@ -1446,32 +1446,32 @@ function create1155TokenSetupArgs({
1446
1446
  };
1447
1447
  const setupActions = [
1448
1448
  (0, import_viem6.encodeFunctionData)({
1449
- abi: import_protocol_deployments4.zoraCreator1155ImplABI,
1449
+ abi: import_deployments4.zoraCreator1155ImplABI,
1450
1450
  functionName: "assumeLastTokenIdMatches",
1451
1451
  args: [nextTokenId - 1n]
1452
1452
  }),
1453
1453
  createReferral ? (0, import_viem6.encodeFunctionData)({
1454
- abi: import_protocol_deployments4.zoraCreator1155ImplABI,
1454
+ abi: import_deployments4.zoraCreator1155ImplABI,
1455
1455
  functionName: "setupNewTokenWithCreateReferral",
1456
1456
  args: [tokenMetadataURI, maxSupply, createReferral]
1457
1457
  }) : (0, import_viem6.encodeFunctionData)({
1458
- abi: import_protocol_deployments4.zoraCreator1155ImplABI,
1458
+ abi: import_deployments4.zoraCreator1155ImplABI,
1459
1459
  functionName: "setupNewToken",
1460
1460
  args: [tokenMetadataURI, maxSupply]
1461
1461
  }),
1462
1462
  (0, import_viem6.encodeFunctionData)({
1463
- abi: import_protocol_deployments4.zoraCreator1155ImplABI,
1463
+ abi: import_deployments4.zoraCreator1155ImplABI,
1464
1464
  functionName: "addPermission",
1465
1465
  args: [0n, fixedPriceMinterAddress, PERMISSION_BIT_MINTER]
1466
1466
  }),
1467
1467
  (0, import_viem6.encodeFunctionData)({
1468
- abi: import_protocol_deployments4.zoraCreator1155ImplABI,
1468
+ abi: import_deployments4.zoraCreator1155ImplABI,
1469
1469
  functionName: "callSale",
1470
1470
  args: [
1471
1471
  nextTokenId,
1472
1472
  fixedPriceMinterAddress,
1473
1473
  (0, import_viem6.encodeFunctionData)({
1474
- abi: import_protocol_deployments4.zoraCreatorFixedPriceSaleStrategyABI,
1474
+ abi: import_deployments4.zoraCreatorFixedPriceSaleStrategyABI,
1475
1475
  functionName: "setSale",
1476
1476
  args: [nextTokenId, salesConfigWithDefaults]
1477
1477
  })
@@ -1481,7 +1481,7 @@ function create1155TokenSetupArgs({
1481
1481
  if (mintToCreatorCount) {
1482
1482
  setupActions.push(
1483
1483
  (0, import_viem6.encodeFunctionData)({
1484
- abi: import_protocol_deployments4.zoraCreator1155ImplABI,
1484
+ abi: import_deployments4.zoraCreator1155ImplABI,
1485
1485
  functionName: "adminMint",
1486
1486
  args: [account, nextTokenId, mintToCreatorCount, "0x"]
1487
1487
  })
@@ -1490,7 +1490,7 @@ function create1155TokenSetupArgs({
1490
1490
  if (royaltySettings) {
1491
1491
  setupActions.push(
1492
1492
  (0, import_viem6.encodeFunctionData)({
1493
- abi: import_protocol_deployments4.zoraCreator1155ImplABI,
1493
+ abi: import_deployments4.zoraCreator1155ImplABI,
1494
1494
  functionName: "updateRoyaltiesForToken",
1495
1495
  args: [
1496
1496
  nextTokenId,
@@ -1509,7 +1509,7 @@ var getTokenIdFromCreateReceipt = (receipt) => {
1509
1509
  for (const data of receipt.logs) {
1510
1510
  try {
1511
1511
  const decodedLog = (0, import_viem6.decodeEventLog)({
1512
- abi: import_protocol_deployments4.zoraCreator1155ImplABI,
1512
+ abi: import_deployments4.zoraCreator1155ImplABI,
1513
1513
  eventName: "SetupNewToken",
1514
1514
  ...data
1515
1515
  });
@@ -1525,9 +1525,9 @@ async function getContractExists(publicClient, contract, account) {
1525
1525
  let contractExists = false;
1526
1526
  if (typeof contract !== "string") {
1527
1527
  contractAddress = await publicClient.readContract({
1528
- abi: import_protocol_deployments4.zoraCreator1155FactoryImplABI,
1528
+ abi: import_deployments4.zoraCreator1155FactoryImplABI,
1529
1529
  // Since this address is deterministic we can hardcode a chain id safely here.
1530
- address: import_protocol_deployments4.zoraCreator1155FactoryImplAddress[999],
1530
+ address: import_deployments4.zoraCreator1155FactoryImplAddress[999],
1531
1531
  functionName: "deterministicContractAddress",
1532
1532
  args: [
1533
1533
  account,
@@ -1538,7 +1538,7 @@ async function getContractExists(publicClient, contract, account) {
1538
1538
  });
1539
1539
  try {
1540
1540
  await publicClient.readContract({
1541
- abi: import_protocol_deployments4.zoraCreator1155ImplABI,
1541
+ abi: import_deployments4.zoraCreator1155ImplABI,
1542
1542
  address: contractAddress,
1543
1543
  functionName: "contractVersion"
1544
1544
  });
@@ -1573,14 +1573,14 @@ function create1155CreatorClient({
1573
1573
  let nextTokenId = 1n;
1574
1574
  if (contractExists) {
1575
1575
  nextTokenId = await publicClient.readContract({
1576
- abi: import_protocol_deployments4.zoraCreator1155ImplABI,
1576
+ abi: import_deployments4.zoraCreator1155ImplABI,
1577
1577
  functionName: "nextTokenId",
1578
1578
  address: contractAddress
1579
1579
  });
1580
1580
  }
1581
1581
  const fixedPriceMinterAddress = await publicClient.readContract({
1582
- abi: import_protocol_deployments4.zoraCreator1155FactoryImplABI,
1583
- address: import_protocol_deployments4.zoraCreator1155FactoryImplAddress[999],
1582
+ abi: import_deployments4.zoraCreator1155FactoryImplABI,
1583
+ address: import_deployments4.zoraCreator1155FactoryImplAddress[999],
1584
1584
  functionName: "fixedPriceMinter"
1585
1585
  });
1586
1586
  let tokenSetupActions = create1155TokenSetupArgs({
@@ -1604,10 +1604,10 @@ function create1155CreatorClient({
1604
1604
  }
1605
1605
  if (!contractExists && typeof contract !== "string") {
1606
1606
  const request = {
1607
- abi: import_protocol_deployments4.zoraCreator1155FactoryImplABI,
1607
+ abi: import_deployments4.zoraCreator1155FactoryImplABI,
1608
1608
  functionName: "createContractDeterministic",
1609
1609
  account,
1610
- address: import_protocol_deployments4.zoraCreator1155FactoryImplAddress[999],
1610
+ address: import_deployments4.zoraCreator1155FactoryImplAddress[999],
1611
1611
  args: [
1612
1612
  contract.uri,
1613
1613
  contract.name,
@@ -1629,7 +1629,7 @@ function create1155CreatorClient({
1629
1629
  };
1630
1630
  } else if (contractExists) {
1631
1631
  const request = {
1632
- abi: import_protocol_deployments4.zoraCreator1155ImplABI,
1632
+ abi: import_deployments4.zoraCreator1155ImplABI,
1633
1633
  functionName: "multicall",
1634
1634
  account,
1635
1635
  address: contractAddress,