Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.24.12 #1933

Merged
merged 15 commits into from
Oct 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions docs/src/lib/services/onboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,13 @@ const intiOnboard = async (theme) => {
},
{
id: 42161,
token: 'ARB-ETH',
token: 'ETH',
label: 'Arbitrum One',
rpcUrl: 'https://rpc.ankr.com/arbitrum'
},
{
id: '0xa4ba',
token: 'ARB',
token: 'ETH',
label: 'Arbitrum Nova',
rpcUrl: 'https://nova.arbitrum.io/rpc'
},
Expand Down Expand Up @@ -217,12 +217,6 @@ const intiOnboard = async (theme) => {
token: 'OETH',
label: 'Optimism',
rpcUrl: 'https://mainnet.optimism.io'
},
{
id: '0xA4B1',
token: 'ARB-ETH',
label: 'Arbitrum',
rpcUrl: 'https://rpc.ankr.com/arbitrum'
}
],
appMetadata: {
Expand Down
8 changes: 4 additions & 4 deletions docs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3833,10 +3833,10 @@
ethers "5.5.4"
joi "17.9.1"

"@web3-onboard/core@^2.21.1":
version "2.21.1"
resolved "https://registry.yarnpkg.com/@web3-onboard/core/-/core-2.21.1.tgz#addb6c07c376cbbed3ae1d9ea6aabf05b15a8309"
integrity sha512-2ETfh+MIcRdEq1fY3+hc4KDTVelJLzNK9SpiH58kZ43/G5ky5IuTRS22e0xpsn/4pq5a1Y0Pgc1tHQncyZpndw==
"@web3-onboard/core@^2.21.2":
version "2.21.2"
resolved "https://registry.yarnpkg.com/@web3-onboard/core/-/core-2.21.2.tgz#962683efc87b29ee9150ab8d7ea9568ea3b41dd5"
integrity sha512-apzVi2zWqs4ktZBBJ60x1e4odI1mSoZ2c69bXUg36A0xI0iRFQ9Od44peI3mfTDEru7hWsr81Nv6l+v3HRSKLw==
dependencies:
"@web3-onboard/common" "^2.3.3"
bignumber.js "^9.0.0"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3-onboard-monorepo",
"version": "2.24.11",
"version": "2.24.12",
"private": true,
"workspaces": {
"packages": [
Expand Down
4 changes: 2 additions & 2 deletions packages/coinbase/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/coinbase",
"version": "2.2.5",
"version": "2.2.6",
"description": "Coinbase SDK wallet 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 @@ -58,7 +58,7 @@
"typescript": "^4.5.5"
},
"dependencies": {
"@coinbase/wallet-sdk": "^3.7.1",
"@coinbase/wallet-sdk": "^3.7.2",
"@web3-onboard/common": "^2.3.3"
}
}
6 changes: 3 additions & 3 deletions packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@web3-onboard/arcana-auth": "^2.0.0",
"@web3-onboard/blocto": "2.0.0",
"@web3-onboard/cede-store": "^2.1.0",
"@web3-onboard/coinbase": "^2.2.5",
"@web3-onboard/coinbase": "^2.2.6",
"@web3-onboard/core": "^2.21.2",
"@web3-onboard/dcent": "^2.2.7",
"@web3-onboard/enkrypt": "^2.0.3",
Expand All @@ -40,7 +40,7 @@
"@web3-onboard/gas": "^2.1.7",
"@web3-onboard/gnosis": "^2.1.10",
"@web3-onboard/infinity-wallet": "^2.0.3",
"@web3-onboard/injected-wallets": "^2.10.6",
"@web3-onboard/injected-wallets": "^2.10.7",
"@web3-onboard/keepkey": "^2.3.7",
"@web3-onboard/keystone": "^2.3.7",
"@web3-onboard/ledger": "^2.5.2",
Expand All @@ -56,7 +56,7 @@
"@web3-onboard/trust": "^2.0.3",
"@web3-onboard/uauth": "^2.1.2",
"@web3-onboard/venly": "^2.0.0",
"@web3-onboard/walletconnect": "^2.4.6",
"@web3-onboard/walletconnect": "^2.4.7",
"@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/demo/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
// displayUnavailable: true,
// ||
// display specific unavailable wallets
displayUnavailable: [ProviderLabel.MetaMask, ProviderLabel.Trust]
displayUnavailable: [ProviderLabel.MetaMask, ProviderLabel.Trust, ProviderLabel.Phantom]
// but only show Binance and Bitski wallet if they are available
// filter: {
// [ProviderLabel.Binance]: 'unavailable',
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.6",
"version": "2.10.7",
"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
2 changes: 1 addition & 1 deletion packages/injected/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const defaultWalletUnavailableMsg = ({
externalUrl
}: InjectedWalletModule) =>
externalUrl
? `Please <a href="${externalUrl}" target="_blank">install</a> or enable ${label} to continue`
? `Please <a href="${externalUrl}" target="_blank">install or switch to</a> ${label} to continue`
: `Please install or enable ${label} to continue`

export const isWalletAvailable = (
Expand Down
8 changes: 4 additions & 4 deletions packages/injected/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ export enum ProviderIdentityFlag {
export enum ProviderExternalUrl {
Binance = 'https://www.bnbchain.org/ru/blog/binance-extension-wallet/',
BitKeep = 'https://bitkeep.com/en/download?type=0',
Coinbase = 'https://www.coinbase.com/wallet/downloads',
MetaMask = 'https://metamask.io/download/',
Coinbase = 'https://go.cb-w.com/dapp',
MetaMask = 'https://metamask.app.link/dapp/',
OKXWallet = 'https://okx.com/download',
Phantom = 'https://phantom.app/download',
Phantom = 'https://phantom.app/ul/v1/connect',
Talisman = 'https://www.talisman.xyz/',
Trust = 'https://trustwallet.com/download/',
Trust = 'https://link.trustwallet.com',
OneKey = 'https://onekey.so/download/',
RoninWallet = 'https://wallet.skymavis.com/',
Coin98Wallet = 'https://coin98.com/wallet/',
Expand Down
1 change: 0 additions & 1 deletion packages/injected/src/wallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,6 @@ const imtoken: InjectedWalletModule = {
getIcon: async () => (await import('./icons/imtoken.js')).default,
getInterface: async () => ({
provider: createEIP1193Provider(window.ethereum, {
wallet_switchEthereumChain: UNSUPPORTED_METHOD,
eth_selectAccounts: UNSUPPORTED_METHOD
})
}),
Expand Down
6 changes: 3 additions & 3 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.4.6",
"version": "2.4.7",
"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 @@ -61,8 +61,8 @@
"dependencies": {
"@ethersproject/providers": "5.5.0",
"@walletconnect/client": "^1.8.0",
"@walletconnect/ethereum-provider": "^2.10.0",
"@walletconnect/modal": "2.6.1",
"@walletconnect/ethereum-provider": "^2.10.1",
"@walletconnect/modal": "2.6.2",
"@walletconnect/qrcode-modal": "^1.8.0",
"@web3-onboard/common": "^2.3.3",
"joi": "17.9.1",
Expand Down
4 changes: 3 additions & 1 deletion packages/walletconnect/src/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ const methods = [
'personal_sign',
'eth_sign',
'eth_signTypedData',
'eth_signTypedData_v4'
'eth_signTypedData_v4',
'wallet_addEthereumChain',
'wallet_switchEthereumChain'
]

function walletConnect(options: WalletConnectOptions): WalletInit {
Expand Down
Loading