Skip to content

Commit 70ca28d

Browse files
Merge pull request #545 from blocknative/release/1.25.0
Release 1.25.0
2 parents 8f4e1bd + 8b75db6 commit 70ca28d

File tree

5 files changed

+52
-74
lines changed

5 files changed

+52
-74
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bnc-onboard",
3-
"version": "1.24.0",
3+
"version": "1.25.0",
44
"description": "Onboard users to web3 by allowing them to select a wallet, get that wallet ready to transact and have access to synced wallet state.",
55
"keywords": [
66
"ethereum",
@@ -72,7 +72,7 @@
7272
"prettier-plugin-svelte": "^2.2.0",
7373
"regenerator-runtime": "^0.13.7",
7474
"trezor-connect": "^8.1.9",
75-
"walletlink": "^2.0.2",
75+
"walletlink": "^2.1.0",
7676
"web3-provider-engine": "^15.0.4"
7777
}
7878
}

src/modules/select/wallet-icons/icon-coinbase.ts

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,7 @@
11
const coinbaseIcon = `
2-
<svg width="40" height="40" viewBox="0 0 383 383" fill="none" xmlns="http://www.w3.org/2000/svg">
3-
<g clip-path="url(#clip0)">
4-
<g filter="url(#filter0_dd)">
5-
<path d="M0.998047 0.572266L382.78 0.572266V382.354H0.998047L0.998047 0.572266Z" fill="url(#paint0_linear)"/>
6-
<path fill-rule="evenodd" clip-rule="evenodd" d="M59.1074 191.572C59.1074 264.966 118.605 324.463 191.998 324.463C265.392 324.463 324.889 264.966 324.889 191.572C324.889 118.179 265.392 58.6816 191.998 58.6816C118.605 58.6816 59.1074 118.179 59.1074 191.572ZM158.037 148.752C153.144 148.752 149.178 152.718 149.178 157.611V225.533C149.178 230.426 153.144 234.393 158.037 234.393H225.959C230.852 234.393 234.818 230.426 234.818 225.533V157.611C234.818 152.718 230.852 148.752 225.959 148.752H158.037Z" fill="white"/>
7-
</g>
8-
</g>
9-
<defs>
10-
<filter id="filter0_dd" x="-23.002" y="-7.42773" width="429.782" height="429.782" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
11-
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
12-
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
13-
<feOffset dy="16"/>
14-
<feGaussianBlur stdDeviation="12"/>
15-
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"/>
16-
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/>
17-
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
18-
<feOffset/>
19-
<feGaussianBlur stdDeviation="4"/>
20-
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0"/>
21-
<feBlend mode="normal" in2="effect1_dropShadow" result="effect2_dropShadow"/>
22-
<feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow" result="shape"/>
23-
</filter>
24-
<linearGradient id="paint0_linear" x1="191.889" y1="0.572266" x2="191.889" y2="382.354" gradientUnits="userSpaceOnUse">
25-
<stop stop-color="#2E66F8"/>
26-
<stop offset="1" stop-color="#124ADB"/>
27-
</linearGradient>
28-
<clipPath id="clip0">
29-
<rect width="381.782" height="381.782" fill="white" transform="translate(0.998047 0.572266)"/>
30-
</clipPath>
31-
</defs>
2+
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
3+
<path d="M20 40C31.0457 40 40 31.0457 40 20C40 8.9543 31.0457 0 20 0C8.9543 0 0 8.9543 0 20C0 31.0457 8.9543 40 20 40Z" fill="#1652F0"/>
4+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.45508 20.0006C5.45508 28.0338 11.9673 34.546 20.0006 34.546C28.0338 34.546 34.546 28.0338 34.546 20.0006C34.546 11.9673 28.0338 5.45508 20.0006 5.45508C11.9673 5.45508 5.45508 11.9673 5.45508 20.0006ZM17.3137 15.3145C16.2091 15.3145 15.3137 16.2099 15.3137 17.3145V22.6882C15.3137 23.7928 16.2091 24.6882 17.3137 24.6882H22.6874C23.792 24.6882 24.6874 23.7928 24.6874 22.6882V17.3145C24.6874 16.2099 23.792 15.3145 22.6874 15.3145H17.3137Z" fill="white"/>
325
</svg>
336
`
347

