@rainlanguage/ui-components 0.0.1-alpha.10

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/README.md +58 -0
  2. package/dist/__fixtures__/orderDetail.d.ts +99 -0
  3. package/dist/__fixtures__/orderDetail.js +204 -0
  4. package/dist/__fixtures__/settings-12-11-24.json +160 -0
  5. package/dist/__mocks__/MockComponent.d.ts +1 -0
  6. package/dist/__mocks__/MockComponent.js +2 -0
  7. package/dist/__mocks__/MockComponent.svelte +3 -0
  8. package/dist/__mocks__/MockComponent.svelte.d.ts +18 -0
  9. package/dist/__mocks__/mockTransactionStore.d.ts +22 -0
  10. package/dist/__mocks__/mockTransactionStore.js +56 -0
  11. package/dist/__mocks__/mockWeb3Config.d.ts +2 -0
  12. package/dist/__mocks__/mockWeb3Config.js +15 -0
  13. package/dist/__mocks__/queries.d.ts +13 -0
  14. package/dist/__mocks__/queries.js +64 -0
  15. package/dist/__mocks__/settings.d.ts +3 -0
  16. package/dist/__mocks__/settings.js +37 -0
  17. package/dist/__mocks__/stores.d.ts +94 -0
  18. package/dist/__mocks__/stores.js +113 -0
  19. package/dist/app.css +3 -0
  20. package/dist/assets/ledger.svg +6 -0
  21. package/dist/assets/logo-dark.svg +15 -0
  22. package/dist/assets/logo-light.svg +15 -0
  23. package/dist/assets/walletconnect.svg +1 -0
  24. package/dist/components/BadgeActive.svelte +9 -0
  25. package/dist/components/BadgeActive.svelte.d.ts +19 -0
  26. package/dist/components/BlockQuote.svelte +1 -0
  27. package/dist/components/BlockQuote.svelte.d.ts +29 -0
  28. package/dist/components/ButtonDarkMode.svelte +14 -0
  29. package/dist/components/ButtonDarkMode.svelte.d.ts +18 -0
  30. package/dist/components/ButtonLoading.svelte +11 -0
  31. package/dist/components/ButtonLoading.svelte.d.ts +24 -0
  32. package/dist/components/ButtonTab.svelte +7 -0
  33. package/dist/components/ButtonTab.svelte.d.ts +23 -0
  34. package/dist/components/ButtonVaultLink.svelte +29 -0
  35. package/dist/components/ButtonVaultLink.svelte.d.ts +22 -0
  36. package/dist/components/CardProperty.svelte +11 -0
  37. package/dist/components/CardProperty.svelte.d.ts +31 -0
  38. package/dist/components/CheckboxMyItemsOnly.svelte +23 -0
  39. package/dist/components/CheckboxMyItemsOnly.svelte.d.ts +21 -0
  40. package/dist/components/CheckboxZeroBalanceVault.svelte +20 -0
  41. package/dist/components/CheckboxZeroBalanceVault.svelte.d.ts +19 -0
  42. package/dist/components/CodeMirrorDotrain.svelte +35 -0
  43. package/dist/components/CodeMirrorDotrain.svelte.d.ts +23 -0
  44. package/dist/components/CodeMirrorRainlang.svelte +34 -0
  45. package/dist/components/CodeMirrorRainlang.svelte.d.ts +23 -0
  46. package/dist/components/DropdownProperty.svelte +12 -0
  47. package/dist/components/DropdownProperty.svelte.d.ts +19 -0
  48. package/dist/components/EditableSpan.svelte +46 -0
  49. package/dist/components/EditableSpan.svelte.d.ts +21 -0
  50. package/dist/components/Hash.svelte +85 -0
  51. package/dist/components/Hash.svelte.d.ts +28 -0
  52. package/dist/components/Heading.svelte +19 -0
  53. package/dist/components/Heading.svelte.d.ts +29 -0
  54. package/dist/components/IconError.svelte +8 -0
  55. package/dist/components/IconError.svelte.d.ts +16 -0
  56. package/dist/components/IconExternalLink.svelte +18 -0
  57. package/dist/components/IconExternalLink.svelte.d.ts +18 -0
  58. package/dist/components/IconInfo.svelte +8 -0
  59. package/dist/components/IconInfo.svelte.d.ts +16 -0
  60. package/dist/components/IconLedger.svelte +13 -0
  61. package/dist/components/IconLedger.svelte.d.ts +16 -0
  62. package/dist/components/IconSuccess.svelte +8 -0
  63. package/dist/components/IconSuccess.svelte.d.ts +16 -0
  64. package/dist/components/IconTelegram.svelte +12 -0
  65. package/dist/components/IconTelegram.svelte.d.ts +25 -0
  66. package/dist/components/IconWalletConnect.svelte +13 -0
  67. package/dist/components/IconWalletConnect.svelte.d.ts +16 -0
  68. package/dist/components/IconWarning.svelte +8 -0
  69. package/dist/components/IconWarning.svelte.d.ts +16 -0
  70. package/dist/components/License.svelte +29 -0
  71. package/dist/components/License.svelte.d.ts +25 -0
  72. package/dist/components/ListViewOrderbookFilters.svelte +58 -0
  73. package/dist/components/ListViewOrderbookFilters.svelte.d.ts +28 -0
  74. package/dist/components/OrderOrVaultHash.svelte +24 -0
  75. package/dist/components/OrderOrVaultHash.svelte.d.ts +22 -0
  76. package/dist/components/PageHeader.svelte +33 -0
  77. package/dist/components/PageHeader.svelte.d.ts +21 -0
  78. package/dist/components/TanstackAppTable.svelte +73 -0
  79. package/dist/components/TanstackAppTable.svelte.d.ts +30 -0
  80. package/dist/components/Text.svelte +12 -0
  81. package/dist/components/Text.svelte.d.ts +31 -0
  82. package/dist/components/charts/APYTimeFilters.svelte +47 -0
  83. package/dist/components/charts/APYTimeFilters.svelte.d.ts +19 -0
  84. package/dist/components/charts/ChartTimeFilters.svelte +35 -0
  85. package/dist/components/charts/ChartTimeFilters.svelte.d.ts +18 -0
  86. package/dist/components/charts/LightweightChart.svelte +110 -0
  87. package/dist/components/charts/LightweightChart.svelte.d.ts +29 -0
  88. package/dist/components/charts/OrderTradesChart.svelte +36 -0
  89. package/dist/components/charts/OrderTradesChart.svelte.d.ts +21 -0
  90. package/dist/components/charts/TableTimeFilters.svelte +48 -0
  91. package/dist/components/charts/TableTimeFilters.svelte.d.ts +19 -0
  92. package/dist/components/charts/TanstackLightweightChartLine.svelte +24 -0
  93. package/dist/components/charts/TanstackLightweightChartLine.svelte.d.ts +23 -0
  94. package/dist/components/charts/VaultBalanceChart.svelte +37 -0
  95. package/dist/components/charts/VaultBalanceChart.svelte.d.ts +22 -0
  96. package/dist/components/checkbox/Checkbox.svelte +17 -0
  97. package/dist/components/checkbox/Checkbox.svelte.d.ts +21 -0
  98. package/dist/components/deployment/ButtonSelectOption.svelte +14 -0
  99. package/dist/components/deployment/ButtonSelectOption.svelte.d.ts +20 -0
  100. package/dist/components/deployment/ComposedRainlangModal.svelte +35 -0
  101. package/dist/components/deployment/ComposedRainlangModal.svelte.d.ts +19 -0
  102. package/dist/components/deployment/DeploymentSectionHeader.svelte +14 -0
  103. package/dist/components/deployment/DeploymentSectionHeader.svelte.d.ts +19 -0
  104. package/dist/components/deployment/DeploymentSteps.svelte +252 -0
  105. package/dist/components/deployment/DeploymentSteps.svelte.d.ts +38 -0
  106. package/dist/components/deployment/DeploymentTile.svelte +19 -0
  107. package/dist/components/deployment/DeploymentTile.svelte.d.ts +21 -0
  108. package/dist/components/deployment/DeploymentsSection.svelte +20 -0
  109. package/dist/components/deployment/DeploymentsSection.svelte.d.ts +19 -0
  110. package/dist/components/deployment/DepositInput.svelte +93 -0
  111. package/dist/components/deployment/DepositInput.svelte.d.ts +20 -0
  112. package/dist/components/deployment/DepositsSection.svelte +8 -0
  113. package/dist/components/deployment/DepositsSection.svelte.d.ts +20 -0
  114. package/dist/components/deployment/DisclaimerModal.svelte +54 -0
  115. package/dist/components/deployment/DisclaimerModal.svelte.d.ts +19 -0
  116. package/dist/components/deployment/FieldDefinitionInput.svelte +66 -0
  117. package/dist/components/deployment/FieldDefinitionInput.svelte.d.ts +20 -0
  118. package/dist/components/deployment/FieldDefinitionsSection.svelte +9 -0
  119. package/dist/components/deployment/FieldDefinitionsSection.svelte.d.ts +20 -0
  120. package/dist/components/deployment/InvalidStrategiesSection.svelte +19 -0
  121. package/dist/components/deployment/InvalidStrategiesSection.svelte.d.ts +19 -0
  122. package/dist/components/deployment/SelectToken.svelte +88 -0
  123. package/dist/components/deployment/SelectToken.svelte.d.ts +21 -0
  124. package/dist/components/deployment/SelectTokensSection.svelte +17 -0
  125. package/dist/components/deployment/SelectTokensSection.svelte.d.ts +21 -0
  126. package/dist/components/deployment/ShareChoicesButton.svelte +26 -0
  127. package/dist/components/deployment/ShareChoicesButton.svelte.d.ts +18 -0
  128. package/dist/components/deployment/StrategyPage.svelte +70 -0
  129. package/dist/components/deployment/StrategyPage.svelte.d.ts +19 -0
  130. package/dist/components/deployment/TokenIOInput.svelte +62 -0
  131. package/dist/components/deployment/TokenIOInput.svelte.d.ts +22 -0
  132. package/dist/components/deployment/TokenIOSection.svelte +17 -0
  133. package/dist/components/deployment/TokenIOSection.svelte.d.ts +21 -0
  134. package/dist/components/deployment/ValidStrategiesSection.svelte +25 -0
  135. package/dist/components/deployment/ValidStrategiesSection.svelte.d.ts +19 -0
  136. package/dist/components/deployment/getDeploymentTransactionArgs.d.ts +17 -0
  137. package/dist/components/deployment/getDeploymentTransactionArgs.js +24 -0
  138. package/dist/components/detail/DepositOrWithdrawButtons.svelte +44 -0
  139. package/dist/components/detail/DepositOrWithdrawButtons.svelte.d.ts +26 -0
  140. package/dist/components/detail/OrderDetail.svelte +195 -0
  141. package/dist/components/detail/OrderDetail.svelte.d.ts +36 -0
  142. package/dist/components/detail/TanstackOrderQuote.svelte +173 -0
  143. package/dist/components/detail/TanstackOrderQuote.svelte.d.ts +22 -0
  144. package/dist/components/detail/TanstackPageContentDetail.svelte +56 -0
  145. package/dist/components/detail/TanstackPageContentDetail.svelte.d.ts +31 -0
  146. package/dist/components/detail/VaultDetail.svelte +178 -0
  147. package/dist/components/detail/VaultDetail.svelte.d.ts +35 -0
  148. package/dist/components/dropdown/DropdownActiveSubgraphs.svelte +38 -0
  149. package/dist/components/dropdown/DropdownActiveSubgraphs.svelte.d.ts +21 -0
  150. package/dist/components/dropdown/DropdownCheckbox.svelte +77 -0
  151. package/dist/components/dropdown/DropdownCheckbox.svelte.d.ts +26 -0
  152. package/dist/components/dropdown/DropdownOrderListAccounts.svelte +15 -0
  153. package/dist/components/dropdown/DropdownOrderListAccounts.svelte.d.ts +20 -0
  154. package/dist/components/dropdown/DropdownOrderStatus.svelte +31 -0
  155. package/dist/components/dropdown/DropdownOrderStatus.svelte.d.ts +19 -0
  156. package/dist/components/dropdown/DropdownRadio.svelte +45 -0
  157. package/dist/components/dropdown/DropdownRadio.svelte.d.ts +30 -0
  158. package/dist/components/icon/RainLogo.svelte +54 -0
  159. package/dist/components/icon/RainLogo.svelte.d.ts +25 -0
  160. package/dist/components/icon/Refresh.svelte +57 -0
  161. package/dist/components/icon/Refresh.svelte.d.ts +40 -0
  162. package/dist/components/input/InputHex.svelte +42 -0
  163. package/dist/components/input/InputHex.svelte.d.ts +19 -0
  164. package/dist/components/input/InputOrderHash.svelte +22 -0
  165. package/dist/components/input/InputOrderHash.svelte.d.ts +20 -0
  166. package/dist/components/input/InputRegistryUrl.svelte +18 -0
  167. package/dist/components/input/InputRegistryUrl.svelte.d.ts +16 -0
  168. package/dist/components/input/InputToken.svelte +53 -0
  169. package/dist/components/input/InputToken.svelte.d.ts +19 -0
  170. package/dist/components/input/InputTokenAmount.svelte +63 -0
  171. package/dist/components/input/InputTokenAmount.svelte.d.ts +21 -0
  172. package/dist/components/tables/OrderAPY.svelte +57 -0
  173. package/dist/components/tables/OrderAPY.svelte.d.ts +19 -0
  174. package/dist/components/tables/OrderTradesListTable.svelte +145 -0
  175. package/dist/components/tables/OrderTradesListTable.svelte.d.ts +21 -0
  176. package/dist/components/tables/OrderVaultsVolTable.svelte +67 -0
  177. package/dist/components/tables/OrderVaultsVolTable.svelte.d.ts +19 -0
  178. package/dist/components/tables/OrdersListTable.svelte +181 -0
  179. package/dist/components/tables/OrdersListTable.svelte.d.ts +35 -0
  180. package/dist/components/tables/VaultBalanceChangesTable.svelte +74 -0
  181. package/dist/components/tables/VaultBalanceChangesTable.svelte.d.ts +17 -0
  182. package/dist/components/tables/VaultsListTable.svelte +229 -0
  183. package/dist/components/tables/VaultsListTable.svelte.d.ts +40 -0
  184. package/dist/components/wallet/WalletConnect.svelte +28 -0
  185. package/dist/components/wallet/WalletConnect.svelte.d.ts +23 -0
  186. package/dist/errors/DeploymentStepsError.d.ts +24 -0
  187. package/dist/errors/DeploymentStepsError.js +45 -0
  188. package/dist/errors/index.d.ts +1 -0
  189. package/dist/errors/index.js +1 -0
  190. package/dist/index.d.ts +89 -0
  191. package/dist/index.js +89 -0
  192. package/dist/queries/constants.d.ts +2 -0
  193. package/dist/queries/constants.js +2 -0
  194. package/dist/queries/keys.d.ts +9 -0
  195. package/dist/queries/keys.js +9 -0
  196. package/dist/queries/queryClient.d.ts +3 -0
  197. package/dist/queries/queryClient.js +16 -0
  198. package/dist/services/getExplorerLink.d.ts +1 -0
  199. package/dist/services/getExplorerLink.js +10 -0
  200. package/dist/services/handleShareChoices.d.ts +2 -0
  201. package/dist/services/handleShareChoices.js +10 -0
  202. package/dist/services/historicalOrderCharts.d.ts +12 -0
  203. package/dist/services/historicalOrderCharts.js +496 -0
  204. package/dist/services/index.d.ts +2 -0
  205. package/dist/services/index.js +1 -0
  206. package/dist/services/registry.d.ts +25 -0
  207. package/dist/services/registry.js +133 -0
  208. package/dist/services/time.d.ts +6 -0
  209. package/dist/services/time.js +17 -0
  210. package/dist/stores/transactionStore.d.ts +98 -0
  211. package/dist/stores/transactionStore.js +303 -0
  212. package/dist/test/matchers.d.ts +6 -0
  213. package/dist/test/matchers.js +4 -0
  214. package/dist/types/appStores.d.ts +19 -0
  215. package/dist/types/appStores.js +1 -0
  216. package/dist/types/modal.d.ts +20 -0
  217. package/dist/types/modal.js +1 -0
  218. package/dist/types/strategy.d.ts +10 -0
  219. package/dist/types/strategy.js +1 -0
  220. package/dist/types/transaction.d.ts +27 -0
  221. package/dist/types/transaction.js +1 -0
  222. package/dist/utils/breadcrumbs.d.ts +5 -0
  223. package/dist/utils/breadcrumbs.js +9 -0
  224. package/dist/utils/codeMirrorThemes.d.ts +2 -0
  225. package/dist/utils/codeMirrorThemes.js +86 -0
  226. package/dist/utils/hex.d.ts +2 -0
  227. package/dist/utils/hex.js +3 -0
  228. package/dist/utils/lightweightChartsThemes.d.ts +52 -0
  229. package/dist/utils/lightweightChartsThemes.js +21 -0
  230. package/dist/utils/number.d.ts +14 -0
  231. package/dist/utils/number.js +43 -0
  232. package/dist/utils/time.d.ts +12 -0
  233. package/dist/utils/time.js +27 -0
  234. package/dist/utils/vault.d.ts +2 -0
  235. package/dist/utils/vault.js +29 -0
  236. package/package.json +86 -0
