diff --git a/consts/matomo-wallets-events.ts b/consts/matomo-wallets-events.ts index 2028ac3b..5c385c43 100644 --- a/consts/matomo-wallets-events.ts +++ b/consts/matomo-wallets-events.ts @@ -10,7 +10,9 @@ export const enum MATOMO_WALLETS_EVENTS_TYPES { onClickCoin98 = 'onClickCoin98', onConnectCoin98 = 'onConnectCoin98', onClickCoinbase = 'onClickCoinbase', + onClickCoinbaseSmartWallet = 'onClickCoinbaseSmartWallet', onConnectCoinbase = 'onConnectCoinbase', + onConnectCoinbaseSmartWallet = 'onConnectCoinbaseSmartWallet', onClickExodus = 'onClickExodus', onConnectExodus = 'onConnectExodus', onClickImToken = 'onClickImToken', @@ -79,6 +81,16 @@ export const MATOMO_WALLETS_EVENTS: Record< 'Connect Coinbase Wallet wallet', 'eth_widget_connect_coinbase_wallet', ], + [MATOMO_WALLETS_EVENTS_TYPES.onClickCoinbaseSmartWallet]: [ + 'Ethereum_Staking_Widget', + 'Click Coinbase Smart Wallet wallet', + 'eth_widget_click_coinbase_smart_wallet', + ], + [MATOMO_WALLETS_EVENTS_TYPES.onConnectCoinbaseSmartWallet]: [ + 'Ethereum_Staking_Widget', + 'Connect Coinbase Smart Wallet wallet', + 'eth_widget_connect_coinbase_smart_wallet', + ], [MATOMO_WALLETS_EVENTS_TYPES.onClickExodus]: [ 'Ethereum_Staking_Widget', 'Click Exodus wallet', @@ -202,6 +214,9 @@ export const walletsMetrics: Metrics = { brave: getMetricHandler(MATOMO_WALLETS_EVENTS.onClickBrave), coin98: getMetricHandler(MATOMO_WALLETS_EVENTS.onClickCoin98), coinbase: getMetricHandler(MATOMO_WALLETS_EVENTS.onClickCoinbase), + coinbaseSmartWallet: getMetricHandler( + MATOMO_WALLETS_EVENTS.onClickCoinbaseSmartWallet, + ), exodus: getMetricHandler(MATOMO_WALLETS_EVENTS.onClickExodus), imToken: getMetricHandler(MATOMO_WALLETS_EVENTS.onClickImToken), ledgerHID: getMetricHandler(MATOMO_WALLETS_EVENTS.onClickLedger), @@ -223,6 +238,9 @@ export const walletsMetrics: Metrics = { brave: getMetricHandler(MATOMO_WALLETS_EVENTS.onConnectBrave), coin98: getMetricHandler(MATOMO_WALLETS_EVENTS.onConnectCoin98), coinbase: getMetricHandler(MATOMO_WALLETS_EVENTS.onConnectCoinbase), + coinbaseSmartWallet: getMetricHandler( + MATOMO_WALLETS_EVENTS.onConnectCoinbaseSmartWallet, + ), exodus: getMetricHandler(MATOMO_WALLETS_EVENTS.onConnectExodus), imToken: getMetricHandler(MATOMO_WALLETS_EVENTS.onConnectImToken), ledgerHID: getMetricHandler(MATOMO_WALLETS_EVENTS.onConnectLedger), diff --git a/package.json b/package.json index 79c3ddb3..86aa0192 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ "react-hook-form": "^7.45.2", "react-is": "^18.2.0", "react-transition-group": "^4.4.2", - "reef-knot": "5.5.4", + "reef-knot": "5.6.0", "remark": "^13.0.0", "remark-external-links": "^8.0.0", "remark-html": "^13.0.1", diff --git a/yarn.lock b/yarn.lock index cf3a9207..5b5b706d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2904,16 +2904,16 @@ resolved "https://registry.yarnpkg.com/@polka/url/-/url-1.0.0-next.24.tgz#58601079e11784d20f82d0585865bb42305c4df3" integrity sha512-2LuNTFBIO0m7kKIQvvPHN6UE63VjpmL9rnEEaOOaiSPbZK+zUOYIzBAWcED+3XYzhYsd/0mD57VdxAEqqV52CQ== -"@reef-knot/connect-wallet-modal@5.3.3": - version "5.3.3" - resolved "https://registry.yarnpkg.com/@reef-knot/connect-wallet-modal/-/connect-wallet-modal-5.3.3.tgz#a6e4402a93885296f90cd79661282c1b3e9eecdf" - integrity sha512-qiNkPMSygapnIQPLnsGWTomam8dqzLzPCYw0kNCLth1YHqev1eXp68NNuGPHn2TyvA/wBijL2OlxD9MCt0Is7A== +"@reef-knot/connect-wallet-modal@5.4.0": + version "5.4.0" + resolved "https://registry.yarnpkg.com/@reef-knot/connect-wallet-modal/-/connect-wallet-modal-5.4.0.tgz#292e763fb5d3a132c554d9bd64bcb02f55732cc8" + integrity sha512-z9cUTg+P180Bi75v8z69yQhkgHinDuewwC+v0NZJ86FR+O+CZYFLLUJGGfA8IYuz/iLFDkzq7/1ZlfMic5sy3A== dependencies: "@ledgerhq/hw-app-eth" "^6.37.1" "@ledgerhq/hw-transport" "^6.31.0" "@ledgerhq/hw-transport-webhid" "^6.29.0" "@lidofinance/lido-ui" "^3.18.0" - "@reef-knot/wallets-list" "^2.2.2" + "@reef-knot/wallets-list" "^2.3.0" "@types/react" "18.2.45" "@types/react-dom" "18.2.17" @@ -2962,14 +2962,6 @@ resolved "https://registry.yarnpkg.com/@reef-knot/wallet-adapter-ambire/-/wallet-adapter-ambire-2.0.1.tgz#91e137cffa4bc06fd91856edc8eeebe5377ae356" integrity sha512-3Td22/Jf0BLW1Ap+MlOODTZ9iE19Ss3BUCxXlh0+kFyAT9nqoRFCmGHU/RRs/JyVPhZHDpza/OxiCZRnanY+fg== -"@reef-knot/wallet-adapter-binance-wallet@1.0.2": - version "1.0.2" - resolved "https://registry.yarnpkg.com/@reef-knot/wallet-adapter-binance-wallet/-/wallet-adapter-binance-wallet-1.0.2.tgz#2efafe8dc6d0cb0b020da49591bfef8293ff2847" - integrity sha512-LbzqyHsU7/cQjF4XlzTvd6vvBrGqHb/wMupw1UF4/ZfqlxAXfQcDzMv8pdGfnSNbDdTgyUkwKSmCQvhxfDoFmg== - dependencies: - "@binance/w3w-utils" "^1.1.6" - "@binance/w3w-wagmi-connector-v2" "^1.2.3" - "@reef-knot/wallet-adapter-binance-wallet@1.0.3": version "1.0.3" resolved "https://registry.yarnpkg.com/@reef-knot/wallet-adapter-binance-wallet/-/wallet-adapter-binance-wallet-1.0.3.tgz#a8f93273261792db03a47c21f6b3bce2c893ddf6" @@ -2998,10 +2990,15 @@ resolved "https://registry.yarnpkg.com/@reef-knot/wallet-adapter-coin98/-/wallet-adapter-coin98-2.1.0.tgz#d145ac52e3e9dfbb607aa7d3316254bdb5838e3c" integrity sha512-etN3IcWh4Dlox7H4bwff+nRn7vTSBS8WPmqaGQfKhOW7NVAnlMQDjBD5ZO11CGPbwYtJ7dAkRi8A8H5JEeuvGg== -"@reef-knot/wallet-adapter-coinbase@2.1.0": - version "2.1.0" - resolved "https://registry.yarnpkg.com/@reef-knot/wallet-adapter-coinbase/-/wallet-adapter-coinbase-2.1.0.tgz#9edb16889aa777fe90d6bb5582af2a577020f12e" - integrity sha512-AGI21eh6j7NOtTfiYNZk1u9qYIeOedv0iOCOga9p8DDLzEEzXGsr+dHZq39JX4TGk4BjEPAZUifbYf1ZS+ySDg== +"@reef-knot/wallet-adapter-coinbase-smart-wallet@1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@reef-knot/wallet-adapter-coinbase-smart-wallet/-/wallet-adapter-coinbase-smart-wallet-1.0.0.tgz#f3a2cea182059e280845ac9137dfd5cc8fe78302" + integrity sha512-txZteS7ZOBPPr9pqbcEt0uLIOf5CB9imjTD6bu+uFEfpW4aLCdLnwqnhL+Vr1httKhSqGJPKKG8rP6onnp5Egw== + +"@reef-knot/wallet-adapter-coinbase@2.2.0": + version "2.2.0" + resolved "https://registry.yarnpkg.com/@reef-knot/wallet-adapter-coinbase/-/wallet-adapter-coinbase-2.2.0.tgz#b74e77211dc3da5ef279428c119be5c79348e078" + integrity sha512-nJCUHzkPKKtHU6xK4FzzebjYwWdlxhOrHgOjCZMTSOxrOeexImtvS+ray8PtRH/PePlB1aAx/3osE5/JlPAdTA== "@reef-knot/wallet-adapter-dapp-browser-injected@2.0.1": version "2.0.1" @@ -3066,10 +3063,10 @@ "@types/ua-parser-js" "0.7.39" ua-parser-js "1.0.37" -"@reef-knot/wallets-list@2.2.3": - version "2.2.3" - resolved "https://registry.yarnpkg.com/@reef-knot/wallets-list/-/wallets-list-2.2.3.tgz#8f89183622a32e97031222aeba6dd0178e5fbc2a" - integrity sha512-4L9A1AharYM4FxzzN8VFjaR5zRkHbqa80Mp56aw4dR/DJj7VOvbM4MieSvh179FEjs2lFyPz2oanQ+nqiKpu8A== +"@reef-knot/wallets-list@2.3.0", "@reef-knot/wallets-list@^2.3.0": + version "2.3.0" + resolved "https://registry.yarnpkg.com/@reef-knot/wallets-list/-/wallets-list-2.3.0.tgz#066be557d5b26a45954509347ebcf36d2808dacf" + integrity sha512-yZ6EzrvULM7ZSY8iDK6CA+//UbkyID2tLFj69ZHD5JRYn8Pt7ecy2FCxMPfk8Z7KXDhKiT35r4eK33q9VzxfqQ== dependencies: "@reef-knot/wallet-adapter-ambire" "2.0.1" "@reef-knot/wallet-adapter-binance-wallet" "1.0.3" @@ -3077,31 +3074,8 @@ "@reef-knot/wallet-adapter-brave" "2.1.0" "@reef-knot/wallet-adapter-browser-extension" "2.0.1" "@reef-knot/wallet-adapter-coin98" "2.1.0" - "@reef-knot/wallet-adapter-coinbase" "2.1.0" - "@reef-knot/wallet-adapter-dapp-browser-injected" "2.0.1" - "@reef-knot/wallet-adapter-exodus" "2.1.0" - "@reef-knot/wallet-adapter-imtoken" "2.0.1" - "@reef-knot/wallet-adapter-ledger-hid" "3.0.1" - "@reef-knot/wallet-adapter-ledger-live" "3.0.1" - "@reef-knot/wallet-adapter-metamask" "2.1.0" - "@reef-knot/wallet-adapter-okx" "2.1.0" - "@reef-knot/wallet-adapter-safe" "2.0.1" - "@reef-knot/wallet-adapter-trust" "2.1.0" - "@reef-knot/wallet-adapter-walletconnect" "2.0.1" - "@reef-knot/wallet-adapter-xdefi" "2.1.0" - -"@reef-knot/wallets-list@^2.2.2": - version "2.2.2" - resolved "https://registry.yarnpkg.com/@reef-knot/wallets-list/-/wallets-list-2.2.2.tgz#249e99f092bccac6bb8d71d389396b0bb282116f" - integrity sha512-GZvgQOlqH5rReIgRL+qnGbRc26EpmaHxv8gGm8mv7eOcMaXS5f85XDcOb5qaNTp7iHyuD+SPrhe+NLJO1EECwQ== - dependencies: - "@reef-knot/wallet-adapter-ambire" "2.0.1" - "@reef-knot/wallet-adapter-binance-wallet" "1.0.2" - "@reef-knot/wallet-adapter-bitkeep" "2.1.0" - "@reef-knot/wallet-adapter-brave" "2.1.0" - "@reef-knot/wallet-adapter-browser-extension" "2.0.1" - "@reef-knot/wallet-adapter-coin98" "2.1.0" - "@reef-knot/wallet-adapter-coinbase" "2.1.0" + "@reef-knot/wallet-adapter-coinbase" "2.2.0" + "@reef-knot/wallet-adapter-coinbase-smart-wallet" "1.0.0" "@reef-knot/wallet-adapter-dapp-browser-injected" "2.0.1" "@reef-knot/wallet-adapter-exodus" "2.1.0" "@reef-knot/wallet-adapter-imtoken" "2.0.1" @@ -9818,18 +9792,18 @@ redis-parser@^3.0.0: dependencies: redis-errors "^1.0.0" -reef-knot@5.5.4: - version "5.5.4" - resolved "https://registry.yarnpkg.com/reef-knot/-/reef-knot-5.5.4.tgz#dd77cb1f6a0ede01909e6303b8a7751fc67963f0" - integrity sha512-zHPnuTuKOU3ic4W14khX5M3CRcX0NYEItZBTDSFxQ2w9W316h/TlV/HMgM1IeBaWMvPIKXfY/NQRrsupW63vkw== +reef-knot@5.6.0: + version "5.6.0" + resolved "https://registry.yarnpkg.com/reef-knot/-/reef-knot-5.6.0.tgz#da0076d811e83fc7191399ccec7788f1ba5fe16a" + integrity sha512-5JflqvV9nnqUQ+YfgTwW5mZ5ble13Keb3eFSvfgH4VLBoCAUfezrD+9WtVtSCXx/ozEoNPpvE5vNGjrM9GZZSg== dependencies: - "@reef-knot/connect-wallet-modal" "5.3.3" + "@reef-knot/connect-wallet-modal" "5.4.0" "@reef-knot/core-react" "4.2.1" "@reef-knot/ledger-connector" "4.1.0" "@reef-knot/types" "2.1.0" "@reef-knot/ui-react" "2.1.3" "@reef-knot/wallets-helpers" "2.1.0" - "@reef-knot/wallets-list" "2.2.3" + "@reef-knot/wallets-list" "2.3.0" "@reef-knot/web3-react" "4.0.1" reflect.getprototypeof@^1.0.4: