-
Notifications
You must be signed in to change notification settings - Fork 21
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 #1239 from bancorprotocol/add-sei-wallets
Replace web3-react with wagmi and add seif, tailwind and compass wallet connectors
- Loading branch information
Showing
153 changed files
with
2,910 additions
and
2,036 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
Binary file modified
BIN
-25 Bytes
(100%)
...screenshots/simulator/recurring/Recurring range limit/simulator-input-price.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+5 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable buy limit/deposit/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+5 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable buy limit/editPrices/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+296 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring limit limit/deposit/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+321 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring range limit/deposit/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,57 @@ | ||
import { ReactComponent as IconCoinbaseLogo } from 'assets/logos/coinbase.svg'; | ||
import { ReactComponent as IconCompassWalletLogo } from 'assets/logos/compassWallet.svg'; | ||
import { ReactComponent as IconTailwindWalletLogo } from 'assets/logos/tailwindWallet.svg'; | ||
import { ReactComponent as IconSeifWalletLogo } from 'assets/logos/seifWallet.svg'; | ||
import { ReactComponent as IconGnosisLogo } from 'assets/logos/gnosis.svg'; | ||
import { ReactComponent as IconImposterLogo } from 'assets/logos/imposter.svg'; | ||
import { ReactComponent as IconMetaMaskLogo } from 'assets/logos/metamask.svg'; | ||
import { ReactComponent as IconWalletConnectLogo } from 'assets/logos/walletConnect.svg'; | ||
import { ReactComponent as IconWallet } from 'assets/icons/wallet.svg'; | ||
|
||
type Props = { | ||
isImposter?: boolean; | ||
selectedWallet?: string; | ||
icon?: string; | ||
className?: string; | ||
}; | ||
export const WalletIcon = ({ | ||
isImposter, | ||
selectedWallet, | ||
icon, | ||
className, | ||
}: Props) => { | ||
if (isImposter) { | ||
return <IconImposterLogo className={className} />; | ||
} | ||
|
||
// For EIP6963 injected wallets | ||
if (icon) { | ||
return ( | ||
<img | ||
alt="Injected Wallet" | ||
loading="lazy" | ||
src={icon} | ||
className={className} | ||
/> | ||
); | ||
} | ||
|
||
switch (selectedWallet) { | ||
case 'MetaMask': | ||
return <IconMetaMaskLogo className={className} />; | ||
case 'WalletConnect': | ||
return <IconWalletConnectLogo className={className} />; | ||
case 'Coinbase Wallet': | ||
return <IconCoinbaseLogo className={className} />; | ||
case 'Safe': | ||
return <IconGnosisLogo className={className} />; | ||
case 'Tailwind Wallet': | ||
return <IconTailwindWalletLogo className={className} />; | ||
case 'Compass Wallet': | ||
return <IconCompassWalletLogo className={className} />; | ||
case 'Seif Wallet': | ||
return <IconSeifWalletLogo className={className} />; | ||
default: | ||
return <IconWallet className={className} />; | ||
} | ||
}; |
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
Oops, something went wrong.