@rainlanguage/ui-components 0.0.1-alpha.16 → 0.0.1-alpha.161

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 (236) hide show
  1. package/dist/__fixtures__/settings.yaml +125 -0
  2. package/dist/__mocks__/MockComponent.svelte +4 -0
  3. package/dist/__mocks__/MockComponent.svelte.d.ts +3 -1
  4. package/dist/__mocks__/stores.d.ts +79 -33
  5. package/dist/__mocks__/stores.js +43 -38
  6. package/dist/components/ButtonLoading.svelte +1 -1
  7. package/dist/components/ButtonVaultLink.svelte +11 -11
  8. package/dist/components/ButtonVaultLink.svelte.d.ts +4 -3
  9. package/dist/components/CheckboxMyItemsOnly.svelte +3 -2
  10. package/dist/components/CheckboxMyItemsOnly.svelte.d.ts +2 -3
  11. package/dist/components/CheckboxZeroBalanceVault.svelte.d.ts +2 -2
  12. package/dist/components/CodeMirrorDotrain.svelte +4 -0
  13. package/dist/components/CodeMirrorDotrain.svelte.d.ts +1 -0
  14. package/dist/components/CodeMirrorRainlang.svelte +3 -12
  15. package/dist/components/CodeMirrorRainlang.svelte.d.ts +2 -2
  16. package/dist/components/EditableSpan.svelte +3 -14
  17. package/dist/components/EditableSpan.svelte.d.ts +0 -1
  18. package/dist/components/Hash.svelte +3 -3
  19. package/dist/components/License.svelte +5 -4
  20. package/dist/components/ListViewOrderbookFilters.svelte +31 -23
  21. package/dist/components/ListViewOrderbookFilters.svelte.d.ts +24 -22
  22. package/dist/components/OrderOrVaultHash.svelte +12 -12
  23. package/dist/components/OrderOrVaultHash.svelte.d.ts +4 -4
  24. package/dist/components/PageHeader.svelte +1 -1
  25. package/dist/components/TanstackAppTable.svelte +10 -6
  26. package/dist/components/TanstackAppTable.svelte.d.ts +9 -8
  27. package/dist/components/ToastDetail.svelte +42 -0
  28. package/dist/components/ToastDetail.svelte.d.ts +20 -0
  29. package/dist/components/Tooltip.svelte +8 -0
  30. package/dist/components/Tooltip.svelte.d.ts +21 -0
  31. package/dist/components/VaultCard.svelte +18 -0
  32. package/dist/components/VaultCard.svelte.d.ts +19 -0
  33. package/dist/components/charts/LightweightChart.svelte +1 -1
  34. package/dist/components/charts/LightweightChart.svelte.d.ts +5 -5
  35. package/dist/components/charts/OrderTradesChart.svelte +7 -17
  36. package/dist/components/charts/OrderTradesChart.svelte.d.ts +2 -2
  37. package/dist/components/charts/TanstackLightweightChartLine.svelte +5 -9
  38. package/dist/components/charts/VaultBalanceChart.svelte +8 -26
  39. package/dist/components/charts/VaultBalanceChart.svelte.d.ts +1 -7
  40. package/dist/components/charts/transformAndSortData.d.ts +24 -0
  41. package/dist/components/charts/transformAndSortData.js +111 -0
  42. package/dist/components/checkbox/CheckboxActiveOrders.svelte +11 -0
  43. package/dist/components/checkbox/CheckboxActiveOrders.svelte.d.ts +19 -0
  44. package/dist/components/deployment/ButtonSelectOption.svelte +2 -0
  45. package/dist/components/deployment/ButtonSelectOption.svelte.d.ts +1 -0
  46. package/dist/components/deployment/ComposedRainlangModal.svelte +2 -1
  47. package/dist/components/deployment/ComposedRainlangModal.svelte.d.ts +1 -4
  48. package/dist/components/deployment/DeploymentSectionHeader.svelte +7 -4
  49. package/dist/components/deployment/DeploymentSteps.svelte +213 -203
  50. package/dist/components/deployment/DeploymentSteps.svelte.d.ts +6 -12
  51. package/dist/components/deployment/DeploymentTile.svelte +2 -2
  52. package/dist/components/deployment/DeploymentTile.svelte.d.ts +1 -1
  53. package/dist/components/deployment/DeploymentsSection.svelte +3 -3
  54. package/dist/components/deployment/DeploymentsSection.svelte.d.ts +1 -1
  55. package/dist/components/deployment/DepositInput.svelte +29 -15
  56. package/dist/components/deployment/DepositInput.svelte.d.ts +1 -2
  57. package/dist/components/deployment/DisclaimerModal.svelte +6 -7
  58. package/dist/components/deployment/FieldDefinitionInput.svelte +22 -14
  59. package/dist/components/deployment/FieldDefinitionInput.svelte.d.ts +1 -2
  60. package/dist/components/deployment/InvalidOrdersSection.svelte +17 -0
  61. package/dist/components/deployment/InvalidOrdersSection.svelte.d.ts +19 -0
  62. package/dist/components/deployment/{StrategyPage.svelte → OrderPage.svelte} +13 -13
  63. package/dist/components/deployment/OrderPage.svelte.d.ts +19 -0
  64. package/dist/components/deployment/SelectToken.svelte +125 -48
  65. package/dist/components/deployment/SelectToken.svelte.d.ts +4 -3
  66. package/dist/components/deployment/TokenBalance.svelte +19 -0
  67. package/dist/components/deployment/TokenBalance.svelte.d.ts +19 -0
  68. package/dist/components/deployment/TokenIOInput.svelte +31 -16
  69. package/dist/components/deployment/TokenIOInput.svelte.d.ts +3 -3
  70. package/dist/components/deployment/TokenSelectionModal.svelte +128 -0
  71. package/dist/components/deployment/TokenSelectionModal.svelte.d.ts +20 -0
  72. package/dist/components/deployment/{ValidStrategiesSection.svelte → ValidOrdersSection.svelte} +7 -7
  73. package/dist/components/deployment/ValidOrdersSection.svelte.d.ts +19 -0
  74. package/dist/components/deployment/VaultIdInformation.svelte +17 -0
  75. package/dist/components/deployment/VaultIdInformation.svelte.d.ts +21 -0
  76. package/dist/components/detail/OrderDetail.svelte +135 -81
  77. package/dist/components/detail/OrderDetail.svelte.d.ts +18 -14
  78. package/dist/components/detail/TanstackOrderQuote.svelte +26 -32
  79. package/dist/components/detail/TanstackOrderQuote.svelte.d.ts +14 -16
  80. package/dist/components/detail/VaultDetail.svelte +59 -76
  81. package/dist/components/detail/VaultDetail.svelte.d.ts +12 -18
  82. package/dist/components/dropdown/DropdownActiveNetworks.svelte +49 -0
  83. package/dist/components/dropdown/DropdownActiveNetworks.svelte.d.ts +19 -0
  84. package/dist/components/dropdown/DropdownCheckbox.svelte +2 -2
  85. package/dist/components/dropdown/DropdownOrderListAccounts.svelte +5 -2
  86. package/dist/components/dropdown/DropdownOrderListAccounts.svelte.d.ts +2 -3
  87. package/dist/components/dropdown/DropdownTokensFilter.svelte +149 -0
  88. package/dist/components/dropdown/DropdownTokensFilter.svelte.d.ts +28 -0
  89. package/dist/components/icon/Refresh.svelte +2 -1
  90. package/dist/components/icon/Refresh.svelte.d.ts +1 -0
  91. package/dist/components/input/InputOrderHash.svelte +1 -1
  92. package/dist/components/input/InputOrderHash.svelte.d.ts +3 -3
  93. package/dist/components/input/InputRegistryUrl.svelte +36 -14
  94. package/dist/components/input/InputToken.svelte +2 -2
  95. package/dist/components/input/InputTokenAmount.svelte +16 -21
  96. package/dist/components/input/InputTokenAmount.svelte.d.ts +3 -3
  97. package/dist/components/tables/OrderAPY.svelte +6 -33
  98. package/dist/components/tables/OrderAPY.svelte.d.ts +1 -4
  99. package/dist/components/tables/OrderTradesListTable.svelte +30 -59
  100. package/dist/components/tables/OrderTradesListTable.svelte.d.ts +4 -4
  101. package/dist/components/tables/OrderVaultsVolTable.svelte +36 -30
  102. package/dist/components/tables/OrderVaultsVolTable.svelte.d.ts +1 -4
  103. package/dist/components/tables/OrdersListTable.svelte +96 -68
  104. package/dist/components/tables/OrdersListTable.svelte.d.ts +14 -21
  105. package/dist/components/tables/VaultBalanceChangesTable.svelte +15 -23
  106. package/dist/components/tables/VaultBalanceChangesTable.svelte.d.ts +13 -11
  107. package/dist/components/tables/VaultsListTable.svelte +211 -132
  108. package/dist/components/tables/VaultsListTable.svelte.d.ts +22 -32
  109. package/dist/components/transactions/FixedBottomTransaction.svelte +63 -0
  110. package/dist/components/transactions/FixedBottomTransaction.svelte.d.ts +16 -0
  111. package/dist/components/transactions/TransactionDetail.svelte +31 -0
  112. package/dist/components/transactions/TransactionDetail.svelte.d.ts +20 -0
  113. package/dist/components/transactions/TransactionList.svelte +17 -0
  114. package/dist/components/transactions/TransactionList.svelte.d.ts +16 -0
  115. package/dist/components/transactions/getStatusEmoji.d.ts +2 -0
  116. package/dist/components/transactions/getStatusEmoji.js +20 -0
  117. package/dist/components/wallet/WalletConnect.svelte +5 -4
  118. package/dist/components/wallet/WalletConnect.svelte.d.ts +0 -1
  119. package/dist/consts.d.ts +1 -0
  120. package/dist/consts.js +1 -0
  121. package/dist/errors/DeploymentStepsError.d.ts +7 -2
  122. package/dist/errors/DeploymentStepsError.js +6 -1
  123. package/dist/hooks/useGui.d.ts +1 -1
  124. package/dist/hooks/useGui.js +1 -1
  125. package/dist/hooks/useRaindexClient.d.ts +3 -0
  126. package/dist/hooks/useRaindexClient.js +11 -0
  127. package/dist/index.d.ts +31 -19
  128. package/dist/index.js +31 -16
  129. package/dist/models/Transaction.d.ts +79 -0
  130. package/dist/models/Transaction.js +132 -0
  131. package/dist/providers/GuiProvider.svelte +1 -1
  132. package/dist/providers/GuiProvider.svelte.d.ts +1 -1
  133. package/dist/providers/RaindexClientProvider.svelte +8 -0
  134. package/dist/providers/RaindexClientProvider.svelte.d.ts +21 -0
  135. package/dist/providers/registry/RegistryManager.d.ts +65 -0
  136. package/dist/providers/registry/RegistryManager.js +133 -0
  137. package/dist/providers/registry/RegistryProvider.svelte +6 -0
  138. package/dist/providers/registry/RegistryProvider.svelte.d.ts +21 -0
  139. package/dist/providers/registry/context.d.ts +10 -0
  140. package/dist/providers/registry/context.js +46 -0
  141. package/dist/providers/registry/useRegistry.d.ts +7 -0
  142. package/dist/providers/registry/useRegistry.js +29 -0
  143. package/dist/providers/toasts/ToastProvider.svelte +17 -0
  144. package/dist/providers/toasts/ToastProvider.svelte.d.ts +18 -0
  145. package/dist/providers/toasts/context.d.ts +14 -0
  146. package/dist/providers/toasts/context.js +22 -0
  147. package/dist/providers/toasts/useToasts.d.ts +16 -0
  148. package/dist/providers/toasts/useToasts.js +63 -0
  149. package/dist/providers/transactions/TransactionManager.d.ts +190 -0
  150. package/dist/providers/transactions/TransactionManager.js +388 -0
  151. package/dist/providers/transactions/TransactionProvider.svelte +11 -0
  152. package/dist/providers/transactions/TransactionProvider.svelte.d.ts +24 -0
  153. package/dist/providers/transactions/context.d.ts +19 -0
  154. package/dist/providers/transactions/context.js +28 -0
  155. package/dist/providers/transactions/useTransactions.d.ts +13 -0
  156. package/dist/providers/transactions/useTransactions.js +18 -0
  157. package/dist/providers/wallet/WalletProvider.svelte +7 -0
  158. package/dist/providers/wallet/WalletProvider.svelte.d.ts +21 -0
  159. package/dist/providers/wallet/context.d.ts +10 -0
  160. package/dist/providers/wallet/context.js +47 -0
  161. package/dist/providers/wallet/useAccount.d.ts +8 -0
  162. package/dist/providers/wallet/useAccount.js +148 -0
  163. package/dist/queries/keys.d.ts +1 -0
  164. package/dist/queries/keys.js +1 -0
  165. package/dist/queries/queryClient.d.ts +1 -1
  166. package/dist/queries/queryClient.js +11 -6
  167. package/dist/services/awaitTransactionIndexing.d.ts +107 -0
  168. package/dist/services/awaitTransactionIndexing.js +58 -0
  169. package/dist/services/handleShareChoices.d.ts +2 -2
  170. package/dist/services/handleShareChoices.js +7 -2
  171. package/dist/services/historicalOrderCharts.d.ts +2 -2
  172. package/dist/services/historicalOrderCharts.js +267 -333
  173. package/dist/services/index.d.ts +2 -1
  174. package/dist/services/index.js +2 -1
  175. package/dist/services/loadRegistryUrl.d.ts +2 -0
  176. package/dist/services/loadRegistryUrl.js +19 -0
  177. package/dist/services/registry.d.ts +6 -0
  178. package/dist/services/registry.js +33 -77
  179. package/dist/services/time.d.ts +12 -0
  180. package/dist/services/time.js +88 -6
  181. package/dist/storesGeneric/cachedWritableStore.d.ts +57 -0
  182. package/dist/storesGeneric/cachedWritableStore.js +93 -0
  183. package/dist/types/account.d.ts +3 -0
  184. package/dist/types/appStores.d.ts +7 -14
  185. package/dist/types/modal.d.ts +26 -14
  186. package/dist/types/{strategy.d.ts → order.d.ts} +3 -3
  187. package/dist/types/order.js +1 -0
  188. package/dist/types/toast.d.ts +11 -0
  189. package/dist/types/toast.js +1 -0
  190. package/dist/types/tokenBalance.d.ts +6 -0
  191. package/dist/types/tokenBalance.js +1 -0
  192. package/dist/types/transaction.d.ts +44 -22
  193. package/dist/types/transaction.js +30 -1
  194. package/dist/utils/configHelpers.d.ts +4 -0
  195. package/dist/utils/configHelpers.js +21 -0
  196. package/dist/utils/constructHashLink.d.ts +24 -0
  197. package/dist/utils/constructHashLink.js +115 -0
  198. package/dist/utils/getNetworkName.d.ts +1 -0
  199. package/dist/utils/getNetworkName.js +13 -0
  200. package/dist/utils/number.d.ts +0 -7
  201. package/dist/utils/number.js +0 -27
  202. package/dist/utils/tokens.d.ts +2 -0
  203. package/dist/utils/tokens.js +3 -0
  204. package/package.json +34 -34
  205. package/dist/__fixtures__/orderDetail.d.ts +0 -99
  206. package/dist/__fixtures__/orderDetail.js +0 -204
  207. package/dist/__fixtures__/settings-12-11-24.json +0 -160
  208. package/dist/__mocks__/mockTransactionStore.d.ts +0 -22
  209. package/dist/__mocks__/mockTransactionStore.js +0 -56
  210. package/dist/__mocks__/settings.d.ts +0 -3
  211. package/dist/__mocks__/settings.js +0 -37
  212. package/dist/components/deployment/DepositsSection.svelte +0 -8
  213. package/dist/components/deployment/DepositsSection.svelte.d.ts +0 -20
  214. package/dist/components/deployment/FieldDefinitionsSection.svelte +0 -9
  215. package/dist/components/deployment/FieldDefinitionsSection.svelte.d.ts +0 -20
  216. package/dist/components/deployment/InvalidStrategiesSection.svelte +0 -19
  217. package/dist/components/deployment/InvalidStrategiesSection.svelte.d.ts +0 -19
  218. package/dist/components/deployment/StrategyPage.svelte.d.ts +0 -19
  219. package/dist/components/deployment/TokenIOSection.svelte +0 -17
  220. package/dist/components/deployment/TokenIOSection.svelte.d.ts +0 -21
  221. package/dist/components/deployment/ValidStrategiesSection.svelte.d.ts +0 -19
  222. package/dist/components/deployment/getDeploymentTransactionArgs.d.ts +0 -17
  223. package/dist/components/deployment/getDeploymentTransactionArgs.js +0 -24
  224. package/dist/components/detail/DepositOrWithdrawButtons.svelte +0 -44
  225. package/dist/components/detail/DepositOrWithdrawButtons.svelte.d.ts +0 -26
  226. package/dist/components/dropdown/DropdownActiveSubgraphs.svelte +0 -38
  227. package/dist/components/dropdown/DropdownActiveSubgraphs.svelte.d.ts +0 -21
  228. package/dist/components/dropdown/DropdownOrderStatus.svelte +0 -31
  229. package/dist/components/dropdown/DropdownOrderStatus.svelte.d.ts +0 -19
  230. package/dist/stores/transactionStore.d.ts +0 -98
  231. package/dist/stores/transactionStore.js +0 -303
  232. package/dist/utils/time.d.ts +0 -12
  233. package/dist/utils/time.js +0 -27
  234. package/dist/utils/vault.d.ts +0 -2
  235. package/dist/utils/vault.js +0 -29
  236. /package/dist/types/{strategy.js → account.js} +0 -0
