Skip to content

Commit

Permalink
Release 2.24.19 (#2043)
Browse files Browse the repository at this point in the history
* Remove gamestop wallet support as wallet has been deprecated (#2037)

* Update WC imports, bump WC package version, bump WC dep version (#2036)

* Fix the Safe connector options and add Blockscout to the list of allowed domains (#2038)

* change option name

* add Blockscout to default list of allowed domains

* change option name in docs

* increment the version

* return the old param name

* Update packages/gnosis/package.json

* Update packages/demo/package.json

* Update packages/gnosis/package.json

* Update packages/demo/package.json

* Yarn it

---------

Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com>

* Update versions for release

* Bump injected version in demo

---------

Co-authored-by: Max Alekseenko <nnwen0609@gmail.com>
  • Loading branch information
Adamj1232 and maxaleks authored Jan 11, 2024
1 parent 80569eb commit ba7e8e3
Show file tree
Hide file tree
Showing 16 changed files with 66 additions and 89 deletions.
2 changes: 0 additions & 2 deletions docs/src/routes/docs/[...4]wallets/[...14]injected/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,8 @@ const injected = injectedModule({
- TP - _Mobile_
- 1inch - _Mobile_
- Tokenary - _Mobile_
- GameStop - _Desktop_
- Rabby - _Desktop_
- MathWallet - _Desktop & Mobile_
- Gamestop - _Desktop_
- Bitkeep - _Desktop & Mobile_
- BitGet Wallet - _Desktop & Mobile_
- Sequence - _Desktop & Mobile_
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3-onboard-monorepo",
"version": "2.24.18",
"version": "2.24.19",
"private": true,
"workspaces": {
"packages": [
Expand Down Expand Up @@ -41,7 +41,6 @@
"pending",
"confirmed",
"Injected Wallet",
"GameStop",
"Crypto",
"Crypto Wallet",
"Sequence"
Expand Down
1 change: 0 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"pending",
"confirmed",
"Injected Wallet",
"GameStop",
"Crypto",
"Crypto Wallet"
],
Expand Down
6 changes: 3 additions & 3 deletions packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
"@web3-onboard/frame": "^2.0.2",
"@web3-onboard/frontier": "^2.0.3",
"@web3-onboard/gas": "^2.1.7",
"@web3-onboard/gnosis": "^2.1.10",
"@web3-onboard/gnosis": "^2.2.1",
"@web3-onboard/infinity-wallet": "^2.0.3",
"@web3-onboard/injected-wallets": "^2.10.9",
"@web3-onboard/injected-wallets": "^2.10.11",
"@web3-onboard/keepkey": "^2.3.7",
"@web3-onboard/keystone": "^2.3.7",
"@web3-onboard/ledger": "^2.5.2",
Expand All @@ -59,7 +59,7 @@
"@web3-onboard/trust": "^2.0.3",
"@web3-onboard/uauth": "^2.1.2",
"@web3-onboard/venly": "^2.0.0",
"@web3-onboard/walletconnect": "^2.5.2",
"@web3-onboard/walletconnect": "^2.5.3",
"@web3-onboard/web3auth": "^2.2.2",
"@web3-onboard/xdefi": "^2.0.5",
"@web3-onboard/zeal": "^2.0.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/gnosis/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/gnosis",
"version": "2.2.0",
"version": "2.2.1",
"description": "Safe module for connecting 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
7 changes: 4 additions & 3 deletions packages/gnosis/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { WalletInit } from '@web3-onboard/common'
import type { WalletInit } from '@web3-onboard/common'

type GnosisOptions = {
whitelistedDomains: RegExp[]
Expand All @@ -8,7 +8,8 @@ function gnosis(options?: GnosisOptions): WalletInit {
const {
whitelistedDomains = [
/^https:\/\/app\.safe\.global$/,
/^https:\/\/safe\.global$/
/^https:\/\/safe\.global$/,
/^https:\/\/.*\.blockscout\.com$/
]
} = options || {}

Expand Down Expand Up @@ -37,7 +38,7 @@ function gnosis(options?: GnosisOptions): WalletInit {
SafeAppsSDK.default || SafeAppsSDK

const opts = {
whitelistedDomains
allowedDomains: whitelistedDomains
}

const appsSdk = new SafeAppProviderConstructor(opts)
Expand Down
2 changes: 0 additions & 2 deletions packages/injected/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,8 @@ console.log(connectedWallets)
- xDefi - _Desktop & Mobile_
- 1inch - _Mobile_
- Tokenary - _Mobile_
- GameStop - _Desktop_
- Rabby - _Desktop_
- MathWallet - _Desktop & Mobile_
- Gamestop - _Desktop_
- Bitget - _Desktop & Mobile_
- Sequence - _Desktop & Mobile_
- Core - _Desktop_
Expand Down
3 changes: 1 addition & 2 deletions 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.10",
"version": "2.10.11",
"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 Expand Up @@ -30,7 +30,6 @@
"pending",
"confirmed",
"Injected Wallet",
"GameStop",
"Phantom",
"DeFi Wallet",
"Fordefi",
Expand Down
4 changes: 0 additions & 4 deletions packages/injected/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export enum ProviderIdentityFlag {
BraveWallet = 'isBraveWallet',
Rabby = 'isRabby',
MathWallet = 'isMathWallet',
GameStop = 'isGamestop',
Bitget = 'isBitKeep',
Sequence = 'isSequence',
Core = 'isAvalanche',
Expand Down Expand Up @@ -134,7 +133,6 @@ export enum ProviderLabel {
Tally = 'Taho',
Rabby = 'Rabby Wallet',
MathWallet = 'MathWallet',
GameStop = 'GameStop Wallet',
Bitget = 'Bitget Wallet',
Sequence = 'Sequence',
Core = 'Core',
Expand Down Expand Up @@ -174,7 +172,6 @@ export enum InjectedNameSpace {
Web3 = 'web3',
Arbitrum = 'arbitrum',
XFI = 'xfi',
GameStop = 'gamestop',
Bitget = 'bitkeep',
Avalanche = 'avalanche',
Bitski = 'Bitski',
Expand Down Expand Up @@ -205,7 +202,6 @@ export interface CustomWindow extends Window {
xfi: {
ethereum: InjectedProvider
}
gamestop: InjectedProvider
bitkeep: {
ethereum: InjectedProvider
}
Expand Down
22 changes: 0 additions & 22 deletions packages/injected/src/wallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -577,27 +577,6 @@ const mathwallet: InjectedWalletModule = {
platforms: ['all']
}

const gamestop: InjectedWalletModule = {
label: ProviderLabel.GameStop,
injectedNamespace: InjectedNameSpace.GameStop,
checkProviderIdentity: ({ provider }) =>
!!provider && !!provider[ProviderIdentityFlag.GameStop],
getIcon: async () => (await import('./icons/gamestop.js')).default,
getInterface: async () => {
const provider = createEIP1193Provider(window.gamestop, {
eth_chainId: ({ baseRequest }) =>
baseRequest({ method: 'eth_chainId' }).then(
id => `0x${parseInt(id).toString(16)}`
),
wallet_switchEthereumChain: UNSUPPORTED_METHOD
})
provider.removeListener = (event, listener) => {}
provider.on = (event, listener) => {}
return { provider }
},
platforms: ['desktop']
}

const bitget: InjectedWalletModule = {
label: ProviderLabel.Bitget,
injectedNamespace: InjectedNameSpace.Bitget,
Expand Down Expand Up @@ -927,7 +906,6 @@ const wallets = [
tally,
rabby,
mathwallet,
gamestop,
sequence,
core,
bitski,
Expand Down
1 change: 0 additions & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"pending",
"confirmed",
"Injected Wallet",
"GameStop",
"Crypto",
"Crypto Wallet"
],
Expand Down
1 change: 0 additions & 1 deletion packages/solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"pending",
"confirmed",
"Injected Wallet",
"GameStop",
"Crypto",
"Crypto Wallet"
],
Expand Down
1 change: 0 additions & 1 deletion packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"pending",
"confirmed",
"Injected Wallet",
"GameStop",
"Crypto",
"Crypto Wallet"
],
Expand Down
4 changes: 2 additions & 2 deletions packages/walletconnect/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/walletconnect",
"version": "2.5.2",
"version": "2.5.3",
"description": "WalletConnect SDK module for connecting 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 Expand Up @@ -59,7 +59,7 @@
"@walletconnect/types": "^2.9.0"
},
"dependencies": {
"@walletconnect/ethereum-provider": "^2.10.6",
"@walletconnect/ethereum-provider": "^2.11.0",
"@web3-onboard/common": "^2.3.3",
"joi": "17.9.1",
"rxjs": "^7.5.2"
Expand Down
4 changes: 1 addition & 3 deletions packages/walletconnect/src/walletConnect.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { REQUIRED_METHODS } from '@walletconnect/ethereum-provider'
import { isHexString } from './index.js'

import type { EthereumProviderOptions } from '@walletconnect/ethereum-provider/dist/types/EthereumProvider'
import type { JQueryStyleEventEmitter } from 'rxjs/internal/observable/fromEvent'
import type { EthereumProvider } from '@walletconnect/ethereum-provider'
import type { WalletConnectOptions } from './types.js'
import type { CoreTypes } from '@walletconnect/types'
import type {
Expand Down Expand Up @@ -58,7 +56,7 @@ function walletConnect(options: WalletConnectOptions): WalletInit {
'@web3-onboard/common'
)

const { default: EthereumProvider } = await import(
const { default: EthereumProvider, REQUIRED_METHODS } = await import(
'@walletconnect/ethereum-provider'
)

Expand Down
Loading

0 comments on commit ba7e8e3

Please sign in to comment.