@manifoldxyz/marketplace-sdk 1.0.1-beta.21 → 1.0.1-beta.22

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.
@@ -468,10 +468,12 @@ class MarketplaceListing {
468
468
  if (!this.listing) {
469
469
  throw new Error('Listing not loaded');
470
470
  }
471
+ console.log('refreshListingWithManifoldBridge');
471
472
  const listing = yield (0, Web3Protocol_1.callWeb3)(undefined,
472
473
  // @ts-expect-error TS2345: Argument of type 'Contract | undefined' is not assignable to parameter of type 'Contract'.
473
474
  this._getMarketplaceContract(false, false, true), 'getListing', [this.listing.id]);
474
475
  if (listing) {
476
+ console.log('listing available');
475
477
  if (this.listing.type == ListingType_1.default.DYNAMIC_PRICE ||
476
478
  this.listing.type == ListingType_1.default.FIXED_PRICE) {
477
479
  // @ts-expect-error Property 'totalSold' does not exist on type 'Listing'.ts(2339)
@@ -491,11 +493,13 @@ class MarketplaceListing {
491
493
  }
492
494
  const startTime = new Date(parseInt(listing.details.startTime) * 1000);
493
495
  if (startTime.getTime() == 0) {
496
+ console.log('Timer starts on first bid or purchase');
494
497
  // Timer starts on first bid or purchase
495
498
  this.listing.startTime = undefined;
496
499
  this.listing.duration = parseInt(listing.details.endTime);
497
500
  }
498
501
  else {
502
+ console.log('Timer starts on first bid or purchase 12312323');
499
503
  this.listing.startTime = startTime;
500
504
  this.listing.endTime = new Date(parseInt(listing.details.endTime) * 1000);
501
505
  this.listing.duration =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manifoldxyz/marketplace-sdk",
3
- "version": "1.0.1-beta.21",
3
+ "version": "1.0.1-beta.22",
4
4
  "typings": "dist/index.d.ts",
5
5
  "description": "",
6
6
  "main": "dist/index.js",