aftermath-ts-sdk 0.0.166 → 0.0.168

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.
@@ -75,9 +75,9 @@ class RouterApiHelpers {
75
75
  pool: inputs.lastPool,
76
76
  });
77
77
  routerGraph.updateOptions({
78
- // maxRouteLength: 2,
79
- tradePartitionCount: 2,
80
- maxGasCost: BigInt(333333333), // 0.333 SUI
78
+ maxRouteLength: 2,
79
+ tradePartitionCount: 1,
80
+ // maxGasCost: BigInt(333_333_333), // 0.333 SUI
81
81
  });
82
82
  const synchronousCompleteRoutes = routerGraph.getCompleteRoutesGivenAmountIns(Object.assign(Object.assign({}, inputs), { coinOutType: lastPoolCoinInType }));
83
83
  const lastPoolCoinInAmounts = synchronousCompleteRoutes.map((route) => route.coinOut.amount);
@@ -148,7 +148,7 @@ exports.RouterApiHelpers = RouterApiHelpers;
148
148
  // =========================================================================
149
149
  RouterApiHelpers.constants = {
150
150
  defaults: {
151
- tradePartitionCount: 3,
151
+ tradePartitionCount: 1,
152
152
  },
153
153
  };
154
154
  // =========================================================================
@@ -327,9 +327,9 @@ _a = RouterGraph;
327
327
  // =========================================================================
328
328
  RouterGraph.defaultOptions = {
329
329
  maxRouteLength: 3,
330
- tradePartitionCount: 3,
331
- minRoutesToCheck: 10,
332
- maxGasCost: BigInt(350000000), // 0.35 SUI
330
+ tradePartitionCount: 1,
331
+ minRoutesToCheck: 5,
332
+ maxGasCost: BigInt(500000000), // 0.5 SUI
333
333
  };
334
334
  // =========================================================================
335
335
  // Supported Coins
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aftermath-ts-sdk",
3
- "version": "0.0.166",
3
+ "version": "0.0.168",
4
4
  "description": "Aftermath TypeScript SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",