@@ -0,0 +1,13 @@
1
+ export declare const createResolvableMockQuery: <T>(queryFn: (() => T) | ((pageParam: number) => T)) => {
2
+ queryFn: (pageParam?: number) => Promise<T>;
3
+ resolve: () => void;
4
+ };
5
+ export declare const createResolvableInfiniteQuery: (_queryFn: (pageParam: number) => unknown, getNextPageParam?: (_lastPage: unknown, _allPages: unknown[], lastPageParam: number) => number | undefined) => {
6
+ query: import("@tanstack/svelte-query").CreateInfiniteQueryResult<import("@tanstack/svelte-query").InfiniteData<unknown, unknown>, Error>;
7
+ resolve: () => void;
8
+ refetch: import("vitest").Mock<(...args: any[]) => any>;
9
+ };
10
+ export declare const createResolvableQuery: <T>(_queryFn: () => T) => {
11
+ query: import("@tanstack/svelte-query").CreateQueryResult<T, Error>;
12
+ resolve: () => void;
13
+ };
@@ -0,0 +1,64 @@
1
+ import { QueryClient, createInfiniteQuery, createQuery } from '@tanstack/svelte-query';
2
+ // A helper function to create a resolvable mock query.
3
+ // This gives us more control over when each query resolves.
4
+ export const createResolvableMockQuery = (queryFn) => {
5
+ const resolveQueue = [];
6
+ let currentPromise;
7
+ const createNewPromise = () => {
8
+ currentPromise = new Promise((res) => {
9
+ resolveQueue.push(res);
10
+ });
11
+ };
12
+ createNewPromise(); // Initialize the first promise
13
+ const resolvableQuery = async (pageParam) => {
14
+ const mockData = queryFn(pageParam);
15
+ await currentPromise;
16
+ createNewPromise(); // Create a new promise for the next call
17
+ return mockData;
18
+ };
19
+ const resolve = () => {
20
+ const resolver = resolveQueue.shift();
21
+ if (resolver) {
22
+ resolver();
23
+ }
24
+ };
25
+ return { queryFn: resolvableQuery, resolve };
26
+ };
27
+ // A helper function to create an infinite Tanstack query that resolves when you call
28
+ // the `resolve` function.
29
+ export const createResolvableInfiniteQuery = (_queryFn, getNextPageParam = (_lastPage, _allPages, lastPageParam) => lastPageParam + 1) => {
30
+ const { queryFn, resolve } = createResolvableMockQuery(_queryFn);
31
+ const refetch = vi.fn();
32
+ const query = createInfiniteQuery({
33
+ queryKey: [],
34
+ queryFn: ({ pageParam }) => {
35
+ return queryFn(pageParam);
36
+ },
37
+ initialPageParam: 0,
38
+ getNextPageParam
39
+ }, new QueryClient({
40
+ defaultOptions: {
41
+ queries: {
42
+ staleTime: Infinity
43
+ }
44
+ }
45
+ }));
46
+ return { query, resolve, refetch };
47
+ };
48
+ // A helper function to create a regular Tanstack query that resolves when you call resolve
49
+ export const createResolvableQuery = (_queryFn) => {
50
+ const { queryFn, resolve } = createResolvableMockQuery(_queryFn);
51
+ const query = createQuery({
52
+ queryKey: [],
53
+ queryFn: () => {
54
+ return queryFn();
55
+ }
56
+ }, new QueryClient({
57
+ defaultOptions: {
58
+ queries: {
59
+ staleTime: Infinity
60
+ }
61
+ }
62
+ }));
63
+ return { query, resolve };
64
+ };
@@ -0,0 +1,3 @@
1
+ import type { ConfigSource } from '@rainlanguage/orderbook/js_api';
2
+ export declare const mockConfigSource: ConfigSource;
3
+ export declare const mockSettingsStore: import("svelte/store").Writable<ConfigSource>;
@@ -0,0 +1,37 @@
1
+ import { writable } from 'svelte/store';
2
+ export const mockConfigSource = {
3
+ networks: {
4
+ mainnet: {
5
+ rpc: 'https://mainnet.infura.io/v3/YOUR-PROJECT-ID',
6
+ 'chain-id': 1,
7
+ label: 'Ethereum Mainnet',
8
+ currency: 'ETH'
9
+ }
10
+ },
11
+ subgraphs: {
12
+ mainnet: 'https://api.thegraph.com/subgraphs/name/mainnet'
13
+ },
14
+ orderbooks: {
15
+ orderbook1: {
16
+ address: '0xOrderbookAddress1',
17
+ network: 'mainnet',
18
+ subgraph: 'uniswap',
19
+ label: 'Orderbook 1'
20
+ }
21
+ },
22
+ deployers: {
23
+ deployer1: {
24
+ address: '0xDeployerAddress1',
25
+ network: 'mainnet',
26
+ label: 'Deployer 1'
27
+ }
28
+ },
29
+ metaboards: {
30
+ metaboard1: 'https://example.com/metaboard1'
31
+ },
32
+ accounts: {
33
+ name_one: 'address_one',
34
+ name_two: 'address_two'
35
+ }
36
+ };
37
+ export const mockSettingsStore = writable(mockConfigSource);
@@ -0,0 +1,94 @@
1
+ import type { ConfigSource } from '@rainlanguage/orderbook/js_api';
2
+ 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;
21
+ };
22
+ export declare const mockActiveAccountsItemsStore: {
23
+ 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
+ set: (this: void, value: Record<string, string>) => void;
25
+ mockSetSubscribeValue: (value: Record<string, string>) => void;
26
+ };
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;
31
+ };
32
+ export declare const mockOrderHashStore: {
33
+ subscribe: (this: void, run: import("svelte/store").Subscriber<string>, invalidate?: import("svelte/store").Invalidator<string> | undefined) => import("svelte/store").Unsubscriber;
34
+ set: (this: void, value: string) => void;
35
+ mockSetSubscribeValue: (value: string) => void;
36
+ };
37
+ export declare const mockHideZeroBalanceVaultsStore: {
38
+ subscribe: (this: void, run: import("svelte/store").Subscriber<boolean>, invalidate?: import("svelte/store").Invalidator<boolean> | undefined) => import("svelte/store").Unsubscriber;
39
+ set: (this: void, value: boolean) => void;
40
+ mockSetSubscribeValue: (value: boolean) => void;
41
+ };
42
+ export declare const mockActiveNetworkRefStore: {
43
+ subscribe: (this: void, run: import("svelte/store").Subscriber<string>, invalidate?: import("svelte/store").Invalidator<string> | undefined) => import("svelte/store").Unsubscriber;
44
+ set: (this: void, value: string) => void;
45
+ mockSetSubscribeValue: (value: string) => void;
46
+ };
47
+ export declare const mockActiveOrderbookRefStore: {
48
+ subscribe: (this: void, run: import("svelte/store").Subscriber<string>, invalidate?: import("svelte/store").Invalidator<string> | undefined) => import("svelte/store").Unsubscriber;
49
+ set: (this: void, value: string) => void;
50
+ mockSetSubscribeValue: (value: string) => void;
51
+ };
52
+ export declare const mockActiveAccountsStore: {
53
+ subscribe: (this: void, run: import("svelte/store").Subscriber<Record<string, string>>, invalidate?: import("svelte/store").Invalidator<Record<string, string>> | undefined) => import("svelte/store").Unsubscriber;
54
+ set: (this: void, value: Record<string, string>) => void;
55
+ mockSetSubscribeValue: (value: Record<string, string>) => void;
56
+ };
57
+ export declare const mockSubgraphUrlStore: {
58
+ subscribe: (this: void, run: import("svelte/store").Subscriber<string>, invalidate?: import("svelte/store").Invalidator<string> | undefined) => import("svelte/store").Unsubscriber;
59
+ set: (this: void, value: string) => void;
60
+ mockSetSubscribeValue: (value: string) => void;
61
+ };
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
+ export declare const mockChainIdStore: {
69
+ subscribe: (this: void, run: import("svelte/store").Subscriber<number>, invalidate?: import("svelte/store").Invalidator<number> | undefined) => import("svelte/store").Unsubscriber;
70
+ set: (this: void, value: number) => void;
71
+ mockSetSubscribeValue: (value: number) => void;
72
+ };
73
+ export declare const mockConnectedStore: {
74
+ subscribe: (this: void, run: import("svelte/store").Subscriber<boolean>, invalidate?: import("svelte/store").Invalidator<boolean> | undefined) => import("svelte/store").Unsubscriber;
75
+ set: (this: void, value: boolean) => void;
76
+ update: (this: void, updater: import("svelte/store").Updater<boolean>) => void;
77
+ mockSetSubscribeValue: (value: boolean) => void;
78
+ };
79
+ export declare const mockWagmiConfigStore: {
80
+ subscribe: (this: void, run: import("svelte/store").Subscriber<Config>, invalidate?: import("svelte/store").Invalidator<Config> | undefined) => import("svelte/store").Unsubscriber;
81
+ set: (this: void, value: Config) => void;
82
+ update: (this: void, updater: import("svelte/store").Updater<Config>) => void;
83
+ mockSetSubscribeValue: (value: Config) => void;
84
+ };
85
+ export declare const mockShowMyItemsOnlyStore: {
86
+ subscribe: (this: void, run: import("svelte/store").Subscriber<boolean>, invalidate?: import("svelte/store").Invalidator<boolean> | undefined) => import("svelte/store").Unsubscriber;
87
+ set: (this: void, value: boolean) => void;
88
+ mockSetSubscribeValue: (value: boolean) => void;
89
+ };
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;
94
+ };
@@ -0,0 +1,113 @@
1
+ import { writable } from 'svelte/store';
2
+ import settingsFixture from '../__fixtures__/settings-12-11-24.json';
3
+ import {} from '@wagmi/core';
4
+ import { mockWeb3Config } from './mockWeb3Config';
5
+ const mockSettingsWritable = writable(settingsFixture);
6
+ const mockActiveSubgraphsWritable = writable({});
7
+ const mockAccountsWritable = writable({});
8
+ const mockActiveAccountsItemsWritable = writable({});
9
+ const mockActiveOrderStatusWritable = writable(undefined);
10
+ const mockOrderHashWritable = writable('');
11
+ const mockHideZeroBalanceVaultsWritable = writable(false);
12
+ const mockActiveNetworkRefWritable = writable('');
13
+ const mockActiveOrderbookRefWritable = writable('');
14
+ const mockActiveAccountsWritable = writable({});
15
+ const mockSubgraphUrlWritable = writable('');
16
+ const mockWalletAddressMatchesOrBlankWritable = writable(() => false);
17
+ const mockSignerAddressWritable = writable('');
18
+ const mockChainIdWritable = writable(0);
19
+ const mockConnectedWritable = writable(false);
20
+ const mockWagmiConfigWritable = writable(mockWeb3Config);
21
+ 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
+ };
41
+ export const mockActiveAccountsItemsStore = {
42
+ subscribe: mockActiveAccountsItemsWritable.subscribe,
43
+ set: mockActiveAccountsItemsWritable.set,
44
+ mockSetSubscribeValue: (value) => mockActiveAccountsItemsWritable.set(value)
45
+ };
46
+ export const mockActiveOrderStatusStore = {
47
+ subscribe: mockActiveOrderStatusWritable.subscribe,
48
+ set: mockActiveOrderStatusWritable.set,
49
+ mockSetSubscribeValue: (value) => mockActiveOrderStatusWritable.set(value)
50
+ };
51
+ export const mockOrderHashStore = {
52
+ subscribe: mockOrderHashWritable.subscribe,
53
+ set: mockOrderHashWritable.set,
54
+ mockSetSubscribeValue: (value) => mockOrderHashWritable.set(value)
55
+ };
56
+ export const mockHideZeroBalanceVaultsStore = {
57
+ subscribe: mockHideZeroBalanceVaultsWritable.subscribe,
58
+ set: mockHideZeroBalanceVaultsWritable.set,
59
+ mockSetSubscribeValue: (value) => mockHideZeroBalanceVaultsWritable.set(value)
60
+ };
61
+ export const mockActiveNetworkRefStore = {
62
+ subscribe: mockActiveNetworkRefWritable.subscribe,
63
+ set: mockActiveNetworkRefWritable.set,
64
+ mockSetSubscribeValue: (value) => mockActiveNetworkRefWritable.set(value)
65
+ };
66
+ export const mockActiveOrderbookRefStore = {
67
+ subscribe: mockActiveOrderbookRefWritable.subscribe,
68
+ set: mockActiveOrderbookRefWritable.set,
69
+ mockSetSubscribeValue: (value) => mockActiveOrderbookRefWritable.set(value)
70
+ };
71
+ export const mockActiveAccountsStore = {
72
+ subscribe: mockActiveAccountsWritable.subscribe,
73
+ set: mockActiveAccountsWritable.set,
74
+ mockSetSubscribeValue: (value) => mockActiveAccountsWritable.set(value)
75
+ };
76
+ export const mockSubgraphUrlStore = {
77
+ subscribe: mockSubgraphUrlWritable.subscribe,
78
+ set: mockSubgraphUrlWritable.set,
79
+ mockSetSubscribeValue: (value) => mockSubgraphUrlWritable.set(value)
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
+ export const mockChainIdStore = {
88
+ subscribe: mockChainIdWritable.subscribe,
89
+ set: mockChainIdWritable.set,
90
+ mockSetSubscribeValue: (value) => mockChainIdWritable.set(value)
91
+ };
92
+ export const mockConnectedStore = {
93
+ subscribe: mockConnectedWritable.subscribe,
94
+ set: mockConnectedWritable.set,
95
+ update: mockConnectedWritable.update,
96
+ mockSetSubscribeValue: (value) => mockConnectedWritable.set(value)
97
+ };
98
+ export const mockWagmiConfigStore = {
99
+ subscribe: mockWagmiConfigWritable.subscribe,
100
+ set: mockWagmiConfigWritable.set,
101
+ update: mockWagmiConfigWritable.update,
102
+ mockSetSubscribeValue: (value) => mockWagmiConfigWritable.set(value)
103
+ };
104
+ export const mockShowMyItemsOnlyStore = {
105
+ subscribe: mockShowMyItemsOnlyWritable.subscribe,
106
+ set: mockShowMyItemsOnlyWritable.set,
107
+ mockSetSubscribeValue: (value) => mockShowMyItemsOnlyWritable.set(value)
108
+ };
109
+ export const mockPageStore = {
110
+ subscribe: mockPageWritable.subscribe,
111
+ set: mockPageWritable.set,
112
+ mockSetSubscribeValue: (value) => mockPageWritable.set(value)
113
+ };
package/dist/app.css ADDED
@@ -0,0 +1,3 @@
1
+ @import 'tailwindcss/base';
2
+ @import 'tailwindcss/components';
3
+ @import 'tailwindcss/utilities';
@@ -0,0 +1,6 @@
1
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
2
+ viewBox="0 0 768.91 669.35" style="enable-background:new 0 0 768.91 669.35;" xml:space="preserve">
3
+ <path d="M0,479.29v190.06h289.22V627.2H42.14V479.29H0z M726.77,479.29V627.2H479.69v42.14h289.22V479.29H726.77z M289.64,190.06
4
+ v289.22h190.05v-38.01H331.78V190.06H289.64z M0,0v190.06h42.14V42.14h247.08V0H0z M479.69,0v42.14h247.08v147.92h42.14V0H479.69z"
5
+ />
6
+ </svg>
@@ -0,0 +1,15 @@
1
+ <svg width="577" height="139" viewBox="0 0 577 139" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M514.246 38.408H531.526L575.942 101H558.79L514.246 38.408ZM557.382 38.408H574.406L529.99 101H512.966L557.382 38.408Z" fill="white"/>
3
+ <path d="M485.035 102.28C479.062 102.28 473.558 100.829 468.523 97.9279C463.574 95.0266 459.649 91.1013 456.747 86.1519C453.931 81.1173 452.523 75.5706 452.523 69.5119C452.523 63.5386 453.931 58.0773 456.747 53.1279C459.649 48.1786 463.574 44.2959 468.523 41.4799C473.473 38.5786 478.891 37.1279 484.779 37.1279C490.326 37.1279 495.403 38.4933 500.011 41.2239C504.705 43.8693 508.417 47.5386 511.147 52.2319C513.878 56.8399 515.243 62.0026 515.243 67.7199C515.243 69.5973 515.158 71.3893 514.987 73.0959H459.947V62.7279H500.139C499.969 60.1679 499.115 57.8639 497.579 55.8159C496.129 53.6826 494.209 52.0613 491.819 50.9519C489.515 49.7573 486.998 49.1599 484.267 49.1599C480.683 49.1599 477.483 50.0133 474.667 51.7199C471.851 53.3413 469.675 55.7306 468.139 58.8879C466.603 61.9599 465.835 65.6719 465.835 70.0239C465.835 73.9493 466.646 77.4479 468.267 80.5199C469.889 83.5066 472.107 85.8533 474.923 87.5599C477.825 89.2666 481.153 90.1199 484.907 90.1199C488.918 90.1199 492.331 89.2666 495.147 87.5599C497.963 85.7679 499.713 83.3786 500.395 80.3919H514.475C513.451 87.0479 510.209 92.3813 504.747 96.3919C499.286 100.317 492.715 102.28 485.035 102.28Z" fill="white"/>
4
+ <path d="M407.815 102.28C402.354 102.28 397.319 100.829 392.711 97.9282C388.103 95.0268 384.477 91.0588 381.831 86.0242C379.186 80.9895 377.863 75.5282 377.863 69.6402C377.863 63.7522 379.186 58.3335 381.831 53.3842C384.477 48.3495 388.103 44.3815 392.711 41.4801C397.319 38.5788 402.354 37.1282 407.815 37.1282C413.362 37.1282 418.141 38.4508 422.151 41.0961C426.247 43.7415 429.362 47.5388 431.495 52.4882C433.629 57.3521 434.695 63.0695 434.695 69.6402C434.695 76.2962 433.629 82.0988 431.495 87.0481C429.362 91.9121 426.247 95.6668 422.151 98.3121C418.141 100.957 413.362 102.28 407.815 102.28ZM410.887 88.7122C414.471 88.7122 417.714 87.9015 420.615 86.2802C423.517 84.5735 425.778 82.2695 427.399 79.3681C429.106 76.4668 429.959 73.2242 429.959 69.6402C429.959 66.0562 429.106 62.8562 427.399 60.0401C425.778 57.1388 423.517 54.8775 420.615 53.2561C417.714 51.5495 414.471 50.6962 410.887 50.6962C407.389 50.6962 404.189 51.5495 401.287 53.2561C398.386 54.9628 396.082 57.2668 394.375 60.1682C392.754 63.0695 391.943 66.2268 391.943 69.6402C391.943 73.1388 392.754 76.3388 394.375 79.2402C396.082 82.1415 398.386 84.4455 401.287 86.1522C404.189 87.8588 407.389 88.7122 410.887 88.7122ZM429.959 11.4001H444.295V101H429.959V11.4001Z" fill="white"/>
5
+ <path d="M325.624 101H311.416V38.4079H325.624V101ZM356.216 67.0799C356.216 62.1306 354.808 58.2053 351.992 55.3039C349.261 52.3173 345.635 50.8239 341.112 50.8239C336.419 50.8239 332.664 52.3173 329.848 55.3039C327.032 58.2053 325.624 62.1306 325.624 67.0799H321.272C321.272 61.1066 322.211 55.8586 324.088 51.3359C326.051 46.7279 328.781 43.2293 332.28 40.8399C335.864 38.3653 339.96 37.1279 344.568 37.1279C349.859 37.1279 354.467 38.2799 358.392 40.5839C362.317 42.8026 365.304 46.0453 367.352 50.3119C369.485 54.5786 370.552 59.5706 370.552 65.2879V101H356.216V67.0799Z" fill="white"/>
6
+ <path d="M299.339 38.4081V101H285.131V38.4081H299.339ZM292.299 27.6561C289.739 27.6561 287.563 26.7601 285.771 24.968C283.979 23.1761 283.083 21.0427 283.083 18.568C283.083 16.0934 283.979 13.96 285.771 12.1681C287.563 10.2907 289.739 9.35205 292.299 9.35205C294.859 9.35205 297.035 10.2907 298.827 12.1681C300.619 13.96 301.515 16.0934 301.515 18.568C301.515 21.0427 300.619 23.1761 298.827 24.968C297.035 26.7601 294.859 27.6561 292.299 27.6561Z" fill="white"/>
7
+ <path d="M273.191 101H258.855V38.4079H273.191V101ZM236.711 102.28C231.249 102.28 226.215 100.829 221.607 97.9279C216.999 95.0266 213.372 91.0586 210.727 86.0239C208.081 80.9893 206.759 75.5279 206.759 69.6399C206.759 63.7519 208.081 58.3333 210.727 53.3839C213.372 48.3493 216.999 44.3813 221.607 41.4799C226.215 38.5786 231.249 37.1279 236.711 37.1279C242.257 37.1279 247.036 38.4506 251.047 41.0959C255.143 43.7413 258.257 47.5386 260.391 52.4879C262.524 57.3519 263.591 63.0693 263.591 69.6399C263.591 76.2959 262.524 82.0986 260.391 87.0479C258.257 91.9119 255.143 95.6666 251.047 98.3119C247.036 100.957 242.257 102.28 236.711 102.28ZM239.783 88.7119C243.367 88.7119 246.609 87.9013 249.511 86.2799C252.412 84.5733 254.673 82.2693 256.295 79.3679C258.001 76.4666 258.855 73.2239 258.855 69.6399C258.855 66.0559 258.001 62.8559 256.295 60.0399C254.673 57.1386 252.412 54.8773 249.511 53.2559C246.609 51.5493 243.367 50.6959 239.783 50.6959C236.284 50.6959 233.084 51.5493 230.183 53.2559C227.281 54.9626 224.977 57.2666 223.271 60.1679C221.649 63.0693 220.839 66.2266 220.839 69.6399C220.839 73.1386 221.649 76.3386 223.271 79.2399C224.977 82.1413 227.281 84.4453 230.183 86.1519C233.084 87.8586 236.284 88.7119 239.783 88.7119Z" fill="white"/>
8
+ <path d="M169.936 38.4079H184.144V47.1119C185.936 44.0399 188.282 41.6079 191.184 39.8159C194.17 38.0239 197.456 37.1279 201.04 37.1279C202.832 37.1279 204.794 37.3839 206.928 37.8959V50.9519C204.453 50.3546 202.362 50.0559 200.656 50.0559C197.498 50.0559 194.682 50.7386 192.208 52.1039C189.733 53.4693 187.77 55.4746 186.32 58.1199C184.869 60.7653 184.144 63.9226 184.144 67.5919V101H169.936V38.4079Z" fill="white"/>
9
+ <path d="M83.1001 115.265C83.1001 131.025 73.8772 138.105 62.5002 138.105C51.1231 138.105 41.9002 131.025 41.9002 115.265C41.9002 108.552 45.9116 99.031 50.4687 90.6148C56.7107 79.0871 62.5002 69.0512 62.5002 69.0512C62.5002 69.0512 68.2897 79.0871 74.5316 90.6148C79.0887 99.031 83.1001 108.552 83.1001 115.265Z" fill="#0038C9"/>
10
+ <path d="M41.9002 22.8396C41.9002 7.07977 51.1231 1.00185e-06 62.5002 0C73.8772 -1.00185e-06 83.1001 7.07977 83.1001 22.8396C83.1001 29.5532 79.0887 39.0738 74.5316 47.49C68.2897 59.0178 62.5002 69.0537 62.5002 69.0537C62.5002 69.0537 56.7107 59.0177 50.4687 47.49C45.9116 39.0738 41.9002 29.5532 41.9002 22.8396Z" fill="#6E95F9"/>
11
+ <path d="M33.0668 110.129C19.517 118.009 8.81865 113.503 3.13014 103.579C-2.55838 93.6544 -1.08289 82.0691 12.4668 74.1892C18.239 70.8324 28.4302 69.5713 37.9447 69.3385C50.9768 69.0197 62.5001 69.0521 62.5001 69.0521C62.5001 69.0521 56.7663 79.1205 49.9761 90.3293C45.0187 98.5127 38.8389 106.772 33.0668 110.129Z" fill="#164CD6"/>
12
+ <path d="M91.9333 27.9759C105.483 20.096 116.181 24.6015 121.87 34.5261C127.558 44.4506 126.083 56.0359 112.533 63.9158C106.761 67.2726 96.5699 68.5337 87.0554 68.7665C74.0233 69.0853 62.5 69.0529 62.5 69.0529C62.5 69.0529 68.2337 58.9846 75.0239 47.7757C79.9813 39.5923 86.1612 31.3327 91.9333 27.9759Z" fill="#8BABFF"/>
13
+ <path d="M12.4668 63.9145C-1.08294 56.0346 -2.55843 44.4493 3.13009 34.5247C8.8186 24.6002 19.517 20.0946 33.0667 27.9745C38.8388 31.3313 45.0187 39.5909 49.9761 47.7743C56.7663 58.9832 62.5 69.0515 62.5 69.0515C62.5 69.0515 50.9767 69.084 37.9446 68.7651C28.4301 68.5323 18.2389 67.2713 12.4668 63.9145Z" fill="#3D6BE1"/>
14
+ <path d="M112.533 74.1892C126.083 82.0691 127.558 93.6544 121.87 103.579C116.181 113.503 105.483 118.009 91.9333 110.129C86.1612 106.772 79.9813 98.5127 75.0239 90.3293C68.2337 79.1205 62.5001 69.0521 62.5001 69.0521C62.5001 69.0521 74.0233 69.0197 87.0554 69.3385C96.5699 69.5713 106.761 70.8324 112.533 74.1892Z" fill="#AEC4FF"/>
15
+ </svg>
@@ -0,0 +1,15 @@
1
+ <svg width="577" height="139" viewBox="0 0 577 139" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M514.246 38.408H531.526L575.942 101H558.79L514.246 38.408ZM557.382 38.408H574.406L529.99 101H512.966L557.382 38.408Z" fill="#181818"/>
3
+ <path d="M485.035 102.28C479.062 102.28 473.558 100.829 468.523 97.9279C463.574 95.0266 459.649 91.1013 456.747 86.1519C453.931 81.1173 452.523 75.5706 452.523 69.5119C452.523 63.5386 453.931 58.0773 456.747 53.1279C459.649 48.1786 463.574 44.2959 468.523 41.4799C473.473 38.5786 478.891 37.1279 484.779 37.1279C490.326 37.1279 495.403 38.4933 500.011 41.2239C504.705 43.8693 508.417 47.5386 511.147 52.2319C513.878 56.8399 515.243 62.0026 515.243 67.7199C515.243 69.5973 515.158 71.3893 514.987 73.0959H459.947V62.7279H500.139C499.969 60.1679 499.115 57.8639 497.579 55.8159C496.129 53.6826 494.209 52.0613 491.819 50.9519C489.515 49.7573 486.998 49.1599 484.267 49.1599C480.683 49.1599 477.483 50.0133 474.667 51.7199C471.851 53.3413 469.675 55.7306 468.139 58.8879C466.603 61.9599 465.835 65.6719 465.835 70.0239C465.835 73.9493 466.646 77.4479 468.267 80.5199C469.889 83.5066 472.107 85.8533 474.923 87.5599C477.825 89.2666 481.153 90.1199 484.907 90.1199C488.918 90.1199 492.331 89.2666 495.147 87.5599C497.963 85.7679 499.713 83.3786 500.395 80.3919H514.475C513.451 87.0479 510.209 92.3813 504.747 96.3919C499.286 100.317 492.715 102.28 485.035 102.28Z" fill="#181818"/>
4
+ <path d="M407.815 102.28C402.354 102.28 397.319 100.829 392.711 97.9282C388.103 95.0268 384.477 91.0588 381.831 86.0242C379.186 80.9895 377.863 75.5282 377.863 69.6402C377.863 63.7522 379.186 58.3335 381.831 53.3842C384.477 48.3495 388.103 44.3815 392.711 41.4801C397.319 38.5788 402.354 37.1282 407.815 37.1282C413.362 37.1282 418.141 38.4508 422.151 41.0961C426.247 43.7415 429.362 47.5388 431.495 52.4882C433.629 57.3521 434.695 63.0695 434.695 69.6402C434.695 76.2962 433.629 82.0988 431.495 87.0481C429.362 91.9121 426.247 95.6668 422.151 98.3121C418.141 100.957 413.362 102.28 407.815 102.28ZM410.887 88.7122C414.471 88.7122 417.714 87.9015 420.615 86.2802C423.517 84.5735 425.778 82.2695 427.399 79.3681C429.106 76.4668 429.959 73.2242 429.959 69.6402C429.959 66.0562 429.106 62.8562 427.399 60.0401C425.778 57.1388 423.517 54.8775 420.615 53.2561C417.714 51.5495 414.471 50.6962 410.887 50.6962C407.389 50.6962 404.189 51.5495 401.287 53.2561C398.386 54.9628 396.082 57.2668 394.375 60.1682C392.754 63.0695 391.943 66.2268 391.943 69.6402C391.943 73.1388 392.754 76.3388 394.375 79.2402C396.082 82.1415 398.386 84.4455 401.287 86.1522C404.189 87.8588 407.389 88.7122 410.887 88.7122ZM429.959 11.4001H444.295V101H429.959V11.4001Z" fill="#181818"/>
5
+ <path d="M325.624 101H311.416V38.4079H325.624V101ZM356.216 67.0799C356.216 62.1306 354.808 58.2053 351.992 55.3039C349.261 52.3173 345.635 50.8239 341.112 50.8239C336.419 50.8239 332.664 52.3173 329.848 55.3039C327.032 58.2053 325.624 62.1306 325.624 67.0799H321.272C321.272 61.1066 322.211 55.8586 324.088 51.3359C326.051 46.7279 328.781 43.2293 332.28 40.8399C335.864 38.3653 339.96 37.1279 344.568 37.1279C349.859 37.1279 354.467 38.2799 358.392 40.5839C362.317 42.8026 365.304 46.0453 367.352 50.3119C369.485 54.5786 370.552 59.5706 370.552 65.2879V101H356.216V67.0799Z" fill="#181818"/>
6
+ <path d="M299.339 38.4081V101H285.131V38.4081H299.339ZM292.299 27.6561C289.739 27.6561 287.563 26.7601 285.771 24.968C283.979 23.1761 283.083 21.0427 283.083 18.568C283.083 16.0934 283.979 13.96 285.771 12.1681C287.563 10.2907 289.739 9.35205 292.299 9.35205C294.859 9.35205 297.035 10.2907 298.827 12.1681C300.619 13.96 301.515 16.0934 301.515 18.568C301.515 21.0427 300.619 23.1761 298.827 24.968C297.035 26.7601 294.859 27.6561 292.299 27.6561Z" fill="#181818"/>
7
+ <path d="M273.191 101H258.855V38.4079H273.191V101ZM236.711 102.28C231.249 102.28 226.215 100.829 221.607 97.9279C216.999 95.0266 213.372 91.0586 210.727 86.0239C208.081 80.9893 206.759 75.5279 206.759 69.6399C206.759 63.7519 208.081 58.3333 210.727 53.3839C213.372 48.3493 216.999 44.3813 221.607 41.4799C226.215 38.5786 231.249 37.1279 236.711 37.1279C242.257 37.1279 247.036 38.4506 251.047 41.0959C255.143 43.7413 258.257 47.5386 260.391 52.4879C262.524 57.3519 263.591 63.0693 263.591 69.6399C263.591 76.2959 262.524 82.0986 260.391 87.0479C258.257 91.9119 255.143 95.6666 251.047 98.3119C247.036 100.957 242.257 102.28 236.711 102.28ZM239.783 88.7119C243.367 88.7119 246.609 87.9013 249.511 86.2799C252.412 84.5733 254.673 82.2693 256.295 79.3679C258.001 76.4666 258.855 73.2239 258.855 69.6399C258.855 66.0559 258.001 62.8559 256.295 60.0399C254.673 57.1386 252.412 54.8773 249.511 53.2559C246.609 51.5493 243.367 50.6959 239.783 50.6959C236.284 50.6959 233.084 51.5493 230.183 53.2559C227.281 54.9626 224.977 57.2666 223.271 60.1679C221.649 63.0693 220.839 66.2266 220.839 69.6399C220.839 73.1386 221.649 76.3386 223.271 79.2399C224.977 82.1413 227.281 84.4453 230.183 86.1519C233.084 87.8586 236.284 88.7119 239.783 88.7119Z" fill="#181818"/>
8
+ <path d="M169.936 38.4079H184.144V47.1119C185.936 44.0399 188.282 41.6079 191.184 39.8159C194.17 38.0239 197.456 37.1279 201.04 37.1279C202.832 37.1279 204.794 37.3839 206.928 37.8959V50.9519C204.453 50.3546 202.362 50.0559 200.656 50.0559C197.498 50.0559 194.682 50.7386 192.208 52.1039C189.733 53.4693 187.77 55.4746 186.32 58.1199C184.869 60.7653 184.144 63.9226 184.144 67.5919V101H169.936V38.4079Z" fill="#181818"/>
9
+ <path d="M83.1001 115.265C83.1001 131.025 73.8772 138.105 62.5002 138.105C51.1231 138.105 41.9002 131.025 41.9002 115.265C41.9002 108.552 45.9116 99.031 50.4687 90.6148C56.7107 79.0871 62.5002 69.0512 62.5002 69.0512C62.5002 69.0512 68.2897 79.0871 74.5316 90.6148C79.0887 99.031 83.1001 108.552 83.1001 115.265Z" fill="#0038C9"/>
10
+ <path d="M41.9002 22.8396C41.9002 7.07977 51.1231 1.00185e-06 62.5002 0C73.8772 -1.00185e-06 83.1001 7.07977 83.1001 22.8396C83.1001 29.5532 79.0887 39.0738 74.5316 47.49C68.2897 59.0178 62.5002 69.0537 62.5002 69.0537C62.5002 69.0537 56.7107 59.0177 50.4687 47.49C45.9116 39.0738 41.9002 29.5532 41.9002 22.8396Z" fill="#6E95F9"/>
11
+ <path d="M33.0668 110.129C19.517 118.009 8.81865 113.503 3.13014 103.579C-2.55838 93.6544 -1.08289 82.0691 12.4668 74.1892C18.239 70.8324 28.4302 69.5713 37.9447 69.3385C50.9768 69.0197 62.5001 69.0521 62.5001 69.0521C62.5001 69.0521 56.7663 79.1205 49.9761 90.3293C45.0187 98.5127 38.8389 106.772 33.0668 110.129Z" fill="#164CD6"/>
12
+ <path d="M91.9333 27.9759C105.483 20.096 116.181 24.6015 121.87 34.5261C127.558 44.4506 126.083 56.0359 112.533 63.9158C106.761 67.2726 96.5699 68.5337 87.0554 68.7665C74.0233 69.0853 62.5 69.0529 62.5 69.0529C62.5 69.0529 68.2337 58.9846 75.0239 47.7757C79.9813 39.5923 86.1612 31.3327 91.9333 27.9759Z" fill="#8BABFF"/>
13
+ <path d="M12.4668 63.9145C-1.08294 56.0346 -2.55843 44.4493 3.13009 34.5247C8.8186 24.6002 19.517 20.0946 33.0667 27.9745C38.8388 31.3313 45.0187 39.5909 49.9761 47.7743C56.7663 58.9832 62.5 69.0515 62.5 69.0515C62.5 69.0515 50.9767 69.084 37.9446 68.7651C28.4301 68.5323 18.2389 67.2713 12.4668 63.9145Z" fill="#3D6BE1"/>
14
+ <path d="M112.533 74.1892C126.083 82.0691 127.558 93.6544 121.87 103.579C116.181 113.503 105.483 118.009 91.9333 110.129C86.1612 106.772 79.9813 98.5127 75.0239 90.3293C68.2337 79.1205 62.5001 69.0521 62.5001 69.0521C62.5001 69.0521 74.0233 69.0197 87.0554 69.3385C96.5699 69.5713 106.761 70.8324 112.533 74.1892Z" fill="#AEC4FF"/>
15
+ </svg>
@@ -0,0 +1 @@
1
+ <svg fill="none" height="332" viewBox="0 0 480 332" width="480" xmlns="http://www.w3.org/2000/svg"><path d="m126.613 93.9842c62.622-61.3123 164.152-61.3123 226.775 0l7.536 7.3788c3.131 3.066 3.131 8.036 0 11.102l-25.781 25.242c-1.566 1.533-4.104 1.533-5.67 0l-10.371-10.154c-43.687-42.7734-114.517-42.7734-158.204 0l-11.107 10.874c-1.565 1.533-4.103 1.533-5.669 0l-25.781-25.242c-3.132-3.066-3.132-8.036 0-11.102zm280.093 52.2038 22.946 22.465c3.131 3.066 3.131 8.036 0 11.102l-103.463 101.301c-3.131 3.065-8.208 3.065-11.339 0l-73.432-71.896c-.783-.767-2.052-.767-2.835 0l-73.43 71.896c-3.131 3.065-8.208 3.065-11.339 0l-103.4657-101.302c-3.1311-3.066-3.1311-8.036 0-11.102l22.9456-22.466c3.1311-3.065 8.2077-3.065 11.3388 0l73.4333 71.897c.782.767 2.051.767 2.834 0l73.429-71.897c3.131-3.065 8.208-3.065 11.339 0l73.433 71.897c.783.767 2.052.767 2.835 0l73.431-71.895c3.132-3.066 8.208-3.066 11.339 0z" fill="#fff"/></svg>
@@ -0,0 +1,9 @@
1
+ <script>import { Badge } from "flowbite-svelte";
2
+ export let active;
3
+ </script>
4
+
5
+ {#if active}
6
+ <Badge color="green" {...$$props}>Active</Badge>
7
+ {:else}
8
+ <Badge color="yellow" {...$$props}>Inactive</Badge>
9
+ {/if}
@@ -0,0 +1,19 @@
1
+ import { SvelteComponent } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ [x: string]: any;
5
+ active: boolean;
6
+ };
7
+ events: {
8
+ [evt: string]: CustomEvent<any>;
9
+ };
10
+ slots: {};
11
+ exports?: undefined;
12
+ bindings?: undefined;
13
+ };
14
+ export type BadgeActiveProps = typeof __propDef.props;
15
+ export type BadgeActiveEvents = typeof __propDef.events;
16
+ export type BadgeActiveSlots = typeof __propDef.slots;
17
+ export default class BadgeActive extends SvelteComponent<BadgeActiveProps, BadgeActiveEvents, BadgeActiveSlots> {
18
+ }
19
+ export {};
@@ -0,0 +1 @@
1
+ <blockquote class="p-2 py-1"><slot /></blockquote>
@@ -0,0 +1,29 @@
1
+ /** @typedef {typeof __propDef.props} BlockQuoteProps */
2
+ /** @typedef {typeof __propDef.events} BlockQuoteEvents */
3
+ /** @typedef {typeof __propDef.slots} BlockQuoteSlots */
4
+ export default class BlockQuote extends SvelteComponent<{
5
+ [x: string]: never;
6
+ }, {
7
+ [evt: string]: CustomEvent<any>;
8
+ }, {
9
+ default: {};
10
+ }> {
11
+ }
12
+ export type BlockQuoteProps = typeof __propDef.props;
13
+ export type BlockQuoteEvents = typeof __propDef.events;
14
+ export type BlockQuoteSlots = typeof __propDef.slots;
15
+ import { SvelteComponent } from "svelte";
16
+ declare const __propDef: {
17
+ props: {
18
+ [x: string]: never;
19
+ };
20
+ events: {
21
+ [evt: string]: CustomEvent<any>;
22
+ };
23
+ slots: {
24
+ default: {};
25
+ };
26
+ exports?: undefined;
27
+ bindings?: undefined;
28
+ };
29
+ export {};
@@ -0,0 +1,14 @@
1
+ <script>import { DarkMode } from "flowbite-svelte";
2
+ import { writable } from "svelte/store";
3
+ export let colorTheme = writable();
4
+ function toggle(e) {
5
+ const isDark = e.target.ownerDocument.documentElement.classList.contains(
6
+ "dark"
7
+ );
8
+ colorTheme.set(isDark ? "dark" : "light");
9
+ }
10
+ </script>
11
+
12
+ <button type="button" on:click={toggle}>
13
+ <DarkMode />
14
+ </button>
@@ -0,0 +1,18 @@
1
+ import { SvelteComponent } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ colorTheme?: import("svelte/store").Writable<unknown>;
5
+ };
6
+ events: {
7
+ [evt: string]: CustomEvent<any>;
8
+ };
9
+ slots: {};
10
+ exports?: {} | undefined;
11
+ bindings?: string | undefined;
12
+ };
13
+ export type ButtonDarkModeProps = typeof __propDef.props;
14
+ export type ButtonDarkModeEvents = typeof __propDef.events;
15
+ export type ButtonDarkModeSlots = typeof __propDef.slots;
16
+ export default class ButtonDarkMode extends SvelteComponent<ButtonDarkModeProps, ButtonDarkModeEvents, ButtonDarkModeSlots> {
17
+ }
18
+ export {};
@@ -0,0 +1,11 @@
1
+ <script>import { Button, Spinner } from "flowbite-svelte";
2
+ export let loading = false;
3
+ export let disabled = false;
4
+ </script>
5
+
6
+ <Button disabled={loading || disabled} {...$$props} on:click>
7
+ {#if loading}
8
+ <Spinner class="mr-2 h-4 w-4" color="white" />
9
+ {/if}
10
+ <slot />
11
+ </Button>
@@ -0,0 +1,24 @@
1
+ import { SvelteComponent } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ [x: string]: any;
5
+ loading?: boolean | undefined;
6
+ disabled?: boolean | undefined;
7
+ };
8
+ events: {
9
+ click: MouseEvent;
10
+ } & {
11
+ [evt: string]: CustomEvent<any>;
12
+ };
13
+ slots: {
14
+ default: {};
15
+ };
16
+ exports?: undefined;
17
+ bindings?: undefined;
18
+ };
19
+ export type ButtonLoadingProps = typeof __propDef.props;
20
+ export type ButtonLoadingEvents = typeof __propDef.events;
21
+ export type ButtonLoadingSlots = typeof __propDef.slots;
22
+ export default class ButtonLoading extends SvelteComponent<ButtonLoadingProps, ButtonLoadingEvents, ButtonLoadingSlots> {
23
+ }
24
+ export {};
@@ -0,0 +1,7 @@
1
+ <script>import { Button } from "flowbite-svelte";
2
+ export let active = false;
3
+ </script>
4
+
5
+ <Button on:click disabled={active} {...$$props}>
6
+ <slot />
7
+ </Button>
@@ -0,0 +1,23 @@
1
+ import { SvelteComponent } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ [x: string]: any;
5
+ active?: boolean | undefined;
6
+ };
7
+ events: {
8
+ click: MouseEvent;
9
+ } & {
10
+ [evt: string]: CustomEvent<any>;
11
+ };
12
+ slots: {
13
+ default: {};
14
+ };
15
+ exports?: undefined;
16
+ bindings?: undefined;
17
+ };
18
+ export type ButtonTabProps = typeof __propDef.props;
19
+ export type ButtonTabEvents = typeof __propDef.events;
20
+ export type ButtonTabSlots = typeof __propDef.slots;
21
+ export default class ButtonTab extends SvelteComponent<ButtonTabProps, ButtonTabEvents, ButtonTabSlots> {
22
+ }
23
+ export {};
@@ -0,0 +1,29 @@
1
+ <script>import { bigintStringToHex } from "../utils/hex";
2
+ import { Tooltip } from "flowbite-svelte";
3
+ import { formatUnits } from "viem";
4
+ export let tokenVault;
5
+ export let subgraphName;
6
+ </script>
7
+
8
+ <div
9
+ class="flex cursor-pointer items-center justify-between space-y-2 rounded-lg border border-gray-100 p-2"
10
+ data-testid="vault-link"
11
+ >
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>
15
+ </Tooltip>
16
+ <a href={`/vaults/${subgraphName}-${tokenVault.id}`} id="token-info">
17
+ {tokenVault.token.name} ({tokenVault.token.symbol})
18
+ </a>
19
+ <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
+ )}
24
+ </span>
25
+ </div>
26
+ <div>
27
+ <slot name="buttons" />
28
+ </div>
29
+ </div>
@@ -0,0 +1,22 @@
1
+ import { SvelteComponent } from "svelte";
2
+ import type { SgVault } from '@rainlanguage/orderbook/js_api';
3
+ declare const __propDef: {
4
+ props: {
5
+ tokenVault: SgVault;
6
+ subgraphName: string;
7
+ };
8
+ events: {
9
+ [evt: string]: CustomEvent<any>;
10
+ };
11
+ slots: {
12
+ buttons: {};
13
+ };
14
+ exports?: {} | undefined;
15
+ bindings?: string | undefined;
16
+ };
17
+ export type ButtonVaultLinkProps = typeof __propDef.props;
18
+ export type ButtonVaultLinkEvents = typeof __propDef.events;
19
+ export type ButtonVaultLinkSlots = typeof __propDef.slots;
20
+ export default class ButtonVaultLink extends SvelteComponent<ButtonVaultLinkProps, ButtonVaultLinkEvents, ButtonVaultLinkSlots> {
21
+ }
22
+ export {};
@@ -0,0 +1,11 @@
1
+ <div {...$$props}>
2
+ <h5
3
+ data-testid="card-property-key"
4
+ class="text-md mb-1 w-full tracking-tight text-gray-400 dark:text-gray-400"
5
+ >
6
+ <slot name="key" />
7
+ </h5>
8
+ <p class="font-regular break-all leading-tight text-gray-800 dark:text-white">
9
+ <slot name="value" />
10
+ </p>
11
+ </div>