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

chore: Capsule <> Para brand update #2344

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
14 changes: 7 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -442,10 +442,10 @@ jobs:
working_directory: ~/web3-onboard-monorepo/packages/solid
steps:
- node-build-steps
build-capsule:
build-para:
docker:
- image: cimg/node:18.18.2
working_directory: ~/web3-onboard-monorepo/packages/capsule
working_directory: ~/web3-onboard-monorepo/packages/para
steps:
- node-build-steps
build-particle:
Expand Down Expand Up @@ -762,10 +762,10 @@ jobs:
working_directory: ~/web3-onboard-monorepo/packages/solid
steps:
- node-staging-build-steps
build-staging-capsule:
build-staging-para:
docker:
- image: cimg/node:18.18.2
working_directory: ~/web3-onboard-monorepo/packages/capsule
working_directory: ~/web3-onboard-monorepo/packages/para
steps:
- node-staging-build-steps
build-staging-particle:
Expand Down Expand Up @@ -1085,11 +1085,11 @@ workflows:
<<: *deploy_production_filters
- build-staging-solid:
<<: *deploy_staging_filters
capsule:
para:
jobs:
- build-capsule:
- build-para:
<<: *deploy_production_filters
- build-staging-capsule:
- build-staging-para:
<<: *deploy_staging_filters
particle:
jobs:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ For full documentation, check out the README.md for each package or the [docs pa
- [Arcana](packages/arcana-auth/README.md)
- [Bitget](packages/bitget/README.md)
- [Blocto](packages/blocto/README.md)
- [Capsule](packages/capsule/README.md)
- [Para](packages/para/README.md)
- [Coinbase](packages/coinbase/README.md)
- [Enkrypt](packages/enkrypt/README.md)
- [FinoaConnect](packages/finoaconnect/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 @@ -12,8 +12,8 @@
"format": "prettier --plugin-search-dir . --write .",
"prepare": "svelte-kit sync",
"test": "playwright test",
"w3o-latest-prod": "yarn add '@web3-onboard/core' '@web3-onboard/coinbase' '@web3-onboard/transaction-preview' '@web3-onboard/dcent' '@web3-onboard/frontier' '@web3-onboard/fortmatic' '@web3-onboard/frame' '@web3-onboard/gas' '@web3-onboard/gnosis' '@web3-onboard/keepkey' '@web3-onboard/keystone' '@web3-onboard/ledger' '@web3-onboard/infinity-wallet' '@web3-onboard/injected-wallets' '@web3-onboard/magic' '@web3-onboard/phantom' '@web3-onboard/portis' '@web3-onboard/sequence' '@web3-onboard/trezor' '@web3-onboard/trust' '@web3-onboard/okx' '@web3-onboard/torus' '@web3-onboard/taho' '@web3-onboard/web3auth' '@web3-onboard/walletconnect' '@web3-onboard/enkrypt' '@web3-onboard/mew-wallet' '@web3-onboard/xdefi' '@web3-onboard/uauth' '@web3-onboard/zeal' '@web3-onboard/cede-store' '@web3-onboard/blocto' '@web3-onboard/capsule' '@web3-onboard/particle-network' '@web3-onboard/metamask' '@web3-onboard/bitget' '@web3-onboard/arcana-auth' '@web3-onboard/venly'",
"w3o-latest-alpha": "yarn add '@web3-onboard/core@next' '@web3-onboard/coinbase@next' '@web3-onboard/transaction-preview@next' '@web3-onboard/dcent@next' '@web3-onboard/frontier@next' '@web3-onboard/fortmatic@next' '@web3-onboard/frame@next' '@web3-onboard/gas@next' '@web3-onboard/gnosis@next' '@web3-onboard/keepkey@next' '@web3-onboard/keystone@next' '@web3-onboard/ledger@next' '@web3-onboard/infinity-wallet@next' '@web3-onboard/injected-wallets@next' '@web3-onboard/magic@next' '@web3-onboard/phantom@next' '@web3-onboard/portis@next' '@web3-onboard/sequence@next' '@web3-onboard/trezor@next' '@web3-onboard/trust@next' '@web3-onboard/okx@next' '@web3-onboard/torus@next' '@web3-onboard/taho@next' '@web3-onboard/web3auth@next' '@web3-onboard/walletconnect@next' '@web3-onboard/enkrypt@next' '@web3-onboard/mew-wallet@next' '@web3-onboard/xdefi@next' '@web3-onboard/uauth@next' '@web3-onboard/zeal@next' '@web3-onboard/cede-store@next' '@web3-onboard/blocto@next' '@web3-onboard/capsule@next' '@web3-onboard/metamask@next' '@web3-onboard/bitget@next' '@web3-onboard/arcana-auth@next' '@web3-onboard/venly@next' '@web3-onboard/particle-network@next'"
"w3o-latest-prod": "yarn add '@web3-onboard/core' '@web3-onboard/coinbase' '@web3-onboard/transaction-preview' '@web3-onboard/dcent' '@web3-onboard/frontier' '@web3-onboard/fortmatic' '@web3-onboard/frame' '@web3-onboard/gas' '@web3-onboard/gnosis' '@web3-onboard/keepkey' '@web3-onboard/keystone' '@web3-onboard/ledger' '@web3-onboard/infinity-wallet' '@web3-onboard/injected-wallets' '@web3-onboard/magic' '@web3-onboard/phantom' '@web3-onboard/portis' '@web3-onboard/sequence' '@web3-onboard/trezor' '@web3-onboard/trust' '@web3-onboard/okx' '@web3-onboard/torus' '@web3-onboard/taho' '@web3-onboard/web3auth' '@web3-onboard/walletconnect' '@web3-onboard/enkrypt' '@web3-onboard/mew-wallet' '@web3-onboard/xdefi' '@web3-onboard/uauth' '@web3-onboard/zeal' '@web3-onboard/cede-store' '@web3-onboard/blocto' '@web3-onboard/para' '@web3-onboard/particle-network' '@web3-onboard/metamask' '@web3-onboard/bitget' '@web3-onboard/arcana-auth' '@web3-onboard/venly'",
"w3o-latest-alpha": "yarn add '@web3-onboard/core@next' '@web3-onboard/coinbase@next' '@web3-onboard/transaction-preview@next' '@web3-onboard/dcent@next' '@web3-onboard/frontier@next' '@web3-onboard/fortmatic@next' '@web3-onboard/frame@next' '@web3-onboard/gas@next' '@web3-onboard/gnosis@next' '@web3-onboard/keepkey@next' '@web3-onboard/keystone@next' '@web3-onboard/ledger@next' '@web3-onboard/infinity-wallet@next' '@web3-onboard/injected-wallets@next' '@web3-onboard/magic@next' '@web3-onboard/phantom@next' '@web3-onboard/portis@next' '@web3-onboard/sequence@next' '@web3-onboard/trezor@next' '@web3-onboard/trust@next' '@web3-onboard/okx@next' '@web3-onboard/torus@next' '@web3-onboard/taho@next' '@web3-onboard/web3auth@next' '@web3-onboard/walletconnect@next' '@web3-onboard/enkrypt@next' '@web3-onboard/mew-wallet@next' '@web3-onboard/xdefi@next' '@web3-onboard/uauth@next' '@web3-onboard/zeal@next' '@web3-onboard/cede-store@next' '@web3-onboard/blocto@next' '@web3-onboard/para@next' '@web3-onboard/metamask@next' '@web3-onboard/bitget@next' '@web3-onboard/arcana-auth@next' '@web3-onboard/venly@next' '@web3-onboard/particle-network@next'"
},
"devDependencies": {
"@algolia/client-search": "^4.17.0",
Expand Down Expand Up @@ -54,7 +54,7 @@
"@safe-global/safe-apps-sdk": "^8.1.0",
"@web3-onboard/bitget": "^2.1.1",
"@web3-onboard/blocto": "^2.1.1",
"@web3-onboard/capsule": "^2.4.0",
"@web3-onboard/para": "^2.4.0",
"@web3-onboard/cede-store": "^2.3.1",
"@web3-onboard/coinbase": "^2.3.1",
"@web3-onboard/core": "^2.23.1-alpha.1",
Expand Down
6 changes: 3 additions & 3 deletions docs/src/lib/services/onboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const intiOnboard = async theme => {
const { default: venlyModule } = await import('@web3-onboard/venly')
const { default: bitgetModule } = await import('@web3-onboard/bitget')
const { default: finoaConnectModule } = await import('@web3-onboard/finoaconnect')
const { default: capsuleModule, Environment } = await import('@web3-onboard/capsule')
const { default: paraModule, Environment } = await import('@web3-onboard/para')
const { default: particleAuthModule } = await import('@web3-onboard/particle-network')
const INFURA_ID = '8b60d52405694345a99bcb82e722e0af'

Expand Down Expand Up @@ -137,7 +137,7 @@ const intiOnboard = async theme => {
environment: 'staging'
})

const capsule = capsuleModule({
const para = paraModule({
environment: Environment.DEVELOPMENT,
apiKey: '992bbd9146d5de8ad0419f141d9a7ca7'
})
Expand Down Expand Up @@ -182,7 +182,7 @@ const intiOnboard = async theme => {
particle,
venly,
finoaconnect,
capsule
para
],
chains: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ We recommend you add the [Core Repo](../../modules/core.md#install) and consider

- [Arcana Auth](../../wallets/arcana.md#install)
- [Blocto](../../wallets/blocto.md#install)
- [Capsule](../../wallets/capsule.md#install)
- [Para](../../wallets/para.md#install)
- [Coinbase](../../wallets/coinbase.md#install)
- [Fortmatic](../../wallets/fortmatic.md#install)
- [Frame](../../wallets/frame.md#install)
Expand Down
39 changes: 21 additions & 18 deletions docs/src/routes/docs/[...4]wallets/[...5]capsule/+page.md
Original file line number Diff line number Diff line change
@@ -1,64 +1,67 @@
# Capsule
# Para

## Wallet module for connecting Capsule Embedded Wallets to web3-onboard
## Wallet module for connecting Para Embedded Wallets to web3-onboard

[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
[Para](https://getpara.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. Para 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

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.
If you'd like to use Para's full functionality within the web3onboard package without any extra integration steps, you can also [request a Para API Key](https://getpara.com/api) and use it with this package.

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

### Install

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

```sh copy
yarn add @web3-onboard/capsule
yarn add @web3-onboard/para
```

</TabPanel>
<TabPanel value="npm">

```sh copy
npm install @web3-onboard/capsule
npm install @web3-onboard/para
```

</TabPanel>
<TabPanel value="pnpm">

```sh copy
pnpm install @web3-onboard/capsule
pnpm install @web3-onboard/para
```

</TabPanel>
</Tabs>

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

For configuration options, check out the [Integration Guide Docs](https://docs.getpara.com/integration-guide)

```typescript
type CapsuleInitOptions = {
type ParaInitOptions = {
environment: string
apiKey: string
/** @optional capsule object opts */
/** @optional para object opts */
constructorOpts?: Partial<ConstructorOpts>
appName: string
/** @optional capsule modal props */
modalProps?: Partial<CapsuleModalPropsForInit>
/** @optional para modal props */
modalProps?: Partial<ParaModalPropsForInit>
}
```

## Usage

```typescript
import Onboard from '@web3-onboard/core'
import Capsule, { Environment } from '@usecapsule/react-sdk';
import capsuleModule from '@web3-onboard/capsule'
import Para, { Environment } from '@getpara/react-sdk';
import paraModule from '@web3-onboard/para'

// initialize capsule
const capsule = new Capsule(
// initialize para
const para = new Para(
Environment.BETA, // for production, use ENVIRONMENT.PROD
"YOUR_API_KEY"
{ opts } // find these at docs.usecapsule.com
{ opts } // find these at docs.getpara.com
);

const connectedWallets = await onboard.connectWallet()
Expand Down
87 changes: 0 additions & 87 deletions packages/capsule/README.md

This file was deleted.

10 changes: 0 additions & 10 deletions packages/capsule/src/icon.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"@web3-onboard/bitget": "2.1.1",
"@web3-onboard/blocto": "^2.1.1",
"@web3-onboard/bloom": "2.0.0",
"@web3-onboard/capsule": "^2.4.0",
"@web3-onboard/cede-store": "^2.3.1",
"@web3-onboard/core": "2.23.1",
"@web3-onboard/coinbase": "^2.4.1",
Expand All @@ -54,6 +53,7 @@
"@web3-onboard/metamask": "^2.2.0",
"@web3-onboard/mew-wallet": "^2.1.1",
"@web3-onboard/okx": "2.0.0",
"@web3-onboard/para": "^1.0.0",
"@web3-onboard/particle-network": "^2.1.1",
"@web3-onboard/passport": "^2.1.1",
"@web3-onboard/phantom": "^2.1.1",
Expand Down
24 changes: 12 additions & 12 deletions packages/demo/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
import particleAuthModule from '@web3-onboard/particle-network'
import finoaConnectModule from '@web3-onboard/finoaconnect'
import keplrModule from '@web3-onboard/keplr'
import capsuleModule, {
Environment as CapsuleEnvironment,
OAuthMethod as CapsuleOAuthMethods
} from '@web3-onboard/capsule'
import paraModule, {
Environment as ParaEnvironment,
OAuthMethod as ParaOAuthMethods
} from '@web3-onboard/para'
import {
recoverAddress,
arrayify,
Expand Down Expand Up @@ -275,17 +275,17 @@
clientId: 'blocknative',
environment: 'staging'
})
const capsule = capsuleModule({
environment: CapsuleEnvironment.DEVELOPMENT,
apiKey: '992bbd9146d5de8ad0419f141d9a7ca7',
const para = paraModule({
environment: ParaEnvironment.DEVELOPMENT,
apiKey: '2777c7a647fa0ff6cf88d69b5f8a4709',
modalProps: {
appName: 'Capsule',
appName: 'Para',
disableEmailLogin: false,
disablePhoneLogin: false,
oAuthMethods: Object.values(CapsuleOAuthMethods)
oAuthMethods: Object.values(ParaOAuthMethods)
},

walletLabel: 'Capsule'
walletLabel: 'Para'
})

const onboard = Onboard({
Expand Down Expand Up @@ -316,7 +316,7 @@
sequence,
uauth,
web3auth,
capsule,
para,
zeal,
frontier,
xdefi,
Expand Down Expand Up @@ -428,7 +428,7 @@
// disableClose: true,
// removeWhereIsMyWalletWarning: true,
// autoConnectLastWallet: false,
autoConnectAllPreviousWallet: true,
autoConnectAllPreviousWallet: true
},
appMetadata: {
name: 'Blocknative',
Expand Down
Loading