@@ -0,0 +1,125 @@
1
+ version: 2
2
+ networks:
3
+ flare:
4
+ rpc: https://rpc.ankr.com/flare
5
+ chain-id: 14
6
+ currency: FLR
7
+ base:
8
+ rpc: https://mainnet.base.org
9
+ chain-id: 8453
10
+ currency: ETH
11
+ sepolia:
12
+ rpc: https://1rpc.io/sepolia
13
+ chain-id: 11155111
14
+ currency: ETH
15
+ polygon:
16
+ rpc: https://rpc.ankr.com/polygon
17
+ chain-id: 137
18
+ currency: POL
19
+ arbitrum:
20
+ rpc: https://rpc.ankr.com/arbitrum
21
+ chain-id: 42161
22
+ currency: ETH
23
+ matchain:
24
+ rpc: https://rpc.ankr.com/polygon
25
+ chain-id: 137
26
+ currency: POL
27
+ bsc:
28
+ rpc: https://rpc.ankr.com/bsc
29
+ chain-id: 56
30
+ currency: BNB
31
+ linea:
32
+ rpc: https://rpc.linea.build
33
+ chain-id: 59144
34
+ currency: ETH
35
+ ethereum:
36
+ rpc: https://rpc.ankr.com/eth
37
+ chain-id: 1
38
+ currency: ETH
39
+ subgraphs:
40
+ flare: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/ob4-flare/0.8/gn
41
+ base: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/ob4-base/0.9/gn
42
+ sepolia: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/ob4-sepolia/0.1/gn
43
+ polygon: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/ob4-polygon/0.1/gn
44
+ arbitrum: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/ob4-arbitrum/0.2/gn
45
+ matchain: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/ob4-polygon/0.1/gn
46
+ bsc: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/ob4-bsc/2024-10-14-63f4/gn
47
+ linea: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/ob4-linea/2024-10-14-12fc/gn
48
+ ethereum: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/metadata-mainnet/2024-10-25-2857/gn
49
+ metaboards:
50
+ flare: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/mb-flare-0x893BBFB7/0.1/gn
51
+ base: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/mb-base-0x59401C93/0.1/gn
52
+ sepolia: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/mb-sepolia-0x77991674/0.1/gn
53
+ polygon: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/mb-polygon/0.1/gn
54
+ arbitrum: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/mb-arbitrum/0.1/gn
55
+ matchain: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/mb-polygon/0.1/gn
56
+ bsc: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/mb-bsc/0.1/gn
57
+ linea: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/mb-linea-0xed7d6156/1.0.0/gn
58
+ ethereum: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/metadata-mainnet/2024-10-25-2857/gn
59
+ orderbooks:
60
+ flare:
61
+ address: 0xCEe8Cd002F151A536394E564b84076c41bBBcD4d
62
+ network: flare
63
+ subgraph: flare
64
+ base:
65
+ address: 0xd2938e7c9fe3597f78832ce780feb61945c377d7
66
+ network: base
67
+ subgraph: base
68
+ sepolia:
69
+ address: 0x0bB72B4C7c0d47b2CaED07c804D9243C1B8a0728
70
+ network: sepolia
71
+ subgraph: sepolia
72
+ polygon:
73
+ address: 0x7D2f700b1f6FD75734824EA4578960747bdF269A
74
+ network: polygon
75
+ subgraph: polygon
76
+ arbitrum:
77
+ address: 0x550878091b2B1506069F61ae59e3A5484Bca9166
78
+ network: arbitrum
79
+ subgraph: arbitrum
80
+ matchain:
81
+ address: 0x40312edab8fe65091354172ad79e9459f21094e2
82
+ network: matchain
83
+ subgraph: matchain
84
+ bsc:
85
+ address: 0xd2938E7c9fe3597F78832CE780Feb61945c377d7
86
+ network: bsc
87
+ subgraph: bsc
88
+ linea:
89
+ address: 0x22410e2a46261a1B1e3899a072f303022801C764
90
+ network: linea
91
+ subgraph: linea
92
+ ethereum:
93
+ address: 0x0eA6d458488d1cf51695e1D6e4744e6FB715d37C
94
+ network: ethereum
95
+ subgraph: ethereum
96
+ deployers:
97
+ flare:
98
+ address: 0xE3989Ea7486c0F418C764e6c511e86f6E8830FAb
99
+ network: flare
100
+ base:
101
+ address: 0xC1A14cE2fd58A3A2f99deCb8eDd866204eE07f8D
102
+ network: base
103
+ sepolia:
104
+ address: 0x7692BA8446Bb8B3140A2c02df073080BeD0a7F8E
105
+ network: sepolia
106
+ polygon:
107
+ address: 0xE7116BC05C8afe25e5B54b813A74F916B5D42aB1
108
+ network: polygon
109
+ arbitrum:
110
+ address: 0x9B0D254bd858208074De3d2DaF5af11b3D2F377F
111
+ network: arbitrum
112
+ matchain:
113
+ address: 0x582d9e838FE6cD9F8147C66A8f56A3FBE513a6A2
114
+ network: matchain
115
+ bsc:
116
+ address: 0xA2f56F8F74B7d04d61f281BE6576b6155581dcBA
117
+ network: bsc
118
+ linea:
119
+ address: 0xA2f56F8F74B7d04d61f281BE6576b6155581dcBA
120
+ network: linea
121
+ ethereum:
122
+ address: 0xd19581a021f4704ad4eBfF68258e7A0a9DB1CD77
123
+ accounts:
124
+ wallet1: 0xf08bCbce72f62c95Dcb7c07dCb5Ed26ACfCfBc11
125
+ wallet2: 0x6bc14a99ccf7f9037c98d75eec6c6d807f9d953f
@@ -1,3 +1,7 @@
1
1
  <script>import { props } from "./MockComponent";
