Skip to content

Commit

Permalink
Merge pull request #2012 from blocknative/release/2.24.17
Browse files Browse the repository at this point in the history
Release 2.24.17
  • Loading branch information
Adamj1232 committed Nov 29, 2023
2 parents e940409 + 94f35c0 commit efb0e44
Show file tree
Hide file tree
Showing 58 changed files with 10,347 additions and 254 deletions.
24 changes: 22 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ jobs:
- node-build-steps
build-walletconnect:
docker:
- image: cimg/node:16.13.1
- image: cimg/node:16.14.2
working_directory: ~/web3-onboard-monorepo/packages/walletconnect
steps:
- node-build-steps
Expand Down Expand Up @@ -437,6 +437,14 @@ jobs:
working_directory: ~/web3-onboard-monorepo/packages/solid
steps:
- node-build-steps
build-capsule:
docker:
- image: cimg/node:16.14.2
working_directory: ~/web3-onboard-monorepo/packages/capsule
steps:
- node-build-steps



# Build staging/Alpha releases
build-staging-core:
Expand Down Expand Up @@ -537,7 +545,7 @@ jobs:
- node-staging-build-steps
build-staging-walletconnect:
docker:
- image: cimg/node:16.13.1
- image: cimg/node:16.14.2
working_directory: ~/web3-onboard-monorepo/packages/walletconnect
steps:
- node-staging-build-steps
Expand Down Expand Up @@ -709,6 +717,12 @@ jobs:
working_directory: ~/web3-onboard-monorepo/packages/solid
steps:
- node-staging-build-steps
build-staging-capsule:
docker:
- image: cimg/node:16.14.2
working_directory: ~/web3-onboard-monorepo/packages/capsule
steps:
- node-staging-build-steps

workflows:
version: 2
Expand Down Expand Up @@ -983,3 +997,9 @@ workflows:
<<: *deploy_production_filters
- build-staging-solid:
<<: *deploy_staging_filters
capsule:
jobs:
- build-capsule:
<<: *deploy_production_filters
- build-staging-capsule:
<<: *deploy_staging_filters
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ For full documentation, check out the README.md for each package or the [docs pa
- [Portis](packages/portis/README.md)
- [MEW-Wallet](packages/mew-wallet/README.md)
- [Web3Auth](packages/web3auth/README.md)
- [Capsule](packages/capsule/README.md)
- [Sequence](packages/sequence/README.md)
- [Taho (previously Tally Ho)](packages/tallyho/README.md)
- [Enkrypt](packages/enkrypt/README.md)
Expand Down
6 changes: 3 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@web3-onboard/arcana-auth": "^2.0.0",
"@web3-onboard/bitget": "^2.0.0",
"@web3-onboard/blocto": "^2.0.0",
"@web3-onboard/cede-store": "^2.1.0",
"@web3-onboard/capsule": "^2.0.0",
"@web3-onboard/coinbase": "^2.2.5",
"@web3-onboard/core": "^2.21.2",
"@web3-onboard/dcent": "^2.2.7",
Expand All @@ -70,7 +70,7 @@
"@web3-onboard/keystone": "^2.3.7",
"@web3-onboard/ledger": "^2.5.1",
"@web3-onboard/magic": "^2.1.7",
"@web3-onboard/metamask": "^2.0.1",
"@web3-onboard/metamask": "^2.0.2",
"@web3-onboard/mew-wallet": "^2.0.4",
"@web3-onboard/phantom": "^2.0.3",
"@web3-onboard/portis": "^2.1.7",
Expand All @@ -82,7 +82,7 @@
"@web3-onboard/trust": "^2.0.4",
"@web3-onboard/uauth": "^2.1.1",
"@web3-onboard/venly": "^2.0.0",
"@web3-onboard/walletconnect": "^2.5.0",
"@web3-onboard/walletconnect": "^2.5.1",
"@web3-onboard/web3auth": "^2.2.3",
"@web3-onboard/xdefi": "^2.0.4",
"@web3-onboard/zeal": "^2.0.4",
Expand Down
8 changes: 7 additions & 1 deletion docs/src/lib/services/onboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const intiOnboard = async (theme) => {
const { default: bloctoModule } = await import('@web3-onboard/blocto')
const { default: venlyModule } = await import('@web3-onboard/venly')
const { default: bitgetModule } = await import('@web3-onboard/bitget')
const { default: capsuleModule, Environment } = await import('@web3-onboard/capsule')
const INFURA_ID = '8b60d52405694345a99bcb82e722e0af'

const injected = injectedModule()
Expand Down Expand Up @@ -127,6 +128,10 @@ const intiOnboard = async (theme) => {
environment: 'staging'
})

const capsule = capsuleModule({
environment: Environment.DEVELOPMENT,
})

return Onboard({
connect: { autoConnectAllPreviousWallet: true },
wallets: [
Expand Down Expand Up @@ -156,7 +161,8 @@ const intiOnboard = async (theme) => {
portis,
frame,
infinityWallet,
blocto
blocto,
capsule
// venly
],
chains: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ title: MetaMask
## Wallet module for connecting MetaMask Wallet SDK to web3-onboard

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

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

Expand Down
64 changes: 64 additions & 0 deletions docs/src/routes/docs/[...4]wallets/[...5]capsule/+page.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Capsule

## Wallet module for connecting Capsule to web3-onboard

[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.

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.

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

### Install

`yarn add @web3-onboard/capsule`

## Options

```typescript
type CapsuleInitOptions = {
environment: Environment
appName: string
apiKey?: string
}
```
`environment` - The environment to which you want to connect, either `Environment.DEVELOPMENT` for testnets and development only or `Environment.PRODUCTION` for production use.
`appName` - Your Application's name - displayed in the modal when your users are prompted to log in.
`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).
## Usage
```typescript
import Onboard from '@web3-onboard/core'
import capsuleModule from '@web3-onboard/capsule'

// initialize the module with options
const capsule = capsuleModule()

const onboard = Onboard({
// ... other Onboard options
wallets: [
capsule
//... other wallets
]
})

const connectedWallets = await onboard.connectWallet()
console.log(connectedWallets)
```

## Build env settings (webpack config)

You may need to add the following rule to your webpack config module
in order to handle certain styling files (See the config for the
Blocknative demo app):

```typescript
{
test: /\.(woff(2)?|eot|ttf|otf|svg)$/,
type: 'asset/resource',
generator: {
filename: 'fonts/[name][ext][query]'
}
}
```
Loading

0 comments on commit efb0e44

Please sign in to comment.