-
Notifications
You must be signed in to change notification settings - Fork 820
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(wallet): migrate swap to brave-core (#18562)
* chore(wallet): Migrate Swap V2 to Brave Core * chore(wallet): Swap V2 integration fixes * chore(wallet): Swap v2 android fixes * chore(wallet): fix presubmit errors * fix-icons * fix-more-presubmit-errors * add-reduce-network-name-util * fix-noopener-error * fix-button-color * chore(wallet): add useSelectedAccountQuery slice(extra) * fix(wallet): fix spot prices and cleanup types * fix-lp-wrapping-and-additional-icons * review(thypon): fix console.log statements * review(thypon): convert fake SVGs to PNG files * chore: fix presubmit error * fix vulnerable regex * fix vulnerable regex v2 * more presubmit fixes * review(josheleonard): review fixes (part 1) * presubmit fixes * review(josheleonard): review fixes (part 2) * fixed build for android Signed-off-by: Vadym Struts <vstruts@brave.com> --------- Signed-off-by: Vadym Struts <vstruts@brave.com> Co-authored-by: Douglas Daniel <douglashdaniel@gmail.com> Co-authored-by: Vadym Struts <vstruts@brave.com>
- Loading branch information
1 parent
b844cff
commit d293cd9
Showing
149 changed files
with
8,208 additions
and
707 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright (c) 2023 The Brave Authors. All rights reserved. | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
// You can obtain one at https://mozilla.org/MPL/2.0/. | ||
|
||
// Types | ||
import { GasFeeOption } from '../constants/types' | ||
|
||
export const gasFeeOptions: GasFeeOption[] = [ | ||
{ | ||
id: 'slow', | ||
name: 'braveSwapSlow', | ||
icon: 'send' | ||
}, | ||
{ | ||
id: 'average', | ||
name: 'braveSwapAverage', | ||
icon: 'network-speed-average' | ||
}, | ||
{ | ||
id: 'fast', | ||
name: 'braveSwapFast', | ||
icon: 'rocket' | ||
} | ||
] |
18 changes: 18 additions & 0 deletions
18
components/brave_wallet_ui/options/swap-and-send-options.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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright (c) 2023 The Brave Authors. All rights reserved. | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
// You can obtain one at https://mozilla.org/MPL/2.0/. | ||
|
||
// Types | ||
import { SwapAndSend } from '../constants/types' | ||
|
||
export const SwapAndSendOptions: SwapAndSend[] = [ | ||
{ | ||
label: 'braveSwapToAccount', | ||
name: 'to-account' | ||
}, | ||
{ | ||
label: 'braveSwapToAddress', | ||
name: 'to-address' | ||
} | ||
] |
Oops, something went wrong.