-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(app): working balances query for evm
- Loading branch information
Showing
4 changed files
with
75 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { graphql } from "gql.tada" | ||
|
||
export const transfersQuery = graphql(/* GraphQL */ ` | ||
query PacketsQuery($limit: Int = 100) { | ||
v0_packets(limit: $limit, order_by: {destination_time: desc_nulls_last, source_time: desc_nulls_last}) { | ||
from_chain_id | ||
from_channel_id | ||
source_port | ||
source_block_hash | ||
source_time | ||
to_chain_id | ||
to_channel_id | ||
to_port_id | ||
destination_block_hash | ||
destination_time | ||
source_data | ||
status | ||
} | ||
} | ||
`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,35 @@ | ||
<script lang="ts"> | ||
import * as Card from "$lib/components/ui/card/index.ts" | ||
import { sepoliaStore } from "$lib/wallet/evm/config.ts" | ||
import { cosmosStore } from "$lib/wallet/cosmos" | ||
import AlphaNotice from "$lib/components/alpha-notice.svelte"; | ||
import { summarizeString } from "$lib/utilities/format"; | ||
</script> | ||
|
||
<main class="flex flex-col items-center size-full p-4 mt-16"> | ||
<Card.Root class="max-w-lg"> | ||
<Card.Header> | ||
<Card.Title>Welcome to Union</Card.Title> | ||
</Card.Header> | ||
<Card.Content class="flex flex-col gap-2"> | ||
<p>Connect an <b>EVM</b> and <b>Cosmos</b> wallet to begin bridging.</p> | ||
|
||
<div> | ||
{#if $sepoliaStore.address } | ||
✅ EVM wallet <span class="font-mono">{summarizeString($sepoliaStore.address, 6)}</span> connected | ||
{:else} | ||
Connect EVM wallet | ||
{/if} | ||
</div> | ||
|
||
<div> | ||
{#if $cosmosStore.address } | ||
✅Cosmos wallet connected | ||
{:else} | ||
Connect cosmos wallet | ||
{/if} | ||
</div> | ||
</Card.Content> | ||
</Card.Root> | ||
</main> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters