@defuse-protocol/intents-sdk 0.32.1 → 0.32.2
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/src/bridges/hot-bridge/hot-bridge-chains.cjs +2 -1
- package/dist/src/bridges/hot-bridge/hot-bridge-chains.d.cts +1 -1
- package/dist/src/bridges/hot-bridge/hot-bridge-chains.d.ts +1 -1
- package/dist/src/bridges/hot-bridge/hot-bridge-chains.js +2 -1
- package/dist/src/bridges/hot-bridge/hot-bridge-utils.cjs +4 -2
- package/dist/src/bridges/hot-bridge/hot-bridge-utils.js +4 -2
- package/dist/src/constants/public-rpc-urls.cjs +2 -1
- package/dist/src/constants/public-rpc-urls.js +2 -1
- package/package.json +1 -1
|
@@ -7,7 +7,8 @@ const HotBridgeChains = [
|
|
|
7
7
|
require_caip2.Chains.TON,
|
|
8
8
|
require_caip2.Chains.Optimism,
|
|
9
9
|
require_caip2.Chains.Avalanche,
|
|
10
|
-
require_caip2.Chains.Stellar
|
|
10
|
+
require_caip2.Chains.Stellar,
|
|
11
|
+
require_caip2.Chains.LayerX
|
|
11
12
|
];
|
|
12
13
|
const HotBridgeEVMChains = HotBridgeChains.filter((a) => a.startsWith("eip155:"));
|
|
13
14
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region src/bridges/hot-bridge/hot-bridge-chains.d.ts
|
|
2
2
|
type HotBridgeChain = (typeof HotBridgeChains)[number];
|
|
3
3
|
type HotBridgeEVMChain = Extract<HotBridgeChain, `eip155:${string}`>;
|
|
4
|
-
declare const HotBridgeChains: ("eip155:10" | "eip155:56" | "eip155:137" | "eip155:43114" | "tvm:-239" | "stellar:pubnet")[];
|
|
4
|
+
declare const HotBridgeChains: ("eip155:10" | "eip155:56" | "eip155:137" | "eip155:196" | "eip155:43114" | "tvm:-239" | "stellar:pubnet")[];
|
|
5
5
|
//#endregion
|
|
6
6
|
export { HotBridgeEVMChain };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region src/bridges/hot-bridge/hot-bridge-chains.d.ts
|
|
2
2
|
type HotBridgeChain = (typeof HotBridgeChains)[number];
|
|
3
3
|
type HotBridgeEVMChain = Extract<HotBridgeChain, `eip155:${string}`>;
|
|
4
|
-
declare const HotBridgeChains: ("eip155:10" | "eip155:56" | "eip155:137" | "eip155:43114" | "tvm:-239" | "stellar:pubnet")[];
|
|
4
|
+
declare const HotBridgeChains: ("eip155:10" | "eip155:56" | "eip155:137" | "eip155:196" | "eip155:43114" | "tvm:-239" | "stellar:pubnet")[];
|
|
5
5
|
//#endregion
|
|
6
6
|
export { HotBridgeEVMChain };
|
|
@@ -13,7 +13,8 @@ const nativeTokenMapping = {
|
|
|
13
13
|
[require_caip2.Chains.TON]: "nep245:v2_1.omni.hot.tg:1117_",
|
|
14
14
|
[require_caip2.Chains.Optimism]: "nep245:v2_1.omni.hot.tg:10_11111111111111111111",
|
|
15
15
|
[require_caip2.Chains.Avalanche]: "nep245:v2_1.omni.hot.tg:43114_11111111111111111111",
|
|
16
|
-
[require_caip2.Chains.Stellar]: "nep245:v2_1.omni.hot.tg:1100_111bzQBB5v7AhLyPMDwS8uJgQV24KaAPXtwyVWu2KXbbfQU6NXRCz"
|
|
16
|
+
[require_caip2.Chains.Stellar]: "nep245:v2_1.omni.hot.tg:1100_111bzQBB5v7AhLyPMDwS8uJgQV24KaAPXtwyVWu2KXbbfQU6NXRCz",
|
|
17
|
+
[require_caip2.Chains.LayerX]: "nep245:v2_1.omni.hot.tg:196_11111111111111111111"
|
|
17
18
|
};
|
|
18
19
|
const caip2NetworkIdMapping = {
|
|
19
20
|
[require_caip2.Chains.BNB]: __hot_labs_omni_sdk.Network.Bnb,
|
|
@@ -21,7 +22,8 @@ const caip2NetworkIdMapping = {
|
|
|
21
22
|
[require_caip2.Chains.TON]: __hot_labs_omni_sdk.Network.Ton,
|
|
22
23
|
[require_caip2.Chains.Optimism]: __hot_labs_omni_sdk.Network.Optimism,
|
|
23
24
|
[require_caip2.Chains.Avalanche]: __hot_labs_omni_sdk.Network.Avalanche,
|
|
24
|
-
[require_caip2.Chains.Stellar]: __hot_labs_omni_sdk.Network.Stellar
|
|
25
|
+
[require_caip2.Chains.Stellar]: __hot_labs_omni_sdk.Network.Stellar,
|
|
26
|
+
[require_caip2.Chains.LayerX]: __hot_labs_omni_sdk.Network.Xlayer
|
|
25
27
|
};
|
|
26
28
|
const networkIdCAIP2Mapping = Object.fromEntries(Object.entries(caip2NetworkIdMapping).map(([k, v]) => [v, k]));
|
|
27
29
|
function getFeeAssetIdForChain(caip2) {
|
|
@@ -10,7 +10,8 @@ const nativeTokenMapping = {
|
|
|
10
10
|
[Chains.TON]: "nep245:v2_1.omni.hot.tg:1117_",
|
|
11
11
|
[Chains.Optimism]: "nep245:v2_1.omni.hot.tg:10_11111111111111111111",
|
|
12
12
|
[Chains.Avalanche]: "nep245:v2_1.omni.hot.tg:43114_11111111111111111111",
|
|
13
|
-
[Chains.Stellar]: "nep245:v2_1.omni.hot.tg:1100_111bzQBB5v7AhLyPMDwS8uJgQV24KaAPXtwyVWu2KXbbfQU6NXRCz"
|
|
13
|
+
[Chains.Stellar]: "nep245:v2_1.omni.hot.tg:1100_111bzQBB5v7AhLyPMDwS8uJgQV24KaAPXtwyVWu2KXbbfQU6NXRCz",
|
|
14
|
+
[Chains.LayerX]: "nep245:v2_1.omni.hot.tg:196_11111111111111111111"
|
|
14
15
|
};
|
|
15
16
|
const caip2NetworkIdMapping = {
|
|
16
17
|
[Chains.BNB]: Network.Bnb,
|
|
@@ -18,7 +19,8 @@ const caip2NetworkIdMapping = {
|
|
|
18
19
|
[Chains.TON]: Network.Ton,
|
|
19
20
|
[Chains.Optimism]: Network.Optimism,
|
|
20
21
|
[Chains.Avalanche]: Network.Avalanche,
|
|
21
|
-
[Chains.Stellar]: Network.Stellar
|
|
22
|
+
[Chains.Stellar]: Network.Stellar,
|
|
23
|
+
[Chains.LayerX]: Network.Xlayer
|
|
22
24
|
};
|
|
23
25
|
const networkIdCAIP2Mapping = Object.fromEntries(Object.entries(caip2NetworkIdMapping).map(([k, v]) => [v, k]));
|
|
24
26
|
function getFeeAssetIdForChain(caip2) {
|
|
@@ -8,7 +8,8 @@ const PUBLIC_EVM_RPC_URLS = {
|
|
|
8
8
|
[require_caip2.Chains.BNB]: ["https://bsc-rpc.publicnode.com"],
|
|
9
9
|
[require_caip2.Chains.Polygon]: ["https://polygon-bor-rpc.publicnode.com"],
|
|
10
10
|
[require_caip2.Chains.Optimism]: ["https://optimism-rpc.publicnode.com"],
|
|
11
|
-
[require_caip2.Chains.Avalanche]: ["https://avalanche-c-chain-rpc.publicnode.com"]
|
|
11
|
+
[require_caip2.Chains.Avalanche]: ["https://avalanche-c-chain-rpc.publicnode.com"],
|
|
12
|
+
[require_caip2.Chains.LayerX]: ["https://rpc.xlayer.tech"]
|
|
12
13
|
};
|
|
13
14
|
const PUBLIC_STELLAR_RPC_URLS = {
|
|
14
15
|
soroban: ["https://mainnet.sorobanrpc.com"],
|
|
@@ -8,7 +8,8 @@ const PUBLIC_EVM_RPC_URLS = {
|
|
|
8
8
|
[Chains.BNB]: ["https://bsc-rpc.publicnode.com"],
|
|
9
9
|
[Chains.Polygon]: ["https://polygon-bor-rpc.publicnode.com"],
|
|
10
10
|
[Chains.Optimism]: ["https://optimism-rpc.publicnode.com"],
|
|
11
|
-
[Chains.Avalanche]: ["https://avalanche-c-chain-rpc.publicnode.com"]
|
|
11
|
+
[Chains.Avalanche]: ["https://avalanche-c-chain-rpc.publicnode.com"],
|
|
12
|
+
[Chains.LayerX]: ["https://rpc.xlayer.tech"]
|
|
12
13
|
};
|
|
13
14
|
const PUBLIC_STELLAR_RPC_URLS = {
|
|
14
15
|
soroban: ["https://mainnet.sorobanrpc.com"],
|