ponder 0.8.32 → 0.8.33

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.
@@ -10007,11 +10007,11 @@ import {
10007
10007
  getLogsRetryHelper as getLogsRetryHelper2
10008
10008
  } from "@ponder/utils";
10009
10009
  import {
10010
- BlockNotFoundError as BlockNotFoundError2,
10011
10010
  HttpRequestError,
10012
- InternalRpcError,
10013
- InvalidInputRpcError,
10014
- LimitExceededRpcError,
10011
+ JsonRpcVersionUnsupportedError,
10012
+ MethodNotFoundRpcError,
10013
+ MethodNotSupportedRpcError,
10014
+ ParseRpcError,
10015
10015
  isHex
10016
10016
  } from "viem";
10017
10017
  var RETRY_COUNT2 = 9;
@@ -10096,36 +10096,24 @@ var createRequestQueue = ({
10096
10096
  };
10097
10097
  function shouldRetry(error) {
10098
10098
  if ("code" in error && typeof error.code === "number") {
10099
- if (error.code === -1)
10100
- return true;
10101
- if (error.code === InvalidInputRpcError.code)
10102
- return true;
10103
- if (error.code === LimitExceededRpcError.code)
10104
- return true;
10105
- if (error.code === InternalRpcError.code)
10106
- return true;
10107
- return false;
10099
+ if (error.code === ParseRpcError.code)
10100
+ return false;
10101
+ if (error.code === MethodNotFoundRpcError.code)
10102
+ return false;
10103
+ if (error.code === MethodNotSupportedRpcError.code)
10104
+ return false;
10105
+ if (error.code === JsonRpcVersionUnsupportedError.code)
10106
+ return false;
10108
10107
  }
10109
- if (error instanceof BlockNotFoundError2)
10110
- return true;
10111
10108
  if (error instanceof HttpRequestError && error.status) {
10112
- if (error.status === 403)
10113
- return true;
10114
- if (error.status === 408)
10115
- return true;
10116
- if (error.status === 413)
10117
- return true;
10118
- if (error.status === 429)
10119
- return true;
10120
- if (error.status === 500)
10121
- return true;
10122
- if (error.status === 502)
10123
- return true;
10124
- if (error.status === 503)
10125
- return true;
10126
- if (error.status === 504)
10127
- return true;
10128
- return false;
10109
+ if (error.status === 405)
10110
+ return false;
10111
+ if (error.status === 404)
10112
+ return false;
10113
+ if (error.status === 501)
10114
+ return false;
10115
+ if (error.status === 505)
10116
+ return false;
10129
10117
  }
10130
10118
  return true;
10131
10119
  }