@rhea-finance/cross-chain-sdk 0.1.16 → 0.1.17

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
@@ -17530,6 +17530,7 @@ var NEAR_CONFIGS = {
17530
17530
  dataServiceUrl: "https://apidata.rhea.finance",
17531
17531
  txIdApiUrl: "https://api3.nearblocks.io",
17532
17532
  oneClickUrl: "https://1click.chaindefuser.com/v0",
17533
+ oneClickProxyUrl: "https://api.rhea.finance/api/1click",
17533
17534
  findPathUrl: "https://smartrouter.rhea.finance",
17534
17535
  hiddenAssets: [
17535
17536
  "meta-token.near",
@@ -17560,6 +17561,7 @@ var NEAR_CONFIGS = {
17560
17561
  dataServiceUrl: "https://apidata.rhea.finance",
17561
17562
  txIdApiUrl: "https://api3.nearblocks.io",
17562
17563
  oneClickUrl: "https://1click.chaindefuser.com/v0",
17564
+ oneClickProxyUrl: "https://api.rhea.finance/api/1click",
17563
17565
  findPathUrl: "https://smartrouter.rhea.finance",
17564
17566
  hiddenAssets: [
17565
17567
  "meta-token.near",
@@ -18017,6 +18019,7 @@ init_polyfills();
18017
18019
  function getNearRuntimeUrls() {
18018
18020
  return {
18019
18021
  oneClickUrl: config_near.oneClickUrl,
18022
+ oneClickProxyUrl: config_near.oneClickProxyUrl,
18020
18023
  indexUrl: config_near.indexUrl,
18021
18024
  findPathUrl: config_near.findPathUrl
18022
18025
  };
@@ -18253,8 +18256,8 @@ function normalizeIntentsQuoteResponse(response) {
18253
18256
  async function fetchIntentsQuotation(params) {
18254
18257
  try {
18255
18258
  const res_params = buildIntentsQuoteRequest(params);
18256
- const { oneClickUrl } = getNearRuntimeUrls();
18257
- const response = await fetch(`${oneClickUrl}/quote`, {
18259
+ const { oneClickProxyUrl } = getNearRuntimeUrls();
18260
+ const response = await fetch(`${oneClickProxyUrl}/quote`, {
18258
18261
  method: "POST",
18259
18262
  headers: {
18260
18263
  "Content-type": "application/json; charset=UTF-8",
@@ -18327,9 +18330,9 @@ async function fetchIntentsOrders(params) {
18327
18330
  }
18328
18331
  async function fetchIntentsTransactionStatus(depositAddress) {
18329
18332
  try {
18330
- const { oneClickUrl } = getNearRuntimeUrls();
18333
+ const { oneClickProxyUrl } = getNearRuntimeUrls();
18331
18334
  const response = await fetch(
18332
- `${oneClickUrl}/status?depositAddress=${depositAddress}`,
18335
+ `${oneClickProxyUrl}/status?depositAddress=${depositAddress}`,
18333
18336
  {
18334
18337
  method: "GET",
18335
18338
  headers: {