@typus/typus-sdk 1.0.121 → 1.0.123

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,
@@ -1,6 +1,6 @@
1
1
  import { TransactionBlock } from "@mysten/sui.js";
2
2
  /**
3
- public(friend) entry fun deposit<D_TOKEN, B_TOKEN, O_TOKEN>(
3
+ public(friend) entry fun deposit<D_TOKEN, B_TOKEN>(
4
4
  registry: &mut Registry,
5
5
  index: u64,
6
6
  coins: vector<Coin<D_TOKEN>>,
@@ -11,7 +11,7 @@ import { TransactionBlock } from "@mysten/sui.js";
11
11
  */
12
12
  export declare function getDepositTx(gasBudget: number, typusFrameworkPackageId: string, packageId: string, typeArguments: string[], registry: string, index: string, coins: string[], amount: string, receipts: string[], usingSponsoredGasCoin?: boolean): Promise<TransactionBlock>;
13
13
  /**
14
- public(friend) entry fun withdraw<D_TOKEN, B_TOKEN, O_TOKEN>(
14
+ public(friend) entry fun withdraw<D_TOKEN, B_TOKEN>(
15
15
  registry: &mut Registry,
16
16
  index: u64,
17
17
  receipts: vector<TypusDepositReceipt>,
@@ -21,7 +21,7 @@ export declare function getDepositTx(gasBudget: number, typusFrameworkPackageId:
21
21
  */
22
22
  export declare function getWithdrawTx(gasBudget: number, typusFrameworkPackageId: string, packageId: string, typeArguments: string[], registry: string, index: string, receipts: string[], share?: string): Promise<TransactionBlock>;
23
23
  /**
24
- public(friend) entry fun unsubscribe<D_TOKEN, B_TOKEN, O_TOKEN>(
24
+ public(friend) entry fun unsubscribe<D_TOKEN, B_TOKEN>(
25
25
  registry: &mut Registry,
26
26
  index: u64,
27
27
  receipts: vector<TypusDepositReceipt>,
@@ -31,46 +31,46 @@ export declare function getWithdrawTx(gasBudget: number, typusFrameworkPackageId
31
31
  */
32
32
  export declare function getUnsubscribeTx(gasBudget: number, typusFrameworkPackageId: string, packageId: string, typeArguments: string[], registry: string, index: string, receipts: string[], share?: string): Promise<TransactionBlock>;
