@cetusprotocol/aggregator-sdk 0.3.25 → 0.3.27

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
@@ -6915,13 +6915,13 @@ function parseRouterResponse(data, byAmountIn) {
6915
6915
  scallopScoinTreasury: (_e = path.extended_details) == null ? void 0 : _e.scallop_scoin_treasury,
6916
6916
  haedalPmmBasePriceSeed: (_f = path.extended_details) == null ? void 0 : _f.haedal_pmm_base_price_seed,
6917
6917
  haedalPmmQuotePriceSeed: (_g = path.extended_details) == null ? void 0 : _g.haedal_pmm_quote_price_seed,
6918
- steammfeBankA: (_h = path.extended_details) == null ? void 0 : _h.steammfe_bank_a,
6919
- steammfeBankB: (_i = path.extended_details) == null ? void 0 : _i.steammfe_bank_b,
6920
- steammfeLendingMarket: (_j = path.extended_details) == null ? void 0 : _j.steammfe_lending_market,
6921
- steammfeLendingMarketType: (_k = path.extended_details) == null ? void 0 : _k.steammfe_lending_market_type,
6922
- steammfeBCoinAType: (_l = path.extended_details) == null ? void 0 : _l.steammfe_btoken_a_type,
6923
- steammfeBCoinBType: (_m = path.extended_details) == null ? void 0 : _m.steammfe_btoken_b_type,
6924
- steammfeLPToken: (_n = path.extended_details) == null ? void 0 : _n.steammfe_lp_token_type
6918
+ steammBankA: (_h = path.extended_details) == null ? void 0 : _h.steamm_bank_a,
6919
+ steammBankB: (_i = path.extended_details) == null ? void 0 : _i.steamm_bank_b,
6920
+ steammLendingMarket: (_j = path.extended_details) == null ? void 0 : _j.steamm_lending_market,
6921
+ steammLendingMarketType: (_k = path.extended_details) == null ? void 0 : _k.steamm_lending_market_type,
6922
+ steammBCoinAType: (_l = path.extended_details) == null ? void 0 : _l.steamm_btoken_a_type,
6923
+ steammBCoinBType: (_m = path.extended_details) == null ? void 0 : _m.steamm_btoken_b_type,
6924
+ steammLPToken: (_n = path.extended_details) == null ? void 0 : _n.steamm_lp_token_type
6925
6925
  };
6926
6926
  }
6927
6927
  return {
@@ -7106,7 +7106,7 @@ function getRouter(endpoint, params) {
7106
7106
  url += `&providers=${providers.join(",")}`;
7107
7107
  }
7108
7108
  }
7109
- url += "&v=1000325";
7109
+ url += "&v=1000327";
7110
7110
  const response = yield fetch(url);
7111
7111
  return response;
7112
7112
  } catch (error) {
package/dist/index.mjs CHANGED
@@ -6913,13 +6913,13 @@ function parseRouterResponse(data, byAmountIn) {
6913
6913
  scallopScoinTreasury: (_e = path.extended_details) == null ? void 0 : _e.scallop_scoin_treasury,
6914
6914
  haedalPmmBasePriceSeed: (_f = path.extended_details) == null ? void 0 : _f.haedal_pmm_base_price_seed,
6915
6915
  haedalPmmQuotePriceSeed: (_g = path.extended_details) == null ? void 0 : _g.haedal_pmm_quote_price_seed,
6916
- steammfeBankA: (_h = path.extended_details) == null ? void 0 : _h.steammfe_bank_a,
6917
- steammfeBankB: (_i = path.extended_details) == null ? void 0 : _i.steammfe_bank_b,
6918
- steammfeLendingMarket: (_j = path.extended_details) == null ? void 0 : _j.steammfe_lending_market,
6919
- steammfeLendingMarketType: (_k = path.extended_details) == null ? void 0 : _k.steammfe_lending_market_type,
6920
- steammfeBCoinAType: (_l = path.extended_details) == null ? void 0 : _l.steammfe_btoken_a_type,
6921
- steammfeBCoinBType: (_m = path.extended_details) == null ? void 0 : _m.steammfe_btoken_b_type,
6922
- steammfeLPToken: (_n = path.extended_details) == null ? void 0 : _n.steammfe_lp_token_type
6916
+ steammBankA: (_h = path.extended_details) == null ? void 0 : _h.steamm_bank_a,
6917
+ steammBankB: (_i = path.extended_details) == null ? void 0 : _i.steamm_bank_b,
6918
+ steammLendingMarket: (_j = path.extended_details) == null ? void 0 : _j.steamm_lending_market,
6919
+ steammLendingMarketType: (_k = path.extended_details) == null ? void 0 : _k.steamm_lending_market_type,
6920
+ steammBCoinAType: (_l = path.extended_details) == null ? void 0 : _l.steamm_btoken_a_type,
6921
+ steammBCoinBType: (_m = path.extended_details) == null ? void 0 : _m.steamm_btoken_b_type,
6922
+ steammLPToken: (_n = path.extended_details) == null ? void 0 : _n.steamm_lp_token_type
6923
6923
  };
6924
6924
  }
