@aurora-is-near/intents-swap-widget 3.14.0-redesign.8 → 3.14.0-redesign.9
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/{config-CrzQCoLQ.js → config-CG-NCoEP.js} +328 -329
- package/dist/config-CG-NCoEP.js.map +1 -0
- package/dist/config.js +1 -1
- package/dist/errors.js +1 -1
- package/dist/ext/alchemy/index.js +1 -1
- package/dist/ext/index.js +1 -1
- package/dist/features/BalanceRpcLoader/TokenBalanceLoader.js +1 -1
- package/dist/features/BalanceRpcLoader/index.js +1 -1
- package/dist/features/BalanceRpcLoader/useTokenBalanceRpc.js +1 -1
- package/dist/features/ChainsDropdown/index.js +1 -1
- package/dist/features/DepositMethodSwitcher.js +1 -1
- package/dist/features/ErrorBoundary.js +1 -1
- package/dist/features/ExternalDeposit.js +1 -1
- package/dist/features/SendAddress/index.js +1 -1
- package/dist/features/SendAddress/useNotification.js +1 -1
- package/dist/features/SubmitButton/index.js +1 -1
- package/dist/features/SuccessScreen/index.js +1 -1
- package/dist/features/SwapDirectionSwitcher.js +1 -1
- package/dist/features/SwapQuote/SwapQuote.js +1 -1
- package/dist/features/SwapQuote/index.js +1 -1
- package/dist/features/TokenInput/TokenInput.js +1 -1
- package/dist/features/TokenInput/TokenInputEmpty.js +1 -1
- package/dist/features/TokenInput/TokenInputSource.js +1 -1
- package/dist/features/TokenInput/TokenInputTarget.js +1 -1
- package/dist/features/TokenInput/WalletBalance.js +1 -1
- package/dist/features/TokenInput/hooks/index.js +1 -1
- package/dist/features/TokenInput/hooks/useTokenInputBalance.js +1 -1
- package/dist/features/TokenInput/index.js +1 -1
- package/dist/features/TokensList/TokenItem.js +1 -1
- package/dist/features/TokensList/TokensList.js +1 -1
- package/dist/features/TokensList/index.js +1 -1
- package/dist/features/TokensModal.js +1 -1
- package/dist/features/WalletCompatibilityCheck/WalletCompatibilityModal.js +1 -1
- package/dist/features/WalletCompatibilityCheck/index.js +1 -1
- package/dist/features/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/useAllTokens.js +1 -1
- package/dist/hooks/useChains.js +1 -1
- package/dist/hooks/useCompatibilityCheck.js +1 -1
- package/dist/hooks/useDefaultToken.js +1 -1
- package/dist/hooks/useExternalDepositStatus/index.js +1 -1
- package/dist/hooks/useExternalDepositStatus/usePoaExternalDepositStatus.js +1 -1
- package/dist/hooks/useIntentsBalance.js +1 -1
- package/dist/hooks/useIsCompatibilityCheckRequired.js +1 -1
- package/dist/hooks/useMakeDepositAddress.js +1 -1
- package/dist/hooks/useMakeEvmTransfer.d.ts +1 -1
- package/dist/hooks/useMakeEvmTransfer.js +1 -1
- package/dist/hooks/useMakeEvmTransfer.js.map +1 -1
- package/dist/hooks/useMakeIntentsTransfer.js +1 -1
- package/dist/hooks/useMakeNEARFtTransferCall.js +1 -1
- package/dist/hooks/useMakeQuote.js +1 -1
- package/dist/hooks/useMakeQuoteTransfer.js +2 -2
- package/dist/hooks/useMakeTransfer.js +1 -1
- package/dist/hooks/useMergedBalance.js +1 -1
- package/dist/hooks/useSwitchChain.js +1 -1
- package/dist/hooks/useTheme.js +1 -1
- package/dist/hooks/useTokenInputPair.js +1 -1
- package/dist/hooks/useTokens.js +1 -1
- package/dist/hooks/useTokensFiltered.js +1 -1
- package/dist/hooks/useTokensIntentsUnique.js +1 -1
- package/dist/index.js +1 -1
- package/dist/machine/effects/index.js +1 -1
- package/dist/machine/effects/useAlchemyBalanceEffect.js +1 -1
- package/dist/machine/effects/useBalancesUpdateEffect.js +1 -1
- package/dist/machine/effects/useMakeQuoteEffect.js +1 -1
- package/dist/machine/effects/useSelectedTokensEffect.js +1 -1
- package/dist/machine/effects/useSetTokenBalanceEffect.js +1 -1
- package/dist/machine/effects/useSetTokenIntentsTargetEffect.js +1 -1
- package/dist/machine/effects/useWalletConnEffect.js +1 -1
- package/dist/machine/events/index.js +1 -1
- package/dist/machine/events/tokenSelect.js +1 -1
- package/dist/machine/events/validateInputAndMoveTo.js +1 -1
- package/dist/machine/events/validateInputs.js +1 -1
- package/dist/machine/index.js +1 -1
- package/dist/machine/snap.js +1 -1
- package/dist/machine/subscriptions/checkers/isSendAddressAsConnected.js +1 -1
- package/dist/machine/subscriptions/index.js +1 -1
- package/dist/theme/ThemeProvider.js +1 -1
- package/dist/types/transfer.d.ts +1 -1
- package/dist/utils/intents/signers/near.js +1 -1
- package/dist/utils/intents/signers/privy.js +1 -1
- package/dist/utils/near/getNearNep141StorageBalance.js +1 -1
- package/dist/widgets/WidgetDeposit/WidgetDepositContent.js +1 -1
- package/dist/widgets/WidgetDeposit/WidgetDepositSkeleton.js +1 -1
- package/dist/widgets/WidgetSwap/WidgetSwapContent.js +1 -1
- package/dist/widgets/WidgetSwap/WidgetSwapSkeleton.js +1 -1
- package/dist/widgets/WidgetWithdraw/WidgetWithdrawContent.js +1 -1
- package/dist/widgets/WidgetWithdraw/WidgetWithdrawSkeleton.js +1 -1
- package/package.json +1 -1
- package/src/hooks/useMakeEvmTransfer.ts +3 -3
- package/src/hooks/useMakeQuoteTransfer.ts +3 -2
- package/src/types/transfer.ts +1 -1
- package/dist/config-CrzQCoLQ.js.map +0 -1
package/dist/config.js
CHANGED
|
@@ -8,7 +8,7 @@ import "react";
|
|
|
8
8
|
import "@tanstack/react-query";
|
|
9
9
|
import "react-i18next";
|
|
10
10
|
import "./localisation.js";
|
|
11
|
-
import { W as K, ai as L, y as M } from "./config-
|
|
11
|
+
import { W as K, ai as L, y as M } from "./config-CG-NCoEP.js";
|
|
12
12
|
import "@headlessui/react";
|
|
13
13
|
import "framer-motion";
|
|
14
14
|
import "lucide-react";
|
package/dist/errors.js
CHANGED
|
@@ -3,7 +3,7 @@ import "@tanstack/react-query";
|
|
|
3
3
|
import "./parse.js";
|
|
4
4
|
import "./load.js";
|
|
5
5
|
import "./types.js";
|
|
6
|
-
import { t as s } from "../../config-
|
|
6
|
+
import { t as s } from "../../config-CG-NCoEP.js";
|
|
7
7
|
import "../../machine/guards/index.js";
|
|
8
8
|
import "../../machine/machine.js";
|
|
9
9
|
import "../../machine/events/utils/fireEvent.js";
|
package/dist/ext/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import "../../logger.js";
|
|
|
3
3
|
import "../../utils/ton/getTonTokenBalance.js";
|
|
4
4
|
import "../../utils/solana/getSolanaTokenBalance.js";
|
|
5
5
|
import "../../hooks/useWalletAddressForToken.js";
|
|
6
|
-
import { D as x } from "../../config-
|
|
6
|
+
import { D as x } from "../../config-CG-NCoEP.js";
|
|
7
7
|
import "../../utils/evm/isEvmChain.js";
|
|
8
8
|
import "../../utils/evm/isEvmToken.js";
|
|
9
9
|
import "../../utils/evm/isEvmBaseToken.js";
|
|
@@ -5,7 +5,7 @@ import { AnimatePresence as S, motion as T } from "framer-motion";
|
|
|
5
5
|
import * as g from "lucide-react";
|
|
6
6
|
import { ChainItem as p } from "./ChainItem.js";
|
|
7
7
|
import { AllNetworksIcon as d } from "./AllNetworksIcon.js";
|
|
8
|
-
import { d as z, y as E } from "../../config-
|
|
8
|
+
import { d as z, y as E } from "../../config-CG-NCoEP.js";
|
|
9
9
|
import { Hr as j } from "../../components/Hr.js";
|
|
10
10
|
import { Icon as o } from "../../components/Icon.js";
|
|
11
11
|
import { CHAINS_LIST as y } from "../../constants/chains.js";
|
|
@@ -3,7 +3,7 @@ import * as i from "lucide-react";
|
|
|
3
3
|
import { cn as m } from "../utils/cn.js";
|
|
4
4
|
import { Card as p } from "../components/Card.js";
|
|
5
5
|
import { Button as s } from "../components/Button.js";
|
|
6
|
-
import { b as c } from "../config-
|
|
6
|
+
import { b as c } from "../config-CG-NCoEP.js";
|
|
7
7
|
import "ethers";
|
|
8
8
|
import "../machine/machine.js";
|
|
9
9
|
import { fireEvent as d } from "../machine/events/utils/fireEvent.js";
|
|
@@ -12,7 +12,7 @@ import { formatAddressTruncate as _ } from "../utils/formatters/formatAddressTru
|
|
|
12
12
|
import "../utils/cn.js";
|
|
13
13
|
import { notReachable as l } from "../utils/notReachable.js";
|
|
14
14
|
import "@tanstack/react-query";
|
|
15
|
-
import { b as E, u as I } from "../config-
|
|
15
|
+
import { b as E, u as I } from "../config-CG-NCoEP.js";
|
|
16
16
|
import { guardStates as k } from "../machine/guards/index.js";
|
|
17
17
|
import { moveTo as A } from "../machine/machine.js";
|
|
18
18
|
import { fireEvent as o } from "../machine/events/utils/fireEvent.js";
|
|
@@ -11,7 +11,7 @@ import "../../constants/chains.js";
|
|
|
11
11
|
import "viem";
|
|
12
12
|
import "ethers";
|
|
13
13
|
import { cn as M } from "../../utils/cn.js";
|
|
14
|
-
import { b as V, y as _ } from "../../config-
|
|
14
|
+
import { b as V, y as _ } from "../../config-CG-NCoEP.js";
|
|
15
15
|
import "../../machine/machine.js";
|
|
16
16
|
import { fireEvent as d } from "../../machine/events/utils/fireEvent.js";
|
|
17
17
|
import { useTypedTranslation as j } from "../../localisation.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo as o } from "react";
|
|
2
|
-
import { b as d, y as l } from "../../config-
|
|
2
|
+
import { b as d, y as l } from "../../config-CG-NCoEP.js";
|
|
3
3
|
import { useTypedTranslation as c } from "../../localisation.js";
|
|
4
4
|
import { getIntentsAccountId as u } from "../../utils/intents/getIntentsAccountId.js";
|
|
5
5
|
import { CHAINS_LIST as f, EVM_CHAINS as m } from "../../constants/chains.js";
|
|
@@ -3,7 +3,7 @@ import "react-i18next";
|
|
|
3
3
|
import "../../components/Button.js";
|
|
4
4
|
import "../../components/TinyNumber.js";
|
|
5
5
|
import "../../components/ErrorMessage.js";
|
|
6
|
-
import { S as b } from "../../config-
|
|
6
|
+
import { S as b } from "../../config-CG-NCoEP.js";
|
|
7
7
|
import "../../localisation.js";
|
|
8
8
|
import "../../utils/checkers/isNotEmptyAmount.js";
|
|
9
9
|
export {
|
|
@@ -5,7 +5,7 @@ import { SummaryItem as n } from "./SummaryItem.js";
|
|
|
5
5
|
import { Hr as w } from "../../components/Hr.js";
|
|
6
6
|
import { Card as y } from "../../components/Card.js";
|
|
7
7
|
import { CloseButton as b } from "../../components/CloseButton.js";
|
|
8
|
-
import { b as A } from "../../config-
|
|
8
|
+
import { b as A } from "../../config-CG-NCoEP.js";
|
|
9
9
|
import "ethers";
|
|
10
10
|
import "../../machine/machine.js";
|
|
11
11
|
import { fireEvent as C } from "../../machine/events/utils/fireEvent.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { DirectionSwitcher as r } from "../components/DirectionSwitcher.js";
|
|
3
|
-
import { b as i } from "../config-
|
|
3
|
+
import { b as i } from "../config-CG-NCoEP.js";
|
|
4
4
|
import "ethers";
|
|
5
5
|
import "../machine/machine.js";
|
|
6
6
|
import { fireEvent as n } from "../machine/events/utils/fireEvent.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "./SwapQuoteSkeleton.js";
|
|
3
|
-
import { a3 as s } from "../../config-
|
|
3
|
+
import { a3 as s } from "../../config-CG-NCoEP.js";
|
|
4
4
|
import "../../components/Notes.js";
|
|
5
5
|
import "../../components/Accordion.js";
|
|
6
6
|
import "../../utils/formatters/formatUsdAmount.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { a5 as I } from "../../config-
|
|
3
|
+
import { a5 as I } from "../../config-CG-NCoEP.js";
|
|
4
4
|
import "./utils/getBalancePortion.js";
|
|
5
5
|
import "./utils/getUsdDisplayAmount.js";
|
|
6
6
|
import "./TokenInputHeading.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../../utils/cn.js";
|
|
3
|
-
import { aa as T, ab as e } from "../../config-
|
|
3
|
+
import { aa as T, ab as e } from "../../config-CG-NCoEP.js";
|
|
4
4
|
import "../../components/TokenIcon.js";
|
|
5
5
|
import "../../components/TinyNumber.js";
|
|
6
6
|
import "../../utils/formatters/getUsdDisplayBalance.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "virtua";
|
|
3
3
|
import "react";
|
|
4
|
-
import { ad as f } from "../../config-
|
|
4
|
+
import { ad as f } from "../../config-CG-NCoEP.js";
|
|
5
5
|
import "./TokensListPlaceholder.js";
|
|
6
6
|
import "../../utils/cn.js";
|
|
7
7
|
import "../../components/Hr.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as r, jsx as t, Fragment as _ } from "react/jsx-runtime";
|
|
2
2
|
import { useState as m } from "react";
|
|
3
3
|
import * as b from "lucide-react";
|
|
4
|
-
import { b as g, y as N, d as T, q as j } from "../config-
|
|
4
|
+
import { b as g, y as N, d as T, q as j } from "../config-CG-NCoEP.js";
|
|
5
5
|
import { ChainsDropdown as I } from "./ChainsDropdown/index.js";
|
|
6
6
|
import "@tanstack/react-query";
|
|
7
7
|
import "@defuse-protocol/one-click-sdk-typescript";
|
|
@@ -14,7 +14,7 @@ import "copy-text-to-clipboard";
|
|
|
14
14
|
import "@headlessui/react";
|
|
15
15
|
import "../../components/InputAmount.js";
|
|
16
16
|
import "../../components/Notes.js";
|
|
17
|
-
import { ag as C, af as E, z as I } from "../../config-
|
|
17
|
+
import { ag as C, af as E, z as I } from "../../config-CG-NCoEP.js";
|
|
18
18
|
import "../../components/CloseButton.js";
|
|
19
19
|
export {
|
|
20
20
|
C as ErrorView,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { useState as r } from "react";
|
|
3
|
-
import { b, z as n } from "../../config-
|
|
3
|
+
import { b, z as n } from "../../config-CG-NCoEP.js";
|
|
4
4
|
import "ethers";
|
|
5
5
|
import "../../machine/machine.js";
|
|
6
6
|
import { notReachable as l } from "../../utils/notReachable.js";
|
package/dist/features/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as r, S as t, o as p, p as a, T as s, q as n } from "../config-
|
|
1
|
+
import { B as r, S as t, o as p, p as a, T as s, q as n } from "../config-CG-NCoEP.js";
|
|
2
2
|
import { ChainsDropdown as m } from "./ChainsDropdown/index.js";
|
|
3
3
|
import { SendAddress as c } from "./SendAddress/index.js";
|
|
4
4
|
import { SuccessScreen as S } from "./SuccessScreen/index.js";
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as a, d as r, f as o, g as t, h as u, j as n, i as f, k as l, l as k, n as m, m as i } from "../config-
|
|
1
|
+
import { e as a, d as r, f as o, g as t, h as u, j as n, i as f, k as l, l as k, n as m, m as i } from "../config-CG-NCoEP.js";
|
|
2
2
|
import { useMakeEvmTransfer as T } from "./useMakeEvmTransfer.js";
|
|
3
3
|
import { useMakeSolanaTransfer as M } from "./useMakeSolanaTransfer.js";
|
|
4
4
|
import { useTokenInputPair as c } from "./useTokenInputPair.js";
|
package/dist/hooks/useChains.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useState as f } from "react";
|
|
2
2
|
import { B as l } from "../index-DEq3oXQF.js";
|
|
3
3
|
import { verifyWalletSignature as N, walletVerificationMessageFactory as p } from "../utils/intents/walletCompatibilityVerification.js";
|
|
4
|
-
import { y, w as o } from "../config-
|
|
4
|
+
import { y, w as o } from "../config-CG-NCoEP.js";
|
|
5
5
|
import { notReachable as A } from "../utils/notReachable.js";
|
|
6
6
|
import { getIntentsAccountId as S } from "../utils/intents/getIntentsAccountId.js";
|
|
7
7
|
import { localStorageTyped as u } from "../utils/localstorage.js";
|
|
@@ -5,7 +5,7 @@ import "ethers";
|
|
|
5
5
|
import "../../utils/cn.js";
|
|
6
6
|
import { notReachable as l } from "../../utils/notReachable.js";
|
|
7
7
|
import { useOneClickExternalDepositStatus as p } from "./useOneClickExternalDepositStatus.js";
|
|
8
|
-
import { b as c, u as m, A as S, v as f } from "../../config-
|
|
8
|
+
import { b as c, u as m, A as S, v as f } from "../../config-CG-NCoEP.js";
|
|
9
9
|
import { WNEAR_ASSET_ID as D } from "../../constants/tokens.js";
|
|
10
10
|
import { guardStates as h } from "../../machine/guards/index.js";
|
|
11
11
|
import "../../machine/machine.js";
|
|
@@ -3,7 +3,7 @@ import { Providers } from '../types/providers';
|
|
|
3
3
|
export declare const useMakeEvmTransfer: ({ provider, }: {
|
|
4
4
|
provider?: Providers["evm"];
|
|
5
5
|
}) => {
|
|
6
|
-
make: ({ address, amount, tokenAddress, evmChainId,
|
|
6
|
+
make: ({ address, amount, tokenAddress, evmChainId, isNativeEvmTokenTransfer, chain: chainKey, }: MakeTransferArgs) => Promise<{
|
|
7
7
|
hash: `0x${string}`;
|
|
8
8
|
transactionLink: string;
|
|
9
9
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMakeEvmTransfer.js","sources":["../../src/hooks/useMakeEvmTransfer.ts"],"sourcesContent":["import {\n Chain,\n createWalletClient,\n custom,\n encodeFunctionData,\n erc20Abi,\n} from 'viem';\nimport {\n arbitrum,\n base,\n bsc,\n gnosis,\n mainnet,\n optimism,\n polygon,\n} from 'viem/chains';\nimport { getTransactionLink, isEvmChain } from '../utils';\nimport { MakeTransferArgs } from '../types';\nimport { isEvmAddress } from '../utils/evm/isEvmAddress';\nimport { switchEthereumChain } from '../utils/evm/switchEthereumChain';\nimport { EVM_CHAINS } from '../constants';\nimport { Providers } from '../types/providers';\n\nconst VIEM_CHAIN_MAP: Record<(typeof EVM_CHAINS)[number], Chain | null> = {\n eth: mainnet,\n gnosis,\n arb: arbitrum,\n bsc,\n base,\n op: optimism,\n pol: polygon,\n bera: null,\n avax: null,\n};\n\nexport const useMakeEvmTransfer = ({\n provider,\n}: {\n provider?: Providers['evm'];\n}) => {\n const make = async ({\n address,\n amount,\n tokenAddress,\n evmChainId,\n
|
|
1
|
+
{"version":3,"file":"useMakeEvmTransfer.js","sources":["../../src/hooks/useMakeEvmTransfer.ts"],"sourcesContent":["import {\n Chain,\n createWalletClient,\n custom,\n encodeFunctionData,\n erc20Abi,\n} from 'viem';\nimport {\n arbitrum,\n base,\n bsc,\n gnosis,\n mainnet,\n optimism,\n polygon,\n} from 'viem/chains';\nimport { getTransactionLink, isEvmChain } from '../utils';\nimport { MakeTransferArgs } from '../types';\nimport { isEvmAddress } from '../utils/evm/isEvmAddress';\nimport { switchEthereumChain } from '../utils/evm/switchEthereumChain';\nimport { EVM_CHAINS } from '../constants';\nimport { Providers } from '../types/providers';\n\nconst VIEM_CHAIN_MAP: Record<(typeof EVM_CHAINS)[number], Chain | null> = {\n eth: mainnet,\n gnosis,\n arb: arbitrum,\n bsc,\n base,\n op: optimism,\n pol: polygon,\n bera: null,\n avax: null,\n};\n\nexport const useMakeEvmTransfer = ({\n provider,\n}: {\n provider?: Providers['evm'];\n}) => {\n const make = async ({\n address,\n amount,\n tokenAddress,\n evmChainId,\n isNativeEvmTokenTransfer,\n chain: chainKey,\n }: MakeTransferArgs) => {\n const injectedProvider =\n typeof provider === 'function' ? await provider() : provider;\n\n if (!isEvmAddress(address)) {\n throw new Error(`Invalid EVM address: ${address}`);\n }\n\n if (!evmChainId) {\n throw new Error('EVM chain ID is required for EVM transfers.');\n }\n\n if (!injectedProvider) {\n throw new Error('No injected Ethereum wallet found.');\n }\n\n // Automatically switch to the correct chain if needed\n await switchEthereumChain(evmChainId, injectedProvider);\n\n // Create wallet client from injected wallet (e.g. MetaMask, AppKit)\n const walletClient = createWalletClient({\n transport: custom(injectedProvider),\n });\n\n // Try to get addresses without prompting first (works for MetaMask and already-connected wallets)\n let [from] = await walletClient.getAddresses();\n\n // Fallback: If no address found, request addresses (needed for AppKit/WalletConnect)\n if (!from) {\n [from] = await walletClient.requestAddresses();\n }\n\n if (!from) {\n throw new Error('No EVM account found in the injected wallet.');\n }\n\n const chain = isEvmChain(chainKey) ? VIEM_CHAIN_MAP[chainKey] : null;\n\n // Native EVM token transfer\n if (isNativeEvmTokenTransfer) {\n const hash = await walletClient.sendTransaction({\n account: from,\n to: address,\n value: BigInt(amount),\n chain,\n });\n\n return {\n hash,\n transactionLink: getTransactionLink(evmChainId, hash),\n };\n }\n\n if (!tokenAddress || !isEvmAddress(tokenAddress)) {\n throw new Error(`Invalid EVM token address: ${tokenAddress}`);\n }\n\n // ERC20 transfer\n const data = encodeFunctionData({\n abi: erc20Abi,\n functionName: 'transfer',\n args: [address, BigInt(amount)],\n });\n\n const hash = await walletClient.sendTransaction({\n account: from,\n to: tokenAddress,\n data,\n chain,\n });\n\n return {\n hash,\n transactionLink: getTransactionLink(evmChainId, hash),\n };\n };\n\n return { make };\n};\n"],"names":["VIEM_CHAIN_MAP","mainnet","gnosis","arbitrum","bsc","base","optimism","polygon","useMakeEvmTransfer","provider","address","amount","tokenAddress","evmChainId","isNativeEvmTokenTransfer","chainKey","injectedProvider","isEvmAddress","switchEthereumChain","walletClient","createWalletClient","custom","from","chain","isEvmChain","hash","getTransactionLink","data","encodeFunctionData","erc20Abi"],"mappings":";;;;;;;;;AAuBA,MAAMA,IAAoE;AAAA,EACxE,KAAKC;AAAA,EACL,QAAAC;AAAA,EACA,KAAKC;AAAA,EACL,KAAAC;AAAA,EACA,MAAAC;AAAA,EACA,IAAIC;AAAA,EACJ,KAAKC;AAAA,EACL,MAAM;AAAA,EACN,MAAM;AACR,GAEaC,IAAqB,CAAC;AAAA,EACjC,UAAAC;AACF,OAuFS,EAAE,MApFI,OAAO;AAAA,EAClB,SAAAC;AAAA,EACA,QAAAC;AAAA,EACA,cAAAC;AAAA,EACA,YAAAC;AAAA,EACA,0BAAAC;AAAA,EACA,OAAOC;AAAA,MACe;AACtB,QAAMC,IACJ,OAAOP,KAAa,aAAa,MAAMA,MAAaA;AAEtD,MAAI,CAACQ,EAAaP,CAAO;AACvB,UAAM,IAAI,MAAM,wBAAwBA,CAAO,EAAE;AAGnD,MAAI,CAACG;AACH,UAAM,IAAI,MAAM,6CAA6C;AAG/D,MAAI,CAACG;AACH,UAAM,IAAI,MAAM,oCAAoC;AAItD,QAAME,EAAoBL,GAAYG,CAAgB;AAGtD,QAAMG,IAAeC,EAAmB;AAAA,IACtC,WAAWC,EAAOL,CAAgB;AAAA,EAAA,CACnC;AAGD,MAAI,CAACM,CAAI,IAAI,MAAMH,EAAa,aAAA;AAOhC,MAJKG,MACH,CAACA,CAAI,IAAI,MAAMH,EAAa,iBAAA,IAG1B,CAACG;AACH,UAAM,IAAI,MAAM,8CAA8C;AAGhE,QAAMC,IAAQC,EAAWT,CAAQ,IAAIf,EAAee,CAAQ,IAAI;AAGhE,MAAID,GAA0B;AAC5B,UAAMW,IAAO,MAAMN,EAAa,gBAAgB;AAAA,MAC9C,SAASG;AAAA,MACT,IAAIZ;AAAA,MACJ,OAAO,OAAOC,CAAM;AAAA,MACpB,OAAAY;AAAA,IAAA,CACD;AAED,WAAO;AAAA,MACL,MAAAE;AAAAA,MACA,iBAAiBC,EAAmBb,GAAYY,CAAI;AAAA,IAAA;AAAA,EAExD;AAEA,MAAI,CAACb,KAAgB,CAACK,EAAaL,CAAY;AAC7C,UAAM,IAAI,MAAM,8BAA8BA,CAAY,EAAE;AAI9D,QAAMe,IAAOC,EAAmB;AAAA,IAC9B,KAAKC;AAAA,IACL,cAAc;AAAA,IACd,MAAM,CAACnB,GAAS,OAAOC,CAAM,CAAC;AAAA,EAAA,CAC/B,GAEKc,IAAO,MAAMN,EAAa,gBAAgB;AAAA,IAC9C,SAASG;AAAA,IACT,IAAIV;AAAA,IACJ,MAAAe;AAAA,IACA,OAAAJ;AAAA,EAAA,CACD;AAED,SAAO;AAAA,IACL,MAAAE;AAAA,IACA,iBAAiBC,EAAmBb,GAAYY,CAAI;AAAA,EAAA;AAExD,EAES;"}
|
|
@@ -4,7 +4,7 @@ import "change-case";
|
|
|
4
4
|
import "../utils/near/getRandomBytes.js";
|
|
5
5
|
import "../utils/intents/signers/solana.js";
|
|
6
6
|
import "../logger.js";
|
|
7
|
-
import { g as M } from "../config-
|
|
7
|
+
import { g as M } from "../config-CG-NCoEP.js";
|
|
8
8
|
import "../constants/chains.js";
|
|
9
9
|
import "../constants/intents.js";
|
|
10
10
|
import "../utils/notReachable.js";
|
|
@@ -3,7 +3,7 @@ import "change-case";
|
|
|
3
3
|
import "@defuse-protocol/one-click-sdk-typescript";
|
|
4
4
|
import "axios";
|
|
5
5
|
import "../logger.js";
|
|
6
|
-
import { h as M } from "../config-
|
|
6
|
+
import { h as M } from "../config-CG-NCoEP.js";
|
|
7
7
|
import "../network.js";
|
|
8
8
|
import "../machine/guards/index.js";
|
|
9
9
|
import "../constants/tokens.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "axios";
|
|
2
2
|
import "../constants/chains.js";
|
|
3
|
-
import "../utils/evm/isEth.js";
|
|
4
3
|
import "../utils/evm/isEvmChain.js";
|
|
5
4
|
import "viem";
|
|
5
|
+
import "../utils/evm/isEvmBaseToken.js";
|
|
6
6
|
import "ethers";
|
|
7
7
|
import "../utils/cn.js";
|
|
8
8
|
import "./useMakeEvmTransfer.js";
|
|
9
9
|
import "../utils/evm/isEvmAddress.js";
|
|
10
10
|
import "./useMakeSolanaTransfer.js";
|
|
11
|
-
import { j as Q } from "../config-
|
|
11
|
+
import { j as Q } from "../config-CG-NCoEP.js";
|
|
12
12
|
import "../utils/solana/isSolanaAddress.js";
|
|
13
13
|
import "../logger.js";
|
|
14
14
|
import "../constants/tokens.js";
|
package/dist/hooks/useTheme.js
CHANGED
package/dist/hooks/useTokens.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import "@tanstack/react-query";
|
|
3
3
|
import "@defuse-protocol/one-click-sdk-typescript";
|
|
4
|
-
import { n } from "../config-
|
|
4
|
+
import { n } from "../config-CG-NCoEP.js";
|
|
5
5
|
import "../constants/tokens.js";
|
|
6
6
|
import "../constants/chains.js";
|
|
7
7
|
import "../utils/checkers/isValidChain.js";
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as o, M as t, Q as s, S as a, o as n, p, T as f, q as m, w as i, W as u, v as x, x as d, r as c, t as S, e as l, d as k, u as T, f as g, g as h, h as B, j as C, i as E, k as M, a as I, c as W, l as w, n as D, m as A, b as v } from "./config-
|
|
1
|
+
import { B as o, M as t, Q as s, S as a, o as n, p, T as f, q as m, w as i, W as u, v as x, x as d, r as c, t as S, e as l, d as k, u as T, f as g, g as h, h as B, j as C, i as E, k as M, a as I, c as W, l as w, n as D, m as A, b as v } from "./config-CG-NCoEP.js";
|
|
2
2
|
import { DEFAULT_RPCS as y } from "./rpcs.js";
|
|
3
3
|
import { Accordion as L } from "./components/Accordion.js";
|
|
4
4
|
import { Badge as R } from "./components/Badge.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import "../../logger.js";
|
|
3
3
|
import "../guards/checks/isDryQuote.js";
|
|
4
|
-
import { P as a } from "../../config-
|
|
4
|
+
import { P as a } from "../../config-CG-NCoEP.js";
|
|
5
5
|
import "../guards/index.js";
|
|
6
6
|
import "../machine.js";
|
|
7
7
|
import "../events/utils/fireEvent.js";
|
|
@@ -2,7 +2,7 @@ import "react";
|
|
|
2
2
|
import "../../utils/solana/isSolanaAddress.js";
|
|
3
3
|
import "../../utils/evm/isEvmAddress.js";
|
|
4
4
|
import "../../utils/near/isNearAddress.js";
|
|
5
|
-
import { R as l } from "../../config-
|
|
5
|
+
import { R as l } from "../../config-CG-NCoEP.js";
|
|
6
6
|
import "../../utils/tokens/getMainTokenByChain.js";
|
|
7
7
|
import "../../utils/tokens/getDefaultIntentsToken.js";
|
|
8
8
|
import "../../utils/tokens/getTokenWithHighBalance.js";
|