File tree 3 files changed +17
-1
lines changed
3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @clerk/clerk-js " : patch
3
+ " @clerk/types " : patch
4
+ ---
5
+
6
+ Introduce Coinbase Wallet Web3 provider types
Original file line number Diff line number Diff line change @@ -92,6 +92,10 @@ export const WEB3_PROVIDERS: Web3Providers = Object.freeze({
92
92
id : 'metamask' ,
93
93
name : 'MetaMask' ,
94
94
} ,
95
+ coinbase : {
96
+ id : 'coinbase' ,
97
+ name : 'Coinbase Wallet' ,
98
+ } ,
95
99
} ) ;
96
100
97
101
export function getWeb3ProviderData ( name : Web3Provider ) : Web3ProviderData | undefined | null {
Original file line number Diff line number Diff line change @@ -7,15 +7,21 @@ export interface Web3ProviderData {
7
7
}
8
8
9
9
export type MetamaskWeb3Provider = 'metamask' ;
10
+ export type CoinbaseWeb3Provider = 'coinbase' ;
10
11
11
- export type Web3Provider = MetamaskWeb3Provider ;
12
+ export type Web3Provider = MetamaskWeb3Provider | CoinbaseWeb3Provider ;
12
13
13
14
export const WEB3_PROVIDERS : Web3ProviderData [ ] = [
14
15
{
15
16
provider : 'metamask' ,
16
17
strategy : 'web3_metamask_signature' ,
17
18
name : 'MetaMask' ,
18
19
} ,
20
+ {
21
+ provider : 'coinbase' ,
22
+ strategy : 'web3_coinbase_signature' ,
23
+ name : 'Coinbase Wallet' ,
24
+ } ,
19
25
] ;
20
26
21
27
interface getWeb3ProviderDataProps {
You can’t perform that action at this time.
0 commit comments