-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: show queued tx message in confirmation
- Loading branch information
1 parent
4626ccd
commit a563815
Showing
6 changed files
with
57 additions
and
27 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
18 changes: 18 additions & 0 deletions
18
packages/frontend/src/components/Strategies/Bull/BullTrade/types.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,6 +1,24 @@ | ||
import BigNumber from 'bignumber.js' | ||
|
||
export enum BullTradeType { | ||
Deposit = 'Deposit', | ||
Withdraw = 'Withdraw', | ||
} | ||
|
||
export enum BullTradeTransactionType { | ||
Instant = 'Instant', | ||
Queued = 'Queued', | ||
} | ||
|
||
export interface OngoingTransaction { | ||
amount: BigNumber | ||
queuedTransaction: boolean | ||
} | ||
|
||
export interface BullTransactionConfirmation { | ||
status: boolean | ||
amount: BigNumber | ||
tradeType: BullTradeType | ||
transactionType: BullTradeTransactionType | ||
txId?: 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