Skip to content

Commit de3319d

Browse files
committed
Merge remote-tracking branch 'origin/develop' into feat_update-the-metamask-sdk-package-to-version-0.18.6
2 parents 7c621de + 6b2b964 commit de3319d

File tree

60 files changed

+1361
-7759
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+1361
-7759
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ jobs:
731731
- image: cimg/node:18.0.0
732732
working_directory: ~/web3-onboard-monorepo/packages/particle-network
733733
steps:
734-
- node-build-steps
734+
- node-staging-build-steps
735735

736736
workflows:
737737
version: 2

docs/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,21 +58,21 @@
5858
"@web3-onboard/capsule": "^2.0.1",
5959
"@web3-onboard/cede-store": "^2.2.0",
6060
"@web3-onboard/coinbase": "^2.2.7",
61-
"@web3-onboard/core": "^2.21.5",
61+
"@web3-onboard/core": "^2.21.6",
6262
"@web3-onboard/dcent": "^2.2.7",
6363
"@web3-onboard/enkrypt": "^2.0.4",
6464
"@web3-onboard/fortmatic": "^2.0.19",
6565
"@web3-onboard/frame": "^2.0.2",
6666
"@web3-onboard/frontier": "^2.0.4",
6767
"@web3-onboard/gas": "^2.1.8",
68-
"@web3-onboard/gnosis": "^2.1.10",
68+
"@web3-onboard/gnosis": "^2.2.2",
6969
"@web3-onboard/infinity-wallet": "^2.0.4",
70-
"@web3-onboard/injected-wallets": "^2.10.15",
70+
"@web3-onboard/injected-wallets": "^2.10.16",
7171
"@web3-onboard/keepkey": "^2.3.7",
7272
"@web3-onboard/keystone": "^2.3.7",
7373
"@web3-onboard/ledger": "^2.6.0",
7474
"@web3-onboard/magic": "^2.1.7",
75-
"@web3-onboard/metamask": "^2.0.4",
75+
"@web3-onboard/metamask": "^2.0.5",
7676
"@web3-onboard/mew-wallet": "^2.0.4",
7777
"@web3-onboard/phantom": "^2.0.3",
7878
"@web3-onboard/portis": "^2.1.7",
@@ -84,11 +84,11 @@
8484
"@web3-onboard/trust": "^2.0.4",
8585
"@web3-onboard/uauth": "^2.1.1",
8686
"@web3-onboard/venly": "^2.0.0",
87-
"@web3-onboard/walletconnect": "^2.5.4",
87+
"@web3-onboard/walletconnect": "^2.5.5",
8888
"@web3-onboard/web3auth": "^2.2.3",
8989
"@web3-onboard/xdefi": "^2.0.4",
9090
"@web3-onboard/zeal": "^2.0.4",
91-
"@web3-onboard/particle-network": "^2.0.0",
91+
"@web3-onboard/particle-network": "^2.0.1",
9292
"animejs": "^3.2.1",
9393
"bnc-sdk": "^4.6.6",
9494
"ethers": "^5.7.0",

