diff --git a/docs/package.json b/docs/package.json index 17bd909ea..fe0833ba4 100644 --- a/docs/package.json +++ b/docs/package.json @@ -67,7 +67,7 @@ "@web3-onboard/gas": "^2.1.8", "@web3-onboard/gnosis": "^2.1.10", "@web3-onboard/infinity-wallet": "^2.0.4", - "@web3-onboard/injected-wallets": "^2.10.15", + "@web3-onboard/injected-wallets": "^2.10.16-alpha.1", "@web3-onboard/keepkey": "^2.3.7", "@web3-onboard/keystone": "^2.3.7", "@web3-onboard/ledger": "^2.6.0", diff --git a/docs/src/routes/docs/[...4]wallets/[...14]injected/+page.md b/docs/src/routes/docs/[...4]wallets/[...14]injected/+page.md index cc84d188b..de843ece0 100644 --- a/docs/src/routes/docs/[...4]wallets/[...14]injected/+page.md +++ b/docs/src/routes/docs/[...4]wallets/[...14]injected/+page.md @@ -375,6 +375,7 @@ const injected = injectedModule({ - SubWallet - _Desktop & Mobile_ - Kayros - _Desktop_ - Lif3Wallet - _Mobile_ +- StableWallet - _Mobile_ ## Build Environments diff --git a/packages/demo/package.json b/packages/demo/package.json index 56360d3f8..a3d69aa2a 100644 --- a/packages/demo/package.json +++ b/packages/demo/package.json @@ -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.14", + "@web3-onboard/injected-wallets": "^2.10.16-alpha.1", "@web3-onboard/keepkey": "^2.3.8", "@web3-onboard/keystone": "^2.3.8", "@web3-onboard/ledger": "^2.6.0", diff --git a/packages/injected/package.json b/packages/injected/package.json index 5e7a4c5dd..46fb248e2 100644 --- a/packages/injected/package.json +++ b/packages/injected/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/injected-wallets", - "version": "2.10.15", + "version": "2.10.16-alpha.1", "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", diff --git a/packages/injected/src/icons/stablewallet.ts b/packages/injected/src/icons/stablewallet.ts new file mode 100644 index 000000000..5c3bcb413 --- /dev/null +++ b/packages/injected/src/icons/stablewallet.ts @@ -0,0 +1,17 @@ +export default ` + + + + + + + + + + + + + + + +` diff --git a/packages/injected/src/types.ts b/packages/injected/src/types.ts index 3517a84bd..5410d1248 100644 --- a/packages/injected/src/types.ts +++ b/packages/injected/src/types.ts @@ -68,7 +68,8 @@ export enum ProviderIdentityFlag { SubWallet = 'isSubWallet', Kayros = 'isKayros', FoxWallet = 'isFoxWallet', - Lif3Wallet = 'isLif3Wallet' + Lif3Wallet = 'isLif3Wallet', + StableWallet = 'isStableWallet', } /** @@ -156,7 +157,8 @@ export enum ProviderLabel { SubWallet = 'SubWallet', Kayros = 'Kayros', FoxWallet = 'FoxWallet', - Lif3Wallet = 'Lif3 Wallet' + Lif3Wallet = 'Lif3 Wallet', + StableWallet = 'StableWallet', } export interface MeetOneProvider extends ExternalProvider { diff --git a/packages/injected/src/wallets.ts b/packages/injected/src/wallets.ts index 8c21ade69..c886177a0 100644 --- a/packages/injected/src/wallets.ts +++ b/packages/injected/src/wallets.ts @@ -886,6 +886,16 @@ const Lif3Wallet: InjectedWalletModule = { platforms: ['mobile'] } +const stablewallet: InjectedWalletModule = { + label: ProviderLabel.StableWallet, + injectedNamespace: InjectedNameSpace.Ethereum, + checkProviderIdentity: ({ provider }) => + !!provider && !!provider[ProviderIdentityFlag.StableWallet], + getIcon: async () => (await import('./icons/stablewallet.js')).default, + getInterface: getInjectedInterface(ProviderIdentityFlag.StableWallet), + platforms: ['mobile'] +} + const wallets = [ zeal, exodus, @@ -941,7 +951,8 @@ const wallets = [ subwallet, kayros, foxwallet, - Lif3Wallet + Lif3Wallet, + stablewallet ] export default wallets