@typus/typus-perp-sdk 1.1.17 → 1.1.19-stake-pool-v2-a

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.
@@ -37,6 +37,8 @@ interface tlpComparison {
37
37
  portfolio_60sui_40usdc: number;
38
38
  sui_value: number;
39
39
  tlp_value: number;
40
+ sui_price: number;
41
+ tlp_price: number;
40
42
  }
41
43
  export declare function getUserPnlFromSentio(startTimestamp: number, endTimestamp: number, userAddress?: string): Promise<any[]>;
42
44
  export declare function getLeaderboardFromSentio(startTs: number, endTs: number): Promise<any[]>;
@@ -496,8 +496,8 @@ function getTlpComparisonFromSentio(startTimestamp, endTimestamp) {
496
496
  apiUrl = "https://app.sentio.xyz/api/v1/analytics/typus/typus_perp_mainnet/sql/execute";
497
497
  requestData = {
498
498
  sqlQuery: {
499
- sql: "\n with\n tlp_hourly as (\n select\n toStartOfHour(timestamp + interval 30 minute) as hour,\n argMin(value, abs(toUnixTimestamp(timestamp) - toUnixTimestamp(toStartOfHour(timestamp + interval 30 minute)))) as tlp_price\n from tlp_price\n WHERE timestamp >= ".concat(startTimestamp, " and timestamp < ").concat(endTimestamp, "\n group by hour\n ),\n\n sui_hourly as (\n select\n toStartOfHour(time + interval 30 minute) as hour,\n argMin(price, abs(toUnixTimestamp(time) - toUnixTimestamp(toStartOfHour(time + interval 30 minute)))) as sui_price\n from 'token.prices'\n where symbol = 'sui'\n and time >= ").concat(startTimestamp, " and time < ").concat(endTimestamp, "\n group by hour\n ),\n\n merged as (\n select\n t.hour,\n t.tlp_price,\n s.sui_price\n from tlp_hourly t\n join sui_hourly s\n on t.hour = s.hour\n ),\n\n base as (\n select min(hour) as base_hour\n from merged\n ),\n base_prices as (\n select\n anyIf(m.tlp_price, m.hour = b.base_hour) as base_tlp,\n anyIf(m.sui_price, m.hour = b.base_hour) as base_sui\n from merged m\n cross join base b\n )\n\n select\n m.hour,\n 100 * m.tlp_price / bp.base_tlp as tlp_value,\n 100 * m.sui_price / bp.base_sui as sui_value,\n 0.6 * (100 * m.sui_price / bp.base_sui) + 0.4 * 100 as portfolio_60sui_40usdc\n from merged m\n cross join base_prices bp\n order by m.hour;\n "),
500
- size: 1000,
499
+ sql: "\n with\n tlp_hourly as (\n select\n toStartOfHour(timestamp + interval 30 minute) as hour,\n argMin(value, abs(toUnixTimestamp(timestamp) - toUnixTimestamp(toStartOfHour(timestamp + interval 30 minute)))) as tlp_price\n from tlp_price\n WHERE timestamp >= ".concat(startTimestamp, " and timestamp < ").concat(endTimestamp, "\n group by hour\n ),\n\n sui_hourly as (\n select\n toStartOfHour(time + interval 30 minute) as hour,\n argMin(price, abs(toUnixTimestamp(time) - toUnixTimestamp(toStartOfHour(time + interval 30 minute)))) as sui_price\n from 'token.prices'\n where symbol = 'sui'\n and time >= ").concat(startTimestamp, " and time < ").concat(endTimestamp, "\n group by hour\n ),\n\n merged as (\n select\n t.hour,\n t.tlp_price,\n s.sui_price\n from tlp_hourly t\n join sui_hourly s\n on t.hour = s.hour\n ),\n\n base as (\n select min(hour) as base_hour\n from merged\n ),\n base_prices as (\n select\n anyIf(m.tlp_price, m.hour = b.base_hour) as base_tlp,\n anyIf(m.sui_price, m.hour = b.base_hour) as base_sui\n from merged m\n cross join base b\n )\n\n select\n m.hour,\n m.tlp_price,\n m.sui_price,\n 100 * m.tlp_price / bp.base_tlp as tlp_value,\n 100 * m.sui_price / bp.base_sui as sui_value,\n 0.6 * (100 * m.sui_price / bp.base_sui) + 0.4 * 100 as portfolio_60sui_40usdc\n from merged m\n cross join base_prices bp\n order by m.hour;\n "),
500
+ size: 10000,
501
501
  },
502
502
  };
503
503
  jsonData = JSON.stringify(requestData);
@@ -21,9 +21,9 @@ export declare function getUserOrders(config: TypusConfig, user: string): Promis
21
21
  export declare function getUserPositions(config: TypusConfig, user: string): Promise<Position[]>;
22
22
  export declare function parseOptionBidReceipts(positions: Position[]): (TypusBidReceipt | null)[];
23
23
  /**
24
- * @returns [lpShare, incentives][]
24
+ * @returns [lpShare, incentives]
25
25
  */
26
- export declare function getUserStake(config: TypusConfig, user: string): Promise<[LpUserShare, string[]][]>;
26
+ export declare function getUserStake(config: TypusConfig, user: string): Promise<[LpUserShare, string[]] | null>;
27
27
  /**
28
28
  * @returns deactivatingShares[]
29
29
  */
package/dist/src/fetch.js CHANGED
@@ -351,11 +351,11 @@ function parseOptionBidReceipts(positions) {
351
351
  });
