@rango-dev/ui 0.1.10-next.102
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 +181 -0
- package/dist/components/Alert/Alert.d.ts +7 -0
- package/dist/components/Alert/Alert.stories.d.ts +5 -0
- package/dist/components/Alert/LoadingFailedAlert.d.ts +2 -0
- package/dist/components/Alert/NotFoundAlert.d.ts +7 -0
- package/dist/components/Alert/index.d.ts +2 -0
- package/dist/components/BestRoute/BestRoute.d.ts +12 -0
- package/dist/components/BestRoute/BestRoute.stories.d.ts +8 -0
- package/dist/components/BestRoute/index.d.ts +1 -0
- package/dist/components/BestRoute/mock.d.ts +4 -0
- package/dist/components/BlockchainSelector/BlockchainSelector.d.ts +17 -0
- package/dist/components/BlockchainSelector/BlockchainSelector.stories.d.ts +5 -0
- package/dist/components/BlockchainSelector/index.d.ts +1 -0
- package/dist/components/BlockchainsList/BlockchainsList.d.ts +10 -0
- package/dist/components/BlockchainsList/BlockchainsList.stories.d.ts +5 -0
- package/dist/components/BlockchainsList/index.d.ts +1 -0
- package/dist/components/BlockchainsList/mockData.d.ts +2 -0
- package/dist/components/Button/Button.d.ts +17 -0
- package/dist/components/Button/Button.stories.d.ts +8 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +11 -0
- package/dist/components/Checkbox/Checkbox.stories.d.ts +5 -0
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/Chip/Chip.d.ts +12 -0
- package/dist/components/Chip/Chip.stories.d.ts +7 -0
- package/dist/components/Chip/index.d.ts +1 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts +9 -0
- package/dist/components/ColorPicker/ColorPicker.stories.d.ts +5 -0
- package/dist/components/ColorPicker/index.d.ts +1 -0
- package/dist/components/ConnectWalletsModal/ConnectWallets.stories.d.ts +5 -0
- package/dist/components/ConnectWalletsModal/ConnectWalletsModal.d.ts +11 -0
- package/dist/components/ConnectWalletsModal/index.d.ts +1 -0
- package/dist/components/ConnectWalletsModal/mockData.d.ts +2 -0
- package/dist/components/Divider/Divider.d.ts +6 -0
- package/dist/components/Divider/index.d.ts +1 -0
- package/dist/components/Drawer/Drawer.d.ts +13 -0
- package/dist/components/Drawer/Drawer.stories.d.ts +8 -0
- package/dist/components/Drawer/index.d.ts +1 -0
- package/dist/components/Header/Header.d.ts +9 -0
- package/dist/components/Header/index.d.ts +1 -0
- package/dist/components/Icon/AddCircleIcon.d.ts +3 -0
- package/dist/components/Icon/AddIcon.d.ts +3 -0
- package/dist/components/Icon/AddWalletIcon.d.ts +3 -0
- package/dist/components/Icon/AngleDownIcon.d.ts +3 -0
- package/dist/components/Icon/AngleLeftIcon.d.ts +3 -0
- package/dist/components/Icon/AngleRightIcon.d.ts +3 -0
- package/dist/components/Icon/AngleUpIcon.d.ts +3 -0
- package/dist/components/Icon/ArrowRightIcon.d.ts +3 -0
- package/dist/components/Icon/BagIcon.d.ts +3 -0
- package/dist/components/Icon/BanIcon.d.ts +3 -0
- package/dist/components/Icon/CheckCircleIcon.d.ts +3 -0
- package/dist/components/Icon/CheckIcon.d.ts +3 -0
- package/dist/components/Icon/CheckSquareIcon.d.ts +3 -0
- package/dist/components/Icon/CheckWalletIcon.d.ts +3 -0
- package/dist/components/Icon/ChevronRightIcon.d.ts +3 -0
- package/dist/components/Icon/CloseIcon.d.ts +1 -0
- package/dist/components/Icon/CopyIcon.d.ts +3 -0
- package/dist/components/Icon/DeleteCircleIcon.d.ts +3 -0
- package/dist/components/Icon/DeleteWalletIcon.d.ts +3 -0
- package/dist/components/Icon/DisconnectIcon.d.ts +3 -0
- package/dist/components/Icon/DownloadIcon.d.ts +3 -0
- package/dist/components/Icon/GasIcon.d.ts +3 -0
- package/dist/components/Icon/HistoryIcon.d.ts +3 -0
- package/dist/components/Icon/HorizontalSwapIcon.d.ts +3 -0
- package/dist/components/Icon/Icons.stories.d.ts +5 -0
- package/dist/components/Icon/InfoCircleIcon.d.ts +3 -0
- package/dist/components/Icon/MinusCircleIcon.d.ts +3 -0
- package/dist/components/Icon/RetryIcon.d.ts +3 -0
- package/dist/components/Icon/RetryLeftIcon.d.ts +3 -0
- package/dist/components/Icon/RetryRightIcon.d.ts +3 -0
- package/dist/components/Icon/SearchIcon.d.ts +3 -0
- package/dist/components/Icon/SearchMinusIcon.d.ts +3 -0
- package/dist/components/Icon/SettingIcon.d.ts +3 -0
- package/dist/components/Icon/SignatureIcon.d.ts +3 -0
- package/dist/components/Icon/SwapWalletIcon.d.ts +3 -0
- package/dist/components/Icon/TimeIcon.d.ts +3 -0
- package/dist/components/Icon/TrashIcon.d.ts +3 -0
- package/dist/components/Icon/TryAgainIcon.d.ts +3 -0
- package/dist/components/Icon/VerticalSwapIcon.d.ts +3 -0
- package/dist/components/Icon/WalletIconIcon.d.ts +3 -0
- package/dist/components/Icon/WarningIcon.d.ts +3 -0
- package/dist/components/Icon/common.d.ts +2 -0
- package/dist/components/Icon/index.d.ts +40 -0
- package/dist/components/Icon/types.d.ts +6 -0
- package/dist/components/LiquiditySourceList/LiquiditySource.stories.d.ts +5 -0
- package/dist/components/LiquiditySourceList/LiquiditySourceList.d.ts +11 -0
- package/dist/components/LiquiditySourceList/index.d.ts +1 -0
- package/dist/components/LiquiditySourceList/mockData.d.ts +2 -0
- package/dist/components/LiquiditySourcesSelector/LiquiditySourcesSelector.d.ts +13 -0
- package/dist/components/LiquiditySourcesSelector/LiquiditySourcesSelector.stories.d.ts +5 -0
- package/dist/components/LiquiditySourcesSelector/index.d.ts +1 -0
- package/dist/components/Modal/Modal.d.ts +12 -0
- package/dist/components/Modal/Modal.stories.d.ts +5 -0
- package/dist/components/Modal/index.d.ts +1 -0
- package/dist/components/Radio/Radio.d.ts +13 -0
- package/dist/components/Radio/Radio.stories.d.ts +5 -0
- package/dist/components/Radio/index.d.ts +1 -0
- package/dist/components/SecondaryPage/SecondaryPage.d.ts +16 -0
- package/dist/components/SecondaryPage/SecondaryPage.stories.d.ts +2 -0
- package/dist/components/SecondaryPage/index.d.ts +1 -0
- package/dist/components/SelectableWalletList/SelectableWalletList.d.ts +7 -0
- package/dist/components/SelectableWalletList/SelectableWalletList.stories.d.ts +5 -0
- package/dist/components/SelectableWalletList/index.d.ts +1 -0
- package/dist/components/SelectableWalletList/mock.d.ts +2 -0
- package/dist/components/Settings/Settings.d.ts +23 -0
- package/dist/components/Settings/Settings.stories.d.ts +5 -0
- package/dist/components/Settings/index.d.ts +1 -0
- package/dist/components/Skeleton/Skeleton.d.ts +6 -0
- package/dist/components/Skeleton/Skeleton.stories.d.ts +5 -0
- package/dist/components/Skeleton/index.d.ts +1 -0
- package/dist/components/Spacer/Spacer.d.ts +6 -0
- package/dist/components/Spacer/Spacer.stories.d.ts +5 -0
- package/dist/components/Spacer/index.d.ts +1 -0
- package/dist/components/Spinner/Spinner.d.ts +6 -0
- package/dist/components/Spinner/Spinner.stories.d.ts +5 -0
- package/dist/components/Spinner/index.d.ts +1 -0
- package/dist/components/StatusDrawer/StatusDrawer.d.ts +11 -0
- package/dist/components/StatusDrawer/StatusDrawer.stories.d.ts +5 -0
- package/dist/components/StatusDrawer/index.d.ts +1 -0
- package/dist/components/StepDetail/StepDetail.d.ts +10 -0
- package/dist/components/StepDetail/StepDetail.stories.d.ts +5 -0
- package/dist/components/StepDetail/index.d.ts +1 -0
- package/dist/components/SwapContainer/SwapContainer.d.ts +7 -0
- package/dist/components/SwapContainer/SwapContainer.stories.d.ts +5 -0
- package/dist/components/SwapContainer/index.d.ts +1 -0
- package/dist/components/SwapDetail/SwapDetail.d.ts +8 -0
- package/dist/components/SwapDetail/SwapDetail.stories.d.ts +5 -0
- package/dist/components/SwapDetail/Token.d.ts +16 -0
- package/dist/components/SwapDetail/index.d.ts +1 -0
- package/dist/components/SwapDetail/mock.d.ts +2 -0
- package/dist/components/Switch/Switch.d.ts +6 -0
- package/dist/components/Switch/Switch.stories.d.ts +5 -0
- package/dist/components/Switch/index.d.ts +1 -0
- package/dist/components/TextField/TextField.d.ts +10 -0
- package/dist/components/TextField/TextField.stories.d.ts +7 -0
- package/dist/components/TextField/index.d.ts +1 -0
- package/dist/components/TokenList/TokenItem.d.ts +11 -0
- package/dist/components/TokenList/TokenList.d.ts +17 -0
- package/dist/components/TokenList/TokenList.stories.d.ts +5 -0
- package/dist/components/TokenList/index.d.ts +1 -0
- package/dist/components/TokenList/mockData.d.ts +2 -0
- package/dist/components/TokenSelector/TokenSelector.d.ts +16 -0
- package/dist/components/TokenSelector/TokenSelector.stories.d.ts +5 -0
- package/dist/components/TokenSelector/index.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +7 -0
- package/dist/components/Tooltip/Tooltip.stories.d.ts +5 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/Typography/Typography.d.ts +18 -0
- package/dist/components/Typography/Typography.stories.d.ts +5 -0
- package/dist/components/Typography/index.d.ts +1 -0
- package/dist/components/VirtualizedList/VirtualizedList.d.ts +17 -0
- package/dist/components/Wallet/State.d.ts +7 -0
- package/dist/components/Wallet/Wallet.d.ts +7 -0
- package/dist/components/Wallet/Wallet.stories.d.ts +5 -0
- package/dist/components/Wallet/index.d.ts +1 -0
- package/dist/components/common/FilledCircle.d.ts +1 -0
- package/dist/components/common/index.d.ts +1 -0
- package/dist/components/index.d.ts +31 -0
- package/dist/containers/ConfirmSwap/ConfirmSwap.d.ts +20 -0
- package/dist/containers/ConfirmSwap/ConfirmSwap.stories.d.ts +6 -0
- package/dist/containers/ConfirmSwap/index.d.ts +1 -0
- package/dist/containers/ConfirmSwap/mock.d.ts +5 -0
- package/dist/containers/History/History.d.ts +13 -0
- package/dist/containers/History/History.stories.d.ts +5 -0
- package/dist/containers/History/index.d.ts +1 -0
- package/dist/containers/History/mock.d.ts +2 -0
- package/dist/containers/History/types.d.ts +39 -0
- package/dist/containers/SwapHistory/SwapHistory.d.ts +24 -0
- package/dist/containers/SwapHistory/SwapHistory.stories.d.ts +5 -0
- package/dist/containers/SwapHistory/SwapMessages.d.ts +17 -0
- package/dist/containers/SwapHistory/index.d.ts +1 -0
- package/dist/containers/SwapHistory/mock.d.ts +2 -0
- package/dist/containers/index.d.ts +3 -0
- package/dist/helper/index.d.ts +2 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +8 -0
- package/dist/theme.d.ts +8 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/meta.d.ts +23 -0
- package/dist/types/swaps.d.ts +29 -0
- package/dist/types/wallet.d.ts +23 -0
- package/dist/ui.cjs.development.js +4956 -0
- package/dist/ui.cjs.development.js.map +1 -0
- package/dist/ui.cjs.production.min.js +2 -0
- package/dist/ui.cjs.production.min.js.map +1 -0
- package/dist/ui.esm.js +4870 -0
- package/dist/ui.esm.js.map +1 -0
- package/package.json +88 -0
- package/src/components/Alert/Alert.stories.tsx +22 -0
- package/src/components/Alert/Alert.tsx +102 -0
- package/src/components/Alert/LoadingFailedAlert.tsx +11 -0
- package/src/components/Alert/NotFoundAlert.tsx +19 -0
- package/src/components/Alert/index.ts +2 -0
- package/src/components/BestRoute/BestRoute.stories.tsx +31 -0
- package/src/components/BestRoute/BestRoute.tsx +232 -0
- package/src/components/BestRoute/index.ts +1 -0
- package/src/components/BestRoute/mock.ts +554 -0
- package/src/components/BlockchainSelector/BlockchainSelector.stories.tsx +25 -0
- package/src/components/BlockchainSelector/BlockchainSelector.tsx +93 -0
- package/src/components/BlockchainSelector/index.ts +1 -0
- package/src/components/BlockchainsList/BlockchainsList.stories.tsx +25 -0
- package/src/components/BlockchainsList/BlockchainsList.tsx +70 -0
- package/src/components/BlockchainsList/index.ts +1 -0
- package/src/components/BlockchainsList/mockData.ts +2972 -0
- package/src/components/Button/Button.stories.tsx +59 -0
- package/src/components/Button/Button.tsx +421 -0
- package/src/components/Button/index.ts +1 -0
- package/src/components/Checkbox/Checkbox.stories.tsx +22 -0
- package/src/components/Checkbox/Checkbox.tsx +56 -0
- package/src/components/Checkbox/index.ts +1 -0
- package/src/components/Chip/Chip.stories.tsx +37 -0
- package/src/components/Chip/Chip.tsx +48 -0
- package/src/components/Chip/index.ts +1 -0
- package/src/components/ColorPicker/ColorPicker.stories.tsx +36 -0
- package/src/components/ColorPicker/ColorPicker.tsx +85 -0
- package/src/components/ColorPicker/index.ts +1 -0
- package/src/components/ConnectWalletsModal/ConnectWallets.stories.tsx +13 -0
- package/src/components/ConnectWalletsModal/ConnectWalletsModal.tsx +42 -0
- package/src/components/ConnectWalletsModal/index.ts +1 -0
- package/src/components/ConnectWalletsModal/mockData.ts +134 -0
- package/src/components/Divider/Divider.tsx +41 -0
- package/src/components/Divider/index.ts +1 -0
- package/src/components/Drawer/Drawer.stories.tsx +86 -0
- package/src/components/Drawer/Drawer.tsx +124 -0
- package/src/components/Drawer/index.ts +1 -0
- package/src/components/Header/Header.tsx +39 -0
- package/src/components/Header/index.ts +1 -0
- package/src/components/Icon/AddCircleIcon.tsx +31 -0
- package/src/components/Icon/AddIcon.tsx +31 -0
- package/src/components/Icon/AddWalletIcon.tsx +50 -0
- package/src/components/Icon/AngleDownIcon.tsx +30 -0
- package/src/components/Icon/AngleLeftIcon.tsx +33 -0
- package/src/components/Icon/AngleRightIcon.tsx +32 -0
- package/src/components/Icon/AngleUpIcon.tsx +32 -0
- package/src/components/Icon/ArrowRightIcon.tsx +31 -0
- package/src/components/Icon/BagIcon.tsx +39 -0
- package/src/components/Icon/BanIcon.tsx +32 -0
- package/src/components/Icon/CheckCircleIcon.tsx +39 -0
- package/src/components/Icon/CheckIcon.tsx +30 -0
- package/src/components/Icon/CheckSquareIcon.tsx +37 -0
- package/src/components/Icon/CheckWalletIcon.tsx +45 -0
- package/src/components/Icon/ChevronRightIcon.tsx +29 -0
- package/src/components/Icon/CloseIcon.tsx +9 -0
- package/src/components/Icon/CopyIcon.tsx +59 -0
- package/src/components/Icon/DeleteCircleIcon.tsx +31 -0
- package/src/components/Icon/DeleteWalletIcon.tsx +50 -0
- package/src/components/Icon/DisconnectIcon.tsx +31 -0
- package/src/components/Icon/DownloadIcon.tsx +37 -0
- package/src/components/Icon/GasIcon.tsx +37 -0
- package/src/components/Icon/HistoryIcon.tsx +34 -0
- package/src/components/Icon/HorizontalSwapIcon.tsx +38 -0
- package/src/components/Icon/Icons.stories.tsx +44 -0
- package/src/components/Icon/InfoCircleIcon.tsx +39 -0
- package/src/components/Icon/MinusCircleIcon.tsx +31 -0
- package/src/components/Icon/RetryIcon.tsx +30 -0
- package/src/components/Icon/RetryLeftIcon.tsx +31 -0
- package/src/components/Icon/RetryRightIcon.tsx +31 -0
- package/src/components/Icon/SearchIcon.tsx +31 -0
- package/src/components/Icon/SearchMinusIcon.tsx +31 -0
- package/src/components/Icon/SettingIcon.tsx +31 -0
- package/src/components/Icon/SignatureIcon.tsx +32 -0
- package/src/components/Icon/SwapWalletIcon.tsx +50 -0
- package/src/components/Icon/TimeIcon.tsx +29 -0
- package/src/components/Icon/TrashIcon.tsx +31 -0
- package/src/components/Icon/TryAgainIcon.tsx +31 -0
- package/src/components/Icon/VerticalSwapIcon.tsx +38 -0
- package/src/components/Icon/WalletIconIcon.tsx +40 -0
- package/src/components/Icon/WarningIcon.tsx +37 -0
- package/src/components/Icon/common.ts +69 -0
- package/src/components/Icon/index.ts +48 -0
- package/src/components/Icon/types.tsx +45 -0
- package/src/components/LiquiditySourceList/LiquiditySource.stories.tsx +13 -0
- package/src/components/LiquiditySourceList/LiquiditySourceList.tsx +195 -0
- package/src/components/LiquiditySourceList/index.ts +1 -0
- package/src/components/LiquiditySourceList/mockData.ts +316 -0
- package/src/components/LiquiditySourcesSelector/LiquiditySourcesSelector.stories.tsx +16 -0
- package/src/components/LiquiditySourcesSelector/LiquiditySourcesSelector.tsx +61 -0
- package/src/components/LiquiditySourcesSelector/index.ts +1 -0
- package/src/components/Modal/Modal.stories.tsx +22 -0
- package/src/components/Modal/Modal.tsx +93 -0
- package/src/components/Modal/index.ts +1 -0
- package/src/components/Radio/Radio.stories.tsx +23 -0
- package/src/components/Radio/Radio.tsx +100 -0
- package/src/components/Radio/index.ts +1 -0
- package/src/components/SecondaryPage/SecondaryPage.stories.tsx +7 -0
- package/src/components/SecondaryPage/SecondaryPage.tsx +68 -0
- package/src/components/SecondaryPage/index.ts +1 -0
- package/src/components/SelectableWalletList/SelectableWalletList.stories.tsx +14 -0
- package/src/components/SelectableWalletList/SelectableWalletList.tsx +118 -0
- package/src/components/SelectableWalletList/index.ts +1 -0
- package/src/components/SelectableWalletList/mock.ts +13 -0
- package/src/components/Settings/Settings.stories.tsx +34 -0
- package/src/components/Settings/Settings.tsx +208 -0
- package/src/components/Settings/index.ts +1 -0
- package/src/components/Skeleton/Skeleton.stories.tsx +24 -0
- package/src/components/Skeleton/Skeleton.tsx +66 -0
- package/src/components/Skeleton/index.ts +1 -0
- package/src/components/Spacer/Spacer.stories.tsx +31 -0
- package/src/components/Spacer/Spacer.tsx +128 -0
- package/src/components/Spacer/index.ts +1 -0
- package/src/components/Spinner/Spinner.stories.tsx +25 -0
- package/src/components/Spinner/Spinner.tsx +61 -0
- package/src/components/Spinner/index.ts +1 -0
- package/src/components/StatusDrawer/StatusDrawer.stories.tsx +38 -0
- package/src/components/StatusDrawer/StatusDrawer.tsx +82 -0
- package/src/components/StatusDrawer/index.ts +1 -0
- package/src/components/StepDetail/StepDetail.stories.tsx +37 -0
- package/src/components/StepDetail/StepDetail.tsx +109 -0
- package/src/components/StepDetail/index.ts +1 -0
- package/src/components/SwapContainer/SwapContainer.stories.tsx +13 -0
- package/src/components/SwapContainer/SwapContainer.tsx +43 -0
- package/src/components/SwapContainer/index.ts +1 -0
- package/src/components/SwapDetail/SwapDetail.stories.tsx +19 -0
- package/src/components/SwapDetail/SwapDetail.tsx +112 -0
- package/src/components/SwapDetail/Token.tsx +68 -0
- package/src/components/SwapDetail/index.ts +1 -0
- package/src/components/SwapDetail/mock.ts +276 -0
- package/src/components/Switch/Switch.stories.tsx +9 -0
- package/src/components/Switch/Switch.tsx +55 -0
- package/src/components/Switch/index.ts +1 -0
- package/src/components/TextField/TextField.stories.tsx +31 -0
- package/src/components/TextField/TextField.tsx +141 -0
- package/src/components/TextField/index.ts +1 -0
- package/src/components/TokenList/TokenItem.tsx +73 -0
- package/src/components/TokenList/TokenList.stories.tsx +18 -0
- package/src/components/TokenList/TokenList.tsx +95 -0
- package/src/components/TokenList/index.ts +1 -0
- package/src/components/TokenList/mockData.ts +1721 -0
- package/src/components/TokenSelector/TokenSelector.stories.tsx +18 -0
- package/src/components/TokenSelector/TokenSelector.tsx +95 -0
- package/src/components/TokenSelector/index.ts +1 -0
- package/src/components/Tooltip/Tooltip.stories.tsx +52 -0
- package/src/components/Tooltip/Tooltip.tsx +116 -0
- package/src/components/Tooltip/index.ts +1 -0
- package/src/components/Typography/Typography.stories.tsx +72 -0
- package/src/components/Typography/Typography.tsx +216 -0
- package/src/components/Typography/index.ts +1 -0
- package/src/components/VirtualizedList/VirtualizedList.tsx +62 -0
- package/src/components/Wallet/State.tsx +34 -0
- package/src/components/Wallet/Wallet.stories.tsx +36 -0
- package/src/components/Wallet/Wallet.tsx +69 -0
- package/src/components/Wallet/index.ts +1 -0
- package/src/components/common/FilledCircle.tsx +8 -0
- package/src/components/common/index.ts +1 -0
- package/src/components/index.ts +31 -0
- package/src/containers/ConfirmSwap/ConfirmSwap.stories.tsx +22 -0
- package/src/containers/ConfirmSwap/ConfirmSwap.tsx +180 -0
- package/src/containers/ConfirmSwap/index.ts +1 -0
- package/src/containers/ConfirmSwap/mock.ts +223 -0
- package/src/containers/History/History.stories.tsx +14 -0
- package/src/containers/History/History.tsx +115 -0
- package/src/containers/History/index.ts +1 -0
- package/src/containers/History/mock.ts +826 -0
- package/src/containers/History/types.tsx +47 -0
- package/src/containers/SwapHistory/SwapHistory.stories.tsx +13 -0
- package/src/containers/SwapHistory/SwapHistory.tsx +442 -0
- package/src/containers/SwapHistory/SwapMessages.tsx +116 -0
- package/src/containers/SwapHistory/index.ts +1 -0
- package/src/containers/SwapHistory/mock.ts +276 -0
- package/src/containers/index.ts +3 -0
- package/src/helper/index.ts +16 -0
- package/src/index.ts +4 -0
- package/src/theme.ts +163 -0
- package/src/types/index.ts +3 -0
- package/src/types/meta.ts +22 -0
- package/src/types/swaps.ts +44 -0
- package/src/types/wallet.ts +30 -0
|
@@ -0,0 +1,826 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { RoutingResultType, TransactionType } from 'rango-sdk';
|
|
3
|
+
import { PendingSwap } from './types';
|
|
4
|
+
|
|
5
|
+
export const pendingSwap: PendingSwap[] = [
|
|
6
|
+
{
|
|
7
|
+
creationTime: '1673164511955',
|
|
8
|
+
finishTime: '1673164550137',
|
|
9
|
+
requestId: '51e211d9-d61c-45d2-a4d4-1f9f7f90ee85',
|
|
10
|
+
inputAmount: '1',
|
|
11
|
+
wallets: {
|
|
12
|
+
OSMOSIS: {
|
|
13
|
+
walletType: 'keplr',
|
|
14
|
+
address: 'osmo1unf2rcytjxfpz8x8ar63h4qeftadptg5t0nqcl',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
status: 'running',
|
|
18
|
+
isPaused: false,
|
|
19
|
+
extraMessage: null,
|
|
20
|
+
extraMessageSeverity: 'info',
|
|
21
|
+
extraMessageDetail: '',
|
|
22
|
+
extraMessageErrorCode: null,
|
|
23
|
+
networkStatusExtraMessage: null,
|
|
24
|
+
networkStatusExtraMessageDetail: null,
|
|
25
|
+
lastNotificationTime: null,
|
|
26
|
+
settings: {
|
|
27
|
+
slippage: '1.0',
|
|
28
|
+
disabledSwappersIds: [],
|
|
29
|
+
disabledSwappersGroups: [],
|
|
30
|
+
},
|
|
31
|
+
simulationResult: {
|
|
32
|
+
resultType: RoutingResultType.OK,
|
|
33
|
+
outputAmount: '1.540670',
|
|
34
|
+
swaps: [
|
|
35
|
+
{
|
|
36
|
+
swapperId: 'Osmosis',
|
|
37
|
+
swapperType: 'DEX',
|
|
38
|
+
swapperLogo: '',
|
|
39
|
+
from: {
|
|
40
|
+
symbol: 'JUNO',
|
|
41
|
+
logo: 'https://api.rango.exchange/tokens/COSMOS/JUNO.png',
|
|
42
|
+
address:
|
|
43
|
+
'ibc/46b44899322f3cd854d2d46deef881958467cdd4b3b10086da49296bbed94bed',
|
|
44
|
+
blockchain: 'OSMOSIS',
|
|
45
|
+
blockchainLogo: '',
|
|
46
|
+
decimals: 6,
|
|
47
|
+
usdPrice: 1.1091996179668873,
|
|
48
|
+
},
|
|
49
|
+
to: {
|
|
50
|
+
symbol: 'OSMO',
|
|
51
|
+
logo: 'https://api.rango.exchange/i/mJQPS2',
|
|
52
|
+
address: null,
|
|
53
|
+
blockchain: 'OSMOSIS',
|
|
54
|
+
decimals: 6,
|
|
55
|
+
blockchainLogo: '',
|
|
56
|
+
usdPrice: 0.7192435454440882,
|
|
57
|
+
},
|
|
58
|
+
fromAmount: '1.000000',
|
|
59
|
+
fromAmountPrecision: null,
|
|
60
|
+
fromAmountMinValue: null,
|
|
61
|
+
fromAmountMaxValue: null,
|
|
62
|
+
fromAmountRestrictionType: 'EXCLUSIVE',
|
|
63
|
+
toAmount: '1.540670',
|
|
64
|
+
fee: [
|
|
65
|
+
{
|
|
66
|
+
asset: {
|
|
67
|
+
blockchain: 'OSMOSIS',
|
|
68
|
+
symbol: 'OSMO',
|
|
69
|
+
address: null,
|
|
70
|
+
},
|
|
71
|
+
expenseType: 'FROM_SOURCE_WALLET',
|
|
72
|
+
amount: '0',
|
|
73
|
+
name: 'Network Fee',
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
estimatedTimeInSeconds: 45,
|
|
77
|
+
swapChainType: 'INTRA_CHAIN',
|
|
78
|
+
routes: [
|
|
79
|
+
{
|
|
80
|
+
nodes: [
|
|
81
|
+
{
|
|
82
|
+
nodes: [
|
|
83
|
+
{
|
|
84
|
+
marketName: 'pool#498',
|
|
85
|
+
marketId: null,
|
|
86
|
+
percent: 1,
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
from: 'JUNO',
|
|
90
|
+
fromLogo: 'https://api.rango.exchange/tokens/COSMOS/JUNO.png',
|
|
91
|
+
fromAddress:
|
|
92
|
+
'ibc/46b44899322f3cd854d2d46deef881958467cdd4b3b10086da49296bbed94bed',
|
|
93
|
+
fromBlockchain: 'OSMOSIS',
|
|
94
|
+
to: 'ATOM',
|
|
95
|
+
toLogo: 'https://api.rango.exchange/tokens/COSMOS/ATOM.png',
|
|
96
|
+
toAddress:
|
|
97
|
+
'ibc/27394fb092d2eccd56123c74f36e4c1f926001ceada9ca97ea622b25f41e5eb2',
|
|
98
|
+
toBlockchain: 'OSMOSIS',
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
nodes: [
|
|
102
|
+
{
|
|
103
|
+
marketName: 'pool#8',
|
|
104
|
+
marketId: null,
|
|
105
|
+
percent: 1,
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
from: 'ATOM',
|
|
109
|
+
fromLogo: 'https://api.rango.exchange/tokens/COSMOS/ATOM.png',
|
|
110
|
+
fromAddress:
|
|
111
|
+
'ibc/27394fb092d2eccd56123c74f36e4c1f926001ceada9ca97ea622b25f41e5eb2',
|
|
112
|
+
fromBlockchain: 'OSMOSIS',
|
|
113
|
+
to: 'IRIS',
|
|
114
|
+
toLogo: 'https://api.rango.exchange/tokens/COSMOS/IRIS.png',
|
|
115
|
+
toAddress:
|
|
116
|
+
'ibc/7c4d60aa95e5a7558b0a364860979ca34b7ff8aaf255b87af9e879374470cec0',
|
|
117
|
+
toBlockchain: 'OSMOSIS',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
nodes: [
|
|
121
|
+
{
|
|
122
|
+
marketName: 'pool#7',
|
|
123
|
+
marketId: null,
|
|
124
|
+
percent: 1,
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
from: 'IRIS',
|
|
128
|
+
fromLogo: 'https://api.rango.exchange/tokens/COSMOS/IRIS.png',
|
|
129
|
+
fromAddress:
|
|
130
|
+
'ibc/7c4d60aa95e5a7558b0a364860979ca34b7ff8aaf255b87af9e879374470cec0',
|
|
131
|
+
fromBlockchain: 'OSMOSIS',
|
|
132
|
+
to: 'OSMO',
|
|
133
|
+
toLogo: 'https://api.rango.exchange/tokens/COSMOS/OSMO.png',
|
|
134
|
+
toAddress: null,
|
|
135
|
+
toBlockchain: 'OSMOSIS',
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
recommendedSlippage: null,
|
|
141
|
+
timeStat: {
|
|
142
|
+
min: 6,
|
|
143
|
+
avg: 40,
|
|
144
|
+
max: 241,
|
|
145
|
+
},
|
|
146
|
+
includesDestinationTx: false,
|
|
147
|
+
maxRequiredSign: 1,
|
|
148
|
+
warnings: [],
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
},
|
|
152
|
+
validateBalanceOrFee: true,
|
|
153
|
+
steps: [
|
|
154
|
+
{
|
|
155
|
+
id: 1,
|
|
156
|
+
fromBlockchain: 'OSMOSIS',
|
|
157
|
+
fromSymbol: 'JUNO',
|
|
158
|
+
fromSymbolAddress:
|
|
159
|
+
'ibc/46b44899322f3cd854d2d46deef881958467cdd4b3b10086da49296bbed94bed',
|
|
160
|
+
fromDecimals: 6,
|
|
161
|
+
fromAmountPrecision: null,
|
|
162
|
+
fromAmountMinValue: null,
|
|
163
|
+
fromAmountMaxValue: null,
|
|
164
|
+
toBlockchainLogo: 'https://api.rango.exchange/swappers/osmosis.png',
|
|
165
|
+
fromBlockchainLogo: 'https://api.rango.exchange/swappers/osmosis.png',
|
|
166
|
+
toBlockchain: 'OSMOSIS',
|
|
167
|
+
fromLogo: 'https://api.rango.exchange/tokens/COSMOS/JUNO.png',
|
|
168
|
+
toSymbol: 'OSMO',
|
|
169
|
+
toSymbolAddress: null,
|
|
170
|
+
swapperType: 'DEX',
|
|
171
|
+
toDecimals: 6,
|
|
172
|
+
toLogo: 'https://api.rango.exchange/i/mJQPS2',
|
|
173
|
+
startTransactionTime: 1673164519916,
|
|
174
|
+
swapperId: 'Osmosis',
|
|
175
|
+
swapperLogo: '',
|
|
176
|
+
expectedOutputAmountHumanReadable: '1.540670',
|
|
177
|
+
outputAmount: '1.540658',
|
|
178
|
+
status: 'running',
|
|
179
|
+
networkStatus: null,
|
|
180
|
+
executedTransactionId:
|
|
181
|
+
'0f8f17eecc863c2d6be65ef52cfe3128ff3cd7baeddf133160bea8ccdfbf876b',
|
|
182
|
+
explorerUrl: [
|
|
183
|
+
{
|
|
184
|
+
url: 'https://www.mintscan.io/osmosis/txs/0f8f17eecc863c2d6be65ef52cfe3128ff3cd7baeddf133160bea8ccdfbf876b',
|
|
185
|
+
description: null,
|
|
186
|
+
},
|
|
187
|
+
],
|
|
188
|
+
cosmosTransaction: {
|
|
189
|
+
type: TransactionType.COSMOS,
|
|
190
|
+
fromWalletAddress: 'osmo1unf2rcytjxfpz8x8ar63h4qeftadptg5t0nqcl',
|
|
191
|
+
blockChain: 'OSMOSIS',
|
|
192
|
+
data: {
|
|
193
|
+
chainId: 'osmosis-1',
|
|
194
|
+
account_number: 102721,
|
|
195
|
+
sequence: '308',
|
|
196
|
+
msgs: [
|
|
197
|
+
{
|
|
198
|
+
__type: 'OsmosisSwapMessage',
|
|
199
|
+
type: 'osmosis/gamm/swap-exact-amount-in',
|
|
200
|
+
value: {
|
|
201
|
+
sender: 'osmo1unf2rcytjxfpz8x8ar63h4qeftadptg5t0nqcl',
|
|
202
|
+
routes: [
|
|
203
|
+
{
|
|
204
|
+
pool_id: '498',
|
|
205
|
+
token_out_denom:
|
|
206
|
+
'ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2',
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
pool_id: '8',
|
|
210
|
+
token_out_denom:
|
|
211
|
+
'ibc/7C4D60AA95E5A7558B0A364860979CA34B7FF8AAF255B87AF9E879374470CEC0',
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
pool_id: '7',
|
|
215
|
+
token_out_denom: 'uosmo',
|
|
216
|
+
},
|
|
217
|
+
],
|
|
218
|
+
token_in: {
|
|
219
|
+
denom:
|
|
220
|
+
'ibc/46B44899322F3CD854D2D46DEEF881958467CDD4B3B10086DA49296BBED94BED',
|
|
221
|
+
amount: '1000000',
|
|
222
|
+
},
|
|
223
|
+
token_out_min_amount: '1525264',
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
protoMsgs: [
|
|
228
|
+
{
|
|
229
|
+
type_url: '/osmosis.gamm.v1beta1.MsgSwapExactAmountIn',
|
|
230
|
+
value: [
|
|
231
|
+
10, 43, 111, 115, 109, 111, 49, 117, 110, 102, 50, 114, 99,
|
|
232
|
+
121, 116, 106, 120, 102, 112, 122, 56, 120, 56, 97, 114, 54,
|
|
233
|
+
51, 104, 52, 113, 101, 102, 116, 97, 100, 112, 116, 103, 53,
|
|
234
|
+
116, 48, 110, 113, 99, 108, 18, 73, 8, -14, 3, 18, 68, 105,
|
|
235
|
+
98, 99, 47, 50, 55, 51, 57, 52, 70, 66, 48, 57, 50, 68, 50,
|
|
236
|
+
69, 67, 67, 68, 53, 54, 49, 50, 51, 67, 55, 52, 70, 51, 54,
|
|
237
|
+
69, 52, 67, 49, 70, 57, 50, 54, 48, 48, 49, 67, 69, 65, 68,
|
|
238
|
+
65, 57, 67, 65, 57, 55, 69, 65, 54, 50, 50, 66, 50, 53, 70,
|
|
239
|
+
52, 49, 69, 53, 69, 66, 50, 18, 72, 8, 8, 18, 68, 105, 98, 99,
|
|
240
|
+
47, 55, 67, 52, 68, 54, 48, 65, 65, 57, 53, 69, 53, 65, 55,
|
|
241
|
+
53, 53, 56, 66, 48, 65, 51, 54, 52, 56, 54, 48, 57, 55, 57,
|
|
242
|
+
67, 65, 51, 52, 66, 55, 70, 70, 56, 65, 65, 70, 50, 53, 53,
|
|
243
|
+
66, 56, 55, 65, 70, 57, 69, 56, 55, 57, 51, 55, 52, 52, 55,
|
|
244
|
+
48, 67, 69, 67, 48, 18, 9, 8, 7, 18, 5, 117, 111, 115, 109,
|
|
245
|
+
111, 26, 79, 10, 68, 105, 98, 99, 47, 52, 54, 66, 52, 52, 56,
|
|
246
|
+
57, 57, 51, 50, 50, 70, 51, 67, 68, 56, 53, 52, 68, 50, 68,
|
|
247
|
+
52, 54, 68, 69, 69, 70, 56, 56, 49, 57, 53, 56, 52, 54, 55,
|
|
248
|
+
67, 68, 68, 52, 66, 51, 66, 49, 48, 48, 56, 54, 68, 65, 52,
|
|
249
|
+
57, 50, 57, 54, 66, 66, 69, 68, 57, 52, 66, 69, 68, 18, 7, 49,
|
|
250
|
+
48, 48, 48, 48, 48, 48, 34, 7, 49, 53, 50, 53, 50, 54, 52,
|
|
251
|
+
],
|
|
252
|
+
},
|
|
253
|
+
],
|
|
254
|
+
memo: '',
|
|
255
|
+
source: null,
|
|
256
|
+
fee: {
|
|
257
|
+
gas: '900000',
|
|
258
|
+
amount: [
|
|
259
|
+
{
|
|
260
|
+
denom: 'uosmo',
|
|
261
|
+
amount: '0',
|
|
262
|
+
},
|
|
263
|
+
],
|
|
264
|
+
},
|
|
265
|
+
signType: 'AMINO',
|
|
266
|
+
rpcUrl: 'sample_rpc',
|
|
267
|
+
},
|
|
268
|
+
rawTransfer: null,
|
|
269
|
+
},
|
|
270
|
+
solanaTransaction: null,
|
|
271
|
+
evmTransaction: null,
|
|
272
|
+
evmApprovalTransaction: null,
|
|
273
|
+
transferTransaction: null,
|
|
274
|
+
diagnosisUrl: null,
|
|
275
|
+
internalSteps: null,
|
|
276
|
+
},
|
|
277
|
+
],
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
creationTime: '1673164511955',
|
|
281
|
+
finishTime: '1673164550137',
|
|
282
|
+
requestId: '51e211d9-d61c-45d2-a4d4-1f9f7f90ee85',
|
|
283
|
+
inputAmount: '1',
|
|
284
|
+
wallets: {
|
|
285
|
+
OSMOSIS: {
|
|
286
|
+
walletType: 'keplr',
|
|
287
|
+
address: 'osmo1unf2rcytjxfpz8x8ar63h4qeftadptg5t0nqcl',
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
status: 'failed',
|
|
291
|
+
isPaused: false,
|
|
292
|
+
extraMessage: null,
|
|
293
|
+
extraMessageSeverity: 'info',
|
|
294
|
+
extraMessageDetail: '',
|
|
295
|
+
extraMessageErrorCode: null,
|
|
296
|
+
networkStatusExtraMessage: null,
|
|
297
|
+
networkStatusExtraMessageDetail: null,
|
|
298
|
+
lastNotificationTime: null,
|
|
299
|
+
settings: {
|
|
300
|
+
slippage: '1.0',
|
|
301
|
+
disabledSwappersIds: [],
|
|
302
|
+
disabledSwappersGroups: [],
|
|
303
|
+
},
|
|
304
|
+
simulationResult: {
|
|
305
|
+
resultType: RoutingResultType.OK,
|
|
306
|
+
outputAmount: '1.540670',
|
|
307
|
+
swaps: [
|
|
308
|
+
{
|
|
309
|
+
swapperId: 'Osmosis',
|
|
310
|
+
swapperLogo: '',
|
|
311
|
+
swapperType: 'DEX',
|
|
312
|
+
from: {
|
|
313
|
+
symbol: 'JUNO',
|
|
314
|
+
logo: 'https://api.rango.exchange/tokens/COSMOS/JUNO.png',
|
|
315
|
+
address:
|
|
316
|
+
'ibc/46b44899322f3cd854d2d46deef881958467cdd4b3b10086da49296bbed94bed',
|
|
317
|
+
blockchain: 'OSMOSIS',
|
|
318
|
+
blockchainLogo: '',
|
|
319
|
+
decimals: 6,
|
|
320
|
+
usdPrice: 1.1091996179668873,
|
|
321
|
+
},
|
|
322
|
+
to: {
|
|
323
|
+
symbol: 'OSMO',
|
|
324
|
+
logo: 'https://api.rango.exchange/i/mJQPS2',
|
|
325
|
+
address: null,
|
|
326
|
+
blockchain: 'OSMOSIS',
|
|
327
|
+
decimals: 6,
|
|
328
|
+
blockchainLogo: '',
|
|
329
|
+
usdPrice: 0.7192435454440882,
|
|
330
|
+
},
|
|
331
|
+
fromAmount: '1.000000',
|
|
332
|
+
fromAmountPrecision: null,
|
|
333
|
+
fromAmountMinValue: null,
|
|
334
|
+
fromAmountMaxValue: null,
|
|
335
|
+
fromAmountRestrictionType: 'EXCLUSIVE',
|
|
336
|
+
toAmount: '1.540670',
|
|
337
|
+
fee: [
|
|
338
|
+
{
|
|
339
|
+
asset: {
|
|
340
|
+
blockchain: 'OSMOSIS',
|
|
341
|
+
symbol: 'OSMO',
|
|
342
|
+
address: null,
|
|
343
|
+
},
|
|
344
|
+
expenseType: 'FROM_SOURCE_WALLET',
|
|
345
|
+
amount: '0',
|
|
346
|
+
name: 'Network Fee',
|
|
347
|
+
},
|
|
348
|
+
],
|
|
349
|
+
estimatedTimeInSeconds: 45,
|
|
350
|
+
swapChainType: 'INTRA_CHAIN',
|
|
351
|
+
routes: [
|
|
352
|
+
{
|
|
353
|
+
nodes: [
|
|
354
|
+
{
|
|
355
|
+
nodes: [
|
|
356
|
+
{
|
|
357
|
+
marketName: 'pool#498',
|
|
358
|
+
marketId: null,
|
|
359
|
+
percent: 1,
|
|
360
|
+
},
|
|
361
|
+
],
|
|
362
|
+
from: 'JUNO',
|
|
363
|
+
fromLogo: 'https://api.rango.exchange/tokens/COSMOS/JUNO.png',
|
|
364
|
+
fromAddress:
|
|
365
|
+
'ibc/46b44899322f3cd854d2d46deef881958467cdd4b3b10086da49296bbed94bed',
|
|
366
|
+
fromBlockchain: 'OSMOSIS',
|
|
367
|
+
to: 'ATOM',
|
|
368
|
+
toLogo: 'https://api.rango.exchange/tokens/COSMOS/ATOM.png',
|
|
369
|
+
toAddress:
|
|
370
|
+
'ibc/27394fb092d2eccd56123c74f36e4c1f926001ceada9ca97ea622b25f41e5eb2',
|
|
371
|
+
toBlockchain: 'OSMOSIS',
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
nodes: [
|
|
375
|
+
{
|
|
376
|
+
marketName: 'pool#8',
|
|
377
|
+
marketId: null,
|
|
378
|
+
percent: 1,
|
|
379
|
+
},
|
|
380
|
+
],
|
|
381
|
+
from: 'ATOM',
|
|
382
|
+
fromLogo: 'https://api.rango.exchange/tokens/COSMOS/ATOM.png',
|
|
383
|
+
fromAddress:
|
|
384
|
+
'ibc/27394fb092d2eccd56123c74f36e4c1f926001ceada9ca97ea622b25f41e5eb2',
|
|
385
|
+
fromBlockchain: 'OSMOSIS',
|
|
386
|
+
to: 'IRIS',
|
|
387
|
+
toLogo: 'https://api.rango.exchange/tokens/COSMOS/IRIS.png',
|
|
388
|
+
toAddress:
|
|
389
|
+
'ibc/7c4d60aa95e5a7558b0a364860979ca34b7ff8aaf255b87af9e879374470cec0',
|
|
390
|
+
toBlockchain: 'OSMOSIS',
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
nodes: [
|
|
394
|
+
{
|
|
395
|
+
marketName: 'pool#7',
|
|
396
|
+
marketId: null,
|
|
397
|
+
percent: 1,
|
|
398
|
+
},
|
|
399
|
+
],
|
|
400
|
+
from: 'IRIS',
|
|
401
|
+
fromLogo: 'https://api.rango.exchange/tokens/COSMOS/IRIS.png',
|
|
402
|
+
fromAddress:
|
|
403
|
+
'ibc/7c4d60aa95e5a7558b0a364860979ca34b7ff8aaf255b87af9e879374470cec0',
|
|
404
|
+
fromBlockchain: 'OSMOSIS',
|
|
405
|
+
to: 'OSMO',
|
|
406
|
+
toLogo: 'https://api.rango.exchange/tokens/COSMOS/OSMO.png',
|
|
407
|
+
toAddress: null,
|
|
408
|
+
toBlockchain: 'OSMOSIS',
|
|
409
|
+
},
|
|
410
|
+
],
|
|
411
|
+
},
|
|
412
|
+
],
|
|
413
|
+
recommendedSlippage: null,
|
|
414
|
+
timeStat: {
|
|
415
|
+
min: 6,
|
|
416
|
+
avg: 40,
|
|
417
|
+
max: 241,
|
|
418
|
+
},
|
|
419
|
+
includesDestinationTx: false,
|
|
420
|
+
maxRequiredSign: 1,
|
|
421
|
+
warnings: [],
|
|
422
|
+
},
|
|
423
|
+
],
|
|
424
|
+
},
|
|
425
|
+
validateBalanceOrFee: true,
|
|
426
|
+
steps: [
|
|
427
|
+
{
|
|
428
|
+
id: 1,
|
|
429
|
+
fromBlockchain: 'OSMOSIS',
|
|
430
|
+
fromSymbol: 'JUNO',
|
|
431
|
+
fromSymbolAddress:
|
|
432
|
+
'ibc/46b44899322f3cd854d2d46deef881958467cdd4b3b10086da49296bbed94bed',
|
|
433
|
+
fromDecimals: 6,
|
|
434
|
+
fromAmountPrecision: null,
|
|
435
|
+
fromAmountMinValue: null,
|
|
436
|
+
fromAmountMaxValue: null,
|
|
437
|
+
toBlockchainLogo: 'https://api.rango.exchange/swappers/osmosis.png',
|
|
438
|
+
fromBlockchainLogo: 'https://api.rango.exchange/swappers/osmosis.png',
|
|
439
|
+
toBlockchain: 'OSMOSIS',
|
|
440
|
+
fromLogo: 'https://api.rango.exchange/tokens/COSMOS/JUNO.png',
|
|
441
|
+
toSymbol: 'OSMO',
|
|
442
|
+
toSymbolAddress: null,
|
|
443
|
+
toDecimals: 6,
|
|
444
|
+
toLogo: 'https://api.rango.exchange/i/mJQPS2',
|
|
445
|
+
startTransactionTime: 1673164519916,
|
|
446
|
+
swapperId: 'Osmosis',
|
|
447
|
+
swapperType: 'DEX',
|
|
448
|
+
swapperLogo: '',
|
|
449
|
+
expectedOutputAmountHumanReadable: '1.540670',
|
|
450
|
+
outputAmount: '1.540658',
|
|
451
|
+
status: 'failed',
|
|
452
|
+
networkStatus: null,
|
|
453
|
+
executedTransactionId:
|
|
454
|
+
'0f8f17eecc863c2d6be65ef52cfe3128ff3cd7baeddf133160bea8ccdfbf876b',
|
|
455
|
+
explorerUrl: [
|
|
456
|
+
{
|
|
457
|
+
url: 'https://www.mintscan.io/osmosis/txs/0f8f17eecc863c2d6be65ef52cfe3128ff3cd7baeddf133160bea8ccdfbf876b',
|
|
458
|
+
description: null,
|
|
459
|
+
},
|
|
460
|
+
],
|
|
461
|
+
cosmosTransaction: {
|
|
462
|
+
type: TransactionType.COSMOS,
|
|
463
|
+
fromWalletAddress: 'osmo1unf2rcytjxfpz8x8ar63h4qeftadptg5t0nqcl',
|
|
464
|
+
blockChain: 'OSMOSIS',
|
|
465
|
+
data: {
|
|
466
|
+
chainId: 'osmosis-1',
|
|
467
|
+
account_number: 102721,
|
|
468
|
+
sequence: '308',
|
|
469
|
+
msgs: [
|
|
470
|
+
{
|
|
471
|
+
__type: 'OsmosisSwapMessage',
|
|
472
|
+
type: 'osmosis/gamm/swap-exact-amount-in',
|
|
473
|
+
value: {
|
|
474
|
+
sender: 'osmo1unf2rcytjxfpz8x8ar63h4qeftadptg5t0nqcl',
|
|
475
|
+
routes: [
|
|
476
|
+
{
|
|
477
|
+
pool_id: '498',
|
|
478
|
+
token_out_denom:
|
|
479
|
+
'ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2',
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
pool_id: '8',
|
|
483
|
+
token_out_denom:
|
|
484
|
+
'ibc/7C4D60AA95E5A7558B0A364860979CA34B7FF8AAF255B87AF9E879374470CEC0',
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
pool_id: '7',
|
|
488
|
+
token_out_denom: 'uosmo',
|
|
489
|
+
},
|
|
490
|
+
],
|
|
491
|
+
token_in: {
|
|
492
|
+
denom:
|
|
493
|
+
'ibc/46B44899322F3CD854D2D46DEEF881958467CDD4B3B10086DA49296BBED94BED',
|
|
494
|
+
amount: '1000000',
|
|
495
|
+
},
|
|
496
|
+
token_out_min_amount: '1525264',
|
|
497
|
+
},
|
|
498
|
+
},
|
|
499
|
+
],
|
|
500
|
+
protoMsgs: [
|
|
501
|
+
{
|
|
502
|
+
type_url: '/osmosis.gamm.v1beta1.MsgSwapExactAmountIn',
|
|
503
|
+
value: [
|
|
504
|
+
10, 43, 111, 115, 109, 111, 49, 117, 110, 102, 50, 114, 99,
|
|
505
|
+
121, 116, 106, 120, 102, 112, 122, 56, 120, 56, 97, 114, 54,
|
|
506
|
+
51, 104, 52, 113, 101, 102, 116, 97, 100, 112, 116, 103, 53,
|
|
507
|
+
116, 48, 110, 113, 99, 108, 18, 73, 8, -14, 3, 18, 68, 105,
|
|
508
|
+
98, 99, 47, 50, 55, 51, 57, 52, 70, 66, 48, 57, 50, 68, 50,
|
|
509
|
+
69, 67, 67, 68, 53, 54, 49, 50, 51, 67, 55, 52, 70, 51, 54,
|
|
510
|
+
69, 52, 67, 49, 70, 57, 50, 54, 48, 48, 49, 67, 69, 65, 68,
|
|
511
|
+
65, 57, 67, 65, 57, 55, 69, 65, 54, 50, 50, 66, 50, 53, 70,
|
|
512
|
+
52, 49, 69, 53, 69, 66, 50, 18, 72, 8, 8, 18, 68, 105, 98, 99,
|
|
513
|
+
47, 55, 67, 52, 68, 54, 48, 65, 65, 57, 53, 69, 53, 65, 55,
|
|
514
|
+
53, 53, 56, 66, 48, 65, 51, 54, 52, 56, 54, 48, 57, 55, 57,
|
|
515
|
+
67, 65, 51, 52, 66, 55, 70, 70, 56, 65, 65, 70, 50, 53, 53,
|
|
516
|
+
66, 56, 55, 65, 70, 57, 69, 56, 55, 57, 51, 55, 52, 52, 55,
|
|
517
|
+
48, 67, 69, 67, 48, 18, 9, 8, 7, 18, 5, 117, 111, 115, 109,
|
|
518
|
+
111, 26, 79, 10, 68, 105, 98, 99, 47, 52, 54, 66, 52, 52, 56,
|
|
519
|
+
57, 57, 51, 50, 50, 70, 51, 67, 68, 56, 53, 52, 68, 50, 68,
|
|
520
|
+
52, 54, 68, 69, 69, 70, 56, 56, 49, 57, 53, 56, 52, 54, 55,
|
|
521
|
+
67, 68, 68, 52, 66, 51, 66, 49, 48, 48, 56, 54, 68, 65, 52,
|
|
522
|
+
57, 50, 57, 54, 66, 66, 69, 68, 57, 52, 66, 69, 68, 18, 7, 49,
|
|
523
|
+
48, 48, 48, 48, 48, 48, 34, 7, 49, 53, 50, 53, 50, 54, 52,
|
|
524
|
+
],
|
|
525
|
+
},
|
|
526
|
+
],
|
|
527
|
+
memo: '',
|
|
528
|
+
source: null,
|
|
529
|
+
fee: {
|
|
530
|
+
gas: '900000',
|
|
531
|
+
amount: [
|
|
532
|
+
{
|
|
533
|
+
denom: 'uosmo',
|
|
534
|
+
amount: '0',
|
|
535
|
+
},
|
|
536
|
+
],
|
|
537
|
+
},
|
|
538
|
+
signType: 'AMINO',
|
|
539
|
+
rpcUrl: 'sample_rpc',
|
|
540
|
+
},
|
|
541
|
+
rawTransfer: null,
|
|
542
|
+
},
|
|
543
|
+
solanaTransaction: null,
|
|
544
|
+
evmTransaction: null,
|
|
545
|
+
evmApprovalTransaction: null,
|
|
546
|
+
transferTransaction: null,
|
|
547
|
+
diagnosisUrl: null,
|
|
548
|
+
internalSteps: null,
|
|
549
|
+
},
|
|
550
|
+
],
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
creationTime: '1673164511955',
|
|
554
|
+
finishTime: '1673164550137',
|
|
555
|
+
requestId: '51e211d9-d61c-45d2-a4d4-1f9f7f90ee85',
|
|
556
|
+
inputAmount: '1',
|
|
557
|
+
wallets: {
|
|
558
|
+
OSMOSIS: {
|
|
559
|
+
walletType: 'keplr',
|
|
560
|
+
address: 'osmo1unf2rcytjxfpz8x8ar63h4qeftadptg5t0nqcl',
|
|
561
|
+
},
|
|
562
|
+
},
|
|
563
|
+
status: 'success',
|
|
564
|
+
isPaused: false,
|
|
565
|
+
extraMessage: null,
|
|
566
|
+
extraMessageSeverity: 'info',
|
|
567
|
+
extraMessageDetail: '',
|
|
568
|
+
extraMessageErrorCode: null,
|
|
569
|
+
networkStatusExtraMessage: null,
|
|
570
|
+
networkStatusExtraMessageDetail: null,
|
|
571
|
+
lastNotificationTime: null,
|
|
572
|
+
settings: {
|
|
573
|
+
slippage: '1.0',
|
|
574
|
+
disabledSwappersIds: [],
|
|
575
|
+
disabledSwappersGroups: [],
|
|
576
|
+
},
|
|
577
|
+
simulationResult: {
|
|
578
|
+
resultType: RoutingResultType.OK,
|
|
579
|
+
outputAmount: '1.540670',
|
|
580
|
+
swaps: [
|
|
581
|
+
{
|
|
582
|
+
swapperId: 'Osmosis',
|
|
583
|
+
swapperType: 'DEX',
|
|
584
|
+
swapperLogo: '',
|
|
585
|
+
|
|
586
|
+
from: {
|
|
587
|
+
symbol: 'JUNO',
|
|
588
|
+
logo: 'https://api.rango.exchange/tokens/COSMOS/JUNO.png',
|
|
589
|
+
address:
|
|
590
|
+
'ibc/46b44899322f3cd854d2d46deef881958467cdd4b3b10086da49296bbed94bed',
|
|
591
|
+
blockchain: 'OSMOSIS',
|
|
592
|
+
blockchainLogo: '',
|
|
593
|
+
decimals: 6,
|
|
594
|
+
usdPrice: 1.1091996179668873,
|
|
595
|
+
},
|
|
596
|
+
to: {
|
|
597
|
+
symbol: 'OSMO',
|
|
598
|
+
logo: 'https://api.rango.exchange/i/mJQPS2',
|
|
599
|
+
address: null,
|
|
600
|
+
blockchain: 'OSMOSIS',
|
|
601
|
+
decimals: 6,
|
|
602
|
+
blockchainLogo: '',
|
|
603
|
+
usdPrice: 0.7192435454440882,
|
|
604
|
+
},
|
|
605
|
+
fromAmount: '1.000000',
|
|
606
|
+
fromAmountPrecision: null,
|
|
607
|
+
fromAmountMinValue: null,
|
|
608
|
+
fromAmountMaxValue: null,
|
|
609
|
+
fromAmountRestrictionType: 'EXCLUSIVE',
|
|
610
|
+
toAmount: '1.540670',
|
|
611
|
+
fee: [
|
|
612
|
+
{
|
|
613
|
+
asset: {
|
|
614
|
+
blockchain: 'OSMOSIS',
|
|
615
|
+
symbol: 'OSMO',
|
|
616
|
+
address: null,
|
|
617
|
+
},
|
|
618
|
+
expenseType: 'FROM_SOURCE_WALLET',
|
|
619
|
+
amount: '0',
|
|
620
|
+
name: 'Network Fee',
|
|
621
|
+
},
|
|
622
|
+
],
|
|
623
|
+
estimatedTimeInSeconds: 45,
|
|
624
|
+
swapChainType: 'INTRA_CHAIN',
|
|
625
|
+
routes: [
|
|
626
|
+
{
|
|
627
|
+
nodes: [
|
|
628
|
+
{
|
|
629
|
+
nodes: [
|
|
630
|
+
{
|
|
631
|
+
marketName: 'pool#498',
|
|
632
|
+
marketId: null,
|
|
633
|
+
percent: 1,
|
|
634
|
+
},
|
|
635
|
+
],
|
|
636
|
+
from: 'JUNO',
|
|
637
|
+
fromLogo: 'https://api.rango.exchange/tokens/COSMOS/JUNO.png',
|
|
638
|
+
fromAddress:
|
|
639
|
+
'ibc/46b44899322f3cd854d2d46deef881958467cdd4b3b10086da49296bbed94bed',
|
|
640
|
+
fromBlockchain: 'OSMOSIS',
|
|
641
|
+
to: 'ATOM',
|
|
642
|
+
toLogo: 'https://api.rango.exchange/tokens/COSMOS/ATOM.png',
|
|
643
|
+
toAddress:
|
|
644
|
+
'ibc/27394fb092d2eccd56123c74f36e4c1f926001ceada9ca97ea622b25f41e5eb2',
|
|
645
|
+
toBlockchain: 'OSMOSIS',
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
nodes: [
|
|
649
|
+
{
|
|
650
|
+
marketName: 'pool#8',
|
|
651
|
+
marketId: null,
|
|
652
|
+
percent: 1,
|
|
653
|
+
},
|
|
654
|
+
],
|
|
655
|
+
from: 'ATOM',
|
|
656
|
+
fromLogo: 'https://api.rango.exchange/tokens/COSMOS/ATOM.png',
|
|
657
|
+
fromAddress:
|
|
658
|
+
'ibc/27394fb092d2eccd56123c74f36e4c1f926001ceada9ca97ea622b25f41e5eb2',
|
|
659
|
+
fromBlockchain: 'OSMOSIS',
|
|
660
|
+
to: 'IRIS',
|
|
661
|
+
toLogo: 'https://api.rango.exchange/tokens/COSMOS/IRIS.png',
|
|
662
|
+
toAddress:
|
|
663
|
+
'ibc/7c4d60aa95e5a7558b0a364860979ca34b7ff8aaf255b87af9e879374470cec0',
|
|
664
|
+
toBlockchain: 'OSMOSIS',
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
nodes: [
|
|
668
|
+
{
|
|
669
|
+
marketName: 'pool#7',
|
|
670
|
+
marketId: null,
|
|
671
|
+
percent: 1,
|
|
672
|
+
},
|
|
673
|
+
],
|
|
674
|
+
from: 'IRIS',
|
|
675
|
+
fromLogo: 'https://api.rango.exchange/tokens/COSMOS/IRIS.png',
|
|
676
|
+
fromAddress:
|
|
677
|
+
'ibc/7c4d60aa95e5a7558b0a364860979ca34b7ff8aaf255b87af9e879374470cec0',
|
|
678
|
+
fromBlockchain: 'OSMOSIS',
|
|
679
|
+
to: 'OSMO',
|
|
680
|
+
toLogo: 'https://api.rango.exchange/tokens/COSMOS/OSMO.png',
|
|
681
|
+
toAddress: null,
|
|
682
|
+
toBlockchain: 'OSMOSIS',
|
|
683
|
+
},
|
|
684
|
+
],
|
|
685
|
+
},
|
|
686
|
+
],
|
|
687
|
+
recommendedSlippage: null,
|
|
688
|
+
timeStat: {
|
|
689
|
+
min: 6,
|
|
690
|
+
avg: 40,
|
|
691
|
+
max: 241,
|
|
692
|
+
},
|
|
693
|
+
includesDestinationTx: false,
|
|
694
|
+
maxRequiredSign: 1,
|
|
695
|
+
warnings: [],
|
|
696
|
+
},
|
|
697
|
+
],
|
|
698
|
+
},
|
|
699
|
+
validateBalanceOrFee: true,
|
|
700
|
+
steps: [
|
|
701
|
+
{
|
|
702
|
+
id: 1,
|
|
703
|
+
fromBlockchain: 'OSMOSIS',
|
|
704
|
+
fromSymbol: 'JUNO',
|
|
705
|
+
fromSymbolAddress:
|
|
706
|
+
'ibc/46b44899322f3cd854d2d46deef881958467cdd4b3b10086da49296bbed94bed',
|
|
707
|
+
fromDecimals: 6,
|
|
708
|
+
fromAmountPrecision: null,
|
|
709
|
+
fromAmountMinValue: null,
|
|
710
|
+
fromAmountMaxValue: null,
|
|
711
|
+
toBlockchainLogo: 'https://api.rango.exchange/swappers/osmosis.png',
|
|
712
|
+
fromBlockchainLogo: 'https://api.rango.exchange/swappers/osmosis.png',
|
|
713
|
+
toBlockchain: 'OSMOSIS',
|
|
714
|
+
fromLogo: 'https://api.rango.exchange/tokens/COSMOS/JUNO.png',
|
|
715
|
+
toSymbol: 'OSMO',
|
|
716
|
+
toSymbolAddress: null,
|
|
717
|
+
toDecimals: 6,
|
|
718
|
+
toLogo: 'https://api.rango.exchange/i/mJQPS2',
|
|
719
|
+
startTransactionTime: 1673164519916,
|
|
720
|
+
swapperId: 'Osmosis',
|
|
721
|
+
swapperType: 'DEX',
|
|
722
|
+
swapperLogo: '',
|
|
723
|
+
expectedOutputAmountHumanReadable: '1.540670',
|
|
724
|
+
outputAmount: '1.540658',
|
|
725
|
+
status: 'success',
|
|
726
|
+
networkStatus: null,
|
|
727
|
+
executedTransactionId:
|
|
728
|
+
'0f8f17eecc863c2d6be65ef52cfe3128ff3cd7baeddf133160bea8ccdfbf876b',
|
|
729
|
+
explorerUrl: [
|
|
730
|
+
{
|
|
731
|
+
url: 'https://www.mintscan.io/osmosis/txs/0f8f17eecc863c2d6be65ef52cfe3128ff3cd7baeddf133160bea8ccdfbf876b',
|
|
732
|
+
description: null,
|
|
733
|
+
},
|
|
734
|
+
],
|
|
735
|
+
cosmosTransaction: {
|
|
736
|
+
type: TransactionType.COSMOS,
|
|
737
|
+
fromWalletAddress: 'osmo1unf2rcytjxfpz8x8ar63h4qeftadptg5t0nqcl',
|
|
738
|
+
blockChain: 'OSMOSIS',
|
|
739
|
+
data: {
|
|
740
|
+
chainId: 'osmosis-1',
|
|
741
|
+
account_number: 102721,
|
|
742
|
+
sequence: '308',
|
|
743
|
+
msgs: [
|
|
744
|
+
{
|
|
745
|
+
__type: 'OsmosisSwapMessage',
|
|
746
|
+
type: 'osmosis/gamm/swap-exact-amount-in',
|
|
747
|
+
value: {
|
|
748
|
+
sender: 'osmo1unf2rcytjxfpz8x8ar63h4qeftadptg5t0nqcl',
|
|
749
|
+
routes: [
|
|
750
|
+
{
|
|
751
|
+
pool_id: '498',
|
|
752
|
+
token_out_denom:
|
|
753
|
+
'ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2',
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
pool_id: '8',
|
|
757
|
+
token_out_denom:
|
|
758
|
+
'ibc/7C4D60AA95E5A7558B0A364860979CA34B7FF8AAF255B87AF9E879374470CEC0',
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
pool_id: '7',
|
|
762
|
+
token_out_denom: 'uosmo',
|
|
763
|
+
},
|
|
764
|
+
],
|
|
765
|
+
token_in: {
|
|
766
|
+
denom:
|
|
767
|
+
'ibc/46B44899322F3CD854D2D46DEEF881958467CDD4B3B10086DA49296BBED94BED',
|
|
768
|
+
amount: '1000000',
|
|
769
|
+
},
|
|
770
|
+
token_out_min_amount: '1525264',
|
|
771
|
+
},
|
|
772
|
+
},
|
|
773
|
+
],
|
|
774
|
+
protoMsgs: [
|
|
775
|
+
{
|
|
776
|
+
type_url: '/osmosis.gamm.v1beta1.MsgSwapExactAmountIn',
|
|
777
|
+
value: [
|
|
778
|
+
10, 43, 111, 115, 109, 111, 49, 117, 110, 102, 50, 114, 99,
|
|
779
|
+
121, 116, 106, 120, 102, 112, 122, 56, 120, 56, 97, 114, 54,
|
|
780
|
+
51, 104, 52, 113, 101, 102, 116, 97, 100, 112, 116, 103, 53,
|
|
781
|
+
116, 48, 110, 113, 99, 108, 18, 73, 8, -14, 3, 18, 68, 105,
|
|
782
|
+
98, 99, 47, 50, 55, 51, 57, 52, 70, 66, 48, 57, 50, 68, 50,
|
|
783
|
+
69, 67, 67, 68, 53, 54, 49, 50, 51, 67, 55, 52, 70, 51, 54,
|
|
784
|
+
69, 52, 67, 49, 70, 57, 50, 54, 48, 48, 49, 67, 69, 65, 68,
|
|
785
|
+
65, 57, 67, 65, 57, 55, 69, 65, 54, 50, 50, 66, 50, 53, 70,
|
|
786
|
+
52, 49, 69, 53, 69, 66, 50, 18, 72, 8, 8, 18, 68, 105, 98, 99,
|
|
787
|
+
47, 55, 67, 52, 68, 54, 48, 65, 65, 57, 53, 69, 53, 65, 55,
|
|
788
|
+
53, 53, 56, 66, 48, 65, 51, 54, 52, 56, 54, 48, 57, 55, 57,
|
|
789
|
+
67, 65, 51, 52, 66, 55, 70, 70, 56, 65, 65, 70, 50, 53, 53,
|
|
790
|
+
66, 56, 55, 65, 70, 57, 69, 56, 55, 57, 51, 55, 52, 52, 55,
|
|
791
|
+
48, 67, 69, 67, 48, 18, 9, 8, 7, 18, 5, 117, 111, 115, 109,
|
|
792
|
+
111, 26, 79, 10, 68, 105, 98, 99, 47, 52, 54, 66, 52, 52, 56,
|
|
793
|
+
57, 57, 51, 50, 50, 70, 51, 67, 68, 56, 53, 52, 68, 50, 68,
|
|
794
|
+
52, 54, 68, 69, 69, 70, 56, 56, 49, 57, 53, 56, 52, 54, 55,
|
|
795
|
+
67, 68, 68, 52, 66, 51, 66, 49, 48, 48, 56, 54, 68, 65, 52,
|
|
796
|
+
57, 50, 57, 54, 66, 66, 69, 68, 57, 52, 66, 69, 68, 18, 7, 49,
|
|
797
|
+
48, 48, 48, 48, 48, 48, 34, 7, 49, 53, 50, 53, 50, 54, 52,
|
|
798
|
+
],
|
|
799
|
+
},
|
|
800
|
+
],
|
|
801
|
+
memo: '',
|
|
802
|
+
source: null,
|
|
803
|
+
fee: {
|
|
804
|
+
gas: '900000',
|
|
805
|
+
amount: [
|
|
806
|
+
{
|
|
807
|
+
denom: 'uosmo',
|
|
808
|
+
amount: '0',
|
|
809
|
+
},
|
|
810
|
+
],
|
|
811
|
+
},
|
|
812
|
+
signType: 'AMINO',
|
|
813
|
+
rpcUrl: 'sample_rpc',
|
|
814
|
+
},
|
|
815
|
+
rawTransfer: null,
|
|
816
|
+
},
|
|
817
|
+
solanaTransaction: null,
|
|
818
|
+
evmTransaction: null,
|
|
819
|
+
evmApprovalTransaction: null,
|
|
820
|
+
transferTransaction: null,
|
|
821
|
+
diagnosisUrl: null,
|
|
822
|
+
internalSteps: null,
|
|
823
|
+
},
|
|
824
|
+
],
|
|
825
|
+
},
|
|
826
|
+
];
|