@gearbox-protocol/sdk 9.9.5 → 9.9.7
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.
|
@@ -527,7 +527,7 @@ class AccountOpener extends import_sdk.SDKConstruct {
|
|
|
527
527
|
await this.#anvil.impersonateAccount({ address: owner });
|
|
528
528
|
await this.#anvil.setBalance({
|
|
529
529
|
address: owner,
|
|
530
|
-
value: (0, import_viem.parseEther)("
|
|
530
|
+
value: (0, import_viem.parseEther)("1000000")
|
|
531
531
|
});
|
|
532
532
|
try {
|
|
533
533
|
await this.#mintDirectly(owner, token, amount, dest.address);
|
|
@@ -536,7 +536,7 @@ class AccountOpener extends import_sdk.SDKConstruct {
|
|
|
536
536
|
`failed to mint directly ${amnt} ${symbol} to ${dest.address}: ${e}`
|
|
537
537
|
);
|
|
538
538
|
try {
|
|
539
|
-
this.#mintAndTransfer(owner, token, amount, dest.address);
|
|
539
|
+
await this.#mintAndTransfer(owner, token, amount, dest.address);
|
|
540
540
|
} catch (e2) {
|
|
541
541
|
this.#logger?.warn(
|
|
542
542
|
`failed to mint and transfer ${amnt} ${symbol} to ${dest.address}: ${e2}`
|
|
@@ -49,8 +49,11 @@ const HUMAN_READABLE_TITLES = {
|
|
|
49
49
|
"PT-wstUSR-25SEP2025": "pt.wstUSR(25.09.25)",
|
|
50
50
|
"PT-yUSD-27NOV2025": "pt.yUSD(27.11.25)",
|
|
51
51
|
"PT-pUSDe-16OCT2025": "pt.pUSDe(16.10.25)",
|
|
52
|
-
"0xab7d50fc2486a1ac06516e2ece9dadc95ba8cd20": "cp0xLRT\xA0\u2192\xA0wstETH",
|
|
53
|
-
"0x6252467c2fefb61cb55180282943139baeea36c5": "
|
|
52
|
+
["0xab7d50fc2486a1ac06516e2ece9dadc95ba8cd20".toLowerCase()]: "cp0xLRT\xA0\u2192\xA0wstETH",
|
|
53
|
+
["0x6252467c2fefb61cb55180282943139baeea36c5".toLowerCase()]: "rstETH\xA0\u2192\xA0wstETH",
|
|
54
|
+
["0xd412ca00d177eba2843348f9c50dd17bfce32c40".toLowerCase()]: "pzETH\xA0\u2192\xA0wstETH",
|
|
55
|
+
["0x26c98674e623647f11909791593fa3b6e9406c67".toLowerCase()]: "steak7LRT\xA0\u2192\xA0wstETH",
|
|
56
|
+
["0x9fb930eacadad079683a4758424a53b9b3692775".toLowerCase()]: "Re7LRT\xA0\u2192\xA0wstETH"
|
|
54
57
|
};
|
|
55
58
|
class TokenData {
|
|
56
59
|
address;
|
|
@@ -520,7 +520,7 @@ class AccountOpener extends SDKConstruct {
|
|
|
520
520
|
await this.#anvil.impersonateAccount({ address: owner });
|
|
521
521
|
await this.#anvil.setBalance({
|
|
522
522
|
address: owner,
|
|
523
|
-
value: parseEther("
|
|
523
|
+
value: parseEther("1000000")
|
|
524
524
|
});
|
|
525
525
|
try {
|
|
526
526
|
await this.#mintDirectly(owner, token, amount, dest.address);
|
|
@@ -529,7 +529,7 @@ class AccountOpener extends SDKConstruct {
|
|
|
529
529
|
`failed to mint directly ${amnt} ${symbol} to ${dest.address}: ${e}`
|
|
530
530
|
);
|
|
531
531
|
try {
|
|
532
|
-
this.#mintAndTransfer(owner, token, amount, dest.address);
|
|
532
|
+
await this.#mintAndTransfer(owner, token, amount, dest.address);
|
|
533
533
|
} catch (e2) {
|
|
534
534
|
this.#logger?.warn(
|
|
535
535
|
`failed to mint and transfer ${amnt} ${symbol} to ${dest.address}: ${e2}`
|
|
@@ -26,8 +26,11 @@ const HUMAN_READABLE_TITLES = {
|
|
|
26
26
|
"PT-wstUSR-25SEP2025": "pt.wstUSR(25.09.25)",
|
|
27
27
|
"PT-yUSD-27NOV2025": "pt.yUSD(27.11.25)",
|
|
28
28
|
"PT-pUSDe-16OCT2025": "pt.pUSDe(16.10.25)",
|
|
29
|
-
"0xab7d50fc2486a1ac06516e2ece9dadc95ba8cd20": "cp0xLRT\xA0\u2192\xA0wstETH",
|
|
30
|
-
"0x6252467c2fefb61cb55180282943139baeea36c5": "
|
|
29
|
+
["0xab7d50fc2486a1ac06516e2ece9dadc95ba8cd20".toLowerCase()]: "cp0xLRT\xA0\u2192\xA0wstETH",
|
|
30
|
+
["0x6252467c2fefb61cb55180282943139baeea36c5".toLowerCase()]: "rstETH\xA0\u2192\xA0wstETH",
|
|
31
|
+
["0xd412ca00d177eba2843348f9c50dd17bfce32c40".toLowerCase()]: "pzETH\xA0\u2192\xA0wstETH",
|
|
32
|
+
["0x26c98674e623647f11909791593fa3b6e9406c67".toLowerCase()]: "steak7LRT\xA0\u2192\xA0wstETH",
|
|
33
|
+
["0x9fb930eacadad079683a4758424a53b9b3692775".toLowerCase()]: "Re7LRT\xA0\u2192\xA0wstETH"
|
|
31
34
|
};
|
|
32
35
|
class TokenData {
|
|
33
36
|
address;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gearbox-protocol/sdk",
|
|
3
|
-
"version": "9.9.
|
|
3
|
+
"version": "9.9.7",
|
|
4
4
|
"description": "Gearbox SDK",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/cjs/sdk/index.js",
|
|
@@ -65,18 +65,18 @@
|
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@biomejs/biome": "^2.2.4",
|
|
68
|
-
"@commitlint/cli": "^
|
|
69
|
-
"@commitlint/config-conventional": "^
|
|
68
|
+
"@commitlint/cli": "^20.0.0",
|
|
69
|
+
"@commitlint/config-conventional": "^20.0.0",
|
|
70
70
|
"@gearbox-protocol/biome-config": "^1.0.2",
|
|
71
71
|
"@types/cross-spawn": "^6.0.6",
|
|
72
72
|
"axios": "^1.12.2",
|
|
73
73
|
"cross-spawn": "^7.0.6",
|
|
74
74
|
"husky": "^9.1.7",
|
|
75
|
-
"lint-staged": "^16.2.
|
|
75
|
+
"lint-staged": "^16.2.1",
|
|
76
76
|
"pino": "^9.11.0",
|
|
77
77
|
"pino-pretty": "^13.1.1",
|
|
78
78
|
"tsup": "^8.5.0",
|
|
79
|
-
"tsx": "^4.20.
|
|
79
|
+
"tsx": "^4.20.6",
|
|
80
80
|
"typescript": "^5.9.2",
|
|
81
81
|
"vitest": "^3.2.4"
|
|
82
82
|
},
|