From 3b9df78a6bbe8fefb5567bcb7e39fae44837ab9d Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Wed, 30 Aug 2023 09:28:35 -0500 Subject: [PATCH 01/16] Update protect endpoint to boost, bump versions of core, react and vue --- packages/core/package.json | 2 +- packages/core/src/constants.ts | 2 +- packages/demo/package.json | 2 +- packages/react/package.json | 4 ++-- packages/vue/package.json | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/core/package.json b/packages/core/package.json index 3237e2e34..ac1aacf36 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/core", - "version": "2.21.0", + "version": "2.21.1-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 e4a0e7989..eeb5f66ce 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/protect' +export const BN_PROTECT_RPC_URL = 'https://rpc.blocknative.com/boost' diff --git a/packages/demo/package.json b/packages/demo/package.json index 192ac6327..d96b3e4a1 100644 --- a/packages/demo/package.json +++ b/packages/demo/package.json @@ -31,7 +31,7 @@ "@web3-onboard/blocto": "2.0.0", "@web3-onboard/cede-store": "^2.1.0", "@web3-onboard/coinbase": "^2.2.5", - "@web3-onboard/core": "^2.21.0", + "@web3-onboard/core": "^2.21.1-alpha.1", "@web3-onboard/dcent": "^2.2.7", "@web3-onboard/enkrypt": "^2.0.3", "@web3-onboard/fortmatic": "^2.0.18", diff --git a/packages/react/package.json b/packages/react/package.json index 07e0315c7..046ae3b2f 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/react", - "version": "2.8.11", + "version": "2.8.12-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", @@ -63,7 +63,7 @@ }, "dependencies": { "@web3-onboard/common": "^2.3.3", - "@web3-onboard/core": "^2.21.0", + "@web3-onboard/core": "^2.21.1-alpha.1", "use-sync-external-store": "1.0.0" }, "peerDependencies": { diff --git a/packages/vue/package.json b/packages/vue/package.json index d53dbf701..3c34086e0 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/vue", - "version": "2.7.10", + "version": "2.7.11-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", @@ -63,7 +63,7 @@ "@vueuse/core": "^8.4.2", "@vueuse/rxjs": "^8.2.0", "@web3-onboard/common": "^2.3.3", - "@web3-onboard/core": "^2.21.0", + "@web3-onboard/core": "^2.21.1-alpha.1", "vue-demi": "^0.12.4" }, "peerDependencies": { From a57dee65409dc07436be85a4ee313fbf55d06284 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Wed, 30 Aug 2023 09:34:29 -0500 Subject: [PATCH 02/16] Update docs --- docs/src/routes/docs/[...3]modules/[...1]core/+page.md | 1 + packages/core/README.md | 1 + 2 files changed, 2 insertions(+) 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 9de1946b5..da7faf984 100644 --- a/docs/src/routes/docs/[...3]modules/[...1]core/+page.md +++ b/docs/src/routes/docs/[...3]modules/[...1]core/+page.md @@ -164,6 +164,7 @@ type 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 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) + protectedRpcUrl?: string //An optional protected RPC URL - Defaults to Blocknative's private and protected RPC to allow users to update the chain RPC within their wallet, specifically for private RPCs that protect user transactions } interface SecondaryTokens { diff --git a/packages/core/README.md b/packages/core/README.md index ee5e30996..72b3e0f17 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -148,6 +148,7 @@ type 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 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) + protectedRpcUrl?: string //An optional protected RPC URL - Defaults to Blocknative's private and protected RPC to allow users to update the chain RPC within their wallet, specifically for private RPCs that protect user transactions } interface SecondaryTokens { /** From ab6a21758c2a6a0127705247443d0a898b880137 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Wed, 30 Aug 2023 11:40:50 -0600 Subject: [PATCH 03/16] Update packages/core/README.md --- packages/core/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/README.md b/packages/core/README.md index 72b3e0f17..d70ad0540 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -148,7 +148,7 @@ type 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 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) - protectedRpcUrl?: string //An optional protected RPC URL - Defaults to Blocknative's private and protected RPC to allow users to update the chain RPC within their wallet, specifically for private RPCs that protect user transactions + protectedRpcUrl?: string //An optional protected RPC URL - Defaults to Blocknative's private RPC aggregator to allow users to update the chain RPC within their wallet, specifically for private RPCs that protect user transactions. More information can be founr at `https://docs.blocknative.com/blocknative-mev-protection/blocknative-protect-rpc-endpoint` } interface SecondaryTokens { /** From c70e785916b95ab1db2e0920f56b8193b7a8644d Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Wed, 30 Aug 2023 11:41:07 -0600 Subject: [PATCH 04/16] Update docs/src/routes/docs/[...3]modules/[...1]core/+page.md --- docs/src/routes/docs/[...3]modules/[...1]core/+page.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 da7faf984..952ef4405 100644 --- a/docs/src/routes/docs/[...3]modules/[...1]core/+page.md +++ b/docs/src/routes/docs/[...3]modules/[...1]core/+page.md @@ -164,7 +164,7 @@ type 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 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) - protectedRpcUrl?: string //An optional protected RPC URL - Defaults to Blocknative's private and protected RPC to allow users to update the chain RPC within their wallet, specifically for private RPCs that protect user transactions + protectedRpcUrl?: string //An optional protected RPC URL - Defaults to Blocknative's private RPC aggregator to allow users to update the chain RPC within their wallet, specifically for private RPCs that protect user transactions. More information can be founr at `https://docs.blocknative.com/blocknative-mev-protection/blocknative-protect-rpc-endpoint` } interface SecondaryTokens { From d23135e65a91523bfcb799cebea46515b0b41138 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Thu, 31 Aug 2023 09:58:10 -0500 Subject: [PATCH 05/16] Updating docs further --- .../docs/[...3]modules/[...1]core/+page.md | 2 +- packages/core/README.md | 2 +- packages/core/src/i18n/en.json | 3 +- packages/core/src/types.ts | 7 ++ .../account-center/AccountCenterPanel.svelte | 13 ++- .../EnableTransactionProtection.svelte | 104 ------------------ 6 files changed, 18 insertions(+), 113 deletions(-) delete mode 100644 packages/core/src/views/account-center/EnableTransactionProtection.svelte 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 952ef4405..6487f41e1 100644 --- a/docs/src/routes/docs/[...3]modules/[...1]core/+page.md +++ b/docs/src/routes/docs/[...3]modules/[...1]core/+page.md @@ -164,7 +164,7 @@ type 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 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) - protectedRpcUrl?: string //An optional protected RPC URL - Defaults to Blocknative's private RPC aggregator to allow users to update the chain RPC within their wallet, specifically for private RPCs that protect user transactions. More information can be founr at `https://docs.blocknative.com/blocknative-mev-protection/blocknative-protect-rpc-endpoint` + protectedRpcUrl?: string //An optional protected RPC URL - Defaults to Blocknative's private RPC aggregator to allow users to update the chain RPC within their wallet, specifically for private RPCs that protect user transactions. More information can be founr at `https://docs.blocknative.com/blocknative-mev-protection/transaction-boost-alpha` } interface SecondaryTokens { diff --git a/packages/core/README.md b/packages/core/README.md index d70ad0540..eb6d1eecf 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -148,7 +148,7 @@ type 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 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) - protectedRpcUrl?: string //An optional protected RPC URL - Defaults to Blocknative's private RPC aggregator to allow users to update the chain RPC within their wallet, specifically for private RPCs that protect user transactions. More information can be founr at `https://docs.blocknative.com/blocknative-mev-protection/blocknative-protect-rpc-endpoint` + protectedRpcUrl?: string //An optional protected RPC URL - Defaults to Blocknative's private RPC aggregator to allow users to update the chain RPC within their wallet, specifically for private RPCs that protect user transactions. More information can be founr at `https://docs.blocknative.com/blocknative-mev-protection/transaction-boost-alpha` } interface SecondaryTokens { /** diff --git a/packages/core/src/i18n/en.json b/packages/core/src/i18n/en.json index a36ccf079..c7184c443 100644 --- a/packages/core/src/i18n/en.json +++ b/packages/core/src/i18n/en.json @@ -62,7 +62,8 @@ }, "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.", + "description": "Protect RPC endpoints hide your transaction from front-running and sandwich bots.", + "link": "Learn more about protecting your transactions.", "enable": "Enable", "dismiss": "Dismiss" } diff --git a/packages/core/src/types.ts b/packages/core/src/types.ts index 533d6ad5a..8bcb4e396 100644 --- a/packages/core/src/types.ts +++ b/packages/core/src/types.ts @@ -281,6 +281,13 @@ export type AccountCenter = { * Can be set as a global for Account Center or per interface (desktop/mobile) */ hideTransactionProtectionBtn?: boolean + /** + * defaults to + * `docs.blocknative.com/blocknative-mev-protection/transaction-boost-alpha` + * Use this property to override the default link to give users + * more information about transaction protection and the RPC be set + */ + transactionProtectionInfoLink?: string position?: AccountCenterPosition expanded?: boolean minimal?: boolean diff --git a/packages/core/src/views/account-center/AccountCenterPanel.svelte b/packages/core/src/views/account-center/AccountCenterPanel.svelte index 1d60454ed..58487dfe6 100644 --- a/packages/core/src/views/account-center/AccountCenterPanel.svelte +++ b/packages/core/src/views/account-center/AccountCenterPanel.svelte @@ -2,6 +2,8 @@ import { _ } from 'svelte-i18n' import { fly } from 'svelte/transition' import { quartOut } from 'svelte/easing' + import { shareReplay, startWith } from 'rxjs' + import { wallets$ } from '../../streams.js' import en from '../../i18n/en.json' import WalletRow from './WalletRow.svelte' @@ -22,10 +24,9 @@ import shieldIcon from '../../icons/shield-icon.js' import { poweredByBlocknative } from '../../icons/index.js' import DisconnectAllConfirm from './DisconnectAllConfirm.svelte' - import EnableTransactionProtection from './EnableTransactionProtection.svelte' + import EnableTransactionProtectionModal from './EnableTransactionProtectionModal.svelte' import { configuration } from '../../configuration.js' import SecondaryTokenTable from './SecondaryTokenTable.svelte' - import { shareReplay, startWith } from 'rxjs' import { updateChainRPC } from '../../provider.js' import { BN_PROTECT_RPC_URL } from '../../constants.js' @@ -75,7 +76,7 @@ await updateChainRPC( primaryWallet.provider, validAppChain, - BN_PROTECT_RPC_URL + validAppChain?.protectedRpcUrl || BN_PROTECT_RPC_URL ) enableTransactionProtection = false } catch (error) { @@ -328,7 +329,7 @@ /> {/if} {#if enableTransactionProtection} - (enableTransactionProtection = false)} onEnable={() => enableProtectionRPC()} /> @@ -457,8 +458,8 @@ - - {#if !$accountCenter$.hideTransactionProtectionBtn && primaryWalletOnMainnet} + + {#if !$accountCenter$.hideTransactionProtectionBtn && (primaryWalletOnMainnet || validAppChain?.protectedRpcUrl)}
(enableTransactionProtection = true)} class="protect action-container flex items-center pointer" diff --git a/packages/core/src/views/account-center/EnableTransactionProtection.svelte b/packages/core/src/views/account-center/EnableTransactionProtection.svelte deleted file mode 100644 index 642beaa91..000000000 --- a/packages/core/src/views/account-center/EnableTransactionProtection.svelte +++ /dev/null @@ -1,104 +0,0 @@ - - - - - -
-
- {@html shieldIcon} -
- -
-
- {$_('modals.confirmTransactionProtection.heading', { - default: en.modals.confirmTransactionProtection.heading - })} -
-
- {$_('modals.confirmTransactionProtection.description')} -
-
- -
- - -
-
-
From bbd0bb82ea82ba40d3c997fc991ae2b5054a0e97 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Thu, 31 Aug 2023 09:58:24 -0500 Subject: [PATCH 06/16] Rename modale component --- .../EnableTransactionProtectionModal.svelte | 116 ++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 packages/core/src/views/account-center/EnableTransactionProtectionModal.svelte diff --git a/packages/core/src/views/account-center/EnableTransactionProtectionModal.svelte b/packages/core/src/views/account-center/EnableTransactionProtectionModal.svelte new file mode 100644 index 000000000..ef8bf725f --- /dev/null +++ b/packages/core/src/views/account-center/EnableTransactionProtectionModal.svelte @@ -0,0 +1,116 @@ + + + + + +
+
+ {@html shieldIcon} +
+ +
+
+ {$_('modals.confirmTransactionProtection.heading', { + default: en.modals.confirmTransactionProtection.heading + })} +
+ + +
+ +
+ + +
+
+
From 3e90b90305e3ec7c5752b8f814d0c4f532d7d5e3 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Thu, 31 Aug 2023 09:59:36 -0500 Subject: [PATCH 07/16] More docs updates --- .../docs/[...3]modules/[...1]core/+page.md | 7 +++++++ packages/core/README.md | 21 +++++++++++++++++++ packages/core/src/types.ts | 6 +++--- 3 files changed, 31 insertions(+), 3 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 6487f41e1..2a9b43a9e 100644 --- a/docs/src/routes/docs/[...3]modules/[...1]core/+page.md +++ b/docs/src/routes/docs/[...3]modules/[...1]core/+page.md @@ -416,6 +416,13 @@ type AccountCenter = { * Can be set as a global for Account Center or per interface (desktop/mobile) */ hideTransactionProtectionBtn?: boolean + /** + * defaults to + * `docs.blocknative.com/blocknative-mev-protection/transaction-boost-alpha` + * Use this property to override the default link to give users + * more information about transaction protection and the RPC be set + */ + transactionProtectionInfoLink?: string /** * @deprecated Use top level containerElements property * with the accountCenter prop set to the desired container El. See documentation below diff --git a/packages/core/README.md b/packages/core/README.md index eb6d1eecf..aab251351 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -364,6 +364,20 @@ 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 + /** + * defaults to + * `docs.blocknative.com/blocknative-mev-protection/transaction-boost-alpha` + * Use this property to override the default link to give users + * more information about transaction protection and the RPC be set + */ + transactionProtectionInfoLink?: string /** * @deprecated Use top level containerElements property @@ -382,6 +396,13 @@ type AccountCenterOptions = { * Can be set as a global for Account Center or per interface (desktop/mobile) */ hideTransactionProtectionBtn?: boolean + /** + * defaults to + * `docs.blocknative.com/blocknative-mev-protection/transaction-boost-alpha` + * Use this property to override the default link to give users + * more information about transaction protection and the RPC be set + */ + transactionProtectionInfoLink?: string } type AccountCenterPosition = diff --git a/packages/core/src/types.ts b/packages/core/src/types.ts index 8bcb4e396..debb16e61 100644 --- a/packages/core/src/types.ts +++ b/packages/core/src/types.ts @@ -249,7 +249,7 @@ export type ConnectModalOptions = { */ removeWhereIsMyWalletWarning?: boolean /** - * Hide the "I don't have a wallet" link displayed + * Hide the "I don't have a wallet" link displayed * on the left panel of the connect modal */ removeIDontHaveAWalletInfoLink?: boolean @@ -281,8 +281,8 @@ export type AccountCenter = { * Can be set as a global for Account Center or per interface (desktop/mobile) */ hideTransactionProtectionBtn?: boolean - /** - * defaults to + /** + * defaults to * `docs.blocknative.com/blocknative-mev-protection/transaction-boost-alpha` * Use this property to override the default link to give users * more information about transaction protection and the RPC be set From ab74db872e57eb6bcb85180faa03c834427015af Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Thu, 31 Aug 2023 10:11:25 -0500 Subject: [PATCH 08/16] Add configurable info link for prtoect modal --- packages/core/src/constants.ts | 3 ++- packages/core/src/validation.ts | 4 +++- .../core/src/views/account-center/AccountCenterPanel.svelte | 6 ++++-- .../account-center/EnableTransactionProtectionModal.svelte | 4 ++-- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/packages/core/src/constants.ts b/packages/core/src/constants.ts index eeb5f66ce..37bef5ba4 100644 --- a/packages/core/src/constants.ts +++ b/packages/core/src/constants.ts @@ -37,4 +37,5 @@ export const STORAGE_KEYS = { export const MOBILE_WINDOW_WIDTH = 768 -export const BN_PROTECT_RPC_URL = 'https://rpc.blocknative.com/boost' +export const BN_BOOST_RPC_URL = 'https://rpc.blocknative.com/boost' +export const BN_BOOST_INFO_URL = 'https://docs.blocknative.com/blocknative-mev-protection/transaction-boost-alpha' diff --git a/packages/core/src/validation.ts b/packages/core/src/validation.ts index f60456501..1a3bcf31c 100644 --- a/packages/core/src/validation.ts +++ b/packages/core/src/validation.ts @@ -183,7 +183,8 @@ const accountCenterInitOptions = Joi.object({ position: commonPositions, minimal: Joi.boolean(), containerElement: Joi.string(), - hideTransactionProtectionBtn: Joi.boolean() + hideTransactionProtectionBtn: Joi.boolean(), + transactionProtectionInfoLink: Joi.boolean() }) const accountCenter = Joi.object({ @@ -192,6 +193,7 @@ const accountCenter = Joi.object({ expanded: Joi.boolean(), minimal: Joi.boolean(), hideTransactionProtectionBtn: Joi.boolean(), + transactionProtectionInfoLink: Joi.boolean(), containerElement: Joi.string() }) diff --git a/packages/core/src/views/account-center/AccountCenterPanel.svelte b/packages/core/src/views/account-center/AccountCenterPanel.svelte index 58487dfe6..b9b882463 100644 --- a/packages/core/src/views/account-center/AccountCenterPanel.svelte +++ b/packages/core/src/views/account-center/AccountCenterPanel.svelte @@ -28,7 +28,7 @@ import { configuration } from '../../configuration.js' import SecondaryTokenTable from './SecondaryTokenTable.svelte' import { updateChainRPC } from '../../provider.js' - import { BN_PROTECT_RPC_URL } from '../../constants.js' + import { BN_BOOST_RPC_URL, BN_BOOST_INFO_URL } from '../../constants.js' export let expanded: boolean @@ -76,7 +76,7 @@ await updateChainRPC( primaryWallet.provider, validAppChain, - validAppChain?.protectedRpcUrl || BN_PROTECT_RPC_URL + validAppChain?.protectedRpcUrl || BN_BOOST_RPC_URL ) enableTransactionProtection = false } catch (error) { @@ -332,6 +332,8 @@ (enableTransactionProtection = false)} onEnable={() => enableProtectionRPC()} + transactionProtectionInfoLink={$accountCenter$.transactionProtectionInfoLink || + BN_BOOST_INFO_URL} /> {/if} diff --git a/packages/core/src/views/account-center/EnableTransactionProtectionModal.svelte b/packages/core/src/views/account-center/EnableTransactionProtectionModal.svelte index ef8bf725f..d2ca87ae2 100644 --- a/packages/core/src/views/account-center/EnableTransactionProtectionModal.svelte +++ b/packages/core/src/views/account-center/EnableTransactionProtectionModal.svelte @@ -6,6 +6,7 @@ export let onEnable: () => void export let onDismiss: () => void + export let transactionProtectionInfoLink: string