@cetusprotocol/aggregator-sdk 0.4.2 → 0.4.4

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.js CHANGED
@@ -6566,10 +6566,10 @@ var _AggregatorClient = class _AggregatorClient {
6566
6566
  balance: BigInt(coin.balance)
6567
6567
  });
6568
6568
  }
6569
- if (gotCoins.data.length < limit) {
6569
+ if (!gotCoins.hasNextPage) {
6570
6570
  break;
6571
6571
  }
6572
- cursor = gotCoins.data[limit - 1].coinObjectId;
6572
+ cursor = gotCoins.nextCursor;
6573
6573
  } catch (e) {
6574
6574
  console.error("getCoins error:", e);
6575
6575
  break;
@@ -7319,7 +7319,7 @@ function processEndpoint(endpoint) {
7319
7319
  }
7320
7320
 
7321
7321
  // src/api.ts
7322
- var SDK_VERSION = 1000402;
7322
+ var SDK_VERSION = 1000404;
7323
7323
  function getRouterResult(endpoint, apiKey, params) {
7324
7324
  return __async(this, null, function* () {
7325
7325
  let response;
package/dist/index.mjs CHANGED
@@ -6564,10 +6564,10 @@ var _AggregatorClient = class _AggregatorClient {
6564
6564
  balance: BigInt(coin.balance)
6565
6565
  });
6566
6566
  }
6567
- if (gotCoins.data.length < limit) {
6567
+ if (!gotCoins.hasNextPage) {
6568
6568
  break;
6569
6569
  }
6570
- cursor = gotCoins.data[limit - 1].coinObjectId;
6570
+ cursor = gotCoins.nextCursor;
6571
6571
  } catch (e) {
6572
6572
  console.error("getCoins error:", e);
6573
6573
  break;
@@ -7317,7 +7317,7 @@ function processEndpoint(endpoint) {
7317
7317
  }
7318
7318
 
7319
7319
  // src/api.ts
7320
- var SDK_VERSION = 1000402;
7320
+ var SDK_VERSION = 1000404;
7321
7321
  function getRouterResult(endpoint, apiKey, params) {
7322
7322
  return __async(this, null, function* () {
7323
7323
  let response;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cetusprotocol/aggregator-sdk",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "sideEffects": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/.env.example DELETED
@@ -1,4 +0,0 @@
1
- SUI_PRC=
2
- SUI_WALLET_SECRET=
3
- SUI_WALLET_MNEMONICS=
4
- CETUS_AGGREGATOR=
package/bun.lockb DELETED
Binary file