@gearbox-protocol/sdk 8.30.1 → 8.30.2
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.
|
@@ -74,8 +74,6 @@ const BLOCK_DURATION_LOCAL = {
|
|
|
74
74
|
const DEFAULT_DURATION = 12e3;
|
|
75
75
|
const BLOCK_DURATION = Object.values(import_chain.chains).reduce(
|
|
76
76
|
(acc, chain) => {
|
|
77
|
-
if (!chain.blockTime || chain.blockTime === 0)
|
|
78
|
-
console.error(`Block time for ${chain.name} is unknown`);
|
|
79
77
|
const blockTime = chain.blockTime || BLOCK_DURATION_LOCAL[chain.network] || DEFAULT_DURATION;
|
|
80
78
|
acc[chain.network] = blockTime / 1e3;
|
|
81
79
|
return acc;
|
|
@@ -49,8 +49,6 @@ const BLOCK_DURATION_LOCAL = {
|
|
|
49
49
|
const DEFAULT_DURATION = 12e3;
|
|
50
50
|
const BLOCK_DURATION = Object.values(CHAINS).reduce(
|
|
51
51
|
(acc, chain) => {
|
|
52
|
-
if (!chain.blockTime || chain.blockTime === 0)
|
|
53
|
-
console.error(`Block time for ${chain.name} is unknown`);
|
|
54
52
|
const blockTime = chain.blockTime || BLOCK_DURATION_LOCAL[chain.network] || DEFAULT_DURATION;
|
|
55
53
|
acc[chain.network] = blockTime / 1e3;
|
|
56
54
|
return acc;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gearbox-protocol/sdk",
|
|
3
|
-
"version": "8.30.
|
|
3
|
+
"version": "8.30.2",
|
|
4
4
|
"description": "Gearbox SDK",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/cjs/sdk/index.js",
|
|
@@ -54,25 +54,25 @@
|
|
|
54
54
|
"@redstone-finance/evm-connector": "^0.7.5",
|
|
55
55
|
"@redstone-finance/protocol": "^0.7.5",
|
|
56
56
|
"@types/bn.js": "^5.2.0",
|
|
57
|
-
"abitype": "^1.0
|
|
57
|
+
"abitype": "^1.1.0",
|
|
58
58
|
"bn.js": "^5.2.2",
|
|
59
59
|
"buffer": "^6.0.3",
|
|
60
60
|
"date-fns": "^4.1.0",
|
|
61
61
|
"decimal.js-light": "^2.5.1",
|
|
62
62
|
"viem": ">=2.23.15 <3.0.0",
|
|
63
|
-
"zod": "^4.1.
|
|
63
|
+
"zod": "^4.1.7"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@biomejs/biome": "^2.2.
|
|
66
|
+
"@biomejs/biome": "^2.2.4",
|
|
67
67
|
"@commitlint/cli": "^19.8.1",
|
|
68
68
|
"@commitlint/config-conventional": "^19.8.1",
|
|
69
|
-
"@gearbox-protocol/biome-config": "^1.0.
|
|
69
|
+
"@gearbox-protocol/biome-config": "^1.0.2",
|
|
70
70
|
"@types/cross-spawn": "^6.0.6",
|
|
71
71
|
"axios": "^1.11.0",
|
|
72
72
|
"cross-spawn": "^7.0.6",
|
|
73
73
|
"husky": "^9.1.7",
|
|
74
|
-
"lint-staged": "^16.1.
|
|
75
|
-
"pino": "^9.9.
|
|
74
|
+
"lint-staged": "^16.1.6",
|
|
75
|
+
"pino": "^9.9.5",
|
|
76
76
|
"pino-pretty": "^13.1.1",
|
|
77
77
|
"tsup": "^8.5.0",
|
|
78
78
|
"tsx": "^4.20.5",
|