@sodax/sdk 1.0.0-rc.2 → 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.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -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
|
@@ -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';
|
|
@@ -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
|
}
|