@typus/typus-sdk 1.0.121 → 1.0.122

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.
@@ -29,17 +29,17 @@ export declare function getWithdrawTx(gasBudget: number, packageId: string, type
29
29
  @param typeArguments [Deposit Vault Token]
30
30
  */
31
31
  export declare function getClaimTx(gasBudget: number, packageId: string, typeArguments: string[], registry: string, additional_config_registry: string, index: string): Promise<TransactionBlock>;
32
- export declare function getBatchClaimTx(gasBudget: number, packageId: string, registry: string, additional_config_registry: string, requests: [{
32
+ export declare function getBatchClaimTx(gasBudget: number, packageId: string, registry: string, additional_config_registry: string, requests: {
33
33
  typeArguments: string[];
34
34
  index: string;
35
- }]): Promise<TransactionBlock>;
36
- export declare function getBatchClaimHarvestTx(gasBudget: number, packageId: string, registry: string, additional_config_registry: string, claimRequests: [{
35
+ }[]): Promise<TransactionBlock>;
36
+ export declare function getBatchClaimHarvestTx(gasBudget: number, packageId: string, registry: string, additional_config_registry: string, claimRequests: {
37
37
  typeArguments: string[];
38
38
  index: string;
39
- }], harvestRequests: [{
39
+ }[], harvestRequests: {
40
40
  typeArguments: string[];
41
41
  index: string;
42
- }]): Promise<TransactionBlock>;
42
+ }[]): Promise<TransactionBlock>;
43
43
  /**
44
44
  public(friend) entry fun harvest<TOKEN>(
45
45
  registry: &mut Registry,
@@ -38,11 +38,11 @@ export declare function getUnsubscribeTx(gasBudget: number, typusFrameworkPackag
38
38
  ctx: &mut TxContext,
39
39
  )
40
40
  */
41
- export declare function getClaimTx(gasBudget: number, typusFrameworkPackageId: string, packageId: string, registry: string, requests: [{
41
+ export declare function getClaimTx(gasBudget: number, typusFrameworkPackageId: string, packageId: string, registry: string, requests: {
42
42
  typeArguments: string[];
43
43
  index: string;
44
44
  receipts: string[];
45
- }]): Promise<TransactionBlock>;
45
+ }[]): Promise<TransactionBlock>;
46
46
  /**
47
47
  public(friend) entry fun harvest<D_TOKEN, B_TOKEN, O_TOKEN>(
48
48
  registry: &mut Registry,
@@ -51,11 +51,11 @@ export declare function getClaimTx(gasBudget: number, typusFrameworkPackageId: s
51
51
  ctx: &mut TxContext,
52
52
  )
53
53
  */
54
- export declare function getHarvestTx(gasBudget: number, typusFrameworkPackageId: string, packageId: string, registry: string, requests: [{
54
+ export declare function getHarvestTx(gasBudget: number, typusFrameworkPackageId: string, packageId: string, registry: string, requests: {
55
55
  typeArguments: string[];
56
56
  index: string;
57
57
  receipts: string[];
58
- }]): Promise<TransactionBlock>;
58
+ }[]): Promise<TransactionBlock>;
59
59
  /**
60
60
  public(friend) entry fun compound<D_TOKEN, B_TOKEN, O_TOKEN>(
61
61
  registry: &mut Registry,
@@ -64,11 +64,11 @@ export declare function getHarvestTx(gasBudget: number, typusFrameworkPackageId:
64
64
  ctx: &mut TxContext,
65
65
  )
66
66
  */
67
- export declare function getCompoundTx(gasBudget: number, typusFrameworkPackageId: string, packageId: string, registry: string, requests: [{
67
+ export declare function getCompoundTx(gasBudget: number, typusFrameworkPackageId: string, packageId: string, registry: string, requests: {
68
68
  typeArguments: string[];
69
69
  index: string;
70
70
  receipts: string[];
71
- }]): Promise<TransactionBlock>;
71
+ }[]): Promise<TransactionBlock>;
72
72
  /**
73
73
  public(friend) entry fun new_bid<D_TOKEN, B_TOKEN, O_TOKEN>(
74
74
  registry: &mut Registry,
@@ -89,11 +89,11 @@ usingSponsoredGasCoin?: boolean): Promise<TransactionBlock>;
89
89
  ctx: &mut TxContext,
90
90
  )
91
91
  */
92
- export declare function getExerciseTx(gasBudget: number, typusFrameworkPackageId: string, packageId: string, registry: string, requests: [{
92
+ export declare function getExerciseTx(gasBudget: number, typusFrameworkPackageId: string, packageId: string, registry: string, requests: {
93
93
  typeArguments: string[];
94
94
  index: string;
95
95
  receipts: string[];
96
- }]): Promise<TransactionBlock>;
96
+ }[]): Promise<TransactionBlock>;
97
97
  /**
98
98
  public(friend) entry fun refund<TOKEN>(
99
99
  registry: &mut Registry,
@@ -54,6 +54,7 @@ var __read = (this && this.__read) || function (o, n) {
54
54
  Object.defineProperty(exports, "__esModule", { value: true });
55
55
  exports.getRefundTx = exports.getExerciseTx = exports.getNewBidTx = exports.getCompoundTx = exports.getHarvestTx = exports.getClaimTx = exports.getUnsubscribeTx = exports.getWithdrawTx = exports.getDepositTx = void 0;
56
56
  var sui_js_1 = require("@mysten/sui.js");
57
+ var constants_1 = require("../../constants");
57
58
  /**
58
59
  public(friend) entry fun deposit<D_TOKEN, B_TOKEN, O_TOKEN>(
59
60
  registry: &mut Registry,
@@ -75,10 +76,10 @@ function getDepositTx(gasBudget, typusFrameworkPackageId, packageId, typeArgumen
75
76
  typeArguments[0] == "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI")) {
76
77
  _a = __read(tx.splitCoins(tx.gas, [tx.pure(amount)]), 1), coin = _a[0];
77
78
  tx.moveCall({
78
- target: "".concat(packageId, "::typus_dov_single::deposit"),
79
+ target: "".concat(packageId, "::tails_staking::deposit"),
79
80
  typeArguments: typeArguments,
80
81
  arguments: [
81
- tx.pure(registry),
82
+ tx.object(registry),
82
83
  tx.pure(index),
83
84
  tx.makeMoveVec({ objects: [coin] }),
84
85
  tx.pure(amount),
@@ -86,15 +87,16 @@ function getDepositTx(gasBudget, typusFrameworkPackageId, packageId, typeArgumen
86
87
  type: "".concat(typusFrameworkPackageId, "::vault::TypusDepositReceipt"),
87
88
  objects: receipts.map(function (id) { return tx.object(id); }),
88
89
  }),
90
+ tx.pure(constants_1.CLOCK),
89
91
  ],
90
92
  });
91
93
  }
92
94
  else {
93
95
  tx.moveCall({
94
- target: "".concat(packageId, "::typus_dov_single::deposit"),
96
+ target: "".concat(packageId, "::tails_staking::deposit"),
95
97
  typeArguments: typeArguments,
96
98
  arguments: [
97
- tx.pure(registry),
99
+ tx.object(registry),
98
100
  tx.pure(index),
99
101
  tx.makeMoveVec({ objects: coins.map(function (id) { return tx.object(id); }) }),
100
102
  tx.pure(amount),
@@ -102,6 +104,7 @@ function getDepositTx(gasBudget, typusFrameworkPackageId, packageId, typeArgumen
102
104
  type: "".concat(typusFrameworkPackageId, "::vault::TypusDepositReceipt"),
103
105
  objects: receipts.map(function (id) { return tx.object(id); }),
104
106
  }),
107
+ tx.pure(constants_1.CLOCK),
105
108
  ],
106
109
  });
107
110
  }
@@ -126,16 +129,17 @@ function getWithdrawTx(gasBudget, typusFrameworkPackageId, packageId, typeArgume
126
129
  return __generator(this, function (_a) {
127
130
  tx = new sui_js_1.TransactionBlock();
128
131
  tx.moveCall({
129
- target: "".concat(packageId, "::typus_dov_single::withdraw"),
132
+ target: "".concat(packageId, "::tails_staking::withdraw"),
130
133
  typeArguments: typeArguments,
131
134
  arguments: [
132
- tx.pure(registry),
135
+ tx.object(registry),
133
136
  tx.pure(index),
134
137
  tx.makeMoveVec({
135
138
  type: "".concat(typusFrameworkPackageId, "::vault::TypusDepositReceipt"),
136
139
  objects: receipts.map(function (id) { return tx.object(id); }),
137
140
  }),
138
141
  tx.pure(share ? [share] : []),
142
+ tx.pure(constants_1.CLOCK),
139
143
  ],
140
144
  });
141
145
  tx.setGasBudget(gasBudget);
@@ -159,16 +163,17 @@ function getUnsubscribeTx(gasBudget, typusFrameworkPackageId, packageId, typeArg
159
163
  return __generator(this, function (_a) {
160
164
  tx = new sui_js_1.TransactionBlock();
161
165
  tx.moveCall({
162
- target: "".concat(packageId, "::typus_dov_single::unsubscribe"),
166
+ target: "".concat(packageId, "::tails_staking::unsubscribe"),
163
167
  typeArguments: typeArguments,
164
168
  arguments: [
165
- tx.pure(registry),
169
+ tx.object(registry),
166
170
  tx.pure(index),
167
171
  tx.makeMoveVec({
168
172
  type: "".concat(typusFrameworkPackageId, "::vault::TypusDepositReceipt"),
169
173
  objects: receipts.map(function (id) { return tx.object(id); }),
170
174
  }),
171
175
  tx.pure(share ? [share] : []),
176
+ tx.pure(constants_1.CLOCK),
172
177
  ],
173
178
  });
174
179
  tx.setGasBudget(gasBudget);
@@ -195,7 +200,7 @@ function getClaimTx(gasBudget, typusFrameworkPackageId, packageId, registry, req
195
200
  target: "".concat(packageId, "::typus_dov_single::claim"),
196
201
  typeArguments: request.typeArguments,
197
202
  arguments: [
198
- tx.pure(registry),
203
+ tx.object(registry),
199
204
  tx.pure(request.index),
200
205
  tx.makeMoveVec({
201
206
  type: "".concat(typusFrameworkPackageId, "::vault::TypusDepositReceipt"),
@@ -228,7 +233,7 @@ function getHarvestTx(gasBudget, typusFrameworkPackageId, packageId, registry, r
228
233
  target: "".concat(packageId, "::typus_dov_single::harvest"),
229
234
  typeArguments: request.typeArguments,
230
235
  arguments: [
231
- tx.pure(registry),
236
+ tx.object(registry),
232
237
  tx.pure(request.index),
233
238
  tx.makeMoveVec({
234
239
  type: "".concat(typusFrameworkPackageId, "::vault::TypusDepositReceipt"),
@@ -258,15 +263,16 @@ function getCompoundTx(gasBudget, typusFrameworkPackageId, packageId, registry,
258
263
  tx = new sui_js_1.TransactionBlock();
259
264
  requests.forEach(function (request) {
260
265
  tx.moveCall({
261
- target: "".concat(packageId, "::typus_dov_single::compound"),
266
+ target: "".concat(packageId, "::tails_staking::compound"),
262
267
  typeArguments: request.typeArguments,
263
268
  arguments: [
264
- tx.pure(registry),
269
+ tx.object(registry),
265
270
  tx.pure(request.index),
266
271
  tx.makeMoveVec({
267
272
  type: "".concat(typusFrameworkPackageId, "::vault::TypusDepositReceipt"),
268
273
  objects: request.receipts.map(function (id) { return tx.object(id); }),
269
274
  }),
275
+ tx.object(constants_1.CLOCK),
270
276
  ],
271
277
  });
272
278
  });
@@ -300,7 +306,7 @@ usingSponsoredGasCoin) {
300
306
  tx.moveCall({
301
307
  target: "".concat(packageId, "::typus_dov_single::new_bid"),
302
308
  typeArguments: typeArguments,
303
- arguments: [tx.pure(registry), tx.pure(index), tx.makeMoveVec({ objects: [coin] }), tx.pure(size), tx.pure("0x6")],
309
+ arguments: [tx.object(registry), tx.pure(index), tx.makeMoveVec({ objects: [coin] }), tx.pure(size), tx.pure("0x6")],
304
310
  });
305
311
  }
306
312
  else {
@@ -308,7 +314,7 @@ usingSponsoredGasCoin) {
308
314
  target: "".concat(packageId, "::typus_dov_single::new_bid"),
309
315
  typeArguments: typeArguments,
310
316
  arguments: [
311
- tx.pure(registry),
317
+ tx.object(registry),
312
318
  tx.pure(index),
313
319
  tx.makeMoveVec({ objects: coins.map(function (id) { return tx.object(id); }) }),
314
320
  tx.pure(size),
@@ -340,7 +346,7 @@ function getExerciseTx(gasBudget, typusFrameworkPackageId, packageId, registry,
340
346
  target: "".concat(packageId, "::typus_dov_single::exercise"),
341
347
  typeArguments: request.typeArguments,
342
348
  arguments: [
343
- tx.pure(registry),
349
+ tx.object(registry),
344
350
  tx.pure(request.index),
345
351
  tx.makeMoveVec({
346
352
  type: "".concat(typusFrameworkPackageId, "::vault::TypusBidReceipt"),
@@ -370,7 +376,7 @@ function getRefundTx(gasBudget, packageId, typeArguments, registry) {
370
376
  tx.moveCall({
371
377
  target: "".concat(packageId, "::typus_dov_single::refund"),
372
378
  typeArguments: [typeArgument],
373
- arguments: [tx.pure(registry)],
379
+ arguments: [tx.object(registry)],
374
380
  });
375
381
  });
376
382
  tx.setGasBudget(gasBudget);
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.0.121",
5
+ "version": "1.0.122",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.7.3",
8
8
  "@mysten/kiosk": "^0.3.3",