Skip to content

Commit 42e240a

Browse files
Merge pull request #1879 from blocknative/release/2.24.8
(main) Release: 2.24.8
2 parents 8cb3df6 + aded7e9 commit 42e240a

File tree

31 files changed

+2448
-466
lines changed

31 files changed

+2448
-466
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ For full documentation, check out the README.md for each package or the [docs pa
9797
- [Coinbase](packages/coinbase/README.md)
9898
- [Trust](packages/trust/README.md)
9999
- [WalletConnect](packages/walletconnect/README.md)
100-
- [Gnosis](packages/gnosis/README.md)
100+
- [Safe](packages/gnosis/README.md)
101101
- [Magic](packages/magic/README.md)
102102
- [Fortmatic](packages/fortmatic/README.md)
103103
- [Portis](packages/portis/README.md)

docs/package.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,17 @@
4949
},
5050
"type": "module",
5151
"dependencies": {
52-
"@web3-onboard/arcana-auth": "^2.0.0-alpha.1",
52+
"@safe-global/safe-apps-provider": "^0.18.0",
53+
"@safe-global/safe-apps-sdk": "^8.1.0",
54+
"@web3-onboard/arcana-auth": "^2.0.0",
5355
"@web3-onboard/blocto": "^2.0.0",
54-
"@web3-onboard/cede-store": "^2.1.0-alpha.1",
55-
"@web3-onboard/coinbase": "^2.2.5-alpha.1",
56-
"@web3-onboard/core": "^2.21.0-alpha.1",
56+
"@web3-onboard/cede-store": "^2.1.0",
57+
"@web3-onboard/coinbase": "^2.2.5",
58+
"@web3-onboard/core": "^2.21.0",
5759
"@web3-onboard/dcent": "^2.2.7",
5860
"@web3-onboard/enkrypt": "^2.0.4",
5961
"@web3-onboard/fortmatic": "^2.0.19",
60-
"@web3-onboard/frame": "^2.0.2-alpha.1",
62+
"@web3-onboard/frame": "^2.0.2",
6163
"@web3-onboard/frontier": "^2.0.4",
6264
"@web3-onboard/gas": "^2.1.8",
6365
"@web3-onboard/gnosis": "^2.1.10",
@@ -78,7 +80,7 @@
7880
"@web3-onboard/trust": "^2.0.4",
7981
"@web3-onboard/uauth": "^2.1.1",
8082
"@web3-onboard/venly": "^2.0.0",
81-
"@web3-onboard/walletconnect": "^2.4.2-alpha.1",
83+
"@web3-onboard/walletconnect": "^2.4.2",
8284
"@web3-onboard/web3auth": "^2.2.3",
8385
"@web3-onboard/xdefi": "^2.0.4",
8486
"@web3-onboard/zeal": "^2.0.4",

docs/src/routes/docs/[...1]overview/[...1]introduction/+page.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,18 @@ Web3-Onboard is the quickest and easiest way to add multi-wallet and multi-chain
1818

1919
- **Minimal Dependencies:** All wallet dependencies are included in separate packages, so you only include the ones you want to use in your app.
2020

21-
- **Multiple Wallets and Accounts Connection, Multichain Support:** Allow your users to connect multiple wallets and multiple accounts within each wallet at the same time to your app. Let users switch between chains/networks with ease. ALL EVM networks supported.
21+
- **Multi Wallet and Multi Chain Support:** Allow your users to connect multiple wallets and multiple accounts within each wallet at the same time to your app. Let users switch between chains/networks with ease. ALL EVM networks supported.
22+
23+
- **Account Center:** An interface to manage wallet connections and networks, with a minimal version for mobile.
24+
25+
- **Themable:** Powerful customization options for all your needs. Style Web3 Onboard to fit into your existing designs, or pick from our pre-made themes.
2226

2327
- **Unified Provider Interface:** All wallet modules expose a provider that is patched to be compliant with the EIP-1193, EIP-1102, EIP-3085 and EIP-3326 specifications. Whether your user is using Ledger or Metamask the provider will operate identically.
2428

25-
- **Dynamic Imports:** Supporting multiple wallets in your app requires a lot of dependencies. Onboard dynamically imports a wallet
26-
and its dependencies only when the user selects it, so that minimal bandwidth is used.
29+
- **Dynamic Imports:** Supporting multiple wallets in your app requires a lot of dependencies. Onboard dynamically imports a wallet and its dependencies only when the user selects it, so that minimal bandwidth is used.
2730

2831
- **Framework Agnostic:** Avoid framework lock in -- Web3-Onboard works with any framework and includes helper packages for vue & react.
2932

30-
- **Account Center:** An interface to manage wallet connections and networks, with a minimal version for mobile
31-
3233
- **Notify:** Real-time transaction notifications for all transaction states for the connected wallet address(es). In-notification speedups & cancels for hardware wallet connections.
3334

3435
### Supported Networks
@@ -37,9 +38,7 @@ web3-onboard supports all EVM networks. Supporting a new network is simply a mat
3738

3839
- Ethereum
3940
- Polygon
40-
- Base Goerli
41-
- Goerli
42-
- Sepolia
41+
- Base
4342
- Arbitrum
4443
- Optimism
4544
- Avalanche
@@ -49,6 +48,9 @@ web3-onboard supports all EVM networks. Supporting a new network is simply a mat
4948
- Gnosis Chain
5049
- Harmony One
5150
- Moonriver
51+
- Goerli
52+
- Sepolia
53+
- Base Goerli
5254
- All other EVM network
5355

5456
### Optional - Use an API key to fetch real time transaction data, balances & gas
@@ -144,7 +146,7 @@ if (wallets[0]) {
144146

145147
## Wallet Modules
146148

147-
Add other wallet modules such as Wallet Connect or Ledger to increase the support and functionality of your web3-onboard implementation. All modules are listed below and can be accessed through the subpages of web3-onboard docs on the left.
149+
Add other wallet modules such as Wallet Connect or Ledger to increase the support and functionality of your web3-onboard implementation. All modules can be accessed through the subpages of web3-onboard docs on the left.
148150

149151
We recommend you add the [Core Repo](../../modules/core.md#install) and consider adding the [Injected Wallets](../../wallets/injected.md#install) module to get connected with wallets like Metamask, Trust, Coinbase Wallet & more right away.
150152

@@ -159,7 +161,7 @@ We recommend you add the [Core Repo](../../modules/core.md#install) and consider
159161
- [Coinbase](../../wallets/coinbase.md#install)
160162
- [Fortmatic](../../wallets/fortmatic.md#install)
161163
- [Frame](../../wallets/frame.md#install)
162-
- [Gnosis](../../wallets/gnosis.md#install)
164+
- [Safe](../../wallets/gnosis.md#install)
163165
- [Magic](../../wallets/magic.md#login-options)
164166
- [MEW](../../wallets/mewwallet.md#install)
165167
- [Portis](../../wallets/portis.md#install)

docs/src/routes/docs/[...4]wallets/[...11]injected/+page.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,8 @@ const injected = injectedModule({
343343
- OneKey - _Desktop & Mobile_
344344
- Fordefi - _Desktop_
345345
- Ronin Wallet - _Desktop & Mobile_
346+
- Coin98 Wallet - _Desktop & Mobile_
347+
- SubWallet - _Desktop & Mobile_
346348

347349
## Build Environments
348350

docs/src/routes/docs/[...4]wallets/[...9]gnosis/+page.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
---
2-
title: Gnosis
2+
title: Safe
33
---
44

55
# {$frontmatter.title}
66

7-
Wallet module for connecting Gnosis Safe to web3-onboard
7+
Wallet module for connecting Safe to web3-onboard
88

99
## Install
1010

1111
<Tabs values={['yarn', 'npm']}>
1212
<TabPanel value="yarn">
1313

1414
```sh copy
15-
yarn add @web3-onboard/gnosis
15+
yarn add @web3-onboard/gnosis @safe-global/safe-apps-provider @safe-global/safe-apps-sdk
1616
```
1717

1818
</TabPanel>
1919
<TabPanel value="npm">
2020

2121
```sh copy
22-
npm install @web3-onboard/gnosis
22+
npm install @web3-onboard/gnosis @safe-global/safe-apps-provider @safe-global/safe-apps-sdk
2323
```
2424

2525
</TabPanel>
@@ -37,14 +37,14 @@ type GnosisOptions = {
3737
3838
```typescript
3939
import Onboard from '@web3-onboard/core'
40-
import gnosisModule from '@web3-onboard/gnosis'
40+
import safeModule from '@web3-onboard/gnosis'
4141

42-
const gnosis = gnosisModule()
42+
const safe = safeModule()
4343

4444
const onboard = Onboard({
4545
// ... other Onboard options
4646
wallets: [
47-
gnosis
47+
safe
4848
//... other wallets
4949
]
5050
})
@@ -53,13 +53,13 @@ const connectedWallets = await onboard.connectWallet()
5353
console.log(connectedWallets)
5454
```
5555

56-
## Customizing Gnosis Transaction Gas
56+
## Customizing Safe Transaction Gas
5757

58-
If you are looking to set the `gasLimit` of a transaction within Gnosis, the gas properties within the transaction WILL BE IGNORED.
59-
Instead you will need to use the `safeTxGas` prop AND the web3-onboard Gnosis instance that is exposed through the provider to send along the transaction.
60-
The Gnosis sdk instance exposed by the web3-onboard must be used to set the `safeTxGas` prop and send the transaction.
61-
Check [Gnosis docs](https://github.com/safe-global/safe-contracts/blob/a6504a9afdeac186a8cdb29ad68b189523c80eda/docs/safe_tx_gas.md) for full detail as it can be a bit confusing.
62-
An example of accessing the Gnosis SDK instance and sending a transaction can be found below.
58+
If you are looking to set the `gasLimit` of a transaction within Safe, the gas properties within the transaction WILL BE IGNORED.
59+
Instead you will need to use the `safeTxGas` prop AND the web3-onboard Safe instance that is exposed through the provider to send along the transaction.
60+
The Safe sdk instance exposed by the web3-onboard must be used to set the `safeTxGas` prop and send the transaction.
61+
Check [Safe docs](https://github.com/safe-global/safe-contracts/blob/a6504a9afdeac186a8cdb29ad68b189523c80eda/docs/safe_tx_gas.md) for full detail as it can be a bit confusing.
62+
An example of accessing the Safe SDK instance and sending a transaction can be found below.
6363

6464
```typescript
6565
const tx = {
@@ -71,11 +71,11 @@ const params = {
7171
safeTxGas: 5000000
7272
}
7373

74-
// wallet is the provider exposed by web3-onboard after the Gnosis wallet is connected
74+
// wallet is the provider exposed by web3-onboard after the Safe wallet is connected
7575
let trans = await wallet.instance.txs.send({ txs: [tx], params })
7676
```
7777

78-
Note: With the `safeTxGas` you will see additional value on the `gasLimit` displayed in the Safe. Check [Gnosis docs](https://github.com/safe-global/safe-contracts/blob/a6504a9afdeac186a8cdb29ad68b189523c80eda/docs/safe_tx_gas.md) for full details on that computation.
78+
Note: With the `safeTxGas` you will see additional value on the `gasLimit` displayed in the Safe. Check [Safe docs](https://github.com/safe-global/safe-contracts/blob/a6504a9afdeac186a8cdb29ad68b189523c80eda/docs/safe_tx_gas.md) for full details on that computation.
7979

8080
## Build Environments
8181

docs/src/routes/examples/[...1]connect-wallet/+page.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import { Web3OnboardProvider, init } from '@web3-onboard/react'
4848
import injectedModule from '@web3-onboard/injected-wallets'
4949
import infinityWalletModule from '@web3-onboard/infinity-wallet'
5050
import fortmaticModule from '@web3-onboard/fortmatic'
51-
import gnosisModule from '@web3-onboard/gnosis'
51+
import safeModule from '@web3-onboard/gnosis'
5252
import keepkeyModule from '@web3-onboard/keepkey'
5353
import keystoneModule from '@web3-onboard/keystone'
5454
import ledgerModule from '@web3-onboard/ledger'
@@ -83,7 +83,7 @@ const infinityWallet = infinityWalletModule()
8383
const ledger = ledgerModule()
8484
const keystone = keystoneModule()
8585
const keepkey = keepkeyModule()
86-
const gnosis = gnosisModule()
86+
const safe = safeModule()
8787
const sequence = sequenceModule()
8888
const taho = tahoModule() // Previously named Tally Ho wallet
8989
const trust = trustModule()
@@ -113,7 +113,7 @@ const wallets = [
113113
dcent,
114114
trezor,
115115
walletConnect,
116-
gnosis,
116+
safe,
117117
magic,
118118
fortmatic,
119119
keystone,
@@ -298,7 +298,7 @@ import Onboard from '@web3-onboard/core'
298298
import injectedModule from '@web3-onboard/injected-wallets'
299299
import infinityWalletModule from '@web3-onboard/infinity-wallet'
300300
import fortmaticModule from '@web3-onboard/fortmatic'
301-
import gnosisModule from '@web3-onboard/gnosis'
301+
import safeModule from '@web3-onboard/gnosis'
302302
import keepkeyModule from '@web3-onboard/keepkey'
303303
import keystoneModule from '@web3-onboard/keystone'
304304
import ledgerModule from '@web3-onboard/ledger'
@@ -334,7 +334,7 @@ const infinityWallet = infinityWalletModule()
334334
const ledger = ledgerModule()
335335
const keystone = keystoneModule()
336336
const keepkey = keepkeyModule()
337-
const gnosis = gnosisModule()
337+
const safe = safeModule()
338338
const sequence = sequenceModule()
339339
const taho = tahoModule() // Previously named Tally Ho wallet
340340
const trust = trustModule()
@@ -369,7 +369,7 @@ const wallets = [
369369
walletConnect,
370370
enkrypt,
371371
mewWallet,
372-
gnosis,
372+
safe,
373373
magic,
374374
fortmatic,
375375
keystone,

0 commit comments

Comments
 (0)