From 7c9b6d886a17f29eba8fac3b7f1f0cc0cdcd2c47 Mon Sep 17 00:00:00 2001 From: Lukas Date: Thu, 2 Jan 2025 22:40:08 +0100 Subject: [PATCH] chore(app): pre commit --- .../components/ChainDialog.svelte | 28 ++--- .../components/Cube/FaceWrapper.svelte | 10 +- .../components/Cube/faces/Assets.svelte | 49 ++++---- .../components/Cube/faces/Chains.svelte | 50 ++++---- .../components/Cube/faces/Intent.svelte | 36 +++--- .../components/Cube/faces/Transfer.svelte | 32 ++--- .../TransferFrom/components/Cube/index.svelte | 119 ++++++++++-------- .../components/DebugBox/index.svelte | 36 +++--- .../TransferFrom/components/Direction.svelte | 28 ++--- .../components/SelectedAsset.svelte | 24 ++-- .../lib/components/TransferFrom/index.svelte | 26 ++-- .../TransferFrom/transfer/context.ts | 4 +- .../components/TransferFrom/transfer/index.ts | 14 ++- .../TransferFrom/transfer/intents.ts | 2 +- .../TransferFrom/transfer/validation.ts | 69 +++++----- app/src/lib/components/TransferFrom/types.ts | 12 +- app/src/lib/queries/balance/index.ts | 6 +- 17 files changed, 282 insertions(+), 263 deletions(-) diff --git a/app/src/lib/components/TransferFrom/components/ChainDialog.svelte b/app/src/lib/components/TransferFrom/components/ChainDialog.svelte index 3cabf2c08c..366c35d37b 100644 --- a/app/src/lib/components/TransferFrom/components/ChainDialog.svelte +++ b/app/src/lib/components/TransferFrom/components/ChainDialog.svelte @@ -1,20 +1,20 @@ {#if dialogOpen && $context?.chains} diff --git a/app/src/lib/components/TransferFrom/components/Cube/FaceWrapper.svelte b/app/src/lib/components/TransferFrom/components/Cube/FaceWrapper.svelte index 531d6b86f9..93e983774e 100644 --- a/app/src/lib/components/TransferFrom/components/Cube/FaceWrapper.svelte +++ b/app/src/lib/components/TransferFrom/components/Cube/FaceWrapper.svelte @@ -1,9 +1,9 @@
- import type {IntentStore} from "$lib/components/TransferFrom/transfer/intents.ts"; - import type {ValidationStoreAndMethods} from "$lib/components/TransferFrom/transfer/validation.ts"; - import type {Readable} from "svelte/store"; - import type {ContextStore} from "$lib/components/TransferFrom/transfer/context.ts"; - import type {CubeFaces} from "$lib/components/TransferFrom/types.ts"; - import {showUnsupported} from "$lib/stores/user.ts"; - import {getSupportedAsset} from "$lib/utilities/helpers.ts"; - import {truncate} from "$lib/utilities/format.ts"; - import {formatUnits} from "viem"; - import {Button} from "$lib/components/ui/button"; +import type { IntentStore } from "$lib/components/TransferFrom/transfer/intents.ts" +import type { ValidationStoreAndMethods } from "$lib/components/TransferFrom/transfer/validation.ts" +import type { Readable } from "svelte/store" +import type { ContextStore } from "$lib/components/TransferFrom/transfer/context.ts" +import type { CubeFaces } from "$lib/components/TransferFrom/types.ts" +import { showUnsupported } from "$lib/stores/user.ts" +import { getSupportedAsset } from "$lib/utilities/helpers.ts" +import { truncate } from "$lib/utilities/format.ts" +import { formatUnits } from "viem" +import { Button } from "$lib/components/ui/button" - interface Props { - stores: { - intents: IntentStore - validation: ValidationStoreAndMethods - context: Readable - } - rotateTo: (face: CubeFaces) => void +interface Props { + stores: { + intents: IntentStore + validation: ValidationStoreAndMethods + context: Readable } + rotateTo: (face: CubeFaces) => void +} - export let stores: Props["stores"] - export let rotateTo: Props["rotateTo"] +export let stores: Props["stores"] +export let rotateTo: Props["rotateTo"] - let {intents, validation, context} = stores - - function setAsset(address: string) { - intents.updateField('asset', address) - rotateTo("intentFace") - } +let { intents, validation, context } = stores +function setAsset(address: string) { + intents.updateField("asset", address) + rotateTo("intentFace") +}
diff --git a/app/src/lib/components/TransferFrom/components/Cube/faces/Chains.svelte b/app/src/lib/components/TransferFrom/components/Cube/faces/Chains.svelte index 5ab242b4af..f61a5d9c68 100644 --- a/app/src/lib/components/TransferFrom/components/Cube/faces/Chains.svelte +++ b/app/src/lib/components/TransferFrom/components/Cube/faces/Chains.svelte @@ -1,34 +1,34 @@
diff --git a/app/src/lib/components/TransferFrom/components/Cube/faces/Intent.svelte b/app/src/lib/components/TransferFrom/components/Cube/faces/Intent.svelte index 77597a5df9..e8aa8a96d1 100644 --- a/app/src/lib/components/TransferFrom/components/Cube/faces/Intent.svelte +++ b/app/src/lib/components/TransferFrom/components/Cube/faces/Intent.svelte @@ -1,26 +1,26 @@
diff --git a/app/src/lib/components/TransferFrom/components/Cube/faces/Transfer.svelte b/app/src/lib/components/TransferFrom/components/Cube/faces/Transfer.svelte index 0c0da73b37..9b50fbd530 100644 --- a/app/src/lib/components/TransferFrom/components/Cube/faces/Transfer.svelte +++ b/app/src/lib/components/TransferFrom/components/Cube/faces/Transfer.svelte @@ -1,24 +1,24 @@
diff --git a/app/src/lib/components/TransferFrom/components/Cube/index.svelte b/app/src/lib/components/TransferFrom/components/Cube/index.svelte index c31e7a920d..864a4824f9 100644 --- a/app/src/lib/components/TransferFrom/components/Cube/index.svelte +++ b/app/src/lib/components/TransferFrom/components/Cube/index.svelte @@ -1,61 +1,70 @@
diff --git a/app/src/lib/components/TransferFrom/components/DebugBox/index.svelte b/app/src/lib/components/TransferFrom/components/DebugBox/index.svelte index 0798537de5..18daf287df 100644 --- a/app/src/lib/components/TransferFrom/components/DebugBox/index.svelte +++ b/app/src/lib/components/TransferFrom/components/DebugBox/index.svelte @@ -1,26 +1,26 @@ diff --git a/app/src/lib/components/TransferFrom/components/Direction.svelte b/app/src/lib/components/TransferFrom/components/Direction.svelte index 0049b4feba..8f3adad492 100644 --- a/app/src/lib/components/TransferFrom/components/Direction.svelte +++ b/app/src/lib/components/TransferFrom/components/Direction.svelte @@ -1,20 +1,20 @@
diff --git a/app/src/lib/components/TransferFrom/components/SelectedAsset.svelte b/app/src/lib/components/TransferFrom/components/SelectedAsset.svelte index 03beabf2ef..db5cb9cbb6 100644 --- a/app/src/lib/components/TransferFrom/components/SelectedAsset.svelte +++ b/app/src/lib/components/TransferFrom/components/SelectedAsset.svelte @@ -1,18 +1,18 @@