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.21.2 #1636

Merged
merged 9 commits into from
Apr 7, 2023
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
53 changes: 27 additions & 26 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"check": "svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check --plugin-search-dir=. . && eslint .",
"format": "prettier --write --plugin-search-dir=. ."
"format": "prettier --write --plugin-search-dir=. .",
"update-w3o-to-prod": "yarn add '@web3-onboard/coinbase@next' '@web3-onboard/core@next' '@web3-onboard/dcent@next' '@web3-onboard/enkrypt@next' '@web3-onboard/fortmatic@next' '@web3-onboard/gas@next' '@web3-onboard/gnosis@next' '@web3-onboard/infinity-wallet@next' '@web3-onboard/injected-wallets@next' '@web3-onboard/keepkey@next' '@web3-onboard/keystone@next' '@web3-onboard/ledger@next' '@web3-onboard/magic@next' '@web3-onboard/mew-wallet@next' '@web3-onboard/portis@next' '@web3-onboard/sequence@next' '@web3-onboard/taho@next' '@web3-onboard/torus@next' '@web3-onboard/transaction-preview@next' '@web3-onboard/trezor@next' '@web3-onboard/trust@next' '@web3-onboard/uauth@next' '@web3-onboard/walletconnect@next' '@web3-onboard/web3auth@next' '@web3-onboard/xdefi@next'"
},
"devDependencies": {
"@algolia/client-search": "^4.14.2",
Expand Down Expand Up @@ -54,31 +55,31 @@
},
"type": "module",
"dependencies": {
"@web3-onboard/coinbase": "^2.2.1",
"@web3-onboard/core": "^2.16.1",
"@web3-onboard/dcent": "^2.2.4",
"@web3-onboard/enkrypt": "^2.0.1",
"@web3-onboard/fortmatic": "^2.0.16",
"@web3-onboard/gas": "^2.1.5",
"@web3-onboard/gnosis": "^2.1.7",
"@web3-onboard/infinity-wallet": "^2.0.1",
"@web3-onboard/injected-wallets": "^2.8.3",
"@web3-onboard/keepkey": "^2.3.4",
"@web3-onboard/keystone": "^2.3.4",
"@web3-onboard/ledger": "^2.4.3",
"@web3-onboard/magic": "^2.1.4",
"@web3-onboard/mew-wallet": "^2.0.1",
"@web3-onboard/portis": "^2.1.4",
"@web3-onboard/sequence": "^2.0.5",
"@web3-onboard/taho": "^2.0.1",
"@web3-onboard/torus": "^2.2.2",
"@web3-onboard/transaction-preview": "^2.0.5",
"@web3-onboard/trezor": "^2.3.4",
"@web3-onboard/trust": "^2.0.1",
"@web3-onboard/uauth": "^2.0.2",
"@web3-onboard/walletconnect": "^2.3.4",
"@web3-onboard/web3auth": "^2.2.0",
"@web3-onboard/xdefi": "^2.0.1",
"@web3-onboard/coinbase": "^2.2.2-alpha.1",
"@web3-onboard/core": "^2.16.2-alpha.2",
"@web3-onboard/dcent": "^2.2.5-alpha.1",
"@web3-onboard/enkrypt": "^2.0.2-alpha.1",
"@web3-onboard/fortmatic": "^2.0.17-alpha.1",
"@web3-onboard/gas": "^2.1.6-alpha.1",
"@web3-onboard/gnosis": "^2.1.8-alpha.1",
"@web3-onboard/infinity-wallet": "^2.0.2-alpha.1",
"@web3-onboard/injected-wallets": "^2.8.4-alpha.1",
"@web3-onboard/keepkey": "^2.3.5-alpha.1",
"@web3-onboard/keystone": "^2.3.5-alpha.1",
"@web3-onboard/ledger": "^2.4.4-alpha.1",
"@web3-onboard/magic": "^2.1.5-alpha.1",
"@web3-onboard/mew-wallet": "^2.0.2-alpha.1",
"@web3-onboard/portis": "^2.1.5-alpha.1",
"@web3-onboard/sequence": "^2.0.6-alpha.1",
"@web3-onboard/taho": "^2.0.2-alpha.1",
"@web3-onboard/torus": "^2.2.3-alpha.1",
"@web3-onboard/transaction-preview": "^2.0.6-alpha.1",
"@web3-onboard/trezor": "^2.3.5-alpha.1",
"@web3-onboard/trust": "^2.0.2-alpha.1",
"@web3-onboard/uauth": "^2.0.3-alpha.1",
"@web3-onboard/walletconnect": "^2.3.5-alpha.1",
"@web3-onboard/web3auth": "^2.2.1-alpha.1",
"@web3-onboard/xdefi": "^2.0.2-alpha.1",
"animejs": "^3.2.1",
"bnc-sdk": "^4.6.6",
"ethers": "^5.7.0"
Expand Down
326 changes: 193 additions & 133 deletions docs/yarn.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3-onboard-monorepo",
"version": "2.21.1",
"version": "2.21.2",
"private": true,
"workspaces": {
"packages": [
Expand Down
4 changes: 2 additions & 2 deletions packages/coinbase/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/coinbase",
"version": "2.2.1",
"version": "2.2.2",
"description": "Coinbase SDK wallet module for connecting to Web3-Onboard. 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, 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 Expand Up @@ -59,6 +59,6 @@
},
"dependencies": {
"@coinbase/wallet-sdk": "^3.6.0",
"@web3-onboard/common": "^2.3.0"
"@web3-onboard/common": "^2.3.1"
}
}
4 changes: 2 additions & 2 deletions packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/common",
"version": "2.3.0",
"version": "2.3.1",
"description": "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, 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 Expand Up @@ -75,6 +75,6 @@
"dependencies": {
"bignumber.js": "^9.1.0",
"ethers": "5.5.4",
"joi": "17.8.1"
"joi": "17.9.1"
}
}
5 changes: 4 additions & 1 deletion packages/common/src/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import Joi from 'joi'

export type ValidateReturn = Joi.ValidationResult | null

export function validate(validator: Joi.Schema, data: unknown): ValidateReturn {
export function validate(
validator: Joi.AnySchema<any>,
data: unknown
): ValidateReturn {
const result = validator.validate(data)
return result.error ? result : null
}
Expand Down
6 changes: 3 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/core",
"version": "2.16.1",
"version": "2.16.2",
"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 Expand Up @@ -85,13 +85,13 @@
},
"dependencies": {
"@unstoppabledomains/resolution": "^8.0",
"@web3-onboard/common": "^2.3.0",
"@web3-onboard/common": "^2.3.1",
"bignumber.js": "^9.0.0",
"bnc-sdk": "^4.6.7",
"bowser": "^2.11.0",
"ethers": "5.5.3",
"eventemitter3": "^4.0.7",
"joi": "17.8.1",
"joi": "17.9.1",
"lodash.merge": "^4.6.2",
"lodash.partition": "^4.6.0",
"nanoid": "^4.0.0",
Expand Down
18 changes: 14 additions & 4 deletions packages/core/src/views/account-center/WalletRow.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
): string {
const [asset] = Object.keys(balance)
return `${
balance[asset].length > 8 ? balance[asset].slice(0, 8) : balance[asset]
balance[asset].length > 7 ? balance[asset].slice(0, 7) : balance[asset]
} ${asset}`
}

Expand Down Expand Up @@ -122,20 +122,30 @@
.address-domain {
flex: 1 0 auto;
max-width: 70%;
overflow: scroll;
white-space: nowrap;
font-weight: 600;
color: var(--account-center-maximized-address-color, inherit);
overflow: scroll;
scrollbar-width: none;
-ms-overflow-style: none;
}
.address-domain::-webkit-scrollbar {
display: none;
}

