@rainlanguage/ui-components 0.0.1-alpha.55 → 0.0.1-alpha.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__fixtures__/orderDetail.d.ts +1 -1
- package/dist/__mocks__/settings.d.ts +1 -1
- package/dist/__mocks__/stores.d.ts +1 -1
- package/dist/components/ButtonVaultLink.svelte.d.ts +1 -1
- package/dist/components/CodeMirrorRainlang.svelte +1 -1
- package/dist/components/CodeMirrorRainlang.svelte.d.ts +1 -1
- package/dist/components/ListViewOrderbookFilters.svelte.d.ts +1 -1
- package/dist/components/OrderOrVaultHash.svelte.d.ts +1 -1
- package/dist/components/charts/OrderTradesChart.svelte +1 -1
- package/dist/components/charts/VaultBalanceChart.svelte +1 -1
- package/dist/components/charts/VaultBalanceChart.svelte.d.ts +1 -1
- package/dist/components/deployment/DeploymentSteps.svelte +4 -7
- package/dist/components/deployment/DeploymentSteps.svelte.d.ts +1 -2
- package/dist/components/deployment/DeploymentsSection.svelte +1 -1
- package/dist/components/deployment/DepositInput.svelte +1 -2
- package/dist/components/deployment/DepositInput.svelte.d.ts +1 -1
- package/dist/components/deployment/FieldDefinitionInput.svelte +1 -1
- package/dist/components/deployment/FieldDefinitionInput.svelte.d.ts +1 -1
- package/dist/components/deployment/SelectToken.svelte.d.ts +1 -1
- package/dist/components/deployment/StrategyPage.svelte +1 -1
- package/dist/components/deployment/TokenIOInput.svelte +1 -1
- package/dist/components/deployment/TokenIOInput.svelte.d.ts +1 -1
- package/dist/components/deployment/handleDeployment.d.ts +1 -1
- package/dist/components/detail/OrderDetail.svelte +1 -1
- package/dist/components/detail/OrderDetail.svelte.d.ts +2 -2
- package/dist/components/detail/TanstackOrderQuote.svelte +1 -1
- package/dist/components/detail/TanstackOrderQuote.svelte.d.ts +1 -1
- package/dist/components/detail/VaultDetail.svelte +1 -1
- package/dist/components/detail/VaultDetail.svelte.d.ts +1 -1
- package/dist/components/dropdown/DropdownActiveSubgraphs.svelte.d.ts +1 -1
- package/dist/components/tables/OrderAPY.svelte +1 -1
- package/dist/components/tables/OrderTradesListTable.svelte +1 -1
- package/dist/components/tables/OrderVaultsVolTable.svelte +1 -1
- package/dist/components/tables/OrdersListTable.svelte +2 -2
- package/dist/components/tables/VaultBalanceChangesTable.svelte +1 -1
- package/dist/components/tables/VaultsListTable.svelte +3 -3
- package/dist/components/tables/VaultsListTable.svelte.d.ts +2 -2
- package/dist/hooks/useGui.d.ts +1 -1
- package/dist/hooks/useGui.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/providers/GuiProvider.svelte +1 -1
- package/dist/providers/GuiProvider.svelte.d.ts +1 -1
- package/dist/services/handleShareChoices.d.ts +1 -1
- package/dist/services/historicalOrderCharts.d.ts +1 -1
- package/dist/services/registry.js +3 -3
- package/dist/stores/transactionStore.d.ts +1 -1
- package/dist/stores/transactionStore.js +1 -1
- package/dist/types/appStores.d.ts +1 -1
- package/dist/types/modal.d.ts +1 -1
- package/dist/types/strategy.d.ts +1 -1
- package/dist/types/transaction.d.ts +1 -1
- package/dist/utils/constructHashLink.d.ts +1 -1
- package/dist/utils/vault.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ConfigSource } from '@rainlanguage/orderbook
|
|
1
|
+
import type { ConfigSource } from '@rainlanguage/orderbook';
|
|
2
2
|
export declare const mockConfigSource: ConfigSource;
|
|
3
3
|
export declare const mockSettingsStore: import("svelte/store").Writable<ConfigSource>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ConfigSource } from '@rainlanguage/orderbook
|
|
1
|
+
import type { ConfigSource } from '@rainlanguage/orderbook';
|
|
2
2
|
import { type Config } from '@wagmi/core';
|
|
3
3
|
import type { Page } from '@sveltejs/kit';
|
|
4
4
|
export declare const mockWalletAddressMatchesOrBlankStore: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
2
|
import type { Readable, Writable } from 'svelte/store';
|
|
3
|
-
import type { ConfigSource } from '@rainlanguage/orderbook
|
|
3
|
+
import type { ConfigSource } from '@rainlanguage/orderbook';
|
|
4
4
|
declare class __sveltets_Render<T> {
|
|
5
5
|
props(): {
|
|
6
6
|
settings: Writable<ConfigSource | undefined>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
-
import type { SgOrderAsIO, SgOrder, SgVault } from '@rainlanguage/orderbook
|
|
2
|
+
import type { SgOrderAsIO, SgOrder, SgVault } from '@rainlanguage/orderbook';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
5
|
orderOrVault: SgOrder | SgVault | SgOrderAsIO;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<script>import { getOrderTradesList } from "@rainlanguage/orderbook
|
|
1
|
+
<script>import { getOrderTradesList } from "@rainlanguage/orderbook";
|
|
2
2
|
import { prepareHistoricalOrderChartData } from "../../services/historicalOrderCharts";
|
|
3
3
|
import TanstackLightweightChartLine from "./TanstackLightweightChartLine.svelte";
|
|
4
4
|
import { createQuery } from "@tanstack/svelte-query";
|
|
@@ -3,7 +3,7 @@ import { bigintToFloat } from "../../utils/number";
|
|
|
3
3
|
import { createQuery } from "@tanstack/svelte-query";
|
|
4
4
|
import {
|
|
5
5
|
getVaultBalanceChanges
|
|
6
|
-
} from "@rainlanguage/orderbook
|
|
6
|
+
} from "@rainlanguage/orderbook";
|
|
7
7
|
import TanstackLightweightChartLine from "../charts/TanstackLightweightChartLine.svelte";
|
|
8
8
|
import { QKEY_VAULT_CHANGES } from "../../queries/keys";
|
|
9
9
|
export let vault;
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
<script>import { Alert, Button, Spinner } from "flowbite-svelte";
|
|
1
|
+
<script>import { Alert, Button, Spinner, Toggle } from "flowbite-svelte";
|
|
2
2
|
import TokenIOInput from "./TokenIOInput.svelte";
|
|
3
3
|
import ComposedRainlangModal from "./ComposedRainlangModal.svelte";
|
|
4
4
|
import {
|
|
5
|
-
} from "@rainlanguage/orderbook
|
|
5
|
+
} from "@rainlanguage/orderbook";
|
|
6
6
|
import WalletConnect from "../wallet/WalletConnect.svelte";
|
|
7
|
-
import {
|
|
8
|
-
} from "@rainlanguage/orderbook/js_api";
|
|
9
|
-
import { fade } from "svelte/transition";
|
|
10
|
-
import { Toggle } from "flowbite-svelte";
|
|
11
7
|
import {} from "svelte/store";
|
|
12
|
-
import ShareChoicesButton from "./ShareChoicesButton.svelte";
|
|
13
8
|
import { handleShareChoices } from "../../services/handleShareChoices";
|
|
14
9
|
import { DeploymentStepsError, DeploymentStepsErrorCode } from "../../errors";
|
|
15
10
|
import { onMount } from "svelte";
|
|
@@ -21,6 +16,8 @@ import { useGui } from "../../hooks/useGui";
|
|
|
21
16
|
import { useAccount } from "../../providers/wallet/useAccount";
|
|
22
17
|
import { handleDeployment } from "./handleDeployment";
|
|
23
18
|
import {} from "../../types/transaction";
|
|
19
|
+
import { fade } from "svelte/transition";
|
|
20
|
+
import ShareChoicesButton from "./ShareChoicesButton.svelte";
|
|
24
21
|
export let deployment;
|
|
25
22
|
export let strategyDetail;
|
|
26
23
|
export let onDeploy;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
-
import { type ConfigSource } from '@rainlanguage/orderbook
|
|
3
|
-
import { type NameAndDescriptionCfg } from '@rainlanguage/orderbook/js_api';
|
|
2
|
+
import { type ConfigSource, type NameAndDescriptionCfg } from '@rainlanguage/orderbook';
|
|
4
3
|
import { type Writable } from 'svelte/store';
|
|
5
4
|
import type { AppKit } from '@reown/appkit';
|
|
6
5
|
import { type DeploymentArgs } from '../../types/transaction';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
<script>import {
|
|
2
|
-
} from "@rainlanguage/orderbook/js_api";
|
|
1
|
+
<script>import {} from "@rainlanguage/orderbook";
|
|
3
2
|
import { Input } from "flowbite-svelte";
|
|
4
3
|
import ButtonSelectOption from "./ButtonSelectOption.svelte";
|
|
5
4
|
import DeploymentSectionHeader from "./DeploymentSectionHeader.svelte";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script>import { Input } from "flowbite-svelte";
|
|
2
2
|
import {
|
|
3
|
-
} from "@rainlanguage/orderbook
|
|
3
|
+
} from "@rainlanguage/orderbook";
|
|
4
4
|
import ButtonSelectOption from "./ButtonSelectOption.svelte";
|
|
5
5
|
import DeploymentSectionHeader from "./DeploymentSectionHeader.svelte";
|
|
6
6
|
import { onMount } from "svelte";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
-
import { type GuiFieldDefinitionCfg } from '@rainlanguage/orderbook
|
|
2
|
+
import { type GuiFieldDefinitionCfg } from '@rainlanguage/orderbook';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
5
|
fieldDefinition: GuiFieldDefinitionCfg;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script>import { fade } from "svelte/transition";
|
|
2
|
-
import { DotrainOrderGui } from "@rainlanguage/orderbook
|
|
2
|
+
import { DotrainOrderGui } from "@rainlanguage/orderbook";
|
|
3
3
|
import DeploymentsSection from "./DeploymentsSection.svelte";
|
|
4
4
|
import SvelteMarkdown from "svelte-markdown";
|
|
5
5
|
export let strategyName = "";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script>import { Input } from "flowbite-svelte";
|
|
2
|
-
import {} from "@rainlanguage/orderbook
|
|
2
|
+
import {} from "@rainlanguage/orderbook";
|
|
3
3
|
import DeploymentSectionHeader from "./DeploymentSectionHeader.svelte";
|
|
4
4
|
import { onMount } from "svelte";
|
|
5
5
|
import { useGui } from "../../hooks/useGui";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DotrainOrderGui } from '@rainlanguage/orderbook
|
|
1
|
+
import type { DotrainOrderGui } from '@rainlanguage/orderbook';
|
|
2
2
|
import type { DeploymentArgs } from '../../types/transaction';
|
|
3
3
|
export declare enum AddOrderErrors {
|
|
4
4
|
ADD_ORDER_FAILED = "Failed to add order",
|
|
@@ -12,7 +12,7 @@ import { QKEY_ORDER } from "../../queries/keys";
|
|
|
12
12
|
import CodeMirrorRainlang from "../CodeMirrorRainlang.svelte";
|
|
13
13
|
import {
|
|
14
14
|
getOrderByHash
|
|
15
|
-
} from "@rainlanguage/orderbook
|
|
15
|
+
} from "@rainlanguage/orderbook";
|
|
16
16
|
import { createQuery, useQueryClient } from "@tanstack/svelte-query";
|
|
17
17
|
import { Button, TabItem, Tabs, Tooltip } from "flowbite-svelte";
|
|
18
18
|
import { onDestroy } from "svelte";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
-
import { type SgOrder } from '@rainlanguage/orderbook
|
|
2
|
+
import { type SgOrder } from '@rainlanguage/orderbook';
|
|
3
3
|
import type { Hex } from 'viem';
|
|
4
4
|
import type { QuoteDebugModalHandler, DebugTradeModalHandler } from '../../types/modal';
|
|
5
|
-
import type { SgVault } from '@rainlanguage/orderbook
|
|
5
|
+
import type { SgVault } from '@rainlanguage/orderbook';
|
|
6
6
|
declare const __propDef: {
|
|
7
7
|
props: {
|
|
8
8
|
handleQuoteDebugModal?: QuoteDebugModalHandler | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script generics="T">import { invalidateIdQuery } from "../../queries/queryClient";
|
|
2
2
|
import Refresh from "../icon/Refresh.svelte";
|
|
3
3
|
import EditableSpan from "../EditableSpan.svelte";
|
|
4
|
-
import { getOrderQuote } from "@rainlanguage/orderbook
|
|
4
|
+
import { getOrderQuote } from "@rainlanguage/orderbook";
|
|
5
5
|
import { QKEY_ORDER_QUOTE } from "../../queries/keys";
|
|
6
6
|
import { formatUnits, hexToNumber, isHex } from "viem";
|
|
7
7
|
import { createQuery, useQueryClient } from "@tanstack/svelte-query";
|
|
@@ -5,7 +5,7 @@ import VaultBalanceChart from "../charts/VaultBalanceChart.svelte";
|
|
|
5
5
|
import TanstackPageContentDetail from "./TanstackPageContentDetail.svelte";
|
|
6
6
|
import CardProperty from "../CardProperty.svelte";
|
|
7
7
|
import { QKEY_VAULT } from "../../queries/keys";
|
|
8
|
-
import { getVault } from "@rainlanguage/orderbook
|
|
8
|
+
import { getVault } from "@rainlanguage/orderbook";
|
|
9
9
|
import { formatUnits, isAddress, isAddressEqual } from "viem";
|
|
10
10
|
import { createQuery } from "@tanstack/svelte-query";
|
|
11
11
|
import { onDestroy } from "svelte";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { type SgVault } from '@rainlanguage/orderbook';
|
|
2
3
|
import type { ChartTheme } from '../../utils/lightweightChartsThemes';
|
|
3
4
|
import type { Readable } from 'svelte/store';
|
|
4
|
-
import type { SgVault } from '@rainlanguage/orderbook/js_api';
|
|
5
5
|
import type { AppStoresInterface } from '../../types/appStores';
|
|
6
6
|
declare const __propDef: {
|
|
7
7
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
2
|
import type { Writable } from 'svelte/store';
|
|
3
|
-
import type { ConfigSource } from '@rainlanguage/orderbook
|
|
3
|
+
import type { ConfigSource } from '@rainlanguage/orderbook';
|
|
4
4
|
declare const __propDef: {
|
|
5
5
|
props: {
|
|
6
6
|
settings: ConfigSource;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>import { createInfiniteQuery } from "@tanstack/svelte-query";
|
|
2
2
|
import TanstackAppTable from "../TanstackAppTable.svelte";
|
|
3
3
|
import { QKEY_ORDER_APY } from "../../queries/keys";
|
|
4
|
-
import { getOrderPerformance } from "@rainlanguage/orderbook
|
|
4
|
+
import { getOrderPerformance } from "@rainlanguage/orderbook";
|
|
5
5
|
import { TableBodyCell, TableHeadCell } from "flowbite-svelte";
|
|
6
6
|
import ApyTimeFilters from "../charts/APYTimeFilters.svelte";
|
|
7
7
|
import { bigintStringToPercentage } from "../../utils/number";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>import { createInfiniteQuery } from "@tanstack/svelte-query";
|
|
2
2
|
import TanstackAppTable from "../TanstackAppTable.svelte";
|
|
3
3
|
import { QKEY_ORDER_TRADES_LIST } from "../../queries/keys";
|
|
4
|
-
import { getOrderTradesList, getOrderTradesCount } from "@rainlanguage/orderbook
|
|
4
|
+
import { getOrderTradesList, getOrderTradesCount } from "@rainlanguage/orderbook";
|
|
5
5
|
import { DEFAULT_PAGE_SIZE } from "../../queries/constants";
|
|
6
6
|
import { TableBodyCell, TableHeadCell } from "flowbite-svelte";
|
|
7
7
|
import { formatTimestampSecondsAsLocal } from "../../utils/time";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>import { createInfiniteQuery } from "@tanstack/svelte-query";
|
|
2
2
|
import TanstackAppTable from "../TanstackAppTable.svelte";
|
|
3
3
|
import { QKEY_VAULTS_VOL_LIST } from "../../queries/keys";
|
|
4
|
-
import { getOrderVaultsVolume } from "@rainlanguage/orderbook
|
|
4
|
+
import { getOrderVaultsVolume } from "@rainlanguage/orderbook";
|
|
5
5
|
import { TableBodyCell, TableHeadCell } from "flowbite-svelte";
|
|
6
6
|
import Hash, { HashType } from "../Hash.svelte";
|
|
7
7
|
import { formatUnits } from "viem";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script generics="T">import { goto } from "$app/navigation";
|
|
2
2
|
import { DotsVerticalOutline } from "flowbite-svelte-icons";
|
|
3
|
-
import {} from "@rainlanguage/orderbook
|
|
3
|
+
import {} from "@rainlanguage/orderbook";
|
|
4
4
|
import { createInfiniteQuery } from "@tanstack/svelte-query";
|
|
5
|
-
import { getOrders } from "@rainlanguage/orderbook
|
|
5
|
+
import { getOrders } from "@rainlanguage/orderbook";
|
|
6
6
|
import TanstackAppTable from "../TanstackAppTable.svelte";
|
|
7
7
|
import { formatTimestampSecondsAsLocal } from "../../utils/time";
|
|
8
8
|
import ListViewOrderbookFilters from "../ListViewOrderbookFilters.svelte";
|
|
@@ -3,7 +3,7 @@ import { formatUnits } from "viem";
|
|
|
3
3
|
import { createInfiniteQuery } from "@tanstack/svelte-query";
|
|
4
4
|
import {
|
|
5
5
|
getVaultBalanceChanges
|
|
6
|
-
} from "@rainlanguage/orderbook
|
|
6
|
+
} from "@rainlanguage/orderbook";
|
|
7
7
|
import { formatTimestampSecondsAsLocal } from "../../utils/time";
|
|
8
8
|
import Hash, { HashType } from "../Hash.svelte";
|
|
9
9
|
import { QKEY_VAULT_CHANGES } from "../../queries/keys";
|
|
@@ -9,12 +9,12 @@ import Hash, { HashType } from "../Hash.svelte";
|
|
|
9
9
|
import { DEFAULT_PAGE_SIZE, DEFAULT_REFRESH_INTERVAL } from "../../queries/constants";
|
|
10
10
|
import { vaultBalanceDisplay } from "../../utils/vault";
|
|
11
11
|
import { bigintStringToHex } from "../../utils/hex";
|
|
12
|
-
import {} from "@rainlanguage/orderbook
|
|
13
|
-
import {} from "@rainlanguage/orderbook
|
|
12
|
+
import {} from "@rainlanguage/orderbook";
|
|
13
|
+
import {} from "@rainlanguage/orderbook";
|
|
14
14
|
import { QKEY_VAULTS } from "../../queries/keys";
|
|
15
15
|
import {
|
|
16
16
|
getVaults
|
|
17
|
-
} from "@rainlanguage/orderbook
|
|
17
|
+
} from "@rainlanguage/orderbook";
|
|
18
18
|
import {} from "svelte/store";
|
|
19
19
|
import { useAccount } from "../../providers/wallet/useAccount";
|
|
20
20
|
export let activeOrderbook;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
-
import { type ConfigSource, type OrderbookConfigSource } from '@rainlanguage/orderbook
|
|
3
|
-
import { type SgVault } from '@rainlanguage/orderbook
|
|
2
|
+
import { type ConfigSource, type OrderbookConfigSource } from '@rainlanguage/orderbook';
|
|
3
|
+
import { type SgVault } from '@rainlanguage/orderbook';
|
|
4
4
|
import { type Writable, type Readable } from 'svelte/store';
|
|
5
5
|
import type { AppStoresInterface } from '../../types/appStores.ts';
|
|
6
6
|
declare class __sveltets_Render<T> {
|
package/dist/hooks/useGui.d.ts
CHANGED
package/dist/hooks/useGui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getContext } from 'svelte';
|
|
2
|
-
import { DotrainOrderGui } from '@rainlanguage/orderbook
|
|
2
|
+
import { DotrainOrderGui } from '@rainlanguage/orderbook';
|
|
3
3
|
import { DeploymentStepsError, DeploymentStepsErrorCode } from '../errors/DeploymentStepsError';
|
|
4
4
|
export const GUI_CONTEXT_KEY = 'gui-context';
|
|
5
5
|
export function useGui() {
|
package/dist/index.d.ts
CHANGED
|
@@ -65,7 +65,7 @@ export { default as InvalidStrategiesSection } from './components/deployment/Inv
|
|
|
65
65
|
export { default as ValidStrategiesSection } from './components/deployment/ValidStrategiesSection.svelte';
|
|
66
66
|
export { default as InputRegistryUrl } from './components/input/InputRegistryUrl.svelte';
|
|
67
67
|
export type { AppStoresInterface } from './types/appStores.ts';
|
|
68
|
-
export type { ConfigSource, OrderbookConfigSource, OrderbookCfgRef } from '@rainlanguage/orderbook
|
|
68
|
+
export type { ConfigSource, OrderbookConfigSource, OrderbookCfgRef } from '@rainlanguage/orderbook';
|
|
69
69
|
export { TransactionStatus, TransactionErrorMessage, type TransactionState, type ExtendedApprovalCalldata } from './stores/transactionStore';
|
|
70
70
|
export type { DeploymentArgs, DepositOrWithdrawArgs, OrderRemoveArgs } from './types/transaction';
|
|
71
71
|
export type { DepositOrWithdrawModalProps, OrderRemoveModalProps, QuoteDebugModalHandler, DebugTradeModalHandler, DeployModalProps, DisclaimerModalProps } from './types/modal';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script>import { setContext } from "svelte";
|
|
2
|
-
import { DotrainOrderGui } from "@rainlanguage/orderbook
|
|
2
|
+
import { DotrainOrderGui } from "@rainlanguage/orderbook";
|
|
3
3
|
import { GUI_CONTEXT_KEY } from "../hooks/useGui";
|
|
4
4
|
export let gui;
|
|
5
5
|
setContext(GUI_CONTEXT_KEY, gui);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { DotrainOrderGui } from '@rainlanguage/orderbook
|
|
1
|
+
import type { DotrainOrderGui } from '@rainlanguage/orderbook';
|
|
2
2
|
export declare function handleShareChoices(gui: DotrainOrderGui, registryUrl: string): Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DotrainOrderGui } from '@rainlanguage/orderbook
|
|
1
|
+
import { DotrainOrderGui } from '@rainlanguage/orderbook';
|
|
2
2
|
/**
|
|
3
3
|
* Fetches and parses a file registry from a given URL.
|
|
4
4
|
* The registry is expected to be a text file where each line contains a file name and URL separated by a space.
|
|
@@ -167,13 +167,13 @@ file2.rain https://example.com/file2.rain`;
|
|
|
167
167
|
});
|
|
168
168
|
describe('validateStrategies', async () => {
|
|
169
169
|
// Mock the DotrainOrderGui dependency
|
|
170
|
-
vi.mock('@rainlanguage/orderbook
|
|
170
|
+
vi.mock('@rainlanguage/orderbook', () => ({
|
|
171
171
|
DotrainOrderGui: {
|
|
172
172
|
getStrategyDetails: vi.fn()
|
|
173
173
|
}
|
|
174
174
|
}));
|
|
175
175
|
// Import DotrainOrderGui after mocking
|
|
176
|
-
const { DotrainOrderGui } = await import('@rainlanguage/orderbook
|
|
176
|
+
const { DotrainOrderGui } = await import('@rainlanguage/orderbook');
|
|
177
177
|
beforeEach(() => {
|
|
178
178
|
vi.resetAllMocks();
|
|
179
179
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Hex } from 'viem';
|
|
2
2
|
import type { Config } from '@wagmi/core';
|
|
3
|
-
import type { ApprovalCalldata, DepositCalldataResult, RemoveOrderCalldata, SgVault, WithdrawCalldataResult } from '@rainlanguage/orderbook
|
|
3
|
+
import type { ApprovalCalldata, DepositCalldataResult, RemoveOrderCalldata, SgVault, WithdrawCalldataResult } from '@rainlanguage/orderbook';
|
|
4
4
|
import type { DeploymentArgs } from '../types/transaction';
|
|
5
5
|
export declare const ADDRESS_ZERO = "0x0000000000000000000000000000000000000000";
|
|
6
6
|
export declare const ONE: bigint;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { writable } from 'svelte/store';
|
|
2
2
|
import { sendTransaction, switchChain, waitForTransactionReceipt } from '@wagmi/core';
|
|
3
|
-
import { getTransaction, getTransactionAddOrders, getTransactionRemoveOrders } from '@rainlanguage/orderbook
|
|
3
|
+
import { getTransaction, getTransactionAddOrders, getTransactionRemoveOrders } from '@rainlanguage/orderbook';
|
|
4
4
|
import { getExplorerLink } from '../services/getExplorerLink';
|
|
5
5
|
export const ADDRESS_ZERO = '0x0000000000000000000000000000000000000000';
|
|
6
6
|
export const ONE = BigInt('1000000000000000000');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Readable, Writable } from 'svelte/store';
|
|
2
|
-
import type { ConfigSource, OrderbookConfigSource } from '@rainlanguage/orderbook
|
|
2
|
+
import type { ConfigSource, OrderbookConfigSource } from '@rainlanguage/orderbook';
|
|
3
3
|
export interface AppStoresInterface {
|
|
4
4
|
settings: Writable<ConfigSource | undefined>;
|
|
5
5
|
activeSubgraphs: Writable<Record<string, string>>;
|
package/dist/types/modal.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SgOrder } from '@rainlanguage/orderbook
|
|
1
|
+
import type { SgOrder } from '@rainlanguage/orderbook';
|
|
2
2
|
import type { DepositOrWithdrawArgs, OrderRemoveArgs, DeploymentArgs } from './transaction';
|
|
3
3
|
export type DepositOrWithdrawModalProps = {
|
|
4
4
|
open: boolean;
|
package/dist/types/strategy.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ExtendedApprovalCalldata } from '../stores/transactionStore';
|
|
2
2
|
import type { Hex } from 'viem';
|
|
3
|
-
import type { DepositAndAddOrderCalldataResult, SgOrder, SgVault } from '@rainlanguage/orderbook
|
|
3
|
+
import type { DepositAndAddOrderCalldataResult, SgOrder, SgVault } from '@rainlanguage/orderbook';
|
|
4
4
|
export type DeploymentArgs = {
|
|
5
5
|
approvals: ExtendedApprovalCalldata[];
|
|
6
6
|
deploymentCalldata: DepositAndAddOrderCalldataResult;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SgOrder, SgOrderAsIO, SgVault } from '@rainlanguage/orderbook
|
|
1
|
+
import type { SgOrder, SgOrderAsIO, SgVault } from '@rainlanguage/orderbook';
|
|
2
2
|
type OrderOrVault = SgOrder | SgOrderAsIO | SgVault;
|
|
3
3
|
/**
|
|
4
4
|
* Constructs a link path for an order or vault based on its type and network
|
package/dist/utils/vault.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { SgVault } from '@rainlanguage/orderbook
|
|
1
|
+
import type { SgVault } from '@rainlanguage/orderbook';
|
|
2
2
|
export declare const vaultBalanceDisplay: (vault: SgVault) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rainlanguage/ui-components",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.57",
|
|
4
4
|
"description": "A component library for building Svelte applications to be used with Raindex.",
|
|
5
5
|
"license": "LicenseRef-DCL-1.0",
|
|
6
6
|
"author": "Rain Open Source Software Ltd",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@fontsource/dm-sans": "5.1.0",
|
|
54
54
|
"@imask/svelte": "7.6.1",
|
|
55
55
|
"@observablehq/plot": "0.6.16",
|
|
56
|
-
"@rainlanguage/orderbook": "0.0.1-alpha.
|
|
56
|
+
"@rainlanguage/orderbook": "0.0.1-alpha.57",
|
|
57
57
|
"@reown/appkit": "1.6.4",
|
|
58
58
|
"@reown/appkit-adapter-wagmi": "1.6.4",
|
|
59
59
|
"@sentry/sveltekit": "7.120.0",
|