@gearbox-protocol/sdk 14.12.0-next.43 → 14.12.0-next.45

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.
@@ -76,7 +76,10 @@ function encodeDelayedIntent(intent) {
76
76
  }
77
77
  }
78
78
  function decodeDelayedIntent(data) {
79
- const [_version, intentType] = (0, import_viem.decodeAbiParameters)(HEADER_PARAMS, data);
79
+ const [version, intentType] = (0, import_viem.decodeAbiParameters)(HEADER_PARAMS, data);
80
+ if (version !== DELAYED_INTENT_VERSION) {
81
+ throw new Error(`unsupported delayed intent version: ${version}`);
82
+ }
80
83
  switch (intentType) {
81
84
  case DELAYED_INTENT_TYPES.INCREASE_LEVERAGE:
82
85
  return { type: "INCREASE_LEVERAGE" };
@@ -205,7 +205,7 @@ const chains = {
205
205
  symbol: "USDT0"
206
206
  },
207
207
  firstBlock: 34650262n,
208
- gasLimit: 200000000n
208
+ gasLimit: 150000000n
209
209
  }),
210
210
  Berachain: withPublicNode(
211
211
  {
@@ -50,7 +50,10 @@ function encodeDelayedIntent(intent) {
50
50
  }
51
51
  }
52
52
  function decodeDelayedIntent(data) {
53
- const [_version, intentType] = decodeAbiParameters(HEADER_PARAMS, data);
53
+ const [version, intentType] = decodeAbiParameters(HEADER_PARAMS, data);
54
+ if (version !== DELAYED_INTENT_VERSION) {
55
+ throw new Error(`unsupported delayed intent version: ${version}`);
56
+ }
54
57
  switch (intentType) {
55
58
  case DELAYED_INTENT_TYPES.INCREASE_LEVERAGE:
56
59
  return { type: "INCREASE_LEVERAGE" };
@@ -191,7 +191,7 @@ const chains = {
191
191
  symbol: "USDT0"
192
192
  },
193
193
  firstBlock: 34650262n,
194
- gasLimit: 200000000n
194
+ gasLimit: 150000000n
195
195
  }),
196
196
  Berachain: withPublicNode(
197
197
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "14.12.0-next.43",
3
+ "version": "14.12.0-next.45",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -73,7 +73,9 @@
73
73
  "test:e2e": "vitest run --project e2e",
74
74
  "test:all": "vitest run",
75
75
  "test": "vitest run",
76
- "generate:e2e": "NODE_OPTIONS='--max-old-space-size=8192' tsx scripts/generate-e2e-fixtures.ts",
76
+ "generate:e2e": "NODE_OPTIONS='--max-old-space-size=8192' tsx dev/scripts/generate-e2e-fixtures.ts",
77
+ "tx:decode": "tsx dev/txdiff/cli.ts decode",
78
+ "tx:diff": "tsx dev/txdiff/cli.ts diff",
77
79
  "prepare": "husky",
78
80
  "check": "biome check --write",
79
81
  "check:ci": "biome check --diagnostic-level=error",