@xswap-link/sdk 0.11.2 → 0.11.4
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/CHANGELOG.md +13 -0
- package/dist/index.global.js +528 -768
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/constants/index.ts +1 -0
- package/src/context/SwapProvider.tsx +7 -2
- package/src/services/integrations/transactions.ts +3 -2
package/dist/index.js
CHANGED
|
@@ -14124,6 +14124,7 @@ var SOLANA_MAINNET_RPC_URL = "https://orbital-thrilling-water.solana-mainnet.qui
|
|
|
14124
14124
|
var JUPITER_V6_PROGRAM_ID = new import_web3.PublicKey(
|
|
14125
14125
|
"JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4"
|
|
14126
14126
|
);
|
|
14127
|
+
var DEPLOYER_ADDRESS = "0x8ebD04b2fbA00418Be00329146837dcE51F02c00";
|
|
14127
14128
|
var DEFAULT_ECOSYSTEM = "evm" /* EVM */;
|
|
14128
14129
|
var NUMBER_INPUT_REGEX = /^[0-9]*[.,]?[0-9]*$/;
|
|
14129
14130
|
var DELIVERY_TIME = 30 * 1e3 * 60;
|
|
@@ -22062,8 +22063,8 @@ var SwapProvider = ({
|
|
|
22062
22063
|
integratorId: integrationConfig.integratorId,
|
|
22063
22064
|
fromChain: srcChain.chainId,
|
|
22064
22065
|
toChain: dstChain.chainId,
|
|
22065
|
-
fromAddress: evmAddress || ADDRESSES[srcChain.chainId]?.FeeCollector ||
|
|
22066
|
-
toAddress: dstChain.ecosystem === "solana" /* SOLANA */ ? solanaAddress || ADDRESSES[dstChain.chainId]?.FeeCollector || "" : evmAddress || ADDRESSES[dstChain.chainId]?.FeeCollector ||
|
|
22066
|
+
fromAddress: evmAddress || ADDRESSES[srcChain.chainId]?.FeeCollector || DEPLOYER_ADDRESS,
|
|
22067
|
+
toAddress: dstChain.ecosystem === "solana" /* SOLANA */ ? solanaAddress || ADDRESSES[dstChain.chainId]?.FeeCollector || "" : evmAddress || ADDRESSES[dstChain.chainId]?.FeeCollector || DEPLOYER_ADDRESS,
|
|
22067
22068
|
fromToken: srcToken.address,
|
|
22068
22069
|
toToken: dstToken.address,
|
|
22069
22070
|
fromAmount: srcValueWei,
|
|
@@ -29698,7 +29699,7 @@ var openTransactionModal = async ({
|
|
|
29698
29699
|
highlightedDstTokens
|
|
29699
29700
|
}) => {
|
|
29700
29701
|
const supportedChains = (await getChains()).filter(
|
|
29701
|
-
({ web3Environment, swapSupported }) => web3Environment === "mainnet" /* MAINNET */ && swapSupported
|
|
29702
|
+
({ web3Environment, swapSupported, bridgeSupported }) => web3Environment === "mainnet" /* MAINNET */ && (swapSupported || bridgeSupported)
|
|
29702
29703
|
);
|
|
29703
29704
|
validateSwapTxData(
|
|
29704
29705
|
integratorId,
|