Skip to content

Commit 895e056

Browse files
authored
Release 2.24.1 (docs) (#1778)
1 parent 5f2b2ce commit 895e056

File tree

50 files changed

+945
-163
lines changed

Some content is hidden

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

50 files changed

+945
-163
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-blocto:
399+
docker:
400+
- image: cimg/node:16.13.1
401+
working_directory: ~/web3-onboard-monorepo/packages/blocto
402+
steps:
403+
- node-build-steps
398404
build-venly:
399405
docker:
400406
- image: cimg/node:16.13.1
@@ -631,6 +637,12 @@ jobs:
631637
working_directory: ~/web3-onboard-monorepo/packages/cede-store
632638
steps:
633639
- node-staging-build-steps
640+
build-staging-blocto:
641+
docker:
642+
- image: cimg/node:16.13.1
643+
working_directory: ~/web3-onboard-monorepo/packages/blocto
644+
steps:
645+
- node-staging-build-steps
634646
build-staging-venly:
635647
docker:
636648
- image: cimg/node:16.13.1
@@ -869,6 +881,12 @@ workflows:
869881
<<: *deploy_production_filters
870882
- build-staging-cede-store:
871883
<<: *deploy_staging_filters
884+
blocto:
885+
jobs:
886+
- build-blocto:
887+
<<: *deploy_production_filters
888+
- build-staging-blocto:
889+
<<: *deploy_staging_filters
872890
venly:
873891
jobs:
874892
- build-venly:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ For full documentation, check out the README.md for each package or the [docs pa
104104
- [XDEFI](packages/xdefi/README.md)
105105
- [Infinity Wallet](packages/infinity-wallet/README.md)
106106
- [Frame](packages/frame/README.md)
107+
- [Blocto](packages/blocto/README.md)
107108

108109
**Hardware Wallets**
109110

docs/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"format": "prettier --plugin-search-dir . --write .",
1313
"prepare": "svelte-kit sync",
1414
"test": "playwright test",
15-
"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/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'",
16-
"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/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'"
15+
"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/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'",
16+
"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/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'"
1717
},
1818
"devDependencies": {
1919
"@algolia/client-search": "^4.17.0",
@@ -49,9 +49,10 @@
4949
},
5050
"type": "module",
5151
"dependencies": {
52+
"@web3-onboard/blocto": "^2.0.0-alpha.1",
5253
"@web3-onboard/cede-store": "^2.0.2",
5354
"@web3-onboard/coinbase": "^2.2.4",
54-
"@web3-onboard/core": "^2.20.1",
55+
"@web3-onboard/core": "^2.20.2-alpha.1",
5556
"@web3-onboard/dcent": "^2.2.7",
5657
"@web3-onboard/enkrypt": "^2.0.4",
5758
"@web3-onboard/fortmatic": "^2.0.19",
@@ -60,7 +61,7 @@
6061
"@web3-onboard/gas": "^2.1.8",
6162
"@web3-onboard/gnosis": "^2.1.10",
6263
"@web3-onboard/infinity-wallet": "^2.0.4",
63-
"@web3-onboard/injected-wallets": "^2.10.0",
64+
"@web3-onboard/injected-wallets": "^2.10.1-alpha.1",
6465
"@web3-onboard/keepkey": "^2.3.7",
6566
"@web3-onboard/keystone": "^2.3.7",
6667
"@web3-onboard/ledger": "^2.4.6",
@@ -75,7 +76,7 @@
7576
"@web3-onboard/trezor": "^2.4.2",
7677
"@web3-onboard/trust": "^2.0.4",
7778
"@web3-onboard/uauth": "^2.0.5",
78-
"@web3-onboard/venly": "^2.0.0-alpha.1",
79+
"@web3-onboard/venly": "^2.0.0",
7980
"@web3-onboard/walletconnect": "^2.3.9",
8081
"@web3-onboard/web3auth": "^2.2.3",
8182
"@web3-onboard/xdefi": "^2.0.4",

docs/src/app.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,14 @@
1818

1919
%sveltekit.head%
2020

21-
<!-- Global site tag (gtag.js) - Google Analytics -->
22-
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-121780722-2"></script>
21+
<!-- Google tag (gtag.js) -->
22+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-WQ8M55VX1Z"></script>
23+
<script>
24+
window.dataLayer = window.dataLayer || [];
25+
function gtag(){dataLayer.push(arguments);}
26+
gtag('js', new Date());
27+
gtag('config', 'G-WQ8M55VX1Z');
28+
</script>
2329
</head>
2430
<body data-sveltekit-preload-data="hover">
2531
<div style="display: contents">%sveltekit.body%</div>

docs/src/lib/services/onboard.js

Lines changed: 3 additions & 0 deletions
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: bloctoModule } = await import('@web3-onboard/blocto')
5657
const { default: venlyModule } = await import('@web3-onboard/venly')
5758
const INFURA_ID = '8b60d52405694345a99bcb82e722e0af'
5859

@@ -108,6 +109,7 @@ const intiOnboard = async (theme) => {
108109

109110
const frame = frameModule()
110111

112+
const blocto = bloctoModule()
111113
const venly = venlyModule({
112114
clientId: 'blocknative',
113115
environment: 'staging'
@@ -138,6 +140,7 @@ const intiOnboard = async (theme) => {
138140
portis,
139141
frame,
140142
infinityWallet,
143+
blocto
141144
// venly
142145
],
143146
chains: [

docs/src/routes/docs/[...1]overview/[...1]introduction/+page.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ We recommend you add the [Core Repo](../../modules/core.md#install) and consider
157157
- [Portis](../../wallets/portis.md#install)
158158
- [Web3Auth](../../wallets/web3auth.md#install)
159159
- [Frame](../../wallets/frame.md#install)
160+
- [Blocto](../../docs/wallets/blocto.md#install)
160161

161162
**Hardware Wallets**
162163

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ const injected = injectedModule({
334334
- BifrostWallet - _Desktop & Mobile_
335335
- Safeheron - _Desktop_
336336
- Talisman - _Desktop_
337+
- OneKey - _Desktop & Mobile_
337338

338339
## Build Environments
339340

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
---
2+
title: Blocto
3+
---
4+
5+
# {$frontmatter.title}
6+
7+
Wallet module for connecting Blocto SDK to web3-onboard. Check out the [Blocto Developer Docs](https://docs.blocto.app/blocto-sdk/javascript-sdk/evm-sdk) for more information.
8+
9+
## Install
10+
11+
<Tabs values={['yarn', 'npm']}>
12+
<TabPanel value="yarn">
13+
14+
```sh copy
15+
yarn add @web3-onboard/blocto
16+
```
17+
18+
</TabPanel>
19+
<TabPanel value="npm">
20+
21+
```sh copy
22+
npm install @web3-onboard/blocto
23+
```
24+
25+
</TabPanel>
26+
</Tabs>
27+
28+
## Usage
29+
30+
```typescript
31+
import Onboard from '@web3-onboard/core'
32+
import bloctoModule from '@web3-onboard/blocto'
33+
34+
// initialize the module with options
35+
const blocto = bloctoModule()
36+
37+
const onboard = Onboard({
38+
// ... other Onboard options
39+
wallets: [
40+
blocto
41+
//... other wallets
42+
]
43+
})
44+
45+
const connectedWallets = await onboard.connectWallet()
46+
console.log(connectedWallets)
47+
```
48+
49+
## Build Environments
50+
51+
For build env configurations and setups please see the Build Env section [here](/docs/modules/core#build-environments)
52+
53+
### Webpack 4
54+
55+
Node built-ins are automatically bundled in v4 so that portion is handled automatically.
56+
57+
**Blocto** support will require a Babel to compile from es6 if not already supported. See config for Babel and Webpack4 as follows
58+
59+
`npm i --save-dev @babel/cli @babel/core @babel/node @babel/plugin-proposal-nullish-coalescing-operator @babel/plugin-proposal-optional-chaining @babel/plugin-syntax-bigint @babel/register`
60+
**AND**
61+
`npm i babel-loader`
62+
63+
**babel.config.js**
64+
65+
```javascript
66+
module.exports = (api) => {
67+
api.cache(true)
68+
const plugins = [
69+
'@babel/plugin-proposal-optional-chaining',
70+
'@babel/plugin-proposal-nullish-coalescing-operator',
71+
'@babel/plugin-syntax-bigint'
72+
]
73+
return { plugins }
74+
}
75+
```
76+
77+
**webpack.config.js**
78+
79+
```javascript
80+
config.module.rules = [
81+
...otherModuleRules,
82+
{
83+
test: /\.js$/,
84+
exclude: (_) => !/node_modules\/(@web3auth|@ethereumjs)/.test(_),
85+
loader: 'babel-loader'
86+
}
87+
]
88+
```

0 commit comments

Comments
 (0)