src/modules/select/wallets/coinbase.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function coinbase(options: CommonWalletOptions): WalletModule {
77
const { preferred, label, iconSrc, svg } = options
88

99
return {
10-
name: label || 'Coinbase',
10+
name: label || 'Coinbase Wallet',
1111
iconSrc,
1212
svg: svg || coinbaseIcon,
1313
wallet: async (helpers: Helpers) => {

src/modules/select/wallets/wallet-link.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function walletLink(
1717
} = options
1818

1919
return {
20-
name: label || 'WalletLink',
20+
name: label || 'Coinbase Wallet',
2121
svg: svg || coinbaseIcon,
2222
iconSrc,
2323
wallet: async (helpers: Helpers) => {

yarn.lock

Lines changed: 45 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,7 +1238,7 @@
12381238
resolved "https://registry.yarnpkg.com/@ledgerhq/logs/-/logs-5.21.0.tgz#19629222e44b4d312e232c2dfbe0d067ecc12830"
12391239
integrity sha512-eyPXrKfQ+HSLcITB5MdSWhXlImE2qKWTLT2u6l+a9wiCZl5yimSqn0uC5evxaP0McKOW0wSntgfj+gOoKv+Paw==
12401240

1241-
"@metamask/safe-event-emitter@^2.0.0":
1241+
"@metamask/safe-event-emitter@2.0.0", "@metamask/safe-event-emitter@^2.0.0":
12421242
version "2.0.0"
12431243
resolved "https://registry.yarnpkg.com/@metamask/safe-event-emitter/-/safe-event-emitter-2.0.0.tgz#af577b477c683fad17c619a78208cede06f9605c"
12441244
integrity sha512-/kSXhY692qiV1MXu6EeOZvg5nECLclxNXcKCxJ3cXQgYuRymRHpdx/t7JXfsK+JLjwA1e1c1/SBrlQYpusC29Q==
@@ -2928,7 +2928,7 @@ esutils@^2.0.2:
29282928
resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64"
29292929
integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==
29302930

2931-
eth-block-tracker@^4.4.2:
2931+
eth-block-tracker@4.4.3, eth-block-tracker@^4.4.2:
29322932
version "4.4.3"
29332933
resolved "https://registry.yarnpkg.com/eth-block-tracker/-/eth-block-tracker-4.4.3.tgz#766a0a0eb4a52c867a28328e9ae21353812cf626"
29342934
integrity sha512-A8tG4Z4iNg4mw5tP1Vung9N9IjgMNqpiMoJ/FouSFwNCGHv2X0mmOYwtQOJzki6XN7r7Tyo01S29p7b224I4jw==
@@ -2954,6 +2954,18 @@ eth-json-rpc-errors@^2.0.2:
29542954
dependencies:
29552955
fast-safe-stringify "^2.0.6"
29562956

2957+
eth-json-rpc-filters@4.2.2, eth-json-rpc-filters@^4.2.1:
2958+
version "4.2.2"
2959+
resolved "https://registry.yarnpkg.com/eth-json-rpc-filters/-/eth-json-rpc-filters-4.2.2.tgz#eb35e1dfe9357ace8a8908e7daee80b2cd60a10d"
2960+
integrity sha512-DGtqpLU7bBg63wPMWg1sCpkKCf57dJ+hj/k3zF26anXMzkmtSBDExL8IhUu7LUd34f0Zsce3PYNO2vV2GaTzaw==
2961+
dependencies:
2962+
"@metamask/safe-event-emitter" "^2.0.0"
2963+
async-mutex "^0.2.6"
2964+
eth-json-rpc-middleware "^6.0.0"
2965+
eth-query "^2.1.2"
2966+
json-rpc-engine "^6.1.0"
2967+
pify "^5.0.0"
2968+
29572969
eth-json-rpc-filters@^4.1.1:
29582970
version "4.1.1"
29592971
resolved "https://registry.yarnpkg.com/eth-json-rpc-filters/-/eth-json-rpc-filters-4.1.1.tgz#15277c66790236d85f798f4d7dc6bab99a798cd2"
@@ -2966,18 +2978,6 @@ eth-json-rpc-filters@^4.1.1:
29662978
lodash.flatmap "^4.5.0"
29672979
safe-event-emitter "^1.0.1"
29682980

2969-
eth-json-rpc-filters@^4.2.1:
2970-
version "4.2.2"
2971-
resolved "https://registry.yarnpkg.com/eth-json-rpc-filters/-/eth-json-rpc-filters-4.2.2.tgz#eb35e1dfe9357ace8a8908e7daee80b2cd60a10d"
2972-
integrity sha512-DGtqpLU7bBg63wPMWg1sCpkKCf57dJ+hj/k3zF26anXMzkmtSBDExL8IhUu7LUd34f0Zsce3PYNO2vV2GaTzaw==
2973-
dependencies:
2974-
"@metamask/safe-event-emitter" "^2.0.0"
2975-
async-mutex "^0.2.6"
2976-
eth-json-rpc-middleware "^6.0.0"
2977-
eth-query "^2.1.2"
2978-
json-rpc-engine "^6.1.0"
2979-
pify "^5.0.0"
2980-
29812981
eth-json-rpc-infura@^4.0.1:
29822982
version "4.0.2"
29832983
resolved "https://registry.yarnpkg.com/eth-json-rpc-infura/-/eth-json-rpc-infura-4.0.2.tgz#8af1a1a2e9a0a82aaa302bbc96fb1a4c15d69b83"
@@ -3080,20 +3080,20 @@ eth-query@^2.1.0, eth-query@^2.1.2:
30803080
json-rpc-random-id "^1.0.0"
30813081
xtend "^4.0.1"
30823082

3083+
eth-rpc-errors@4.0.2, eth-rpc-errors@^4.0.2:
3084+
version "4.0.2"
3085+
resolved "https://registry.yarnpkg.com/eth-rpc-errors/-/eth-rpc-errors-4.0.2.tgz#11bc164e25237a679061ac05b7da7537b673d3b7"
3086+
integrity sha512-n+Re6Gu8XGyfFy1it0AwbD1x0MUzspQs0D5UiPs1fFPCr6WAwZM+vbIhXheBFrpgosqN9bs5PqlB4Q61U/QytQ==
3087+
dependencies:
3088+
fast-safe-stringify "^2.0.6"
3089+
30833090
eth-rpc-errors@^3.0.0:
30843091
version "3.0.0"
30853092
resolved "https://registry.yarnpkg.com/eth-rpc-errors/-/eth-rpc-errors-3.0.0.tgz#d7b22653c70dbf9defd4ef490fd08fe70608ca10"
30863093
integrity sha512-iPPNHPrLwUlR9xCSYm7HHQjWBasor3+KZfRvwEWxMz3ca0yqnlBeJrnyphkGIXZ4J7AMAaOLmwy4AWhnxOiLxg==
30873094
dependencies:
30883095
fast-safe-stringify "^2.0.6"
30893096

3090-
eth-rpc-errors@^4.0.2:
3091-
version "4.0.2"
3092-
resolved "https://registry.yarnpkg.com/eth-rpc-errors/-/eth-rpc-errors-4.0.2.tgz#11bc164e25237a679061ac05b7da7537b673d3b7"
3093-
integrity sha512-n+Re6Gu8XGyfFy1it0AwbD1x0MUzspQs0D5UiPs1fFPCr6WAwZM+vbIhXheBFrpgosqN9bs5PqlB4Q61U/QytQ==
3094-
dependencies:
3095-
fast-safe-stringify "^2.0.6"
3096-
30973097
eth-sig-util@^1.4.2:
30983098
version "1.4.2"
30993099
resolved "https://registry.yarnpkg.com/eth-sig-util/-/eth-sig-util-1.4.2.tgz#8d958202c7edbaae839707fba6f09ff327606210"
@@ -4297,6 +4297,14 @@ json-parse-better-errors@^1.0.1:
42974297
resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9"
42984298
integrity sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==
42994299

4300+
json-rpc-engine@6.1.0, json-rpc-engine@^6.1.0:
4301+
version "6.1.0"
4302+
resolved "https://registry.yarnpkg.com/json-rpc-engine/-/json-rpc-engine-6.1.0.tgz#bf5ff7d029e1c1bf20cb6c0e9f348dcd8be5a393"
4303+
integrity sha512-NEdLrtrq1jUZyfjkr9OCz9EzCNhnRyWtt1PAnvnhwy6e8XETS0Dtc+ZNCO2gvuAoKsIn2+vCSowXTYE4CkgnAQ==
4304+
dependencies:
4305+
"@metamask/safe-event-emitter" "^2.0.0"
4306+
eth-rpc-errors "^4.0.2"
4307+
43004308
json-rpc-engine@^5.1.3:
43014309
version "5.3.0"
43024310
resolved "https://registry.yarnpkg.com/json-rpc-engine/-/json-rpc-engine-5.3.0.tgz#7dc7291766b28766ebda33eb6d3f4c6301c44ff4"
@@ -4313,14 +4321,6 @@ json-rpc-engine@^5.3.0:
43134321
eth-rpc-errors "^3.0.0"
43144322
safe-event-emitter "^1.0.1"
43154323

4316-
json-rpc-engine@^6.1.0:
4317-
version "6.1.0"
4318-
resolved "https://registry.yarnpkg.com/json-rpc-engine/-/json-rpc-engine-6.1.0.tgz#bf5ff7d029e1c1bf20cb6c0e9f348dcd8be5a393"
4319-
integrity sha512-NEdLrtrq1jUZyfjkr9OCz9EzCNhnRyWtt1PAnvnhwy6e8XETS0Dtc+ZNCO2gvuAoKsIn2+vCSowXTYE4CkgnAQ==
4320-
dependencies:
4321-
"@metamask/safe-event-emitter" "^2.0.0"
4322-
eth-rpc-errors "^4.0.2"
4323-
43244324
json-rpc-middleware-stream@^3.0.0:
43254325
version "3.0.0"
43264326
resolved "https://registry.yarnpkg.com/json-rpc-middleware-stream/-/json-rpc-middleware-stream-3.0.0.tgz#8540331d884f36b9e0ad31054cc68ac6b5a89b52"
@@ -5211,10 +5211,10 @@ preact@10.4.1:
52115211
resolved "https://registry.yarnpkg.com/preact/-/preact-10.4.1.tgz#9b3ba020547673a231c6cf16f0fbaef0e8863431"
52125212
integrity sha512-WKrRpCSwL2t3tpOOGhf2WfTpcmbpxaWtDbdJdKdjd0aEiTkvOmS4NBkG6kzlaAHI9AkQ3iVqbFWM3Ei7mZ4o1Q==
52135213

5214-
preact@^10.3.3:
5215-
version "10.4.6"
5216-
resolved "https://registry.yarnpkg.com/preact/-/preact-10.4.6.tgz#86cc43396e4bdd755726a2b4b1f0529e78067cd3"
5217-
integrity sha512-80WJfXH53yyINig5Wza/8MD9n4lMg9G6aN00ws0ptsAaY/Fu/M7xW4zICf7OLfocVltxS30wvNQ8oIbUyZS1tw==
5214+
preact@^10.5.9:
5215+
version "10.5.13"
5216+
resolved "https://registry.yarnpkg.com/preact/-/preact-10.5.13.tgz#85f6c9197ecd736ce8e3bec044d08fd1330fa019"
5217+
integrity sha512-q/vlKIGNwzTLu+jCcvywgGrt+H/1P/oIRSD6mV4ln3hmlC+Aa34C7yfPI4+5bzW8pONyVXYS7SvXosy2dKKtWQ==
52185218

52195219
precond@0.2:
52205220
version "0.2.3"
@@ -5762,7 +5762,7 @@ rustbn.js@~0.2.0:
57625762
resolved "https://registry.yarnpkg.com/rustbn.js/-/rustbn.js-0.2.0.tgz#8082cb886e707155fd1cb6f23bd591ab8d55d0ca"
57635763
integrity sha512-4VlvkRUuCJvr2J6Y0ImW7NvTCriMi7ErOAqWk1y69vAdoNIzCF3yPmgeNzx+RQTLEDFq5sHfscn1MwHxP9hNfA==
57645764

5765-
rxjs@^6.5.4, rxjs@^6.6.0:
5765+
rxjs@^6.6.0:
57665766
version "6.6.2"
57675767
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.2.tgz#8096a7ac03f2cc4fe5860ef6e572810d9e01c0d2"
57685768
integrity sha512-BHdBMVoWC2sL26w//BCu3YzKT4s2jip/WhwsGEDmeKYBhKDZeYezVUnHatYB7L85v5xs0BAQmg6BEYJEKxBabg==
@@ -6579,16 +6579,21 @@ verror@1.10.0:
65796579
core-util-is "1.0.2"
65806580
extsprintf "^1.2.0"
65816581

6582-
walletlink@^2.0.2:
6583-
version "2.0.2"
6584-
resolved "https://registry.yarnpkg.com/walletlink/-/walletlink-2.0.2.tgz#8640e42d3df49b4661019287ab9789e94b72db98"
6585-
integrity sha512-4MIctCHAjcPHSQUHpHuU9leUAvYqRF+/4kCq7x9AngZQ2Jd74dbpC8dfZ55uOwW8TXc7z9XYeSyzRrGHbv5ZXg==
6582+
walletlink@^2.1.0:
6583+
version "2.1.0"
6584+
resolved "https://registry.yarnpkg.com/walletlink/-/walletlink-2.1.0.tgz#15725b829ec09d7e933527726793f36b4c374776"
6585+
integrity sha512-kCl+3q9ZCnbD2ti+rA/rI/cTRBv2MfBU174uxvUW6piTIWwP5wM5ehDZp7lgW+aEOrjK49hBGOPn0CDUsD0tSQ==
65866586
dependencies:
6587+
"@metamask/safe-event-emitter" "2.0.0"
65876588
bind-decorator "^1.0.11"
65886589
bn.js "^5.1.1"
65896590
clsx "^1.1.0"
6590-
preact "^10.3.3"
6591-
rxjs "^6.5.4"
6591+
eth-block-tracker "4.4.3"
6592+
eth-json-rpc-filters "4.2.2"
6593+
eth-rpc-errors "4.0.2"
6594+
json-rpc-engine "6.1.0"
6595+
preact "^10.5.9"
6596+
rxjs "^6.6.3"
65926597

65936598
warning@^4.0.3:
65946599
version "4.0.3"

0 commit comments

Comments
 (0)