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.25.2 #2133

Merged
merged 44 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
b8463b2
Merge pull request #2030 from blocknative/release/2.24.18
Adamj1232 Dec 19, 2023
ea121ac
Merge pull request #2032 from blocknative/release/2.24.18
Adamj1232 Dec 19, 2023
360b2c8
Remove gamestop wallet support as wallet has been deprecated (#2037)
Adamj1232 Jan 3, 2024
e48b4d7
Update WC imports, bump WC package version, bump WC dep version (#2036)
Adamj1232 Jan 3, 2024
844616b
Fix the Safe connector options and add Blockscout to the list of allo…
maxaleks Jan 10, 2024
3f391ce
Release 2.24.19 (develop) (#2042)
Adamj1232 Jan 11, 2024
c87eb21
Release 2.24.19 (docs) (#2044)
Adamj1232 Jan 11, 2024
9c874ee
load ledger connect kit via package instead of loader (#2061)
Wozacosta Feb 2, 2024
e71f3ee
Bump ledger module node version for build to 16.14.2 (#2062)
Adamj1232 Feb 2, 2024
424a338
Ledger - [FIX] : Bump ledger module node version for build to 18.0.0 …
Adamj1232 Feb 2, 2024
df16fc4
Add Lif3 Wallet Support (#2058)
keanlaurens Feb 5, 2024
2e51cfe
Adds Particle Network (Wallet-as-a-Service) (#1962)
TABASCOatw Feb 20, 2024
5342079
add particle to config.yml, reorder docs tabs, add particle to docs o…
leightkt Feb 20, 2024
5b52b93
Add capsule to docs wallet options (#2070)
Adamj1232 Feb 21, 2024
ca2b510
Fix the connect modal getting covered by the bottom bar (#2057)
mhughdo Mar 4, 2024
3a128a4
feat: rabby support mobile (#2079)
dmy147 Mar 11, 2024
4c3ddd1
FEAT - Add 6963 support to injected wallets module (#2076)
Adamj1232 Mar 11, 2024
93269d7
feat: update blocto version (#2082)
sanyu1225 Mar 11, 2024
8a5dbc8
fix: use css vars for font size (wallet button) (#2072)
ryanpwaldon Mar 12, 2024
3234d99
Update: WalletConnet deps to latest (#2083)
Adamj1232 Mar 14, 2024
c696edd
Fix the demo (#2086)
Adamj1232 Mar 14, 2024
e0d63e7
Update coinbase wallet dependencies, add new init props to contructor…
Adamj1232 Mar 19, 2024
7045b26
Bump packages that require common, fix inter url (#2092)
Adamj1232 Mar 20, 2024
4cb2bb8
Update Trezor & Keepkey build node v to 18 (#2098)
Adamj1232 Mar 20, 2024
1c019b5
[FIX] - Keepkey build Node version to 16.20.2 (#2099)
Adamj1232 Mar 20, 2024
66459ea
Bump MetaMask module sdk deps (#2087)
Adamj1232 Mar 20, 2024
b1485df
Update node version for metamask within CCI to 18.19.1 (#2100)
Adamj1232 Mar 20, 2024
9dd3a56
Bump versions for release and Remove console.log
Adamj1232 Mar 20, 2024
867e60d
Release 2.25.0 (develop) (#2101)
Adamj1232 Mar 22, 2024
76cb64a
Release 2.25.0 (docs) (#2103)
Adamj1232 Mar 22, 2024
50c6dd5
Merge branch 'develop' of github.com:blocknative/web3-onboard into de…
Adamj1232 Mar 25, 2024
60df817
[FIX] : Injected 6963 providers precedence over native (#2115)
Adamj1232 Mar 25, 2024
6407e04
Merge branch 'develop' of github.com:blocknative/web3-onboard into de…
Adamj1232 Mar 26, 2024
1052148
Release 2.25.1 (develop) (#2117)
Adamj1232 Mar 26, 2024
1770d7a
Release 2.25.1 (docs) (#2119)
Adamj1232 Mar 26, 2024
be8e7c8
Update docs node version
Adamj1232 Mar 26, 2024
781e792
Merge branch 'develop' of github.com:blocknative/web3-onboard into de…
Adamj1232 Apr 1, 2024
9b871a1
[FIX] - 6963 provider creation (#2123)
Adamj1232 Apr 1, 2024
4eff194
[UPDATE] - Celo icon and demo support (#2131)
Adamj1232 Apr 4, 2024
6f09e2c
Merge branch 'develop' of github.com:blocknative/web3-onboard into de…
Adamj1232 Apr 4, 2024
abb4878
update versions
Adamj1232 Apr 4, 2024
b49b4ad
Merge main
Adamj1232 Apr 4, 2024
31dd6ae
Merge in docs
Adamj1232 Apr 4, 2024
da4c500
Update injected version
Adamj1232 Apr 4, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Setup Nodejs and yarn
uses: actions/setup-node@v2
with:
node-version: "16"
node-version: "18.18"
cache: yarn

- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@web3-onboard/capsule": "^2.0.1",
"@web3-onboard/cede-store": "^2.2.0",
"@web3-onboard/coinbase": "^2.2.7",
"@web3-onboard/core": "^2.21.3",
"@web3-onboard/core": "^2.21.4",
"@web3-onboard/dcent": "^2.2.7",
"@web3-onboard/enkrypt": "^2.0.4",
"@web3-onboard/fortmatic": "^2.0.19",
Expand Down
10 changes: 8 additions & 2 deletions docs/src/routes/docs/[...1]overview/[...1]introduction/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ Web3-Onboard is the quickest and easiest way to add multi-wallet and multi-chain

- **Notify:** Real-time transaction notifications for all transaction states for the connected wallet address(es). In-notification speedups & cancels for hardware wallet connections.

### Supported Networks
### Natively Supported EVM Chains

web3-onboard supports all EVM networks. Supporting a new network is simply a matter of adding its details in the Chains section upon initialization. For more information see [initialization options](../../modules/core.md#initialization).
web3-onboard supports ALL EVM networks. Supporting a new network is simply a matter of adding its details in the Chains section upon initialization. For more information see [initialization options](../../modules/core.md#initialization).

- Ethereum
- Arbitrum One
Expand Down Expand Up @@ -126,6 +126,12 @@ const onboard = Onboard({
token: 'ETH',
label: 'Base',
rpcUrl: 'https://mainnet.base.org'
},
{
id: '0xa4ec',
token: 'ETH',
label: 'Celo',
rpcUrl: 'https://1rpc.io/celo'
}
]
})
Expand Down
14 changes: 14 additions & 0 deletions docs/src/routes/docs/[...3]modules/[...1]core/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,12 @@ const onboard = Onboard({
token: 'OETH',
label: 'Optimism',
rpcUrl: 'https://mainnet.optimism.io'
},
{
id: '0xa4ec',
token: 'ETH',
label: 'Celo',
rpcUrl: 'https://1rpc.io/celo'
}
],
appMetadata: {
Expand Down Expand Up @@ -755,6 +761,10 @@ const onboard = Onboard({

To initiate a user to select and connect a wallet you can call the `connectWallet` function on an initialized Onboard instance. It will return a `Promise` that will resolve when the user either successfully connects a wallet, or when they dismiss the UI. The resolved value from the promise will be the latest state of the `wallets` array. The order of the wallets array is last to first, so the most recently selected wallet will be the first item in the array and can be thought of as the "primary wallet". If no wallet was selected, then the `wallets` array will have the same state as it had before calling `connectWallet`.

### Wallet Provider

Wallets connected through web3-onboard are all passed to the dapp following the EIP-1193 standard. This allows for the same interaction between all wallets connected through web3-onboard and abstracts away the challenges of working with different wallet providers.

### Example

```javascript
Expand All @@ -766,6 +776,10 @@ async function connectWallet() {
connectWallet()
```

### Interacting with the providers - Transfer, Send, Sign using ethers.js

For examples of interacting with the wallet providers please see our demo project [here](https://github.com/blocknative/web3-onboard/blob/9b871a1b3117e92a7c87285677fa5b35c544a8e0/packages/demo/src/App.svelte#L447)

### Auto Selecting a Wallet

A common UX pattern is to remember the last wallet that a user has previously connected by storing it in localStorage and then automatically selecting them for the user next time they visit your app.
Expand Down
6 changes: 5 additions & 1 deletion docs/src/routes/docs/[...4]wallets/[...14]injected/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ title: Injected Wallets

# {$frontmatter.title}

This module lets web3-onboard automatically detect Browser Injected Wallets such as Metamask or Coinbase Wallet. We recommend you install this module to get the most out of your w3o implementation. This module supports [EIP-1193](https://eips.ethereum.org/EIPS/eip-1193) and [recognizes many injected wallets natively](#injected-wallets-supported-natively) as well as supports [EIP-6963](https://eips.ethereum.org/EIPS/eip-6963) and recognizes any wallet that has implemented 6963 support.
This module lets web3-onboard automatically detect Browser Injected Wallets such as Metamask or Coinbase Wallet. We recommend you install this module to get the most out of your w3o implementation. This module supports [EIP-1193](https://eips.ethereum.org/EIPS/eip-1193) and [recognizes many injected wallets natively](#injected-wallets-supported-natively) as well as supports all [EIP-6963](https://eips.ethereum.org/EIPS/eip-6963) compatible wallets.

Note: Make sure to install the core module before installing other modules to w3o.

### Support all EIP-6963 Wallets out of the box

Web3-Onboard supports all [EIP-6963](https://eips.ethereum.org/EIPS/eip-6963) compatible wallets out of the box and will automatically recognizes any wallet which has integrated 6963 support.

## Install

<Tabs values={['yarn', 'npm']}>
Expand Down
17 changes: 16 additions & 1 deletion docs/src/routes/examples/[...1]connect-wallet/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ npm install @web3-onboard/react @web3-onboard/injected-wallets @web3-onboard/inf
</TabPanel>
</Tabs>


## Step 2: Import + Configure

Import the libraries and any wallets you would like to use. For this example, we are going to use the injected wallets module. You can easily add more wallet support to your dapp via our other wallet modules. Additionally, we'll setup web3-onboard to support 2 chains: Ethereum mainnet and Polygon mainnet.
Expand Down Expand Up @@ -156,6 +155,12 @@ const chains = [
token: 'ARB-ETH',
label: 'Arbitrum',
rpcUrl: 'https://rpc.ankr.com/arbitrum'
},
{
id: '0xa4ec',
token: 'ETH',
label: 'Celo',
rpcUrl: 'https://1rpc.io/celo'
}
]

Expand Down Expand Up @@ -412,6 +417,12 @@ const chains = [
token: 'ARB-ETH',
label: 'Arbitrum',
rpcUrl: 'https://rpc.ankr.com/arbitrum'
},
{
id: '0xa4ec',
token: 'ETH',
label: 'Celo',
rpcUrl: 'https://1rpc.io/celo'
}
]

Expand Down Expand Up @@ -497,3 +508,7 @@ Now that we have our wallet connected, let's display some basic information, suc

</TabPanel>
</Tabs>

## Interacting with the providers - Transfer, Send, Sign using ethers.js

For examples of interacting with the wallet providers please see our demo project [here](https://github.com/blocknative/web3-onboard/blob/9b871a1b3117e92a7c87285677fa5b35c544a8e0/packages/demo/src/App.svelte#L447)
6 changes: 6 additions & 0 deletions examples/with-nextjs-13/web3-onboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ export default init({
token: 'MATIC',
label: 'Matic Mainnet',
rpcUrl: 'https://matic-mainnet.chainstacklabs.com'
},
{
id: '0xa4ec',
token: 'ETH',
label: 'Celo',
rpcUrl: 'https://1rpc.io/celo'
}
],
appMetadata: {
Expand Down
14 changes: 10 additions & 4 deletions examples/with-nextjs/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,23 @@ const baseMainnet = {
label: 'Base',
rpcUrl: 'https://mainnet.base.org'
}
const celoMainnet = {
id: '0xa4ec',
token: 'ETH',
label: 'Celo',
rpcUrl: 'https://1rpc.io/celo'
}

const chains = [ethereumRopsten, polygonMainnet, baseMainnet]
const chains = [ethereumRopsten, polygonMainnet, baseMainnet,celoMainnet]
const wallets = [injectedModule()]

const web3Onboard = init({
wallets,
chains,
appMetadata: {
name: "Web3-Onboard Demo",
name: 'Web3-Onboard Demo',
icon: '<svg>My App Icon</svg>',
description: "A demo of Web3-Onboard."
description: 'A demo of Web3-Onboard.'
}
})

Expand All @@ -45,4 +51,4 @@ function MyApp({ Component, pageProps }) {
)
}

export default MyApp
export default MyApp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ export const chains = [
token: 'ETH',
label: 'Base',
rpcUrl: 'https://mainnet.base.org'
},
{
id: '0xa4ec',
token: 'ETH',
label: 'Celo',
rpcUrl: 'https://1rpc.io/celo'
}
];

Expand Down
2 changes: 1 addition & 1 deletion examples/with-sveltekit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@esbuild-plugins/node-modules-polyfill": "^0.2.2",
"@fontsource/fira-mono": "^4.5.10",
"@rollup/plugin-commonjs": "^25.0.7",
"@web3-onboard/core": "^2.21.3-alpha.1",
"@web3-onboard/core": "^2.21.4",
"@web3-onboard/injected-wallets": "^2.8.5",
"@web3-onboard/walletconnect": "^2.3.6",
"assert": "^2.1.0",
Expand Down
6 changes: 6 additions & 0 deletions examples/with-sveltekit/src/lib/web3-onboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ const chains = [
token: 'ETH',
label: 'Base',
rpcUrl: 'https://mainnet.base.org'
},
{
id: '0xa4ec',
token: 'ETH',
label: 'Celo',
rpcUrl: 'https://1rpc.io/celo'
}
]

Expand Down
6 changes: 6 additions & 0 deletions examples/with-vanilla-js/src/onboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ const chains = [
token: 'ETH',
label: 'Base',
rpcUrl: 'https://mainnet.base.org'
},
{
id: '0xa4ec',
token: 'ETH',
label: 'Celo',
rpcUrl: 'https://1rpc.io/celo'
}
]

Expand Down
20 changes: 12 additions & 8 deletions examples/with-vite-react/src/web3-onboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,12 @@ const injected = injectedModule({

const walletLink = coinbaseModule()

const walletConnect = walletConnectModule(
{
version: 2,
// Replace with your apiKey
projectId: '4a49c32131502e8c12d54295295e2012',
dappUrl: 'https://onboard.blocknative.com/'
}
)
const walletConnect = walletConnectModule({
version: 2,
// Replace with your apiKey
projectId: '4a49c32131502e8c12d54295295e2012',
dappUrl: 'https://onboard.blocknative.com/'
})
const portis = portisModule({
// Replace with your apiKey
apiKey: 'b2b7586f-2b1e-4c30-a7fb-c2d1533b153b'
Expand Down Expand Up @@ -137,6 +135,12 @@ export default init({
token: 'ETH',
label: 'Base',
rpcUrl: 'https://mainnet.base.org'
},
{
id: '0xa4ec',
token: 'ETH',
label: 'Celo',
rpcUrl: 'https://1rpc.io/celo'
}
],
appMetadata: {
Expand Down
50 changes: 28 additions & 22 deletions examples/with-vuejs-v2/src/components/HelloWorld.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@
</template>

<script>
import { init, useOnboard } from '@web3-onboard/vue';
import injectedModule from '@web3-onboard/injected-wallets';
import { init, useOnboard } from '@web3-onboard/vue'
import injectedModule from '@web3-onboard/injected-wallets'

const injected = injectedModule();
const injected = injectedModule()
// With vite
const infuraKey = import.meta.env.VITE_INFURA_KEY;
const infuraKey = import.meta.env.VITE_INFURA_KEY

// Without vite
//const infuraKey = process.env.INFURA_KEY;

const rpcUrl = `https://mainnet.infura.io/v3/${infuraKey}`;
const rpcUrl = `https://mainnet.infura.io/v3/${infuraKey}`

const web3Onboard = init({
wallets: [injected],
Expand All @@ -41,7 +41,7 @@ const web3Onboard = init({
id: '0x1',
token: 'ETH',
label: 'Ethereum Mainnet',
rpcUrl,
rpcUrl
},
{
id: 42161,
Expand All @@ -60,58 +60,64 @@ const web3Onboard = init({
token: 'ETH',
label: 'Base',
rpcUrl: 'https://mainnet.base.org'
},
{
id: '0xa4ec',
token: 'ETH',
label: 'Celo',
rpcUrl: 'https://1rpc.io/celo'
}
],
});
]
})

const { wallets, connectWallet, disconnectConnectedWallet, connectedWallet } =
useOnboard();
useOnboard()

const trunc = (address) =>
!!address ? address.slice(0, 6) + '...' + address.slice(-6) : null;
const trunc = address =>
!!address ? address.slice(0, 6) + '...' + address.slice(-6) : null

export default {
props: {
msg: String,
msg: String
},
data() {
return {
connectedWallet,
count: 0,
};
count: 0
}
},
methods: {
connect: () => connectWallet(),
disconnect: () => disconnectConnectedWallet(),
disconnect: () => disconnectConnectedWallet()
},
computed: {
address: function () {
if (
this.connectedWallet.accounts &&
this.connectedWallet.accounts[0].address
) {
console.log(this.connectedWallet.accounts[0].address);
return trunc(this.connectedWallet.accounts[0].address);
console.log(this.connectedWallet.accounts[0].address)
return trunc(this.connectedWallet.accounts[0].address)
}
},
ens: function () {
if (
this.connectedWallet.accounts &&
this.connectedWallet.accounts[0].ens?.name
) {
return trunc(this.connectedWallet.accounts[0].ens);
return trunc(this.connectedWallet.accounts[0].ens)
}
},
uns: function () {
if (
this.connectedWallet.accounts &&
this.connectedWallet.accounts[0].uns?.name
) {
return trunc(this.connectedWallet.accounts[0].uns);
return trunc(this.connectedWallet.accounts[0].uns)
}
},
},
};
}
}
}
</script>

<style scoped>
Expand Down
6 changes: 6 additions & 0 deletions examples/with-vuejs/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ init({
token: 'ARB',
label: 'Arbitrum Nova',
rpcUrl: 'https://nova.arbitrum.io/rpc'
},
{
id: '0xa4ec',
token: 'ETH',
label: 'Celo',
rpcUrl: 'https://1rpc.io/celo'
}
]
})
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.25.1",
"version": "2.25.2",
"private": true,
"workspaces": {
"packages": [
Expand Down
Loading
Loading