@typus/typus-sdk 1.4.51 → 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.
- package/dist/src/constants/token.d.ts +3 -3
- package/dist/src/constants/token.js +13 -4
- package/dist/src/typus-dov-single-v2/function/bidding.d.ts +1 -1
- package/dist/src/typus-dov-single-v2/function/bidding.js +3 -1
- package/dist/src/typus-dov-single-v2/function/token.js +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ export declare const tokenType: {
|
|
|
6
6
|
SUI: string;
|
|
7
7
|
BTC: string;
|
|
8
8
|
ETH: string;
|
|
9
|
-
|
|
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
|
-
|
|
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 "
|
|
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
|
-
|
|
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
|
-
|
|
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 "
|
|
177
|
+
return "wUSDC";
|
|
169
178
|
case "0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c":
|
|
170
179
|
return "USDT";
|
|
171
180
|
case "0x5d1f47ea69bb0de31c313d7acf89b890dbb8991ea8e03c6c355171f84bb1ba4a":
|
|
@@ -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
|
-
|
|
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;
|