2
2
  $: $props = $$props;
3
3
  </script>
4
+
5
+ <div data-testid="mock-component" {...$$props}>
6
+ <slot />
7
+ </div>
@@ -6,7 +6,9 @@ declare const __propDef: {
6
6
  events: {
7
7
  [evt: string]: CustomEvent<any>;
8
8
  };
9
- slots: {};
9
+ slots: {
10
+ default: {};
11
+ };
10
12
  exports?: undefined;
11
13
  bindings?: undefined;
12
14
  };
@@ -1,33 +1,30 @@
1
- import type { ConfigSource } from '@rainlanguage/orderbook/js_api';
2
1
  import { type Config } from '@wagmi/core';
3
- import type { Page } from '@sveltejs/kit';
4
- export declare const mockWalletAddressMatchesOrBlankStore: {
5
- subscribe: (this: void, run: import("svelte/store").Subscriber<() => boolean>, invalidate?: import("svelte/store").Invalidator<() => boolean> | undefined) => import("svelte/store").Unsubscriber;
6
- set: (this: void, value: () => boolean) => void;
7
- mockSetSubscribeValue: (value: () => boolean) => void;
8
- };
9
- export declare const mockSettingsStore: {
10
- subscribe: (this: void, run: import("svelte/store").Subscriber<ConfigSource | undefined>, invalidate?: import("svelte/store").Invalidator<ConfigSource | undefined> | undefined) => import("svelte/store").Unsubscriber;
11
- set: (this: void, value: ConfigSource | undefined) => void;
12
- mockSetSubscribeValue: (value: ConfigSource | undefined) => void;
13
- };
14
- export declare const mockActiveSubgraphsStore: {
15
- subscribe: (this: void, run: import("svelte/store").Subscriber<Record<string, string>>, invalidate?: import("svelte/store").Invalidator<Record<string, string>> | undefined) => import("svelte/store").Unsubscriber;
16
- set: (this: void, value: Record<string, string>) => void;
17
- mockSetSubscribeValue: (value: Record<string, string>) => void;
18
- };
19
- export declare const mockAccountsStore: {
20
- subscribe: (this: void, run: import("svelte/store").Subscriber<Record<string, string>>, invalidate?: import("svelte/store").Invalidator<Record<string, string>> | undefined) => import("svelte/store").Unsubscriber;
2
+ declare const initialPageState: {
3
+ data: {
4
+ dotrain: string;
5
+ deployment: {
6
+ key: string;
7
+ };
8
+ orderDetail: {};
9
+ };
10
+ url: URL;
11
+ params: {};
12
+ form: {};
13
+ status: number;
14
+ error: null;
15
+ route: {
16
+ id: null;
17
+ };
21
18
  };
22
19
  export declare const mockActiveAccountsItemsStore: {
23
20
  subscribe: (this: void, run: import("svelte/store").Subscriber<Record<string, string>>, invalidate?: import("svelte/store").Invalidator<Record<string, string>> | undefined) => import("svelte/store").Unsubscriber;
24
21
  set: (this: void, value: Record<string, string>) => void;
25
22
  mockSetSubscribeValue: (value: Record<string, string>) => void;
26
23
  };
27
- export declare const mockActiveOrderStatusStore: {
28
- subscribe: (this: void, run: import("svelte/store").Subscriber<boolean | undefined>, invalidate?: import("svelte/store").Invalidator<boolean | undefined> | undefined) => import("svelte/store").Unsubscriber;
29
- set: (this: void, value: boolean | undefined) => void;
30
- mockSetSubscribeValue: (value: boolean | undefined) => void;
24
+ export declare const mockShowInactiveOrdersStore: {
25
+ subscribe: (this: void, run: import("svelte/store").Subscriber<boolean>, invalidate?: import("svelte/store").Invalidator<boolean> | undefined) => import("svelte/store").Unsubscriber;
26
+ set: (this: void, value: boolean) => void;
27
+ mockSetSubscribeValue: (value: boolean) => void;
31
28
  };
32
29
  export declare const mockOrderHashStore: {
33
30
  subscribe: (this: void, run: import("svelte/store").Subscriber<string>, invalidate?: import("svelte/store").Invalidator<string> | undefined) => import("svelte/store").Unsubscriber;
@@ -59,12 +56,6 @@ export declare const mockSubgraphUrlStore: {
59
56
  set: (this: void, value: string) => void;
60
57
  mockSetSubscribeValue: (value: string) => void;
61
58
  };
62
- export declare const mockSignerAddressStore: {
63
- subscribe: (this: void, run: import("svelte/store").Subscriber<string>, invalidate?: import("svelte/store").Invalidator<string> | undefined) => import("svelte/store").Unsubscriber;
64
- set: (this: void, value: string) => void;
65
- mockSetSubscribeValue: (value: string) => void;
66
- update: (this: void, updater: import("svelte/store").Updater<string>) => void;
67
- };
68
59
  export declare const mockChainIdStore: {
69
60
  subscribe: (this: void, run: import("svelte/store").Subscriber<number>, invalidate?: import("svelte/store").Invalidator<number> | undefined) => import("svelte/store").Unsubscriber;
70
61
  set: (this: void, value: number) => void;
@@ -87,8 +78,63 @@ export declare const mockShowMyItemsOnlyStore: {
87
78
  set: (this: void, value: boolean) => void;
88
79
  mockSetSubscribeValue: (value: boolean) => void;
89
80
  };
90
- export declare const mockPageStore: {
91
- subscribe: (this: void, run: import("svelte/store").Subscriber<Page<Record<string, string>, string | null>>, invalidate?: import("svelte/store").Invalidator<Page<Record<string, string>, string | null>> | undefined) => import("svelte/store").Unsubscriber;
92
- set: (this: void, value: Page<Record<string, string>, string | null>) => void;
93
- mockSetSubscribeValue: (value: Page) => void;
81
+ export declare const mockSelectedChainIdsStore: {
82
+ subscribe: (this: void, run: import("svelte/store").Subscriber<number[]>, invalidate?: import("svelte/store").Invalidator<number[]> | undefined) => import("svelte/store").Unsubscriber;
83
+ set: (this: void, value: number[]) => void;
84
+ mockSetSubscribeValue: (value: number[]) => void;
94
85
  };
86
+ export declare const mockPageStore: {
87
+ subscribe: (this: void, run: import("svelte/store").Subscriber<{
88
+ data: {
89
+ dotrain: string;
90
+ deployment: {
91
+ key: string;
92
+ };
93
+ orderDetail: {};
94
+ };
95
+ url: URL;
96
+ params: {};
97
+ form: {};
98
+ status: number;
99
+ error: null;
100
+ route: {
101
+ id: null;
102
+ };
103
+ }>, invalidate?: import("svelte/store").Invalidator<{
104
+ data: {
105
+ dotrain: string;
106
+ deployment: {
107
+ key: string;
108
+ };
109
+ orderDetail: {};
110
+ };
111
+ url: URL;
112
+ params: {};
113
+ form: {};
114
+ status: number;
115
+ error: null;
116
+ route: {
117
+ id: null;
118
+ };
119
+ }> | undefined) => import("svelte/store").Unsubscriber;
120
+ set: (this: void, value: {
121
+ data: {
122
+ dotrain: string;
123
+ deployment: {
124
+ key: string;
125
+ };
126
+ orderDetail: {};
127
+ };
128
+ url: URL;
129
+ params: {};
130
+ form: {};
131
+ status: number;
132
+ error: null;
133
+ route: {
134
+ id: null;
135
+ };
136
+ }) => void;
137
+ mockSetSubscribeValue: (newValue: Partial<typeof initialPageState>) => void;
138
+ reset: () => void;
139
+ };
140
+ export {};
@@ -1,52 +1,52 @@
1
1
  import { writable } from 'svelte/store';
2
- import settingsFixture from '../__fixtures__/settings-12-11-24.json';
3
2
  import {} from '@wagmi/core';
4
3
  import { mockWeb3Config } from './mockWeb3Config';
5
- const mockSettingsWritable = writable(settingsFixture);
6
- const mockActiveSubgraphsWritable = writable({});
7
- const mockAccountsWritable = writable({});
4
+ if (import.meta.vitest) {
5
+ vi.mock(import('@rainlanguage/orderbook'), async (importOriginal) => {
6
+ const actual = await importOriginal();
7
+ return {
8
+ ...actual
9
+ };
10
+ });
11
+ }
12
+ const initialPageState = {
13
+ data: {
14
+ dotrain: 'some dotrain content',
15
+ deployment: { key: 'deploy-key' },
16
+ orderDetail: {}
17
+ },
18
+ url: new URL('http://localhost:3000/deploy'),
19
+ params: {},
20
+ form: {},
21
+ status: 200,
22
+ error: null,
23
+ route: {
24
+ id: null
25
+ }
26
+ };
27
+ const mockPageWritable = writable(initialPageState);
8
28
  const mockActiveAccountsItemsWritable = writable({});
9
- const mockActiveOrderStatusWritable = writable(undefined);
29
+ const mockShowInactiveOrdersWritable = writable(true);
10
30
  const mockOrderHashWritable = writable('');
11
31
  const mockHideZeroBalanceVaultsWritable = writable(false);
12
32
  const mockActiveNetworkRefWritable = writable('');
13
33
  const mockActiveOrderbookRefWritable = writable('');
14
34
  const mockActiveAccountsWritable = writable({});
15
35
  const mockSubgraphUrlWritable = writable('');
16
- const mockWalletAddressMatchesOrBlankWritable = writable(() => false);
17
- const mockSignerAddressWritable = writable('');
18
36
  const mockChainIdWritable = writable(0);
19
- const mockConnectedWritable = writable(false);
37
+ const mockConnectedWritable = writable(true);
20
38
  const mockWagmiConfigWritable = writable(mockWeb3Config);
21
39
  const mockShowMyItemsOnlyWritable = writable(false);
22
- const mockPageWritable = writable();
23
- export const mockWalletAddressMatchesOrBlankStore = {
24
- subscribe: mockWalletAddressMatchesOrBlankWritable.subscribe,
25
- set: mockWalletAddressMatchesOrBlankWritable.set,
26
- mockSetSubscribeValue: (value) => mockWalletAddressMatchesOrBlankWritable.set(value)
27
- };
28
- export const mockSettingsStore = {
29
- subscribe: mockSettingsWritable.subscribe,
30
- set: mockSettingsWritable.set,
31
- mockSetSubscribeValue: (value) => mockSettingsWritable.set(value)
32
- };
33
- export const mockActiveSubgraphsStore = {
34
- subscribe: mockActiveSubgraphsWritable.subscribe,
35
- set: mockActiveSubgraphsWritable.set,
36
- mockSetSubscribeValue: (value) => mockActiveSubgraphsWritable.set(value)
37
- };
38
- export const mockAccountsStore = {
39
- subscribe: mockAccountsWritable.subscribe
40
- };
40
+ const mockSelectedChainIdsWritable = writable([]);
41
41
  export const mockActiveAccountsItemsStore = {
42
42
  subscribe: mockActiveAccountsItemsWritable.subscribe,
43
43
  set: mockActiveAccountsItemsWritable.set,
44
44
  mockSetSubscribeValue: (value) => mockActiveAccountsItemsWritable.set(value)
45
45
  };
46
- export const mockActiveOrderStatusStore = {
47
- subscribe: mockActiveOrderStatusWritable.subscribe,
48
- set: mockActiveOrderStatusWritable.set,
49
- mockSetSubscribeValue: (value) => mockActiveOrderStatusWritable.set(value)
46
+ export const mockShowInactiveOrdersStore = {
47
+ subscribe: mockShowInactiveOrdersWritable.subscribe,
48
+ set: mockShowInactiveOrdersWritable.set,
49
+ mockSetSubscribeValue: (value) => mockShowInactiveOrdersWritable.set(value)
50
50
  };
51
51
  export const mockOrderHashStore = {
52
52
  subscribe: mockOrderHashWritable.subscribe,
@@ -78,12 +78,6 @@ export const mockSubgraphUrlStore = {
78
78
  set: mockSubgraphUrlWritable.set,
79
79
  mockSetSubscribeValue: (value) => mockSubgraphUrlWritable.set(value)
80
80
  };
81
- export const mockSignerAddressStore = {
82
- subscribe: mockSignerAddressWritable.subscribe,
83
- set: mockSignerAddressWritable.set,
84
- mockSetSubscribeValue: (value) => mockSignerAddressWritable.set(value),
85
- update: mockSignerAddressWritable.update
86
- };
87
81
  export const mockChainIdStore = {
88
82
  subscribe: mockChainIdWritable.subscribe,
89
83
  set: mockChainIdWritable.set,
@@ -106,8 +100,19 @@ export const mockShowMyItemsOnlyStore = {
106
100
  set: mockShowMyItemsOnlyWritable.set,
107
101
  mockSetSubscribeValue: (value) => mockShowMyItemsOnlyWritable.set(value)
108
102
  };
103
+ export const mockSelectedChainIdsStore = {
104
+ subscribe: mockSelectedChainIdsWritable.subscribe,
105
+ set: mockSelectedChainIdsWritable.set,
106
+ mockSetSubscribeValue: (value) => mockSelectedChainIdsWritable.set(value)
107
+ };
109
108
  export const mockPageStore = {
110
109
  subscribe: mockPageWritable.subscribe,
111
110
  set: mockPageWritable.set,
112
- mockSetSubscribeValue: (value) => mockPageWritable.set(value)
111
+ mockSetSubscribeValue: (newValue) => {
112
+ mockPageWritable.update((currentValue) => ({
113
+ ...currentValue,
114
+ ...newValue
115
+ }));
116
+ },
117
+ reset: () => mockPageWritable.set(initialPageState)
113
118
  };
@@ -5,7 +5,7 @@ export let disabled = false;
5
5
 
6
6
  <Button disabled={loading || disabled} {...$$props} on:click>
7
7
  {#if loading}
8
- <Spinner class="mr-2 h-4 w-4" color="white" />
8
+ <Spinner data-testid="spinner" class="mr-2 h-4 w-4" color="white" />
9
9
  {/if}
10
10
  <slot />
11
11
  </Button>
@@ -1,8 +1,8 @@
1
- <script>import { bigintStringToHex } from "../utils/hex";
2
- import { Tooltip } from "flowbite-svelte";
3
- import { formatUnits } from "viem";
1
+ <script>import { toHex } from "viem";
2
+ import Tooltip from "./Tooltip.svelte";
4
3
  export let tokenVault;
5
- export let subgraphName;
4
+ export let chainId;
5
+ export let orderbookAddress;
6
6
  </script>
7
7
 
8
8
  <div
@@ -10,17 +10,17 @@ export let subgraphName;
10
10
  data-testid="vault-link"
11
11
  >
12
12
  <div class="flex flex-col items-start gap-y-2">
13
- <Tooltip triggeredBy="#token-info" class="z-[99] w-96">
14
- ID: <span class="font-mono">{bigintStringToHex(tokenVault.vaultId)}</span>
13
+ <Tooltip triggeredBy={`#token-info-${tokenVault.vaultId}`}>
14
+ ID: <span class="font-mono">{toHex(tokenVault.vaultId)}</span>
15
15
  </Tooltip>
16
- <a href={`/vaults/${subgraphName}-${tokenVault.id}`} id="token-info">
16
+ <a
17
+ href={`/vaults/${chainId}-${orderbookAddress}-${tokenVault.id}`}
18
+ id={`token-info-${tokenVault.vaultId}`}
19
+ >
17
20
  {tokenVault.token.name} ({tokenVault.token.symbol})
18
21
  </a>
19
22
  <span class="text-sm text-gray-500 dark:text-gray-400">
20
- Balance: {formatUnits(
21
- BigInt(tokenVault.balance),
22
- parseInt(tokenVault.token.decimals || '18')
23
- )}
23
+ Balance: {tokenVault.formattedBalance}
24
24
  </span>
25
25
  </div>
26
26
  <div>
@@ -1,9 +1,10 @@
1
1
  import { SvelteComponent } from "svelte";
2
- import type { SgVault } from '@rainlanguage/orderbook/js_api';
2
+ import type { Address, RaindexVault } from '@rainlanguage/orderbook';
3
3
  declare const __propDef: {
4
4
  props: {
5
- tokenVault: SgVault;
6
- subgraphName: string;
5
+ tokenVault: RaindexVault;
6
+ chainId: number;
7
+ orderbookAddress: Address;
7
8
  };
8
9
  events: {
9
10
  [evt: string]: CustomEvent<any>;
@@ -1,7 +1,8 @@
1
1
  <script>import { Checkbox, Label } from "flowbite-svelte";
2
+ import { useAccount } from "../providers/wallet/useAccount";
2
3
  export let showMyItemsOnly;
3
4
  export let context;
4
- export let signerAddress;
5
+ const { account } = useAccount();
5
6
  function handleShowMyItemsChange() {
6
7
  $showMyItemsOnly = !$showMyItemsOnly;
7
8
  }
@@ -18,6 +19,6 @@ function handleShowMyItemsChange() {
18
19
  id="show-my-items"
19
20
  checked={$showMyItemsOnly}
20
21
  on:change={handleShowMyItemsChange}
21
- disabled={!$signerAddress}
22
+ disabled={!$account}
22
23
  />
23
24
  </div>
@@ -1,10 +1,9 @@
1
1
  import { SvelteComponent } from "svelte";
2
- import type { Writable } from 'svelte/store';
2
+ import type { AppStoresInterface } from '../types/appStores';
3
3
  declare const __propDef: {
4
4
  props: {
5
- showMyItemsOnly: Writable<boolean>;
5
+ showMyItemsOnly: AppStoresInterface["showMyItemsOnly"];
6
6
  context: "orders" | "vaults";
7
- signerAddress: Writable<string | null> | undefined;
8
7
  };
9
8
  events: {
10
9
  [evt: string]: CustomEvent<any>;
@@ -1,8 +1,8 @@
1
1
  import { SvelteComponent } from "svelte";
2
- import type { Writable } from 'svelte/store';
2
+ import type { AppStoresInterface } from '../types/appStores';
3
3
  declare const __propDef: {
4
4
  props: {
5
- hideZeroBalanceVaults: Writable<boolean>;
5
+ hideZeroBalanceVaults: AppStoresInterface["hideZeroBalanceVaults"];
6
6
  };
7
7
  events: {
8
8
  [evt: string]: CustomEvent<any>;
@@ -6,6 +6,7 @@ export let disabled = false;
6
6
  export let styles = {};
7
7
  export let rainlangExtension;
8
8
  export let codeMirrorTheme;
9
+ export let onTextChange;
9
10
  </script>
10
11
 
11
12
  <div data-testid="codemirror-dotrain">
@@ -22,6 +23,9 @@ export let codeMirrorTheme;
22
23
  },
23
24
  ...styles
24
25
  }}
26
+ on:change={(e) => {
27
+ onTextChange(e.detail);
28
+ }}
25
29
  on:ready={(e) => {
26
30
  openLintPanel(e.detail);
27
31
  }}
@@ -7,6 +7,7 @@ declare const __propDef: {
7
7
  styles?: {};
8
8
  rainlangExtension: RawRainlangExtension;
9
9
  codeMirrorTheme: any;
10
+ onTextChange: (text: string) => void;
10
11
  };
11
12
  events: {
12
13
  [evt: string]: CustomEvent<any>;
@@ -1,17 +1,15 @@
1
- <script>import { extendOrder } from "@rainlanguage/orderbook/js_api";
2
- import CodeMirror from "svelte-codemirror-editor";
1
+ <script>import CodeMirror from "svelte-codemirror-editor";
3
2
  import { RainlangLR } from "codemirror-rainlang";
4
3
  export let order = void 0;
5
4
  export let rainlangText = void 0;
6
5
  export let codeMirrorTheme;
7
6
  export let codeMirrorDisabled = true;
8
7
  export let codeMirrorStyles = {};
9
- $: extendedOrder = order ? extendOrder(order) : void 0;
10
8
  </script>
11
9
 
12
- {#if rainlangText || extendedOrder?.rainlang}
10
+ {#if rainlangText || order?.rainlang}
13
11
  <CodeMirror
14
- value={rainlangText || extendedOrder.rainlang}
12
+ value={rainlangText || order?.rainlang}
15
13
  extensions={[RainlangLR]}
16
14
  theme={codeMirrorTheme}
17
15
  readonly={codeMirrorDisabled}
@@ -24,11 +22,4 @@ $: extendedOrder = order ? extendOrder(order) : void 0;
24
22
  ...codeMirrorStyles
25
23
  }}
26
24
  />
27
- {:else if !extendedOrder?.rainlang && !rainlangText}
28
- <div
29
- class="w-full tracking-tight text-gray-900 dark:text-white"
30
- data-testid="rainlang-not-included"
31
- >
32
- Rain source not included in order meta
33
- </div>
34
25
  {/if}
@@ -1,8 +1,8 @@
1
1
  import { SvelteComponent } from "svelte";
2
- import type { SgOrder } from '@rainlanguage/orderbook/js_api';
2
+ import type { RaindexOrder } from '@rainlanguage/orderbook';
3
3
  declare const __propDef: {
4
4
  props: {
5
- order?: SgOrder | undefined;
5
+ order?: RaindexOrder | undefined;
6
6
  rainlangText?: string | undefined;
7
7
  codeMirrorTheme: any;
8
8
  codeMirrorDisabled?: boolean;
@@ -1,15 +1,10 @@
1
1
  <script>import { createEventDispatcher } from "svelte";
2
+ import { PenSolid } from "flowbite-svelte-icons";
2
3
  export let displayValue;
3
- let focussed = false;
4
4
  let textContent;
5
5
  let editableSpan;
6
6
  let dispatch = createEventDispatcher();
7
- const inputFocussed = () => {
8
- focussed = true;
9
- dispatch("focus");
10
- };
11
7
  const inputBlurred = () => {
12
- focussed = false;
13
8
  displayValue = textContent;
14
9
  dispatch("blur", { value: textContent });
15
10
  };
@@ -20,27 +15,21 @@ const handleKeyDown = (event) => {
20
15
  };
21
16
  </script>
22
17
 
23
- <!-- svelte-ignore a11y-click-events-have-key-events -->
24
18
  <!-- svelte-ignore a11y-no-static-element-interactions -->
25
19
  <div
26
20
  data-testid="editableSpanWrapper"
27
- on:click={inputFocussed}
28
- class="flex gap-x-1 border-b-2 border-dotted text-sm text-gray-400 dark:text-gray-400"
21
+ class="flex items-center gap-x-1 border-b-2 border-dotted text-sm text-gray-400 dark:text-gray-400"
29
22
  >
23
+ <PenSolid class="h-3 w-3 cursor-pointer" />
30
24
  <span>Block:</span>
31
25
  <div class="relative">
32
26
  <span
33
27
  data-testid="editableSpan"
34
- class="absolute"
35
- class:opacity-0={!focussed}
36
28
  bind:this={editableSpan}
37
29
  bind:textContent
38
30
  contenteditable="true"
39
31
  on:keydown={handleKeyDown}
40
32
  on:blur={inputBlurred}>{displayValue}</span
41
33
  >
42
- <span data-testid="displayElement" class="pointer-events-none" class:opacity-0={focussed}
43
- >{displayValue}</span
44
- >
45
34
  </div>
46
35
  </div>
@@ -4,7 +4,6 @@ declare const __propDef: {
4
4
  displayValue: string;
5
5
  };
6
6
  events: {
7
- focus: CustomEvent<any>;
8
7
  blur: CustomEvent<any>;
9
8
  } & {
10
9
  [evt: string]: CustomEvent<any>;
@@ -7,7 +7,7 @@
7
7
  })(HashType || {});
8
8
  </script>
9
9
 
10
- <script>import { Tooltip } from "flowbite-svelte";
10
+ <script>import Tooltip from "./Tooltip.svelte";
11
11
  import {
12
12
  WalletOutline,
13
13
  FingerprintOutline,
@@ -60,7 +60,7 @@ function copy(e) {
60
60
  {#if showCopiedMessage}
61
61
  <div
62
62
  out:fade
63
- class="fixed rounded bg-green-500 px-2 py-1 text-xs text-white shadow"
63
+ class="fixed rounded bg-green-500 px-2 py-1 text-xs text-white"
64
64
  style="top: {cursorY + 10}px; left: {cursorX + 10}px"
65
65
  >
66
66
  Copied to clipboard
@@ -68,7 +68,7 @@ function copy(e) {
68
68
  {/if}
69
69
 
70
70
  {#if shorten}
71
- <Tooltip triggeredBy={`#${id}`} class="z-20 whitespace-normal">
71
+ <Tooltip triggeredBy={`#${id}`}>
72
72
  <div class="flex items-center justify-start space-x-2">
73
73
  {#if type === HashType.Wallet}
74
74
  <WalletOutline size="sm" />