@gearbox-protocol/sdk 8.1.2 → 8.1.4
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/cjs/dev/AccountOpener.js +8 -0
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/normal.js +10 -0
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/token.js +10 -0
- package/dist/esm/dev/AccountOpener.js +8 -0
- package/dist/esm/sdk/sdk-gov-legacy/tokens/normal.js +10 -0
- package/dist/esm/sdk/sdk-gov-legacy/tokens/token.js +10 -0
- package/dist/types/sdk/sdk-gov-legacy/tokens/normal.d.ts +1 -1
- package/package.json +1 -1
|
@@ -100,7 +100,15 @@ class AccountOpener extends import_sdk.SDKConstruct {
|
|
|
100
100
|
const result = await this.#openAccount(target, i + 1, targets.length);
|
|
101
101
|
results.push(result);
|
|
102
102
|
success += result.account ? 1 : 0;
|
|
103
|
+
if (result.error) {
|
|
104
|
+
this.#logger?.error(
|
|
105
|
+
`failed to open account #${i + 1}/${targets.length}: ${result.error}`
|
|
106
|
+
);
|
|
107
|
+
}
|
|
103
108
|
} catch (e) {
|
|
109
|
+
this.#logger?.error(
|
|
110
|
+
`failed to open account #${i + 1}/${targets.length}: ${e}`
|
|
111
|
+
);
|
|
104
112
|
results.push({
|
|
105
113
|
input: target,
|
|
106
114
|
error: e
|
|
@@ -490,6 +490,16 @@ const normalTokens = {
|
|
|
490
490
|
name: "cp0xLRT",
|
|
491
491
|
symbol: "cp0xLRT",
|
|
492
492
|
type: { AllNetworks: import_tokenType.TokenType.NORMAL_TOKEN }
|
|
493
|
+
},
|
|
494
|
+
uptBTC: {
|
|
495
|
+
name: "uptBTC",
|
|
496
|
+
symbol: "uptBTC",
|
|
497
|
+
type: { AllNetworks: import_tokenType.TokenType.NORMAL_TOKEN }
|
|
498
|
+
},
|
|
499
|
+
PT_uptBTC_14AUG2025: {
|
|
500
|
+
name: "Pendle PT uptBTC 14 August 2025 expiry",
|
|
501
|
+
symbol: "PT_uptBTC_14AUG2025",
|
|
502
|
+
type: { AllNetworks: import_tokenType.TokenType.NORMAL_TOKEN }
|
|
493
503
|
}
|
|
494
504
|
};
|
|
495
505
|
const isNormalToken = (t) => typeof t === "string" && !!normalTokens[t];
|
|
@@ -334,6 +334,8 @@ const tokenDataByNetwork = {
|
|
|
334
334
|
DVstETH: "0x5E362eb2c0706Bd1d134689eC75176018385430B",
|
|
335
335
|
waEthLidowstETH: "0x775F661b0bD1739349b9A2A3EF60be277c5d2D29",
|
|
336
336
|
cp0xLRT: "0xB908c9FE885369643adB5FBA4407d52bD726c72d",
|
|
337
|
+
uptBTC: "0x8AcA0841993ef4C87244d519166e767f49362C21",
|
|
338
|
+
PT_uptBTC_14AUG2025: "0x7c853d6bfb49256af65af672dcc3f66c015e96e0",
|
|
337
339
|
BTCB: import_constants.NOT_DEPLOYED,
|
|
338
340
|
WBNB: import_constants.NOT_DEPLOYED,
|
|
339
341
|
dUSDTv310: import_constants.NOT_DEPLOYED,
|
|
@@ -652,6 +654,8 @@ const tokenDataByNetwork = {
|
|
|
652
654
|
DVstETH: import_constants.NOT_DEPLOYED,
|
|
653
655
|
waEthLidowstETH: import_constants.NOT_DEPLOYED,
|
|
654
656
|
cp0xLRT: import_constants.NOT_DEPLOYED,
|
|
657
|
+
uptBTC: import_constants.NOT_DEPLOYED,
|
|
658
|
+
PT_uptBTC_14AUG2025: import_constants.NOT_DEPLOYED,
|
|
655
659
|
BTCB: import_constants.NOT_DEPLOYED,
|
|
656
660
|
WBNB: import_constants.NOT_DEPLOYED,
|
|
657
661
|
dUSDTv310: import_constants.NOT_DEPLOYED,
|
|
@@ -970,6 +974,8 @@ const tokenDataByNetwork = {
|
|
|
970
974
|
DVstETH: import_constants.NOT_DEPLOYED,
|
|
971
975
|
waEthLidowstETH: import_constants.NOT_DEPLOYED,
|
|
972
976
|
cp0xLRT: import_constants.NOT_DEPLOYED,
|
|
977
|
+
uptBTC: import_constants.NOT_DEPLOYED,
|
|
978
|
+
PT_uptBTC_14AUG2025: import_constants.NOT_DEPLOYED,
|
|
973
979
|
BTCB: import_constants.NOT_DEPLOYED,
|
|
974
980
|
WBNB: import_constants.NOT_DEPLOYED,
|
|
975
981
|
dUSDTv310: import_constants.NOT_DEPLOYED,
|
|
@@ -1287,6 +1293,8 @@ const tokenDataByNetwork = {
|
|
|
1287
1293
|
DVstETH: import_constants.NOT_DEPLOYED,
|
|
1288
1294
|
waEthLidowstETH: import_constants.NOT_DEPLOYED,
|
|
1289
1295
|
cp0xLRT: import_constants.NOT_DEPLOYED,
|
|
1296
|
+
uptBTC: import_constants.NOT_DEPLOYED,
|
|
1297
|
+
PT_uptBTC_14AUG2025: import_constants.NOT_DEPLOYED,
|
|
1290
1298
|
BTCB: import_constants.NOT_DEPLOYED,
|
|
1291
1299
|
WBNB: import_constants.NOT_DEPLOYED,
|
|
1292
1300
|
dUSDTv310: import_constants.NOT_DEPLOYED,
|
|
@@ -1604,6 +1612,8 @@ const tokenDataByNetwork = {
|
|
|
1604
1612
|
DVstETH: import_constants.NOT_DEPLOYED,
|
|
1605
1613
|
waEthLidowstETH: import_constants.NOT_DEPLOYED,
|
|
1606
1614
|
cp0xLRT: import_constants.NOT_DEPLOYED,
|
|
1615
|
+
uptBTC: import_constants.NOT_DEPLOYED,
|
|
1616
|
+
PT_uptBTC_14AUG2025: import_constants.NOT_DEPLOYED,
|
|
1607
1617
|
BTCB: import_constants.NOT_DEPLOYED,
|
|
1608
1618
|
WBNB: import_constants.NOT_DEPLOYED,
|
|
1609
1619
|
dUSDTv310: import_constants.NOT_DEPLOYED,
|
|
@@ -85,7 +85,15 @@ class AccountOpener extends SDKConstruct {
|
|
|
85
85
|
const result = await this.#openAccount(target, i + 1, targets.length);
|
|
86
86
|
results.push(result);
|
|
87
87
|
success += result.account ? 1 : 0;
|
|
88
|
+
if (result.error) {
|
|
89
|
+
this.#logger?.error(
|
|
90
|
+
`failed to open account #${i + 1}/${targets.length}: ${result.error}`
|
|
91
|
+
);
|
|
92
|
+
}
|
|
88
93
|
} catch (e) {
|
|
94
|
+
this.#logger?.error(
|
|
95
|
+
`failed to open account #${i + 1}/${targets.length}: ${e}`
|
|
96
|
+
);
|
|
89
97
|
results.push({
|
|
90
98
|
input: target,
|
|
91
99
|
error: e
|
|
@@ -466,6 +466,16 @@ const normalTokens = {
|
|
|
466
466
|
name: "cp0xLRT",
|
|
467
467
|
symbol: "cp0xLRT",
|
|
468
468
|
type: { AllNetworks: TokenType.NORMAL_TOKEN }
|
|
469
|
+
},
|
|
470
|
+
uptBTC: {
|
|
471
|
+
name: "uptBTC",
|
|
472
|
+
symbol: "uptBTC",
|
|
473
|
+
type: { AllNetworks: TokenType.NORMAL_TOKEN }
|
|
474
|
+
},
|
|
475
|
+
PT_uptBTC_14AUG2025: {
|
|
476
|
+
name: "Pendle PT uptBTC 14 August 2025 expiry",
|
|
477
|
+
symbol: "PT_uptBTC_14AUG2025",
|
|
478
|
+
type: { AllNetworks: TokenType.NORMAL_TOKEN }
|
|
469
479
|
}
|
|
470
480
|
};
|
|
471
481
|
const isNormalToken = (t) => typeof t === "string" && !!normalTokens[t];
|
|
@@ -307,6 +307,8 @@ const tokenDataByNetwork = {
|
|
|
307
307
|
DVstETH: "0x5E362eb2c0706Bd1d134689eC75176018385430B",
|
|
308
308
|
waEthLidowstETH: "0x775F661b0bD1739349b9A2A3EF60be277c5d2D29",
|
|
309
309
|
cp0xLRT: "0xB908c9FE885369643adB5FBA4407d52bD726c72d",
|
|
310
|
+
uptBTC: "0x8AcA0841993ef4C87244d519166e767f49362C21",
|
|
311
|
+
PT_uptBTC_14AUG2025: "0x7c853d6bfb49256af65af672dcc3f66c015e96e0",
|
|
310
312
|
BTCB: NOT_DEPLOYED,
|
|
311
313
|
WBNB: NOT_DEPLOYED,
|
|
312
314
|
dUSDTv310: NOT_DEPLOYED,
|
|
@@ -625,6 +627,8 @@ const tokenDataByNetwork = {
|
|
|
625
627
|
DVstETH: NOT_DEPLOYED,
|
|
626
628
|
waEthLidowstETH: NOT_DEPLOYED,
|
|
627
629
|
cp0xLRT: NOT_DEPLOYED,
|
|
630
|
+
uptBTC: NOT_DEPLOYED,
|
|
631
|
+
PT_uptBTC_14AUG2025: NOT_DEPLOYED,
|
|
628
632
|
BTCB: NOT_DEPLOYED,
|
|
629
633
|
WBNB: NOT_DEPLOYED,
|
|
630
634
|
dUSDTv310: NOT_DEPLOYED,
|
|
@@ -943,6 +947,8 @@ const tokenDataByNetwork = {
|
|
|
943
947
|
DVstETH: NOT_DEPLOYED,
|
|
944
948
|
waEthLidowstETH: NOT_DEPLOYED,
|
|
945
949
|
cp0xLRT: NOT_DEPLOYED,
|
|
950
|
+
uptBTC: NOT_DEPLOYED,
|
|
951
|
+
PT_uptBTC_14AUG2025: NOT_DEPLOYED,
|
|
946
952
|
BTCB: NOT_DEPLOYED,
|
|
947
953
|
WBNB: NOT_DEPLOYED,
|
|
948
954
|
dUSDTv310: NOT_DEPLOYED,
|
|
@@ -1260,6 +1266,8 @@ const tokenDataByNetwork = {
|
|
|
1260
1266
|
DVstETH: NOT_DEPLOYED,
|
|
1261
1267
|
waEthLidowstETH: NOT_DEPLOYED,
|
|
1262
1268
|
cp0xLRT: NOT_DEPLOYED,
|
|
1269
|
+
uptBTC: NOT_DEPLOYED,
|
|
1270
|
+
PT_uptBTC_14AUG2025: NOT_DEPLOYED,
|
|
1263
1271
|
BTCB: NOT_DEPLOYED,
|
|
1264
1272
|
WBNB: NOT_DEPLOYED,
|
|
1265
1273
|
dUSDTv310: NOT_DEPLOYED,
|
|
@@ -1577,6 +1585,8 @@ const tokenDataByNetwork = {
|
|
|
1577
1585
|
DVstETH: NOT_DEPLOYED,
|
|
1578
1586
|
waEthLidowstETH: NOT_DEPLOYED,
|
|
1579
1587
|
cp0xLRT: NOT_DEPLOYED,
|
|
1588
|
+
uptBTC: NOT_DEPLOYED,
|
|
1589
|
+
PT_uptBTC_14AUG2025: NOT_DEPLOYED,
|
|
1580
1590
|
BTCB: NOT_DEPLOYED,
|
|
1581
1591
|
WBNB: NOT_DEPLOYED,
|
|
1582
1592
|
dUSDTv310: NOT_DEPLOYED,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { TokenBase } from "./token.js";
|
|
2
2
|
import type { TokenNetwork } from "./tokenType.js";
|
|
3
3
|
import { TokenType } from "./tokenType.js";
|
|
4
|
-
export type NormalToken = "1INCH" | "AAVE" | "CRV" | "LINK" | "SNX" | "UNI" | "USDT" | "DOLA" | "USDC" | "USDC_e" | "DAI" | "WETH" | "WBTC" | "tBTC" | "YFI" | "WLD" | "OP" | "STETH" | "CVX" | "FRAX" | "FXS" | "LDO" | "LUSD" | "sUSD" | "GUSD" | "LQTY" | "GMX" | "ARB" | "BAL" | "ARB" | "MKR" | "RPL" | "APE" | "rETH" | "AURA" | "LBTC" | "eBTC" | "solvBTC" | "pumpBTC" | "osETH" | "weETH" | "SWISE" | "ezETH" | "rsETH" | "PENDLE" | "frxETH" | "cbETH" | "rswETH" | "USDe" | "GHO" | "pufETH" | "wstETH" | "USDS" | "SKY" | "beraSTONE" | "wS" | "stS" | "scUSD" | "T" | "tETH" | "USDL" | "wUSDL" | "csUSDL" | "RLUSD" | "MORPHO" | "steakLRT" | "Re7LRT" | "amphrETH" | "rstETH" | "pzETH" | "DVstETH" | "waEthLidowstETH" | "PT_rsETH_26SEP2024" | "PT_sUSDe_26DEC2024" | "PT_eETH_26DEC2024" | "PT_ezETH_26DEC2024" | "PT_eBTC_26DEC2024" | "PT_LBTC_27MAR2025" | "PT_corn_solvBTC_BBN_26DEC2024" | "PT_corn_pumpBTC_26DEC2024" | "PT_cornLBTC_26DEC2024" | "PT_corn_eBTC_27MAR2025" | "PT_sUSDe_27MAR2025" | "PT_sUSDe_29MAY2025" | "PT_beraSTONE_10APR2025" | "rstETH_Lido_wstETH" | "DVstETH_Prime_wstETH" | "SHIB" | "crvUSD" | "WBNB" | "BTCB" | "USD1" | "USDX" | "cp0xLRT";
|
|
4
|
+
export type NormalToken = "1INCH" | "AAVE" | "CRV" | "LINK" | "SNX" | "UNI" | "USDT" | "DOLA" | "USDC" | "USDC_e" | "DAI" | "WETH" | "WBTC" | "tBTC" | "YFI" | "WLD" | "OP" | "STETH" | "CVX" | "FRAX" | "FXS" | "LDO" | "LUSD" | "sUSD" | "GUSD" | "LQTY" | "GMX" | "ARB" | "BAL" | "ARB" | "MKR" | "RPL" | "APE" | "rETH" | "AURA" | "LBTC" | "eBTC" | "solvBTC" | "pumpBTC" | "osETH" | "weETH" | "SWISE" | "ezETH" | "rsETH" | "PENDLE" | "frxETH" | "cbETH" | "rswETH" | "USDe" | "GHO" | "pufETH" | "wstETH" | "USDS" | "SKY" | "beraSTONE" | "wS" | "stS" | "scUSD" | "T" | "tETH" | "USDL" | "wUSDL" | "csUSDL" | "RLUSD" | "MORPHO" | "steakLRT" | "Re7LRT" | "amphrETH" | "rstETH" | "pzETH" | "DVstETH" | "waEthLidowstETH" | "PT_rsETH_26SEP2024" | "PT_sUSDe_26DEC2024" | "PT_eETH_26DEC2024" | "PT_ezETH_26DEC2024" | "PT_eBTC_26DEC2024" | "PT_LBTC_27MAR2025" | "PT_corn_solvBTC_BBN_26DEC2024" | "PT_corn_pumpBTC_26DEC2024" | "PT_cornLBTC_26DEC2024" | "PT_corn_eBTC_27MAR2025" | "PT_sUSDe_27MAR2025" | "PT_sUSDe_29MAY2025" | "PT_beraSTONE_10APR2025" | "rstETH_Lido_wstETH" | "DVstETH_Prime_wstETH" | "SHIB" | "crvUSD" | "WBNB" | "BTCB" | "USD1" | "USDX" | "cp0xLRT" | "uptBTC" | "PT_uptBTC_14AUG2025";
|
|
5
5
|
export type NormalTokenData = {
|
|
6
6
|
symbol: NormalToken;
|
|
7
7
|
type: Partial<Record<TokenNetwork, TokenType.NORMAL_TOKEN>>;
|