.balance {
flex: 1 1 auto;
max-width: 70%;
overflow: scroll;
white-space: nowrap;
text-align: end;
opacity: 0.4;
transition: color 150ms ease-in-out, background-color 150ms ease-in-out;
overflow: scroll;
scrollbar-width: none;
-ms-overflow-style: none;
}
.balance::-webkit-scrollbar {
display: none;
}

.elipsis-container {
Expand Down Expand Up @@ -233,7 +243,7 @@
{/if}
</div>

<!-- ELIPSIS -->
<!-- ELLIPSIS -->
<div class="elipsis-container" class:active={showMenu === address}>
<div
on:click|stopPropagation={() =>
Expand Down
6 changes: 3 additions & 3 deletions packages/dcent/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/dcent",
"version": "2.2.4",
"version": "2.2.5",
"description": "D'CENT wallet module for connecting to Web3-Onboard. 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, 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 Expand Up @@ -56,8 +56,8 @@
"typescript": "^4.5.5"
},
"dependencies": {
"@web3-onboard/common": "^2.3.0",
"@web3-onboard/hw-common": "^2.2.0",
"@web3-onboard/common": "^2.3.1",
"@web3-onboard/hw-common": "^2.2.1",
"@ethereumjs/tx": "^3.4.0",
"@ethersproject/providers": "^5.5.0",
"eth-dcent-keyring": "^0.2.2"
Expand Down
56 changes: 28 additions & 28 deletions packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,34 +23,34 @@
"webpack-dev-server": "4.7.4"
},
"dependencies": {
"@web3-onboard/core": "^2.16.1",
"@web3-onboard/coinbase": "^2.2.1",
"@web3-onboard/transaction-preview": "^2.0.5",
"@web3-onboard/dcent": "^2.2.4",
"@web3-onboard/frontier": "^2.0.1",
"@web3-onboard/fortmatic": "^2.0.16",
"@web3-onboard/gas": "^2.1.5",
"@web3-onboard/gnosis": "^2.1.7",
"@web3-onboard/keepkey": "^2.3.4",
"@web3-onboard/keystone": "^2.3.4",
"@web3-onboard/ledger": "^2.4.3",
"@web3-onboard/infinity-wallet": "^2.0.1",
"@web3-onboard/injected-wallets": "^2.8.3",
"@web3-onboard/magic": "^2.1.4",
"@web3-onboard/phantom": "^2.0.0-alpha.2",
"@web3-onboard/portis": "^2.1.4",
"@web3-onboard/sequence": "^2.0.5",
"@web3-onboard/trezor": "^2.3.4",
"@web3-onboard/trust": "^2.0.1",
"@web3-onboard/torus": "^2.2.2",
"@web3-onboard/taho": "^2.0.1",
"@web3-onboard/web3auth": "^2.2.0",
"@web3-onboard/walletconnect": "^2.3.4",
"@web3-onboard/enkrypt": "^2.0.1",
"@web3-onboard/mew-wallet": "^2.0.0",
"@web3-onboard/xdefi": "^2.0.1",
"@web3-onboard/uauth": "^2.0.2",
"@web3-onboard/zeal": "^2.0.1",
"@web3-onboard/core": "^2.16.2",
"@web3-onboard/coinbase": "^2.2.2",
"@web3-onboard/transaction-preview": "^2.0.6",
"@web3-onboard/dcent": "^2.2.5",
"@web3-onboard/frontier": "^2.0.2",
"@web3-onboard/fortmatic": "^2.0.17",
"@web3-onboard/gas": "^2.1.6",
"@web3-onboard/gnosis": "^2.1.8",
"@web3-onboard/keepkey": "^2.3.5",
"@web3-onboard/keystone": "^2.3.5",
"@web3-onboard/ledger": "^2.4.4",
"@web3-onboard/infinity-wallet": "^2.0.2",
"@web3-onboard/injected-wallets": "^2.8.4",
"@web3-onboard/magic": "^2.1.5",
"@web3-onboard/phantom": "^2.0.0-alpha.4",
"@web3-onboard/portis": "^2.1.5",
"@web3-onboard/sequence": "^2.0.6",
"@web3-onboard/trezor": "^2.3.5",
"@web3-onboard/trust": "^2.0.2",
"@web3-onboard/torus": "^2.2.3",
"@web3-onboard/taho": "^2.0.2",
"@web3-onboard/web3auth": "^2.2.1",
"@web3-onboard/walletconnect": "^2.3.5",
"@web3-onboard/enkrypt": "^2.0.2",
"@web3-onboard/mew-wallet": "^2.0.1",
"@web3-onboard/xdefi": "^2.0.2",
"@web3-onboard/uauth": "^2.0.3",
"@web3-onboard/zeal": "^2.0.2",
"vconsole": "^3.9.5"
},
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions packages/enkrypt/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/enkrypt",
"version": "2.0.1",
"version": "2.0.2",
"description": "Enkrypt SDK wallet module for connecting to Web3-Onboard. 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, 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 Expand Up @@ -63,6 +63,6 @@
"window": "^4.2.7"
},
"dependencies": {
"@web3-onboard/common": "^2.3.0"
"@web3-onboard/common": "^2.3.1"
}
}
4 changes: 2 additions & 2 deletions packages/fortmatic/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/fortmatic",
"version": "2.0.16",
"version": "2.0.17",
"description": "Fortmatic wallet module for connecting to Web3-Onboard. 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, 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 Expand Up @@ -58,7 +58,7 @@
"typescript": "^4.5.5"
},
"dependencies": {
"@web3-onboard/common": "^2.3.0",
"@web3-onboard/common": "^2.3.1",
"fortmatic": "^2.2.1"
}
}
4 changes: 2 additions & 2 deletions packages/frontier/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/frontier",
"version": "2.0.1",
"version": "2.0.2",
"description": "Frontier Wallet SDK wallet module for connecting to Web3-Onboard. 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 Expand Up @@ -59,6 +59,6 @@
"typescript": "^4.5.5"
},
"dependencies": {
"@web3-onboard/common": "^2.3.0"
"@web3-onboard/common": "^2.3.1"
}
}
4 changes: 2 additions & 2 deletions packages/gas/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/gas",
"version": "2.1.5",
"version": "2.1.6",
"description": "Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.",
"keywords": [
"gas",
Expand Down Expand Up @@ -32,7 +32,7 @@
"typescript": "^4.5.5"
},
"dependencies": {
"@web3-onboard/common": "^2.3.0",
"@web3-onboard/common": "^2.3.1",
"rxjs": "^7.5.2",
"joi": "17.8.1"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/gnosis/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/gnosis",
"version": "2.1.7",
"version": "2.1.8",
"description": "Gnosis Safe module for connecting to Web3-Onboard. 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, 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 Expand Up @@ -59,6 +59,6 @@
"dependencies": {
"@gnosis.pm/safe-apps-provider": "^0.9.2",
"@gnosis.pm/safe-apps-sdk": "^6.1.1",
"@web3-onboard/common": "^2.3.0"
"@web3-onboard/common": "^2.3.1"
}
}
6 changes: 3 additions & 3 deletions packages/hw-common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/hw-common",
"version": "2.2.0",
"version": "2.2.1",
"description": "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, 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 Expand Up @@ -81,9 +81,9 @@
},
"dependencies": {
"@ethereumjs/common": "2.6.2",
"@web3-onboard/common": "^2.3.0",
"@web3-onboard/common": "^2.3.1",
"ethers": "5.5.4",
"joi": "17.8.1",
"joi": "17.9.1",
"rxjs": "^7.5.2"
}
}
Loading