@typus/typus-sdk 1.4.52 → 1.4.53

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.
@@ -6,7 +6,7 @@ export declare const tokenType: {
6
6
  SUI: string;
7
7
  BTC: string;
8
8
  ETH: string;
9
- USDC: string;
9
+ wUSDC: string;
10
10
  USDT: string;
11
11
  CETUS: string;
12
12
  BUCK: string;
@@ -44,10 +44,10 @@ export declare const tokenType: {
44
44
  SCA: string;
45
45
  BTC: string;
46
46
  ETH: string;
47
- USDC: string;
47
+ wUSDC: string;
48
48
  BLUB: string;
49
49
  MBLUB: string;
50
50
  };
51
51
  };
52
- export type TOKEN = "SUI" | "CETUS" | "BUCK" | "SOL" | "TURBOS" | "APT" | "FUD" | "MFUD" | "BLUB" | "MBLUB" | "USDT" | "AFSUI" | "INJ" | "SEI" | "USDY" | "TEXP" | "SCA" | "BTC" | "ETH" | "USDC";
52
+ export type TOKEN = "SUI" | "CETUS" | "BUCK" | "SOL" | "TURBOS" | "APT" | "FUD" | "MFUD" | "BLUB" | "MBLUB" | "USDT" | "AFSUI" | "INJ" | "SEI" | "USDY" | "TEXP" | "SCA" | "BTC" | "ETH" | "USDC" | "wUSDC";
53
53
  export declare function typeArgToToken(typeArg: string): string;
