Skip to content

Commit 1af47d4

Browse files
authored
Merge pull request #1584 from blocknative/release/2.20.5
Release 2.20.5 (docs)
2 parents 4ba393d + 1a7d7be commit 1af47d4

Some content is hidden

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

55 files changed

+3962
-834
lines changed

.circleci/config.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,12 @@ jobs:
369369
working_directory: ~/web3-onboard-monorepo/packages/infinity-wallet
370370
steps:
371371
- node-build-steps
372+
build-taho:
373+
docker:
374+
- image: cimg/node:16.13.1
375+
working_directory: ~/web3-onboard-monorepo/packages/taho
376+
steps:
377+
- node-build-steps
372378

373379
# Build staging/Alpha releases
374380
build-staging-core:
@@ -575,6 +581,12 @@ jobs:
575581
working_directory: ~/web3-onboard-monorepo/packages/infinity-wallet
576582
steps:
577583
- node-staging-build-steps
584+
build-staging-taho:
585+
docker:
586+
- image: cimg/node:16.13.1
587+
working_directory: ~/web3-onboard-monorepo/packages/taho
588+
steps:
589+
- node-staging-build-steps
578590

579591
workflows:
580592
version: 2
@@ -783,3 +795,9 @@ workflows:
783795
<<: *deploy_production_filters
784796
- build-staging-infinity-wallet:
785797
<<: *deploy_staging_filters
798+
taho:
799+
jobs:
800+
- build-taho:
801+
<<: *deploy_production_filters
802+
- build-staging-taho:
803+
<<: *deploy_staging_filters

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ For full documentation, check out the README.md for each package or the [docs pa
9797
- [MEW-Wallet](packages/mew-wallet/README.md)
9898
- [Web3Auth](packages/web3auth/README.md)
9999
- [Sequence](packages/sequence/README.md)
100-
- [TallyHo](packages/tallyho/README.md)
100+
- [Taho (previously Tally Ho)](packages/tallyho/README.md)
101101
- [Enkrypt](packages/enkrypt/README.md)
102102
- [Unstoppable Domains](packages/uauth/README.md)
103103
- [Frontier](packages/frontier/README.md)

docs/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"dependencies": {
5757
"bnc-sdk": "^4.6.6",
5858
"@web3-onboard/coinbase": "^2.1.4",
59-
"@web3-onboard/core": "^2.15.4",
59+
"@web3-onboard/core": "^2.15.5",
6060
"@web3-onboard/dcent": "^2.2.3",
6161
"@web3-onboard/enkrypt": "^2.0.0",
6262
"@web3-onboard/fortmatic": "^2.0.14",
@@ -71,13 +71,13 @@
7171
"@web3-onboard/mew-wallet": "^2.0.0",
7272
"@web3-onboard/portis": "^2.1.3",
7373
"@web3-onboard/sequence": "^2.0.4",
74-
"@web3-onboard/tallyho": "^2.0.1",
74+
"@web3-onboard/taho": "^2.0.0",
7575
"@web3-onboard/torus": "^2.2.0",
7676
"@web3-onboard/transaction-preview": "^2.0.4",
7777
"@web3-onboard/trezor": "^2.3.3",
7878
"@web3-onboard/trust": "^2.0.0",
7979
"@web3-onboard/uauth": "^2.0.1",
80-
"@web3-onboard/walletconnect": "^2.2.1",
80+
"@web3-onboard/walletconnect": "^2.3.2",
8181
"@web3-onboard/web3auth": "^2.1.4",
8282
"@web3-onboard/xdefi": "^2.0.0",
8383
"animejs": "^3.2.1",

docs/src/lib/components/ConnectWalletButton.svelte

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
let buttonText = 'Connect'
88
99
async function connectWallet() {
10+
if (!onboard) await initOnboard()
1011
if (onboard && onboard.state.get().wallets.length) {
1112
onboard.disconnectWallet({ label: onboard.state.get().wallets[0].label })
1213
buttonText = 'Connect'
@@ -17,13 +18,17 @@
1718
}
1819
}
1920
20-
onMount(async () => {
21-
if (!onboard) {
22-
if (document.location.href.includes('theming-tool')) {
21+
const initOnboard = async () => {
22+
if (document.location.href.includes('theming-tool')) {
2323
onboard = await getOnboard('default')
2424
} else {
2525
onboard = await getOnboard()
2626
}
27+
}
28+
29+
onMount(async () => {
30+
if (!onboard) {
31+
await initOnboard()
2732
}
2833
onboard.state.select('wallets').subscribe((wallets) => {
2934
connectedWallets = wallets

docs/src/lib/components/examples/connect-wallet/ReactConnectWallet.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import magicModule from '@web3-onboard/magic'
2020
import web3authModule from '@web3-onboard/web3auth'
2121
import dcentModule from '@web3-onboard/dcent'
2222
import sequenceModule from '@web3-onboard/sequence'
23-
import tallyHoModule from '@web3-onboard/tallyho'
23+
import tahoModule from '@web3-onboard/taho'
2424
import trustModule from '@web3-onboard/trust'
2525
import frontierModule from '@web3-onboard/frontier'
2626

@@ -45,7 +45,7 @@ const keystone = keystoneModule()
4545
const keepkey = keepkeyModule()
4646
const gnosis = gnosisModule()
4747
const sequence = sequenceModule()
48-
const tally = tallyModule()
48+
const taho = tahoModule() // Previously named Tally Ho wallet
4949
const trust = trustModule()
5050
const frontier = frontierModule()
5151

@@ -70,7 +70,7 @@ const wallets = [
7070
injected,
7171
trust,
7272
frontier,
73-
tally,
73+
taho,
7474
ledger,
7575
coinbase,
7676
dcent,

docs/src/lib/components/examples/connect-wallet/SvelteConnectWallet.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import magicModule from '@web3-onboard/magic'
2020
import web3authModule from '@web3-onboard/web3auth'
2121
import dcentModule from '@web3-onboard/dcent'
2222
import sequenceModule from '@web3-onboard/sequence'
23-
import tallyHoModule from '@web3-onboard/tallyho'
23+
import tahoModule from '@web3-onboard/taho'
2424
import trustModule from '@web3-onboard/trust'
2525
import frontierModule from '@web3-onboard/frontier'
2626

@@ -45,7 +45,7 @@ const keystone = keystoneModule()
4545
const keepkey = keepkeyModule()
4646
const gnosis = gnosisModule()
4747
const sequence = sequenceModule()
48-
const tally = tallyModule()
48+
const taho = tahoModule() // Previously named Tally Ho wallet
4949
const trust = trustModule()
5050
const frontier = frontierModule()
5151

@@ -68,7 +68,7 @@ const wallets = [
6868
keepkey,
6969
sequence,
7070
injected,
71-
tally,
71+
taho,
7272
ledger,
7373
coinbase,
7474
dcent,

docs/src/lib/services/onboard.js

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const intiOnboard = async (theme) => {
4242
const { default: keepkeyModule } = await import('@web3-onboard/keepkey')
4343
const { default: gnosisModule } = await import('@web3-onboard/gnosis')
4444
const { default: sequenceModule } = await import('@web3-onboard/sequence')
45-
const { default: tallyModule } = await import('@web3-onboard/tallyho')
45+
const { default: tahoModule } = await import('@web3-onboard/taho')
4646
const { default: enkryptModule } = await import('@web3-onboard/enkrypt')
4747
const { default: mewWalletModule } = await import('@web3-onboard/mew-wallet')
4848
const { default: torusModule } = await import('@web3-onboard/torus')
@@ -56,15 +56,22 @@ const intiOnboard = async (theme) => {
5656
// const infinityWallet = infinityWalletModule()
5757
const coinbase = coinbaseModule()
5858
const dcent = dcentModule()
59-
const walletConnect = walletConnectModule()
59+
const walletConnect = walletConnectModule({
60+
connectFirstChainId: true,
61+
version: 2,
62+
projectId: 'f6bd6e2911b56f5ac3bc8b2d0e2d7ad5',
63+
qrcodeModalOptions: {
64+
mobileLinks: ['rainbow', 'metamask', 'argent', 'trust', 'imtoken', 'pillar']
65+
}
66+
})
6067
const ledger = ledgerModule()
6168
const keystone = keystoneModule()
6269
const keepkey = keepkeyModule()
6370
const gnosis = gnosisModule()
6471
const sequence = sequenceModule()
6572
const enkrypt = enkryptModule()
6673
const mewWallet = mewWalletModule()
67-
const tally = tallyModule()
74+
const taho = tahoModule()
6875
const torus = torusModule()
6976
const trust = trustModule()
7077
const xdefi = xdefiModule()
@@ -109,7 +116,7 @@ const intiOnboard = async (theme) => {
109116
trust,
110117
gnosis,
111118
uauth,
112-
tally,
119+
taho,
113120
xdefi,
114121
torus,
115122
sequence,
@@ -172,6 +179,12 @@ const intiOnboard = async (theme) => {
172179
token: 'ARB-ETH',
173180
label: 'Arbitrum',
174181
rpcUrl: 'https://rpc.ankr.com/arbitrum'
182+
},
183+
{
184+
id: 84531,
185+
token: 'ETH',
186+
label: 'Base Goerli',
187+
rpcUrl: 'https://goerli.base.org'
175188
}
176189
],
177190
appMetadata: {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ if (wallets[0]) {
137137

138138
Add other wallet modules such as Wallet Connect or Ledger to increase the support and functionality of your web3-onboard implementation. All modules are listed below and can be accessed through the subpages of web3-onboard docs on the left.
139139

140-
We recommend you add the [Core Repo](https://onboard.blocknative.com/docs/modules/core#install) and consider adding the [Injected Wallets](https://onboard.blocknative.com/docs/packages/injected#install) module to get connected with wallets like Metamask, Tally, Coinbase Wallet & more right away.
140+
We recommend you add the [Core Repo](https://onboard.blocknative.com/docs/modules/core#install) and consider adding the [Injected Wallets](https://onboard.blocknative.com/docs/packages/injected#install) module to get connected with wallets like Metamask, Trust, Coinbase Wallet & more right away.
141141

142142
[**Core Repo**](https://onboard.blocknative.com/docs/modules/core#install)
143143

docs/src/routes/docs/[...1]overview/[...2]contribution-guide.md

Lines changed: 46 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,54 +2,78 @@
22
sidebar_title: "Contribution Guide"
33
---
44

5-
## How can I contribute to web3-onboard?
5+
# How can I contribute to web3-onboard?
66

7-
### Reporting Bugs
7+
[Report a Bug](#bug-reports-🐛)<br />
8+
[Submit a Pull Request](#pull-requests-🗂️)<br />
9+
[Add a Wallet](#how-can-i-add-a-new-wallet-💳)<br />
10+
[Contribute to the Docs](#documentation-contributions-📄)<br />
11+
[Share Feedback](#feedback-💬)<br />
12+
[Get Support](#support-🤓)<br />
813

9-
Before creating an issue for a bug, please do a search through the Web3 Onboard issues to make sure that one has not already been created. You may find that someone else has run in to that issue and there may be a fix that has been released in a newer update.
14+
## Bug Reports 🐛
1015

11-
If an issue does not exist for the bug that you want to report, go ahead and create an issue, making sure to add as much detail as possible and following the issue template instructions.
16+
Before creating an issue for a bug, please search through the existing [Web3 Onboard issues](https://github.com/blocknative/web3-onboard/issues). You may find that someone else ran into the same bug or a fix has been released in a newer update.
1217

13-
Once an issue has been created, one of the Web3 Onboard maintainers will take a look and will respond typically within a few days. The initial response will usually just acknowledge the issue and will indicate what will happen next.
18+
If an issue does not already exist, follow the template instructions to create a new issue, adding as much detail as possible.
1419

15-
### Pull Requests
20+
Once an issue is created, a Web3 Onboard maintainer will review and respond typically within a few days to share next steps.
1621

17-
If there is a feature or change that you would like to see in Web3 Onboard, you can fork the repo and make a pull request to have the changes merged in to the main repo and released as part of the official packages.
22+
## [Pull Requests 🗂️](#pr)
1823

19-
Once a PR is created, one of the Web3 Onboard maintainers will acknowledge the PR and add it to our sprint planning to be reviewed as soon as possible.
24+
To create a new feature or change in Web3 Onboard, fork the repo and make a pull request on the [develop branch](https://github.com/blocknative/web3-onboard/tree/develop) to have your changes merged in and released as part of the official packages.
2025

26+
Once a PR is created, a Web3 Onboard maintainer will acknowledge it and add to sprint planning for review as soon as possible.
2127

22-
### Package Versioning
28+
**Important Note: The PR template checklist must be complete before review can take place.**
2329

24-
After making changes within a web3-onboard package you will want to bump the version of the specific package. For example if you were to add a new injected wallet to the injected package you will need to bump the version of the injected package within that module's [package.json](https://github.com/blocknative/web3-onboard/blob/8531a73d69365f7d584320f1c4b97a5d90f1c34e/packages/injected/package.json#L3).
30+
### Package Versioning 📦
2531

26-
We use both semantic and `alpha` versioning for publishing and testing packages prior to official release. This means if you do not see an `-alpha.x` tag on the version of the package you made changes in you will need to not only bump the version but also add an alpha flag followed by an alpha version number starting at 1 (ex. `-alpha.1`).
32+
We use both semantic and `alpha` versioning for publishing and testing packages prior to official release. If you do not see an `-alpha.x` tag on the version of the package you made changes in, you will need to bump the version AND add an alpha flag followed by an alpha version number starting at 1 (ex. `-alpha.1`).
33+
34+
After making changes within a web3-onboard package, bump the version of the specific package:
2735

2836
Example : Adding a new injected wallet to the `injected` package -
2937
[Injected Package.json](https://github.com/blocknative/web3-onboard/blob/develop/packages/injected/package.json#L3) changes : `"version": "2.2.4",` --> `"version": "2.3.0-alpha.1",`
3038

3139
Example 2 : Bug fix within the `core` package -
3240
[Core package.json](https://github.com/blocknative/web3-onboard/blob/8531a73d69365f7d584320f1c4b97a5d90f1c34e/packages/core/package.json#L3) changes: `"version": "2.9.1-alpha.1",` --> `"version": "2.9.1-alpha.2",`
3341

42+
## [How can I add a new wallet? 💳](#new-wallet)
43+
44+
To add a new wallet to the official Web3 Onboard packages and repo, create a [pull request](#pull-requests-🗂️). Web3 Onboard does not require a wallet to be a part of the main code, so a separate wallet module can be created without any changes to the Web3Onboard codebase. Your PR must include a detailed README for the package, keeping in mind that this README is the the first point of contact for dapp devs looking to implement your wallet.
45+
46+
Please also include updates to documentation in your PR. Refer to the [docs contributions section](#documentation-contributions-📄) and the PR template docs checklist.
47+
48+
### Adding Injected Wallets
49+
If the wallet you are adding is an “injected” wallet (browser extension, mobile dapp browser wallet), add a wallet to the injected wallets module. [See here for an example of an injected wallets pull request.](https://github.com/blocknative/web3-onboard/pull/1177/files) You should also add the wallet to the [natively supported injected wallets list](http://localhost:3000/docs/wallets/injected#injected-wallets-supported-natively).
50+
51+
### Adding Wallet Modules
52+
Otherwise, if the wallet you are adding requires dependencies and initialization (SDK), then you will need to create a new package in the Web3 Onboard monorepo. [See here for an example of a pull request.](https://github.com/blocknative/web3-onboard/pull/1238/files)
53+
<br />
54+
<br />
55+
56+
If you cannot write the code yourself to add a new wallet, create a new feature request issue to be considered by the maintainers and other contributors in the community.
3457

35-
### How can I get a new wallet added?
58+
## [Documentation Contributions 📄](#docs)
3659

37-
Web3 Onboard does not require a wallet to be a part of the main codebase to work, so a wallet module can be created and used for your project without needing anything to happen within the Web3Onboard codebase. If you would like the wallet to be part of the official Web3 Onboard packages and repo, then create a pull request, and make sure to add any documentation updates by creating a docs pull request.
60+
If you contribute to the code, you should definitely document appropriately.
3861

39-
If the wallet you are adding is an “injected” wallet (browser extension, mobile dapp browser wallet), you can add a wallet to the injected wallets module. [See here for an example of an injected wallets pull request.](https://github.com/blocknative/web3-onboard/pull/1177/files) You should also add the wallet to the [natively supported injected wallets list](https://onboard.blocknative.com/docs/packages/injected#injected-wallets-supported-natively).
62+
In order to contribute to the docs, create a PR on the [develop branch](https://github.com/blocknative/web3-onboard/tree/develop). The PR description should include a screenshot of any changes.
4063

41-
Otherwise if the wallet you are adding requires adding dependencies and initialization (SDK), then you will need to create a new package in the Web3 Onboard monorepo. [See here for an example of a pull request.](https://github.com/blocknative/web3-onboard/pull/1238/files)
64+
**Important note: The PR template docs checklist must be complete before review can take place.**
4265

43-
If you cannot write the code yourself to add a new wallet, then go ahead and create a feature request issue which may be considered by the maintainers or someone else in the community.
66+
PRs for adding/updating a wallet should include a README (new or updated) for the package (located in `docs/src/routes/docs/[...4]wallets`), and adding/updating the module in [docs demo](https://github.com/blocknative/web3-onboard/blob/develop/docs/src/lib/services/onboard.js) and docs package (`docs/package.json`). New injected wallets should also add the wallet to the [natively supported injected wallets list](https://github.com/blocknative/web3-onboard/blob/develop/docs/src/routes/docs/%5B...4%5Dwallets/injected.md).
4467

45-
### Documentation contributions
68+
[See here for an example of a docs pull request.](https://github.com/blocknative/web3-onboard/pull/1544/files)
4669

47-
In order to contribute to the docs, you'll have to create a PR on the [develop branch](https://github.com/blocknative/web3-onboard/tree/develop). If you contribute code, you should definitely document it appropriately. We highly encourage the community to improve web3-onboard docs, if you have any questions don't hesitate to reach out.
70+
We highly encourage the community to help us improve the web3-onboard docs! If you have any questions don't hesitate to reach out.
4871

49-
## Feedback
72+
## [Feedback 💬](#feedback)
5073

51-
Jump in to our discord server to provide any feedback you feel is worth sharing. Could the docs be improved? Did you have trouble integrating? Feature requests etc.
74+
Did you have trouble integrating? Could the docs be improved? Have a new Feature request?
75+
Jump in our [Discord](https://discord.com/invite/KZaBVME) and share your feedback.
5276

53-
## Support
77+
## [Support 🤓](#support)
5478

55-
For general questions about how to use Web3 Onboard you can first check out our [docs](https://onboard.blocknative.com/docs/overview/introduction#features) to see if there is an answer there, or you can head to our [Discord](https://discord.com/invite/KZaBVME) for support from the Blocknative team
79+
For general questions about how to use Web3 Onboard please first check out our [docs](https://onboard.blocknative.com/docs/overview/introduction#features), then head to our [Discord](https://discord.com/invite/KZaBVME) for support from the Blocknative team.

0 commit comments

Comments
 (0)