Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.20.3 (docs) #1555

Merged
merged 44 commits into from
Feb 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
41da903
Merge pull request #1530 from blocknative/release/2.20.1
Adamj1232 Feb 17, 2023
9a10a9c
Release 2.20.1 (develop) (#1529)
Adamj1232 Feb 17, 2023
740899f
Hot fix : revert tp gasUsed addition (#1537)
Adamj1232 Feb 17, 2023
1fb5a6f
Update versions for release
Adamj1232 Feb 17, 2023
5abb9c9
Merge in main
Adamj1232 Feb 17, 2023
8bf404a
Merge pull request #1539 from blocknative/release/2.20.2
Adamj1232 Feb 17, 2023
ac060ac
Merge pull request #1538 from blocknative/release/2.20.2
Adamj1232 Feb 17, 2023
930d219
update root path (#1543)
taylorjdawson Feb 22, 2023
36944b9
Add XDEFI module and injected to docs site (#1544)
Adamj1232 Feb 22, 2023
6031cbe
Feature: "I don't have a wallet" flow + Progress-bar fixup (#1535)
Adamj1232 Feb 22, 2023
8507e90
add transaction preview graphic
gesquinca Feb 23, 2023
407cb15
add transaction preview install code snippet
gesquinca Feb 23, 2023
2a14d6e
move md code snippets
gesquinca Feb 23, 2023
88cd3a2
add transaction preview section to landing page
gesquinca Feb 23, 2023
6d1e51a
update theming code snippet
gesquinca Feb 23, 2023
79e21ab
update hero section install code
gesquinca Feb 23, 2023
205cb81
update account center graphic
gesquinca Feb 23, 2023
565936e
update hero w3o graphic
gesquinca Feb 23, 2023
288c5bc
update account center svg
gesquinca Feb 23, 2023
ee7c6b2
Update README.md (#1547)
Brentably Feb 23, 2023
5b22ef3
move transaction preview section to top
gesquinca Feb 23, 2023
fdfd0c4
update link url
gesquinca Feb 24, 2023
c617767
Merge branch 'develop' into ge-landing-page-updates
gesquinca Feb 24, 2023
a971311
Added XDEFI to readme
mhchaudhry3 Feb 24, 2023
0d40510
Add theming docs, refine core init options, api actions and code chun…
Adamj1232 Feb 24, 2023
9b4b0d0
Merge pull request #1551 from blocknative/XDefi-added-to-ReadMe
mhchaudhry3 Feb 24, 2023
c92fcc9
Update docs/src/lib/components/code-snippet/theming-code.md
gesquinca Feb 24, 2023
0a64d35
Merge branch 'develop' into ge-landing-page-updates
gesquinca Feb 24, 2023
159f3be
Merge pull request #1546 from blocknative/ge-landing-page-updates
gesquinca Feb 24, 2023
d915340
Bump versions for release
Adamj1232 Feb 27, 2023
df817dc
Add Infinity Wallet Connector (#1540)
arons1 Feb 27, 2023
fe11c73
[walletconnect-2.3.0-alpha.3] - Feat: Walletconnect URI handler + bum…
Adamj1232 Feb 27, 2023
31838c6
Merge in develop and yarnit
Adamj1232 Feb 27, 2023
626e5ae
Bump undici from 5.10.0 to 5.19.1 in /examples/with-sveltekit (#1532)
dependabot[bot] Feb 27, 2023
a12792f
Merge branch 'main' into release/2.20.3
Adamj1232 Feb 27, 2023
053956f
Merge branch 'develop' into release/2.20.3
Adamj1232 Feb 27, 2023
a22a41b
Merge branch 'docs' into release/2.20.3
Adamj1232 Feb 27, 2023
0caa3fe
Update fortmatic docs
Adamj1232 Feb 28, 2023
f794937
[core-v2.15.3-alpha.2]: Fix - Add config to disable Unstoppable Domai…
Adamj1232 Feb 28, 2023
779e57c
Release 2.20.3 (#1554)
Adamj1232 Feb 28, 2023
513778b
Update versions
Adamj1232 Feb 28, 2023
a5a1215
Merge in main
Adamj1232 Feb 28, 2023
95a1012
Update comment within docs
Adamj1232 Feb 28, 2023
6df88d2
yarn latest packages
Adamj1232 Feb 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 20 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ aliases:
| grep version \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g');
| sed 's/[",]//g');
if [[ $PACKAGE_VERSION =~ "-alpha" ]];
then
echo true
Expand All @@ -50,7 +50,7 @@ aliases:
| grep version \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g');
| sed 's/[",]//g');
if [[ $PACKAGE_VERSION =~ "-alpha" ]];
then
echo true
Expand Down Expand Up @@ -363,6 +363,12 @@ jobs:
working_directory: ~/web3-onboard-monorepo/packages/xdefi
steps:
- node-build-steps
build-infinity-wallet:
docker:
- image: cimg/node:16.13.1
working_directory: ~/web3-onboard-monorepo/packages/infinity-wallet
steps:
- node-build-steps

# Build staging/Alpha releases
build-staging-core:
Expand Down Expand Up @@ -563,6 +569,12 @@ jobs:
working_directory: ~/web3-onboard-monorepo/packages/xdefi
steps:
- node-staging-build-steps
build-staging-infinity-wallet:
docker:
- image: cimg/node:16.13.1
working_directory: ~/web3-onboard-monorepo/packages/infinity-wallet
steps:
- node-staging-build-steps

workflows:
version: 2
Expand Down Expand Up @@ -765,3 +777,9 @@ workflows:
<<: *deploy_production_filters
- build-staging-xdefi:
<<: *deploy_staging_filters
infinity-wallet:
jobs:
- build-infinity-wallet:
<<: *deploy_production_filters
- build-staging-infinity-wallet:
<<: *deploy_staging_filters
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Generate the sitemap
uses: cicirello/generate-sitemap@v1
with:
path-to-root: docs
path-to-root: './docs/build'
base-url-path: https://www.onboard.blocknative.com/

- name: Peak at folder contents
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ For full documentation, check out the README.md for each package or the [docs pa
- [Enkrypt](packages/enkrypt/README.md)
- [Unstoppable Domains](packages/uauth/README.md)
- [Frontier](packages/frontier/README.md)
- [XDEFI](packages/xdefi/README.md)
- [Infinity Wallet](packages/infinity-wallet/README.md)

**Hardware Wallets**

Expand Down
8 changes: 5 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,14 @@
"dependencies": {
"bnc-sdk": "^4.6.6",
"@web3-onboard/coinbase": "^2.1.4",
"@web3-onboard/core": "^2.15.1-alpha.1",
"@web3-onboard/core": "^2.15.4",
"@web3-onboard/dcent": "^2.2.3",
"@web3-onboard/enkrypt": "^2.0.0",
"@web3-onboard/fortmatic": "^2.0.14",
"@web3-onboard/gas": "^2.1.4",
"@web3-onboard/gnosis": "^2.1.6",
"@web3-onboard/injected-wallets": "^2.8.0-alpha.1",
"@web3-onboard/infinity-wallet": "^2.0.0",
"@web3-onboard/injected-wallets": "^2.8.1",
"@web3-onboard/keepkey": "^2.3.3",
"@web3-onboard/keystone": "^2.3.3",
"@web3-onboard/ledger": "^2.4.2",
Expand All @@ -72,12 +73,13 @@
"@web3-onboard/sequence": "^2.0.4",
"@web3-onboard/tallyho": "^2.0.1",
"@web3-onboard/torus": "^2.2.0",
"@web3-onboard/transaction-preview": "^2.0.3-alpha.1",
"@web3-onboard/transaction-preview": "^2.0.4",
"@web3-onboard/trezor": "^2.3.3",
"@web3-onboard/trust": "^2.0.0",
"@web3-onboard/uauth": "^2.0.1",
"@web3-onboard/walletconnect": "^2.2.1",
"@web3-onboard/web3auth": "^2.1.4",
"@web3-onboard/xdefi": "^2.0.0",
"animejs": "^3.2.1",
"ethers": "^5.7.0"
}
Expand Down
2 changes: 1 addition & 1 deletion docs/src/lib/components/ConnectWalletButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
if (document.location.href.includes('theming-tool')) {
onboard = await getOnboard('default')
} else {
onboard = await getOnboard('system')
onboard = await getOnboard()
}
}
onboard.state.select('wallets').subscribe((wallets) => {
Expand Down
46 changes: 41 additions & 5 deletions docs/src/lib/components/FeaturesSection.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
import FrameworksGraphic from './svg/frameworks-group.svelte'
import NetworksGraphic from './svg/networks-group.svelte'
import NotifyGraphic from './svg/notify-group.svelte'
import AccountCenterGraphic from './svg/account-center-group.svelte'
import AccountCenterGraphic from './svg/account-center-graphic.svg'
import WalletsGraphic from './svg/wallet-row.svg'
import TransactionPreviewGraphic from './svg/transaction-preview-graphic.svg'

import InstallCode from './install-code.md'
import InstallCode from './code-snippet/install-code.md'
import InstallCodeTp from './code-snippet/install-code-tp.md'
</script>

<section class="features-a">
Expand Down Expand Up @@ -63,7 +65,6 @@
</Container>
</section>

<!-- Features Section -->
<section class="features-c">
<Container>
<div class="flexbox" style:padding={'4rem 1rem'}>
Expand All @@ -81,8 +82,43 @@
</div>
</Container>
<ScrollContainer>
<img src={WalletsGraphic} alt="onboard connect wallets" style="margin: 0 auto; max-width: none;">
<img
src={WalletsGraphic}
alt="onboard connect wallets"
style="margin: 0 auto; max-width: none;"
/>
</ScrollContainer>
<Container>
<div class="flexbox">
<div>
<img
src={TransactionPreviewGraphic}
alt="Transaction Preview"
style="margin: 0 auto; max-width: none;"
/>
</div>
<div>
<TextBlock
title={'Transaction Preview'}
subtitle={'Preview transactions to see net-balance changes and gas spent'}
text={'Reduce transaction anxiety by allowing users to easily preview expected net-balance changes for their connected wallets before authorizing transactions.'}
>
<Flexbox --wrap="wrap">
<Button href="/docs/modules/transaction-preview" buttonStyle={'link'}
>{'Learn More'}</Button
>
<Button
href="/docs/modules/transaction-preview#try-transaction-preview"
buttonStyle={'link'}>{'View Demo'}</Button
>
</Flexbox>
<div class="prose">
<InstallCodeTp />
</div>
</TextBlock>
</div>
</div>
</Container>
<Container>
<div class="flexbox">
<TextBlock
Expand All @@ -100,7 +136,7 @@
</Container>
<Container>
<div class="flexbox">
<div><AccountCenterGraphic /></div>
<div><img src={AccountCenterGraphic} alt="" /></div>
<div>
<TextBlock
title={'Account Center'}
Expand Down
2 changes: 1 addition & 1 deletion docs/src/lib/components/GettingStarted.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script>
import GettingStartedGuide from './getting-started-guide.md'
import GettingStartedGuide from './code-snippet/getting-started-guide.md'
</script>

<section id="get-started">
Expand Down
13 changes: 5 additions & 8 deletions docs/src/lib/components/HeroSection.svelte
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
<script>
import Button from './base/Button.svelte'
import Flexbox from './base/Flexbox.svelte'
import CodeBlock from './base/CodeBlock.svelte'

import InstallCode from './code-snippet/install-code.md'
import heroBg from './svg/hero-bg.svg'
import heroImg from './svg/hero-img.svg'
</script>

<section style="background-image: url({heroBg});">
<div class="textblock">
<div class="title">{"Web3-Onboard"}</div>
<div class="title">{'Web3-Onboard'}</div>
<div class="text">
{"Open-source, framework-agnostic JavaScript library to onboard users to web3 apps. Help your users transact with ease by enabling wallet connection, real-time transaction states, and more."}
{'Open-source, framework-agnostic JavaScript library to onboard users to web3 apps. Help your users transact with ease by enabling wallet connection, real-time transaction states, and more.'}
</div>
<div>
<CodeBlock>
{'npm i @web3-onboard/core @web3-onboard/injected-wallets'}
</CodeBlock>
<div class="prose">
<InstallCode />
</div>
<Flexbox --gap="1.5rem" --direction="row" --wrap="wrap">
<Button href="#get-started" label={'Get Started'} />
Expand Down
2 changes: 1 addition & 1 deletion docs/src/lib/components/ThemeCustomizer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
let wallets$

const themes = ['system', 'default', 'light', 'dark', 'custom']
let selectedTheme = 'system'
let selectedTheme = 'custom'

let webURL = ''
let iframeUsed = false
Expand Down
4 changes: 2 additions & 2 deletions docs/src/lib/components/ThemingSection.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import TextBlock from './TextBlock.svelte'
import Container from './Container.svelte'

import ThemingCode from './theming-code.md'
import ThemingCode from './code-snippet/theming-code.md'
import ThemingGraphic from './svg/themes-example-carousel.svg'
</script>

Expand All @@ -28,7 +28,7 @@
</div>
</Container>
<ScrollContainer style={'padding: 0 2rem'}>
<img class="carousel-img" src={ThemingGraphic} alt="onboard connect wallet themes" >
<img class="carousel-img" src={ThemingGraphic} alt="onboard connect wallet themes" />
</ScrollContainer>
</section>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ console.log(wallets)
if (wallets[0]) {
// create an ethers provider with the last connected wallet provider
const ethersProvider = new ethers.providers.Web3Provider(wallets[0].provider, 'any')
// if using ethers v6 this is:
// ethersProvider = new ethers.BrowserProvider(wallet.provider, 'any')

const signer = ethersProvider.getSigner()

Expand Down
16 changes: 16 additions & 0 deletions docs/src/lib/components/code-snippet/install-code-tp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<Tabs values={['npm', 'yarn']}>
<TabPanel value="npm">

```sh copy
npm i @web3-onboard/core @web3-onboard/injected @web3-onboard/transaction-preview
```

</TabPanel>
<TabPanel value="yarn">

```sh copy
yarn add @web3-onboard/core @web3-onboard/injected @web3-onboard/transaction-preview
```

</TabPanel>
</Tabs>
10 changes: 10 additions & 0 deletions docs/src/lib/components/code-snippet/theming-code.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
```css copy
:root {
--w3o-background-color: #1a1d26;
--w3o-foreground-color: #242835;
--w3o-text-color: #eff1fc;
--w3o-border-color: #33394b;
--w3o-action-color: #929bed;
--w3o-border-radius: 16px;
}
```
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ Import the libraries and any wallets you would like to use. For this example, we
```js title="App.tsx"|copy
import { Web3OnboardProvider, init } from '@web3-onboard/react'
import injectedModule from '@web3-onboard/injected-wallets'
import infinityWalletModule from '@web3-onboard/infinity-wallet'
import fortmaticModule from '@web3-onboard/fortmatic'
import gnosisModule from '@web3-onboard/gnosis'
import injectedModule from '@web3-onboard/injected-wallets'
import keepkeyModule from '@web3-onboard/keepkey'
import keystoneModule from '@web3-onboard/keystone'
import ledgerModule from '@web3-onboard/ledger'
Expand Down Expand Up @@ -39,6 +39,7 @@ const fortmatic = fortmaticModule({
apiKey: 'apiKey'
})

const infinityWallet = infinityWalletModule()
const ledger = ledgerModule()
const keystone = keystoneModule()
const keepkey = keepkeyModule()
Expand All @@ -63,6 +64,7 @@ const enkrypt = enkryptModule()
const mewWallet = mewWalletModule()

const wallets = [
infinityWallet,
keepkey,
sequence,
injected,
Expand Down Expand Up @@ -166,6 +168,8 @@ export default function ConnectWallet() {
// If the wallet has a provider than the wallet is connected
if (wallet?.provider) {
setProvider(new ethers.providers.Web3Provider(wallet.provider, 'any'))
// if using ethers v6 this is:
// ethersProvider = new ethers.BrowserProvider(wallet.provider, 'any')
}
}, [wallet])

Expand Down Expand Up @@ -210,6 +214,8 @@ export default function ConnectWallet() {
// If the wallet has a provider than the wallet is connected
if (wallet?.provider) {
setProvider(new ethers.providers.Web3Provider(wallet.provider, 'any'))
// if using ethers v6 this is:
// ethersProvider = new ethers.BrowserProvider(wallet.provider, 'any')
}
}, [wallet])

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ Import the libraries and any wallets you would like to use. For this example, we
```js title="onboard.js"|copy
import Onboard from '@web3-onboard/core'
import injectedModule from '@web3-onboard/injected-wallets'
import infinityWalletModule from '@web3-onboard/infinity-wallet'
import fortmaticModule from '@web3-onboard/fortmatic'
import gnosisModule from '@web3-onboard/gnosis'
import injectedModule from '@web3-onboard/injected-wallets'
import keepkeyModule from '@web3-onboard/keepkey'
import keystoneModule from '@web3-onboard/keystone'
import ledgerModule from '@web3-onboard/ledger'
Expand Down Expand Up @@ -39,6 +39,7 @@ const fortmatic = fortmaticModule({
apiKey: 'apiKey'
})

const infinityWallet = infinityWalletModule()
const ledger = ledgerModule()
const keystone = keystoneModule()
const keepkey = keepkeyModule()
Expand All @@ -63,6 +64,7 @@ const enkrypt = enkryptModule()
const mewWallet = mewWalletModule()

const wallets = [
infinityWallet,
keepkey,
sequence,
injected,
Expand Down