@@ -22,7 +22,7 @@ function typeArgToAsset(typeArg) {
22
22
  case "0xb7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8":
23
23
  return "WSOL";
24
24
  case "0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf":
25
- return "USDC";
25
+ return "wUSDC";
26
26
  case "0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c":
27
27
  return "USDT";
28
28
  case "0x5d1f47ea69bb0de31c313d7acf89b890dbb8991ea8e03c6c355171f84bb1ba4a":
@@ -37,6 +37,13 @@ function typeArgToAsset(typeArg) {
37
37
  return "SCA";
38
38
  case "0x960b531667636f39e85867775f52f6b1f220a058c4de786905bdf761e06a56bb":
39
39
  return "USDY";
40
+ case "0x949572061c09bbedef3ac4ffc42e58632291616f0605117cec86d840e09bf519":
41
+ if (typeArgs[1] === "usdc") {
42
+ return "wUSDC";
43
+ }
44
+ else if (typeArgs[1] === "btc") {
45
+ return "WBTC";
46
+ }
40
47
  default:
41
48
  if (typeArgs[2] == "BTC") {
42
49
  return "WBTC";
@@ -68,6 +75,8 @@ function assetToDecimal(asset) {
68
75
  return 8;
69
76
  case "USDC":
70
77
  return 6;
78
+ case "wUSDC":
79
+ return 6;
71
80
  case "USDT":
72
81
  return 6;
73
82
  case "USDY":
@@ -111,7 +120,7 @@ exports.tokenType = {
111
120
  SUI: "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI",
112
121
  BTC: "0x027792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881::coin::COIN",
113
122
  ETH: "0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5::coin::COIN",
114
- USDC: "0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN",
123
+ wUSDC: "0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN",
115
124
  USDT: "0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c::coin::COIN",
116
125
  CETUS: "0x06864a6f921804860930db6ddbe2e16acdf8504495ea7481637a1c8b9a8fe54b::cetus::CETUS",
117
126
  BUCK: "0xce7ff77a83ea0cb6fd39bd8748e2ec89a3f41e8efdc3f4eb123e0ca37b184db2::buck::BUCK",
@@ -149,7 +158,7 @@ exports.tokenType = {
149
158
  SCA: "0xd33ea459d9e667c112f5168464a885a654d7bc3fd6903720aaa8cf495a32a77e::sca::SCA",
150
159
  BTC: "0x949572061c09bbedef3ac4ffc42e58632291616f0605117cec86d840e09bf519::btc::BTC",
151
160
  ETH: "0x949572061c09bbedef3ac4ffc42e58632291616f0605117cec86d840e09bf519::eth::ETH",
152
- USDC: "0x949572061c09bbedef3ac4ffc42e58632291616f0605117cec86d840e09bf519::usdc::USDC",
161
+ wUSDC: "0x949572061c09bbedef3ac4ffc42e58632291616f0605117cec86d840e09bf519::usdc::USDC",
153
162
  BLUB: "0x94b8f6dcceeb2be160f6837089cc7502458f4f070fa0814380737acb0c41fd5b::blub::BLUB",
154
163
  MBLUB: "0x4b5d0a097ee8a309a89bb2bc589403a4a9a39de639d576495b697be2a60f69bb::mblub::MBLUB",
155
164
  },
@@ -165,7 +174,7 @@ function typeArgToToken(typeArg) {
165
174
  case "0xb7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8":
166
175
  return "SOL";
167
176
  case "0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf":
168
- return "USDC";
177
+ return "wUSDC";
169
178
  case "0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c":
170
179
  return "USDT";
171
180
  case "0x5d1f47ea69bb0de31c313d7acf89b890dbb8991ea8e03c6c355171f84bb1ba4a":
@@ -25,7 +25,7 @@ export declare const ASSET_INFO: {
25
25
  product: PublicKey;
26
26
  price: PublicKey;
27
27
  };
28
- USDC: {
28
+ wUSDC: {
29
29
  product: PublicKey;
30
30
  price: PublicKey;
31
31
  };
@@ -121,7 +121,7 @@ exports.ASSET_INFO = {
121
121
  product: new web3_js_1.PublicKey("24bB1mRGsrrDVawJTCVYXrxbEz6ozztukPUKvcZCDcPz"),
122
122
  price: new web3_js_1.PublicKey("6cUuAyAX3eXoiWkjFF77RQBEUF15AAMQ7d1hm4EPd3tv"),
123
123
  },
124
- USDC: {
124
+ wUSDC: {
125
125
  product: new web3_js_1.PublicKey("8GWTTbNiXdmyZREXbjsZBmCRuzdPrW55dnZGDkTRjWvb"),
126
126
  price: new web3_js_1.PublicKey("Gnt27xtC473ZT2Mw5u8wZ68Z3gULkSTb5DuxJy7eJotD"),
127
127
  },
@@ -191,6 +191,7 @@ exports.tokenOrder = {
191
191
  SOL: 14,
192
192
  TURBOS: 15,
193
193
  USDC: 16,
194
+ wUSDC: 16,
194
195
  USDT: 17,
195
196
  USDY: 18,
196
197
  VSUI: 20,
@@ -219,6 +220,7 @@ var DefaultOracleDecimal = {
219
220
  APT: "8",
220
221
  SOL: "8",
221
222
  USDC: "8",
223
+ wUSDC: "8",
222
224
  USDT: "8",
223
225
  CETUS: "8",
224
226
  TURBOS: "8",
@@ -24,7 +24,7 @@ exports.LST = {
24
24
  HASUI: "SUI",
25
25
  VSUI: "SUI",
26
26
  };
27
- exports.StableCoin = ["USDC", "USDT", "BUCK", "USDY"];
27
+ exports.StableCoin = ["USDC", "USDT", "BUCK", "USDY", "wUSDC"];
28
28
  var getTokenName = function (_a) {
29
29
  var _b, _c, _d, _e;
30
30
  var token = _a.token, wrapped = _a.wrapped, million = _a.million;
@@ -1,3 +1,2 @@
1
1
  export declare function getTvl(): Promise<number>;
2
2
  export declare function getDovTvl(): Promise<number>;
3
- export declare function getSafuTvl(): Promise<number>;
@@ -38,7 +38,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getTvl = getTvl;
40
40
  exports.getDovTvl = getDovTvl;
41
- exports.getSafuTvl = getSafuTvl;
42
41
  function getTvl() {
43
42
  return __awaiter(this, void 0, void 0, function () {
44
43
  var response, data;
@@ -77,22 +76,3 @@ function getDovTvl() {
77
76
  });
78
77
  });
79
78
  }
80
- function getSafuTvl() {
81
- return __awaiter(this, void 0, void 0, function () {
82
- var response, data;
83
- return __generator(this, function (_a) {
84
- switch (_a.label) {
85
- case 0: return [4 /*yield*/, fetch("https://api.llama.fi/tvl/typus-safu", {
86
- method: "GET",
87
- })];
88
- case 1:
89
- response = _a.sent();
90
- return [4 /*yield*/, response.json()];
91
- case 2:
92
- data = _a.sent();
93
- // console.log(data);
94
- return [2 /*return*/, data];
95
- }
96
- });
97
- });
98
- }
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.52",
5
+ "version": "1.4.53",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.11.1",
8
8
  "@mysten/kiosk": "0.8.10",