Skip to content

Commit

Permalink
Release 2.25.0 (#2102)
Browse files Browse the repository at this point in the history
* Remove gamestop wallet support as wallet has been deprecated (#2037)

* Update WC imports, bump WC package version, bump WC dep version (#2036)

* Fix the Safe connector options and add Blockscout to the list of allowed domains (#2038)

* change option name

* add Blockscout to default list of allowed domains

* change option name in docs

* increment the version

* return the old param name

* Update packages/gnosis/package.json

* Update packages/demo/package.json

* Update packages/gnosis/package.json

* Update packages/demo/package.json

* Yarn it

---------

Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com>

* Release 2.24.19 (develop) (#2042)

* Update versions for release

* Bump injected version in demo

* Release 2.24.19 (#2043)

* Remove gamestop wallet support as wallet has been deprecated (#2037)

* Update WC imports, bump WC package version, bump WC dep version (#2036)

* Fix the Safe connector options and add Blockscout to the list of allowed domains (#2038)

* change option name

* add Blockscout to default list of allowed domains

* change option name in docs

* increment the version

* return the old param name

* Update packages/gnosis/package.json

* Update packages/demo/package.json

* Update packages/gnosis/package.json

* Update packages/demo/package.json

* Yarn it

---------

Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com>

* Update versions for release

* Bump injected version in demo

---------

Co-authored-by: Max Alekseenko <nnwen0609@gmail.com>

* rebase main

* Update node version required for Walletconnect package

* Yarn

* [FIX] - Update node version required for Walletconnect package (#2045)

* rebase main

* Update node version required for Walletconnect package

* Yarn

* Updated config.yml

* Updated config.yml

---------

Co-authored-by: Max Alekseenko <nnwen0609@gmail.com>

* Release 2.24.19 (docs) (#2044)

* Remove gamestop wallet support as wallet has been deprecated (#2037)

* Update WC imports, bump WC package version, bump WC dep version (#2036)

* Fix the Safe connector options and add Blockscout to the list of allowed domains (#2038)

* change option name

* add Blockscout to default list of allowed domains

* change option name in docs

* increment the version

* return the old param name

* Update packages/gnosis/package.json

* Update packages/demo/package.json

* Update packages/gnosis/package.json

* Update packages/demo/package.json

* Yarn it

---------

Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com>

* Update versions for release

* Bump injected version in demo

* Release 2.24.19 (#2043)

* Remove gamestop wallet support as wallet has been deprecated (#2037)

* Update WC imports, bump WC package version, bump WC dep version (#2036)

* Fix the Safe connector options and add Blockscout to the list of allowed domains (#2038)

* change option name

* add Blockscout to default list of allowed domains

* change option name in docs

* increment the version

* return the old param name

* Update packages/gnosis/package.json

* Update packages/demo/package.json

* Update packages/gnosis/package.json

* Update packages/demo/package.json

* Yarn it

---------

Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com>

* Update versions for release

* Bump injected version in demo

---------

Co-authored-by: Max Alekseenko <nnwen0609@gmail.com>

* rebase main

* Update node version required for Walletconnect package

* Yarn

* [FIX] - Update node version required for Walletconnect package (#2045)

* rebase main

* Update node version required for Walletconnect package

* Yarn

* Updated config.yml

* Updated config.yml

---------

Co-authored-by: Max Alekseenko <nnwen0609@gmail.com>

* load ledger connect kit via package instead of loader (#2061)

* load ledger connect kit via package instead of loader

* change import ethereumprovider type file extension

* Update default optional methods, bump to minor version as deps changed and test

---------

Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com>

* Bump ledger module node version for build to 16.14.2 (#2062)

* Ledger - [FIX] : Bump ledger module node version for build to 18.0.0 because of WC dep (#2063)

* Bump ledger module node version for build to 16.14.2

* Bump node version again for WC dep within ledger

* Add Lif3 Wallet Support (#2058)

* add lif3Wallet

* Update package version and add wallet to docs

* Fix Lif3 Wallet name

---------

Co-authored-by: Tekrajs <ricket999@gmail.com>
Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com>

* Adds Particle Network (Wallet-as-a-Service) (#1962)

* Add files via upload

* Update README.md

* Create +page.md

* Update package.json

* Rename +page.md to +page.md

* Update apple.ts

* Demo addition

* Update packages/demo/package.json

Co-authored-by: Kat Leight <33187102+leightkt@users.noreply.github.com>

* Update packages/particle-network/package.json

Co-authored-by: Kat Leight <33187102+leightkt@users.noreply.github.com>

* Fixes

* Correction

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Small type fix and format

* async fix

---------

Co-authored-by: Kat Leight <33187102+leightkt@users.noreply.github.com>

* add particle to config.yml, reorder docs tabs, add particle to docs onboard (#2069)

* Add capsule to docs wallet options (#2070)

* Fix the connect modal getting covered by the bottom bar (#2057)

* fix the connect modal being covered by the bottom bar

* pump the package version

* feat: remove .mobile-safari class

* bump packages' version

* bump the version of @web3-onboard/core in other packages

---------

Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com>

* feat: rabby support mobile (#2079)

* FEAT - Add 6963 support to injected wallets module (#2076)

* Add 6963 support to injected module

* add option to disable usage

* update docs

* Update readmes

* Helper fnc to check for executable js

* Update packages/injected/src/wallets.ts

* Merge in dev

* feat: update blocto version (#2082)

* feat: update blocto sdk version

* feat: update blocto version

* feat: update demo polygon testnet rpcUrl

* feat: update package version

* fix: update package version

* fix: use optional chaining

* fix: uppercase variable name

* fix: use css vars for font size (wallet button) (#2072)

* fix: use css vars for font-size

* chore: bump version

* chore: bump dependents

* chore: bump versions

* Bump module versions

---------

Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com>

* Update: WalletConnet deps to latest (#2083)

* Update WC deps

* Update WC versions

* Fix the demo (#2086)

* Update coinbase wallet dependencies, add new init props to contructor, add JS docs notes and update docs (#2093)

* Bump packages that require common, fix inter url (#2092)

* Update Trezor & Keepkey build node v to 18 (#2098)

* Update trezor build node v to 18

* Update keepkey node v also

* [FIX] -  Keepkey build Node version to 16.20.2 (#2099)

* Update trezor build node v to 18

* Update keepkey node v also

* Update keepkey node v

* Revert node v changes for bitkeep

* Bump MetaMask module sdk deps (#2087)

* Bump MetaMask deps

* Add engines to metamask to define node version requirements

* Update node version for metamask within CCI to 18.19.1 (#2100)

* Bump versions for release and Remove console.log

* Bump versions for release and Remove console.log

* node engine

* node engine

---------

Co-authored-by: Max Alekseenko <nnwen0609@gmail.com>
Co-authored-by: Samy Rabah <rabah.m.samy@gmail.com>
Co-authored-by: Kean Laurens <keanlaurens@gmail.com>
Co-authored-by: Tekrajs <ricket999@gmail.com>
Co-authored-by: TABASCO <84655644+TABASCOatw@users.noreply.github.com>
Co-authored-by: Kat Leight <33187102+leightkt@users.noreply.github.com>
Co-authored-by: Hugh Do <mhughdo@gmail.com>
Co-authored-by: DMY <147dmy@gmail.com>
Co-authored-by: jimmy.pan <pan831225@gmail.com>
Co-authored-by: Ryan Waldon <ryanpwaldon@gmail.com>
  • Loading branch information
11 people committed Mar 21, 2024
1 parent 2cb0bd5 commit b376ddd
Show file tree
Hide file tree
Showing 78 changed files with 2,280 additions and 407 deletions.
38 changes: 27 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ jobs:
- node-build-steps
build-keepkey:
docker:
- image: cimg/node:16.13.1
- image: cimg/node:16.20.2
working_directory: ~/web3-onboard-monorepo/packages/keepkey
steps:
- node-build-steps
Expand All @@ -217,7 +217,7 @@ jobs:
- node-build-steps
build-ledger:
docker:
- image: cimg/node:16.13.1
- image: cimg/node:18.0.0
working_directory: ~/web3-onboard-monorepo/packages/ledger
steps:
- node-build-steps
Expand Down Expand Up @@ -247,7 +247,7 @@ jobs:
- node-build-steps
build-trezor:
docker:
- image: cimg/node:16.13.1
- image: cimg/node:18.19.1
working_directory: ~/web3-onboard-monorepo/packages/trezor
steps:
- node-build-steps
Expand Down Expand Up @@ -427,7 +427,7 @@ jobs:
- node-build-steps
build-metamask:
docker:
- image: cimg/node:16.13.1
- image: cimg/node:18.19.1
working_directory: ~/web3-onboard-monorepo/packages/metamask
steps:
- node-build-steps
Expand All @@ -443,8 +443,12 @@ jobs:
working_directory: ~/web3-onboard-monorepo/packages/capsule
steps:
- node-build-steps


build-particle:
docker:
- image: cimg/node:18.0.0
working_directory: ~/web3-onboard-monorepo/packages/particle-network
steps:
- node-build-steps

# Build staging/Alpha releases
build-staging-core:
Expand Down Expand Up @@ -485,7 +489,7 @@ jobs:
- node-staging-build-steps
build-staging-keepkey:
docker:
- image: cimg/node:16.13.1
- image: cimg/node:16.20.2
working_directory: ~/web3-onboard-monorepo/packages/keepkey
steps:
- node-staging-build-steps
Expand All @@ -497,7 +501,7 @@ jobs:
- node-staging-build-steps
build-staging-ledger:
docker:
- image: cimg/node:16.13.1
- image: cimg/node:18.0.0
working_directory: ~/web3-onboard-monorepo/packages/ledger
steps:
- node-staging-build-steps
Expand Down Expand Up @@ -527,7 +531,7 @@ jobs:
- node-staging-build-steps
build-staging-trezor:
docker:
- image: cimg/node:16.13.1
- image: cimg/node:18.19.1
working_directory: ~/web3-onboard-monorepo/packages/trezor
steps:
- node-staging-build-steps
Expand Down Expand Up @@ -707,7 +711,7 @@ jobs:
- node-staging-build-steps
build-staging-metamask:
docker:
- image: cimg/node:16.13.1
- image: cimg/node:18.19.1
working_directory: ~/web3-onboard-monorepo/packages/metamask
steps:
- node-staging-build-steps
Expand All @@ -723,6 +727,12 @@ jobs:
working_directory: ~/web3-onboard-monorepo/packages/capsule
steps:
- node-staging-build-steps
build-staging-particle:
docker:
- image: cimg/node:18.0.0
working_directory: ~/web3-onboard-monorepo/packages/particle-network
steps:
- node-build-steps

workflows:
version: 2
Expand Down Expand Up @@ -1002,4 +1012,10 @@ workflows:
- build-capsule:
<<: *deploy_production_filters
- build-staging-capsule:
<<: *deploy_staging_filters
<<: *deploy_staging_filters
particle:
jobs:
- build-particle:
<<: *deploy_production_filters
- build-staging-particle:
<<: *deploy_staging_filters
2 changes: 1 addition & 1 deletion .github/workflows/pr-status-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup Nodejs and yarn
uses: actions/setup-node@v2
with:
node-version: "16"
node-version: "18.19.1"
cache: yarn

- name: Install dependencies
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ For full documentation, check out the README.md for each package or the [docs pa
- [Infinity Wallet](packages/infinity-wallet/README.md)
- [Frame](packages/frame/README.md)
- [Blocto](packages/blocto/README.md)
- [Particle Network](packages/particle-network/README.md)

**Hardware Wallets**

Expand Down
13 changes: 7 additions & 6 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
"@web3-onboard/blocto": "^2.0.0",
"@web3-onboard/capsule": "^2.0.1",
"@web3-onboard/cede-store": "^2.2.0",
"@web3-onboard/coinbase": "^2.2.5",
"@web3-onboard/core": "^2.21.2",
"@web3-onboard/coinbase": "^2.2.7",
"@web3-onboard/core": "^2.21.3",
"@web3-onboard/dcent": "^2.2.7",
"@web3-onboard/enkrypt": "^2.0.4",
"@web3-onboard/fortmatic": "^2.0.19",
Expand All @@ -67,12 +67,12 @@
"@web3-onboard/gas": "^2.1.8",
"@web3-onboard/gnosis": "^2.1.10",
"@web3-onboard/infinity-wallet": "^2.0.4",
"@web3-onboard/injected-wallets": "^2.10.9",
"@web3-onboard/injected-wallets": "^2.10.12",
"@web3-onboard/keepkey": "^2.3.7",
"@web3-onboard/keystone": "^2.3.7",
"@web3-onboard/ledger": "^2.5.1",
"@web3-onboard/ledger": "^2.6.0",
"@web3-onboard/magic": "^2.1.7",
"@web3-onboard/metamask": "^2.0.2",
"@web3-onboard/metamask": "^2.0.3",
"@web3-onboard/mew-wallet": "^2.0.4",
"@web3-onboard/phantom": "^2.0.3",
"@web3-onboard/portis": "^2.1.7",
Expand All @@ -84,10 +84,11 @@
"@web3-onboard/trust": "^2.0.4",
"@web3-onboard/uauth": "^2.1.1",
"@web3-onboard/venly": "^2.0.0",
"@web3-onboard/walletconnect": "^2.5.2",
"@web3-onboard/walletconnect": "^2.5.4",
"@web3-onboard/web3auth": "^2.2.3",
"@web3-onboard/xdefi": "^2.0.4",
"@web3-onboard/zeal": "^2.0.4",
"@web3-onboard/particle-network": "^2.0.0",
"animejs": "^3.2.1",
"bnc-sdk": "^4.6.6",
"ethers": "^5.7.0",
Expand Down
20 changes: 16 additions & 4 deletions docs/src/lib/services/onboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const intiOnboard = async (theme) => {
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 { default: particleAuthModule } = await import('@web3-onboard/particle-network')
const INFURA_ID = '8b60d52405694345a99bcb82e722e0af'

const injected = injectedModule()
Expand All @@ -67,11 +68,13 @@ const intiOnboard = async (theme) => {
clientID: 'xar_test_c9c3bc702eb13255c58dab0e74cfa859711c13cb'
})
const coinbase = coinbaseModule()
const metamask = metamaskModule({options: {
dappMetadata: {
name: 'Web3Onboard',
const metamask = metamaskModule({
options: {
dappMetadata: {
name: 'Web3Onboard'
}
}
}})
})
const dcent = dcentModule()
const walletConnect = walletConnectModule({
projectId: 'f6bd6e2911b56f5ac3bc8b2d0e2d7ad5',
Expand Down Expand Up @@ -133,6 +136,12 @@ const intiOnboard = async (theme) => {
apiKey: '992bbd9146d5de8ad0419f141d9a7ca7'
})

const particle = particleAuthModule({
projectId: 'b385ccf0-73c3-485a-9941-159b7855b806',
clientKey: 'cSTLqhvONB5j588Wz6E5WJLMPrHeUlGbymf1DFhO',
appId: 'b1f0239a-edb0-41f9-b0f5-ab780bb02a9e'
})

return Onboard({
connect: { autoConnectAllPreviousWallet: true },
wallets: [
Expand Down Expand Up @@ -163,7 +172,10 @@ const intiOnboard = async (theme) => {
frame,
infinityWallet,
blocto,
capsule,
particle
// capsule

// venly
],
chains: [
Expand Down
18 changes: 16 additions & 2 deletions docs/src/routes/docs/[...4]wallets/[...14]injected/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Injected Wallets

# {$frontmatter.title}

This module lets web3-onboard automatically detect Browser Injected Wallets such as Metamask or Coinbase Wallet. We recommend you install this module to get the most out of your w3o implementation. This module supports [EIP-1193](https://eips.ethereum.org/EIPS/eip-1193) and [recognizes many injected wallets natively](#injected-wallets-supported-natively).
This module lets web3-onboard automatically detect Browser Injected Wallets such as Metamask or Coinbase Wallet. We recommend you install this module to get the most out of your w3o implementation. This module supports [EIP-1193](https://eips.ethereum.org/EIPS/eip-1193) and [recognizes many injected wallets natively](#injected-wallets-supported-natively) as well as supports [EIP-6963](https://eips.ethereum.org/EIPS/eip-6963) and recognizes any wallet that has implemented 6963 support.

Note: Make sure to install the core module before installing other modules to w3o.

Expand Down Expand Up @@ -189,6 +189,19 @@ const onboard = Onboard({
})
```

### This module supports any injected wallet that has implemented support for [EIP-6963](https://eips.ethereum.org/EIPS/eip-6963)

This can be disabled by passing in `disable6963Support` as true within the injected module init object.

```ts
const injected = injectedModule({ disable6963Support: true })

const onboard = Onboard({
wallets: [injected],
...
})
```

## Display Unavailable Wallets

You may want to display injected wallets that are not currently available to the user and you can use the `displayUnavailable` option to do that:
Expand Down Expand Up @@ -334,7 +347,7 @@ const injected = injectedModule({
- TP - _Mobile_
- 1inch - _Mobile_
- Tokenary - _Mobile_
- Rabby - _Desktop_
- Rabby - _Desktop & Mobile_
- MathWallet - _Desktop & Mobile_
- Bitkeep - _Desktop & Mobile_
- BitGet Wallet - _Desktop & Mobile_
Expand All @@ -357,6 +370,7 @@ const injected = injectedModule({
- Coin98 Wallet - _Desktop & Mobile_
- SubWallet - _Desktop & Mobile_
- Kayros - _Desktop_
- Lif3Wallet - _Mobile_

## Build Environments

Expand Down
94 changes: 94 additions & 0 deletions docs/src/routes/docs/[...4]wallets/[...22]particlenetwork/+page.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
---
title: Particle Network
---

# {$frontmatter.title}

Wallet module for connecting Particle Network to web3-onboard

## Install

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

```sh copy
yarn add @web3-onboard/particle-network
```

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

```sh copy
npm install @web3-onboard/particle-network
```

</TabPanel>
</Tabs>

## Options

See the [Particle Network Docs](https://docs.particle.network/developers/auth-service/sdks/web) for the extensive list of options.

## Usage

```typescript
import Onboard from '@web3-onboard/core'
import particleModule from '@web3-onboard/particle-network'

const particle = particleModule({
projectId: 'YOUR PROJECT ID',
clientKey: 'YOUR CLIENT KEY',
appId: 'YOUR APP ID'
// Can also add wallet object + preferredAuthType for further customization
})

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

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

## Types

```typescript
/**
* Enumerates the supported authentication types.
*/
type AuthTypes = 'email' | 'phone' | 'google' | 'apple' | 'twitter' | 'facebook' | 'microsoft' | 'linkedin' | 'github' | 'twitch' | 'discord';

/**
* Interface that describes the preferred authentication type.
* @property {AuthTypes} type - The preferred type of authentication.
* @property {boolean} setAsDisplay - Indicates whether the type should be displayed within the UI.
*/
interface PreferredAuthType {
type: AuthTypes;
setAsDisplay: boolean;
}

/**
* Options for initializing the Particle Auth module.
* @property {string} projectId - Particle Network project ID.
* @property {string} clientKey - Particle Network client key.
* @property {string} appId - Particle Network application ID.
* @property {string} [chainName] - (Optional) Specifies the name of the blockchain. Handled automatically if left blank.
* @property {number} [chainId] - (Optional) Specifies the blockchain's numeric ID. Handled automatically if left blank.
* @property {object} [wallet] - (Optional) Configuration for the wallet.
* @property {AuthTypes | PreferredAuthType} [preferredAuthType] - (Optional) Specifies the preferred type of authentication.
*/
interface ParticleAuthModuleOptions {
projectId: string;
clientKey: string;
appId: string;
chainName?: string;
chainId?: number;
wallet?: object;
preferredAuthType?: AuthTypes | PreferredAuthType;
}
```
7 changes: 6 additions & 1 deletion docs/src/routes/docs/[...4]wallets/[...6]coinbase/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ npm install @web3-onboard/coinbase

```typescript
type CoinbaseWalletOptions = {
darkMode: boolean // default = false
/** @optional Use dark theme */
darkMode?: boolean
/** @optional whether to connect mobile web app via WalletLink, defaults to false */
enableMobileWalletLink?: boolean
/** @optional whether or not to reload dapp automatically after disconnect, defaults to true */
reloadOnDisconnect?: boolean
}
```
Expand Down
Loading

0 comments on commit b376ddd

Please sign in to comment.