@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/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +22 -0
- package/dist/anvil.d.ts.map +1 -1
- package/dist/create/minter-defaults.d.ts +1 -1
- package/dist/create/minter-defaults.d.ts.map +1 -1
- package/dist/create/types.d.ts +1 -1
- package/dist/create/types.d.ts.map +1 -1
- package/dist/fixtures/contract-setup.d.ts +2 -0
- package/dist/fixtures/contract-setup.d.ts.map +1 -1
- package/dist/fixtures/secondary.d.ts +13 -0
- package/dist/fixtures/secondary.d.ts.map +1 -0
- package/dist/index.cjs +60 -59
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/preminter.d.ts +2 -2
- package/dist/preminter.d.ts.map +1 -1
- package/dist/test-utils.d.ts +1 -1
- package/dist/test-utils.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/comments/comments.test.ts +139 -19
- package/src/create/1155-create-helper.test.ts +6 -13
- package/src/create/1155-create-helper.ts +2 -2
- package/src/create/minter-defaults.ts +3 -4
- package/src/create/types.ts +1 -1
- package/src/fixtures/contract-setup.ts +4 -4
- package/src/fixtures/secondary.ts +69 -0
- package/src/mint/subgraph-mint-getter.ts +1 -1
- package/src/rewards/rewards-client.test.ts +2 -2
- package/src/secondary/secondary-client.test.ts +39 -70
- package/src/test-utils.ts +2 -0
- package/dist/create/1155-create-helper.test.d.ts +0 -3
- package/dist/create/1155-create-helper.test.d.ts.map +0 -1
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
|
-
|
|
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
|
|
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:
|
|
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,
|