352
352
  }
353
353
  /**
354
- * @returns [lpShare, incentives][]
354
+ * @returns [lpShare, incentives]
355
355
  */
356
356
  function getUserStake(config, user) {
357
357
  return __awaiter(this, void 0, void 0, function () {
358
- var provider, tx, res, returnValues, reader, lpShares_1;
358
+ var provider, tx, res, returnValues, reader, length_3, lpShare, incentives_1;
359
359
  return __generator(this, function (_a) {
360
360
  switch (_a.label) {
361
361
  case 0:
@@ -379,21 +379,21 @@ function getUserStake(config, user) {
379
379
  if (res.results) {
380
380
  returnValues = res.results[1].returnValues[0][0];
381
381
  reader = new bcs_1.BcsReader(new Uint8Array(returnValues));
382
- lpShares_1 = [];
382
+ length_3 = reader.readULEB();
383
+ // console.log(length);
384
+ if (length_3 == 0) {
385
+ return [2 /*return*/, null];
386
+ }
387
+ lpShare = structs_4.LpUserShare.fromFields(structs_4.LpUserShare.bcs.read(reader));
388
+ incentives_1 = [];
383
389
  reader.readVec(function (reader) {
384
- var length = reader.readULEB();
385
- var lpShare = structs_4.LpUserShare.fromFields(structs_4.LpUserShare.bcs.read(reader));
386
- var incentives = [];
387
- reader.readVec(function (reader) {
388
- var incentive = reader.read64();
389
- incentives.push(incentive);
390
- });
391
- lpShares_1.push([lpShare, incentives]);
390
+ var incentive = reader.read64();
391
+ incentives_1.push(incentive);
392
392
  });
393
- return [2 /*return*/, lpShares_1];
393
+ return [2 /*return*/, [lpShare, incentives_1]];
394
394
  }
395
395
  else {
396
- return [2 /*return*/, []];
396
+ return [2 /*return*/, null];
397
397
  }
398
398
  return [2 /*return*/];
399
399
  }
@@ -515,31 +515,33 @@ function getLiquidationPriceAndPnl(config, pythClient, input) {
515
515
  return [4 /*yield*/, provider.devInspectTransactionBlock({ sender: input.user, transactionBlock: tx })];
516
516
  case 2:
517
517
  res = _k.sent();
518
- results = res.results ? res.results.slice(-input.positions.length).map(function (x) {
519
- // console.log(x);
520
- var liquidationPrice = Number(bcs_1.bcs.u64().parse(Uint8Array.from(x.returnValues[0][0])));
521
- var isProfit = bcs_1.bcs.bool().parse(Uint8Array.from(x.returnValues[1][0]));
522
- var pnl = Number(bcs_1.bcs.u64().parse(Uint8Array.from(x.returnValues[2][0])));
523
- pnl = isProfit ? pnl : -pnl;
524
- // including closeFee
525
- var isCost = bcs_1.bcs.bool().parse(Uint8Array.from(x.returnValues[3][0]));
526
- var cost = Number(bcs_1.bcs.u64().parse(Uint8Array.from(x.returnValues[4][0])));
527
- cost = isCost ? cost : -cost;
528
- // cost = unrealized_loss + unrealized_trading_fee + unrealized_borrow_fee + unrealized_funding_fee;
529
- var fundingFeeSign = bcs_1.bcs.bool().parse(Uint8Array.from(x.returnValues[5][0]));
530
- var fundingFee = Number(bcs_1.bcs.u64().parse(Uint8Array.from(x.returnValues[6][0])));
531
- fundingFee = fundingFeeSign ? fundingFee : -fundingFee;
532
- var borrowFee = Number(bcs_1.bcs.u64().parse(Uint8Array.from(x.returnValues[7][0])));
533
- var closeFee = Number(bcs_1.bcs.u64().parse(Uint8Array.from(x.returnValues[8][0])));
534
- return {
535
- liquidationPrice: liquidationPrice,
536
- pnl: pnl + closeFee,
537
- fundingFee: fundingFee,
538
- borrowFee: borrowFee,
539
- closeFee: closeFee,
540
- pnlAfterFee: pnl - cost,
541
- };
542
- }) : [];
518
+ results = res.results
519
+ ? res.results.slice(-input.positions.length).map(function (x) {
520
+ // console.log(x);
521
+ var liquidationPrice = Number(bcs_1.bcs.u64().parse(Uint8Array.from(x.returnValues[0][0])));
522
+ var isProfit = bcs_1.bcs.bool().parse(Uint8Array.from(x.returnValues[1][0]));
523
+ var pnl = Number(bcs_1.bcs.u64().parse(Uint8Array.from(x.returnValues[2][0])));
524
+ pnl = isProfit ? pnl : -pnl;
525
+ // including closeFee
526
+ var isCost = bcs_1.bcs.bool().parse(Uint8Array.from(x.returnValues[3][0]));
527
+ var cost = Number(bcs_1.bcs.u64().parse(Uint8Array.from(x.returnValues[4][0])));
528
+ cost = isCost ? cost : -cost;
529
+ // cost = unrealized_loss + unrealized_trading_fee + unrealized_borrow_fee + unrealized_funding_fee;
530
+ var fundingFeeSign = bcs_1.bcs.bool().parse(Uint8Array.from(x.returnValues[5][0]));
531
+ var fundingFee = Number(bcs_1.bcs.u64().parse(Uint8Array.from(x.returnValues[6][0])));
532
+ fundingFee = fundingFeeSign ? fundingFee : -fundingFee;
533
+ var borrowFee = Number(bcs_1.bcs.u64().parse(Uint8Array.from(x.returnValues[7][0])));
534
+ var closeFee = Number(bcs_1.bcs.u64().parse(Uint8Array.from(x.returnValues[8][0])));
535
+ return {
536
+ liquidationPrice: liquidationPrice,
537
+ pnl: pnl + closeFee,
538
+ fundingFee: fundingFee,
539
+ borrowFee: borrowFee,
540
+ closeFee: closeFee,
541
+ pnlAfterFee: pnl - cost,
542
+ };
543
+ })
544
+ : [];
543
545
  // console.log(results);
544
546
  return [2 /*return*/, results];
545
547
  }
package/dist/src/index.js CHANGED
@@ -45,7 +45,7 @@ exports.STAKE_PACKAGE_ID = exports.NETWORK == "MAINNET"
45
45
  : "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6";
46
46
  exports.STAKE_PUBLISHED_AT = exports.NETWORK == "MAINNET"
47
47
  ? "0x4b9eb21b97ff55e5f9c1b4118fc30d124b3bccf4740610370ebe099236f3d4b3"
48
- : "0xf8fa4a303118328de2fb53f49a043fa5bf58b84f372db0d1e7cf7b1f1a47d10e";
48
+ : "0x11f4f072d6472f545a82200ec4bee8a8db006e209f76bcc013178c585ed4b368";
49
49
  exports.STAKE_PKG_V1 = exports.NETWORK == "MAINNET"
50
50
  ? "0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966"
51
51
  : "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6";
@@ -1,18 +1,23 @@
1
1
  import { Transaction, TransactionArgument, TransactionObjectInput } from "@mysten/sui/transactions";
2
+ export declare function versionCheck(tx: Transaction, version: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
3
+ export declare function upgrade(tx: Transaction, version: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
4
+ export declare function init(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
5
+ export declare function verify(tx: Transaction, version: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
2
6
  export interface AddAuthorizedUserArgs {
3
7
  version: TransactionObjectInput;
4
8
  userAddress: string | TransactionArgument;
5
9
  }
6
10
  export declare function addAuthorizedUser(tx: Transaction, args: AddAuthorizedUserArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
7
- export interface AddExpLeaderboardArgs {
11
+ export interface RemoveAuthorizedUserArgs {
12
+ version: TransactionObjectInput;
13
+ userAddress: string | TransactionArgument;
14
+ }
15
+ export declare function removeAuthorizedUser(tx: Transaction, args: RemoveAuthorizedUserArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
16
+ export interface InstallEcosystemManagerCapEntryArgs {
8
17
  version: TransactionObjectInput;
9
18
  typusEcosystemVersion: TransactionObjectInput;
10
- typusLeaderboardRegistry: TransactionObjectInput;
11
- user: string | TransactionArgument;
12
- score: bigint | TransactionArgument;
13
- clock: TransactionObjectInput;
14
19
  }
15
- export declare function addExpLeaderboard(tx: Transaction, args: AddExpLeaderboardArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
20
+ export declare function installEcosystemManagerCapEntry(tx: Transaction, args: InstallEcosystemManagerCapEntryArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
16
21
  export interface AddTailsExpAmountArgs {
17
22
  version: TransactionObjectInput;
18
23
  typusEcosystemVersion: TransactionObjectInput;
@@ -21,29 +26,24 @@ export interface AddTailsExpAmountArgs {
21
26
  amount: bigint | TransactionArgument;
22
27
  }
23
28
  export declare function addTailsExpAmount(tx: Transaction, args: AddTailsExpAmountArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
29
+ export interface AddExpLeaderboardArgs {
30
+ version: TransactionObjectInput;
31
+ typusEcosystemVersion: TransactionObjectInput;
32
+ typusLeaderboardRegistry: TransactionObjectInput;
33
+ user: string | TransactionArgument;
34
+ score: bigint | TransactionArgument;
35
+ clock: TransactionObjectInput;
36
+ }
37
+ export declare function addExpLeaderboard(tx: Transaction, args: AddExpLeaderboardArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
38
+ export declare function sendFee(tx: Transaction, typeArg: string, version: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
24
39
  export interface ChargeFeeArgs {
25
40
  version: TransactionObjectInput;
26
41
  balance: TransactionObjectInput;
27
42
  }
28
43
  export declare function chargeFee(tx: Transaction, typeArg: string, args: ChargeFeeArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
44
+ export declare function sendLiquidatorFee(tx: Transaction, typeArg: string, version: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
29
45
  export interface ChargeLiquidatorFeeArgs {
30
46
  version: TransactionObjectInput;
31
47
  balance: TransactionObjectInput;
32
48
  }
33
49
  export declare function chargeLiquidatorFee(tx: Transaction, typeArg: string, args: ChargeLiquidatorFeeArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
34
- export declare function init(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
35
- export interface InstallEcosystemManagerCapEntryArgs {
36
- version: TransactionObjectInput;
37
- typusEcosystemVersion: TransactionObjectInput;
38
- }
39
- export declare function installEcosystemManagerCapEntry(tx: Transaction, args: InstallEcosystemManagerCapEntryArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
40
- export interface RemoveAuthorizedUserArgs {
41
- version: TransactionObjectInput;
42
- userAddress: string | TransactionArgument;
43
- }
44
- export declare function removeAuthorizedUser(tx: Transaction, args: RemoveAuthorizedUserArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
45
- export declare function sendFee(tx: Transaction, typeArg: string, version: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
46
- export declare function sendLiquidatorFee(tx: Transaction, typeArg: string, version: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
47
- export declare function upgrade(tx: Transaction, version: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
48
- export declare function verify(tx: Transaction, version: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
49
- export declare function versionCheck(tx: Transaction, version: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
@@ -1,20 +1,36 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.addAuthorizedUser = addAuthorizedUser;
4
- exports.addExpLeaderboard = addExpLeaderboard;
5
- exports.addTailsExpAmount = addTailsExpAmount;
6
- exports.chargeFee = chargeFee;
7
- exports.chargeLiquidatorFee = chargeLiquidatorFee;
3
+ exports.versionCheck = versionCheck;
4
+ exports.upgrade = upgrade;
8
5
  exports.init = init;
9
- exports.installEcosystemManagerCapEntry = installEcosystemManagerCapEntry;
6
+ exports.verify = verify;
7
+ exports.addAuthorizedUser = addAuthorizedUser;
10
8
  exports.removeAuthorizedUser = removeAuthorizedUser;
9
+ exports.installEcosystemManagerCapEntry = installEcosystemManagerCapEntry;
10
+ exports.addTailsExpAmount = addTailsExpAmount;
11
+ exports.addExpLeaderboard = addExpLeaderboard;
11
12
  exports.sendFee = sendFee;
13
+ exports.chargeFee = chargeFee;
12
14
  exports.sendLiquidatorFee = sendLiquidatorFee;
13
- exports.upgrade = upgrade;
14
- exports.verify = verify;
15
- exports.versionCheck = versionCheck;
15
+ exports.chargeLiquidatorFee = chargeLiquidatorFee;
16
16
  var __1 = require("..");
17
17
  var util_1 = require("../../_framework/util");
18
+ function versionCheck(tx, version, published_at) {
19
+ if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
20
+ return tx.moveCall({ target: "".concat(published_at, "::admin::version_check"), arguments: [(0, util_1.obj)(tx, version)] });
21
+ }
22
+ function upgrade(tx, version, published_at) {
23
+ if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
24
+ return tx.moveCall({ target: "".concat(published_at, "::admin::upgrade"), arguments: [(0, util_1.obj)(tx, version)] });
25
+ }
26
+ function init(tx, published_at) {
27
+ if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
28
+ return tx.moveCall({ target: "".concat(published_at, "::admin::init"), arguments: [] });
29
+ }
30
+ function verify(tx, version, published_at) {
31
+ if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
32
+ return tx.moveCall({ target: "".concat(published_at, "::admin::verify"), arguments: [(0, util_1.obj)(tx, version)] });
33
+ }
18
34
  function addAuthorizedUser(tx, args, published_at) {
19
35
  if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
20
36
  return tx.moveCall({
@@ -22,33 +38,51 @@ function addAuthorizedUser(tx, args, published_at) {
22
38
  arguments: [(0, util_1.obj)(tx, args.version), (0, util_1.pure)(tx, args.userAddress, "address")],
23
39
  });
24
40
  }
25
- function addExpLeaderboard(tx, args, published_at) {
41
+ function removeAuthorizedUser(tx, args, published_at) {
26
42
  if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
27
43
  return tx.moveCall({
28
- target: "".concat(published_at, "::admin::add_exp_leaderboard"),
44
+ target: "".concat(published_at, "::admin::remove_authorized_user"),
45
+ arguments: [(0, util_1.obj)(tx, args.version), (0, util_1.pure)(tx, args.userAddress, "address")],
46
+ });
47
+ }
48
+ function installEcosystemManagerCapEntry(tx, args, published_at) {
49
+ if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
50
+ return tx.moveCall({
51
+ target: "".concat(published_at, "::admin::install_ecosystem_manager_cap_entry"),
52
+ arguments: [(0, util_1.obj)(tx, args.version), (0, util_1.obj)(tx, args.typusEcosystemVersion)],
53
+ });
54
+ }
55
+ function addTailsExpAmount(tx, args, published_at) {
56
+ if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
57
+ return tx.moveCall({
58
+ target: "".concat(published_at, "::admin::add_tails_exp_amount"),
29
59
  arguments: [
30
60
  (0, util_1.obj)(tx, args.version),
31
61
  (0, util_1.obj)(tx, args.typusEcosystemVersion),
32
- (0, util_1.obj)(tx, args.typusLeaderboardRegistry),
62
+ (0, util_1.obj)(tx, args.typusUserRegistry),
33
63
  (0, util_1.pure)(tx, args.user, "address"),
34
- (0, util_1.pure)(tx, args.score, "u64"),
35
- (0, util_1.obj)(tx, args.clock),
64
+ (0, util_1.pure)(tx, args.amount, "u64"),
36
65
  ],
37
66
  });
38
67
  }
39
- function addTailsExpAmount(tx, args, published_at) {
68
+ function addExpLeaderboard(tx, args, published_at) {
40
69
  if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
41
70
  return tx.moveCall({
42
- target: "".concat(published_at, "::admin::add_tails_exp_amount"),
71
+ target: "".concat(published_at, "::admin::add_exp_leaderboard"),
43
72
  arguments: [
44
73
  (0, util_1.obj)(tx, args.version),
45
74
  (0, util_1.obj)(tx, args.typusEcosystemVersion),
46
- (0, util_1.obj)(tx, args.typusUserRegistry),
75
+ (0, util_1.obj)(tx, args.typusLeaderboardRegistry),
47
76
  (0, util_1.pure)(tx, args.user, "address"),
48
- (0, util_1.pure)(tx, args.amount, "u64"),
77
+ (0, util_1.pure)(tx, args.score, "u64"),
78
+ (0, util_1.obj)(tx, args.clock),
49
79
  ],
50
80
  });
51
81
  }
82
+ function sendFee(tx, typeArg, version, published_at) {
83
+ if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
84
+ return tx.moveCall({ target: "".concat(published_at, "::admin::send_fee"), typeArguments: [typeArg], arguments: [(0, util_1.obj)(tx, version)] });
85
+ }
52
86
  function chargeFee(tx, typeArg, args, published_at) {
53
87
  if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
54
88
  return tx.moveCall({
@@ -57,6 +91,10 @@ function chargeFee(tx, typeArg, args, published_at) {
57
91
  arguments: [(0, util_1.obj)(tx, args.version), (0, util_1.obj)(tx, args.balance)],
58
92
  });
59
93
  }
94
+ function sendLiquidatorFee(tx, typeArg, version, published_at) {
95
+ if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
96
+ return tx.moveCall({ target: "".concat(published_at, "::admin::send_liquidator_fee"), typeArguments: [typeArg], arguments: [(0, util_1.obj)(tx, version)] });
97
+ }
60
98
  function chargeLiquidatorFee(tx, typeArg, args, published_at) {
61
99
  if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
62
100
  return tx.moveCall({
@@ -65,41 +103,3 @@ function chargeLiquidatorFee(tx, typeArg, args, published_at) {
65
103
  arguments: [(0, util_1.obj)(tx, args.version), (0, util_1.obj)(tx, args.balance)],
66
104
  });
67
105
  }
68
- function init(tx, published_at) {
69
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
70
- return tx.moveCall({ target: "".concat(published_at, "::admin::init"), arguments: [] });
71
- }
72
- function installEcosystemManagerCapEntry(tx, args, published_at) {
73
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
74
- return tx.moveCall({
75
- target: "".concat(published_at, "::admin::install_ecosystem_manager_cap_entry"),
76
- arguments: [(0, util_1.obj)(tx, args.version), (0, util_1.obj)(tx, args.typusEcosystemVersion)],
77
- });
78
- }
79
- function removeAuthorizedUser(tx, args, published_at) {
80
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
81
- return tx.moveCall({
82
- target: "".concat(published_at, "::admin::remove_authorized_user"),
83
- arguments: [(0, util_1.obj)(tx, args.version), (0, util_1.pure)(tx, args.userAddress, "address")],
84
- });
85
- }
86
- function sendFee(tx, typeArg, version, published_at) {
87
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
88
- return tx.moveCall({ target: "".concat(published_at, "::admin::send_fee"), typeArguments: [typeArg], arguments: [(0, util_1.obj)(tx, version)] });
89
- }
90
- function sendLiquidatorFee(tx, typeArg, version, published_at) {
91
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
92
- return tx.moveCall({ target: "".concat(published_at, "::admin::send_liquidator_fee"), typeArguments: [typeArg], arguments: [(0, util_1.obj)(tx, version)] });
93
- }
94
- function upgrade(tx, version, published_at) {
95
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
96
- return tx.moveCall({ target: "".concat(published_at, "::admin::upgrade"), arguments: [(0, util_1.obj)(tx, version)] });
97
- }
98
- function verify(tx, version, published_at) {
99
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
100
- return tx.moveCall({ target: "".concat(published_at, "::admin::verify"), arguments: [(0, util_1.obj)(tx, version)] });
101
- }
102
- function versionCheck(tx, version, published_at) {
103
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
104
- return tx.moveCall({ target: "".concat(published_at, "::admin::version_check"), arguments: [(0, util_1.obj)(tx, version)] });
105
- }