@sodax/sdk 1.0.4-beta → 1.1.0-beta-rc2
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/README.md +4 -4
- 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
|
@@ -7195,7 +7195,7 @@ declare const hyper: {
|
|
|
7195
7195
|
};
|
|
7196
7196
|
declare function getEvmViemChain(id: EvmChainId): Chain;
|
|
7197
7197
|
declare const bnUSDLegacySpokeChainIds: readonly ["0x1.icon", "sui", "stellar"];
|
|
7198
|
-
declare const newbnUSDSpokeChainIds: ("0xa86a.avax" | "0xa4b1.arbitrum" | "0x2105.base" | "0x38.bsc" | "sonic" | "0xa.optimism" | "0x89.polygon" | "hyper" | "lightlink" | "ethereum" | "sui" | "stellar" | "injective-1" | "solana")[];
|
|
7198
|
+
declare const newbnUSDSpokeChainIds: ("0xa86a.avax" | "0xa4b1.arbitrum" | "0x2105.base" | "0x38.bsc" | "sonic" | "0xa.optimism" | "0x89.polygon" | "hyper" | "lightlink" | "ethereum" | "0x2019.kaia" | "sui" | "stellar" | "injective-1" | "solana")[];
|
|
7199
7199
|
declare const bnUSDLegacyTokens: readonly [{
|
|
7200
7200
|
readonly symbol: "bnUSD (legacy)";
|
|
7201
7201
|
readonly name: "bnUSD";
|
|
@@ -7287,6 +7287,12 @@ declare const bnUSDNewTokens: ({
|
|
|
7287
7287
|
readonly decimals: 18;
|
|
7288
7288
|
readonly address: "0x1f22279C89B213944b7Ea41daCB0a868DdCDFd13";
|
|
7289
7289
|
readonly xChainId: "ethereum";
|
|
7290
|
+
} | {
|
|
7291
|
+
readonly symbol: "bnUSD";
|
|
7292
|
+
readonly name: "bnUSD";
|
|
7293
|
+
readonly decimals: 18;
|
|
7294
|
+
readonly address: "0xF8D13cAcb8E2B6BA8396DbA35a7365EF6b603cd6";
|
|
7295
|
+
readonly xChainId: "0x2019.kaia";
|
|
7290
7296
|
} | {
|
|
7291
7297
|
readonly symbol: "bnUSD";
|
|
7292
7298
|
readonly name: "bnUSD";
|
package/dist/index.d.ts
CHANGED
|
@@ -7195,7 +7195,7 @@ declare const hyper: {
|
|
|
7195
7195
|
};
|
|
7196
7196
|
declare function getEvmViemChain(id: EvmChainId): Chain;
|
|
7197
7197
|
declare const bnUSDLegacySpokeChainIds: readonly ["0x1.icon", "sui", "stellar"];
|
|
7198
|
-
declare const newbnUSDSpokeChainIds: ("0xa86a.avax" | "0xa4b1.arbitrum" | "0x2105.base" | "0x38.bsc" | "sonic" | "0xa.optimism" | "0x89.polygon" | "hyper" | "lightlink" | "ethereum" | "sui" | "stellar" | "injective-1" | "solana")[];
|
|
7198
|
+
declare const newbnUSDSpokeChainIds: ("0xa86a.avax" | "0xa4b1.arbitrum" | "0x2105.base" | "0x38.bsc" | "sonic" | "0xa.optimism" | "0x89.polygon" | "hyper" | "lightlink" | "ethereum" | "0x2019.kaia" | "sui" | "stellar" | "injective-1" | "solana")[];
|
|
7199
7199
|
declare const bnUSDLegacyTokens: readonly [{
|
|
7200
7200
|
readonly symbol: "bnUSD (legacy)";
|
|
7201
7201
|
readonly name: "bnUSD";
|
|
@@ -7287,6 +7287,12 @@ declare const bnUSDNewTokens: ({
|
|
|
7287
7287
|
readonly decimals: 18;
|
|
7288
7288
|
readonly address: "0x1f22279C89B213944b7Ea41daCB0a868DdCDFd13";
|
|
7289
7289
|
readonly xChainId: "ethereum";
|
|
7290
|
+
} | {
|
|
7291
|
+
readonly symbol: "bnUSD";
|
|
7292
|
+
readonly name: "bnUSD";
|
|
7293
|
+
readonly decimals: 18;
|
|
7294
|
+
readonly address: "0xF8D13cAcb8E2B6BA8396DbA35a7365EF6b603cd6";
|
|
7295
|
+
readonly xChainId: "0x2019.kaia";
|
|
7290
7296
|
} | {
|
|
7291
7297
|
readonly symbol: "bnUSD";
|
|
7292
7298
|
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, ETHEREUM_MAINNET_CHAIN_ID, LIGHTLINK_MAINNET_CHAIN_ID, HYPEREVM_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, defaultSharedConfig, CONFIG_VERSION, hubChainConfig, getIntentRelayChainId, SOLANA_MAINNET_CHAIN_ID, getMoneyMarketConfig, getSolverConfig, ChainIdToIntentRelayChainId } from '@sodax/types';
|
|
1
|
+
import { CHAIN_IDS, ICON_MAINNET_CHAIN_ID, spokeChainConfig, SUI_MAINNET_CHAIN_ID, STELLAR_MAINNET_CHAIN_ID, KAIA_MAINNET_CHAIN_ID, ETHEREUM_MAINNET_CHAIN_ID, LIGHTLINK_MAINNET_CHAIN_ID, HYPEREVM_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, defaultSharedConfig, CONFIG_VERSION, hubChainConfig, getIntentRelayChainId, SOLANA_MAINNET_CHAIN_ID, getMoneyMarketConfig, getSolverConfig, ChainIdToIntentRelayChainId } from '@sodax/types';
|
|
2
2
|
export * from '@sodax/types';
|
|
3
3
|
import { getAbiItem, defineChain, encodeAbiParameters, parseAbiParameters, createPublicClient, http, fromHex, encodeFunctionData, erc20Abi as erc20Abi$1, toHex, encodePacked, parseEventLogs, keccak256, decodeAbiParameters, isAddress } from 'viem';
|
|
4
|
-
import { mainnet, lightlinkPhoenix, polygon, bsc, optimism, base, arbitrum, avalanche, sonic } from 'viem/chains';
|
|
4
|
+
import { kaia, mainnet, lightlinkPhoenix, polygon, bsc, optimism, base, arbitrum, avalanche, sonic } from 'viem/chains';
|
|
5
5
|
import invariant6 from 'tiny-invariant';
|
|
6
6
|
import { ChainGrpcWasmApi, TxGrpcApi, toBase64, fromBase64, MsgExecuteContract, createTransactionForAddressAndMsg } from '@injectivelabs/sdk-ts';
|
|
7
7
|
import { getNetworkEndpoints, Network } from '@injectivelabs/networks';
|
|
@@ -6798,6 +6798,8 @@ function getEvmViemChain(id) {
|
|
|
6798
6798
|
return lightlinkPhoenix;
|
|
6799
6799
|
case ETHEREUM_MAINNET_CHAIN_ID:
|
|
6800
6800
|
return mainnet;
|
|
6801
|
+
case KAIA_MAINNET_CHAIN_ID:
|
|
6802
|
+
return kaia;
|
|
6801
6803
|
default:
|
|
6802
6804
|
throw new Error(`Unsupported EVM chain ID: ${id}`);
|
|
6803
6805
|
}
|