docs/src/lib/services/onboard.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,6 @@ const intiOnboard = async (theme) => {
194194
}
195195
]
196196
},
197-
{
198-
id: '0x5',
199-
token: 'ETH',
200-
label: 'Goerli',
201-
rpcUrl: `https://goerli.infura.io/v3/${INFURA_ID}`
202-
},
203197
{
204198
id: 11155111,
205199
token: 'ETH',
@@ -245,7 +239,7 @@ const intiOnboard = async (theme) => {
245239
{
246240
id: '0xA',
247241
token: 'OETH',
248-
label: 'Optimism',
242+
label: 'OP Mainnet',
249243
rpcUrl: 'https://mainnet.optimism.io'
250244
},
251245
{

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ web3-onboard supports ALL EVM networks. Supporting a new network is simply a mat
4141
- Arbitrum Nova
4242
- Base
4343
- Polygon
44-
- Optimism
44+
- OP Mainnet
4545
- Avalanche
4646
- BNB Chain
4747
- Celo
@@ -50,7 +50,6 @@ web3-onboard supports ALL EVM networks. Supporting a new network is simply a mat
5050
- Gnosis Chain
5151
- Harmony One
5252
- Moonriver
53-
- Goerli
5453
- Sepolia
5554
- Base Goerli
5655
- All other EVM networks
@@ -184,6 +183,7 @@ We recommend you add the [Core Repo](../../modules/core.md#install) and consider
184183

185184
- [Arcana Auth](../../wallets/arcana.md#install)
186185
- [Blocto](../../wallets/blocto.md#install)
186+
- [Capsule](../../wallets/capsule.md#install)
187187
- [Coinbase](../../wallets/coinbase.md#install)
188188
- [Fortmatic](../../wallets/fortmatic.md#install)
189189
- [Frame](../../wallets/frame.md#install)

docs/src/routes/docs/[...3]modules/[...1]core/+page.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ type Notification = {
597597

598598
type NotificationType = 'pending' | 'success' | 'error' | 'hint'
599599

600-
export declare type Network = 'main' | 'goerli' | 'matic-main' | 'matic-mumbai' | 'local'
600+
export declare type Network = 'main' | 'sepolia' | 'matic-main' | 'matic-mumbai' | 'local'
601601

602602
export interface UpdateNotification {
603603
(notificationObject: CustomNotification): {
@@ -630,12 +630,6 @@ const onboard = Onboard({
630630
label: 'Ethereum Mainnet',
631631
rpcUrl: `https://mainnet.infura.io/v3/${INFURA_ID}`
632632
},
633-
{
634-
id: '0x5',
635-
token: 'ETH',
636-
label: 'Goerli',
637-
rpcUrl: `https://goerli.infura.io/v3/${INFURA_ID}`
638-
},
639633
{
640634
id: 11155111,
641635
token: 'ETH',
@@ -669,7 +663,7 @@ const onboard = Onboard({
669663
{
670664
id: 10,
671665
token: 'OETH',
672-
label: 'Optimism',
666+
label: 'OP Mainnet',
673667
rpcUrl: 'https://mainnet.optimism.io'
674668
},
675669
{

docs/src/routes/docs/[...3]modules/[...3]react/+page.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,13 @@ the initialized web3Onboard instance will be available in all children component
109109
import { Web3OnboardProvider, init } from '@web3-onboard/react'
110110
import injectedModule from '@web3-onboard/injected-wallets'
111111
const INFURA_KEY = ''
112-
const ethereumRopsten = {
113-
id: '0x3',
114-
token: 'rETH',
115-
label: 'Ethereum Ropsten',
116-
rpcUrl: `https://ropsten.infura.io/v3/${INFURA_KEY}`
112+
const ethereumSepolia = {
113+
id: 11155111,
114+
token: 'ETH',
115+
label: 'Sepolia',
116+
rpcUrl: 'https://rpc.sepolia.org/'
117117
}
118-
const chains = [ethereumRopsten]
118+
const chains = [ethereumSepolia]
119119
const wallets = [injectedModule()]
120120
const web3Onboard = init({
121121
wallets,

docs/src/routes/docs/[...3]modules/[...5]transaction-preview/+page.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,10 +367,7 @@ export type System = 'bitcoin' | 'ethereum'
367367
export type Network =
368368
| 'main'
369369
| 'testnet'
370-
| 'ropsten'
371-
| 'rinkeby'
372-
| 'goerli'
373-
| 'kovan'
370+
| 'sepolia'
374371
| 'xdai'
375372
| 'bsc-main'
376373
| 'matic-main'

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ const injected = injectedModule({
375375
- SubWallet - _Desktop & Mobile_
376376
- Kayros - _Desktop_
377377
- Lif3Wallet - _Mobile_
378+
- StableWallet - _Mobile_
378379

379380
## Build Environments
380381

docs/src/routes/docs/[...4]wallets/[...5]capsule/+page.md

Lines changed: 40 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,65 @@
11
# Capsule
22

3-
## Wallet module for connecting Capsule to web3-onboard
3+
## Wallet module for connecting Capsule Embedded Wallets to web3-onboard
44

5-
[Capsule](https://usecapsule.com/) is a signing solution that you can use to create secure embedded MPC wallets with just an email or social login that are recoverable, portable, and permissioned across different crypto applications, so your users don't need to create different signers or contract accounts for every app they use.
5+
[Capsule](https://usecapsule.com/) is a signing solution that you can use to create secure embedded MPC wallets to onboard your users with just an email or social login. Capsule wallets are recoverable, portable, and permissioned across different crypto applications, so your users don't need to create different signers or contract accounts for every app they use
66

7-
Adding the Capsule Module to web3onboard gives your users the ability to log in with Capsule wallets created elsewhere. You can also [request a Capsule API Key](https://form.typeform.com/to/hLaJeYJW) to allow users to easily create embedded wallets within web3onboard without any extra integration steps.
7+
If you'd like to use Capsule's full functionality within the web3onboard package without any extra integration steps, you can also [request a Capsule API Key](https://usecapsule.com/api) and use it with this package.
88

99
To learn more, check out the [Capsule Developer Docs](https://docs.usecapsule.com/)
1010

1111
### Install
1212

13-
`yarn add @web3-onboard/capsule`
13+
<Tabs values={['yarn', 'npm', 'pnpm']}>
14+
<TabPanel value="yarn">
15+
16+
```sh copy
17+
yarn add @web3-onboard/capsule
18+
```
19+
20+
</TabPanel>
21+
<TabPanel value="npm">
22+
23+
```sh copy
24+
npm install @web3-onboard/capsule
25+
```
26+
27+
</TabPanel>
28+
<TabPanel value="pnpm">
29+
30+
```sh copy
31+
pnpm install @web3-onboard/capsule
32+
```
33+
34+
</TabPanel>
35+
</Tabs>
1436

1537
## Options
38+
For configuration options, check out the [Integration Guide Docs](https://docs.usecapsule.com/integration-guide)
1639

1740
```typescript
1841
type CapsuleInitOptions = {
19-
environment: Environment
42+
environment: string
43+
apiKey: string
44+
/** @optional capsule object opts */
45+
constructorOpts?: ConstructorOpts
2046
appName: string
21-
apiKey?: string
47+
/** @optional capsule modal props */
48+
modalProps?: CapsuleModalV2Props
2249
}
2350
```
24-
25-
`environment` - The environment to which you want to connect, either `Environment.DEVELOPMENT` for testnets and development only or `Environment.PRODUCTION` for production use.
26-
`appName` - Your Application's name - displayed in the modal when your users are prompted to log in.
27-
`apiKey` - Your Capsule API Key. Required for new user creation, but not required if you are only allowing users to log in. To get an API key, fill out [this form](https://form.typeform.com/to/hLaJeYJW).
28-
2951
## Usage
30-
3152
```typescript
3253
import Onboard from '@web3-onboard/core'
54+
import Capsule, { Environment } from '@usecapsule/react-sdk';
3355
import capsuleModule from '@web3-onboard/capsule'
3456

35-
// initialize the module with options
36-
const capsule = capsuleModule()
37-
38-
const onboard = Onboard({
39-
// ... other Onboard options
40-
wallets: [
41-
capsule
42-
//... other wallets
43-
]
44-
})
57+
// initialize capsule
58+
const capsule = new Capsule(
59+
Environment.BETA, // for production, use ENVIRONMENT.PROD
60+
"YOUR_API_KEY"
61+
{ opts } // find these at docs.usecapsule.com
62+
);
4563

4664
const connectedWallets = await onboard.connectWallet()
4765
console.log(connectedWallets)

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ const chains = [
127127
rpcUrl: `https://mainnet.infura.io/v3/${INFURA_KEY}`
128128
},
129129
{
130-
id: '0x5',
130+
id: 11155111,
131131
token: 'ETH',
132-
label: 'Goerli',
133-
rpcUrl: `https://goerli.infura.io/v3/${INFURA_KEY}`
132+
label: 'Sepolia',
133+
rpcUrl: 'https://rpc.sepolia.org/'
134134
},
135135
{
136136
id: '0x13881',
@@ -147,7 +147,7 @@ const chains = [
147147
{
148148
id: '0xA',
149149
token: 'OETH',
150-
label: 'Optimism',
150+
label: 'OP Mainnet',
151151
rpcUrl: 'https://mainnet.optimism.io'
152152
},
153153
{
@@ -395,10 +395,10 @@ const chains = [
395395
rpcUrl: `https://mainnet.infura.io/v3/${INFURA_ID}`
396396
},
397397
{
398-
id: '0x5',
398+
id: 11155111,
399399
token: 'ETH',
400-
label: 'Goerli',
401-
rpcUrl: `https://goerli.infura.io/v3/${INFURA_ID}`
400+
label: 'Sepolia',
401+
rpcUrl: 'https://rpc.sepolia.org/'
402402
},
403403
{
404404
id: '0x13881',
@@ -415,7 +415,7 @@ const chains = [
415415
{
416416
id: '0xA',
417417
token: 'OETH',
418-
label: 'Optimism',
418+
label: 'OP Mainnet',
419419
rpcUrl: 'https://mainnet.optimism.io'
420420
},
421421
{

docs/src/routes/examples/[...2]uniswap-widget/+page.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ import injectedModule from '@web3-onboard/injected-wallets'
4545

4646
const INFURA_KEY = ''
4747

48-
const ethereumRopsten = {
49-
id: '0x3',
50-
token: 'rETH',
51-
label: 'Ethereum Ropsten',
52-
rpcUrl: `https://ropsten.infura.io/v3/${INFURA_KEY}`
48+
const ethereumSepolia = {
49+
id: 11155111,
50+
token: 'ETH',
51+
label: 'Sepolia',
52+
rpcUrl: 'https://rpc.sepolia.org/'
5353
}
5454

5555
const polygonMainnet = {
@@ -66,7 +66,7 @@ const degenChain = {
6666
rpcUrl: 'https://rpc.degen.tips'
6767
}
6868

69-
const chains = [ethereumRopsten, polygonMainnet]
69+
const chains = [ethereumSepolia, polygonMainnet]
7070

7171
const wallets = [injectedModule()]
7272

0 commit comments

Comments
 (0)