From 0fffcab271c2f10e53929c3a383be0356bbe5b3f Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Wed, 10 May 2023 14:12:49 -0600 Subject: [PATCH 01/27] RPC protect workflow acting as expected maybe some styling issues --- packages/core/package.json | 2 +- packages/core/src/constants.ts | 2 + packages/core/src/i18n/en.json | 7 + packages/core/src/icons/shield-icon.ts | 4 + packages/core/src/provider.ts | 25 ++ .../EnableTransactionProtection.svelte | 93 +++++++ .../src/views/account-center/Maximized.svelte | 236 +++++++++++------- packages/demo/package.json | 2 +- packages/demo/src/App.svelte | 2 +- yarn.lock | 19 ++ 10 files changed, 303 insertions(+), 89 deletions(-) create mode 100644 packages/core/src/icons/shield-icon.ts create mode 100644 packages/core/src/views/account-center/EnableTransactionProtection.svelte diff --git a/packages/core/package.json b/packages/core/package.json index bb7a99bd5..91311b64e 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/core", - "version": "2.18.0", + "version": "2.19.0-alpha.1", "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", diff --git a/packages/core/src/constants.ts b/packages/core/src/constants.ts index 7fdc27265..6a1eb31bc 100644 --- a/packages/core/src/constants.ts +++ b/packages/core/src/constants.ts @@ -36,3 +36,5 @@ export const STORAGE_KEYS = { } export const MOBILE_WINDOW_WIDTH = 768 + +export const BN_PROTECT_RPC_URL = 'https://www.api.blocknative.com/protect' diff --git a/packages/core/src/i18n/en.json b/packages/core/src/i18n/en.json index 2652484d0..b1bf01759 100644 --- a/packages/core/src/i18n/en.json +++ b/packages/core/src/i18n/en.json @@ -56,12 +56,19 @@ "description": "Are you sure that you would like to disconnect all your wallets?", "confirm": "Confirm", "cancel": "Cancel" + }, + "confirmTransactionProtection": { + "heading": "Enable Transaction Protection", + "description": "Protect RPC Endpoints hide your transactions from front-running and sandwich bots to reduce unfavorable transaction settlement from slippage. Learn more here", + "enable": "Enable", + "dismiss": "Dismiss" } }, "accountCenter": { "connectAnotherWallet": "Connect another Wallet", "disconnectAllWallets": "Disconnect all Wallets", "currentNetwork": "Current Network", + "enableTransactionProtection": "Enable Transaction Protection", "appInfo": "App Info", "learnMore": "Learn More", "gettingStartedGuide": "Getting Started Guide", diff --git a/packages/core/src/icons/shield-icon.ts b/packages/core/src/icons/shield-icon.ts new file mode 100644 index 000000000..18102aa0f --- /dev/null +++ b/packages/core/src/icons/shield-icon.ts @@ -0,0 +1,4 @@ +export default ` + + +` \ No newline at end of file diff --git a/packages/core/src/provider.ts b/packages/core/src/provider.ts index 3f5e018f2..375b685b6 100644 --- a/packages/core/src/provider.ts +++ b/packages/core/src/provider.ts @@ -471,6 +471,31 @@ export function addNewChain( }) } +export function addProtectedRPC( + provider: EIP1193Provider, + chain: Chain, + rpcUrl?: string +): Promise { + return provider.request({ + method: 'wallet_addEthereumChain', + params: [ + { + chainId: chain.id, + chainName: chain.label, + nativeCurrency: { + name: chain.label, + symbol: chain.token, + decimals: 18 + }, + rpcUrls: [rpcUrl], + blockExplorerUrls: chain.blockExplorerUrl + ? [chain.blockExplorerUrl] + : undefined + } + ] + }) +} + export async function getPermissions( provider: EIP1193Provider ): Promise { diff --git a/packages/core/src/views/account-center/EnableTransactionProtection.svelte b/packages/core/src/views/account-center/EnableTransactionProtection.svelte new file mode 100644 index 000000000..a98ea0d8e --- /dev/null +++ b/packages/core/src/views/account-center/EnableTransactionProtection.svelte @@ -0,0 +1,93 @@ + + + + + +
+
+ {@html shieldIcon} +
+ +

+ {$_('modals.confirmTransactionProtection.heading', { + default: en.modals.confirmTransactionProtection.heading + })} +

+ +

+ {$_('modals.confirmTransactionProtection.description')} +

+ +
+ + +
+
+
diff --git a/packages/core/src/views/account-center/Maximized.svelte b/packages/core/src/views/account-center/Maximized.svelte index f31a3823b..2a8fb5e71 100644 --- a/packages/core/src/views/account-center/Maximized.svelte +++ b/packages/core/src/views/account-center/Maximized.svelte @@ -21,16 +21,30 @@ import questionIcon from '../../icons/question.js' import { poweredByBlocknative } from '../../icons/index.js' import DisconnectAllConfirm from './DisconnectAllConfirm.svelte' + import EnableTransactionProtection from './EnableTransactionProtection.svelte' import { configuration } from '../../configuration.js' import SecondaryTokenTable from './SecondaryTokenTable.svelte' + import shieldIcon from '../../icons/shield-icon.js' + import { BN_PROTECT_RPC_URL } from '../../constants.js' + import { addProtectedRPC } from '../../provider.js' function disconnectAllWallets() { $wallets$.forEach(({ label }) => disconnect({ label })) } + const enableProtectionRPC = async () => { + try { + await addProtectedRPC(primaryWallet.provider, validAppChain, BN_PROTECT_RPC_URL) + } catch (error) { + const { code } = error as { code: number } + console.log(error, code) + } + } + const { chains: appChains } = state.get() const { appMetadata } = configuration let disconnectConfirmModal = false + let enableTransactionProtection = false let hideWalletRowMenu: () => void $: [primaryWallet] = $wallets$ @@ -148,26 +162,54 @@ .network-container { background: var(--backround-color); border-top: 1px solid var(--border-color); - + width: 100%; + display: flex; + flex-direction: column; + align-items: flex-start; + padding: 0.75rem 0.75rem 0.25rem 0.75rem; + gap: 0.5rem; border-radius: var( --account-center-border-radius, var(--onboard-border-radius-3, var(--border-radius-3)) ); - color: var( --account-center-maximized-network-text-color, var(--account-center-maximized-network-section, inherit) ); } - .p5-5 { - padding: 12px; + .network-section { + flex-direction: row; + align-items: flex-start; + padding: 0px; + gap: 16px; } .network-selector-container { - margin-left: 1rem; width: 100%; } + .protect { + flex-direction: row; + padding: 0.25rem 0.375rem; + gap: 0.375rem; + width: 100%; + } + .shield { + width: 20px; + height: 20px; + display: flex; + justify-content: center; + } + .protect-text { + font-size: var(--onboard-font-size-6, var(--font-size-6)); + color: var( + --account-center-maximized-upper-action-color, + var(--action-color) + ); + line-height: 1.75rem; + display: flex; + align-items: center; + } .network-selector-label { font-size: var(--onboard-font-size-7, var(--font-size-7)); @@ -184,7 +226,10 @@ ) ); border-top: 1px solid var(--border-color); - border-radius: var(--account-center-border-radius, inherit); + border-radius: var( + --account-center-border-radius, + var(--onboard-border-radius-3, var(--border-radius-3)) + ); display: flex; flex-direction: column; align-items: flex-start; @@ -263,6 +308,12 @@ onConfirm={disconnectAllWallets} /> {/if} +{#if enableTransactionProtection} + (enableTransactionProtection = false)} + onEnable={() => enableProtectionRPC()} + /> +{/if}
-
+
+
(enableTransactionProtection = true)} + class="protect action-container flex items-center pointer" + > +
+ {@html shieldIcon} +
+ {$_('accountCenter.enableTransactionProtection', { + default: en.accountCenter.enableTransactionProtection + })} +
+
- -
- {#if appMetadata} -
- -
- -
- {(appMetadata && appMetadata.name) || 'App Name'} -
+ +
+ {#if appMetadata} +
+ +
+ +
+ {(appMetadata && appMetadata.name) || 'App Name'}
+
-
- {(appMetadata && appMetadata.description) || - 'This app has not added a description.'} -
+
+ {(appMetadata && appMetadata.description) || + 'This app has not added a description.'}
+
- - {#if appMetadata.gettingStartedGuide || appMetadata.explore} -
-
- {$_('accountCenter.appInfo', { - default: en.accountCenter.appInfo - })} -
+ + {#if appMetadata.gettingStartedGuide || appMetadata.explore} +
+
+ {$_('accountCenter.appInfo', { + default: en.accountCenter.appInfo + })} +
- {#if appMetadata.gettingStartedGuide} -
-
- {$_('accountCenter.learnMore', { - default: en.accountCenter.learnMore - })} -
- - {$_('accountCenter.gettingStartedGuide', { - default: en.accountCenter.gettingStartedGuide - })} - + {#if appMetadata.gettingStartedGuide} +
+
+ {$_('accountCenter.learnMore', { + default: en.accountCenter.learnMore + })}
- {/if} - - {#if appMetadata.explore} - + {/if} + + {#if appMetadata.explore} +
+
+ {$_('accountCenter.smartContracts', { + default: en.accountCenter.smartContracts + })}
- {/if} -
- {/if} - {/if} - {#if secondaryTokens && secondaryTokens.length} - + + {$_('accountCenter.explore', { + default: en.accountCenter.explore + })} + +
+ {/if} +
{/if} - + {/if} + {#if secondaryTokens && secondaryTokens.length} + + {/if} +
diff --git a/packages/demo/package.json b/packages/demo/package.json index ebf9140f7..1d8079195 100644 --- a/packages/demo/package.json +++ b/packages/demo/package.json @@ -24,7 +24,7 @@ "webpack-dev-server": "4.7.4" }, "dependencies": { - "@web3-onboard/core": "^2.18.0", + "@web3-onboard/core": "^2.19.0-alpha.1", "@web3-onboard/coinbase": "^2.2.3", "@web3-onboard/transaction-preview": "^2.0.7", "@web3-onboard/dcent": "^2.2.6", diff --git a/packages/demo/src/App.svelte b/packages/demo/src/App.svelte index 4036923ba..a86bc0644 100644 --- a/packages/demo/src/App.svelte +++ b/packages/demo/src/App.svelte @@ -355,7 +355,7 @@ // }, // Sign up for your free api key at www.Blocknative.com apiKey, - theme: 'system' + theme: 'default' }) // Subscribe to wallet updates diff --git a/yarn.lock b/yarn.lock index 997e432f1..013f3fc13 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3782,6 +3782,25 @@ "@walletconnect/window-getters" "^1.0.1" tslib "1.14.1" +"@web3-onboard/core@^2.18.0": + version "2.18.0-alpha.3" + resolved "https://registry.yarnpkg.com/@web3-onboard/core/-/core-2.18.0-alpha.3.tgz#2a5dea09c2eecf2c019df66812828e5acd543c8a" + integrity sha512-2m9E/ikLKfEq4A05SDlrevcSIEV3XS9IWSt4WbnaWLTEgqy+7hWPvs1Rz6GY9lQUm8+9nFMcNjt36Pn8JSlc6w== + dependencies: + "@web3-onboard/common" "^2.3.2-alpha.2" + bignumber.js "^9.0.0" + bnc-sdk "^4.6.7" + bowser "^2.11.0" + ethers "5.5.3" + eventemitter3 "^4.0.7" + joi "17.9.1" + lodash.merge "^4.6.2" + lodash.partition "^4.6.0" + nanoid "^4.0.0" + rxjs "^7.5.5" + svelte "^3.49.0" + svelte-i18n "^3.3.13" + "@web3-react/abstract-connector@^6.0.7": version "6.0.7" resolved "https://registry.yarnpkg.com/@web3-react/abstract-connector/-/abstract-connector-6.0.7.tgz#401b3c045f1e0fab04256311be49d5144e9badc6" From 28d395906f5a063b2dc34463b5ffc2d5e2045bf4 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Wed, 10 May 2023 14:31:02 -0600 Subject: [PATCH 02/27] Working as expected, added configs for rpc url and displaying protect button --- packages/common/package.json | 2 +- packages/common/src/types.ts | 5 +++ packages/common/src/validation.ts | 1 + packages/core/package.json | 2 +- packages/core/src/types.ts | 1 + packages/core/src/validation.ts | 2 + .../src/views/account-center/Maximized.svelte | 41 ++++++++++++------- 7 files changed, 37 insertions(+), 17 deletions(-) diff --git a/packages/common/package.json b/packages/common/package.json index 6bdc56b62..628aa6e28 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/common", - "version": "2.3.2", + "version": "2.3.3-alpha.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", diff --git a/packages/common/src/types.ts b/packages/common/src/types.ts index 95b746734..9b3735d29 100644 --- a/packages/common/src/types.ts +++ b/packages/common/src/types.ts @@ -421,6 +421,11 @@ export interface Chain { providerConnectionInfo?: ConnectionInfo /* An optional public RPC used when adding a new chain config to the wallet */ publicRpcUrl?: string + /** An optional protected RPC URL - Defaults to Blocknative's private and + * protected RPCto allow users to update the chain RPC within their wallet, + * specifically for private RPCs that protect user transactions + */ + protectedRpcUrl?: string /* Also used when adding a new config to the wallet */ blockExplorerUrl?: string } diff --git a/packages/common/src/validation.ts b/packages/common/src/validation.ts index a3be7c208..809956a3e 100644 --- a/packages/common/src/validation.ts +++ b/packages/common/src/validation.ts @@ -49,6 +49,7 @@ export const chainValidation = Joi.object({ icon: Joi.string(), color: Joi.string(), publicRpcUrl: Joi.string(), + protectedRpcUrl: Joi.string(), blockExplorerUrl: Joi.string(), providerConnectionInfoValidation }) diff --git a/packages/core/package.json b/packages/core/package.json index 91311b64e..8353d5a18 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -85,7 +85,7 @@ "typescript": "^4.5.5" }, "dependencies": { - "@web3-onboard/common": "^2.3.2", + "@web3-onboard/common": "^2.3.3-alpha.1", "bignumber.js": "^9.0.0", "bnc-sdk": "^4.6.7", "bowser": "^2.11.0", diff --git a/packages/core/src/types.ts b/packages/core/src/types.ts index 83bb99b54..031fa7dd4 100644 --- a/packages/core/src/types.ts +++ b/packages/core/src/types.ts @@ -263,6 +263,7 @@ export type NotificationPosition = CommonPositions export type AccountCenter = { enabled: boolean + disableProtectedRpc?: boolean position?: AccountCenterPosition expanded?: boolean minimal?: boolean diff --git a/packages/core/src/validation.ts b/packages/core/src/validation.ts index 3ec78a1ca..2bbd6ef57 100644 --- a/packages/core/src/validation.ts +++ b/packages/core/src/validation.ts @@ -176,6 +176,7 @@ const accountCenter = Joi.object({ position: commonPositions, expanded: Joi.boolean(), minimal: Joi.boolean(), + disableProtectedRpc: Joi.boolean(), containerElement: Joi.string() }) @@ -263,6 +264,7 @@ const setChainOptions = Joi.object({ rpcUrl: Joi.string(), label: Joi.string(), token: Joi.string(), + protectedRpcUrl: Joi.string(), secondaryTokens: Joi.array().max(5).items(secondaryTokenValidation).optional() }) diff --git a/packages/core/src/views/account-center/Maximized.svelte b/packages/core/src/views/account-center/Maximized.svelte index 2a8fb5e71..9d7f7e529 100644 --- a/packages/core/src/views/account-center/Maximized.svelte +++ b/packages/core/src/views/account-center/Maximized.svelte @@ -27,6 +27,10 @@ import shieldIcon from '../../icons/shield-icon.js' import { BN_PROTECT_RPC_URL } from '../../constants.js' import { addProtectedRPC } from '../../provider.js' + import { shareReplay, startWith } from 'rxjs/operators' + const accountCenter$ = state + .select('accountCenter') + .pipe(startWith(state.get().accountCenter), shareReplay(1)) function disconnectAllWallets() { $wallets$.forEach(({ label }) => disconnect({ label })) @@ -34,7 +38,11 @@ const enableProtectionRPC = async () => { try { - await addProtectedRPC(primaryWallet.provider, validAppChain, BN_PROTECT_RPC_URL) + await addProtectedRPC( + primaryWallet.provider, + validAppChain, + BN_PROTECT_RPC_URL + ) } catch (error) { const { code } = error as { code: number } console.log(error, code) @@ -166,7 +174,7 @@ display: flex; flex-direction: column; align-items: flex-start; - padding: 0.75rem 0.75rem 0.25rem 0.75rem; + padding: 0.75rem; gap: 0.5rem; border-radius: var( --account-center-border-radius, @@ -190,7 +198,7 @@ } .protect { flex-direction: row; - padding: 0.25rem 0.375rem; + padding: 0.25rem 0.375rem 0; gap: 0.375rem; width: 100%; } @@ -438,19 +446,22 @@
-
(enableTransactionProtection = true)} - class="protect action-container flex items-center pointer" - > -
- {@html shieldIcon} -
- {$_('accountCenter.enableTransactionProtection', { - default: en.accountCenter.enableTransactionProtection - })} + {#if !$accountCenter$.disableProtectedRpc && connectedChain.id === '0x1'} +
(enableTransactionProtection = true)} + class="protect action-container flex items-center pointer" > -
+
+ {@html shieldIcon} +
+ {$_('accountCenter.enableTransactionProtection', { + default: en.accountCenter.enableTransactionProtection + })} +
+ {/if}
From 542e8e522228edf8dccf4251e16f80dcaba4639f Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Wed, 10 May 2023 14:43:31 -0600 Subject: [PATCH 03/27] fix text color for dark mode --- .../views/account-center/EnableTransactionProtection.svelte | 3 ++- packages/demo/src/App.svelte | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/core/src/views/account-center/EnableTransactionProtection.svelte b/packages/core/src/views/account-center/EnableTransactionProtection.svelte index a98ea0d8e..b526e44b5 100644 --- a/packages/core/src/views/account-center/EnableTransactionProtection.svelte +++ b/packages/core/src/views/account-center/EnableTransactionProtection.svelte @@ -19,6 +19,7 @@ --enable-protect-rpc-background, var(--w3o-background-color) ); + color: var(--w3o-text-color); } .icon-container { @@ -27,7 +28,7 @@ background: var(--onboard-primary-100, var(--primary-100)); border-radius: 24px; padding: 12px; - color: var(--onboard-primary-500, var(--primary-500)); + color: var(--w3o-text-color); } h4 { diff --git a/packages/demo/src/App.svelte b/packages/demo/src/App.svelte index a86bc0644..969d569ac 100644 --- a/packages/demo/src/App.svelte +++ b/packages/demo/src/App.svelte @@ -355,7 +355,7 @@ // }, // Sign up for your free api key at www.Blocknative.com apiKey, - theme: 'default' + // theme: 'dark' }) // Subscribe to wallet updates From 1c3f3757dbcb7806ab319a18719d4865a1952a85 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Wed, 10 May 2023 14:46:55 -0600 Subject: [PATCH 04/27] Refine background colors --- packages/core/src/views/account-center/Maximized.svelte | 2 +- packages/demo/src/App.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/views/account-center/Maximized.svelte b/packages/core/src/views/account-center/Maximized.svelte index 9d7f7e529..9f707da42 100644 --- a/packages/core/src/views/account-center/Maximized.svelte +++ b/packages/core/src/views/account-center/Maximized.svelte @@ -168,7 +168,7 @@ } .network-container { - background: var(--backround-color); + background: var(--background-color); border-top: 1px solid var(--border-color); width: 100%; display: flex; diff --git a/packages/demo/src/App.svelte b/packages/demo/src/App.svelte index 969d569ac..a86bc0644 100644 --- a/packages/demo/src/App.svelte +++ b/packages/demo/src/App.svelte @@ -355,7 +355,7 @@ // }, // Sign up for your free api key at www.Blocknative.com apiKey, - // theme: 'dark' + theme: 'default' }) // Subscribe to wallet updates From 5bb98ff65191a630702cdfb7a88fcc26cd538c29 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Wed, 10 May 2023 16:11:32 -0600 Subject: [PATCH 05/27] Refine verbiage and remove placeholder for link --- packages/core/src/i18n/en.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/i18n/en.json b/packages/core/src/i18n/en.json index b1bf01759..a4698e470 100644 --- a/packages/core/src/i18n/en.json +++ b/packages/core/src/i18n/en.json @@ -59,7 +59,7 @@ }, "confirmTransactionProtection": { "heading": "Enable Transaction Protection", - "description": "Protect RPC Endpoints hide your transactions from front-running and sandwich bots to reduce unfavorable transaction settlement from slippage. Learn more here", + "description": "Protect RPC Endpoints hide your transactions from front-running and sandwich bots to reduce unfavorable transaction settlement from slippage.", "enable": "Enable", "dismiss": "Dismiss" } From 27651f1cb08caeaea4042319b1492f49ff562323 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Wed, 10 May 2023 16:21:48 -0600 Subject: [PATCH 06/27] Remove box shadow from AC section --- packages/core/src/views/account-center/Maximized.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/views/account-center/Maximized.svelte b/packages/core/src/views/account-center/Maximized.svelte index 9f707da42..a9fb544e2 100644 --- a/packages/core/src/views/account-center/Maximized.svelte +++ b/packages/core/src/views/account-center/Maximized.svelte @@ -386,7 +386,7 @@
Date: Thu, 11 May 2023 11:07:21 -0600 Subject: [PATCH 07/27] Bump versions accordingly --- packages/cede-store/package.json | 4 +- packages/coinbase/package.json | 4 +- packages/dcent/package.json | 6 +- packages/enkrypt/package.json | 4 +- packages/fortmatic/package.json | 4 +- packages/frame/package.json | 4 +- packages/frontier/package.json | 4 +- packages/gas/package.json | 4 +- packages/gnosis/package.json | 4 +- packages/hw-common/package.json | 4 +- packages/infinity-wallet/package.json | 4 +- packages/injected/package.json | 4 +- packages/keepkey/package.json | 6 +- packages/keystone/package.json | 6 +- packages/ledger/package.json | 4 +- packages/magic/package.json | 4 +- packages/mew-wallet/package.json | 4 +- packages/mew/package.json | 4 +- packages/phantom/package.json | 4 +- packages/portis/package.json | 4 +- packages/react/package.json | 6 +- packages/sequence/package.json | 4 +- packages/taho/package.json | 4 +- packages/tallyho/package.json | 4 +- packages/torus/package.json | 4 +- packages/transaction-preview/package.json | 4 +- packages/trezor/package.json | 6 +- packages/trust/package.json | 4 +- packages/uauth/package.json | 4 +- packages/unstoppable-resolution/package.json | 4 +- packages/vue/package.json | 6 +- packages/walletconnect/package.json | 4 +- packages/walletlink/package.json | 4 +- packages/web3auth/package.json | 4 +- packages/xdefi/package.json | 4 +- packages/zeal/package.json | 4 +- yarn.lock | 301 ++++++++++++++++++- 37 files changed, 367 insertions(+), 90 deletions(-) diff --git a/packages/cede-store/package.json b/packages/cede-store/package.json index 3ced5a3fa..8180c00f5 100644 --- a/packages/cede-store/package.json +++ b/packages/cede-store/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/cede-store", - "version": "2.0.1", + "version": "2.0.2-alpha.1", "description": "cede.store 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", @@ -70,6 +70,6 @@ }, "dependencies": { "@cedelabs/providers": "^0.0.7", - "@web3-onboard/common": "^2.3.2" + "@web3-onboard/common": "^2.3.3-alpha.1" } } diff --git a/packages/coinbase/package.json b/packages/coinbase/package.json index 486b54a4d..f6f8603f0 100644 --- a/packages/coinbase/package.json +++ b/packages/coinbase/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/coinbase", - "version": "2.2.3", + "version": "2.2.4-alpha.1", "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", @@ -59,6 +59,6 @@ }, "dependencies": { "@coinbase/wallet-sdk": "^3.6.0", - "@web3-onboard/common": "^2.3.2" + "@web3-onboard/common": "^2.3.3-alpha.1" } } diff --git a/packages/dcent/package.json b/packages/dcent/package.json index 0b2b5207c..9e0626f1d 100644 --- a/packages/dcent/package.json +++ b/packages/dcent/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/dcent", - "version": "2.2.6", + "version": "2.2.7-alpha.1", "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", @@ -56,8 +56,8 @@ "typescript": "^4.5.5" }, "dependencies": { - "@web3-onboard/common": "^2.3.2", - "@web3-onboard/hw-common": "^2.2.2", + "@web3-onboard/common": "^2.3.3-alpha.1", + "@web3-onboard/hw-common": "^2.2.3-alpha.1", "@ethereumjs/tx": "^3.4.0", "@ethersproject/providers": "^5.5.0", "eth-dcent-keyring": "^0.2.2" diff --git a/packages/enkrypt/package.json b/packages/enkrypt/package.json index 4d7118805..e6beb6c7a 100644 --- a/packages/enkrypt/package.json +++ b/packages/enkrypt/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/enkrypt", - "version": "2.0.3", + "version": "2.0.4-alpha.1", "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", @@ -63,6 +63,6 @@ "window": "^4.2.7" }, "dependencies": { - "@web3-onboard/common": "^2.3.2" + "@web3-onboard/common": "^2.3.3-alpha.1" } } diff --git a/packages/fortmatic/package.json b/packages/fortmatic/package.json index de9634341..b1c3ebe75 100644 --- a/packages/fortmatic/package.json +++ b/packages/fortmatic/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/fortmatic", - "version": "2.0.18", + "version": "2.0.19-alpha.1", "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", @@ -58,7 +58,7 @@ "typescript": "^4.5.5" }, "dependencies": { - "@web3-onboard/common": "^2.3.2", + "@web3-onboard/common": "^2.3.3-alpha.1", "fortmatic": "^2.2.1" } } diff --git a/packages/frame/package.json b/packages/frame/package.json index b78f69d27..6dcd1a178 100644 --- a/packages/frame/package.json +++ b/packages/frame/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/frame", - "version": "2.0.0", + "version": "2.0.1-alpha.1", "description": "Frame 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", @@ -59,7 +59,7 @@ "typescript": "^4.5.5" }, "dependencies": { - "@web3-onboard/common": "^2.3.1", + "@web3-onboard/common": "^2.3.3-alpha.1", "eth-provider": "^0.13.6" } } diff --git a/packages/frontier/package.json b/packages/frontier/package.json index d6762c24e..4149f8209 100644 --- a/packages/frontier/package.json +++ b/packages/frontier/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/frontier", - "version": "2.0.3", + "version": "2.0.4-alpha.1", "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", @@ -59,6 +59,6 @@ "typescript": "^4.5.5" }, "dependencies": { - "@web3-onboard/common": "^2.3.2" + "@web3-onboard/common": "^2.3.3-alpha.1" } } diff --git a/packages/gas/package.json b/packages/gas/package.json index 038ea97bb..0394de113 100644 --- a/packages/gas/package.json +++ b/packages/gas/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/gas", - "version": "2.1.7", + "version": "2.1.8-alpha.1", "description": "Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.", "keywords": [ "gas", @@ -32,7 +32,7 @@ "typescript": "^4.5.5" }, "dependencies": { - "@web3-onboard/common": "^2.3.2", + "@web3-onboard/common": "^2.3.3-alpha.1", "rxjs": "^7.5.2", "joi": "17.8.1" } diff --git a/packages/gnosis/package.json b/packages/gnosis/package.json index 332b1c494..75c9e207c 100644 --- a/packages/gnosis/package.json +++ b/packages/gnosis/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/gnosis", - "version": "2.1.9", + "version": "2.1.10-alpha.1", "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", @@ -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.2" + "@web3-onboard/common": "^2.3.3-alpha.1" } } diff --git a/packages/hw-common/package.json b/packages/hw-common/package.json index a812d7762..474209fa6 100644 --- a/packages/hw-common/package.json +++ b/packages/hw-common/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/hw-common", - "version": "2.2.2", + "version": "2.2.3-alpha.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", @@ -81,7 +81,7 @@ }, "dependencies": { "@ethereumjs/common": "2.6.2", - "@web3-onboard/common": "^2.3.2", + "@web3-onboard/common": "^2.3.3-alpha.1", "ethers": "5.5.4", "joi": "17.9.1", "rxjs": "^7.5.2" diff --git a/packages/infinity-wallet/package.json b/packages/infinity-wallet/package.json index 0fabdf07b..a7a58615c 100644 --- a/packages/infinity-wallet/package.json +++ b/packages/infinity-wallet/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/infinity-wallet", - "version": "2.0.3", + "version": "2.0.4-alpha.1", "description": "Infinity 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", @@ -60,7 +60,7 @@ "devDependencies": { "@types/node": "^17.0.21", "typescript": "^4.5.5", - "@web3-onboard/common": "^2.3.2" + "@web3-onboard/common": "^2.3.3-alpha.1" }, "dependencies": { "@infinitywallet/infinity-connector": "^1.0.6" diff --git a/packages/injected/package.json b/packages/injected/package.json index a20938c09..3741b48b3 100644 --- a/packages/injected/package.json +++ b/packages/injected/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/injected-wallets", - "version": "2.8.6", + "version": "2.8.7-alpha.1", "description": "Injected wallet module for connecting browser extension and mobile wallets 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", @@ -64,7 +64,7 @@ "window": "^4.2.7" }, "dependencies": { - "@web3-onboard/common": "^2.3.2", + "@web3-onboard/common": "^2.3.3-alpha.1", "joi": "17.9.1", "lodash.uniqby": "^4.7.0" } diff --git a/packages/keepkey/package.json b/packages/keepkey/package.json index 792bf11fa..c85101bb0 100644 --- a/packages/keepkey/package.json +++ b/packages/keepkey/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/keepkey", - "version": "2.3.6", + "version": "2.3.7-alpha.1", "description": "KeepKey hardware 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", @@ -63,8 +63,8 @@ "@ethersproject/providers": "^5.5.0", "@shapeshiftoss/hdwallet-core": "^1.15.2", "@shapeshiftoss/hdwallet-keepkey-webusb": "^1.15.2", - "@web3-onboard/common": "^2.3.2", - "@web3-onboard/hw-common": "^2.2.2", + "@web3-onboard/common": "^2.3.3-alpha.1", + "@web3-onboard/hw-common": "^2.2.3-alpha.1", "ethereumjs-util": "^7.1.3" } } diff --git a/packages/keystone/package.json b/packages/keystone/package.json index 73a929d24..c575ce340 100644 --- a/packages/keystone/package.json +++ b/packages/keystone/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/keystone", - "version": "2.3.6", + "version": "2.3.7-alpha.1", "description": "Keystone hardware 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", @@ -58,7 +58,7 @@ "@ethereumjs/tx": "^3.4.0", "@ethersproject/providers": "^5.5.0", "@keystonehq/eth-keyring": "^0.14.00.3", - "@web3-onboard/common": "^2.3.2", - "@web3-onboard/hw-common": "^2.2.0" + "@web3-onboard/common": "^2.3.3-alpha.1", + "@web3-onboard/hw-common": "^2.2.3-alpha.1" } } diff --git a/packages/ledger/package.json b/packages/ledger/package.json index 610a6b45b..6f02bf01c 100644 --- a/packages/ledger/package.json +++ b/packages/ledger/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/ledger", - "version": "2.4.5", + "version": "2.4.6-alpha.1", "description": "Ledger hardare 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", @@ -61,7 +61,7 @@ "@ethersproject/providers": "^5.5.0", "@ledgerhq/connect-kit-loader": "^1.0.2", "@walletconnect/client": "^1.7.1", - "@web3-onboard/common": "^2.3.2", + "@web3-onboard/common": "^2.3.3-alpha.1", "rxjs": "^7.5.2" } } diff --git a/packages/magic/package.json b/packages/magic/package.json index 54d6fe0c3..746316241 100644 --- a/packages/magic/package.json +++ b/packages/magic/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/magic", - "version": "2.1.6", + "version": "2.1.7-alpha.1", "description": "Magic 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", @@ -80,7 +80,7 @@ "typescript": "^4.5.5" }, "dependencies": { - "@web3-onboard/common": "^2.3.2", + "@web3-onboard/common": "^2.3.3-alpha.1", "joi": "17.9.1", "magic-sdk": "^8.1.0", "rxjs": "^7.5.2" diff --git a/packages/mew-wallet/package.json b/packages/mew-wallet/package.json index 7a29ec5ca..9e5fee143 100644 --- a/packages/mew-wallet/package.json +++ b/packages/mew-wallet/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/mew-wallet", - "version": "2.0.3", + "version": "2.0.4-alpha.1", "description": "MEW (MyEtherWallet) 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 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", @@ -64,7 +64,7 @@ "window": "^4.2.7" }, "dependencies": { - "@web3-onboard/common": "^2.3.2", + "@web3-onboard/common": "^2.3.3-alpha.1", "lodash.uniqby": "^4.7.0" } } diff --git a/packages/mew/package.json b/packages/mew/package.json index 23d390a8c..17254db9a 100644 --- a/packages/mew/package.json +++ b/packages/mew/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/mew", - "version": "2.1.7", + "version": "2.1.8-alpha.1", "description": "(DEPRECATED. Use @web3-onboard/mew-wallet instead) MEW (My Ether 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 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", @@ -59,7 +59,7 @@ "@myetherwallet/mewconnect-web-client": "^2.2.0-beta.14" }, "dependencies": { - "@web3-onboard/common": "^2.3.2", + "@web3-onboard/common": "^2.3.3-alpha.1", "rxjs": "^7.5.2" } } diff --git a/packages/phantom/package.json b/packages/phantom/package.json index 6fed66f26..4caecf6e6 100644 --- a/packages/phantom/package.json +++ b/packages/phantom/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/phantom", - "version": "2.0.1", + "version": "2.0.2-alpha.1", "description": "Phantom 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", @@ -59,6 +59,6 @@ "typescript": "^4.5.5" }, "dependencies": { - "@web3-onboard/common": "^2.3.2" + "@web3-onboard/common": "^2.3.3-alpha.1" } } diff --git a/packages/portis/package.json b/packages/portis/package.json index 0148c7b03..9fbd2764c 100644 --- a/packages/portis/package.json +++ b/packages/portis/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/portis", - "version": "2.1.6", + "version": "2.1.7-alpha.1", "description": "Portis 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", @@ -57,6 +57,6 @@ }, "dependencies": { "@portis/web3": "^4.0.6", - "@web3-onboard/common": "^2.3.2" + "@web3-onboard/common": "^2.3.3-alpha.1" } } diff --git a/packages/react/package.json b/packages/react/package.json index e7cf5425b..c1717f682 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/react", - "version": "2.8.2", + "version": "2.8.3-alpha.1", "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", @@ -62,8 +62,8 @@ "typescript": "^4.5.5" }, "dependencies": { - "@web3-onboard/core": "^2.18.0", - "@web3-onboard/common": "^2.3.2", + "@web3-onboard/core": "^2.19.0-alpha.1", + "@web3-onboard/common": "^2.3.3-alpha.1", "use-sync-external-store": "1.0.0" }, "peerDependencies": { diff --git a/packages/sequence/package.json b/packages/sequence/package.json index 0ad94640d..ff98cb3ab 100644 --- a/packages/sequence/package.json +++ b/packages/sequence/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/sequence", - "version": "2.0.7", + "version": "2.0.8-alpha.1", "description": "Sequence is the smartest Web3 wallet. Easy, fun and secure.", "keywords": [ "Ethereum", @@ -56,7 +56,7 @@ "typescript": "^4.5.5" }, "dependencies": { - "@web3-onboard/common": "^2.3.2", + "@web3-onboard/common": "^2.3.3-alpha.1", "0xsequence": "^0.43.1" }, "peerDependencies": { diff --git a/packages/taho/package.json b/packages/taho/package.json index 8eb551749..0ef4c53db 100644 --- a/packages/taho/package.json +++ b/packages/taho/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/taho", - "version": "2.0.3", + "version": "2.0.4-alpha.1", "description": "Taho 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", @@ -66,7 +66,7 @@ "window": "^4.2.7" }, "dependencies": { - "@web3-onboard/common": "^2.3.2", + "@web3-onboard/common": "^2.3.3-alpha.1", "tallyho-detect-provider": "^1.0.0", "tallyho-onboarding": "^1.0.2" } diff --git a/packages/tallyho/package.json b/packages/tallyho/package.json index 0c14e9822..610591c12 100644 --- a/packages/tallyho/package.json +++ b/packages/tallyho/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/tallyho", - "version": "2.0.5", + "version": "2.0.6-alpha.1", "description": "(DEPRECATED. Use @web3-onboard/taho instead) Tally Ho (now named Taho 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 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", @@ -64,7 +64,7 @@ "window": "^4.2.7" }, "dependencies": { - "@web3-onboard/common": "^2.3.2", + "@web3-onboard/common": "^2.3.3-alpha.1", "tallyho-detect-provider": "^1.0.0", "tallyho-onboarding": "^1.0.2" } diff --git a/packages/torus/package.json b/packages/torus/package.json index c5c82d41a..a85cc83bb 100644 --- a/packages/torus/package.json +++ b/packages/torus/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/torus", - "version": "2.2.4", + "version": "2.2.5-alpha.1", "description": "Torus 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", @@ -58,6 +58,6 @@ }, "dependencies": { "@toruslabs/torus-embed": "1.38.2", - "@web3-onboard/common": "^2.3.2" + "@web3-onboard/common": "^2.3.3-alpha.1" } } diff --git a/packages/transaction-preview/package.json b/packages/transaction-preview/package.json index 859d3390e..a0b793cc8 100644 --- a/packages/transaction-preview/package.json +++ b/packages/transaction-preview/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/transaction-preview", - "version": "2.0.7", + "version": "2.0.8-alpha.1", "description": "In app preview of Ethereum transactions", "keywords": [ "Ethereum", @@ -80,7 +80,7 @@ "typescript": "^4.5.5" }, "dependencies": { - "@web3-onboard/common": "^2.3.2", + "@web3-onboard/common": "^2.3.3-alpha.1", "bnc-sdk": "^4.6.7", "bowser": "^2.11.0", "joi": "17.9.1", diff --git a/packages/trezor/package.json b/packages/trezor/package.json index ad4e6ed00..0247dfd0f 100644 --- a/packages/trezor/package.json +++ b/packages/trezor/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/trezor", - "version": "2.4.1", + "version": "2.4.2-alpha.1", "description": "Trezor hardware 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", @@ -60,8 +60,8 @@ "dependencies": { "@ethereumjs/tx": "^3.4.0", "@ethersproject/providers": "^5.5.0", - "@web3-onboard/common": "^2.3.2", - "@web3-onboard/hw-common": "^2.2.2", + "@web3-onboard/common": "^2.3.3-alpha.1", + "@web3-onboard/hw-common": "^2.2.3-alpha.1", "buffer": "^6.0.3", "eth-crypto": "^2.1.0", "ethereumjs-util": "^7.1.3", diff --git a/packages/trust/package.json b/packages/trust/package.json index eefffbb92..f3eb64d8c 100644 --- a/packages/trust/package.json +++ b/packages/trust/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/trust", - "version": "2.0.3", + "version": "2.0.4-alpha.1", "description": "Trust 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", @@ -61,6 +61,6 @@ "typescript": "^4.5.5" }, "dependencies": { - "@web3-onboard/common": "^2.3.2" + "@web3-onboard/common": "^2.3.3-alpha.1" } } diff --git a/packages/uauth/package.json b/packages/uauth/package.json index b1e2dfa48..f1536ea41 100644 --- a/packages/uauth/package.json +++ b/packages/uauth/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/uauth", - "version": "2.0.4", + "version": "2.0.5-alpha.1", "description": "Unstoppable Domains 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", @@ -65,7 +65,7 @@ "@ethersproject/providers": "^5.5.0", "@walletconnect/client": "^1.7.1", "@walletconnect/qrcode-modal": "^1.7.1", - "@web3-onboard/common": "^2.3.2", + "@web3-onboard/common": "^2.3.3-alpha.1", "joi": "17.9.1", "rxjs": "^7.5.2" } diff --git a/packages/unstoppable-resolution/package.json b/packages/unstoppable-resolution/package.json index b31307482..0f01e198b 100644 --- a/packages/unstoppable-resolution/package.json +++ b/packages/unstoppable-resolution/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/unstoppable-resolution", - "version": "2.0.1", + "version": "2.0.2-alpha.1", "description": "Adds Unstoppable Domain resolution for a wallet address, similar to ENS resolution", "keywords": [ "Unstoppable Domain", @@ -29,7 +29,7 @@ }, "license": "MIT", "devDependencies": { - "@web3-onboard/common": "^2.3.2", + "@web3-onboard/common": "^2.3.3-alpha.1", "typescript": "^4.5.5" }, "dependencies": { diff --git a/packages/vue/package.json b/packages/vue/package.json index 5832ba042..54b22142c 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/vue", - "version": "2.7.1", + "version": "2.7.2-alpha.1", "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 standardized 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", @@ -62,8 +62,8 @@ "dependencies": { "@vueuse/core": "^8.4.2", "@vueuse/rxjs": "^8.2.0", - "@web3-onboard/common": "^2.3.2", - "@web3-onboard/core": "^2.18.0", + "@web3-onboard/common": "^2.3.3-alpha.1", + "@web3-onboard/core": "^2.19.0-alpha.1", "vue-demi": "^0.12.4" }, "peerDependencies": { diff --git a/packages/walletconnect/package.json b/packages/walletconnect/package.json index 588766777..9824aa674 100644 --- a/packages/walletconnect/package.json +++ b/packages/walletconnect/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/walletconnect", - "version": "2.3.7", + "version": "2.3.8-alpha.1", "description": "WalletConnect SDK 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", @@ -65,7 +65,7 @@ "@walletconnect/client": "^1.8.0", "@walletconnect/qrcode-modal": "^1.8.0", "@web3modal/standalone":"2.2.2", - "@web3-onboard/common": "^2.3.2", + "@web3-onboard/common": "^2.3.3-alpha.1", "rxjs": "^7.5.2" } } diff --git a/packages/walletlink/package.json b/packages/walletlink/package.json index e8c0f0ace..61efcef49 100644 --- a/packages/walletlink/package.json +++ b/packages/walletlink/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/walletlink", - "version": "2.1.6", + "version": "2.1.7-alpha.1", "description": "(DEPRECATED. Use @web3-onboard/coinbase instead) WalletLink 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", @@ -58,7 +58,7 @@ "typescript": "^4.5.5" }, "dependencies": { - "@web3-onboard/common": "^2.3.2", + "@web3-onboard/common": "^2.3.3-alpha.1", "walletlink": "^2.5.0" } } diff --git a/packages/web3auth/package.json b/packages/web3auth/package.json index 304a25d0d..5031262d3 100644 --- a/packages/web3auth/package.json +++ b/packages/web3auth/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/web3auth", - "version": "2.2.2", + "version": "2.2.3-alpha.1", "description": "Web3Auth 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", @@ -57,7 +57,7 @@ "typescript": "^4.5.5" }, "dependencies": { - "@web3-onboard/common": "^2.3.2", + "@web3-onboard/common": "^2.3.3-alpha.1", "@solana/web3.js": "^1.73.0", "@web3auth/base": "^5.0.1", "@web3auth/modal": "^5.0.1", diff --git a/packages/xdefi/package.json b/packages/xdefi/package.json index 2941229c5..844b257a4 100644 --- a/packages/xdefi/package.json +++ b/packages/xdefi/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/xdefi", - "version": "2.0.3", + "version": "2.0.4-alpha.1", "description": "XDEFI 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", @@ -64,6 +64,6 @@ "window": "^4.2.7" }, "dependencies": { - "@web3-onboard/common": "^2.3.2" + "@web3-onboard/common": "^2.3.3-alpha.1" } } diff --git a/packages/zeal/package.json b/packages/zeal/package.json index a2979c75b..b2ec62bb9 100644 --- a/packages/zeal/package.json +++ b/packages/zeal/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/zeal", - "version": "2.0.3", + "version": "2.0.4-alpha.1", "description": "Zeal SDK wallet module for connecting to Web3-Onboard.", "keywords": [ "Ethereum", @@ -54,6 +54,6 @@ "window": "^4.2.7" }, "dependencies": { - "@web3-onboard/common": "^2.3.2" + "@web3-onboard/common": "^2.3.3-alpha.1" } } diff --git a/yarn.lock b/yarn.lock index 013f3fc13..7d3f36f8c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3782,25 +3782,302 @@ "@walletconnect/window-getters" "^1.0.1" tslib "1.14.1" -"@web3-onboard/core@^2.18.0": - version "2.18.0-alpha.3" - resolved "https://registry.yarnpkg.com/@web3-onboard/core/-/core-2.18.0-alpha.3.tgz#2a5dea09c2eecf2c019df66812828e5acd543c8a" - integrity sha512-2m9E/ikLKfEq4A05SDlrevcSIEV3XS9IWSt4WbnaWLTEgqy+7hWPvs1Rz6GY9lQUm8+9nFMcNjt36Pn8JSlc6w== +"@web3-onboard/cede-store@^2.0.1": + version "2.0.1" + resolved "https://registry.yarnpkg.com/@web3-onboard/cede-store/-/cede-store-2.0.1.tgz#0dec82e6f511e5b89885586c3229732c824f1fc0" + integrity sha512-ZgC/cgGdci+TuFJ2Yt2NK7BH84kCvSTj/Ko+VxWaAfiAw8m249SIsJeqmW7hEGM0ZJhJW0rmQHvDpSv0w4wF5g== dependencies: - "@web3-onboard/common" "^2.3.2-alpha.2" - bignumber.js "^9.0.0" + "@cedelabs/providers" "^0.0.7" + "@web3-onboard/common" "^2.3.2" + +"@web3-onboard/coinbase@^2.2.3": + version "2.2.3" + resolved "https://registry.yarnpkg.com/@web3-onboard/coinbase/-/coinbase-2.2.3.tgz#db731735096a9fabec66517bc8a913650d3212d3" + integrity sha512-x1DcunvCfG17jKqa+IFqnxxcXwe30+hTxU+qRwVN/r699GGg6YsRQfIGZvRWcdl0dv6xkOifP3a4F38P4d4C8Q== + dependencies: + "@coinbase/wallet-sdk" "^3.6.0" + "@web3-onboard/common" "^2.3.2" + +"@web3-onboard/common@^2.3.1", "@web3-onboard/common@^2.3.2": + version "2.3.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/common/-/common-2.3.2.tgz#bf2868e3a093a20a1390eea596e82922c2af8cd8" + integrity sha512-BmMc7MhqrpWD3RxJ2IWppF7AKRRFdaUrcIUvUa3/MNV6IrwFoHcg9eTsFPlF0cUqJip+oQz0XGCqdlVgcSLAcQ== + dependencies: + bignumber.js "^9.1.0" + ethers "5.5.4" + joi "17.9.1" + +"@web3-onboard/dcent@^2.2.6": + version "2.2.6" + resolved "https://registry.yarnpkg.com/@web3-onboard/dcent/-/dcent-2.2.6.tgz#5dc43bb83eca569c6b1f622b956c48107f84bae5" + integrity sha512-RjOeXhsNQTkf+eqop6bIHPMuNnjr4IBF1/+kpD6JjsatxI+La+zJv16gSFq0aPfq7TZgb4vuaSmgoCxnO1UEGA== + dependencies: + "@ethereumjs/tx" "^3.4.0" + "@ethersproject/providers" "^5.5.0" + "@web3-onboard/common" "^2.3.2" + "@web3-onboard/hw-common" "^2.2.2" + eth-dcent-keyring "^0.2.2" + +"@web3-onboard/enkrypt@^2.0.3": + version "2.0.3" + resolved "https://registry.yarnpkg.com/@web3-onboard/enkrypt/-/enkrypt-2.0.3.tgz#86c25b7acb57178918084c3e86ffbeb8b82622eb" + integrity sha512-2ONcOJiiKPIKj0B8YZMUht292zcnRQtyNExQoro8n8mpFNhQ4Ig2zQi1IzHcSOGRk8I+RoGO8rvCZ/WAsa65zw== + dependencies: + "@web3-onboard/common" "^2.3.2" + +"@web3-onboard/fortmatic@^2.0.18": + version "2.0.18" + resolved "https://registry.yarnpkg.com/@web3-onboard/fortmatic/-/fortmatic-2.0.18.tgz#2df966c2fda49161cd96f8e28cbbb414e63aa7cf" + integrity sha512-WAgxwFPtRXwqElPdirKonCPANQ/KWsWrA6WGcUNzDTdUvS5UJLGGQMoKxM5yN4TgiCp5vvb33cRhEZ08b9tJdQ== + dependencies: + "@web3-onboard/common" "^2.3.2" + fortmatic "^2.2.1" + +"@web3-onboard/frame@2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@web3-onboard/frame/-/frame-2.0.0.tgz#b2840fc3ebb1c303b6f305f25e847512d8065810" + integrity sha512-FBbc9JCEVMX502wA5wqWpRBF2qAxnPvflCmCMK2bm2gVcS/HuT99eXV497yb6KJy9ryXxS/t7d8hVZtuRDwOYg== + dependencies: + "@web3-onboard/common" "^2.3.1" + eth-provider "^0.13.6" + +"@web3-onboard/frontier@^2.0.3": + version "2.0.3" + resolved "https://registry.yarnpkg.com/@web3-onboard/frontier/-/frontier-2.0.3.tgz#1422d7f64a6c311d610c450d0d2a9f7068758679" + integrity sha512-GrXZpimDWLr54g/GSioF9FoHPv326vbUydBh3Gm5xMx7TkiJ50nVNvGZM/tGC4wrsw1K5lVZ4B2GM89/2fYW/A== + dependencies: + "@web3-onboard/common" "^2.3.2" + +"@web3-onboard/gas@^2.1.5", "@web3-onboard/gas@^2.1.7": + version "2.1.7" + resolved "https://registry.yarnpkg.com/@web3-onboard/gas/-/gas-2.1.7.tgz#caef19baac5b6ae8a48ce433473d7d45ce40e6a8" + integrity sha512-OVb73b6irHYkqZO45lB3bMe7BLc4Lr4mVdqSrv/YiFjCgq1iosb6AO/MHgQAzG3X9zwbFs4Jls9gkaUgW5jluw== + dependencies: + "@web3-onboard/common" "^2.3.2" + joi "17.8.1" + rxjs "^7.5.2" + +"@web3-onboard/gnosis@^2.1.9": + version "2.1.9" + resolved "https://registry.yarnpkg.com/@web3-onboard/gnosis/-/gnosis-2.1.9.tgz#1b228513f361bef88bd1fdb9310a5c267ed54f54" + integrity sha512-nBBK8rtLMiS4yhlKh75f0CW86HEp9qQfOf2wI1wyeNlcFDrYvnIdSvAXtH+mZQCNu0v5qSCF2lR5buUbu+i0tw== + dependencies: + "@gnosis.pm/safe-apps-provider" "^0.9.2" + "@gnosis.pm/safe-apps-sdk" "^6.1.1" + "@web3-onboard/common" "^2.3.2" + +"@web3-onboard/hw-common@^2.2.0", "@web3-onboard/hw-common@^2.2.2": + version "2.2.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/hw-common/-/hw-common-2.2.2.tgz#02dad6afc4af3b5945272d1a1d24dbcebd837ad0" + integrity sha512-wOskCumVGUSNMnJQUGkSOMP0nZvocfHrK3/iqNtsUVXU6Szw3I9/oIwNPwcDwbttIwpayLyLZisGxvnn7gj3+g== + dependencies: + "@ethereumjs/common" "2.6.2" + "@web3-onboard/common" "^2.3.2" + ethers "5.5.4" + joi "17.9.1" + rxjs "^7.5.2" + +"@web3-onboard/infinity-wallet@^2.0.3": + version "2.0.3" + resolved "https://registry.yarnpkg.com/@web3-onboard/infinity-wallet/-/infinity-wallet-2.0.3.tgz#c7c98e407bfaccf41fdbd48df983d5abf951ae6d" + integrity sha512-orXgx+hohaU1B8OTw9rvzl6/Zp/ouf5At90kPl/qgW5P7AqJp6X6i84dxTrxUWiiUOmnienvO/xQxBaTA+NQyQ== + dependencies: + "@infinitywallet/infinity-connector" "^1.0.6" + +"@web3-onboard/injected-wallets@^2.8.5": + version "2.8.6" + resolved "https://registry.yarnpkg.com/@web3-onboard/injected-wallets/-/injected-wallets-2.8.6.tgz#946843a8595752b6bd80ee04cc7030c1717ba180" + integrity sha512-mdvhU7Zv3pD69oopjbmrT0yVzKboEGUQcE372HGT63xA7w0m0p9rDHjlSQuy4DyNop7Vx0k1cKrnvjFE7dyqZg== + dependencies: + "@web3-onboard/common" "^2.3.2" + joi "17.9.1" + lodash.uniqby "^4.7.0" + +"@web3-onboard/keepkey@^2.3.6": + version "2.3.6" + resolved "https://registry.yarnpkg.com/@web3-onboard/keepkey/-/keepkey-2.3.6.tgz#f691a2a945913325b8b2eade75a999489bc7ebcf" + integrity sha512-QkXGCSZ3jq7m+GxVTAOHfJnggdPnqE72CG8Pbf/qzeRVC0KznfKmp6b2+w8g/IlGKcJkCzIcifLGue8W7beaQw== + dependencies: + "@ethersproject/providers" "^5.5.0" + "@shapeshiftoss/hdwallet-core" "^1.15.2" + "@shapeshiftoss/hdwallet-keepkey-webusb" "^1.15.2" + "@web3-onboard/common" "^2.3.2" + "@web3-onboard/hw-common" "^2.2.2" + ethereumjs-util "^7.1.3" + +"@web3-onboard/keystone@^2.3.6": + version "2.3.6" + resolved "https://registry.yarnpkg.com/@web3-onboard/keystone/-/keystone-2.3.6.tgz#ddeaa5feece8b6996a7a03fda50cacdfa076daaa" + integrity sha512-++TkxB2zNiFK1t9Hgp9oT1Tl0v4nEngX2OaqFUd0nRQ3669SaF+Wd0eemCHFGMCbiwqOvNfBKR67DuEOIPknrg== + dependencies: + "@ethereumjs/tx" "^3.4.0" + "@ethersproject/providers" "^5.5.0" + "@keystonehq/eth-keyring" "^0.14.00.3" + "@web3-onboard/common" "^2.3.2" + "@web3-onboard/hw-common" "^2.2.0" + +"@web3-onboard/ledger@^2.4.5": + version "2.4.5" + resolved "https://registry.yarnpkg.com/@web3-onboard/ledger/-/ledger-2.4.5.tgz#252c52ed2603254aa98d54cd5e177f255ccd51f2" + integrity sha512-uLZMygKz7AVPbnNndHsbEQEGI/bHEepNHzR9vAsw9Z4h+gD5z9OhRKXK8eArQRBSQJmBsLdWRfrS8g9r+USJPQ== + dependencies: + "@ethersproject/providers" "^5.5.0" + "@ledgerhq/connect-kit-loader" "^1.0.2" + "@walletconnect/client" "^1.7.1" + "@web3-onboard/common" "^2.3.2" + rxjs "^7.5.2" + +"@web3-onboard/magic@^2.1.6": + version "2.1.6" + resolved "https://registry.yarnpkg.com/@web3-onboard/magic/-/magic-2.1.6.tgz#8b0eaa0ca02f9324065782df5cb2b0ea6fcf9d5f" + integrity sha512-53bke1UBnR6dCgcUcBnRPsvrJFPeaRwdaS4wQOgsHLYgKtmLxFitlSLxhL++eiI6JZH6edV8GCKP6lyuWVacTw== + dependencies: + "@web3-onboard/common" "^2.3.2" + joi "17.9.1" + magic-sdk "^8.1.0" + rxjs "^7.5.2" + +"@web3-onboard/mew-wallet@^2.0.2": + version "2.0.3" + resolved "https://registry.yarnpkg.com/@web3-onboard/mew-wallet/-/mew-wallet-2.0.3.tgz#5b962c749bef9babb04cf0077cf89ac7b3e72b33" + integrity sha512-Hkg6zkhjNvO5bonXJg7du0pSKgktzqwDJxvLoFAd7sFyQxV/IDTQ1sYFKE2ItPakuQM4tKPeHCyZM6Nbqmjnqg== + dependencies: + "@web3-onboard/common" "^2.3.2" + lodash.uniqby "^4.7.0" + +"@web3-onboard/phantom@^2.0.1": + version "2.0.1" + resolved "https://registry.yarnpkg.com/@web3-onboard/phantom/-/phantom-2.0.1.tgz#3f29dbf72f15f32d1f62317e35dc1097b232cc13" + integrity sha512-PJkNKIeKO4nULntlgi6pe+PAl6vPC211DSRV1+RQaMxpi5DP83b5lUmk310fCdaaLtDLjPcxf5TZf4AyZ6mWYw== + dependencies: + "@web3-onboard/common" "^2.3.2" + +"@web3-onboard/portis@^2.1.6": + version "2.1.6" + resolved "https://registry.yarnpkg.com/@web3-onboard/portis/-/portis-2.1.6.tgz#a774e12c450894a3c80cf73e248bd9eba6240714" + integrity sha512-cJxXgJ2gT+RkouIdr1unyvD+iETz5VfuZlJp3nvEE7JBF4ihoycE9jGlr0Zd9gSP3TpM8imsW7NlM2jSuSuf1A== + dependencies: + "@portis/web3" "^4.0.6" + "@web3-onboard/common" "^2.3.2" + +"@web3-onboard/sequence@^2.0.7": + version "2.0.7" + resolved "https://registry.yarnpkg.com/@web3-onboard/sequence/-/sequence-2.0.7.tgz#e0a649cdf2e1bfc381b6cc52e1d31a3619694127" + integrity sha512-JJannpGsPn1mkkzN8a0CR71P/3F38lbhp2X14tE9SxwuGZs4a/sgmA/wMdP1L99cGpfnq2Inm2ay9LmjoU7mrw== + dependencies: + "0xsequence" "^0.43.1" + "@web3-onboard/common" "^2.3.2" + +"@web3-onboard/taho@^2.0.3": + version "2.0.3" + resolved "https://registry.yarnpkg.com/@web3-onboard/taho/-/taho-2.0.3.tgz#7acac82e5251b38292a28a994f3e718e58c3a1d1" + integrity sha512-BUFbe4BuAMZRLlC/3F6gVQW94uGgyyYHs/MuK0+FdsRuoPHoaj0YBmZZJksZOACv/QzwDP/ZdOZAuesJwHq0tw== + dependencies: + "@web3-onboard/common" "^2.3.2" + tallyho-detect-provider "^1.0.0" + tallyho-onboarding "^1.0.2" + +"@web3-onboard/torus@^2.2.4": + version "2.2.4" + resolved "https://registry.yarnpkg.com/@web3-onboard/torus/-/torus-2.2.4.tgz#5c5fffcf18112886c140a32910e3843d7b78c48a" + integrity sha512-hv54bEaSznZif8jxnA2cYcYqx904jInKELkyUbqoUdnwU8nhviXhwE8oPeeFVuiuaWrnZPxJqY/Yqkq3E/5SFw== + dependencies: + "@toruslabs/torus-embed" "1.38.2" + "@web3-onboard/common" "^2.3.2" + +"@web3-onboard/transaction-preview@^2.0.5", "@web3-onboard/transaction-preview@^2.0.7": + version "2.0.7" + resolved "https://registry.yarnpkg.com/@web3-onboard/transaction-preview/-/transaction-preview-2.0.7.tgz#6e607fdbd92a6087049780bf17f4111255ac1e8b" + integrity sha512-AylimOQNIG+SRVdt46+p30Tao0hR39njYvUGX3erURBavKgTnq2txFyefZuM0XI7Hg+/ROsLozTSs8hQqUI2Mw== + dependencies: + "@web3-onboard/common" "^2.3.2" bnc-sdk "^4.6.7" bowser "^2.11.0" - ethers "5.5.3" - eventemitter3 "^4.0.7" joi "17.9.1" - lodash.merge "^4.6.2" - lodash.partition "^4.6.0" - nanoid "^4.0.0" - rxjs "^7.5.5" + rxjs "^7.5.2" svelte "^3.49.0" svelte-i18n "^3.3.13" +"@web3-onboard/trezor@^2.4.1": + version "2.4.1" + resolved "https://registry.yarnpkg.com/@web3-onboard/trezor/-/trezor-2.4.1.tgz#c5159013d7424b1add70929df55ca254ac264e0e" + integrity sha512-ShgZLxAzPkgw9cbVnR8UrfdCgg2oxn9DFLpmKC8Thmi0sT3/IP6Evn1dGoebf9xOrhgOssahyFnpR2qtBOYIUg== + dependencies: + "@ethereumjs/tx" "^3.4.0" + "@ethersproject/providers" "^5.5.0" + "@trezor/connect-web" "^9.0.8" + "@web3-onboard/common" "^2.3.2" + "@web3-onboard/hw-common" "^2.2.2" + buffer "^6.0.3" + eth-crypto "^2.1.0" + ethereumjs-util "^7.1.3" + hdkey "^2.0.1" + +"@web3-onboard/trust@^2.0.3": + version "2.0.3" + resolved "https://registry.yarnpkg.com/@web3-onboard/trust/-/trust-2.0.3.tgz#573e84d7d89a815984b12f2fc409bc3a95d018de" + integrity sha512-eDw3FDTKGsqhSzaWBzYCSjEuKQDYZs6DbzAfnYcFb06tuZy9yQRW8U3sjPUKLNnIO6RtoBiO61f2O4IcOtj7bA== + dependencies: + "@web3-onboard/common" "^2.3.2" + +"@web3-onboard/uauth@^2.0.4": + version "2.0.4" + resolved "https://registry.yarnpkg.com/@web3-onboard/uauth/-/uauth-2.0.4.tgz#1c3c111cf2394e97266fa4e8b247eec3cd7e143e" + integrity sha512-TWsMCxpmcVTHa6bGqVHe7CKpoZO2GPQkYqk1Ow8VP8qh05KdXIGBDRXEpzKQGxsChQQoNza3y1ycQSnWhpIa+Q== + dependencies: + "@ethersproject/providers" "^5.5.0" + "@uauth/js" "^2.4.0" + "@walletconnect/client" "^1.7.1" + "@walletconnect/qrcode-modal" "^1.7.1" + "@web3-onboard/common" "^2.3.2" + joi "17.9.1" + rxjs "^7.5.2" + +"@web3-onboard/unstoppable-resolution@^2.0.0": + version "2.0.1" + resolved "https://registry.yarnpkg.com/@web3-onboard/unstoppable-resolution/-/unstoppable-resolution-2.0.1.tgz#c4307dfa8d084d2d31332805b5b28d70f8cfa62a" + integrity sha512-QsCvHYMo5c6/rOMwmRcas78TlBKBON3XBqONwSdNge0rjGDnu6UH3HqV/NuO6W7lEGhXQxk2ZthL/Ui0KCBCgw== + dependencies: + "@unstoppabledomains/resolution" "^8.0" + +"@web3-onboard/walletconnect@^2.3.7": + version "2.3.7" + resolved "https://registry.yarnpkg.com/@web3-onboard/walletconnect/-/walletconnect-2.3.7.tgz#35c3b611a428097559907aeccfb64dee002f139a" + integrity sha512-9m8ZL03Gie1xZG0SFTNRw2Azn+zLev7bSbiAdgqhlSkvw0kazahWE0atHWTggI4TwLLe5jPrZriwm9vmbEM2ow== + dependencies: + "@ethersproject/providers" "5.5.0" + "@walletconnect/client" "^1.8.0" + "@walletconnect/ethereum-provider" "2.7.0" + "@walletconnect/qrcode-modal" "^1.8.0" + "@web3-onboard/common" "^2.3.2" + "@web3modal/standalone" "2.2.2" + rxjs "^7.5.2" + +"@web3-onboard/web3auth@^2.2.2": + version "2.2.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/web3auth/-/web3auth-2.2.2.tgz#e7ecb655f56a8ed263122e7191deec1763e7c8bc" + integrity sha512-Jv5xTdSBGYZJx+4uo1lB5VvTG2Xii0rbRwUFIUChpHlx+KZUVugtsaXXy2HCCLtL3F50P655ZbIqjc9LvqqIqA== + dependencies: + "@solana/web3.js" "^1.73.0" + "@web3-onboard/common" "^2.3.2" + "@web3auth/base" "^5.0.1" + "@web3auth/modal" "^5.0.1" + react-dom "^18.2.0" + +"@web3-onboard/xdefi@^2.0.3": + version "2.0.3" + resolved "https://registry.yarnpkg.com/@web3-onboard/xdefi/-/xdefi-2.0.3.tgz#703b0a4afd04a9448d45002c4532111a236e2b59" + integrity sha512-nGxspI2xsuoh69wZBim6/eIiVSUhhTWnFIaqlP1ZXHk2om9qbIO7ttFUAzPk+8TpGdYJ5TNKBI+L43CrbTv+RA== + dependencies: + "@web3-onboard/common" "^2.3.2" + +"@web3-onboard/zeal@^2.0.3": + version "2.0.3" + resolved "https://registry.yarnpkg.com/@web3-onboard/zeal/-/zeal-2.0.3.tgz#793b2966a029db0af566ed7b82610ef9f385f265" + integrity sha512-KGCznzH3zbChBgTV8KWWQhRg52B5YGdC5wNCEhWUINhn5ujwK3KdO0SsMmJOwMItAm8Y4OfPvZ+4lkDEdwKLhA== + dependencies: + "@web3-onboard/common" "^2.3.2" + "@web3-react/abstract-connector@^6.0.7": version "6.0.7" resolved "https://registry.yarnpkg.com/@web3-react/abstract-connector/-/abstract-connector-6.0.7.tgz#401b3c045f1e0fab04256311be49d5144e9badc6" From fa1d73cb63c74473559b65b7ca0e58a238038d06 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Thu, 11 May 2023 13:25:00 -0600 Subject: [PATCH 08/27] Rename rpc update func --- packages/core/src/provider.ts | 2 +- packages/core/src/views/account-center/Maximized.svelte | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/src/provider.ts b/packages/core/src/provider.ts index 375b685b6..0a4c0d849 100644 --- a/packages/core/src/provider.ts +++ b/packages/core/src/provider.ts @@ -471,7 +471,7 @@ export function addNewChain( }) } -export function addProtectedRPC( +export function updateChainRPC( provider: EIP1193Provider, chain: Chain, rpcUrl?: string diff --git a/packages/core/src/views/account-center/Maximized.svelte b/packages/core/src/views/account-center/Maximized.svelte index a9fb544e2..935d48dd5 100644 --- a/packages/core/src/views/account-center/Maximized.svelte +++ b/packages/core/src/views/account-center/Maximized.svelte @@ -26,7 +26,7 @@ import SecondaryTokenTable from './SecondaryTokenTable.svelte' import shieldIcon from '../../icons/shield-icon.js' import { BN_PROTECT_RPC_URL } from '../../constants.js' - import { addProtectedRPC } from '../../provider.js' + import { updateChainRPC } from '../../provider.js' import { shareReplay, startWith } from 'rxjs/operators' const accountCenter$ = state .select('accountCenter') @@ -38,7 +38,7 @@ const enableProtectionRPC = async () => { try { - await addProtectedRPC( + await updateChainRPC( primaryWallet.provider, validAppChain, BN_PROTECT_RPC_URL From 6ab2884f61ba878b58cb5a211f774b000a9741e2 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Thu, 11 May 2023 13:37:36 -0600 Subject: [PATCH 09/27] Cleanup type prop comments --- packages/common/src/types.ts | 2 +- packages/core/src/types.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/common/src/types.ts b/packages/common/src/types.ts index 9b3735d29..2579ab5ad 100644 --- a/packages/common/src/types.ts +++ b/packages/common/src/types.ts @@ -422,7 +422,7 @@ export interface Chain { /* An optional public RPC used when adding a new chain config to the wallet */ publicRpcUrl?: string /** An optional protected RPC URL - Defaults to Blocknative's private and - * protected RPCto allow users to update the chain RPC within their wallet, + * protected RPC to allow users to update the chain RPC within their wallet, * specifically for private RPCs that protect user transactions */ protectedRpcUrl?: string diff --git a/packages/core/src/types.ts b/packages/core/src/types.ts index 031fa7dd4..d96b9bf8d 100644 --- a/packages/core/src/types.ts +++ b/packages/core/src/types.ts @@ -263,6 +263,11 @@ export type NotificationPosition = CommonPositions export type AccountCenter = { enabled: boolean + /** + * false by default - This allows removal of the + * Enable Transaction Protection' button within the Account Center + * expanded when set to true + */ disableProtectedRpc?: boolean position?: AccountCenterPosition expanded?: boolean From bd37fa3043fb580c350afe13a0622d683a03af2b Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Thu, 11 May 2023 14:09:16 -0600 Subject: [PATCH 10/27] Refine state get in maximized --- packages/core/src/views/account-center/Maximized.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/views/account-center/Maximized.svelte b/packages/core/src/views/account-center/Maximized.svelte index 935d48dd5..92c412206 100644 --- a/packages/core/src/views/account-center/Maximized.svelte +++ b/packages/core/src/views/account-center/Maximized.svelte @@ -49,7 +49,7 @@ } } - const { chains: appChains } = state.get() + const { chains: appChains, accountCenter } = state.get() const { appMetadata } = configuration let disconnectConfirmModal = false let enableTransactionProtection = false @@ -72,7 +72,7 @@ connectedChain && connectedChain.id ) - const { position } = state.get().accountCenter + const { position } = accountCenter const { device } = configuration From 6ef8c61c294d8cff322b7fae91865fb545f45f5d Mon Sep 17 00:00:00 2001 From: Gustavo Esquinca Date: Thu, 11 May 2023 22:50:48 -0400 Subject: [PATCH 11/27] update modal styles - use theme vars - remove rpc specific css vars - adjust spacing - remove unused css classes --- .../EnableTransactionProtection.svelte | 108 ++++++++++-------- 1 file changed, 59 insertions(+), 49 deletions(-) diff --git a/packages/core/src/views/account-center/EnableTransactionProtection.svelte b/packages/core/src/views/account-center/EnableTransactionProtection.svelte index b526e44b5..642beaa91 100644 --- a/packages/core/src/views/account-center/EnableTransactionProtection.svelte +++ b/packages/core/src/views/account-center/EnableTransactionProtection.svelte @@ -10,53 +10,64 @@ @@ -66,29 +77,28 @@ {@html shieldIcon}
-

