router-widget-sdk 0.1.0
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 +180 -0
- package/dist/components/AggregateCallTypeSelector.d.ts +8 -0
- package/dist/components/AggregateCallTypeSelector.d.ts.map +1 -0
- package/dist/components/AppKitProvider.d.ts +5 -0
- package/dist/components/AppKitProvider.d.ts.map +1 -0
- package/dist/components/AppProviders.d.ts +29 -0
- package/dist/components/AppProviders.d.ts.map +1 -0
- package/dist/components/CapsuleControls.d.ts +16 -0
- package/dist/components/CapsuleControls.d.ts.map +1 -0
- package/dist/components/GetTokenPrice.d.ts +20 -0
- package/dist/components/GetTokenPrice.d.ts.map +1 -0
- package/dist/components/Image.d.ts +21 -0
- package/dist/components/Image.d.ts.map +1 -0
- package/dist/components/NodeMultiSelect.d.ts +10 -0
- package/dist/components/NodeMultiSelect.d.ts.map +1 -0
- package/dist/components/PosthogPageView.d.ts +2 -0
- package/dist/components/PosthogPageView.d.ts.map +1 -0
- package/dist/components/PosthogProvider.d.ts +4 -0
- package/dist/components/PosthogProvider.d.ts.map +1 -0
- package/dist/components/QuoteRefreshCountdown.d.ts +10 -0
- package/dist/components/QuoteRefreshCountdown.d.ts.map +1 -0
- package/dist/components/RecipientAddressEditor.d.ts +13 -0
- package/dist/components/RecipientAddressEditor.d.ts.map +1 -0
- package/dist/components/RouterWidget.d.ts +38 -0
- package/dist/components/RouterWidget.d.ts.map +1 -0
- package/dist/components/SlippageConfigurator.d.ts +14 -0
- package/dist/components/SlippageConfigurator.d.ts.map +1 -0
- package/dist/components/SwapInterface.d.ts +123 -0
- package/dist/components/SwapInterface.d.ts.map +1 -0
- package/dist/components/SwapReviewModal/SwapReviewModal.d.ts +29 -0
- package/dist/components/SwapReviewModal/SwapReviewModal.d.ts.map +1 -0
- package/dist/components/SwapReviewModal/TokenExchangeVisualization.d.ts +13 -0
- package/dist/components/SwapReviewModal/TokenExchangeVisualization.d.ts.map +1 -0
- package/dist/components/SwapReviewModal/TransactionDetailsDropdown.d.ts +14 -0
- package/dist/components/SwapReviewModal/TransactionDetailsDropdown.d.ts.map +1 -0
- package/dist/components/SwapReviewModal/TransactionExplorer.d.ts +17 -0
- package/dist/components/SwapReviewModal/TransactionExplorer.d.ts.map +1 -0
- package/dist/components/SwapReviewModal/TransactionStepProgress.d.ts +32 -0
- package/dist/components/SwapReviewModal/TransactionStepProgress.d.ts.map +1 -0
- package/dist/components/SwapReviewModal/index.d.ts +6 -0
- package/dist/components/SwapReviewModal/index.d.ts.map +1 -0
- package/dist/components/SwapSplit.d.ts +26 -0
- package/dist/components/SwapSplit.d.ts.map +1 -0
- package/dist/components/TokenSelector.d.ts +30 -0
- package/dist/components/TokenSelector.d.ts.map +1 -0
- package/dist/components/TokenSelectorV2/ChainPill.d.ts +8 -0
- package/dist/components/TokenSelectorV2/ChainPill.d.ts.map +1 -0
- package/dist/components/TokenSelectorV2/DesktopChainPanel.d.ts +9 -0
- package/dist/components/TokenSelectorV2/DesktopChainPanel.d.ts.map +1 -0
- package/dist/components/TokenSelectorV2/DesktopView.d.ts +22 -0
- package/dist/components/TokenSelectorV2/DesktopView.d.ts.map +1 -0
- package/dist/components/TokenSelectorV2/MobileChainView.d.ts +10 -0
- package/dist/components/TokenSelectorV2/MobileChainView.d.ts.map +1 -0
- package/dist/components/TokenSelectorV2/MobileTokenView.d.ts +20 -0
- package/dist/components/TokenSelectorV2/MobileTokenView.d.ts.map +1 -0
- package/dist/components/TokenSelectorV2/TokenList.d.ts +13 -0
- package/dist/components/TokenSelectorV2/TokenList.d.ts.map +1 -0
- package/dist/components/TokenSelectorV2/TokenPill.d.ts +9 -0
- package/dist/components/TokenSelectorV2/TokenPill.d.ts.map +1 -0
- package/dist/components/TokenSelectorV2/TokenPillGroup.d.ts +7 -0
- package/dist/components/TokenSelectorV2/TokenPillGroup.d.ts.map +1 -0
- package/dist/components/TokenSelectorV2/TriggerButton.d.ts +1 -0
- package/dist/components/TokenSelectorV2/TriggerButton.d.ts.map +1 -0
- package/dist/components/TokenSelectorV2/UserTokenList.d.ts +12 -0
- package/dist/components/TokenSelectorV2/UserTokenList.d.ts.map +1 -0
- package/dist/components/TokenSelectorV2/index.d.ts +15 -0
- package/dist/components/TokenSelectorV2/index.d.ts.map +1 -0
- package/dist/components/TurnkeyHdRejectionProvider.d.ts +16 -0
- package/dist/components/TurnkeyHdRejectionProvider.d.ts.map +1 -0
- package/dist/components/UnifiedWallet/ActivityTab.d.ts +2 -0
- package/dist/components/UnifiedWallet/ActivityTab.d.ts.map +1 -0
- package/dist/components/UnifiedWallet/ComicWalletIcon.d.ts +10 -0
- package/dist/components/UnifiedWallet/ComicWalletIcon.d.ts.map +1 -0
- package/dist/components/UnifiedWallet/ConnectWalletButton.d.ts +11 -0
- package/dist/components/UnifiedWallet/ConnectWalletButton.d.ts.map +1 -0
- package/dist/components/UnifiedWallet/SidebarHeader.d.ts +6 -0
- package/dist/components/UnifiedWallet/SidebarHeader.d.ts.map +1 -0
- package/dist/components/UnifiedWallet/TokenList.d.ts +21 -0
- package/dist/components/UnifiedWallet/TokenList.d.ts.map +1 -0
- package/dist/components/UnifiedWallet/WalletInfo.d.ts +12 -0
- package/dist/components/UnifiedWallet/WalletInfo.d.ts.map +1 -0
- package/dist/components/UnifiedWallet/WalletList.d.ts +12 -0
- package/dist/components/UnifiedWallet/WalletList.d.ts.map +1 -0
- package/dist/components/UnifiedWallet.d.ts +2 -0
- package/dist/components/UnifiedWallet.d.ts.map +1 -0
- package/dist/components/Web3Modal.d.ts +5 -0
- package/dist/components/Web3Modal.d.ts.map +1 -0
- package/dist/components/WidgetProvider.d.ts +29 -0
- package/dist/components/WidgetProvider.d.ts.map +1 -0
- package/dist/components/theme-provider.d.ts +3 -0
- package/dist/components/theme-provider.d.ts.map +1 -0
- package/dist/components/ui/accordion.d.ts +8 -0
- package/dist/components/ui/accordion.d.ts.map +1 -0
- package/dist/components/ui/badge.d.ts +10 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/button.d.ts +12 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/chart.d.ts +63 -0
- package/dist/components/ui/chart.d.ts.map +1 -0
- package/dist/components/ui/checkbox.d.ts +5 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/command.d.ts +81 -0
- package/dist/components/ui/command.d.ts.map +1 -0
- package/dist/components/ui/dialog.d.ts +20 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/drawer.d.ts +23 -0
- package/dist/components/ui/drawer.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +28 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/input.d.ts +4 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/label.d.ts +6 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/popover.d.ts +8 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/radio-group.d.ts +6 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -0
- package/dist/components/ui/scroll-area.d.ts +6 -0
- package/dist/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/components/ui/select.d.ts +14 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/separator.d.ts +5 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/skeleton.d.ts +3 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -0
- package/dist/components/ui/swap-review-skeleton.d.ts +2 -0
- package/dist/components/ui/swap-review-skeleton.d.ts.map +1 -0
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/table.d.ts +11 -0
- package/dist/components/ui/table.d.ts.map +1 -0
- package/dist/components/ui/tabs.d.ts +8 -0
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/components/ui/toast.d.ts +16 -0
- package/dist/components/ui/toast.d.ts.map +1 -0
- package/dist/components/ui/toaster.d.ts +2 -0
- package/dist/components/ui/toaster.d.ts.map +1 -0
- package/dist/components/ui/tooltip.d.ts +8 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/contexts/AccountContext.d.ts +5 -0
- package/dist/contexts/AccountContext.d.ts.map +1 -0
- package/dist/contexts/WalletsContext.d.ts +20 -0
- package/dist/contexts/WalletsContext.d.ts.map +1 -0
- package/dist/contexts/WidgetConfigContext.d.ts +8 -0
- package/dist/contexts/WidgetConfigContext.d.ts.map +1 -0
- package/dist/hooks/tokens/list/example-usage.d.ts +1 -0
- package/dist/hooks/tokens/list/example-usage.d.ts.map +1 -0
- package/dist/hooks/tokens/list/index.d.ts +22 -0
- package/dist/hooks/tokens/list/index.d.ts.map +1 -0
- package/dist/hooks/tokens/list/relay.d.ts +17 -0
- package/dist/hooks/tokens/list/relay.d.ts.map +1 -0
- package/dist/hooks/use-toast.d.ts +45 -0
- package/dist/hooks/use-toast.d.ts.map +1 -0
- package/dist/hooks/useBalances.d.ts +116 -0
- package/dist/hooks/useBalances.d.ts.map +1 -0
- package/dist/hooks/useCampaigns.d.ts +34 -0
- package/dist/hooks/useCampaigns.d.ts.map +1 -0
- package/dist/hooks/useClipboard.d.ts +8 -0
- package/dist/hooks/useClipboard.d.ts.map +1 -0
- package/dist/hooks/useCurrencies.d.ts +34 -0
- package/dist/hooks/useCurrencies.d.ts.map +1 -0
- package/dist/hooks/useDynamicWallet.d.ts +18 -0
- package/dist/hooks/useDynamicWallet.d.ts.map +1 -0
- package/dist/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/hooks/useIsomorphicLayoutEffect.d.ts.map +1 -0
- package/dist/hooks/useMediaQuery.d.ts +7 -0
- package/dist/hooks/useMediaQuery.d.ts.map +1 -0
- package/dist/hooks/useNativeAmount.d.ts +9 -0
- package/dist/hooks/useNativeAmount.d.ts.map +1 -0
- package/dist/hooks/useNetworkConfig.d.ts +32 -0
- package/dist/hooks/useNetworkConfig.d.ts.map +1 -0
- package/dist/hooks/usePlaygroundConfig.d.ts +12 -0
- package/dist/hooks/usePlaygroundConfig.d.ts.map +1 -0
- package/dist/hooks/useSwapButtonState.d.ts +23 -0
- package/dist/hooks/useSwapButtonState.d.ts.map +1 -0
- package/dist/hooks/useSwapQuote.d.ts +27 -0
- package/dist/hooks/useSwapQuote.d.ts.map +1 -0
- package/dist/hooks/useSwapUrlManager.d.ts +16 -0
- package/dist/hooks/useSwapUrlManager.d.ts.map +1 -0
- package/dist/hooks/useTokenBalances.d.ts +15 -0
- package/dist/hooks/useTokenBalances.d.ts.map +1 -0
- package/dist/hooks/useTokenSearch.d.ts +8 -0
- package/dist/hooks/useTokenSearch.d.ts.map +1 -0
- package/dist/hooks/useTransactionAnalytics.d.ts +27 -0
- package/dist/hooks/useTransactionAnalytics.d.ts.map +1 -0
- package/dist/hooks/useTransactionHistory.d.ts +42 -0
- package/dist/hooks/useTransactionHistory.d.ts.map +1 -0
- package/dist/hooks/useTransactionPolling.d.ts +22 -0
- package/dist/hooks/useTransactionPolling.d.ts.map +1 -0
- package/dist/hooks/useTransactionState.d.ts +16 -0
- package/dist/hooks/useTransactionState.d.ts.map +1 -0
- package/dist/hooks/useWalletManagement.d.ts +14 -0
- package/dist/hooks/useWalletManagement.d.ts.map +1 -0
- package/dist/hooks/useWidgetConfigFromUrl.d.ts +27 -0
- package/dist/hooks/useWidgetConfigFromUrl.d.ts.map +1 -0
- package/dist/hooks/useWidgetTheme.d.ts +22 -0
- package/dist/hooks/useWidgetTheme.d.ts.map +1 -0
- package/dist/index.cjs.js +7122 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +268016 -0
- package/dist/lib/actions/bitcoin/balance.d.ts +4 -0
- package/dist/lib/actions/bitcoin/balance.d.ts.map +1 -0
- package/dist/lib/actions/bitcoin/bitcoinApiConfig.d.ts +12 -0
- package/dist/lib/actions/bitcoin/bitcoinApiConfig.d.ts.map +1 -0
- package/dist/lib/actions/getWalletBalanceUrl.d.ts +6 -0
- package/dist/lib/actions/getWalletBalanceUrl.d.ts.map +1 -0
- package/dist/lib/actions/handleBitcoinTransactions.d.ts +17 -0
- package/dist/lib/actions/handleBitcoinTransactions.d.ts.map +1 -0
- package/dist/lib/actions/handleEvmTransactions.d.ts +37 -0
- package/dist/lib/actions/handleEvmTransactions.d.ts.map +1 -0
- package/dist/lib/actions/handleSolanaTransactions.d.ts +13 -0
- package/dist/lib/actions/handleSolanaTransactions.d.ts.map +1 -0
- package/dist/lib/actions/handleSuiTransactions.d.ts +20 -0
- package/dist/lib/actions/handleSuiTransactions.d.ts.map +1 -0
- package/dist/lib/actions/submitSwapTransaction.d.ts +29 -0
- package/dist/lib/actions/submitSwapTransaction.d.ts.map +1 -0
- package/dist/lib/adapters/chain-adapters.d.ts +100 -0
- package/dist/lib/adapters/chain-adapters.d.ts.map +1 -0
- package/dist/lib/adapters/token-adapters.d.ts +83 -0
- package/dist/lib/adapters/token-adapters.d.ts.map +1 -0
- package/dist/lib/api.d.ts +67 -0
- package/dist/lib/api.d.ts.map +1 -0
- package/dist/lib/chain-pills.d.ts +8 -0
- package/dist/lib/chain-pills.d.ts.map +1 -0
- package/dist/lib/domain/swap/payload.d.ts +26 -0
- package/dist/lib/domain/swap/payload.d.ts.map +1 -0
- package/dist/lib/errorApi.d.ts +13 -0
- package/dist/lib/errorApi.d.ts.map +1 -0
- package/dist/lib/grpc-client.d.ts +48 -0
- package/dist/lib/grpc-client.d.ts.map +1 -0
- package/dist/lib/requestManager.d.ts +15 -0
- package/dist/lib/requestManager.d.ts.map +1 -0
- package/dist/lib/tokens/list.d.ts +37 -0
- package/dist/lib/tokens/list.d.ts.map +1 -0
- package/dist/lib/types/api.d.ts +55 -0
- package/dist/lib/types/api.d.ts.map +1 -0
- package/dist/lib/types/bitcoin.d.ts +159 -0
- package/dist/lib/types/bitcoin.d.ts.map +1 -0
- package/dist/lib/types/proto.d.ts +75 -0
- package/dist/lib/types/proto.d.ts.map +1 -0
- package/dist/lib/types/widget.d.ts +48 -0
- package/dist/lib/types/widget.d.ts.map +1 -0
- package/dist/lib/utils/bigint-polyfill.d.ts +8 -0
- package/dist/lib/utils/bigint-polyfill.d.ts.map +1 -0
- package/dist/lib/utils/chain-helpers.d.ts +4 -0
- package/dist/lib/utils/chain-helpers.d.ts.map +1 -0
- package/dist/lib/utils/color-converter.d.ts +38 -0
- package/dist/lib/utils/color-converter.d.ts.map +1 -0
- package/dist/lib/utils/debounce.d.ts +4 -0
- package/dist/lib/utils/debounce.d.ts.map +1 -0
- package/dist/lib/utils/formatNumber.d.ts +31 -0
- package/dist/lib/utils/formatNumber.d.ts.map +1 -0
- package/dist/lib/utils/index.d.ts +4 -0
- package/dist/lib/utils/index.d.ts.map +1 -0
- package/dist/lib/utils/logger.d.ts +7 -0
- package/dist/lib/utils/logger.d.ts.map +1 -0
- package/dist/lib/utils/networkHelpers.d.ts +6 -0
- package/dist/lib/utils/networkHelpers.d.ts.map +1 -0
- package/dist/lib/utils/performance.d.ts +19 -0
- package/dist/lib/utils/performance.d.ts.map +1 -0
- package/dist/lib/utils/simulateTransaction.d.ts +29 -0
- package/dist/lib/utils/simulateTransaction.d.ts.map +1 -0
- package/dist/lib/utils/validateAddress.d.ts +7 -0
- package/dist/lib/utils/validateAddress.d.ts.map +1 -0
- package/dist/lib/utils/wallet-config.d.ts +4 -0
- package/dist/lib/utils/wallet-config.d.ts.map +1 -0
- package/dist/lib/utils.d.ts +59 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/network/config.d.ts +530 -0
- package/dist/network/config.d.ts.map +1 -0
- package/dist/network/network.client.json.d.ts +18446 -0
- package/dist/styles.css +2 -0
- package/dist/types/Node.d.ts +22 -0
- package/dist/types/Node.d.ts.map +1 -0
- package/dist/types/chain.d.ts +158 -0
- package/dist/types/chain.d.ts.map +1 -0
- package/dist/types/chains.d.ts +7 -0
- package/dist/types/chains.d.ts.map +1 -0
- package/dist/types/index.d.ts +58 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/token.d.ts +134 -0
- package/dist/types/token.d.ts.map +1 -0
- package/package.json +125 -0
package/README.md
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
# router-widget-sdk
|
|
2
|
+
|
|
3
|
+
Router Protocol Widget - A React component for cross-chain swaps that can be embedded in any React application.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install router-widget-sdk
|
|
9
|
+
# or
|
|
10
|
+
pnpm add router-widget-sdk
|
|
11
|
+
# or
|
|
12
|
+
yarn add router-widget-sdk
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Quick Start
|
|
16
|
+
|
|
17
|
+
```tsx
|
|
18
|
+
import { RouterWidget } from 'router-widget-sdk';
|
|
19
|
+
import 'router-widget-sdk/styles.css';
|
|
20
|
+
|
|
21
|
+
function App() {
|
|
22
|
+
return (
|
|
23
|
+
<RouterWidget
|
|
24
|
+
config={{
|
|
25
|
+
theme: { mode: 'dark' },
|
|
26
|
+
integrator: 'MyDApp',
|
|
27
|
+
}}
|
|
28
|
+
/>
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Configuration
|
|
34
|
+
|
|
35
|
+
### Basic Usage
|
|
36
|
+
|
|
37
|
+
```tsx
|
|
38
|
+
import { RouterWidget } from 'router-widget-sdk';
|
|
39
|
+
import 'router-widget-sdk/styles.css';
|
|
40
|
+
|
|
41
|
+
function App() {
|
|
42
|
+
return (
|
|
43
|
+
<RouterWidget
|
|
44
|
+
config={{
|
|
45
|
+
theme: {
|
|
46
|
+
mode: 'dark', // 'light' | 'dark' | 'auto'
|
|
47
|
+
primaryColor: '#e4357a',
|
|
48
|
+
backgroundColor: '#0a0a0a',
|
|
49
|
+
},
|
|
50
|
+
integrator: 'MyDApp',
|
|
51
|
+
}}
|
|
52
|
+
/>
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### With Initial State
|
|
58
|
+
|
|
59
|
+
```tsx
|
|
60
|
+
<RouterWidget
|
|
61
|
+
config={{
|
|
62
|
+
initialState: {
|
|
63
|
+
fromChainId: '1', // Ethereum
|
|
64
|
+
fromTokenAddress: '0x...', // USDC
|
|
65
|
+
toChainId: '137', // Polygon
|
|
66
|
+
toTokenAddress: '0x...', // USDC on Polygon
|
|
67
|
+
},
|
|
68
|
+
theme: { mode: 'dark' },
|
|
69
|
+
}}
|
|
70
|
+
/>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Skip Providers (If Already Wrapped)
|
|
74
|
+
|
|
75
|
+
If your app already has the necessary providers (ThemeProvider, wallet providers, etc.), you can skip them:
|
|
76
|
+
|
|
77
|
+
```tsx
|
|
78
|
+
<RouterWidget
|
|
79
|
+
config={{ theme: { mode: 'dark' } }}
|
|
80
|
+
skipProviders={true}
|
|
81
|
+
/>
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Configuration Options
|
|
85
|
+
|
|
86
|
+
### WidgetConfig
|
|
87
|
+
|
|
88
|
+
```typescript
|
|
89
|
+
interface WidgetConfig {
|
|
90
|
+
theme?: {
|
|
91
|
+
mode?: 'light' | 'dark' | 'auto';
|
|
92
|
+
primaryColor?: string;
|
|
93
|
+
backgroundColor?: string;
|
|
94
|
+
textColorPrimary?: string;
|
|
95
|
+
textColorSecondary?: string;
|
|
96
|
+
mutedColor?: string;
|
|
97
|
+
cardBorderRadius?: string;
|
|
98
|
+
buttonBorderRadius?: string;
|
|
99
|
+
fontFamily?: string;
|
|
100
|
+
};
|
|
101
|
+
initialState?: {
|
|
102
|
+
fromChainId?: string;
|
|
103
|
+
fromTokenAddress?: string;
|
|
104
|
+
toChainId?: string;
|
|
105
|
+
toTokenAddress?: string;
|
|
106
|
+
};
|
|
107
|
+
integrator?: string;
|
|
108
|
+
features?: {
|
|
109
|
+
showHeader?: boolean;
|
|
110
|
+
isSrcDisabled?: boolean;
|
|
111
|
+
isDestDisabled?: boolean;
|
|
112
|
+
};
|
|
113
|
+
selectedNodes?: string[];
|
|
114
|
+
isWidget?: boolean;
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
## Environment Variables
|
|
119
|
+
|
|
120
|
+
The widget requires certain environment variables to be set. These should be configured in your application:
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
NEXT_PUBLIC_SUPPORTED_NETWORK=1,10,8453,137,sui,solana
|
|
124
|
+
NEXT_PUBLIC_API_URL=your-grpc-api-url
|
|
125
|
+
NEXT_PUBLIC_API_DISCOVERY_URL=https://api.discover.routerprotocol.com
|
|
126
|
+
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=your-walletconnect-project-id
|
|
127
|
+
NEXT_PUBLIC_PROJECT_ID=your-project-id
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## Features
|
|
131
|
+
|
|
132
|
+
- ✅ Multi-chain Support (EVM and non-EVM chains)
|
|
133
|
+
- ✅ Wallet Integration (Dynamic wallet connection)
|
|
134
|
+
- ✅ Real-time Quotes (Automatic quote fetching and refresh)
|
|
135
|
+
- ✅ Customizable Themes (Light, dark, or custom colors)
|
|
136
|
+
- ✅ Configurable (Extensive configuration options)
|
|
137
|
+
- ✅ Responsive (Works on desktop and mobile)
|
|
138
|
+
|
|
139
|
+
## TypeScript Support
|
|
140
|
+
|
|
141
|
+
The package includes TypeScript definitions:
|
|
142
|
+
|
|
143
|
+
```tsx
|
|
144
|
+
import { RouterWidget, type WidgetConfig } from 'router-widget-sdk';
|
|
145
|
+
|
|
146
|
+
const config: WidgetConfig = {
|
|
147
|
+
theme: { mode: 'dark' },
|
|
148
|
+
integrator: 'MyDApp',
|
|
149
|
+
};
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
## Styling
|
|
153
|
+
|
|
154
|
+
Import the CSS file to get the default styles:
|
|
155
|
+
|
|
156
|
+
```tsx
|
|
157
|
+
import 'router-widget-sdk/styles.css';
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
You can override styles using CSS variables:
|
|
161
|
+
|
|
162
|
+
```css
|
|
163
|
+
.router-widget {
|
|
164
|
+
--primary: #e4357a;
|
|
165
|
+
--background: #0a0a0a;
|
|
166
|
+
--foreground: #ffffff;
|
|
167
|
+
}
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
## Browser Support
|
|
171
|
+
|
|
172
|
+
- Chrome (latest)
|
|
173
|
+
- Firefox (latest)
|
|
174
|
+
- Safari (latest)
|
|
175
|
+
- Edge (latest)
|
|
176
|
+
|
|
177
|
+
## License
|
|
178
|
+
|
|
179
|
+
MIT
|
|
180
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AggregateCallType } from "@/lib/grpc-client";
|
|
2
|
+
interface AggregateCallTypeSelectorProps {
|
|
3
|
+
value: AggregateCallType;
|
|
4
|
+
onValueChange: (value: AggregateCallType) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function AggregateCallTypeSelector({ value, onValueChange }: AggregateCallTypeSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=AggregateCallTypeSelector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AggregateCallTypeSelector.d.ts","sourceRoot":"","sources":["../../src/components/AggregateCallTypeSelector.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,UAAU,8BAA8B;IACtC,KAAK,EAAE,iBAAiB,CAAC;IACzB,aAAa,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;CACnD;AAED,wBAAgB,yBAAyB,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE,EAAE,8BAA8B,2CAkEjG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppKitProvider.d.ts","sourceRoot":"","sources":["../../src/components/AppKitProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAyHlC,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CA4BnE"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { PropsWithChildren } from "react";
|
|
2
|
+
interface AppProvidersProps extends PropsWithChildren {
|
|
3
|
+
/**
|
|
4
|
+
* Theme mode: 'light', 'dark', or 'auto'
|
|
5
|
+
* @default 'dark'
|
|
6
|
+
*/
|
|
7
|
+
theme?: "light" | "dark" | "auto";
|
|
8
|
+
/**
|
|
9
|
+
* Enable system theme detection (only applies when theme is 'auto')
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
enableSystem?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* App Providers Component
|
|
16
|
+
*
|
|
17
|
+
* Consolidates all necessary providers for the Router Protocol application.
|
|
18
|
+
* Wraps children with PostHog, Theme, AppKit, Turnkey, and Web3Modal providers.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```tsx
|
|
22
|
+
* <AppProviders theme="dark">
|
|
23
|
+
* <YourApp />
|
|
24
|
+
* </AppProviders>
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare function AppProviders({ children, theme, enableSystem }: AppProvidersProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=AppProviders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppProviders.d.ts","sourceRoot":"","sources":["../../src/components/AppProviders.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAO/C,UAAU,iBAAkB,SAAQ,iBAAiB;IACnD;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IAClC;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,KAAc,EACd,YAAoB,EACrB,EAAE,iBAAiB,2CAmBnB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AggregateCallType } from "@/lib/grpc-client";
|
|
2
|
+
interface ControlBarProps {
|
|
3
|
+
amount: string;
|
|
4
|
+
countdownProgress: number;
|
|
5
|
+
state: any;
|
|
6
|
+
handleManualFetch: () => void;
|
|
7
|
+
slippageTolerance: number;
|
|
8
|
+
handleSlippageChange: (value: number) => void;
|
|
9
|
+
handleNodesChange: (nodes: string[]) => void;
|
|
10
|
+
selectedNodes: string[];
|
|
11
|
+
aggregateCallType: AggregateCallType;
|
|
12
|
+
onAggregateCallTypeChange: (value: AggregateCallType) => void;
|
|
13
|
+
}
|
|
14
|
+
declare const ControlBar: ({ amount, countdownProgress, state, handleManualFetch, slippageTolerance, handleSlippageChange, handleNodesChange, selectedNodes, aggregateCallType, onAggregateCallTypeChange, }: ControlBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default ControlBar;
|
|
16
|
+
//# sourceMappingURL=CapsuleControls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CapsuleControls.d.ts","sourceRoot":"","sources":["../../src/components/CapsuleControls.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AA0EtD,UAAU,eAAe;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,MAAM,CAAC;IAC1B,KAAK,EAAE,GAAG,CAAC;IACX,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC7C,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,yBAAyB,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAC/D;AAED,QAAA,MAAM,UAAU,GAAI,mLAWjB,eAAe,4CAqCjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
interface PriceResponse {
|
|
2
|
+
price: string | null;
|
|
3
|
+
source: string;
|
|
4
|
+
error: Error | null;
|
|
5
|
+
}
|
|
6
|
+
interface UseTokenPriceProps {
|
|
7
|
+
srcToken: string;
|
|
8
|
+
srcDecimals: number;
|
|
9
|
+
network: string | number;
|
|
10
|
+
enabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface UseTokenPriceResult {
|
|
13
|
+
price: string | null;
|
|
14
|
+
loading: boolean;
|
|
15
|
+
error: Error | null;
|
|
16
|
+
sources: PriceResponse[];
|
|
17
|
+
}
|
|
18
|
+
declare const useTokenPrice: ({ srcToken, srcDecimals, network, enabled }: UseTokenPriceProps) => UseTokenPriceResult;
|
|
19
|
+
export default useTokenPrice;
|
|
20
|
+
//# sourceMappingURL=GetTokenPrice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetTokenPrice.d.ts","sourceRoot":"","sources":["../../src/components/GetTokenPrice.tsx"],"names":[],"mappings":"AAiBA,UAAU,aAAa;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAqOD,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,UAAU,mBAAmB;IAC3B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,aAAa,EAAE,CAAC;CAC1B;AAKD,QAAA,MAAM,aAAa,GAAI,6CAAoD,kBAAkB,KAAG,mBAgQ/F,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ImageProps {
|
|
3
|
+
src: string | {
|
|
4
|
+
src?: string;
|
|
5
|
+
} | any;
|
|
6
|
+
alt: string;
|
|
7
|
+
width?: number | string;
|
|
8
|
+
height?: number | string;
|
|
9
|
+
className?: string;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
loading?: "lazy" | "eager";
|
|
12
|
+
onError?: (e: React.SyntheticEvent<HTMLImageElement, Event>) => void;
|
|
13
|
+
onLoad?: (e: React.SyntheticEvent<HTMLImageElement, Event>) => void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Simple Image component to replace next/image
|
|
17
|
+
* Handles the same props as next/image but uses a regular img tag
|
|
18
|
+
*/
|
|
19
|
+
export default function Image({ src, alt, width, height, className, style, loading, onError, onLoad, }: ImageProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=Image.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../src/components/Image.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,UAAU;IAClB,GAAG,EAAE,MAAM,GAAG;QAAE,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,GAAG,CAAC;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,gBAAgB,EAAE,KAAK,CAAC,KAAK,IAAI,CAAC;IACrE,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,gBAAgB,EAAE,KAAK,CAAC,KAAK,IAAI,CAAC;CACrE;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC5B,GAAG,EACH,GAAG,EACH,KAAK,EACL,MAAM,EACN,SAAc,EACd,KAAK,EACL,OAAgB,EAChB,OAAO,EACP,MAAM,GACP,EAAE,UAAU,2CAqBZ"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface NodeMultiSelectProps {
|
|
3
|
+
availableNodes: string[];
|
|
4
|
+
selectedNodes: string[];
|
|
5
|
+
onChange: (selected: string[]) => void;
|
|
6
|
+
triggerLabel?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const NodeMultiSelect: React.FC<NodeMultiSelectProps>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=NodeMultiSelect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeMultiSelect.d.ts","sourceRoot":"","sources":["../../src/components/NodeMultiSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,oBAAoB;IAC5B,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAkD1D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PosthogPageView.d.ts","sourceRoot":"","sources":["../../src/components/PosthogPageView.tsx"],"names":[],"mappings":"AAuCA,MAAM,CAAC,OAAO,UAAU,wBAAwB,4CAM/C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PosthogProvider.d.ts","sourceRoot":"","sources":["../../src/components/PosthogProvider.tsx"],"names":[],"mappings":"AA2BA,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAW1E"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface QuoteRefreshCountdownProps {
|
|
2
|
+
quoteFetchTimestamp: number | null;
|
|
3
|
+
quoteDurationMs: number;
|
|
4
|
+
isQuoteActive: boolean;
|
|
5
|
+
isQuoteLoading: boolean;
|
|
6
|
+
onProgressUpdate: (progress: number) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function QuoteRefreshCountdown({ quoteFetchTimestamp, quoteDurationMs, isQuoteActive, isQuoteLoading, onProgressUpdate, }: QuoteRefreshCountdownProps): null;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=QuoteRefreshCountdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuoteRefreshCountdown.d.ts","sourceRoot":"","sources":["../../src/components/QuoteRefreshCountdown.tsx"],"names":[],"mappings":"AAIA,UAAU,0BAA0B;IAClC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9C;AAED,wBAAgB,qBAAqB,CAAC,EACpC,mBAAmB,EACnB,eAAe,EACf,aAAa,EACb,cAAc,EACd,gBAAgB,GACjB,EAAE,0BAA0B,QAmC5B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Chain } from "@/types";
|
|
3
|
+
import type { Wallet } from "@dynamic-labs/sdk-react-core";
|
|
4
|
+
type RecipientAddressEditorProps = {
|
|
5
|
+
value: string;
|
|
6
|
+
onChange: (newValue: string) => void;
|
|
7
|
+
toChain: Chain;
|
|
8
|
+
connectNewWallet: () => void;
|
|
9
|
+
defaultWallet: Wallet | null;
|
|
10
|
+
};
|
|
11
|
+
declare const RecipientAddressEditor: React.MemoExoticComponent<({ value, onChange, toChain, connectNewWallet, defaultWallet, }: RecipientAddressEditorProps) => import("react/jsx-runtime").JSX.Element>;
|
|
12
|
+
export default RecipientAddressEditor;
|
|
13
|
+
//# sourceMappingURL=RecipientAddressEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RecipientAddressEditor.d.ts","sourceRoot":"","sources":["../../src/components/RecipientAddressEditor.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAiD,MAAM,OAAO,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAKhC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAa3D,KAAK,2BAA2B,GAAG;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,OAAO,EAAE,KAAK,CAAC;IACf,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B,CAAC;AAEF,QAAA,MAAM,sBAAsB,6FAMzB,2BAA2B,6CAmT5B,CAAC;AAEH,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { WidgetConfig } from "../lib/types/widget";
|
|
2
|
+
import "../styles.css";
|
|
3
|
+
export interface RouterWidgetProps {
|
|
4
|
+
/**
|
|
5
|
+
* Widget configuration
|
|
6
|
+
*/
|
|
7
|
+
config?: WidgetConfig;
|
|
8
|
+
/**
|
|
9
|
+
* If true, skips wrapping with providers (assumes providers exist in parent)
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
skipProviders?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* RouterWidget Component
|
|
16
|
+
*
|
|
17
|
+
* Main entry point for the Router Protocol widget.
|
|
18
|
+
* Provides a complete cross-chain swap interface that can be embedded in any React application.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```tsx
|
|
22
|
+
* import { RouterWidget } from '@routerprotocol/widget';
|
|
23
|
+
* import '@routerprotocol/widget/styles.css';
|
|
24
|
+
*
|
|
25
|
+
* function App() {
|
|
26
|
+
* return (
|
|
27
|
+
* <RouterWidget
|
|
28
|
+
* config={{
|
|
29
|
+
* theme: { mode: 'dark' },
|
|
30
|
+
* integrator: 'MyDApp',
|
|
31
|
+
* }}
|
|
32
|
+
* />
|
|
33
|
+
* );
|
|
34
|
+
* }
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare function RouterWidget({ config, skipProviders }: RouterWidgetProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
//# sourceMappingURL=RouterWidget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RouterWidget.d.ts","sourceRoot":"","sources":["../../src/components/RouterWidget.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,eAAe,CAAC;AAEvB,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,YAAY,CAAC,EAAE,MAAM,EAAE,aAAqB,EAAE,EAAE,iBAAiB,2CAMhF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AggregateCallType } from "@/lib/grpc-client";
|
|
3
|
+
interface SlippageConfiguratorProps {
|
|
4
|
+
initialSlippage?: number;
|
|
5
|
+
onSlippageChange: (slippage: number) => void;
|
|
6
|
+
className?: string;
|
|
7
|
+
handleNodesChange: (nodes: string[]) => void;
|
|
8
|
+
selectedNodes: string[];
|
|
9
|
+
aggregateCallType: AggregateCallType;
|
|
10
|
+
onAggregateCallTypeChange: (value: AggregateCallType) => void;
|
|
11
|
+
}
|
|
12
|
+
declare const SlippageConfigurator: React.FC<SlippageConfiguratorProps>;
|
|
13
|
+
export default SlippageConfigurator;
|
|
14
|
+
//# sourceMappingURL=SlippageConfigurator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SlippageConfigurator.d.ts","sourceRoot":"","sources":["../../src/components/SlippageConfigurator.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAGhD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAKtD,UAAU,yBAAyB;IACjC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC7C,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,yBAAyB,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAC/D;AACD,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAmX7D,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import type { Token, Chain } from "@/types";
|
|
2
|
+
import { AggregateCallType, RouteResult } from "@/lib/grpc-client";
|
|
3
|
+
import { AvailableNodes } from "@/types/Node";
|
|
4
|
+
export interface SwapState {
|
|
5
|
+
fromChain: Chain;
|
|
6
|
+
fromToken: Token;
|
|
7
|
+
toChain: Chain;
|
|
8
|
+
toToken: Token;
|
|
9
|
+
amount: string;
|
|
10
|
+
amountOut: string;
|
|
11
|
+
aggregateCallType: AggregateCallType;
|
|
12
|
+
nodeId: string;
|
|
13
|
+
slippageTolerance: number;
|
|
14
|
+
recipientAddress: string;
|
|
15
|
+
isWalletCustomized: boolean;
|
|
16
|
+
identifiedRecipient: string;
|
|
17
|
+
quoteStatus: "idle" | "loading" | "success" | "error";
|
|
18
|
+
error: string | null;
|
|
19
|
+
reviewData: RouteResult | null;
|
|
20
|
+
finalResponse: RouteResult | null;
|
|
21
|
+
allRoutes: RouteResult[] | null;
|
|
22
|
+
showReview: boolean;
|
|
23
|
+
swapStatus: "idle" | "loading" | "success" | "error";
|
|
24
|
+
txHash: string | null;
|
|
25
|
+
selectedNodes: AvailableNodes[];
|
|
26
|
+
showQuoteUpdateMessage: boolean;
|
|
27
|
+
txnStep: "idle" | "checking_allowance" | "approval_needed" | "approval_started" | "approval_completed" | "src_txn_started" | "src_txn_completed";
|
|
28
|
+
}
|
|
29
|
+
export type SwapAction = {
|
|
30
|
+
type: "SET_FROM_SELECTION";
|
|
31
|
+
payload: {
|
|
32
|
+
chain: Chain;
|
|
33
|
+
token: Token;
|
|
34
|
+
};
|
|
35
|
+
} | {
|
|
36
|
+
type: "SET_TO_SELECTION";
|
|
37
|
+
payload: {
|
|
38
|
+
chain: Chain;
|
|
39
|
+
token: Token;
|
|
40
|
+
};
|
|
41
|
+
} | {
|
|
42
|
+
type: "UPDATE_TOKEN_DETAILS";
|
|
43
|
+
payload: {
|
|
44
|
+
type: "from" | "to";
|
|
45
|
+
token: Token;
|
|
46
|
+
};
|
|
47
|
+
} | {
|
|
48
|
+
type: "SWAP_POSITIONS";
|
|
49
|
+
} | {
|
|
50
|
+
type: "SET_AMOUNT";
|
|
51
|
+
payload: string;
|
|
52
|
+
} | {
|
|
53
|
+
type: "SET_AMOUNT_OUT";
|
|
54
|
+
payload: string;
|
|
55
|
+
} | {
|
|
56
|
+
type: "SET_RECIPIENT";
|
|
57
|
+
payload: string;
|
|
58
|
+
} | {
|
|
59
|
+
type: "SET_WALLET_CUSTOMIZED";
|
|
60
|
+
} | {
|
|
61
|
+
type: "SET_SLIPPAGE";
|
|
62
|
+
payload: number;
|
|
63
|
+
} | {
|
|
64
|
+
type: "FETCH_QUOTE_START";
|
|
65
|
+
} | {
|
|
66
|
+
type: "FETCH_QUOTE_MULTI_START";
|
|
67
|
+
payload: {
|
|
68
|
+
routes: RouteResult[];
|
|
69
|
+
};
|
|
70
|
+
} | {
|
|
71
|
+
type: "FETCH_QUOTE_SUCCESS";
|
|
72
|
+
payload: {
|
|
73
|
+
amountOut: string;
|
|
74
|
+
finalResponse: RouteResult;
|
|
75
|
+
nodeId: string;
|
|
76
|
+
};
|
|
77
|
+
} | {
|
|
78
|
+
type: "FETCH_QUOTE_ERROR";
|
|
79
|
+
payload: string;
|
|
80
|
+
} | {
|
|
81
|
+
type: "INITIATE_SWAP_REVIEW";
|
|
82
|
+
payload: {
|
|
83
|
+
reviewData: RouteResult;
|
|
84
|
+
identifiedRecipient: string;
|
|
85
|
+
finalResponse: RouteResult;
|
|
86
|
+
nodeId: string;
|
|
87
|
+
amountOut: string;
|
|
88
|
+
};
|
|
89
|
+
} | {
|
|
90
|
+
type: "INITIATE_SWAP_ERROR";
|
|
91
|
+
payload: string;
|
|
92
|
+
} | {
|
|
93
|
+
type: "CONFIRM_SWAP_START";
|
|
94
|
+
} | {
|
|
95
|
+
type: "CONFIRM_SWAP_SUCCESS";
|
|
96
|
+
payload: string | null;
|
|
97
|
+
} | {
|
|
98
|
+
type: "CONFIRM_SWAP_ERROR";
|
|
99
|
+
payload: string;
|
|
100
|
+
} | {
|
|
101
|
+
type: "SET_TXN_STEP";
|
|
102
|
+
payload: "idle" | "checking_allowance" | "approval_needed" | "approval_started" | "approval_completed" | "src_txn_started" | "src_txn_completed";
|
|
103
|
+
} | {
|
|
104
|
+
type: "CLOSE_REVIEW_MODAL";
|
|
105
|
+
} | {
|
|
106
|
+
type: "SET_SELECTED_NODES";
|
|
107
|
+
payload: AvailableNodes[];
|
|
108
|
+
} | {
|
|
109
|
+
type: "SET_AGGREGATE_CALL_TYPE";
|
|
110
|
+
payload: AggregateCallType;
|
|
111
|
+
} | {
|
|
112
|
+
type: "SET_ERROR";
|
|
113
|
+
payload: string | null;
|
|
114
|
+
} | {
|
|
115
|
+
type: "RESET_QUOTE_STATE";
|
|
116
|
+
} | {
|
|
117
|
+
type: "CLEAR_ALL_ROUTES";
|
|
118
|
+
} | {
|
|
119
|
+
type: "SET_QUOTE_UPDATE_MESSAGE";
|
|
120
|
+
payload: boolean;
|
|
121
|
+
};
|
|
122
|
+
export default function SwapInterface(): import("react/jsx-runtime").JSX.Element;
|
|
123
|
+
//# sourceMappingURL=SwapInterface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SwapInterface.d.ts","sourceRoot":"","sources":["../../src/components/SwapInterface.tsx"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAwB,MAAM,SAAS,CAAC;AAYlE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,cAAc,EAA2B,MAAM,cAAc,CAAC;AA+CvE,MAAM,WAAW,SAAS;IACxB,SAAS,EAAE,KAAK,CAAC;IACjB,SAAS,EAAE,KAAK,CAAC;IACjB,OAAO,EAAE,KAAK,CAAC;IACf,OAAO,EAAE,KAAK,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IACtD,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,EAAE,WAAW,GAAG,IAAI,CAAC;IAC/B,aAAa,EAAE,WAAW,GAAG,IAAI,CAAC;IAClC,SAAS,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;IAChC,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IACrD,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,aAAa,EAAE,cAAc,EAAE,CAAC;IAChC,sBAAsB,EAAE,OAAO,CAAC;IAChC,OAAO,EAAE,MAAM,GAAG,oBAAoB,GAAG,iBAAiB,GAAG,kBAAkB,GAAG,oBAAoB,GAAG,iBAAiB,GAAG,mBAAmB,CAAC;CAClJ;AAED,MAAM,MAAM,UAAU,GAClB;IAAE,IAAI,EAAE,oBAAoB,CAAC;IAAC,OAAO,EAAE;QAAE,KAAK,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,KAAK,CAAA;KAAE,CAAA;CAAE,GACvE;IAAE,IAAI,EAAE,kBAAkB,CAAC;IAAC,OAAO,EAAE;QAAE,KAAK,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,KAAK,CAAA;KAAE,CAAA;CAAE,GACrE;IAAE,IAAI,EAAE,sBAAsB,CAAC;IAAC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,KAAK,EAAE,KAAK,CAAA;KAAE,CAAA;CAAE,GAChF;IAAE,IAAI,EAAE,gBAAgB,CAAA;CAAE,GAC1B;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACvC;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAC3C;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAC1C;IAAE,IAAI,EAAE,uBAAuB,CAAA;CAAE,GACjC;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACzC;IAAE,IAAI,EAAE,mBAAmB,CAAA;CAAE,GAC7B;IAAE,IAAI,EAAE,yBAAyB,CAAC;IAAC,OAAO,EAAE;QAAE,MAAM,EAAE,WAAW,EAAE,CAAA;KAAE,CAAA;CAAE,GACvE;IAAE,IAAI,EAAE,qBAAqB,CAAC;IAAC,OAAO,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,WAAW,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,GAC3G;IAAE,IAAI,EAAE,mBAAmB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAC9C;IACA,IAAI,EAAE,sBAAsB,CAAC;IAC7B,OAAO,EAAE;QACP,UAAU,EAAE,WAAW,CAAC;QACxB,mBAAmB,EAAE,MAAM,CAAC;QAC5B,aAAa,EAAE,WAAW,CAAC;QAC3B,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;CACH,GACC;IAAE,IAAI,EAAE,qBAAqB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAChD;IAAE,IAAI,EAAE,oBAAoB,CAAA;CAAE,GAC9B;IAAE,IAAI,EAAE,sBAAsB,CAAC;IAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GACxD;IAAE,IAAI,EAAE,oBAAoB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAC/C;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,OAAO,EAAE,MAAM,GAAG,oBAAoB,GAAG,iBAAiB,GAAG,kBAAkB,GAAG,oBAAoB,GAAG,iBAAiB,GAAG,mBAAmB,CAAA;CAAE,GAC1K;IAAE,IAAI,EAAE,oBAAoB,CAAA;CAAE,GAC9B;IAAE,IAAI,EAAE,oBAAoB,CAAC;IAAC,OAAO,EAAE,cAAc,EAAE,CAAA;CAAE,GACzD;IAAE,IAAI,EAAE,yBAAyB,CAAC;IAAC,OAAO,EAAE,iBAAiB,CAAA;CAAE,GAC/D;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GAC7C;IAAE,IAAI,EAAE,mBAAmB,CAAA;CAAE,GAC7B;IAAE,IAAI,EAAE,kBAAkB,CAAA;CAAE,GAC5B;IAAE,IAAI,EAAE,0BAA0B,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AA8L3D,MAAM,CAAC,OAAO,UAAU,aAAa,4CA45CpC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Token, Chain, EvmTransactionResult } from "@/types";
|
|
2
|
+
interface SwapReviewModalProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
finalResponse: any;
|
|
6
|
+
fromToken: Token;
|
|
7
|
+
toToken: Token;
|
|
8
|
+
amountIn: string;
|
|
9
|
+
amountOut: string;
|
|
10
|
+
amountInWithFee: string;
|
|
11
|
+
onConfirm: () => Promise<EvmTransactionResult>;
|
|
12
|
+
txHash?: string;
|
|
13
|
+
fromChain: Chain;
|
|
14
|
+
toChain: Chain;
|
|
15
|
+
isSwapping: boolean;
|
|
16
|
+
expiresInSeconds: number;
|
|
17
|
+
connectedAddress: string;
|
|
18
|
+
recipient: string;
|
|
19
|
+
priceImpact: number | null;
|
|
20
|
+
executionTime: number | null;
|
|
21
|
+
fromTokenBalance: string;
|
|
22
|
+
showQuoteUpdateMessage?: boolean;
|
|
23
|
+
onRefreshAfterQuoteIncrease?: () => void;
|
|
24
|
+
onClearQuoteUpdateMessage?: () => void;
|
|
25
|
+
txnStep: "idle" | "checking_allowance" | "approval_needed" | "approval_started" | "approval_completed" | "src_txn_started" | "src_txn_completed";
|
|
26
|
+
}
|
|
27
|
+
export declare function SwapReviewModal({ isOpen, onClose, finalResponse, fromToken, toToken, amountIn, amountOut, amountInWithFee, onConfirm, txHash, fromChain, toChain, isSwapping, expiresInSeconds, connectedAddress, recipient, priceImpact, executionTime, fromTokenBalance, showQuoteUpdateMessage, onRefreshAfterQuoteIncrease, onClearQuoteUpdateMessage, txnStep, }: SwapReviewModalProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=SwapReviewModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SwapReviewModal.d.ts","sourceRoot":"","sources":["../../../src/components/SwapReviewModal/SwapReviewModal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAuDjE,UAAU,oBAAoB;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,GAAG,CAAC;IACnB,SAAS,EAAE,KAAK,CAAC;IACjB,OAAO,EAAE,KAAK,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAC/C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,KAAK,CAAC;IACjB,OAAO,EAAE,KAAK,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,2BAA2B,CAAC,EAAE,MAAM,IAAI,CAAC;IACzC,yBAAyB,CAAC,EAAE,MAAM,IAAI,CAAC;IACvC,OAAO,EAAE,MAAM,GAAG,oBAAoB,GAAG,iBAAiB,GAAG,kBAAkB,GAAG,oBAAoB,GAAG,iBAAiB,GAAG,mBAAmB,CAAC;CAClJ;AAGD,wBAAgB,eAAe,CAAC,EAC9B,MAAM,EACN,OAAO,EACP,aAAa,EACb,SAAS,EACT,OAAO,EACP,QAAQ,EACR,SAAS,EACT,eAAe,EACf,SAAS,EACT,MAAM,EACN,SAAS,EACT,OAAO,EACP,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,EACT,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,sBAAsB,EACtB,2BAA2B,EAC3B,yBAAyB,EACzB,OAAO,GACR,EAAE,oBAAoB,2CAsQtB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Token, Chain } from "@/types";
|
|
2
|
+
interface TokenExchangeVisualizationProps {
|
|
3
|
+
fromToken: Token;
|
|
4
|
+
toToken: Token;
|
|
5
|
+
fromChain: Chain;
|
|
6
|
+
toChain: Chain;
|
|
7
|
+
originalAmountIn: string;
|
|
8
|
+
originalAmountOut: string;
|
|
9
|
+
txRecord?: any;
|
|
10
|
+
}
|
|
11
|
+
export declare function TokenExchangeVisualization({ fromToken, toToken, fromChain, toChain, originalAmountIn, originalAmountOut, txRecord }: TokenExchangeVisualizationProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=TokenExchangeVisualization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TokenExchangeVisualization.d.ts","sourceRoot":"","sources":["../../../src/components/SwapReviewModal/TokenExchangeVisualization.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE3C,UAAU,+BAA+B;IACvC,SAAS,EAAE,KAAK,CAAA;IAChB,OAAO,EAAE,KAAK,CAAA;IACd,SAAS,EAAE,KAAK,CAAA;IAChB,OAAO,EAAE,KAAK,CAAA;IACd,gBAAgB,EAAE,MAAM,CAAA;IACxB,iBAAiB,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,EAAE,GAAG,CAAA;CACf;AAED,wBAAgB,0BAA0B,CAAC,EACzC,SAAS,EACT,OAAO,EACP,SAAS,EACT,OAAO,EACP,gBAAgB,EAChB,iBAAiB,EACjB,QAAQ,EACT,EAAE,+BAA+B,2CA0HjC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface TransactionDetailsDropdownProps {
|
|
2
|
+
originalPriceImpact: number | null;
|
|
3
|
+
originalAmountIn: string;
|
|
4
|
+
originalAmountInWithFee: string;
|
|
5
|
+
fromToken: any;
|
|
6
|
+
finalResponse: any;
|
|
7
|
+
originalFinalResponse: any;
|
|
8
|
+
bridgeName: string;
|
|
9
|
+
recipient: string;
|
|
10
|
+
connectedAddress: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function TransactionDetailsDropdown({ originalPriceImpact, originalAmountIn, originalAmountInWithFee, fromToken, finalResponse, originalFinalResponse, bridgeName, recipient, connectedAddress }: TransactionDetailsDropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=TransactionDetailsDropdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransactionDetailsDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/SwapReviewModal/TransactionDetailsDropdown.tsx"],"names":[],"mappings":"AAWA,UAAU,+BAA+B;IACvC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,gBAAgB,EAAE,MAAM,CAAA;IACxB,uBAAuB,EAAE,MAAM,CAAA;IAC/B,SAAS,EAAE,GAAG,CAAA;IACd,aAAa,EAAE,GAAG,CAAA;IAClB,qBAAqB,EAAE,GAAG,CAAA;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,gBAAgB,EAAE,MAAM,CAAA;CACzB;AASD,wBAAgB,0BAA0B,CAAC,EACzC,mBAAmB,EACnB,gBAAgB,EAChB,uBAAuB,EACvB,SAAS,EACT,aAAa,EACb,qBAAqB,EACrB,UAAU,EACV,SAAS,EACT,gBAAgB,EACjB,EAAE,+BAA+B,2CA4GjC"}
|