Skip to content

Commit b376ddd

Browse files
Adamj1232maxaleksWozacostakeanlaurensTekrajs
authored
Release 2.25.0 (#2102)
* 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 <[email protected]> * 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 <[email protected]> * Update versions for release * Bump injected version in demo --------- Co-authored-by: Max Alekseenko <[email protected]> * 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 <[email protected]> * 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 <[email protected]> * 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 <[email protected]> * Update versions for release * Bump injected version in demo --------- Co-authored-by: Max Alekseenko <[email protected]> * 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 <[email protected]> * 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 <[email protected]> * 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 <[email protected]> Co-authored-by: Adam Carpenter <[email protected]> * 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 <[email protected]> * Update packages/particle-network/package.json Co-authored-by: Kat Leight <[email protected]> * 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 <[email protected]> * 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 <[email protected]> * 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 <[email protected]> * 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 <[email protected]> Co-authored-by: Samy Rabah <[email protected]> Co-authored-by: Kean Laurens <[email protected]> Co-authored-by: Tekrajs <[email protected]> Co-authored-by: TABASCO <[email protected]> Co-authored-by: Kat Leight <[email protected]> Co-authored-by: Hugh Do <[email protected]> Co-authored-by: DMY <[email protected]> Co-authored-by: jimmy.pan <[email protected]> Co-authored-by: Ryan Waldon <[email protected]>
1 parent 2cb0bd5 commit b376ddd

File tree

78 files changed

+2280
-407
lines changed

Some content is hidden

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

78 files changed

+2280
-407
lines changed

.circleci/config.yml

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ jobs:
205205
- node-build-steps
206206
build-keepkey:
207207
docker:
208-
- image: cimg/node:16.13.1
208+
- image: cimg/node:16.20.2
209209
working_directory: ~/web3-onboard-monorepo/packages/keepkey
210210
steps:
211211
- node-build-steps
@@ -217,7 +217,7 @@ jobs:
217217
- node-build-steps
218218
build-ledger:
219219
docker:
220-
- image: cimg/node:16.13.1
220+
- image: cimg/node:18.0.0
221221
working_directory: ~/web3-onboard-monorepo/packages/ledger
222222
steps:
223223
- node-build-steps
@@ -247,7 +247,7 @@ jobs:
247247
- node-build-steps
248248
build-trezor:
249249
docker:
250-
- image: cimg/node:16.13.1
250+
- image: cimg/node:18.19.1
251251
working_directory: ~/web3-onboard-monorepo/packages/trezor
252252
steps:
253253
- node-build-steps
@@ -427,7 +427,7 @@ jobs:
427427
- node-build-steps
428428
build-metamask:
429429
docker:
430-
- image: cimg/node:16.13.1
430+
- image: cimg/node:18.19.1
431431
working_directory: ~/web3-onboard-monorepo/packages/metamask
432432
steps:
433433
- node-build-steps
@@ -443,8 +443,12 @@ jobs:
443443
working_directory: ~/web3-onboard-monorepo/packages/capsule
444444
steps:
445445
- node-build-steps
446-
447-
446+
build-particle:
447+
docker:
448+
- image: cimg/node:18.0.0
449+
working_directory: ~/web3-onboard-monorepo/packages/particle-network
450+
steps:
451+
- node-build-steps
448452

449453
# Build staging/Alpha releases
450454
build-staging-core:
@@ -485,7 +489,7 @@ jobs:
485489
- node-staging-build-steps
486490
build-staging-keepkey:
487491
docker:
488-
- image: cimg/node:16.13.1
492+
- image: cimg/node:16.20.2
489493
working_directory: ~/web3-onboard-monorepo/packages/keepkey
490494
steps:
491495
- node-staging-build-steps
@@ -497,7 +501,7 @@ jobs:
497501
- node-staging-build-steps
498502
build-staging-ledger:
499503
docker:
500-
- image: cimg/node:16.13.1
504+
- image: cimg/node:18.0.0
501505
working_directory: ~/web3-onboard-monorepo/packages/ledger
502506
steps:
503507
- node-staging-build-steps
@@ -527,7 +531,7 @@ jobs:
527531
- node-staging-build-steps
528532
build-staging-trezor:
529533
docker:
530-
- image: cimg/node:16.13.1
534+
- image: cimg/node:18.19.1
531535
working_directory: ~/web3-onboard-monorepo/packages/trezor
532536
steps:
533537
- node-staging-build-steps
@@ -707,7 +711,7 @@ jobs:
707711
- node-staging-build-steps
708712
build-staging-metamask:
709713
docker:
710-
- image: cimg/node:16.13.1
714+
- image: cimg/node:18.19.1
711715
working_directory: ~/web3-onboard-monorepo/packages/metamask
712716
steps:
713717
- node-staging-build-steps
@@ -723,6 +727,12 @@ jobs:
723727
working_directory: ~/web3-onboard-monorepo/packages/capsule
724728
steps:
725729
- node-staging-build-steps
730+
build-staging-particle:
731+
docker:
732+
- image: cimg/node:18.0.0
733+
working_directory: ~/web3-onboard-monorepo/packages/particle-network
734+
steps:
735+
- node-build-steps
726736

727737
workflows:
728738
version: 2
@@ -1002,4 +1012,10 @@ workflows:
10021012
- build-capsule:
10031013
<<: *deploy_production_filters
10041014
- build-staging-capsule:
1005-
<<: *deploy_staging_filters
1015+
<<: *deploy_staging_filters
1016+
particle:
1017+
jobs:
1018+
- build-particle:
1019+
<<: *deploy_production_filters
1020+
- build-staging-particle:
1021+
<<: *deploy_staging_filters

.github/workflows/pr-status-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup Nodejs and yarn
2020
uses: actions/setup-node@v2
2121
with:
22-
node-version: "16"
22+
node-version: "18.19.1"
2323
cache: yarn
2424

2525
- name: Install dependencies

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ For full documentation, check out the README.md for each package or the [docs pa
125125
- [Infinity Wallet](packages/infinity-wallet/README.md)
126126
- [Frame](packages/frame/README.md)
127127
- [Blocto](packages/blocto/README.md)
128+
- [Particle Network](packages/particle-network/README.md)
128129

129130
**Hardware Wallets**
130131

docs/package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
"@web3-onboard/blocto": "^2.0.0",
5858
"@web3-onboard/capsule": "^2.0.1",
5959
"@web3-onboard/cede-store": "^2.2.0",
60-
"@web3-onboard/coinbase": "^2.2.5",
61-
"@web3-onboard/core": "^2.21.2",
60+
"@web3-onboard/coinbase": "^2.2.7",
61+
"@web3-onboard/core": "^2.21.3",
6262
"@web3-onboard/dcent": "^2.2.7",
6363
"@web3-onboard/enkrypt": "^2.0.4",
6464
"@web3-onboard/fortmatic": "^2.0.19",
@@ -67,12 +67,12 @@
6767
"@web3-onboard/gas": "^2.1.8",
6868
"@web3-onboard/gnosis": "^2.1.10",
6969
"@web3-onboard/infinity-wallet": "^2.0.4",
70-
"@web3-onboard/injected-wallets": "^2.10.9",
70+
"@web3-onboard/injected-wallets": "^2.10.12",
7171
"@web3-onboard/keepkey": "^2.3.7",
7272
"@web3-onboard/keystone": "^2.3.7",
73-
"@web3-onboard/ledger": "^2.5.1",
73+
"@web3-onboard/ledger": "^2.6.0",
7474
"@web3-onboard/magic": "^2.1.7",
75-
"@web3-onboard/metamask": "^2.0.2",
75+
"@web3-onboard/metamask": "^2.0.3",
7676
"@web3-onboard/mew-wallet": "^2.0.4",
7777
"@web3-onboard/phantom": "^2.0.3",
7878
"@web3-onboard/portis": "^2.1.7",
@@ -84,10 +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.2",
87+
"@web3-onboard/walletconnect": "^2.5.4",
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",
9192
"animejs": "^3.2.1",
9293
"bnc-sdk": "^4.6.6",
9394
"ethers": "^5.7.0",

docs/src/lib/services/onboard.js

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ const intiOnboard = async (theme) => {
5959
const { default: venlyModule } = await import('@web3-onboard/venly')
6060
const { default: bitgetModule } = await import('@web3-onboard/bitget')
6161
const { default: capsuleModule, Environment } = await import('@web3-onboard/capsule')
62+
const { default: particleAuthModule } = await import('@web3-onboard/particle-network')
6263
const INFURA_ID = '8b60d52405694345a99bcb82e722e0af'
6364

6465
const injected = injectedModule()
@@ -67,11 +68,13 @@ const intiOnboard = async (theme) => {
6768
clientID: 'xar_test_c9c3bc702eb13255c58dab0e74cfa859711c13cb'
6869
})
6970
const coinbase = coinbaseModule()
70-
const metamask = metamaskModule({options: {
71-
dappMetadata: {
72-
name: 'Web3Onboard',
71+
const metamask = metamaskModule({
72+
options: {
73+
dappMetadata: {
74+
name: 'Web3Onboard'
75+
}
7376
}
74-
}})
77+
})
7578
const dcent = dcentModule()
7679
const walletConnect = walletConnectModule({
7780
projectId: 'f6bd6e2911b56f5ac3bc8b2d0e2d7ad5',
@@ -133,6 +136,12 @@ const intiOnboard = async (theme) => {
133136
apiKey: '992bbd9146d5de8ad0419f141d9a7ca7'
134137
})
135138

139+
const particle = particleAuthModule({
140+
projectId: 'b385ccf0-73c3-485a-9941-159b7855b806',
141+
clientKey: 'cSTLqhvONB5j588Wz6E5WJLMPrHeUlGbymf1DFhO',
142+
appId: 'b1f0239a-edb0-41f9-b0f5-ab780bb02a9e'
143+
})
144+
136145
return Onboard({
137146
connect: { autoConnectAllPreviousWallet: true },
138147
wallets: [
@@ -163,7 +172,10 @@ const intiOnboard = async (theme) => {
163172
frame,
164173
infinityWallet,
165174
blocto,
175+
capsule,
176+
particle
166177
// capsule
178+
167179
// venly
168180
],
169181
chains: [

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

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Injected Wallets
44

55
# {$frontmatter.title}
66

7-
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).
7+
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.
88

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

@@ -189,6 +189,19 @@ const onboard = Onboard({
189189
})
190190
```
191191

192+
### This module supports any injected wallet that has implemented support for [EIP-6963](https://eips.ethereum.org/EIPS/eip-6963)
193+
194+
This can be disabled by passing in `disable6963Support` as true within the injected module init object.
195+
196+
```ts
197+
const injected = injectedModule({ disable6963Support: true })
198+
199+
const onboard = Onboard({
200+
wallets: [injected],
201+
...
202+
})
203+
```
204+
192205
## Display Unavailable Wallets
193206

194207
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:
@@ -334,7 +347,7 @@ const injected = injectedModule({
334347
- TP - _Mobile_
335348
- 1inch - _Mobile_
336349
- Tokenary - _Mobile_
337-
- Rabby - _Desktop_
350+
- Rabby - _Desktop & Mobile_
338351
- MathWallet - _Desktop & Mobile_
339352
- Bitkeep - _Desktop & Mobile_
340353
- BitGet Wallet - _Desktop & Mobile_
@@ -357,6 +370,7 @@ const injected = injectedModule({
357370
- Coin98 Wallet - _Desktop & Mobile_
358371
- SubWallet - _Desktop & Mobile_
359372
- Kayros - _Desktop_
373+
- Lif3Wallet - _Mobile_
360374

361375
## Build Environments
362376

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
---
2+
title: Particle Network
3+
---
4+
5+
# {$frontmatter.title}
6+
7+
Wallet module for connecting Particle Network to web3-onboard
8+
9+
## Install
10+
11+
<Tabs values={['yarn', 'npm']}>
12+
<TabPanel value="yarn">
13+
14+
```sh copy
15+
yarn add @web3-onboard/particle-network
16+
```
17+
18+
</TabPanel>
19+
<TabPanel value="npm">
20+
21+
```sh copy
22+
npm install @web3-onboard/particle-network
23+
```
24+
25+
</TabPanel>
26+
</Tabs>
27+
28+
## Options
29+
30+
See the [Particle Network Docs](https://docs.particle.network/developers/auth-service/sdks/web) for the extensive list of options.
31+
32+
## Usage
33+
34+
```typescript
35+
import Onboard from '@web3-onboard/core'
36+
import particleModule from '@web3-onboard/particle-network'
37+
38+
const particle = particleModule({
39+
projectId: 'YOUR PROJECT ID',
40+
clientKey: 'YOUR CLIENT KEY',
41+
appId: 'YOUR APP ID'
42+
// Can also add wallet object + preferredAuthType for further customization
43+
})
44+
45+
const onboard = Onboard({
46+
// ... other Onboard options
47+
wallets: [
48+
particle
49+
//... other wallets
50+
]
51+
})
52+
53+
const connectedWallets = await onboard.connectWallet()
54+
console.log(connectedWallets)
55+
```
56+
57+
## Types
58+
59+
```typescript
60+
/**
61+
* Enumerates the supported authentication types.
62+
*/
63+
type AuthTypes = 'email' | 'phone' | 'google' | 'apple' | 'twitter' | 'facebook' | 'microsoft' | 'linkedin' | 'github' | 'twitch' | 'discord';
64+
65+
/**
66+
* Interface that describes the preferred authentication type.
67+
* @property {AuthTypes} type - The preferred type of authentication.
68+
* @property {boolean} setAsDisplay - Indicates whether the type should be displayed within the UI.
69+
*/
70+
interface PreferredAuthType {
71+
type: AuthTypes;
72+
setAsDisplay: boolean;
73+
}
74+
75+
/**
76+
* Options for initializing the Particle Auth module.
77+
* @property {string} projectId - Particle Network project ID.
78+
* @property {string} clientKey - Particle Network client key.
79+
* @property {string} appId - Particle Network application ID.
80+
* @property {string} [chainName] - (Optional) Specifies the name of the blockchain. Handled automatically if left blank.
81+
* @property {number} [chainId] - (Optional) Specifies the blockchain's numeric ID. Handled automatically if left blank.
82+
* @property {object} [wallet] - (Optional) Configuration for the wallet.
83+
* @property {AuthTypes | PreferredAuthType} [preferredAuthType] - (Optional) Specifies the preferred type of authentication.
84+
*/
85+
interface ParticleAuthModuleOptions {
86+
projectId: string;
87+
clientKey: string;
88+
appId: string;
89+
chainName?: string;
90+
chainId?: number;
91+
wallet?: object;
92+
preferredAuthType?: AuthTypes | PreferredAuthType;
93+
}
94+
```

docs/src/routes/docs/[...4]wallets/[...6]coinbase/+page.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ npm install @web3-onboard/coinbase
2929

3030
```typescript
3131
type CoinbaseWalletOptions = {
32-
darkMode: boolean // default = false
32+
/** @optional Use dark theme */
33+
darkMode?: boolean
34+
/** @optional whether to connect mobile web app via WalletLink, defaults to false */
35+
enableMobileWalletLink?: boolean
36+
/** @optional whether or not to reload dapp automatically after disconnect, defaults to true */
37+
reloadOnDisconnect?: boolean
3338
}
3439
```
3540

0 commit comments

Comments
 (0)