-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
300 additions
and
63 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
18 changes: 14 additions & 4 deletions
18
src/app/features/activity-list/components/transaction-list/transaction-list.model.ts
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,15 +1,25 @@ | ||
import { AddressTransactionWithTransfers } from '@stacks/stacks-blockchain-api-types'; | ||
|
||
import type { BitcoinTx, Blockchain } from '@leather.io/models'; | ||
import type { BitcoinTx } from '@leather.io/models'; | ||
|
||
import type { SbtcDeposit } from '@app/query/sbtc/sbtc-deposits.query'; | ||
|
||
export interface TransactionListBitcoinTx { | ||
blockchain: Extract<Blockchain, 'bitcoin'>; | ||
blockchain: 'bitcoin'; | ||
transaction: BitcoinTx; | ||
} | ||
|
||
export interface TransactionListStacksTx { | ||
blockchain: Extract<Blockchain, 'stacks'>; | ||
blockchain: 'stacks'; | ||
transaction: AddressTransactionWithTransfers; | ||
} | ||
|
||
export type TransactionListTxs = TransactionListBitcoinTx | TransactionListStacksTx; | ||
export interface TransactionListSbtcDeposit { | ||
blockchain: 'bitcoin-stacks'; | ||
deposit: SbtcDeposit; | ||
} | ||
|
||
export type TransactionListTxs = | ||
| TransactionListBitcoinTx | ||
| TransactionListStacksTx | ||
| TransactionListSbtcDeposit; |
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
Oops, something went wrong.