@chainstream-io/sdk 2.0.5 → 2.0.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.
package/dist/index.cjs CHANGED
@@ -189,6 +189,7 @@ var import_event_source_polyfill = require("event-source-polyfill");
189
189
  // src/openapi-client/chainstreamApiClient.ts
190
190
  var import_axios = __toESM(require("axios"), 1);
191
191
  var import_axios_retry = __toESM(require("axios-retry"), 1);
192
+ var axiosRetry = typeof import_axios_retry.default === "function" ? import_axios_retry.default : import_axios_retry.default.default;
192
193
  var axiosInstance;
193
194
  var currentOptions = void 0;
194
195
  var configure = (options) => {
@@ -200,7 +201,7 @@ var configure = (options) => {
200
201
  axiosInstance = import_axios.default.create({
201
202
  baseURL
202
203
  });
203
- (0, import_axios_retry.default)(axiosInstance, {
204
+ axiosRetry(axiosInstance, {
204
205
  retryDelay: import_axios_retry.exponentialDelay
205
206
  });
206
207
  axiosInstance.interceptors.request.use(async (config) => {
@@ -2211,9 +2212,9 @@ var getStats = (chain, tokenAddress, options) => {
2211
2212
  options
2212
2213
  );
2213
2214
  };
2214
- var getTopHolders = (chain, tokenAddress, options) => {
2215
+ var getTopHolders = (chain, tokenAddress, params, options) => {
2215
2216
  return chainstreamApiClient(
2216
- { url: `/v2/token/${chain}/${tokenAddress}/topHolders`, method: "GET" },
2217
+ { url: `/v2/token/${chain}/${tokenAddress}/topHolders`, method: "GET", params },
2217
2218
  options
2218
2219
  );
2219
2220
  };