33
33
  /**
34
- public(friend) entry fun claim<D_TOKEN, B_TOKEN, O_TOKEN>(
34
+ public(friend) entry fun claim<D_TOKEN, B_TOKEN>(
35
35
  registry: &mut Registry,
36
36
  index: u64,
37
37
  receipts: vector<TypusDepositReceipt>,
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
- public(friend) entry fun harvest<D_TOKEN, B_TOKEN, O_TOKEN>(
47
+ public(friend) entry fun harvest<D_TOKEN, B_TOKEN>(
48
48
  registry: &mut Registry,
49
49
  index: u64,
50
50
  receipts: vector<TypusDepositReceipt>,
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
- public(friend) entry fun compound<D_TOKEN, B_TOKEN, O_TOKEN>(
60
+ public(friend) entry fun compound<D_TOKEN, B_TOKEN>(
61
61
  registry: &mut Registry,
62
62
  index: u64,
63
63
  receipts: vector<TypusDepositReceipt>,
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
- public(friend) entry fun new_bid<D_TOKEN, B_TOKEN, O_TOKEN>(
73
+ public(friend) entry fun new_bid<D_TOKEN, B_TOKEN>(
74
74
  registry: &mut Registry,
75
75
  index: u64,
76
76
  coins: vector<Coin<B_TOKEN>>,
@@ -82,18 +82,18 @@ export declare function getCompoundTx(gasBudget: number, typusFrameworkPackageId
82
82
  export declare function getNewBidTx(gasBudget: number, packageId: string, typeArguments: string[], registry: string, index: string, coins: string[], size: string, premium_required: string, // fe float * b_token_decimal
83
83
  usingSponsoredGasCoin?: boolean): Promise<TransactionBlock>;
84
84
  /**
85
- public(friend) entry fun exercise<D_TOKEN, B_TOKEN, O_TOKEN>(
85
+ public(friend) entry fun exercise<D_TOKEN, B_TOKEN>(
86
86
  registry: &mut Registry,
87
87
  index: u64,
88
88
  receipts: vector<TypusBidReceipt>,
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,8 +54,9 @@ 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
- public(friend) entry fun deposit<D_TOKEN, B_TOKEN, O_TOKEN>(
59
+ public(friend) entry fun deposit<D_TOKEN, B_TOKEN>(
59
60
  registry: &mut Registry,
60
61
  index: u64,
61
62
  coins: vector<Coin<D_TOKEN>>,
@@ -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
  }
@@ -112,7 +115,7 @@ function getDepositTx(gasBudget, typusFrameworkPackageId, packageId, typeArgumen
112
115
  }
113
116
  exports.getDepositTx = getDepositTx;
114
117
  /**
115
- public(friend) entry fun withdraw<D_TOKEN, B_TOKEN, O_TOKEN>(
118
+ public(friend) entry fun withdraw<D_TOKEN, B_TOKEN>(
116
119
  registry: &mut Registry,
117
120
  index: u64,
118
121
  receipts: vector<TypusDepositReceipt>,
@@ -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);
@@ -145,7 +149,7 @@ function getWithdrawTx(gasBudget, typusFrameworkPackageId, packageId, typeArgume
145
149
  }
146
150
  exports.getWithdrawTx = getWithdrawTx;
147
151
  /**
148
- public(friend) entry fun unsubscribe<D_TOKEN, B_TOKEN, O_TOKEN>(
152
+ public(friend) entry fun unsubscribe<D_TOKEN, B_TOKEN>(
149
153
  registry: &mut Registry,
150
154
  index: u64,
151
155
  receipts: vector<TypusDepositReceipt>,
@@ -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);
@@ -178,7 +183,7 @@ function getUnsubscribeTx(gasBudget, typusFrameworkPackageId, packageId, typeArg
178
183
  }
179
184
  exports.getUnsubscribeTx = getUnsubscribeTx;
180
185
  /**
181
- public(friend) entry fun claim<D_TOKEN, B_TOKEN, O_TOKEN>(
186
+ public(friend) entry fun claim<D_TOKEN, B_TOKEN>(
182
187
  registry: &mut Registry,
183
188
  index: u64,
184
189
  receipts: vector<TypusDepositReceipt>,
@@ -192,10 +197,10 @@ function getClaimTx(gasBudget, typusFrameworkPackageId, packageId, registry, req
192
197
  tx = new sui_js_1.TransactionBlock();
193
198
  requests.forEach(function (request) {
194
199
  tx.moveCall({
195
- target: "".concat(packageId, "::typus_dov_single::claim"),
200
+ target: "".concat(packageId, "::tds_user_entry::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"),
@@ -211,7 +216,7 @@ function getClaimTx(gasBudget, typusFrameworkPackageId, packageId, registry, req
211
216
  }
212
217
  exports.getClaimTx = getClaimTx;
213
218
  /**
214
- public(friend) entry fun harvest<D_TOKEN, B_TOKEN, O_TOKEN>(
219
+ public(friend) entry fun harvest<D_TOKEN, B_TOKEN>(
215
220
  registry: &mut Registry,
216
221
  index: u64,
217
222
  receipts: vector<TypusDepositReceipt>,
@@ -225,10 +230,10 @@ function getHarvestTx(gasBudget, typusFrameworkPackageId, packageId, registry, r
225
230
  tx = new sui_js_1.TransactionBlock();
226
231
  requests.forEach(function (request) {
227
232
  tx.moveCall({
228
- target: "".concat(packageId, "::typus_dov_single::harvest"),
233
+ target: "".concat(packageId, "::tds_user_entry::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"),
@@ -244,7 +249,7 @@ function getHarvestTx(gasBudget, typusFrameworkPackageId, packageId, registry, r
244
249
  }
245
250
  exports.getHarvestTx = getHarvestTx;
246
251
  /**
247
- public(friend) entry fun compound<D_TOKEN, B_TOKEN, O_TOKEN>(
252
+ public(friend) entry fun compound<D_TOKEN, B_TOKEN>(
248
253
  registry: &mut Registry,
249
254
  index: u64,
250
255
  receipts: vector<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
  });
@@ -277,7 +283,7 @@ function getCompoundTx(gasBudget, typusFrameworkPackageId, packageId, registry,
277
283
  }
278
284
  exports.getCompoundTx = getCompoundTx;
279
285
  /**
280
- public(friend) entry fun new_bid<D_TOKEN, B_TOKEN, O_TOKEN>(
286
+ public(friend) entry fun new_bid<D_TOKEN, B_TOKEN>(
281
287
  registry: &mut Registry,
282
288
  index: u64,
283
289
  coins: vector<Coin<B_TOKEN>>,
@@ -298,17 +304,17 @@ usingSponsoredGasCoin) {
298
304
  typeArguments[1] == "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI")) {
299
305
  _a = __read(tx.splitCoins(tx.gas, [tx.pure(premium_required)]), 1), coin = _a[0];
300
306
  tx.moveCall({
301
- target: "".concat(packageId, "::typus_dov_single::new_bid"),
307
+ target: "".concat(packageId, "::tds_user_entry::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 {
307
313
  tx.moveCall({
308
- target: "".concat(packageId, "::typus_dov_single::new_bid"),
314
+ target: "".concat(packageId, "::tds_user_entry::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),
@@ -323,7 +329,7 @@ usingSponsoredGasCoin) {
323
329
  }
324
330
  exports.getNewBidTx = getNewBidTx;
325
331
  /**
326
- public(friend) entry fun exercise<D_TOKEN, B_TOKEN, O_TOKEN>(
332
+ public(friend) entry fun exercise<D_TOKEN, B_TOKEN>(
327
333
  registry: &mut Registry,
328
334
  index: u64,
329
335
  receipts: vector<TypusBidReceipt>,
@@ -337,10 +343,10 @@ function getExerciseTx(gasBudget, typusFrameworkPackageId, packageId, registry,
337
343
  tx = new sui_js_1.TransactionBlock();
338
344
  requests.forEach(function (request) {
339
345
  tx.moveCall({
340
- target: "".concat(packageId, "::typus_dov_single::exercise"),
346
+ target: "".concat(packageId, "::tds_user_entry::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"),
@@ -368,9 +374,9 @@ function getRefundTx(gasBudget, packageId, typeArguments, registry) {
368
374
  tx = new sui_js_1.TransactionBlock();
369
375
  typeArguments.forEach(function (typeArgument) {
370
376
  tx.moveCall({
371
- target: "".concat(packageId, "::typus_dov_single::refund"),
377
+ target: "".concat(packageId, "::tds_user_entry::refund"),
372
378
  typeArguments: [typeArgument],
373
- arguments: [tx.pure(registry)],
379
+ arguments: [tx.object(registry)],
374
380
  });
375
381
  });
376
382
  tx.setGasBudget(gasBudget);
@@ -16,6 +16,8 @@ export interface Info {
16
16
  bidToken: string;
17
17
  settlementBase: string;
18
18
  settlementQuote: string;
19
+ settlementBaseName: string;
20
+ settlementQuoteName: string;
19
21
  dTokenDecimal: string;
20
22
  bTokenDecimal: string;
21
23
  oTokenDecimal: string;
@@ -85,12 +87,6 @@ export interface Config {
85
87
  hasNext: boolean;
86
88
  activeVaultConfig: VaultConfig;
87
89
  warmupVaultConfig: VaultConfig;
88
- depositReceiptDisplayName: string;
89
- depositReceiptDisplayDescription: string;
90
- depositReceiptDisplayImageUrl: string;
91
- bidReceiptDisplayName: string;
92
- bidReceiptDisplayDescription: string;
93
- bidReceiptDisplayImageUrl: string;
94
90
  u64Padding: string[];
95
91
  bcsPadding: string[];
96
92
  }
@@ -123,9 +119,7 @@ export interface DepositVault {
123
119
  premiumShareSupply: string;
124
120
  incentiveShareSupply: string;
125
121
  hasNext: boolean;
126
- name: string;
127
- description: string;
128
- imageUrl: string;
122
+ metadata: string;
129
123
  u64Padding: string[];
130
124
  bcsPadding: string[];
131
125
  }
@@ -64,7 +64,7 @@ function getVaults(provider, packageId, registry, indexes) {
64
64
  switch (_a.label) {
65
65
  case 0:
66
66
  transactionBlock = new sui_js_1.TransactionBlock();
67
- target = "".concat(packageId, "::typus_dov_single::get_vault_data_bcs");
67
+ target = "".concat(packageId, "::tds_view_function::get_vault_data_bcs");
68
68
  transactionBlockArguments = [transactionBlock.pure(registry), transactionBlock.pure(indexes)];
69
69
  transactionBlock.moveCall({
70
70
  target: target,
@@ -90,6 +90,8 @@ function getVaults(provider, packageId, registry, indexes) {
90
90
  bidToken: String.fromCharCode.apply(null, Array.from(reader.readBytes(reader.read8()))),
91
91
  settlementBase: String.fromCharCode.apply(null, Array.from(reader.readBytes(reader.read8()))),
92
92
  settlementQuote: String.fromCharCode.apply(null, Array.from(reader.readBytes(reader.read8()))),
93
+ settlementBaseName: String.fromCharCode.apply(null, Array.from(reader.readBytes(reader.read8()))),
94
+ settlementQuoteName: String.fromCharCode.apply(null, Array.from(reader.readBytes(reader.read8()))),
93
95
  dTokenDecimal: reader.read64(),
94
96
  bTokenDecimal: reader.read64(),
95
97
  oTokenDecimal: reader.read64(),
@@ -203,12 +205,6 @@ function getVaults(provider, packageId, registry, indexes) {
203
205
  initialPrice: reader.read64(),
204
206
  finalPrice: reader.read64(),
205
207
  },
206
- depositReceiptDisplayName: String.fromCharCode.apply(null, Array.from(reader.readBytes(reader.read8()))),
207
- depositReceiptDisplayDescription: String.fromCharCode.apply(null, Array.from(reader.readBytes(reader.read8()))),
208
- depositReceiptDisplayImageUrl: String.fromCharCode.apply(null, Array.from(reader.readBytes(reader.read8()))),
209
- bidReceiptDisplayName: String.fromCharCode.apply(null, Array.from(reader.readBytes(reader.read8()))),
210
- bidReceiptDisplayDescription: String.fromCharCode.apply(null, Array.from(reader.readBytes(reader.read8()))),
211
- bidReceiptDisplayImageUrl: String.fromCharCode.apply(null, Array.from(reader.readBytes(reader.read8()))),
212
208
  u64Padding: reader.readVec(function (reader) {
213
209
  return reader.read64();
214
210
  }),
@@ -249,9 +245,7 @@ function getVaults(provider, packageId, registry, indexes) {
249
245
  premiumShareSupply: reader.read64(),
250
246
  incentiveShareSupply: reader.read64(),
251
247
  hasNext: reader.read8() > 0,
252
- name: String.fromCharCode.apply(null, Array.from(reader.readBytes(reader.read8()))),
253
- description: String.fromCharCode.apply(null, Array.from(reader.readBytes(reader.read8()))),
254
- imageUrl: String.fromCharCode.apply(null, Array.from(reader.readBytes(reader.read8()))),
248
+ metadata: String.fromCharCode.apply(null, Array.from(reader.readBytes(reader.read8()))),
255
249
  u64Padding: reader.readVec(function (reader) {
256
250
  return reader.read64();
257
251
  }),
@@ -279,7 +273,7 @@ function getAuctions(provider, packageId, registry, indexes) {
279
273
  switch (_a.label) {
280
274
  case 0:
281
275
  transactionBlock = new sui_js_1.TransactionBlock();
282
- target = "".concat(packageId, "::typus_dov_single::get_auction_bcs");
276
+ target = "".concat(packageId, "::tds_view_function::get_auction_bcs");
283
277
  transactionBlockArguments = [transactionBlock.pure(registry), transactionBlock.pure(indexes)];
284
278
  transactionBlock.moveCall({
285
279
  target: target,
@@ -290,7 +284,6 @@ function getAuctions(provider, packageId, registry, indexes) {
290
284
  case 1:
291
285
  results = (_a.sent()).results;
292
286
  bytes = results[results.length - 1].returnValues[0][0];
293
- console.log(JSON.stringify(bytes));
294
287
  reader = new bcs_1.BcsReader(new Uint8Array(bytes));
295
288
  result = {};
296
289
  reader.readVec(function (reader) {
@@ -350,7 +343,7 @@ function getAuctionBids(provider, packageId, registry, index) {
350
343
  switch (_a.label) {
351
344
  case 0:
352
345
  transactionBlock = new sui_js_1.TransactionBlock();
353
- target = "".concat(packageId, "::typus_dov_single::get_auction_bids_bcs");
346
+ target = "".concat(packageId, "::tds_view_function::get_auction_bids_bcs");
354
347
  transactionBlockArguments = [transactionBlock.pure(registry), transactionBlock.pure(index)];
355
348
  transactionBlock.moveCall({
356
349
  target: target,
@@ -389,7 +382,7 @@ function getDepositShares(provider, typusFrameworkPackageId, packageId, registry
389
382
  switch (_a.label) {
390
383
  case 0:
391
384
  transactionBlock = new sui_js_1.TransactionBlock();
392
- target = "".concat(packageId, "::typus_dov_single::get_deposit_shares_bcs");
385
+ target = "".concat(packageId, "::tds_view_function::get_deposit_shares_bcs");
393
386
  transactionBlockArguments = [
394
387
  transactionBlock.pure(registry),
395
388
  transactionBlock.makeMoveVec({
@@ -445,7 +438,7 @@ function getBidShares(provider, typusFrameworkPackageId, packageId, registry, re
445
438
  switch (_a.label) {
446
439
  case 0:
447
440
  transactionBlock = new sui_js_1.TransactionBlock();
448
- target = "".concat(packageId, "::typus_dov_single::get_bid_shares_bcs");
441
+ target = "".concat(packageId, "::tds_view_function::get_bid_shares_bcs");
449
442
  transactionBlockArguments = [
450
443
  transactionBlock.pure(registry),
451
444
  transactionBlock.makeMoveVec({
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.123",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.7.3",
8
8
  "@mysten/kiosk": "^0.3.3",