@gearbox-protocol/sdk 14.10.8 → 14.10.9

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.
@@ -38,7 +38,9 @@ const OUT_OF_SYNC_PATTERNS = [
38
38
  // Optimism proxyd (code -32019) for future/non-existent blocks
39
39
  /block is out of range/i,
40
40
  // EIP-1474 standard (code -32001) when block/state is not available
41
- /resource not found/i
41
+ /resource not found/i,
42
+ // DRPC when a requested block is ahead of the node's latest block
43
+ /greater than latest block/i
42
44
  ];
43
45
  function isOutOfSyncError(e) {
44
46
  if (e instanceof import_viem.BaseError) {
@@ -15,7 +15,9 @@ const OUT_OF_SYNC_PATTERNS = [
15
15
  // Optimism proxyd (code -32019) for future/non-existent blocks
16
16
  /block is out of range/i,
17
17
  // EIP-1474 standard (code -32001) when block/state is not available
18
- /resource not found/i
18
+ /resource not found/i,
19
+ // DRPC when a requested block is ahead of the node's latest block
20
+ /greater than latest block/i
19
21
  ];
20
22
  function isOutOfSyncError(e) {
21
23
  if (e instanceof BaseError) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "14.10.8",
3
+ "version": "14.10.9",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "repository": {