@typus/typus-sdk 1.4.21 → 1.4.23

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.
@@ -40,7 +40,7 @@ exports.getAirdrop = getAirdrop;
40
40
  var transactions_1 = require("@mysten/sui.js/transactions");
41
41
  var client_1 = require("@mysten/sui.js/client");
42
42
  var bcs_1 = require("@mysten/bcs");
43
- var constants_1 = require("src/constants");
43
+ var constants_1 = require("../../constants");
44
44
  function getAirdrop(config, input) {
45
45
  return __awaiter(this, void 0, void 0, function () {
46
46
  var provider, transactionBlock, results, bytes, reader;
@@ -41,7 +41,7 @@ var transactions_1 = require("@mysten/sui.js/transactions");
41
41
  var client_1 = require("@mysten/sui.js/client");
42
42
  var bcs_1 = require("@mysten/bcs");
43
43
  var utils_1 = require("src/utils");
44
- var constants_1 = require("src/constants");
44
+ var constants_1 = require("../../constants");
45
45
  function getRankings(config, input) {
46
46
  return __awaiter(this, void 0, void 0, function () {
47
47
  var provider, transactionBlock, results, bytes, reader, result;
@@ -42,7 +42,7 @@ var transactions_1 = require("@mysten/sui.js/transactions");
42
42
  var client_1 = require("@mysten/sui.js/client");
43
43
  var bcs_1 = require("@mysten/bcs");
44
44
  var utils_1 = require("src/utils");
45
- var constants_1 = require("src/constants");
45
+ var constants_1 = require("../../constants");
46
46
  function getStakingInfo(config, input) {
47
47
  return __awaiter(this, void 0, void 0, function () {
48
48
  var provider, transactionBlock, results, bytes, reader, length;
@@ -40,7 +40,7 @@ exports.getUserMetadata = getUserMetadata;
40
40
  var transactions_1 = require("@mysten/sui.js/transactions");
41
41
  var client_1 = require("@mysten/sui.js/client");
42
42
  var bcs_1 = require("@mysten/bcs");
43
- var constants_1 = require("src/constants");
43
+ var constants_1 = require("../../constants");
44
44
  function getUserMetadata(config, input) {
45
45
  return __awaiter(this, void 0, void 0, function () {
46
46
  var provider, transactionBlock, results, bytes, reader;
@@ -54,7 +54,7 @@ exports.getVaultHistoryFromDB = getVaultHistoryFromDB;
54
54
  exports.convertGroupEventToVaultHistory = convertGroupEventToVaultHistory;
55
55
  exports.parseBidEvents = parseBidEvents;
56
56
  var client_1 = require("@mysten/sui.js/client");
57
- var constants_1 = require("src/constants");
57
+ var constants_1 = require("../../constants");
58
58
  function getVaultHistoryEvents(config, startTimeMs) {
59
59
  return __awaiter(this, void 0, void 0, function () {
60
60
  var provider, senderFilter, result, datas, hasNextPage, cursor, result;
@@ -6,7 +6,7 @@ exports.getTokenNewBidTx = getTokenNewBidTx;
6
6
  exports.getTokenExerciseTx = getTokenExerciseTx;
7
7
  exports.getTokenRebateTx = getTokenRebateTx;
8
8
  exports.getTokenCompoundWithRedeemTx = getTokenCompoundWithRedeemTx;
9
- var constants_1 = require("src/constants");
9
+ var constants_1 = require("../constants");
10
10
  function getTokenRaiseFundTx(config, tx, input) {
11
11
  var typusTokenRegistry = "";
12
12
  switch (input.typusTokenType.split("::")[1]) {
@@ -27,7 +27,7 @@ exports.getMultiTransferBidReceiptTx = getMultiTransferBidReceiptTx;
27
27
  exports.getRebateTx = getRebateTx;
28
28
  exports.getCompoundWithRedeemTx = getCompoundWithRedeemTx;
29
29
  var transactions_1 = require("@mysten/sui.js/transactions");
30
- var constants_1 = require("src/constants");
30
+ var constants_1 = require("../constants");
31
31
  /**
32
32
  public fun public_raise_fund<D_TOKEN, B_TOKEN>(
33
33
  typus_ecosystem_version: &TypusEcosystemVersion,
@@ -220,6 +220,7 @@ export declare function getMyBids(config: TypusConfig, input: {
220
220
  }>;
221
221
  export declare function getRefundShares(config: TypusConfig, input: {
222
222
  typeArguments: string[];
223
+ user: string;
223
224
  }): Promise<{
224
225
  [key: string]: string;
225
226
  }>;
@@ -62,7 +62,7 @@ var transactions_1 = require("@mysten/sui.js/transactions");
62
62
  var client_1 = require("@mysten/sui.js/client");
63
63
  var bcs_1 = require("@mysten/bcs");
64
64
  var utils_1 = require("src/utils");
65
- var constants_1 = require("src/constants");
65
+ var constants_1 = require("../constants");
66
66
  function getVaults(config, input) {
67
67
  return __awaiter(this, void 0, void 0, function () {
68
68
  var provider, transactionBlock, target, transactionBlockArguments, results, bytes, reader, result;
@@ -554,7 +554,7 @@ function getRefundShares(config, input) {
554
554
  });
555
555
  return [4 /*yield*/, provider.devInspectTransactionBlock({
556
556
  transactionBlock: transactionBlock,
557
- sender: constants_1.SENDER,
557
+ sender: input.user,
558
558
  })];
559
559
  case 1:
560
560
  results = (_a.sent()).results;
@@ -57,7 +57,7 @@ exports.getMintToKioskTx = getMintToKioskTx;
57
57
  exports.getPayRoyaltyTx = getPayRoyaltyTx;
58
58
  exports.getRequestMintTx = getRequestMintTx;
59
59
  exports.getIsWhitelistTx = getIsWhitelistTx;
60
- var constants_1 = require("src/constants");
60
+ var constants_1 = require("../constants");
61
61
  /**
62
62
  entry fun free_mint(
63
63
  pool: &mut Pool,
@@ -42,7 +42,7 @@ var transactions_1 = require("@mysten/sui.js/transactions");
42
42
  var client_1 = require("@mysten/sui.js/client");
43
43
  var bcs_1 = require("@mysten/bcs");
44
44
  var utils_1 = require("../utils");
45
- var constants_1 = require("src/constants");
45
+ var constants_1 = require("../constants");
46
46
  function getVaultData(config, input) {
47
47
  return __awaiter(this, void 0, void 0, function () {
48
48
  var provider, transactionBlock, results, bytes, reader, result;
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.4.21",
5
+ "version": "1.4.23",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.11.1",
8
8
  "@mysten/kiosk": "0.8.10",