Skip to content

Commit

Permalink
feat: rabby support mobile (#2079)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmy147 authored Mar 11, 2024
1 parent ca2b510 commit 3a128a4
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ const injected = injectedModule({
- TP - _Mobile_
- 1inch - _Mobile_
- Tokenary - _Mobile_
- Rabby - _Desktop_
- Rabby - _Desktop & Mobile_
- MathWallet - _Desktop & Mobile_
- Bitkeep - _Desktop & Mobile_
- BitGet Wallet - _Desktop & Mobile_
Expand Down
2 changes: 1 addition & 1 deletion packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@web3-onboard/gas": "^2.1.7",
"@web3-onboard/gnosis": "^2.2.1",
"@web3-onboard/infinity-wallet": "^2.0.3",
"@web3-onboard/injected-wallets": "^2.10.12-alpha.1",
"@web3-onboard/injected-wallets": "^2.10.12-alpha.2",
"@web3-onboard/keepkey": "^2.3.7",
"@web3-onboard/keystone": "^2.3.7",
"@web3-onboard/ledger": "^2.6.0-alpha.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/injected/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ console.log(connectedWallets)
- xDefi - _Desktop & Mobile_
- 1inch - _Mobile_
- Tokenary - _Mobile_
- Rabby - _Desktop_
- Rabby - _Desktop & Mobile_
- MathWallet - _Desktop & Mobile_
- Bitget - _Desktop & Mobile_
- Sequence - _Desktop & Mobile_
Expand Down
2 changes: 1 addition & 1 deletion packages/injected/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/injected-wallets",
"version": "2.10.12-alpha.1",
"version": "2.10.12-alpha.2",
"description": "Injected wallet module for connecting browser extension and mobile wallets to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
"keywords": [
"Ethereum",
Expand Down
5 changes: 3 additions & 2 deletions packages/injected/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ export enum ProviderExternalUrl {
Kayros = 'https://www.kayros.games/wallet/',
XDEFI = 'https://xdefi.io/',
FoxWallet = 'https://foxwallet.com/download',
Lif3Wallet = 'https://lif3.com'
Lif3Wallet = 'https://lif3.com',
Rabby = 'https://rabby.io'
}

export enum ProviderLabel {
Expand Down Expand Up @@ -155,7 +156,7 @@ export enum ProviderLabel {
SubWallet = 'SubWallet',
Kayros = 'Kayros',
FoxWallet = 'FoxWallet',
Lif3Wallet = 'Lif3 Wallet',
Lif3Wallet = 'Lif3 Wallet'
}

export interface MeetOneProvider extends ExternalProvider {
Expand Down
4 changes: 2 additions & 2 deletions packages/injected/src/wallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ const rabby: InjectedWalletModule = {
getInterface: async () => ({
provider: createEIP1193Provider(window.ethereum)
}),
platforms: ['desktop']
platforms: ['desktop', 'mobile']
}

const mathwallet: InjectedWalletModule = {
Expand Down Expand Up @@ -863,7 +863,7 @@ const foxwallet: InjectedWalletModule = {
label: ProviderLabel.FoxWallet,
injectedNamespace: InjectedNameSpace.FoxWallet,
checkProviderIdentity: ({ provider }) =>
!!provider && !!provider[ProviderIdentityFlag.FoxWallet],
!!provider && !!provider[ProviderIdentityFlag.FoxWallet],
getIcon: async () => (await import('./icons/foxwallet.js')).default,
getInterface: async () => ({
provider: createEIP1193Provider(window.foxwallet)
Expand Down

0 comments on commit 3a128a4

Please sign in to comment.