- {$_('modals.confirmTransactionProtection.heading', { - default: en.modals.confirmTransactionProtection.heading - })} -

- -

- {$_('modals.confirmTransactionProtection.description')} -

+
+
+ {$_('modals.confirmTransactionProtection.heading', { + default: en.modals.confirmTransactionProtection.heading + })} +
+
+ {$_('modals.confirmTransactionProtection.description')} +
+
-
- - + + })} +
From a0ae00205b9c5e27c999167d4b109d12d06d0673 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Fri, 12 May 2023 15:12:51 -0600 Subject: [PATCH 12/27] Update packages/core/src/provider.ts --- packages/core/src/provider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/provider.ts b/packages/core/src/provider.ts index 0a4c0d849..154c5f070 100644 --- a/packages/core/src/provider.ts +++ b/packages/core/src/provider.ts @@ -474,7 +474,7 @@ export function addNewChain( export function updateChainRPC( provider: EIP1193Provider, chain: Chain, - rpcUrl?: string + rpcUrl: string ): Promise { return provider.request({ method: 'wallet_addEthereumChain', From 7168c1b21fe0c772a6c02e5df32988cf6237da17 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Mon, 15 May 2023 08:40:57 -0600 Subject: [PATCH 13/27] Add disableProtectRPC to accountCenterInit validation --- packages/core/src/validation.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/src/validation.ts b/packages/core/src/validation.ts index 2bbd6ef57..e2cf4882b 100644 --- a/packages/core/src/validation.ts +++ b/packages/core/src/validation.ts @@ -168,7 +168,8 @@ const accountCenterInitOptions = Joi.object({ enabled: Joi.boolean(), position: commonPositions, minimal: Joi.boolean(), - containerElement: Joi.string() + containerElement: Joi.string(), + disableProtectedRpc: Joi.boolean() }) const accountCenter = Joi.object({ From e45c75427f6742af0736490ee7fa3df2a1219740 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Mon, 15 May 2023 09:30:01 -0600 Subject: [PATCH 14/27] Update docs for AccountCenter diableProtectRPC --- .../docs/[...3]modules/[...1]core/+page.md | 19 ++++++++++++++----- packages/core/README.md | 7 +++++++ packages/core/src/index.ts | 12 ++++++++++-- packages/core/src/types.ts | 14 +++++++++++--- packages/core/src/validation.ts | 7 ++++--- .../src/views/account-center/Maximized.svelte | 2 +- packages/demo/src/App.svelte | 5 +++-- 7 files changed, 50 insertions(+), 16 deletions(-) diff --git a/docs/src/routes/docs/[...3]modules/[...1]core/+page.md b/docs/src/routes/docs/[...3]modules/[...1]core/+page.md index b823c4b14..708bb8c4d 100644 --- a/docs/src/routes/docs/[...3]modules/[...1]core/+page.md +++ b/docs/src/routes/docs/[...3]modules/[...1]core/+page.md @@ -145,11 +145,7 @@ type Chain = { icon?: string // the icon to represent the chain publicRpcUrl?: string // an optional public RPC used when adding a new chain config to the wallet blockExplorerUrl?: string // also used when adding a new config to the wallet -<<<<<<< HEAD:docs/src/routes/docs/[...3]modules/[...1]core/+page.md - secondaryTokens?: SecondaryTokens[] // An optional array of tokens (max of 5) to be available to the dapp in the app state object per wallet within the wallet account and displayed in Account Center (if enabled) -======= secondaryTokens?: SecondaryTokens[] // An optional array of tokens (max of 5) to be available to the dapp in the app state object per wallet within the wallet account and displayed in Account Center (if enabled) ->>>>>>> develop:docs/src/routes/docs/[...3]modules/core.md } interface SecondaryTokens { @@ -372,7 +368,13 @@ type AccountCenter = { position?: AccountCenterPosition // default: 'bottomRight' expanded?: boolean // default: true minimal?: boolean // enabled by default for mobile - + /** + * false by default - This allows removal of the + * Enable Transaction Protection' button within the Account Center + * expanded when set to true + * Can be set as a global for Account Center or per interface (desktop/mobile) + */ + hideTransactionProtectionBtn?: boolean /** * @deprecated Use top level containerElements property * with the accountCenter prop set to the desired container El. See documentation below @@ -383,6 +385,13 @@ type AccountCenter = { type AccountCenterOptions = { desktop: Omit mobile: Omit + /** + * false by default - This allows removal of the + * Enable Transaction Protection' button within the Account Center + * expanded when set to true + * Can be set as a global for Account Center or per interface (desktop/mobile) + */ + hideTransactionProtectionBtn?: boolean } type AccountCenterPosition = 'topRight' | 'bottomRight' | 'bottomLeft' | 'topLeft' diff --git a/packages/core/README.md b/packages/core/README.md index c641a8431..279b3dc71 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -335,6 +335,13 @@ type AccountCenter = { type AccountCenterOptions = { desktop: Omit mobile: Omit + /** + * false by default - This allows removal of the + * Enable Transaction Protection' button within the Account Center + * expanded when set to true + * Can be set as a global for Account Center or per interface (desktop/mobile) + */ + hideTransactionProtectionBtn?: boolean } type AccountCenterPosition = diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index f81a72669..7d28d9758 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -5,7 +5,12 @@ import { state } from './store/index.js' import { reset$, wallets$ } from './streams.js' import initI18N from './i18n/index.js' import App from './views/Index.svelte' -import type { ConnectModalOptions, InitOptions, Notify, Theme } from './types.js' +import type { + ConnectModalOptions, + InitOptions, + Notify, + Theme +} from './types.js' import { APP_INITIAL_STATE, STORAGE_KEYS } from './constants.js' import { configuration, updateConfiguration } from './configuration.js' import updateBalances from './update-balances.js' @@ -117,19 +122,22 @@ function init(options: InitOptions): OnboardAPI { if (typeof connect !== undefined) { updateConnectModal(connect) } - + console.log(accountCenter) // update accountCenter if (typeof accountCenter !== 'undefined') { let accountCenterUpdate + const { hideTransactionProtectionBtn } = accountCenter if (device.type === 'mobile') { accountCenterUpdate = { ...APP_INITIAL_STATE.accountCenter, + hideTransactionProtectionBtn, ...(accountCenter.mobile ? accountCenter.mobile : {}) } } else if (accountCenter.desktop) { accountCenterUpdate = { ...APP_INITIAL_STATE.accountCenter, + hideTransactionProtectionBtn, ...accountCenter.desktop } } diff --git a/packages/core/src/types.ts b/packages/core/src/types.ts index d96b9bf8d..2ec8dc5be 100644 --- a/packages/core/src/types.ts +++ b/packages/core/src/types.ts @@ -264,11 +264,12 @@ export type NotificationPosition = CommonPositions export type AccountCenter = { enabled: boolean /** - * false by default - This allows removal of the - * Enable Transaction Protection' button within the Account Center + * false by default - This allows removal of the + * Enable Transaction Protection' button within the Account Center * expanded when set to true + * Can be set as a global for Account Center or per interface (desktop/mobile) */ - disableProtectedRpc?: boolean + hideTransactionProtectionBtn?: boolean position?: AccountCenterPosition expanded?: boolean minimal?: boolean @@ -282,6 +283,13 @@ export type AccountCenter = { export type AccountCenterOptions = { desktop: Omit mobile: Omit + /** + * false by default - This allows removal of the + * Enable Transaction Protection' button within the Account Center + * expanded when set to true + * Can be set as a global for Account Center or per interface (desktop/mobile) + */ + hideTransactionProtectionBtn?: boolean } export type ContainerElements = { diff --git a/packages/core/src/validation.ts b/packages/core/src/validation.ts index e2cf4882b..b9c092ed3 100644 --- a/packages/core/src/validation.ts +++ b/packages/core/src/validation.ts @@ -169,7 +169,7 @@ const accountCenterInitOptions = Joi.object({ position: commonPositions, minimal: Joi.boolean(), containerElement: Joi.string(), - disableProtectedRpc: Joi.boolean() + hideTransactionProtectionBtn: Joi.boolean() }) const accountCenter = Joi.object({ @@ -177,7 +177,7 @@ const accountCenter = Joi.object({ position: commonPositions, expanded: Joi.boolean(), minimal: Joi.boolean(), - disableProtectedRpc: Joi.boolean(), + hideTransactionProtectionBtn: Joi.boolean(), containerElement: Joi.string() }) @@ -218,7 +218,8 @@ const initOptions = Joi.object({ apiKey: Joi.string(), accountCenter: Joi.object({ desktop: accountCenterInitOptions, - mobile: accountCenterInitOptions + mobile: accountCenterInitOptions, + hideTransactionProtectionBtn: Joi.boolean() }), notify: [notifyOptions, notify], gas: Joi.object({ diff --git a/packages/core/src/views/account-center/Maximized.svelte b/packages/core/src/views/account-center/Maximized.svelte index 92c412206..353dfc119 100644 --- a/packages/core/src/views/account-center/Maximized.svelte +++ b/packages/core/src/views/account-center/Maximized.svelte @@ -447,7 +447,7 @@ - {#if !$accountCenter$.disableProtectedRpc && connectedChain.id === '0x1'} + {#if !$accountCenter$.hideTransactionProtectionBtn && connectedChain.id === '0x1'}
(enableTransactionProtection = true)} class="protect action-container flex items-center pointer" diff --git a/packages/demo/src/App.svelte b/packages/demo/src/App.svelte index a86bc0644..411191321 100644 --- a/packages/demo/src/App.svelte +++ b/packages/demo/src/App.svelte @@ -311,8 +311,9 @@ desktop: { position: 'topRight', enabled: true, - minimal: false - } + minimal: false, + }, + // hideTransactionProtectionBtn: true }, // example customizing copy i18n: { From be704e16b480fdb0e242353ef1b2d6d1393fb79f Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Mon, 15 May 2023 10:30:32 -0600 Subject: [PATCH 15/27] Update packages/core/src/index.ts Co-authored-by: Kat Leight <33187102+leightkt@users.noreply.github.com> --- packages/core/src/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index 7d28d9758..1d102b069 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -122,7 +122,6 @@ function init(options: InitOptions): OnboardAPI { if (typeof connect !== undefined) { updateConnectModal(connect) } - console.log(accountCenter) // update accountCenter if (typeof accountCenter !== 'undefined') { let accountCenterUpdate From 4e84d85626a7adf81ae58c78d676c69e52e04075 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Mon, 15 May 2023 10:36:49 -0600 Subject: [PATCH 16/27] Add small null check for secondary tokens --- packages/core/src/update-balances.ts | 1 + packages/core/src/views/connect/Index.svelte | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/core/src/update-balances.ts b/packages/core/src/update-balances.ts index 8d65efa45..0766829da 100644 --- a/packages/core/src/update-balances.ts +++ b/packages/core/src/update-balances.ts @@ -43,6 +43,7 @@ export const updateSecondaryTokens = async ( account: AccountAddress, chain: Chain ): Promise => { + if (!chain) return const chainRPC = chain.rpcUrl if (!chain.secondaryTokens || !chain.secondaryTokens.length || !chainRPC) return diff --git a/packages/core/src/views/connect/Index.svelte b/packages/core/src/views/connect/Index.svelte index c3d954775..ce2465ca7 100644 --- a/packages/core/src/views/connect/Index.svelte +++ b/packages/core/src/views/connect/Index.svelte @@ -342,6 +342,7 @@ } if ( !secondaryTokens && + appChain && Array.isArray(appChain.secondaryTokens) && appChain.secondaryTokens.length ) { From 67136558ca2ede32ca1645e74595940dac8c78b9 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Wed, 17 May 2023 09:25:30 -0600 Subject: [PATCH 17/27] Update rpc --- packages/core/src/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/constants.ts b/packages/core/src/constants.ts index 6a1eb31bc..0673fd7da 100644 --- a/packages/core/src/constants.ts +++ b/packages/core/src/constants.ts @@ -37,4 +37,4 @@ export const STORAGE_KEYS = { export const MOBILE_WINDOW_WIDTH = 768 -export const BN_PROTECT_RPC_URL = 'https://www.api.blocknative.com/protect' +export const BN_PROTECT_RPC_URL = 'https://www.rpc.blocknative.com' From a7d272a492366d6a595a8629e54d2a19b6a1f13b Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Wed, 17 May 2023 09:30:35 -0600 Subject: [PATCH 18/27] Update rpc again --- packages/core/src/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/constants.ts b/packages/core/src/constants.ts index 0673fd7da..81d8cfe65 100644 --- a/packages/core/src/constants.ts +++ b/packages/core/src/constants.ts @@ -37,4 +37,4 @@ export const STORAGE_KEYS = { export const MOBILE_WINDOW_WIDTH = 768 -export const BN_PROTECT_RPC_URL = 'https://www.rpc.blocknative.com' +export const BN_PROTECT_RPC_URL = 'https://rpc.blocknative.com' From 5b5d0a198a3776b88d19f38c0b26d0dbd7d414ed Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Wed, 17 May 2023 09:32:06 -0600 Subject: [PATCH 19/27] yarnit --- yarn.lock | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/yarn.lock b/yarn.lock index 060e32198..8c5dc9534 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3983,19 +3983,6 @@ dependencies: "@unstoppabledomains/resolution" "^8.0" -"@web3-onboard/walletconnect@^2.3.7": - version "2.3.7" - resolved "https://registry.yarnpkg.com/@web3-onboard/walletconnect/-/walletconnect-2.3.7.tgz#35c3b611a428097559907aeccfb64dee002f139a" - integrity sha512-9m8ZL03Gie1xZG0SFTNRw2Azn+zLev7bSbiAdgqhlSkvw0kazahWE0atHWTggI4TwLLe5jPrZriwm9vmbEM2ow== - dependencies: - "@ethersproject/providers" "5.5.0" - "@walletconnect/client" "^1.8.0" - "@walletconnect/ethereum-provider" "2.7.0" - "@walletconnect/qrcode-modal" "^1.8.0" - "@web3-onboard/common" "^2.3.2" - "@web3modal/standalone" "2.2.2" - rxjs "^7.5.2" - "@web3-onboard/web3auth@^2.2.2": version "2.2.2" resolved "https://registry.yarnpkg.com/@web3-onboard/web3auth/-/web3auth-2.2.2.tgz#e7ecb655f56a8ed263122e7191deec1763e7c8bc" From 1ff5fdb82585b77184b46b2e2b66547448029165 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Wed, 17 May 2023 13:58:56 -0600 Subject: [PATCH 20/27] Update rpc url --- packages/core/src/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/constants.ts b/packages/core/src/constants.ts index 81d8cfe65..c3bb7df64 100644 --- a/packages/core/src/constants.ts +++ b/packages/core/src/constants.ts @@ -37,4 +37,4 @@ export const STORAGE_KEYS = { export const MOBILE_WINDOW_WIDTH = 768 -export const BN_PROTECT_RPC_URL = 'https://rpc.blocknative.com' +export const BN_PROTECT_RPC_URL = 'https://rpc.blocknative.com/protect' From 798a15bf7527542ef7f99f30f0d64a99ee991341 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Wed, 17 May 2023 14:27:53 -0600 Subject: [PATCH 21/27] Add localstore check if RPC has been added --- packages/core/src/constants.ts | 3 ++- packages/core/src/views/account-center/Maximized.svelte | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/core/src/constants.ts b/packages/core/src/constants.ts index c3bb7df64..3872ec168 100644 --- a/packages/core/src/constants.ts +++ b/packages/core/src/constants.ts @@ -32,7 +32,8 @@ export const APP_INITIAL_STATE: AppState = { export const STORAGE_KEYS = { TERMS_AGREEMENT: 'onboard.js:agreement', - LAST_CONNECTED_WALLET: 'onboard.js:last_connected_wallet' + LAST_CONNECTED_WALLET: 'onboard.js:last_connected_wallet', + PROTECT_ENABLED: 'web3-onboard:protect_enabled' } export const MOBILE_WINDOW_WIDTH = 768 diff --git a/packages/core/src/views/account-center/Maximized.svelte b/packages/core/src/views/account-center/Maximized.svelte index 353dfc119..23a24c719 100644 --- a/packages/core/src/views/account-center/Maximized.svelte +++ b/packages/core/src/views/account-center/Maximized.svelte @@ -16,6 +16,7 @@ SuccessStatusIcon, WalletAppBadge } from '../shared/index.js' + import { getLocalStore, setLocalStore } from '../../utils' import caretLightIcon from '../../icons/caret-light.js' import warningIcon from '../../icons/warning.js' import questionIcon from '../../icons/question.js' @@ -25,7 +26,7 @@ import { configuration } from '../../configuration.js' import SecondaryTokenTable from './SecondaryTokenTable.svelte' import shieldIcon from '../../icons/shield-icon.js' - import { BN_PROTECT_RPC_URL } from '../../constants.js' + import { BN_PROTECT_RPC_URL, STORAGE_KEYS } from '../../constants.js' import { updateChainRPC } from '../../provider.js' import { shareReplay, startWith } from 'rxjs/operators' const accountCenter$ = state @@ -43,6 +44,7 @@ validAppChain, BN_PROTECT_RPC_URL ) + setLocalStore(STORAGE_KEYS.PROTECT_ENABLED, true) } catch (error) { const { code } = error as { code: number } console.log(error, code) @@ -51,6 +53,7 @@ const { chains: appChains, accountCenter } = state.get() const { appMetadata } = configuration + const protectEnabled = getLocalStore(STORAGE_KEYS.PROTECT_ENABLED) let disconnectConfirmModal = false let enableTransactionProtection = false let hideWalletRowMenu: () => void @@ -447,7 +450,7 @@
- {#if !$accountCenter$.hideTransactionProtectionBtn && connectedChain.id === '0x1'} + {#if !$accountCenter$.hideTransactionProtectionBtn && connectedChain.id === '0x1' && !protectEnabled}
(enableTransactionProtection = true)} class="protect action-container flex items-center pointer" From 7431aac4df3517b08ec26489b7bc0a2e060032b8 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Wed, 17 May 2023 14:32:39 -0600 Subject: [PATCH 22/27] Add dismissall of modal after confirm --- packages/core/src/views/account-center/Maximized.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/src/views/account-center/Maximized.svelte b/packages/core/src/views/account-center/Maximized.svelte index 23a24c719..a4012e99d 100644 --- a/packages/core/src/views/account-center/Maximized.svelte +++ b/packages/core/src/views/account-center/Maximized.svelte @@ -45,6 +45,7 @@ BN_PROTECT_RPC_URL ) setLocalStore(STORAGE_KEYS.PROTECT_ENABLED, true) + enableTransactionProtection = false } catch (error) { const { code } = error as { code: number } console.log(error, code) From 6b6c19372d3e96342c90fd60a3650651256e96f5 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Wed, 17 May 2023 14:33:20 -0600 Subject: [PATCH 23/27] Update localstore call --- packages/core/src/views/account-center/Maximized.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/views/account-center/Maximized.svelte b/packages/core/src/views/account-center/Maximized.svelte index a4012e99d..f391a2903 100644 --- a/packages/core/src/views/account-center/Maximized.svelte +++ b/packages/core/src/views/account-center/Maximized.svelte @@ -44,7 +44,7 @@ validAppChain, BN_PROTECT_RPC_URL ) - setLocalStore(STORAGE_KEYS.PROTECT_ENABLED, true) + setLocalStore(STORAGE_KEYS.PROTECT_ENABLED, 'true') enableTransactionProtection = false } catch (error) { const { code } = error as { code: number } From 3c447391e083f08e5fff996de8dee68031df2241 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Thu, 18 May 2023 11:40:13 -0600 Subject: [PATCH 24/27] Remove localstore check --- packages/core/src/constants.ts | 3 +-- packages/core/src/views/account-center/Maximized.svelte | 7 ++----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/packages/core/src/constants.ts b/packages/core/src/constants.ts index 3872ec168..c3bb7df64 100644 --- a/packages/core/src/constants.ts +++ b/packages/core/src/constants.ts @@ -32,8 +32,7 @@ export const APP_INITIAL_STATE: AppState = { export const STORAGE_KEYS = { TERMS_AGREEMENT: 'onboard.js:agreement', - LAST_CONNECTED_WALLET: 'onboard.js:last_connected_wallet', - PROTECT_ENABLED: 'web3-onboard:protect_enabled' + LAST_CONNECTED_WALLET: 'onboard.js:last_connected_wallet' } export const MOBILE_WINDOW_WIDTH = 768 diff --git a/packages/core/src/views/account-center/Maximized.svelte b/packages/core/src/views/account-center/Maximized.svelte index f391a2903..551832e1d 100644 --- a/packages/core/src/views/account-center/Maximized.svelte +++ b/packages/core/src/views/account-center/Maximized.svelte @@ -16,7 +16,6 @@ SuccessStatusIcon, WalletAppBadge } from '../shared/index.js' - import { getLocalStore, setLocalStore } from '../../utils' import caretLightIcon from '../../icons/caret-light.js' import warningIcon from '../../icons/warning.js' import questionIcon from '../../icons/question.js' @@ -26,7 +25,7 @@ import { configuration } from '../../configuration.js' import SecondaryTokenTable from './SecondaryTokenTable.svelte' import shieldIcon from '../../icons/shield-icon.js' - import { BN_PROTECT_RPC_URL, STORAGE_KEYS } from '../../constants.js' + import { BN_PROTECT_RPC_URL } from '../../constants.js' import { updateChainRPC } from '../../provider.js' import { shareReplay, startWith } from 'rxjs/operators' const accountCenter$ = state @@ -44,7 +43,6 @@ validAppChain, BN_PROTECT_RPC_URL ) - setLocalStore(STORAGE_KEYS.PROTECT_ENABLED, 'true') enableTransactionProtection = false } catch (error) { const { code } = error as { code: number } @@ -54,7 +52,6 @@ const { chains: appChains, accountCenter } = state.get() const { appMetadata } = configuration - const protectEnabled = getLocalStore(STORAGE_KEYS.PROTECT_ENABLED) let disconnectConfirmModal = false let enableTransactionProtection = false let hideWalletRowMenu: () => void @@ -451,7 +448,7 @@
- {#if !$accountCenter$.hideTransactionProtectionBtn && connectedChain.id === '0x1' && !protectEnabled} + {#if !$accountCenter$.hideTransactionProtectionBtn && connectedChain.id === '0x1' }
(enableTransactionProtection = true)} class="protect action-container flex items-center pointer" From e062914ae23ffb03b20342d4616d9fb5a9bbe67b Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Thu, 18 May 2023 17:06:48 -0600 Subject: [PATCH 25/27] Update packages/core/src/views/connect/Index.svelte Co-authored-by: Aaron --- packages/core/src/views/connect/Index.svelte | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/core/src/views/connect/Index.svelte b/packages/core/src/views/connect/Index.svelte index cb674e3f0..31e776da9 100644 --- a/packages/core/src/views/connect/Index.svelte +++ b/packages/core/src/views/connect/Index.svelte @@ -343,7 +343,6 @@ if ( appChain && !secondaryTokens && - appChain && Array.isArray(appChain.secondaryTokens) && appChain.secondaryTokens.length ) { From 7bd94a5b5b69902655b726d59d7544a965ce22ba Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Fri, 19 May 2023 09:36:25 -0600 Subject: [PATCH 26/27] Prettier --- packages/core/src/views/account-center/Maximized.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/views/account-center/Maximized.svelte b/packages/core/src/views/account-center/Maximized.svelte index 551832e1d..15d553b29 100644 --- a/packages/core/src/views/account-center/Maximized.svelte +++ b/packages/core/src/views/account-center/Maximized.svelte @@ -448,7 +448,7 @@
- {#if !$accountCenter$.hideTransactionProtectionBtn && connectedChain.id === '0x1' } + {#if !$accountCenter$.hideTransactionProtectionBtn && connectedChain.id === '0x1'}
(enableTransactionProtection = true)} class="protect action-container flex items-center pointer" From a3ab4bba643aa4e03b38c34b9040345924a0b072 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Fri, 19 May 2023 10:24:03 -0600 Subject: [PATCH 27/27] Remove square brackets from docs --- .../docs/[...1]overview/[...1]introduction/+page.md | 2 +- .../[...1]overview/[...2]contribution-guide/+page.md | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/src/routes/docs/[...1]overview/[...1]introduction/+page.md b/docs/src/routes/docs/[...1]overview/[...1]introduction/+page.md index bc0499cfd..9d054eaec 100644 --- a/docs/src/routes/docs/[...1]overview/[...1]introduction/+page.md +++ b/docs/src/routes/docs/[...1]overview/[...1]introduction/+page.md @@ -51,7 +51,7 @@ web3-onboard supports all EVM networks. Supporting a new network is simply a mat - Moonriver - All other EVM network -### [Optional] Use an API key to fetch real time transaction data, balances & gas +### Optional - Use an API key to fetch real time transaction data, balances & gas Using a Blocknative API key with web3-onboard on the free plan will allow you to gain the benefits of Blocknative balance & transaction services. Blocknative has a free forever plan you can always use. diff --git a/docs/src/routes/docs/[...1]overview/[...2]contribution-guide/+page.md b/docs/src/routes/docs/[...1]overview/[...2]contribution-guide/+page.md index e95b2f374..c2988ccff 100644 --- a/docs/src/routes/docs/[...1]overview/[...2]contribution-guide/+page.md +++ b/docs/src/routes/docs/[...1]overview/[...2]contribution-guide/+page.md @@ -19,7 +19,7 @@ If an issue does not already exist, follow the template instructions to create a Once an issue is created, a Web3 Onboard maintainer will review and respond typically within a few days to share next steps. -## [Pull Requests 🗂️] +## Pull Requests 🗂️ 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. @@ -39,7 +39,7 @@ Example : Adding a new injected wallet to the `injected` package - Example 2 : Bug fix within the `core` package - [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",` -## [How can I add a new wallet? 💳] +## How can I add a new wallet? 💳 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. @@ -57,7 +57,7 @@ Otherwise, if the wallet you are adding requires dependencies and initialization 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. -## [Documentation Contributions 📄] +## Documentation Contributions 📄 If you contribute to the code, you should definitely document appropriately. @@ -71,11 +71,11 @@ PRs for adding/updating a wallet should include a README (new or updated) for th We highly encourage the community to help us improve the web3-onboard docs! If you have any questions don't hesitate to reach out. -## [Feedback 💬] +## Feedback 💬 Did you have trouble integrating? Could the docs be improved? Have a new Feature request? Jump in our [Discord](https://discord.com/invite/KZaBVME) and share your feedback. -## [Support 🤓] +## Support 🤓 For general questions about how to use Web3 Onboard please first check out our [docs](../../overview/introduction.md#features), then head to our [Discord](https://discord.com/invite/KZaBVME) for support from the Blocknative team.