@zoralabs/protocol-sdk 0.11.3-COMMENTS.1 → 0.11.3-COMMENTS.4

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/dist/index.js CHANGED
@@ -2888,7 +2888,7 @@ function getTargetStrategy({
2888
2888
  (strategy) => parseSalesConfig(strategy, contractMintFee, blockTime)
2889
2889
  );
2890
2890
  const stillValidSalesStrategies = parsedStrategies.filter(
2891
- (strategy) => strategy.saleActive
2891
+ (strategy) => strategy.saleActive || strategy.secondaryMarketActive
2892
2892
  );
2893
2893
  const saleStrategies = stillValidSalesStrategies.sort(
2894
2894
  (a, b) => (a.saleEnd ?? 0n) > (b.saleEnd ?? 0n) ? 1 : -1
@@ -4374,7 +4374,8 @@ import { zoraCreator1155ImplABI as zoraCreator1155ImplABI5 } from "@zoralabs/pro
4374
4374
  import { encodeFunctionData as encodeFunctionData2, zeroAddress as zeroAddress5 } from "viem";
4375
4375
 
4376
4376
  // src/create/minter-defaults.ts
4377
- var DEFAULT_MINIMUM_MARKET_ETH = 2220000000000000n;
4377
+ import { parseEther as parseEther3 } from "viem";
4378
+ var DEFAULT_MINIMUM_MARKET_ETH = parseEther3("0.0123321");
4378
4379
  var DEFAULT_MARKET_COUNTDOWN = BigInt(24 * 60 * 60);
4379
4380
  var SALE_END_FOREVER = 18446744073709551615n;
4380
4381
  var DEFAULT_SALE_START_AND_END = {
@@ -4792,7 +4793,7 @@ var contractSupportsMintRewards = (contractVersion, contractStandard) => {
4792
4793
  };
4793
4794
 
4794
4795
  // src/create/mint-from-create.ts
4795
- import { parseEther as parseEther3, zeroAddress as zeroAddress6 } from "viem";
4796
+ import { parseEther as parseEther4, zeroAddress as zeroAddress6 } from "viem";
4796
4797
  async function toSalesStrategyFromSubgraph({
4797
4798
  minter,
4798
4799
  salesConfig,
@@ -4803,7 +4804,7 @@ async function toSalesStrategyFromSubgraph({
4803
4804
  saleType: "timed",
4804
4805
  address: minter,
4805
4806
  // for now we hardcode this
4806
- mintFeePerQuantity: parseEther3("0.000111"),
4807
+ mintFeePerQuantity: parseEther4("0.000111"),
4807
4808
  saleStart: salesConfig.saleStart.toString(),
4808
4809
  // the following are not needed for now but we wanna satisfy concrete
4809
4810
  erc20Z: zeroAddress6,
@@ -5024,7 +5025,7 @@ async function createNew1155ContractAndToken({
5024
5025
  royaltyBPS: token.royaltyBPS
5025
5026
  });
5026
5027
  const contractAddress = await getDeterministicContractAddress({
5027
- account,
5028
+ account: typeof account === "string" ? account : account.address,
5028
5029
  publicClient,
5029
5030
  setupActions: tokenSetupActions,
5030
5031
  chainId,
@@ -5113,7 +5114,7 @@ function prepareSetupActions({
5113
5114
  setupActions: tokenSetupActions
5114
5115
  } = constructCreate1155TokenCalls({
5115
5116
  chainId,
5116
- ownerAddress: account,
5117
+ ownerAddress: typeof account === "string" ? account : account.address,
5117
5118
  contractVersion,
5118
5119
  nextTokenId,
5119
5120
  ...token,