-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/ic-token-zod' into feat/optional-index-canister
- Loading branch information
Showing
56 changed files
with
538 additions
and
217 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
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
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
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
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
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
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,4 +1,4 @@ | ||
import type { IcTransactionIdText } from '$icp/types/ic'; | ||
import type { IcTransactionIdText } from '$icp/types/ic-transaction'; | ||
import type { RetrieveBtcStatusV2 } from '@dfinity/ckbtc'; | ||
|
||
export type BtcWithdrawalStatuses = Record<IcTransactionIdText, RetrieveBtcStatusV2>; |
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,46 @@ | ||
import type { TransactionType } from '$lib/types/transaction'; | ||
import type { Transaction, TransactionWithId } from '@dfinity/ledger-icp'; | ||
import type { | ||
IcrcTransaction as IcrcTransactionCandid, | ||
IcrcTransactionWithId | ||
} from '@dfinity/ledger-icrc'; | ||
|
||
export interface IcTransactionAddOnsInfo { | ||
transferToSelf?: 'send' | 'receive'; | ||
} | ||
|
||
export type IcpTransaction = { transaction: Transaction & IcTransactionAddOnsInfo } & Pick< | ||
TransactionWithId, | ||
'id' | ||
>; | ||
export type IcrcTransaction = { | ||
transaction: IcrcTransactionCandid & IcTransactionAddOnsInfo; | ||
} & Pick<IcrcTransactionWithId, 'id'>; | ||
|
||
export type IcTransaction = IcpTransaction | IcrcTransaction; | ||
|
||
export type IcTransactionType = TransactionType | 'approve' | 'burn' | 'mint'; | ||
|
||
export type IcTransactionIdText = string; | ||
|
||
export type IcTransactionStatus = 'executed' | 'pending' | 'reimbursed' | 'failed'; | ||
|
||
export interface IcTransactionUi { | ||
id: bigint | string; | ||
type: IcTransactionType; | ||
// e.g. BTC Received | ||
typeLabel?: string; | ||
from?: string; | ||
// e.g. From: BTC Network | ||
fromLabel?: string; | ||
fromExplorerUrl?: string; | ||
to?: string; | ||
// e.g. To: BTC Network | ||
toLabel?: string; | ||
toExplorerUrl?: string; | ||
incoming?: boolean; | ||
value?: bigint; | ||
timestamp?: bigint; | ||
status: IcTransactionStatus; | ||
txExplorerUrl?: string; | ||
} |
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
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
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
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
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...components/hero/about/AboutWhyOisy.svelte → .../lib/components/about/AboutWhyOisy.svelte
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
File renamed without changes.
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
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,14 +1,8 @@ | ||
<script lang="ts"> | ||
import SettingsSignedIn from '$lib/components/settings/SettingsSignedIn.svelte'; | ||
import SettingsSignedOut from '$lib/components/settings/SettingsSignedOut.svelte'; | ||
import SettingsVersion from '$lib/components/settings/SettingsVersion.svelte'; | ||
import { authSignedIn } from '$lib/derived/auth.derived'; | ||
</script> | ||
|
||
{#if $authSignedIn} | ||
<SettingsSignedIn /> | ||
{:else} | ||
<SettingsSignedOut /> | ||
{/if} | ||
<SettingsSignedIn /> | ||
|
||
<SettingsVersion /> |
6 changes: 0 additions & 6 deletions
6
src/frontend/src/lib/components/settings/SettingsSignedOut.svelte
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
src/frontend/src/lib/components/tokens/TokenCardSignedOut.svelte
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.