6925
6925
  return {
@@ -7104,7 +7104,7 @@ function getRouter(endpoint, params) {
7104
7104
  url += `&providers=${providers.join(",")}`;
7105
7105
  }
7106
7106
  }
7107
- url += "&v=1000325";
7107
+ url += "&v=1000327";
7108
7108
  const response = yield fetch(url);
7109
7109
  return response;
7110
7110
  } catch (error) {
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@cetusprotocol/aggregator-sdk",
3
- "version": "0.3.25",
3
+ "version": "0.3.27",
4
4
  "sideEffects": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
- "module": "dist/index.js",
7
+ "module": "dist/index.mjs",
8
8
  "scripts": {
9
9
  "build": "tsup --format cjs,esm --dts",
10
10
  "dev": "tsup --watch",
package/src/api.ts CHANGED
@@ -205,7 +205,7 @@ async function getRouter(endpoint: string, params: FindRouterParams) {
205
205
  }
206
206
 
207
207
  // set newest sdk version
208
- url += "&v=1000325"
208
+ url += "&v=1000327"
209
209
 
210
210
  const response = await fetch(url)
211
211
  return response
package/src/client.ts CHANGED
@@ -864,13 +864,13 @@ export function parseRouterResponse(
864
864
  path.extended_details?.haedal_pmm_base_price_seed,
865
865
  haedalPmmQuotePriceSeed:
866
866
  path.extended_details?.haedal_pmm_quote_price_seed,
867
- steammfeBankA: path.extended_details?.steammfe_bank_a,
868
- steammfeBankB: path.extended_details?.steammfe_bank_b,
869
- steammfeLendingMarket: path.extended_details?.steammfe_lending_market,
870
- steammfeLendingMarketType: path.extended_details?.steammfe_lending_market_type,
871
- steammfeBCoinAType: path.extended_details?.steammfe_btoken_a_type,
872
- steammfeBCoinBType: path.extended_details?.steammfe_btoken_b_type,
873
- steammfeLPToken: path.extended_details?.steammfe_lp_token_type,
867
+ steammBankA: path.extended_details?.steamm_bank_a,
868
+ steammBankB: path.extended_details?.steamm_bank_b,
869
+ steammLendingMarket: path.extended_details?.steamm_lending_market,
870
+ steammLendingMarketType: path.extended_details?.steamm_lending_market_type,
871
+ steammBCoinAType: path.extended_details?.steamm_btoken_a_type,
872
+ steammBCoinBType: path.extended_details?.steamm_btoken_b_type,
873
+ steammLPToken: path.extended_details?.steamm_lp_token_type,
874
874
  }
875
875
  }
876
876
 
@@ -21,8 +21,8 @@ describe("Test steammfe module", () => {
21
21
  let client: AggregatorClient
22
22
  let keypair: Ed25519Keypair
23
23
 
24
- const T_SUI = "0x2e868e44010e06c0fc925d29f35029b6ef75a50e03d997585980fb2acea45ec6::sui::SUI"
25
- const T_USDC = "0x2e868e44010e06c0fc925d29f35029b6ef75a50e03d997585980fb2acea45ec6::usdc::USDC"
24
+ const T_SUI = "0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC"
25
+ const T_USDC = "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI"
26
26
 
27
27
  beforeAll(() => {
28
28
  const fullNodeURL = process.env.SUI_RPC!
@@ -35,9 +35,9 @@ describe("Test steammfe module", () => {
35
35
  keypair = buildTestAccount()
36
36
  }
37
37
 
38
- // const wallet = keypair.getPublicKey().toSuiAddress()
39
- const wallet =
40
- "0xb0deeb083fb5738e2d76820a3e59a284adbd56ab1b1d71d606cda8ea71cffe90"
38
+ const wallet = keypair.getPublicKey().toSuiAddress()
39
+ // const wallet =
40
+ // "0xb0deeb083fb5738e2d76820a3e59a284adbd56ab1b1d71d606cda8ea71cffe90"
41
41
 
42
42
  console.log("wallet: ", wallet)
43
43
 
@@ -73,7 +73,7 @@ describe("Test steammfe module", () => {
73
73
  })
74
74
 
75
75
  test("Build Router TX", async () => {
76
- const amount = "100000"
76
+ const amount = "10000000"
77
77
 
78
78
  const res = await client.findRouters({
79
79
  from: T_USDC,
@@ -81,7 +81,7 @@ describe("Test steammfe module", () => {
81
81
  amount: new BN(amount),
82
82
  byAmountIn: true,
83
83
  depth: 3,
84
- providers: ["STEAMMFE"],
84
+ providers: ["STEAMM"],
85
85
  })
86
86
 
87
87
  console.log("amount in", res?.amountIn.toString())