@sodax/sdk 1.0.0-rc.1 → 1.0.0-rc.3

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.d.cts CHANGED
@@ -9258,7 +9258,7 @@ declare const FEE_PERCENTAGE_SCALE = 10000n;
9258
9258
  declare const STELLAR_PRIORITY_FEE = "10000";
9259
9259
  declare const STELLAR_DEFAULT_TX_TIMEOUT_SECONDS = 100;
9260
9260
  declare const DEFAULT_DEADLINE_OFFSET = 300n;
9261
- declare const DEFAULT_BACKEND_API_ENDPOINT = "https://apiv1.coolify.iconblockchain.xyz";
9261
+ declare const DEFAULT_BACKEND_API_ENDPOINT = "https://api.sodax.com/v1/be";
9262
9262
  declare const DEFAULT_BACKEND_API_TIMEOUT = 30000;
9263
9263
  declare const DEFAULT_BACKEND_API_HEADERS: {
9264
9264
  'Content-Type': string;
@@ -9301,7 +9301,7 @@ declare const hyper: {
9301
9301
  };
9302
9302
  declare function getEvmViemChain(id: EvmChainId): Chain;
9303
9303
  declare const bnUSDLegacySpokeChainIds: readonly ["0x1.icon", "sui", "stellar"];
9304
- declare const newbnUSDSpokeChainIds: ("0xa86a.avax" | "0xa4b1.arbitrum" | "0x2105.base" | "0x38.bsc" | "sonic" | "0xa.optimism" | "0x89.polygon" | "nibiru" | "hyper" | "lightlink" | "sui" | "stellar" | "injective-1" | "solana")[];
9304
+ declare const newbnUSDSpokeChainIds: ("0xa86a.avax" | "0xa4b1.arbitrum" | "0x2105.base" | "0x38.bsc" | "sonic" | "0xa.optimism" | "0x89.polygon" | "nibiru" | "hyper" | "lightlink" | "ethereum" | "sui" | "stellar" | "injective-1" | "solana")[];
9305
9305
  declare const bnUSDLegacyTokens: readonly [{
9306
9306
  readonly symbol: "bnUSD (legacy)";
9307
9307
  readonly name: "bnUSD";
@@ -9393,6 +9393,12 @@ declare const bnUSDNewTokens: ({
9393
9393
  readonly decimals: 18;
9394
9394
  readonly address: "0x36134A03dcD03Bbe858B8F7ED28a71AAC608F9E7";
9395
9395
  readonly xChainId: "lightlink";
9396
+ } | {
9397
+ readonly symbol: "bnUSD";
9398
+ readonly name: "bnUSD";
9399
+ readonly decimals: 18;
9400
+ readonly address: "0x1f22279C89B213944b7Ea41daCB0a868DdCDFd13";
9401
+ readonly xChainId: "ethereum";
9396
9402
  } | {
9397
9403
  readonly symbol: "bnUSD";
9398
9404
  readonly name: "bnUSD";
package/dist/index.d.ts CHANGED
@@ -9258,7 +9258,7 @@ declare const FEE_PERCENTAGE_SCALE = 10000n;
9258
9258
  declare const STELLAR_PRIORITY_FEE = "10000";
9259
9259
  declare const STELLAR_DEFAULT_TX_TIMEOUT_SECONDS = 100;
9260
9260
  declare const DEFAULT_DEADLINE_OFFSET = 300n;
9261
- declare const DEFAULT_BACKEND_API_ENDPOINT = "https://apiv1.coolify.iconblockchain.xyz";
9261
+ declare const DEFAULT_BACKEND_API_ENDPOINT = "https://api.sodax.com/v1/be";
9262
9262
  declare const DEFAULT_BACKEND_API_TIMEOUT = 30000;
9263
9263
  declare const DEFAULT_BACKEND_API_HEADERS: {
9264
9264
  'Content-Type': string;
@@ -9301,7 +9301,7 @@ declare const hyper: {
9301
9301
  };
9302
9302
  declare function getEvmViemChain(id: EvmChainId): Chain;
9303
9303
  declare const bnUSDLegacySpokeChainIds: readonly ["0x1.icon", "sui", "stellar"];
9304
- declare const newbnUSDSpokeChainIds: ("0xa86a.avax" | "0xa4b1.arbitrum" | "0x2105.base" | "0x38.bsc" | "sonic" | "0xa.optimism" | "0x89.polygon" | "nibiru" | "hyper" | "lightlink" | "sui" | "stellar" | "injective-1" | "solana")[];
9304
+ declare const newbnUSDSpokeChainIds: ("0xa86a.avax" | "0xa4b1.arbitrum" | "0x2105.base" | "0x38.bsc" | "sonic" | "0xa.optimism" | "0x89.polygon" | "nibiru" | "hyper" | "lightlink" | "ethereum" | "sui" | "stellar" | "injective-1" | "solana")[];
9305
9305
  declare const bnUSDLegacyTokens: readonly [{
9306
9306
  readonly symbol: "bnUSD (legacy)";
9307
9307
  readonly name: "bnUSD";
@@ -9393,6 +9393,12 @@ declare const bnUSDNewTokens: ({
9393
9393
  readonly decimals: 18;
9394
9394
  readonly address: "0x36134A03dcD03Bbe858B8F7ED28a71AAC608F9E7";
9395
9395
  readonly xChainId: "lightlink";
9396
+ } | {
9397
+ readonly symbol: "bnUSD";
9398
+ readonly name: "bnUSD";
9399
+ readonly decimals: 18;
9400
+ readonly address: "0x1f22279C89B213944b7Ea41daCB0a868DdCDFd13";
9401
+ readonly xChainId: "ethereum";
9396
9402
  } | {
9397
9403
  readonly symbol: "bnUSD";
9398
9404
  readonly name: "bnUSD";
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { CHAIN_IDS, ICON_MAINNET_CHAIN_ID, spokeChainConfig, SUI_MAINNET_CHAIN_ID, STELLAR_MAINNET_CHAIN_ID, SOLANA_MAINNET_CHAIN_ID, LIGHTLINK_MAINNET_CHAIN_ID, HYPEREVM_MAINNET_CHAIN_ID, NIBIRU_MAINNET_CHAIN_ID, POLYGON_MAINNET_CHAIN_ID, BSC_MAINNET_CHAIN_ID, OPTIMISM_MAINNET_CHAIN_ID, BASE_MAINNET_CHAIN_ID, ARBITRUM_MAINNET_CHAIN_ID, AVALANCHE_MAINNET_CHAIN_ID, SONIC_MAINNET_CHAIN_ID, defaultSodaxConfig, hubChainConfig, getIntentRelayChainId, getMoneyMarketConfig, getSolverConfig, ChainIdToIntentRelayChainId } from '@sodax/types';
1
+ import { CHAIN_IDS, ICON_MAINNET_CHAIN_ID, spokeChainConfig, SUI_MAINNET_CHAIN_ID, STELLAR_MAINNET_CHAIN_ID, SOLANA_MAINNET_CHAIN_ID, ETHEREUM_MAINNET_CHAIN_ID, LIGHTLINK_MAINNET_CHAIN_ID, HYPEREVM_MAINNET_CHAIN_ID, NIBIRU_MAINNET_CHAIN_ID, POLYGON_MAINNET_CHAIN_ID, BSC_MAINNET_CHAIN_ID, OPTIMISM_MAINNET_CHAIN_ID, BASE_MAINNET_CHAIN_ID, ARBITRUM_MAINNET_CHAIN_ID, AVALANCHE_MAINNET_CHAIN_ID, SONIC_MAINNET_CHAIN_ID, defaultSodaxConfig, hubChainConfig, getIntentRelayChainId, getMoneyMarketConfig, getSolverConfig, ChainIdToIntentRelayChainId } from '@sodax/types';
2
2
  export * from '@sodax/types';
3
3
  import { getAbiItem, defineChain, encodeAbiParameters, parseAbiParameters, fromHex, toHex, encodeFunctionData, erc20Abi as erc20Abi$1, encodePacked, parseEventLogs, keccak256, createPublicClient, http, decodeAbiParameters, isAddress } from 'viem';
4
- import { lightlinkPhoenix, nibiru, polygon, bsc, optimism, base, arbitrum, avalanche, sonic } from 'viem/chains';
4
+ import { mainnet, lightlinkPhoenix, nibiru, polygon, bsc, optimism, base, arbitrum, avalanche, sonic } from 'viem/chains';
5
5
  import * as IconSdkRaw from 'icon-sdk-js';
6
6
  import { ChainGrpcWasmApi, TxGrpcApi, toBase64, fromBase64 } from '@injectivelabs/sdk-ts';
7
7
  import { getNetworkEndpoints, Network } from '@injectivelabs/networks';
@@ -6744,7 +6744,7 @@ var FEE_PERCENTAGE_SCALE = 10000n;
6744
6744
  var STELLAR_PRIORITY_FEE = "10000";
6745
6745
  var STELLAR_DEFAULT_TX_TIMEOUT_SECONDS = 100;
6746
6746
  var DEFAULT_DEADLINE_OFFSET = 300n;
6747
- var DEFAULT_BACKEND_API_ENDPOINT = "https://apiv1.coolify.iconblockchain.xyz";
6747
+ var DEFAULT_BACKEND_API_ENDPOINT = "https://api.sodax.com/v1/be";
6748
6748
  var DEFAULT_BACKEND_API_TIMEOUT = 3e4;
6749
6749
  var DEFAULT_BACKEND_API_HEADERS = {
6750
6750
  "Content-Type": "application/json",
@@ -6798,6 +6798,8 @@ function getEvmViemChain(id) {
6798
6798
  return hyper;
6799
6799
  case LIGHTLINK_MAINNET_CHAIN_ID:
6800
6800
  return lightlinkPhoenix;
6801
+ case ETHEREUM_MAINNET_CHAIN_ID:
6802
+ return mainnet;
6801
6803
  default:
6802
6804
  throw new Error(`Unsupported EVM chain ID: ${id}`);
6803
6805
  }