Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ if (wallets[0]) {

**Onboard v1 migration guide**

If you're coming from v1, we've created a [migration guide for you](https://docs.blocknative.com/onboard/migration-guide).
If you're coming from v1, we've created a [migration guide for you](https://onboard.blocknative.com/docs/overview/onboard.js-migration-guide#background).

## Documentation

Expand Down
2 changes: 1 addition & 1 deletion examples/with-ledger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ Open [http://localhost:3000](http://localhost:3000) with your browser to see the

## Learn More

To learn more about how you can use web3Onboard to integrate Ledger and other popular web3 wallets into your dApps, take a look at our documentation: [Web3Onboard Documentation](https://docs.blocknative.com/onboard) for more details.
To learn more about how you can use web3Onboard to integrate Ledger and other popular web3 wallets into your dApps, take a look at our documentation: [Web3Onboard Documentation](https://onboard.blocknative.com/docs/overview/introduction#features) for more details.
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/core",
"version": "2.9.1-alpha.2",
"version": "2.9.1-alpha.3",
"description": "Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardized spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
"keywords": [
"Ethereum",
Expand Down
13 changes: 12 additions & 1 deletion packages/core/src/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,18 @@ const account = Joi.object({
balance
})

const chains = Joi.array().items(chainValidation)
const chains = Joi.array()
.items(chainValidation)
.unique((a, b) => a.id === b.id)
.error(e => {
if (e[0].code === 'array.unique') {
return new Error(
`There is a duplicate Chain ID in your Onboard Chains array: ${e}`
)
}
return new Error(`${e}`)
})

const accounts = Joi.array().items(account)

const wallet = Joi.object({
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/views/account-center/WalletRow.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
white-space: nowrap;
text-overflow: ellipsis;
width: 7.25rem;
text-align: end;
}

.elipsis-container {
Expand Down
2 changes: 1 addition & 1 deletion packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"dependencies": {
"@web3-onboard/coinbase": "^2.1.3",
"@web3-onboard/core": "^2.9.1-alpha.2",
"@web3-onboard/core": "^2.9.1-alpha.3",
"@web3-onboard/dcent": "^2.2.1",
"@web3-onboard/fortmatic": "^2.0.14",
"@web3-onboard/gas": "^2.1.3",
Expand Down
32 changes: 22 additions & 10 deletions packages/demo/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -141,28 +141,40 @@
rpcUrl: 'https://ropsten.infura.io/v3/17c1e1500e384acfb6a72c5d2e67742e'
},
{
id: 4,
token: 'rETH',
label: 'Rinkeby',
rpcUrl: 'https://rinkeby.infura.io/v3/17c1e1500e384acfb6a72c5d2e67742e'
},
{
id: 137,
token: 'MATIC',
label: 'Polygon',
rpcUrl: 'https://matic-mainnet.chainstacklabs.com'
id: '0x5',
token: 'ETH',
label: 'Goerli',
rpcUrl: `https://goerli.infura.io/v3/17c1e1500e384acfb6a72c5d2e67742e`
},
{
id: '0x13881',
token: 'MATIC',
label: 'Polygon - Mumbai',
rpcUrl: 'https://matic-mumbai.chainstacklabs.com '
},
{
id: '0x38',
token: 'BNB',
label: 'Binance',
rpcUrl: 'https://bsc-dataseed.binance.org/'
},
{
id: 137,
token: 'MATIC',
label: 'Polygon',
rpcUrl: 'https://matic-mainnet.chainstacklabs.com'
},
{
id: 10,
token: 'OETH',
label: 'Optimism',
rpcUrl: 'https://mainnet.optimism.io'
},
{
id: 42161,
token: 'ARB-ETH',
label: 'Arbitrum',
rpcUrl: 'https://rpc.ankr.com/arbitrum'
}
],
// connect: {
Expand Down
2 changes: 1 addition & 1 deletion packages/gas/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @web3-onboard/gas

## A module for requesting streams or single requests of gas price estimates from the [Blocknative Gas Platform API](https://docs.blocknative.com/gas-platform).
## A module for requesting streams or single requests of gas price estimates from the [Blocknative Gas Platform API](https://onboard.blocknative.com/docs/packages/gas).

### Install

Expand Down
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/react",
"version": "2.3.7-alpha.2",
"version": "2.3.7-alpha.3",
"description": "A collection of React hooks for integrating Web3-Onboard in to React and Next.js projects. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
"keywords": [
"Ethereum",
Expand Down Expand Up @@ -62,7 +62,7 @@
"typescript": "^4.5.5"
},
"dependencies": {
"@web3-onboard/core": "^2.9.1-alpha.2",
"@web3-onboard/core": "^2.9.1-alpha.3",
"@web3-onboard/common": "^2.2.3",
"use-sync-external-store": "1.0.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/vue",
"version": "2.2.7-alpha.2",
"version": "2.2.7-alpha.3",
"description": "A collection of Vue Composables for integrating Web3-Onboard in to a Vue or Nuxt project. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
"keywords": [
"Ethereum",
Expand Down Expand Up @@ -63,7 +63,7 @@
"@vueuse/core": "^8.4.2",
"@vueuse/rxjs": "^8.2.0",
"@web3-onboard/common": "^2.2.3",
"@web3-onboard/core": "^2.9.1-alpha.2",
"@web3-onboard/core": "^2.9.1-alpha.3",
"vue-demi": "^0.12.4"
},
"peerDependencies": {
Expand Down
76 changes: 76 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2953,6 +2953,82 @@
dependencies:
"@walletconnect/window-getters" "^1.0.0"

"@web3-onboard/dcent@^2.2.1":
version "2.2.1"
resolved "https://registry.yarnpkg.com/@web3-onboard/dcent/-/dcent-2.2.1.tgz#88a0aa781e7bd2279cf32751a69f19c97532ccf3"
integrity sha512-RO7HJnkRMcod4R5Nb2YU63GiNuvpiucKI+F6AmsHwVksj2qcS3fwlJl09uZVK1a2ERkNUSNhp4BCTUsc9esuxw==
dependencies:
"@ethereumjs/tx" "^3.4.0"
"@ethersproject/providers" "^5.5.0"
"@web3-onboard/common" "^2.2.3"
"@web3-onboard/hw-common" "^2.0.3"
eth-dcent-keyring "^0.2.2"

"@web3-onboard/hw-common@^2.0.3":
version "2.0.3"
resolved "https://registry.yarnpkg.com/@web3-onboard/hw-common/-/hw-common-2.0.3.tgz#8e73ef3c94d2f513e8439804f8a541ccac1cf845"
integrity sha512-hfCVVgNjKIJXjinqMTmYfxqiOTausYj77IrWhSaIk9W9PfAEX+BnPLMhmbuNb39FBVWg/ucvMIiG3pwY6hXoOw==
dependencies:
"@ethereumjs/common" "2.6.2"
"@web3-onboard/common" "^2.2.3"
ethers "5.5.4"
joi "^17.6.1"
rxjs "^7.5.2"

"@web3-onboard/keepkey@^2.3.1":
version "2.3.1"
resolved "https://registry.yarnpkg.com/@web3-onboard/keepkey/-/keepkey-2.3.1.tgz#00712e1799f2016da2f1fd22f461989e5c436713"
integrity sha512-OA36iTNLkLjFQrt2xsNou+kEdjBVQDxHDJeeTcII4OjEqcTP300GifNd2RIW5sTWP+CK6hx2EWZLDUZGXVJe0A==
dependencies:
"@ethersproject/providers" "^5.5.0"
"@shapeshiftoss/hdwallet-core" "^1.15.2"
"@shapeshiftoss/hdwallet-keepkey-webusb" "^1.15.2"
"@web3-onboard/common" "^2.2.3"
"@web3-onboard/hw-common" "^2.0.3"
ethereumjs-util "^7.1.3"

"@web3-onboard/keystone@^2.3.1":
version "2.3.1"
resolved "https://registry.yarnpkg.com/@web3-onboard/keystone/-/keystone-2.3.1.tgz#b9a47fa4a4df3462ccd1326466ce883697208cde"
integrity sha512-Evz3/DLcpCIH9pvAmr1Ukd7yNodGgkoLiLmYP9MjEk5FVC1N7/e7sQYQVJ9CmbH9x2a+s37XBsx+g55G2a3cow==
dependencies:
"@ethereumjs/tx" "^3.4.0"
"@ethersproject/providers" "^5.5.0"
"@keystonehq/eth-keyring" "^0.14.00.3"
"@web3-onboard/common" "^2.2.3"
"@web3-onboard/hw-common" "^2.0.3"

"@web3-onboard/ledger@^2.3.1":
version "2.3.1"
resolved "https://registry.yarnpkg.com/@web3-onboard/ledger/-/ledger-2.3.1.tgz#21afedd376da9dc54e32493f9cafaadd043511f0"
integrity sha512-KNBwJFbL0vivqmArSqTI+05AKhikP/HYLEbuVI9brY5YM/5LXap/QslM8FYECmomOyCofpouPV4AreSWkyRvuA==
dependencies:
"@ethereumjs/tx" "^3.4.0"
"@ethersproject/providers" "^5.5.0"
"@ledgerhq/hw-app-eth" "^6.19.0"
"@ledgerhq/hw-transport-u2f" "^5.36.0-deprecated"
"@ledgerhq/hw-transport-webusb" "^6.19.0"
"@metamask/eth-sig-util" "^4.0.0"
"@web3-onboard/common" "^2.2.3"
"@web3-onboard/hw-common" "^2.0.3"
buffer "^6.0.3"
ethereumjs-util "^7.1.3"

"@web3-onboard/trezor@^2.3.1":
version "2.3.1"
resolved "https://registry.yarnpkg.com/@web3-onboard/trezor/-/trezor-2.3.1.tgz#48e4f25cd647dd668aca13293a30e68757e00122"
integrity sha512-fINzu1TzMUSh9BlXZC4geQDP1lV4nOtl+8mTHw116L1GYtqAFwtVWmxGx7jzrpyxDj02CQha8UIqiHiOK43f8w==
dependencies:
"@ethereumjs/tx" "^3.4.0"
"@ethersproject/providers" "^5.5.0"
"@web3-onboard/common" "^2.2.3"
"@web3-onboard/hw-common" "^2.0.3"
buffer "^6.0.3"
eth-crypto "^2.1.0"
ethereumjs-util "^7.1.3"
hdkey "^2.0.1"
trezor-connect "^8.2.11"

"@web3auth/base-plugin@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@web3auth/base-plugin/-/base-plugin-1.0.1.tgz#1e2a87acf745299fdff6f92e6c46ee9bc38aa670"
Expand Down