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