@zoralabs/protocol-sdk 0.11.9 → 0.11.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @zoralabs/protocol-sdk@0.11.9 build /home/runner/work/zora-protocol-private/zora-protocol-private/packages/protocol-sdk
2
+ > @zoralabs/protocol-sdk@0.11.10 build /home/runner/work/zora-protocol-private/zora-protocol-private/packages/protocol-sdk
3
3
  > pnpm tsup
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -10,9 +10,9 @@ CLI Target: es2021
10
10
  CLI Cleaning output folder
11
11
  CJS Build start
12
12
  ESM Build start
13
- CJS dist/index.cjs 228.92 KB
14
- CJS dist/index.cjs.map 463.70 KB
15
- CJS ⚡️ Build success in 407ms
16
- ESM dist/index.js 222.63 KB
17
- ESM dist/index.js.map 461.86 KB
18
- ESM ⚡️ Build success in 407ms
13
+ CJS dist/index.cjs 229.00 KB
14
+ CJS dist/index.cjs.map 463.84 KB
15
+ CJS ⚡️ Build success in 457ms
16
+ ESM dist/index.js 222.71 KB
17
+ ESM dist/index.js.map 462.00 KB
18
+ ESM ⚡️ Build success in 463ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @zoralabs/protocol-sdk
2
2
 
3
+ ## 0.11.10
4
+
5
+ ### Patch Changes
6
+
7
+ - a1137e35: saleStart defaults to current timestamp in seconds
8
+ - Updated dependencies [abbd6333]
9
+ - @zoralabs/protocol-deployments@0.3.10
10
+
3
11
  ## 0.11.9
4
12
 
5
13
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -4463,28 +4463,28 @@ var import_viem7 = require("viem");
4463
4463
  var DEFAULT_MINIMUM_MARKET_ETH = (0, import_viem7.parseEther)("0.0123321");
4464
4464
  var DEFAULT_MARKET_COUNTDOWN = BigInt(24 * 60 * 60);
4465
4465
  var SALE_END_FOREVER = 18446744073709551615n;
4466
- var DEFAULT_SALE_START_AND_END = {
4467
- // Sale start time – defaults to beginning of unix time
4468
- saleStart: 0n,
4466
+ var DEFAULT_SALE_START_AND_END = () => ({
4467
+ // Sale start time – defaults to current time in seconds
4468
+ saleStart: BigInt(Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3)),
4469
4469
  // This is the end of uint64, plenty of time
4470
4470
  saleEnd: SALE_END_FOREVER
4471
- };
4471
+ });
4472
4472
  var DEFAULT_MAX_TOKENS_PER_ADDRESS = {
4473
4473
  maxTokensPerAddress: 0n
4474
4474
  };
4475
4475
  var erc20SaleSettingsWithDefaults = (params) => ({
4476
- ...DEFAULT_SALE_START_AND_END,
4476
+ ...DEFAULT_SALE_START_AND_END(),
4477
4477
  ...DEFAULT_MAX_TOKENS_PER_ADDRESS,
4478
4478
  ...params
4479
4479
  });
4480
4480
  var allowListWithDefaults = (allowlist) => {
4481
4481
  return {
4482
- ...DEFAULT_SALE_START_AND_END,
4482
+ ...DEFAULT_SALE_START_AND_END(),
4483
4483
  ...allowlist
4484
4484
  };
4485
4485
  };
4486
4486
  var fixedPriceSettingsWithDefaults = (params) => ({
4487
- ...DEFAULT_SALE_START_AND_END,
4487
+ ...DEFAULT_SALE_START_AND_END(),
4488
4488
  ...DEFAULT_MAX_TOKENS_PER_ADDRESS,
4489
4489
  type: "fixedPrice",
4490
4490
  ...params