@polymarket/clob-client-v2 1.0.1 → 1.0.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.
package/dist/index.cjs CHANGED
@@ -1768,24 +1768,11 @@ var ClobClient = class {
1768
1768
  if (!params.builder_code || params.builder_code === bytes32Zero) {
1769
1769
  throw new Error("builderCode is required and cannot be zero");
1770
1770
  }
1771
- this.canL2Auth();
1772
- const endpoint = GET_BUILDER_TRADES;
1773
- const headerArgs = {
1774
- method: GET,
1775
- requestPath: endpoint
1776
- };
1777
- const headers = await createL2Headers(
1778
- this.signer,
1779
- this.creds,
1780
- headerArgs,
1781
- this.useServerTime ? await this.getServerTime() : void 0
1782
- );
1783
- next_cursor = next_cursor || INITIAL_CURSOR;
1784
- const _params = { ...params, next_cursor };
1771
+ const _params = { ...params, next_cursor: next_cursor || INITIAL_CURSOR };
1785
1772
  const {
1786
1773
  data,
1787
1774
  ...rest
1788
- } = await this.get(`${this.host}${endpoint}`, { headers, params: _params });
1775
+ } = await this.get(`${this.host}${GET_BUILDER_TRADES}`, { params: _params });
1789
1776
  return { trades: Array.isArray(data) ? [...data] : [], ...rest };
1790
1777
  }
1791
1778
  async getNotifications() {