@typus/typus-sdk 1.2.21 → 1.2.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.
@@ -366,7 +366,7 @@ function getMintHistory(provider, NFT_PACKAGE_UPGRADE, vrf_input) {
366
366
  switch (_a.label) {
367
367
  case 0:
368
368
  eventFilter = {
369
- MoveEventType: "".concat(NFT_PACKAGE_UPGRADE, "::discount_mint::DiscountEventV2"),
369
+ MoveEventType: "".concat(NFT_PACKAGE_UPGRADE, "::discount_mint::DiscountEventV3"),
370
370
  };
371
371
  return [4 /*yield*/, provider.queryEvents({ query: eventFilter, order: "descending" })];
372
372
  case 1:
@@ -35,3 +35,4 @@ export declare function getPayRoyaltyTx(tx: TransactionBlock, nftPackageId: stri
35
35
  )
36
36
  */
37
37
  export declare function getRequestMintTx(gasBudget: number, nftPackageId: string, pool: string, seed: string, price: string): Promise<TransactionBlock>;
38
+ export declare function getIsWhitelistTx(gasBudget: number, nftPackageId: string, pool: string, user: string): Promise<TransactionBlock>;
@@ -52,7 +52,7 @@ var __read = (this && this.__read) || function (o, n) {
52
52
  return ar;
53
53
  };
54
54
  Object.defineProperty(exports, "__esModule", { value: true });
55
- exports.getRequestMintTx = exports.getPayRoyaltyTx = exports.getMintToKioskTx = exports.getMintTx = void 0;
55
+ exports.getIsWhitelistTx = exports.getRequestMintTx = exports.getPayRoyaltyTx = exports.getMintToKioskTx = exports.getMintTx = void 0;
56
56
  var transactions_1 = require("@mysten/sui.js/transactions");
57
57
  var constants_1 = require("../../constants");
58
58
  /**
@@ -156,3 +156,19 @@ function getRequestMintTx(gasBudget, nftPackageId, pool, seed, price) {
156
156
  });
157
157
  }
158
158
  exports.getRequestMintTx = getRequestMintTx;
159
+ function getIsWhitelistTx(gasBudget, nftPackageId, pool, user) {
160
+ return __awaiter(this, void 0, void 0, function () {
161
+ var tx;
162
+ return __generator(this, function (_a) {
163
+ tx = new transactions_1.TransactionBlock();
164
+ tx.moveCall({
165
+ target: "".concat(nftPackageId, "::discount_mint::is_whitelist"),
166
+ typeArguments: [],
167
+ arguments: [tx.object(pool), tx.pure(user)],
168
+ });
169
+ tx.setGasBudget(gasBudget);
170
+ return [2 /*return*/, tx];
171
+ });
172
+ });
173
+ }
174
+ exports.getIsWhitelistTx = getIsWhitelistTx;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@typus/typus-sdk",
3
3
  "author": "Typus",
4
4
  "description": "typus sdk",
5
- "version": "1.2.21",
5
+ "version": "1.2.22",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.7.3",
8
8
  "@mysten/kiosk": "0.7.12",