Skip to content

Commit da5cb6e

Browse files
authored
Release 2.24.0 (#1751)
1 parent 651ca13 commit da5cb6e

File tree

34 files changed

+2798
-1959
lines changed

34 files changed

+2798
-1959
lines changed

.circleci/config.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,12 @@ jobs:
395395
working_directory: ~/web3-onboard-monorepo/packages/cede-store
396396
steps:
397397
- node-build-steps
398+
build-venly:
399+
docker:
400+
- image: cimg/node:16.13.1
401+
working_directory: ~/web3-onboard-monorepo/packages/venly
402+
steps:
403+
- node-build-steps
398404

399405
# Build staging/Alpha releases
400406
build-staging-core:
@@ -625,6 +631,12 @@ jobs:
625631
working_directory: ~/web3-onboard-monorepo/packages/cede-store
626632
steps:
627633
- node-staging-build-steps
634+
build-staging-venly:
635+
docker:
636+
- image: cimg/node:16.13.1
637+
working_directory: ~/web3-onboard-monorepo/packages/venly
638+
steps:
639+
- node-staging-build-steps
628640

629641
workflows:
630642
version: 2
@@ -857,3 +869,9 @@ workflows:
857869
<<: *deploy_production_filters
858870
- build-staging-cede-store:
859871
<<: *deploy_staging_filters
872+
venly:
873+
jobs:
874+
- build-venly:
875+
<<: *deploy_production_filters
876+
- build-staging-venly:
877+
<<: *deploy_staging_filters

docs/package.json

Lines changed: 33 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"@types/react": "^18.0.37",
2929
"assert": "^2.0.0",
3030
"autoprefixer": "^10.4.14",
31+
"browserify-zlib": "^0.2.0",
3132
"clsx": "^1.0.0",
3233
"crypto-browserify": "^3.12.0",
3334
"prettier": "^2.8.0",
@@ -37,6 +38,7 @@
3738
"rollup-plugin-polyfill-node": "^0.12.0",
3839
"shiki": "^0.12.0",
3940
"stream-browserify": "^3.0.0",
41+
"stream-http": "^3.2.0",
4042
"svelte": "^3.54.0",
4143
"svelte-check": "^3.0.1",
4244
"svelte-preprocess": "^5.0.3",
@@ -47,36 +49,37 @@
4749
},
4850
"type": "module",
4951
"dependencies": {
50-
"@web3-onboard/cede-store": "^2.0.2-alpha.2",
51-
"@web3-onboard/coinbase": "^2.2.4-alpha.1",
52-
"@web3-onboard/core": "^2.19.1-alpha.1",
53-
"@web3-onboard/dcent": "^2.2.7-alpha.2",
54-
"@web3-onboard/enkrypt": "^2.0.4-alpha.1",
55-
"@web3-onboard/fortmatic": "^2.0.19-alpha.1",
56-
"@web3-onboard/frame": "^2.0.1-alpha.1",
57-
"@web3-onboard/frontier": "^2.0.4-alpha.1",
58-
"@web3-onboard/gas": "^2.1.8-alpha.1",
59-
"@web3-onboard/gnosis": "^2.1.10-alpha.1",
60-
"@web3-onboard/infinity-wallet": "^2.0.4-alpha.1",
61-
"@web3-onboard/injected-wallets": "^2.9.0-alpha.2",
62-
"@web3-onboard/keepkey": "^2.3.7-alpha.2",
63-
"@web3-onboard/keystone": "^2.3.7-alpha.2",
64-
"@web3-onboard/ledger": "^2.4.6-alpha.1",
65-
"@web3-onboard/magic": "^2.1.7-alpha.1",
66-
"@web3-onboard/mew-wallet": "^2.0.4-alpha.1",
67-
"@web3-onboard/phantom": "^2.0.2-alpha.1",
68-
"@web3-onboard/portis": "^2.1.7-alpha.1",
69-
"@web3-onboard/sequence": "^2.0.8-alpha.1",
70-
"@web3-onboard/taho": "^2.0.4-alpha.1",
71-
"@web3-onboard/torus": "^2.2.5-alpha.1",
72-
"@web3-onboard/transaction-preview": "^2.0.8-alpha.1",
73-
"@web3-onboard/trezor": "^2.4.2-alpha.3",
74-
"@web3-onboard/trust": "^2.0.4-alpha.1",
75-
"@web3-onboard/uauth": "^2.0.5-alpha.1",
76-
"@web3-onboard/walletconnect": "^2.3.8-alpha.2",
77-
"@web3-onboard/web3auth": "^2.2.3-alpha.1",
78-
"@web3-onboard/xdefi": "^2.0.4-alpha.1",
79-
"@web3-onboard/zeal": "^2.0.4-alpha.1",
52+
"@web3-onboard/cede-store": "^2.0.2",
53+
"@web3-onboard/coinbase": "^2.2.4",
54+
"@web3-onboard/core": "^2.20.0-alpha.1",
55+
"@web3-onboard/dcent": "^2.2.7",
56+
"@web3-onboard/enkrypt": "^2.0.4",
57+
"@web3-onboard/fortmatic": "^2.0.19",
58+
"@web3-onboard/frame": "^2.0.1",
59+
"@web3-onboard/frontier": "^2.0.4",
60+
"@web3-onboard/gas": "^2.1.8",
61+
"@web3-onboard/gnosis": "^2.1.10",
62+
"@web3-onboard/infinity-wallet": "^2.0.4",
63+
"@web3-onboard/injected-wallets": "^2.9.0",
64+
"@web3-onboard/keepkey": "^2.3.7",
65+
"@web3-onboard/keystone": "^2.3.7",
66+
"@web3-onboard/ledger": "^2.4.6",
67+
"@web3-onboard/magic": "^2.1.7",
68+
"@web3-onboard/mew-wallet": "^2.0.4",
69+
"@web3-onboard/phantom": "^2.0.2",
70+
"@web3-onboard/portis": "^2.1.7",
71+
"@web3-onboard/sequence": "^2.0.8",
72+
"@web3-onboard/taho": "^2.0.4",
73+
"@web3-onboard/torus": "^2.2.5",
74+
"@web3-onboard/transaction-preview": "^2.0.8",
75+
"@web3-onboard/trezor": "^2.4.2",
76+
"@web3-onboard/trust": "^2.0.4",
77+
"@web3-onboard/uauth": "^2.0.5",
78+
"@web3-onboard/venly": "^2.0.0-alpha.1",
79+
"@web3-onboard/walletconnect": "^2.3.8",
80+
"@web3-onboard/web3auth": "^2.2.3",
81+
"@web3-onboard/xdefi": "^2.0.4",
82+
"@web3-onboard/zeal": "^2.0.4",
8083
"animejs": "^3.2.1",
8184
"bnc-sdk": "^4.6.6",
8285
"ethers": "^5.7.0",

docs/src/lib/services/onboard.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const intiOnboard = async (theme) => {
5353
const { default: xdefiModule } = await import('@web3-onboard/xdefi')
5454
const { default: cedeModule } = await import('@web3-onboard/cede-store')
5555
const { default: frameModule } = await import('@web3-onboard/frame')
56+
const { default: venlyModule } = await import('@web3-onboard/venly')
5657
const INFURA_ID = '8b60d52405694345a99bcb82e722e0af'
5758

5859
const injected = injectedModule()
@@ -107,6 +108,11 @@ const intiOnboard = async (theme) => {
107108

108109
const frame = frameModule()
109110

111+
const venly = venlyModule({
112+
clientId: 'blocknative',
113+
environment: 'staging'
114+
})
115+
110116
return Onboard({
111117
wallets: [
112118
injected,
@@ -131,7 +137,8 @@ const intiOnboard = async (theme) => {
131137
keepkey,
132138
portis,
133139
frame,
134-
infinityWallet
140+
infinityWallet,
141+
// venly
135142
],
136143
chains: [
137144
{

docs/src/routes/docs/[...3]modules/[...1]core/+page.md

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,22 @@ title: Core
1717

1818
This is the core package that contains all of the UI and logic to be able to seamlessly connect user's wallets to your app and track the state of those wallets. Onboard no longer contains any wallet specific code, so wallets need to be passed in upon initialization.
1919

20+
:::admonition type="tip"
21+
_note: Release 2.24.0 moves the default position of the account center from topRight to bottomRight. To reset your application to topRight, include the following when initializing onboard:_
22+
```typescript
23+
accountCenter: {
24+
desktop: {
25+
enabled: true,
26+
position: 'topRight'
27+
},
28+
mobile: {
29+
enabled: true,
30+
position: 'topRight'
31+
}
32+
}
33+
```
34+
:::
35+
2036
## Install
2137

2238
Install the core module:
@@ -1460,7 +1476,8 @@ module.exports = {
14601476
os: 'os-browserify/browser',
14611477
process: 'process/browser',
14621478
stream: 'stream-browserify',
1463-
util: 'util'
1479+
util: 'util',
1480+
zlib: 'browserify-zlib'
14641481
}
14651482
},
14661483
experiments: {
@@ -1509,7 +1526,8 @@ module.exports = function override(config) {
15091526
process: require.resolve('process/browser'),
15101527
stream: require.resolve('stream-browserify'),
15111528
url: require.resolve('url'),
1512-
util: require.resolve('util')
1529+
util: require.resolve('util'),
1530+
zlib: require.resolve('browserify-zlib')
15131531
})
15141532
config.resolve.fallback = fallback
15151533
config.resolve.alias = {
@@ -1548,7 +1566,7 @@ module.exports = function override(config) {
15481566

15491567
Add the following dev dependencies:
15501568

1551-
`yarn add rollup-plugin-polyfill-node crypto-browserify stream-browserify assert -D`
1569+
`yarn add rollup-plugin-polyfill-node crypto-browserify stream-browserify assert browserify-zlib -D`
15521570

15531571
Then add the following to your `svelte.config.js` file:
15541572

@@ -1578,7 +1596,8 @@ const config = {
15781596
alias: {
15791597
crypto: 'crypto-browserify',
15801598
stream: 'stream-browserify',
1581-
assert: 'assert'
1599+
assert: 'assert',
1600+
zlib: 'browserify-zlib'
15821601
}
15831602
},
15841603
build: {
@@ -1613,7 +1632,7 @@ Checkout a boilerplate example [here](https://github.com/blocknative/web3-onboar
16131632

16141633
Add the following dev dependencies:
16151634

1616-
`yarn add rollup-plugin-polyfill-node crypto-browserify stream-browserify assert -D`
1635+
`yarn add rollup-plugin-polyfill-node crypto-browserify stream-browserify assert browserify-zlib -D`
16171636

16181637
Then add the following to your `svelte.config.js` file:
16191638

@@ -1661,7 +1680,8 @@ const config: UserConfig = {
16611680
alias: {
16621681
crypto: 'crypto-browserify',
16631682
stream: 'stream-browserify',
1664-
assert: 'assert'
1683+
assert: 'assert',
1684+
zlib: 'browserify-zlib'
16651685
}
16661686
},
16671687
build: {
@@ -1726,7 +1746,7 @@ Checkout a boilerplate example for Vite-React [here](https://github.com/blocknat
17261746

17271747
Add the following dev dependencies:
17281748

1729-
`npm i --save-dev rollup-plugin-polyfill-node crypto-browserify stream-browserify assert`
1749+
`npm i --save-dev rollup-plugin-polyfill-node crypto-browserify stream-browserify assert browserify-zlib`
17301750

17311751
Then add the following to your `vite.config.js` file:
17321752

@@ -1748,7 +1768,8 @@ export default {
17481768
alias: {
17491769
crypto: 'crypto-browserify',
17501770
stream: 'stream-browserify',
1751-
assert: 'assert'
1771+
assert: 'assert',
1772+
zlib: 'browserify-zlib'
17521773
}
17531774
},
17541775
build: {
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Venly
2+
3+
Wallet module for connecting Venly Wallet SDK to web3-onboard. Check out the [Venly Docs](https://docs.venly.io/) for more information.
4+
## Install
5+
6+
<Tabs values={['yarn', 'npm']}>
7+
<TabPanel value="yarn">
8+
9+
```sh copy
10+
yarn add @web3-onboard/venly
11+
```
12+
13+
</TabPanel>
14+
<TabPanel value="npm">
15+
16+
```sh copy
17+
npm install @web3-onboard/venly
18+
```
19+
20+
</TabPanel>
21+
</Tabs>
22+
23+
## Options
24+
25+
```typescript
26+
type VenlyOptions = {
27+
clientId: string
28+
environment?: string
29+
}
30+
```
31+
32+
`clientId` - The Client ID used to connect with Venly. More information can be found [here](https://docs.venly.io/widget/deep-dive/authentication#client-id).
33+
`environment` - The environment to which you want to connect, possible values are 'staging' and 'production'. Defaults to 'production'.
34+
35+
**NOTE**: Production environment handles main networks while Staging handles test networks. List of supported networks can be found [here](https://docs.venly.io/api/deep-dive-1/environments-and-networks#blockchain-networks).
36+
37+
## Usage
38+
39+
```typescript
40+
import Onboard from '@web3-onboard/core'
41+
import venlyModule from '@web3-onboard/venly'
42+
43+
// initialize the module with options
44+
const venly = venlyModule({
45+
clientId: 'YOUR_CLIENT_ID',
46+
})
47+
48+
const onboard = Onboard({
49+
// ... other Onboard options
50+
wallets: [
51+
venly
52+
//... other wallets
53+
]
54+
})
55+
56+
const connectedWallets = await onboard.connectWallet()
57+
console.log(connectedWallets)
58+
```
59+
60+
## Build Environments
61+
For build env configurations and setups please see the Build Env section [here](/docs/modules/core#build-environments)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,11 @@ const injected = injectedModule({
275275
- Binance - _Desktop_
276276
- Coinbase - _Desktop & Mobile_
277277
- Phantom - _Desktop & Mobile_
278+
- Trust - _Desktop & Mobile_
278279
- SafePal - _Desktop & Mobile_
279280
- Zerion - _Desktop & Mobile_
280281
- OKX Wallet - _Desktop_
281282
- Taho (Previously named Tally Ho wallet) - _Desktop_
282-
- Trust - _Mobile_
283283
- Opera - _Desktop & Mobile_
284284
- Status - _Mobile_
285285
- Alphawallet - _Mobile_

docs/vite.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ const config = {
1010
alias: {
1111
crypto: 'crypto-browserify',
1212
stream: 'stream-browserify',
13-
assert: 'assert'
13+
assert: 'assert',
14+
zlib: 'browserify-zlib',
15+
http: 'stream-http'
1416
}
1517
},
1618
build: {

0 commit comments

Comments
 (0)