Skip to content

Commit efb0e44

Browse files
authored
Merge pull request #2012 from blocknative/release/2.24.17
Release 2.24.17
2 parents e940409 + 94f35c0 commit efb0e44

File tree

58 files changed

+10347
-254
lines changed

Some content is hidden

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

58 files changed

+10347
-254
lines changed

.circleci/config.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ jobs:
265265
- node-build-steps
266266
build-walletconnect:
267267
docker:
268-
- image: cimg/node:16.13.1
268+
- image: cimg/node:16.14.2
269269
working_directory: ~/web3-onboard-monorepo/packages/walletconnect
270270
steps:
271271
- node-build-steps
@@ -437,6 +437,14 @@ jobs:
437437
working_directory: ~/web3-onboard-monorepo/packages/solid
438438
steps:
439439
- node-build-steps
440+
build-capsule:
441+
docker:
442+
- image: cimg/node:16.14.2
443+
working_directory: ~/web3-onboard-monorepo/packages/capsule
444+
steps:
445+
- node-build-steps
446+
447+
440448

441449
# Build staging/Alpha releases
442450
build-staging-core:
@@ -537,7 +545,7 @@ jobs:
537545
- node-staging-build-steps
538546
build-staging-walletconnect:
539547
docker:
540-
- image: cimg/node:16.13.1
548+
- image: cimg/node:16.14.2
541549
working_directory: ~/web3-onboard-monorepo/packages/walletconnect
542550
steps:
543551
- node-staging-build-steps
@@ -709,6 +717,12 @@ jobs:
709717
working_directory: ~/web3-onboard-monorepo/packages/solid
710718
steps:
711719
- node-staging-build-steps
720+
build-staging-capsule:
721+
docker:
722+
- image: cimg/node:16.14.2
723+
working_directory: ~/web3-onboard-monorepo/packages/capsule
724+
steps:
725+
- node-staging-build-steps
712726

713727
workflows:
714728
version: 2
@@ -983,3 +997,9 @@ workflows:
983997
<<: *deploy_production_filters
984998
- build-staging-solid:
985999
<<: *deploy_staging_filters
1000+
capsule:
1001+
jobs:
1002+
- build-capsule:
1003+
<<: *deploy_production_filters
1004+
- build-staging-capsule:
1005+
<<: *deploy_staging_filters

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ For full documentation, check out the README.md for each package or the [docs pa
115115
- [Portis](packages/portis/README.md)
116116
- [MEW-Wallet](packages/mew-wallet/README.md)
117117
- [Web3Auth](packages/web3auth/README.md)
118+
- [Capsule](packages/capsule/README.md)
118119
- [Sequence](packages/sequence/README.md)
119120
- [Taho (previously Tally Ho)](packages/tallyho/README.md)
120121
- [Enkrypt](packages/enkrypt/README.md)

docs/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"@web3-onboard/arcana-auth": "^2.0.0",
5555
"@web3-onboard/bitget": "^2.0.0",
5656
"@web3-onboard/blocto": "^2.0.0",
57-
"@web3-onboard/cede-store": "^2.1.0",
57+
"@web3-onboard/capsule": "^2.0.0",
5858
"@web3-onboard/coinbase": "^2.2.5",
5959
"@web3-onboard/core": "^2.21.2",
6060
"@web3-onboard/dcent": "^2.2.7",
@@ -70,7 +70,7 @@
7070
"@web3-onboard/keystone": "^2.3.7",
7171
"@web3-onboard/ledger": "^2.5.1",
7272
"@web3-onboard/magic": "^2.1.7",
73-
"@web3-onboard/metamask": "^2.0.1",
73+
"@web3-onboard/metamask": "^2.0.2",
7474
"@web3-onboard/mew-wallet": "^2.0.4",
7575
"@web3-onboard/phantom": "^2.0.3",
7676
"@web3-onboard/portis": "^2.1.7",
@@ -82,7 +82,7 @@
8282
"@web3-onboard/trust": "^2.0.4",
8383
"@web3-onboard/uauth": "^2.1.1",
8484
"@web3-onboard/venly": "^2.0.0",
85-
"@web3-onboard/walletconnect": "^2.5.0",
85+
"@web3-onboard/walletconnect": "^2.5.1",
8686
"@web3-onboard/web3auth": "^2.2.3",
8787
"@web3-onboard/xdefi": "^2.0.4",
8888
"@web3-onboard/zeal": "^2.0.4",

docs/src/lib/services/onboard.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ const intiOnboard = async (theme) => {
5858
const { default: bloctoModule } = await import('@web3-onboard/blocto')
5959
const { default: venlyModule } = await import('@web3-onboard/venly')
6060
const { default: bitgetModule } = await import('@web3-onboard/bitget')
61+
const { default: capsuleModule, Environment } = await import('@web3-onboard/capsule')
6162
const INFURA_ID = '8b60d52405694345a99bcb82e722e0af'
6263

6364
const injected = injectedModule()
@@ -127,6 +128,10 @@ const intiOnboard = async (theme) => {
127128
environment: 'staging'
128129
})
129130

131+
const capsule = capsuleModule({
132+
environment: Environment.DEVELOPMENT,
133+
})
134+
130135
return Onboard({
131136
connect: { autoConnectAllPreviousWallet: true },
132137
wallets: [
@@ -156,7 +161,8 @@ const intiOnboard = async (theme) => {
156161
portis,
157162
frame,
158163
infinityWallet,
159-
blocto
164+
blocto,
165+
capsule
160166
// venly
161167
],
162168
chains: [

docs/src/routes/docs/[...4]wallets/[...18]metamask/+page.md renamed to docs/src/routes/docs/[...4]wallets/[...19]metamask/+page.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ title: MetaMask
1111
## Wallet module for connecting MetaMask Wallet SDK to web3-onboard
1212

1313
The MetaMask Web3-Onboard module provides a reliable, secure, and seamless connection from your dapp to the MetaMask browser extension and MetaMask Mobile.
14-
See [MetaMask SDK Developer Docs](https://github.com/MetaMask/metamask-sdk)
14+
See [MetaMask SDK Developer Docs](https://docs.metamask.io/wallet/how-to/connect/set-up-sdk/)
1515

1616
<img src="{metaMaskSDKConnect}" alt="MetaMask SDK connect flow gif"/>
1717

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Capsule
2+
3+
## Wallet module for connecting Capsule to web3-onboard
4+
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.
6+
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.
8+
9+
To learn more, check out the [Capsule Developer Docs](https://docs.usecapsule.com/)
10+
11+
### Install
12+
13+
`yarn add @web3-onboard/capsule`
14+
15+
## Options
16+
17+
```typescript
18+
type CapsuleInitOptions = {
19+
environment: Environment
20+
appName: string
21+
apiKey?: string
22+
}
23+
```
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+
29+
## Usage
30+
31+
```typescript
32+
import Onboard from '@web3-onboard/core'
33+
import capsuleModule from '@web3-onboard/capsule'
34+
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+
})
45+
46+
const connectedWallets = await onboard.connectWallet()
47+
console.log(connectedWallets)
48+
```
49+
50+
## Build env settings (webpack config)
51+
52+
You may need to add the following rule to your webpack config module
53+
in order to handle certain styling files (See the config for the
54+
Blocknative demo app):
55+
56+
```typescript
57+
{
58+
test: /\.(woff(2)?|eot|ttf|otf|svg)$/,
59+
type: 'asset/resource',
60+
generator: {
61+
filename: 'fonts/[name][ext][query]'
62+
}
63+
}
64+
```

0 commit comments

Comments
 (0)