@rango-dev/ui 0.1.10-next.69

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.
Files changed (349) hide show
  1. package/README.md +181 -0
  2. package/dist/components/Alert/Alert.d.ts +6 -0
  3. package/dist/components/Alert/Alert.stories.d.ts +4 -0
  4. package/dist/components/Alert/index.d.ts +1 -0
  5. package/dist/components/BestRoute/BestRoute.d.ts +8 -0
  6. package/dist/components/BestRoute/BestRoute.stories.d.ts +8 -0
  7. package/dist/components/BestRoute/index.d.ts +1 -0
  8. package/dist/components/BestRoute/mock.d.ts +4 -0
  9. package/dist/components/BlockchainSelector/BlockchainSelector.d.ts +14 -0
  10. package/dist/components/BlockchainSelector/BlockchainSelector.stories.d.ts +4 -0
  11. package/dist/components/BlockchainSelector/index.d.ts +1 -0
  12. package/dist/components/BlockchainsList/BlockchainsList.d.ts +7 -0
  13. package/dist/components/BlockchainsList/BlockchainsList.stories.d.ts +4 -0
  14. package/dist/components/BlockchainsList/index.d.ts +1 -0
  15. package/dist/components/BlockchainsList/mockData.d.ts +2 -0
  16. package/dist/components/Button/Button.d.ts +17 -0
  17. package/dist/components/Button/Button.stories.d.ts +8 -0
  18. package/dist/components/Button/index.d.ts +1 -0
  19. package/dist/components/Checkbox/Checkbox.d.ts +11 -0
  20. package/dist/components/Checkbox/Checkbox.stories.d.ts +5 -0
  21. package/dist/components/Checkbox/index.d.ts +1 -0
  22. package/dist/components/Chip/Chip.d.ts +12 -0
  23. package/dist/components/Chip/Chip.stories.d.ts +6 -0
  24. package/dist/components/Chip/index.d.ts +1 -0
  25. package/dist/components/ConnectWalletsModal/ConnectWallets.stories.d.ts +4 -0
  26. package/dist/components/ConnectWalletsModal/ConnectWalletsModal.d.ts +10 -0
  27. package/dist/components/ConnectWalletsModal/index.d.ts +1 -0
  28. package/dist/components/ConnectWalletsModal/mockData.d.ts +2 -0
  29. package/dist/components/Drawer/Drawer.d.ts +12 -0
  30. package/dist/components/Drawer/Drawer.stories.d.ts +7 -0
  31. package/dist/components/Drawer/index.d.ts +1 -0
  32. package/dist/components/Icon/AddCircleIcon.d.ts +3 -0
  33. package/dist/components/Icon/AddIcon.d.ts +3 -0
  34. package/dist/components/Icon/AddWalletIcon.d.ts +3 -0
  35. package/dist/components/Icon/AngleDownIcon.d.ts +3 -0
  36. package/dist/components/Icon/AngleLeftIcon.d.ts +3 -0
  37. package/dist/components/Icon/AngleRightIcon.d.ts +3 -0
  38. package/dist/components/Icon/AngleUpIcon.d.ts +3 -0
  39. package/dist/components/Icon/BagIcon.d.ts +3 -0
  40. package/dist/components/Icon/BanIcon.d.ts +3 -0
  41. package/dist/components/Icon/CheckCircleIcon.d.ts +3 -0
  42. package/dist/components/Icon/CheckIcon.d.ts +3 -0
  43. package/dist/components/Icon/CheckSquareIcon.d.ts +3 -0
  44. package/dist/components/Icon/CheckWalletIcon.d.ts +3 -0
  45. package/dist/components/Icon/CloseIcon.d.ts +1 -0
  46. package/dist/components/Icon/DeleteCircleIcon.d.ts +3 -0
  47. package/dist/components/Icon/DeleteWalletIcon.d.ts +3 -0
  48. package/dist/components/Icon/DownloadIcon.d.ts +3 -0
  49. package/dist/components/Icon/GasIcon.d.ts +3 -0
  50. package/dist/components/Icon/HistoryIcon.d.ts +3 -0
  51. package/dist/components/Icon/HorizontalSwapIcon.d.ts +3 -0
  52. package/dist/components/Icon/Icons.stories.d.ts +5 -0
  53. package/dist/components/Icon/InfoCircleIcon.d.ts +3 -0
  54. package/dist/components/Icon/MinusCircleIcon.d.ts +3 -0
  55. package/dist/components/Icon/RetryIcon.d.ts +3 -0
  56. package/dist/components/Icon/RetryLeftIcon.d.ts +3 -0
  57. package/dist/components/Icon/RetryRightIcon.d.ts +3 -0
  58. package/dist/components/Icon/SearchIcon.d.ts +3 -0
  59. package/dist/components/Icon/SearchMinusIcon.d.ts +3 -0
  60. package/dist/components/Icon/SettingIcon.d.ts +3 -0
  61. package/dist/components/Icon/SignatureIcon.d.ts +3 -0
  62. package/dist/components/Icon/SwapWalletIcon.d.ts +3 -0
  63. package/dist/components/Icon/TimeIcon.d.ts +3 -0
  64. package/dist/components/Icon/TrashIcon.d.ts +3 -0
  65. package/dist/components/Icon/TryAgainIcon.d.ts +3 -0
  66. package/dist/components/Icon/VerticalSwapIcon.d.ts +3 -0
  67. package/dist/components/Icon/WalletIconIcon.d.ts +3 -0
  68. package/dist/components/Icon/WarningIcon.d.ts +3 -0
  69. package/dist/components/Icon/common.d.ts +2 -0
  70. package/dist/components/Icon/index.d.ts +36 -0
  71. package/dist/components/Icon/types.d.ts +6 -0
  72. package/dist/components/LiquiditySourceList/LiquiditySource.stories.d.ts +4 -0
  73. package/dist/components/LiquiditySourceList/LiquiditySourceList.d.ts +8 -0
  74. package/dist/components/LiquiditySourceList/index.d.ts +1 -0
  75. package/dist/components/LiquiditySourceList/mockData.d.ts +2 -0
  76. package/dist/components/LiquiditySourcesSelector/LiquiditySourcesSelector.d.ts +11 -0
  77. package/dist/components/LiquiditySourcesSelector/LiquiditySourcesSelector.stories.d.ts +4 -0
  78. package/dist/components/LiquiditySourcesSelector/index.d.ts +1 -0
  79. package/dist/components/Modal/Modal.d.ts +11 -0
  80. package/dist/components/Modal/Modal.stories.d.ts +4 -0
  81. package/dist/components/Modal/index.d.ts +1 -0
  82. package/dist/components/Radio/Radio.d.ts +12 -0
  83. package/dist/components/Radio/Radio.stories.d.ts +4 -0
  84. package/dist/components/Radio/index.d.ts +1 -0
  85. package/dist/components/SecondaryPage/SecondaryPage.d.ts +18 -0
  86. package/dist/components/SecondaryPage/SecondaryPage.stories.d.ts +2 -0
  87. package/dist/components/SecondaryPage/index.d.ts +1 -0
  88. package/dist/components/SelectableWalletList/SelectableWalletList.d.ts +7 -0
  89. package/dist/components/SelectableWalletList/SelectableWalletList.stories.d.ts +5 -0
  90. package/dist/components/SelectableWalletList/index.d.ts +1 -0
  91. package/dist/components/SelectableWalletList/mock.d.ts +2 -0
  92. package/dist/components/Settings/Settings.d.ts +19 -0
  93. package/dist/components/Settings/Settings.stories.d.ts +4 -0
  94. package/dist/components/Settings/index.d.ts +1 -0
  95. package/dist/components/Skeleton/Skeleton.d.ts +5 -0
  96. package/dist/components/Skeleton/Skeleton.stories.d.ts +4 -0
  97. package/dist/components/Skeleton/index.d.ts +1 -0
  98. package/dist/components/Spacer/Spacer.d.ts +5 -0
  99. package/dist/components/Spacer/Spacer.stories.d.ts +4 -0
  100. package/dist/components/Spacer/index.d.ts +1 -0
  101. package/dist/components/Spinner/Spinner.d.ts +5 -0
  102. package/dist/components/Spinner/Spinner.stories.d.ts +4 -0
  103. package/dist/components/Spinner/index.d.ts +1 -0
  104. package/dist/components/StatusDrawer/StatusDrawer.d.ts +11 -0
  105. package/dist/components/StatusDrawer/StatusDrawer.stories.d.ts +4 -0
  106. package/dist/components/StatusDrawer/index.d.ts +1 -0
  107. package/dist/components/StepDetail/StepDetail.d.ts +10 -0
  108. package/dist/components/StepDetail/StepDetail.stories.d.ts +5 -0
  109. package/dist/components/StepDetail/index.d.ts +1 -0
  110. package/dist/components/SwapContainer/SwapContainer.d.ts +6 -0
  111. package/dist/components/SwapContainer/SwapContainer.stories.d.ts +5 -0
  112. package/dist/components/SwapContainer/index.d.ts +1 -0
  113. package/dist/components/SwapDetail/SwapDetail.d.ts +8 -0
  114. package/dist/components/SwapDetail/SwapDetail.stories.d.ts +5 -0
  115. package/dist/components/SwapDetail/index.d.ts +1 -0
  116. package/dist/components/SwapDetail/mock.d.ts +2 -0
  117. package/dist/components/Switch/Switch.d.ts +5 -0
  118. package/dist/components/Switch/Switch.stories.d.ts +4 -0
  119. package/dist/components/Switch/index.d.ts +1 -0
  120. package/dist/components/TextField/TextField.d.ts +10 -0
  121. package/dist/components/TextField/TextField.stories.d.ts +7 -0
  122. package/dist/components/TextField/index.d.ts +1 -0
  123. package/dist/components/TokenList/TokenList.d.ts +14 -0
  124. package/dist/components/TokenList/TokenList.stories.d.ts +4 -0
  125. package/dist/components/TokenList/index.d.ts +1 -0
  126. package/dist/components/TokenList/mockData.d.ts +2 -0
  127. package/dist/components/TokenSelector/TokenSelector.d.ts +10 -0
  128. package/dist/components/TokenSelector/TokenSelector.stories.d.ts +4 -0
  129. package/dist/components/TokenSelector/index.d.ts +1 -0
  130. package/dist/components/Tooltip/Tooltip.d.ts +7 -0
  131. package/dist/components/Tooltip/Tooltip.stories.d.ts +5 -0
  132. package/dist/components/Tooltip/index.d.ts +1 -0
  133. package/dist/components/Typography/Typography.d.ts +14 -0
  134. package/dist/components/Typography/Typography.stories.d.ts +5 -0
  135. package/dist/components/Typography/index.d.ts +1 -0
  136. package/dist/components/VirtualizedList/VirtualizedList.d.ts +18 -0
  137. package/dist/components/Wallet/State.d.ts +6 -0
  138. package/dist/components/Wallet/Wallet.d.ts +6 -0
  139. package/dist/components/Wallet/Wallet.stories.d.ts +4 -0
  140. package/dist/components/Wallet/index.d.ts +1 -0
  141. package/dist/components/common/FilledCircle.d.ts +1 -0
  142. package/dist/components/common/index.d.ts +1 -0
  143. package/dist/components/index.d.ts +24 -0
  144. package/dist/containers/ConfirmSwap/ConfirmSwap.d.ts +23 -0
  145. package/dist/containers/ConfirmSwap/ConfirmSwap.stories.d.ts +5 -0
  146. package/dist/containers/ConfirmSwap/index.d.ts +1 -0
  147. package/dist/containers/ConfirmSwap/mock.d.ts +2 -0
  148. package/dist/containers/ConfirmWallets/ConfirmWallets.d.ts +14 -0
  149. package/dist/containers/ConfirmWallets/ConfirmWallets.stories.d.ts +6 -0
  150. package/dist/containers/ConfirmWallets/index.d.ts +1 -0
  151. package/dist/containers/ConfirmWallets/mock.d.ts +5 -0
  152. package/dist/containers/ConfirmWallets/types.d.ts +8 -0
  153. package/dist/containers/History/History.d.ts +8 -0
  154. package/dist/containers/History/History.stories.d.ts +5 -0
  155. package/dist/containers/History/index.d.ts +1 -0
  156. package/dist/containers/History/mock.d.ts +2 -0
  157. package/dist/containers/History/types.d.ts +59 -0
  158. package/dist/containers/SwapHistory/SwapHistory.d.ts +7 -0
  159. package/dist/containers/SwapHistory/SwapHistory.stories.d.ts +4 -0
  160. package/dist/containers/SwapHistory/index.d.ts +1 -0
  161. package/dist/containers/SwapHistory/mock.d.ts +2 -0
  162. package/dist/containers/index.d.ts +4 -0
  163. package/dist/helper/index.d.ts +6 -0
  164. package/dist/helper/swaps.d.ts +5 -0
  165. package/dist/helpers.d.ts +1 -0
  166. package/dist/index.d.ts +4 -0
  167. package/dist/index.js +8 -0
  168. package/dist/theme.d.ts +8 -0
  169. package/dist/types/index.d.ts +1 -0
  170. package/dist/types/meta.d.ts +22 -0
  171. package/dist/types/swaps.d.ts +22 -0
  172. package/dist/types/wallet.d.ts +14 -0
  173. package/dist/ui.cjs.development.js +4103 -0
  174. package/dist/ui.cjs.development.js.map +1 -0
  175. package/dist/ui.cjs.production.min.js +2 -0
  176. package/dist/ui.cjs.production.min.js.map +1 -0
  177. package/dist/ui.esm.js +4028 -0
  178. package/dist/ui.esm.js.map +1 -0
  179. package/package.json +89 -0
  180. package/src/components/Alert/Alert.stories.tsx +22 -0
  181. package/src/components/Alert/Alert.tsx +78 -0
  182. package/src/components/Alert/index.ts +1 -0
  183. package/src/components/BestRoute/BestRoute.stories.tsx +31 -0
  184. package/src/components/BestRoute/BestRoute.tsx +189 -0
  185. package/src/components/BestRoute/index.ts +1 -0
  186. package/src/components/BestRoute/mock.ts +544 -0
  187. package/src/components/BlockchainSelector/BlockchainSelector.stories.tsx +25 -0
  188. package/src/components/BlockchainSelector/BlockchainSelector.tsx +93 -0
  189. package/src/components/BlockchainSelector/index.ts +1 -0
  190. package/src/components/BlockchainsList/BlockchainsList.stories.tsx +25 -0
  191. package/src/components/BlockchainsList/BlockchainsList.tsx +60 -0
  192. package/src/components/BlockchainsList/index.ts +1 -0
  193. package/src/components/BlockchainsList/mockData.ts +2972 -0
  194. package/src/components/Button/Button.stories.tsx +59 -0
  195. package/src/components/Button/Button.tsx +407 -0
  196. package/src/components/Button/index.ts +1 -0
  197. package/src/components/Checkbox/Checkbox.stories.tsx +22 -0
  198. package/src/components/Checkbox/Checkbox.tsx +54 -0
  199. package/src/components/Checkbox/index.ts +1 -0
  200. package/src/components/Chip/Chip.stories.tsx +37 -0
  201. package/src/components/Chip/Chip.tsx +45 -0
  202. package/src/components/Chip/index.ts +1 -0
  203. package/src/components/ConnectWalletsModal/ConnectWallets.stories.tsx +13 -0
  204. package/src/components/ConnectWalletsModal/ConnectWalletsModal.tsx +42 -0
  205. package/src/components/ConnectWalletsModal/index.ts +1 -0
  206. package/src/components/ConnectWalletsModal/mockData.ts +118 -0
  207. package/src/components/Drawer/Drawer.stories.tsx +86 -0
  208. package/src/components/Drawer/Drawer.tsx +128 -0
  209. package/src/components/Drawer/index.ts +1 -0
  210. package/src/components/Icon/AddCircleIcon.tsx +29 -0
  211. package/src/components/Icon/AddIcon.tsx +28 -0
  212. package/src/components/Icon/AddWalletIcon.tsx +48 -0
  213. package/src/components/Icon/AngleDownIcon.tsx +30 -0
  214. package/src/components/Icon/AngleLeftIcon.tsx +31 -0
  215. package/src/components/Icon/AngleRightIcon.tsx +30 -0
  216. package/src/components/Icon/AngleUpIcon.tsx +30 -0
  217. package/src/components/Icon/BagIcon.tsx +37 -0
  218. package/src/components/Icon/BanIcon.tsx +30 -0
  219. package/src/components/Icon/CheckCircleIcon.tsx +37 -0
  220. package/src/components/Icon/CheckIcon.tsx +28 -0
  221. package/src/components/Icon/CheckSquareIcon.tsx +35 -0
  222. package/src/components/Icon/CheckWalletIcon.tsx +43 -0
  223. package/src/components/Icon/CloseIcon.tsx +9 -0
  224. package/src/components/Icon/DeleteCircleIcon.tsx +29 -0
  225. package/src/components/Icon/DeleteWalletIcon.tsx +48 -0
  226. package/src/components/Icon/DownloadIcon.tsx +35 -0
  227. package/src/components/Icon/GasIcon.tsx +35 -0
  228. package/src/components/Icon/HistoryIcon.tsx +38 -0
  229. package/src/components/Icon/HorizontalSwapIcon.tsx +36 -0
  230. package/src/components/Icon/Icons.stories.tsx +44 -0
  231. package/src/components/Icon/InfoCircleIcon.tsx +37 -0
  232. package/src/components/Icon/MinusCircleIcon.tsx +29 -0
  233. package/src/components/Icon/RetryIcon.tsx +30 -0
  234. package/src/components/Icon/RetryLeftIcon.tsx +29 -0
  235. package/src/components/Icon/RetryRightIcon.tsx +29 -0
  236. package/src/components/Icon/SearchIcon.tsx +29 -0
  237. package/src/components/Icon/SearchMinusIcon.tsx +29 -0
  238. package/src/components/Icon/SettingIcon.tsx +37 -0
  239. package/src/components/Icon/SignatureIcon.tsx +30 -0
  240. package/src/components/Icon/SwapWalletIcon.tsx +48 -0
  241. package/src/components/Icon/TimeIcon.tsx +29 -0
  242. package/src/components/Icon/TrashIcon.tsx +29 -0
  243. package/src/components/Icon/TryAgainIcon.tsx +29 -0
  244. package/src/components/Icon/VerticalSwapIcon.tsx +36 -0
  245. package/src/components/Icon/WalletIconIcon.tsx +38 -0
  246. package/src/components/Icon/WarningIcon.tsx +35 -0
  247. package/src/components/Icon/common.ts +69 -0
  248. package/src/components/Icon/index.ts +44 -0
  249. package/src/components/Icon/types.tsx +44 -0
  250. package/src/components/LiquiditySourceList/LiquiditySource.stories.tsx +13 -0
  251. package/src/components/LiquiditySourceList/LiquiditySourceList.tsx +114 -0
  252. package/src/components/LiquiditySourceList/index.ts +1 -0
  253. package/src/components/LiquiditySourceList/mockData.ts +316 -0
  254. package/src/components/LiquiditySourcesSelector/LiquiditySourcesSelector.stories.tsx +16 -0
  255. package/src/components/LiquiditySourcesSelector/LiquiditySourcesSelector.tsx +55 -0
  256. package/src/components/LiquiditySourcesSelector/index.ts +1 -0
  257. package/src/components/Modal/Modal.stories.tsx +22 -0
  258. package/src/components/Modal/Modal.tsx +76 -0
  259. package/src/components/Modal/index.ts +1 -0
  260. package/src/components/Radio/Radio.stories.tsx +23 -0
  261. package/src/components/Radio/Radio.tsx +95 -0
  262. package/src/components/Radio/index.ts +1 -0
  263. package/src/components/SecondaryPage/SecondaryPage.stories.tsx +7 -0
  264. package/src/components/SecondaryPage/SecondaryPage.tsx +95 -0
  265. package/src/components/SecondaryPage/index.ts +1 -0
  266. package/src/components/SelectableWalletList/SelectableWalletList.stories.tsx +14 -0
  267. package/src/components/SelectableWalletList/SelectableWalletList.tsx +113 -0
  268. package/src/components/SelectableWalletList/index.ts +1 -0
  269. package/src/components/SelectableWalletList/mock.ts +12 -0
  270. package/src/components/Settings/Settings.stories.tsx +34 -0
  271. package/src/components/Settings/Settings.tsx +160 -0
  272. package/src/components/Settings/index.ts +1 -0
  273. package/src/components/Skeleton/Skeleton.stories.tsx +24 -0
  274. package/src/components/Skeleton/Skeleton.tsx +66 -0
  275. package/src/components/Skeleton/index.ts +1 -0
  276. package/src/components/Spacer/Spacer.stories.tsx +18 -0
  277. package/src/components/Spacer/Spacer.tsx +98 -0
  278. package/src/components/Spacer/index.ts +1 -0
  279. package/src/components/Spinner/Spinner.stories.tsx +25 -0
  280. package/src/components/Spinner/Spinner.tsx +61 -0
  281. package/src/components/Spinner/index.ts +1 -0
  282. package/src/components/StatusDrawer/StatusDrawer.stories.tsx +38 -0
  283. package/src/components/StatusDrawer/StatusDrawer.tsx +81 -0
  284. package/src/components/StatusDrawer/index.ts +1 -0
  285. package/src/components/StepDetail/StepDetail.stories.tsx +37 -0
  286. package/src/components/StepDetail/StepDetail.tsx +97 -0
  287. package/src/components/StepDetail/index.ts +1 -0
  288. package/src/components/SwapContainer/SwapContainer.stories.tsx +13 -0
  289. package/src/components/SwapContainer/SwapContainer.tsx +35 -0
  290. package/src/components/SwapContainer/index.ts +1 -0
  291. package/src/components/SwapDetail/SwapDetail.stories.tsx +19 -0
  292. package/src/components/SwapDetail/SwapDetail.tsx +150 -0
  293. package/src/components/SwapDetail/index.ts +1 -0
  294. package/src/components/SwapDetail/mock.ts +275 -0
  295. package/src/components/Switch/Switch.stories.tsx +9 -0
  296. package/src/components/Switch/Switch.tsx +52 -0
  297. package/src/components/Switch/index.ts +1 -0
  298. package/src/components/TextField/TextField.stories.tsx +31 -0
  299. package/src/components/TextField/TextField.tsx +129 -0
  300. package/src/components/TextField/index.ts +1 -0
  301. package/src/components/TokenList/TokenList.stories.tsx +18 -0
  302. package/src/components/TokenList/TokenList.tsx +180 -0
  303. package/src/components/TokenList/index.ts +1 -0
  304. package/src/components/TokenList/mockData.ts +1721 -0
  305. package/src/components/TokenSelector/TokenSelector.stories.tsx +18 -0
  306. package/src/components/TokenSelector/TokenSelector.tsx +35 -0
  307. package/src/components/TokenSelector/index.ts +1 -0
  308. package/src/components/Tooltip/Tooltip.stories.tsx +52 -0
  309. package/src/components/Tooltip/Tooltip.tsx +110 -0
  310. package/src/components/Tooltip/index.ts +1 -0
  311. package/src/components/Typography/Typography.stories.tsx +68 -0
  312. package/src/components/Typography/Typography.tsx +199 -0
  313. package/src/components/Typography/index.ts +1 -0
  314. package/src/components/VirtualizedList/VirtualizedList.tsx +78 -0
  315. package/src/components/Wallet/State.tsx +36 -0
  316. package/src/components/Wallet/Wallet.stories.tsx +36 -0
  317. package/src/components/Wallet/Wallet.tsx +42 -0
  318. package/src/components/Wallet/index.ts +1 -0
  319. package/src/components/common/FilledCircle.tsx +8 -0
  320. package/src/components/common/index.ts +1 -0
  321. package/src/components/index.ts +24 -0
  322. package/src/containers/ConfirmSwap/ConfirmSwap.stories.tsx +13 -0
  323. package/src/containers/ConfirmSwap/ConfirmSwap.tsx +154 -0
  324. package/src/containers/ConfirmSwap/index.ts +1 -0
  325. package/src/containers/ConfirmSwap/mock.ts +146 -0
  326. package/src/containers/ConfirmWallets/ConfirmWallets.stories.tsx +26 -0
  327. package/src/containers/ConfirmWallets/ConfirmWallets.tsx +98 -0
  328. package/src/containers/ConfirmWallets/index.ts +1 -0
  329. package/src/containers/ConfirmWallets/mock.ts +222 -0
  330. package/src/containers/ConfirmWallets/types.ts +9 -0
  331. package/src/containers/History/History.stories.tsx +14 -0
  332. package/src/containers/History/History.tsx +93 -0
  333. package/src/containers/History/index.ts +1 -0
  334. package/src/containers/History/mock.ts +825 -0
  335. package/src/containers/History/types.tsx +66 -0
  336. package/src/containers/SwapHistory/SwapHistory.stories.tsx +13 -0
  337. package/src/containers/SwapHistory/SwapHistory.tsx +165 -0
  338. package/src/containers/SwapHistory/index.ts +1 -0
  339. package/src/containers/SwapHistory/mock.ts +275 -0
  340. package/src/containers/index.ts +4 -0
  341. package/src/helper/index.ts +23 -0
  342. package/src/helper/swaps.ts +23 -0
  343. package/src/helpers.ts +2 -0
  344. package/src/index.ts +4 -0
  345. package/src/theme.ts +161 -0
  346. package/src/types/index.ts +1 -0
  347. package/src/types/meta.ts +20 -0
  348. package/src/types/swaps.tsx +36 -0
  349. package/src/types/wallet.ts +20 -0
