-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #267 from Outblock:266-feature-update-gas-estimate…
…-in-storage-check 266-feature-update-gas-estimate-in-storage-check
- Loading branch information
Showing
30 changed files
with
1,919 additions
and
1,422 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Example of features we use, but could be any string key as we add more | ||
export type FeatureFlagKey = 'free_gas' | 'swap' | 'tx_warning_prediction' | string; | ||
|
||
// Feature flags | ||
export type FeatureFlags = { | ||
// Other feature flags | ||
[key: FeatureFlagKey]: boolean; | ||
}; |
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,34 @@ | ||
/* | ||
* News items | ||
*/ | ||
export type NewsType = 'message' | 'image'; | ||
|
||
export type NewsPriority = 'urgent' | 'high' | 'medium' | 'low'; | ||
|
||
export type NewsDisplayType = | ||
| 'once' // show once | ||
| 'click' // close it when user click on it | ||
| 'expiry'; // it will display until it expired | ||
|
||
export type NewsConditionType = | ||
| 'unknown' | ||
| 'canUpgrade' | ||
| 'isIOS' | ||
| 'isAndroid' | ||
| 'isWeb' | ||
| 'insufficientStorage' | ||
| 'insufficientBalance'; | ||
|
||
export interface NewsItem { | ||
id: string; | ||
priority: NewsPriority; | ||
type: NewsType; | ||
title: string; | ||
body?: string; | ||
icon?: string; | ||
image?: string; | ||
url?: string; | ||
expiryTime: Date; | ||
displayType: NewsDisplayType; | ||
conditions?: NewsConditionType[]; | ||
} |
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,5 @@ | ||
// Matches exactly 16 hex characters, with optional 0x prefix | ||
export type FlowAddress = `0x${string & { length: 16 }}` | `${string & { length: 16 }}`; | ||
|
||
// ActiveChildType is the type of the active child in the wallet. It can be 'evm', a FlowAddress, or null. | ||
export type ActiveChildType = 'evm' | FlowAddress | null; |
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.