@@ -0,0 +1,24 @@
1
+ export * from './BestRoute';
2
+ export * from './BlockchainSelector';
3
+ export * from './Button';
4
+ export * from './Checkbox';
5
+ export * from './Chip';
6
+ export * from './ConnectWalletsModal';
7
+ export * from './Icon';
8
+ export * from './LiquiditySourcesSelector';
9
+ export * from './Modal';
10
+ export * from './SecondaryPage';
11
+ export * from './SelectableWalletList';
12
+ export * from './Settings';
13
+ export * from './Spacer';
14
+ export * from './Spinner';
15
+ export * from './StepDetail';
16
+ export * from './SwapContainer';
17
+ export * from './SwapDetail';
18
+ export * from './Switch';
19
+ export * from './TextField';
20
+ export * from './TokenSelector';
21
+ export * from './Tooltip';
22
+ export * from './Typography';
23
+ export * from './Wallet';
24
+ export * from './Alert';
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { ComponentMeta } from '@storybook/react';
3
+ import { ConfirmSwap, PropTypes } from './ConfirmSwap';
4
+ import { bestRoute } from './mock';
5
+
6
+ export default {
7
+ title: 'Containers/ConfirmSwap',
8
+ component: ConfirmSwap,
9
+ } as ComponentMeta<typeof ConfirmSwap>;
10
+
11
+ export const Main = (props: PropTypes) => (
12
+ <ConfirmSwap {...props} bestRoute={bestRoute} />
13
+ );
@@ -0,0 +1,154 @@
1
+ import { BestRouteResponse } from 'rango-sdk';
2
+ import React, { PropsWithChildren } from 'react';
3
+ import { Alert } from '../../components/Alert';
4
+ import { Button } from '../../components/Button';
5
+ import { RetryIcon, GasIcon } from '../../components/Icon';
6
+ import { SecondaryPage } from '../../components/SecondaryPage/';
7
+ import { StepDetail } from '../../components/StepDetail';
8
+ import { Typography } from '../../components/Typography';
9
+ import { styled } from '../../theme';
10
+
11
+ export const Line = styled('div', {
12
+ width: '0',
13
+ marginLeft: '$12',
14
+ height: '36px',
15
+ border: '1px dashed $foreground',
16
+ borderRadius: 'inherit',
17
+ });
18
+ export const SwapperContainer = styled('div', {
19
+ display: 'flex',
20
+ alignItems: 'center',
21
+ marginLeft: '6px',
22
+ });
23
+ export const BodyError = styled('div', {
24
+ height: '100%',
25
+ display: 'flex',
26
+ justifyContent: 'center',
27
+ alignItems: 'center',
28
+ });
29
+ export const ErrorMsg = styled(Typography, {
30
+ color: '$error',
31
+ });
32
+ export const Fee = styled('div', {
33
+ display: 'flex',
34
+ alignItems: 'center',
35
+ });
36
+ export const SwapperLogo = styled('img', {
37
+ width: '$16',
38
+ height: '$16',
39
+ });
40
+ export const RelativeContainer = styled('div', {
41
+ position: 'relative',
42
+ });
43
+
44
+ export const Footer = styled('div', {
45
+ display: 'flex',
46
+ alignItems: 'center',
47
+ });
48
+ export const Dot = styled('div', {
49
+ width: '$8',
50
+ height: '$8',
51
+ backgroundColor: '$foreground',
52
+ borderRadius: '4px',
53
+ marginLeft: '$8',
54
+ });
55
+ export const ArrowDown = styled('div', {
56
+ width: '0px',
57
+ height: '0px',
58
+ borderLeft: '5px solid transparent',
59
+ borderRight: '5px solid transparent',
60
+ borderTop: '5px solid $foreground',
61
+ marginLeft: '$8',
62
+ });
63
+ export const UpdateIcon = styled(RetryIcon, {
64
+ position: 'absolute',
65
+ right: '0',
66
+ });
67
+ export const StyledUpdateIcon = styled(UpdateIcon, {
68
+ cursor: 'pointer',
69
+ });
70
+
71
+ const Alerts = styled('div', { paddingBottom: '$16' });
72
+
73
+ export interface PropTypes {
74
+ bestRoute: BestRouteResponse | null;
75
+ onBack: () => void;
76
+ onConfirm?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
77
+ loading?: boolean;
78
+ error?: string;
79
+ warning?: string;
80
+ }
81
+ export function ConfirmSwap({
82
+ bestRoute,
83
+ onBack,
84
+ onConfirm,
85
+ loading,
86
+ error,
87
+ warning,
88
+ }: PropsWithChildren<PropTypes>) {
89
+ return (
90
+ <SecondaryPage
91
+ textField={false}
92
+ title="Swap"
93
+ onBack={onBack}
94
+ Footer={
95
+ <Footer>
96
+ <Button
97
+ type="primary"
98
+ fullWidth
99
+ loading={loading}
100
+ variant="contained"
101
+ onClick={onConfirm}
102
+ >
103
+ Swap
104
+ </Button>
105
+ </Footer>
106
+ }
107
+ Content={bestRoute?.result?.swaps.map((swap, index) => (
108
+ <>
109
+ <Alerts>
110
+ {error && <Alert description={error} type="error" />}
111
+ {warning && <Alert description={warning} type="warning" />}
112
+ </Alerts>
113
+ {index === 0 && (
114
+ <RelativeContainer>
115
+ <StepDetail
116
+ logo={swap.from.logo}
117
+ symbol={swap.from.symbol}
118
+ chainLogo={swap.from.blockchainLogo}
119
+ blockchain={swap.from.blockchain}
120
+ amount={swap.fromAmount}
121
+ />
122
+ <Dot />
123
+ </RelativeContainer>
124
+ )}
125
+ <Line />
126
+ <SwapperContainer>
127
+ <SwapperLogo src={swap.swapperLogo} alt={swap.swapperId} />
128
+ <div>
129
+ <Typography ml={4} variant="caption">
130
+ {swap.swapperType} from {swap.from.symbol} to {swap.to.symbol}{' '}
131
+ via {swap.swapperId}{' '}
132
+ </Typography>
133
+ <Fee>
134
+ <GasIcon />
135
+ <Typography ml={4} variant="caption">
136
+ {parseFloat(swap.fee[0].amount).toFixed(6)} estimated gas fee
137
+ </Typography>
138
+ </Fee>
139
+ </div>
140
+ </SwapperContainer>
141
+ <Line />
142
+ {index + 1 === bestRoute.result?.swaps.length && <ArrowDown />}
143
+ <StepDetail
144
+ logo={swap.to.logo}
145
+ symbol={swap.to.symbol}
146
+ chainLogo={swap.to.blockchainLogo}
147
+ blockchain={swap.to.blockchain}
148
+ amount={swap.toAmount}
149
+ />
150
+ </>
151
+ ))}
152
+ />
153
+ );
154
+ }
@@ -0,0 +1 @@
1
+ export { ConfirmSwap } from './ConfirmSwap';
@@ -0,0 +1,146 @@
1
+ import { RoutingResultType } from 'rango-sdk';
2
+ import { BestRouteType } from '../../types/swaps';
3
+
4
+ export const bestRoute: BestRouteType = {
5
+ from: { blockchain: 'BSC', symbol: 'BNB', address: null },
6
+ to: { blockchain: 'AVAX_CCHAIN', symbol: 'AVAX', address: null },
7
+ requestAmount: '0.3',
8
+ requestId: '228529e3-27d7-4fa9-ab84-bb2b90eade6f',
9
+ result: {
10
+ resultType: RoutingResultType.OK,
11
+ outputAmount: '5.685715974132648891',
12
+ swaps: [
13
+ {
14
+ swapperId: 'AnySwap Aggregator',
15
+ swapperType: 'AGGREGATOR',
16
+ swapperLogo: 'https://api.rango.exchange/swappers/multichain.png',
17
+ from: {
18
+ symbol: 'BNB',
19
+ logo: 'https://api.rango.exchange/i/Y3v1KW',
20
+ blockchainLogo: 'https://api.rango.exchange/blockchains/binance.svg',
21
+ address: null,
22
+ blockchain: 'BSC',
23
+ decimals: 18,
24
+ usdPrice: 279.2738558274085,
25
+ },
26
+ to: {
27
+ symbol: 'WETH.E',
28
+ logo: 'https://api.rango.exchange/i/j9xgdC',
29
+ blockchainLogo:
30
+ 'https://api.rango.exchange/blockchains/avax_cchain.svg',
31
+ address: '0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab',
32
+ blockchain: 'AVAX_CCHAIN',
33
+ decimals: 18,
34
+ usdPrice: 1329.24,
35
+ },
36
+ fromAmount: '0.300000000000000000',
37
+ fromAmountPrecision: null,
38
+ fromAmountMinValue: '0.047579322466294684272760',
39
+ fromAmountMaxValue: '79302.26195302606417382090',
40
+ fromAmountRestrictionType: 'INCLUSIVE',
41
+ toAmount: '0.062064305934309070',
42
+ fee: [
43
+ {
44
+ asset: { blockchain: 'BSC', symbol: 'BNB', address: null },
45
+ expenseType: 'FROM_SOURCE_WALLET',
46
+ amount: '0.001388002000000000',
47
+ name: 'Network Fee',
48
+ },
49
+ ],
50
+ estimatedTimeInSeconds: 300,
51
+ swapChainType: 'INTRA_CHAIN',
52
+ routes: null,
53
+ recommendedSlippage: null,
54
+ timeStat: { min: 162, avg: 260, max: 467 },
55
+ includesDestinationTx: false,
56
+ maxRequiredSign: 1,
57
+ warnings: [],
58
+ },
59
+ {
60
+ swapperId: 'PangolinSwap',
61
+ swapperLogo: 'https://api.rango.exchange/swappers/pangolin.png',
62
+ swapperType: 'DEX',
63
+ from: {
64
+ symbol: 'WETH.E',
65
+ logo: 'https://api.rango.exchange/i/j9xgdC',
66
+ address: '0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab',
67
+ blockchain: 'AVAX_CCHAIN',
68
+ decimals: 18,
69
+ usdPrice: 1329.24,
70
+ blockchainLogo:
71
+ 'https://api.rango.exchange/blockchains/avax_cchain.svg',
72
+ },
73
+ to: {
74
+ symbol: 'AVAX',
75
+ logo: 'https://api.rango.exchange/i/kX4edQ',
76
+ address: null,
77
+ blockchain: 'AVAX_CCHAIN',
78
+ decimals: 18,
79
+ usdPrice: 12.5,
80
+ blockchainLogo:
81
+ 'https://api.rango.exchange/blockchains/avax_cchain.svg',
82
+ },
83
+ fromAmount: '0.062064305934309070',
84
+ fromAmountPrecision: null,
85
+ fromAmountMinValue: null,
86
+ fromAmountMaxValue: null,
87
+ fromAmountRestrictionType: 'EXCLUSIVE',
88
+ toAmount: '5.685715974132648891',
89
+ fee: [
90
+ {
91
+ asset: {
92
+ blockchain: 'AVAX_CCHAIN',
93
+ symbol: 'WETH.E',
94
+ address: '0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab',
95
+ },
96
+ expenseType: 'DECREASE_FROM_OUTPUT',
97
+ name: 'Network Fee',
98
+ amount:
99
+ '0.00018619291780292721387591870688029381530892436558133340440690517425537109375',
100
+ },
101
+ {
102
+ asset: { blockchain: 'AVAX_CCHAIN', symbol: 'AVAX', address: null },
103
+ expenseType: 'FROM_SOURCE_WALLET',
104
+ amount: '0.005370022532678750',
105
+ name: 'Network Fee',
106
+ },
107
+ ],
108
+ estimatedTimeInSeconds: 45,
109
+ swapChainType: 'INTER_CHAIN',
110
+ routes: [
111
+ {
112
+ nodes: [
113
+ {
114
+ nodes: [
115
+ {
116
+ marketName: 'PangolinSwap',
117
+ marketId: 'PangolinSwap',
118
+ percent: 1.0,
119
+ },
120
+ ],
121
+ from: 'WETH.e',
122
+ fromLogo: '',
123
+ fromAddress: '0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab',
124
+ fromBlockchain: 'AVAX_CCHAIN',
125
+ to: 'WAVAX',
126
+ toLogo: '',
127
+ toAddress: '0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7',
128
+ toBlockchain: 'AVAX_CCHAIN',
129
+ },
130
+ ],
131
+ },
132
+ ],
133
+ recommendedSlippage: null,
134
+ timeStat: { min: 6, avg: 39, max: 317 },
135
+ includesDestinationTx: false,
136
+ maxRequiredSign: 1,
137
+ warnings: [],
138
+ },
139
+ ],
140
+ },
141
+ validationStatus: null,
142
+ missingBlockchains: [],
143
+ diagnosisMessages: [],
144
+ processingLimitReached: false,
145
+ walletNotSupportingFromBlockchain: false,
146
+ };
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import { ComponentMeta } from '@storybook/react';
3
+ import { ConfirmWallets, PropTypes } from './ConfirmWallets';
4
+ import { bestRoute, exampleFor5Wallets, wallets } from './mock';
5
+
6
+ export default {
7
+ title: 'Containers/ConfirmWallets',
8
+ component: ConfirmWallets,
9
+ argTypes: {
10
+ requiredWallets: {
11
+ defaultValue: ['BSC', 'OSMOSIS'],
12
+ },
13
+ },
14
+ } as ComponentMeta<typeof ConfirmWallets>;
15
+
16
+ export const Main = (props: PropTypes) => (
17
+ <ConfirmWallets {...props} swap={bestRoute} selectableWallets={wallets} />
18
+ );
19
+
20
+ export const With5Wallets = (props: PropTypes) => (
21
+ <ConfirmWallets
22
+ {...props}
23
+ swap={bestRoute}
24
+ selectableWallets={exampleFor5Wallets}
25
+ />
26
+ );
@@ -0,0 +1,98 @@
1
+ import { BestRouteResponse } from 'rango-sdk';
2
+ import React, { PropsWithChildren } from 'react';
3
+ import { Alert } from '../../components';
4
+ import { Button } from '../../components/Button';
5
+ import { SecondaryPage } from '../../components/SecondaryPage/SecondaryPage';
6
+ import { SelectableWalletList } from '../../components/SelectableWalletList';
7
+ import { Typography } from '../../components/Typography';
8
+ import { decimalNumber } from '../../helper';
9
+ import { styled } from '../../theme';
10
+ import { SelectableWallet } from './types';
11
+
12
+ const Footer = styled('div', {
13
+ display: 'flex',
14
+ alignItems: 'center',
15
+ });
16
+
17
+ const AlertContainer = styled('div', {
18
+ padding: '$16 0',
19
+ });
20
+
21
+ export interface PropTypes {
22
+ swap: BestRouteResponse;
23
+ onBack: () => void;
24
+ onConfirm?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
25
+ confirmDisabled?: boolean;
26
+ loading?: boolean;
27
+ requiredWallets: string[];
28
+ selectableWallets: SelectableWallet[];
29
+ onChange: (w: SelectableWallet) => void;
30
+ }
31
+ export function ConfirmWallets({
32
+ onBack,
33
+ loading,
34
+ onConfirm,
35
+ swap,
36
+ requiredWallets,
37
+ selectableWallets,
38
+ onChange,
39
+ confirmDisabled,
40
+ }: PropsWithChildren<PropTypes>) {
41
+ const firstStep = swap.result?.swaps[0];
42
+ const lastStep = swap.result?.swaps[swap.result?.swaps.length - 1];
43
+
44
+ const fromAmount = decimalNumber(firstStep?.fromAmount, 3);
45
+ const toAmount = decimalNumber(lastStep?.toAmount, 3);
46
+
47
+ return (
48
+ <SecondaryPage
49
+ textField={false}
50
+ title="Swap"
51
+ onBack={onBack}
52
+ Footer={
53
+ <Footer>
54
+ <Button
55
+ fullWidth
56
+ loading={loading}
57
+ type="primary"
58
+ variant="contained"
59
+ onClick={onConfirm}
60
+ disabled={confirmDisabled}
61
+ >
62
+ Confirm
63
+ </Button>
64
+ </Footer>
65
+ }
66
+ Content={
67
+ <>
68
+ <Typography variant="h6" mb={12}>
69
+ Confirm swap {fromAmount} {lastStep?.from.symbol} (
70
+ {firstStep?.from.blockchain}) to {toAmount} {lastStep?.to.symbol}{' '}
71
+ (on {lastStep?.to.blockchain})
72
+ </Typography>
73
+ {requiredWallets.map((wallet, index) => {
74
+ const list = selectableWallets.filter((w) => wallet === w.chain);
75
+ return (
76
+ <div key={index}>
77
+ <Typography variant="body2" mb={12} mt={12}>
78
+ {index + 1}) Your {wallet} Wallet
79
+ </Typography>
80
+ {list.length === 0 && (
81
+ <AlertContainer>
82
+ <Alert
83
+ type="error"
84
+ description={`You should connect a ${wallet} supported wallet`}
85
+ />
86
+ </AlertContainer>
87
+ )}
88
+ {list.length != 0 && (
89
+ <SelectableWalletList list={list} onChange={onChange} />
90
+ )}
91
+ </div>
92
+ );
93
+ })}
94
+ </>
95
+ }
96
+ />
97
+ );
98
+ }
@@ -0,0 +1 @@
1
+ export { ConfirmWallets } from './ConfirmWallets';
@@ -0,0 +1,222 @@
1
+ import { WalletType } from '@rango-dev/wallets-shared';
2
+ import { RoutingResultType } from 'rango-sdk';
3
+ import { BestRouteType } from '../../types/swaps';
4
+ import { SelectableWallet } from './types';
5
+
6
+ export const bestRoute: BestRouteType = {
7
+ from: { blockchain: 'BSC', symbol: 'BNB', address: null },
8
+ to: { blockchain: 'AVAX_CCHAIN', symbol: 'AVAX', address: null },
9
+ requestAmount: '0.3',
10
+ requestId: '228529e3-27d7-4fa9-ab84-bb2b90eade6f',
11
+ result: {
12
+ resultType: RoutingResultType.OK,
13
+ outputAmount: '5.685715974132648891',
14
+ swaps: [
15
+ {
16
+ swapperId: 'AnySwap Aggregator',
17
+ swapperType: 'AGGREGATOR',
18
+ swapperLogo: 'https://api.rango.exchange/swappers/multichain.png',
19
+
20
+ from: {
21
+ symbol: 'BNB',
22
+ logo: 'https://api.rango.exchange/i/Y3v1KW',
23
+ blockchainLogo: 'https://api.rango.exchange/blockchains/binance.svg',
24
+
25
+ address: null,
26
+ blockchain: 'BSC',
27
+ decimals: 18,
28
+ usdPrice: 279.2738558274085,
29
+ },
30
+ to: {
31
+ symbol: 'WETH.E',
32
+ logo: 'https://api.rango.exchange/i/j9xgdC',
33
+ blockchainLogo:
34
+ 'https://api.rango.exchange/blockchains/avax_cchain.svg',
35
+
36
+ address: '0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab',
37
+ blockchain: 'AVAX_CCHAIN',
38
+ decimals: 18,
39
+ usdPrice: 1329.24,
40
+ },
41
+ fromAmount: '0.300000000000000000',
42
+ fromAmountPrecision: null,
43
+ fromAmountMinValue: '0.047579322466294684272760',
44
+ fromAmountMaxValue: '79302.26195302606417382090',
45
+ fromAmountRestrictionType: 'INCLUSIVE',
46
+ toAmount: '0.062064305934309070',
47
+ fee: [
48
+ {
49
+ asset: { blockchain: 'BSC', symbol: 'BNB', address: null },
50
+ expenseType: 'FROM_SOURCE_WALLET',
51
+ amount: '0.001388002000000000',
52
+ name: 'Network Fee',
53
+ },
54
+ ],
55
+ estimatedTimeInSeconds: 300,
56
+ swapChainType: 'INTRA_CHAIN',
57
+ routes: null,
58
+ recommendedSlippage: null,
59
+ timeStat: { min: 162, avg: 260, max: 467 },
60
+ includesDestinationTx: false,
61
+ maxRequiredSign: 1,
62
+ warnings: [],
63
+ },
64
+ {
65
+ swapperId: 'PangolinSwap',
66
+ swapperLogo: 'https://api.rango.exchange/swappers/pangolin.png',
67
+ swapperType: 'DEX',
68
+ from: {
69
+ symbol: 'WETH.E',
70
+ logo: 'https://api.rango.exchange/i/j9xgdC',
71
+ address: '0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab',
72
+ blockchain: 'AVAX_CCHAIN',
73
+ decimals: 18,
74
+ usdPrice: 1329.24,
75
+ blockchainLogo:
76
+ 'https://api.rango.exchange/blockchains/avax_cchain.svg',
77
+ },
78
+ to: {
79
+ symbol: 'AVAX',
80
+ logo: 'https://api.rango.exchange/i/kX4edQ',
81
+ address: null,
82
+ blockchain: 'AVAX_CCHAIN',
83
+ decimals: 18,
84
+ usdPrice: 12.5,
85
+ blockchainLogo:
86
+ 'https://api.rango.exchange/blockchains/avax_cchain.svg',
87
+ },
88
+ fromAmount: '0.062064305934309070',
89
+ fromAmountPrecision: null,
90
+ fromAmountMinValue: null,
91
+ fromAmountMaxValue: null,
92
+ fromAmountRestrictionType: 'EXCLUSIVE',
93
+ toAmount: '5.685715974132648891',
94
+ fee: [
95
+ {
96
+ asset: {
97
+ blockchain: 'AVAX_CCHAIN',
98
+ symbol: 'WETH.E',
99
+ address: '0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab',
100
+ },
101
+ name: 'Network Fee',
102
+ expenseType: 'DECREASE_FROM_OUTPUT',
103
+ amount:
104
+ '0.00018619291780292721387591870688029381530892436558133340440690517425537109375',
105
+ },
106
+ {
107
+ asset: { blockchain: 'AVAX_CCHAIN', symbol: 'AVAX', address: null },
108
+ expenseType: 'FROM_SOURCE_WALLET',
109
+ amount: '0.005370022532678750',
110
+ name: 'Network Fee',
111
+ },
112
+ ],
113
+ estimatedTimeInSeconds: 45,
114
+ swapChainType: 'INTER_CHAIN',
115
+ routes: [
116
+ {
117
+ nodes: [
118
+ {
119
+ nodes: [
120
+ {
121
+ marketName: 'PangolinSwap',
122
+ marketId: 'PangolinSwap',
123
+ percent: 1.0,
124
+ },
125
+ ],
126
+ from: 'WETH.e',
127
+ fromLogo: '',
128
+ fromAddress: '0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab',
129
+ fromBlockchain: 'AVAX_CCHAIN',
130
+ to: 'WAVAX',
131
+ toLogo: '',
132
+ toAddress: '0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7',
133
+ toBlockchain: 'AVAX_CCHAIN',
134
+ },
135
+ ],
136
+ },
137
+ ],
138
+ recommendedSlippage: null,
139
+ timeStat: { min: 6, avg: 39, max: 317 },
140
+ includesDestinationTx: false,
141
+ maxRequiredSign: 1,
142
+ warnings: [],
143
+ },
144
+ ],
145
+ },
146
+ validationStatus: null,
147
+ missingBlockchains: [],
148
+ diagnosisMessages: [],
149
+ walletNotSupportingFromBlockchain: false,
150
+ processingLimitReached: false,
151
+ };
152
+
153
+ export const wallets: SelectableWallet[] = [
154
+ {
155
+ walletType: WalletType.META_MASK,
156
+ address: '0x5423e28219d6d568dcf62a8134d623e6f4a1c2df',
157
+ image: 'https://app.rango.exchange/wallets/metamask.svg',
158
+ chain: 'BSC',
159
+ selected: false,
160
+ },
161
+ {
162
+ walletType: WalletType.OKX,
163
+ address: '0x2702d89c1c8658b49c45dd460deebcc45faec03c',
164
+ image: 'https://app.rango.exchange/wallets/okx.png',
165
+ chain: 'BSC',
166
+ selected: false,
167
+ },
168
+
169
+ {
170
+ walletType: WalletType.KEPLR,
171
+ address: 'osmo1unf2rcytjxfpz8x8ar63h4qeftadptg5t0nqcl',
172
+ image: 'https://app.rango.exchange/wallets/keplr.png',
173
+ chain: 'OSMOSIS',
174
+ selected: false,
175
+ },
176
+ ];
177
+
178
+ export const exampleFor5Wallets: SelectableWallet[] = [
179
+ {
180
+ walletType: WalletType.META_MASK,
181
+ address: '0x5423e28219d6d568dcf62a8134d623e6f4a1c2df',
182
+ image: 'https://app.rango.exchange/wallets/metamask.svg',
183
+ selected: false,
184
+ chain: 'BSC',
185
+ },
186
+ {
187
+ walletType: WalletType.OKX,
188
+ address: '0x2702d89c1c8658b49c45dd460deebcc45faec03c',
189
+ image: 'https://app.rango.exchange/wallets/okx.png',
190
+ selected: false,
191
+ chain: 'BSC',
192
+ },
193
+ {
194
+ walletType: WalletType.EXODUS,
195
+ address: '0x2702d89c1c8658b49c45dd460deebcc45faec03c',
196
+ image: 'https://app.rango.exchange/wallets/exodus.png',
197
+ selected: false,
198
+ chain: 'BSC',
199
+ },
200
+ {
201
+ walletType: WalletType.MATH,
202
+ address: '0x2702d89c1c8658b49c45dd460deebcc45faec03c',
203
+ image: 'https://app.rango.exchange/wallets/math-wallet.png',
204
+ selected: false,
205
+ chain: 'BSC',
206
+ },
207
+ {
208
+ walletType: WalletType.CLOVER,
209
+ address: '0x2702d89c1c8658b49c45dd460deebcc45faec03c',
210
+ image: 'https://app.rango.exchange/wallets/clover.jpeg',
211
+ selected: false,
212
+ chain: 'BSC',
213
+ },
214
+
215
+ {
216
+ walletType: WalletType.KEPLR,
217
+ address: 'osmo1unf2rcytjxfpz8x8ar63h4qeftadptg5t0nqcl',
218
+ image: 'https://app.rango.exchange/wallets/keplr.png',
219
+ selected: false,
220
+ chain: 'OSMOSIS',
221
+ },
222
+ ];