@@ -3,15 +3,17 @@ import { type WalletType as CosmosWalletType } from 'graz';
33import { type EIP6963ProviderInfo } from 'mipd' ;
44
55import { STRING_KEYS } from '@/constants/localization' ;
6+ import { LoginMethod } from '@/types/turnkey' ;
67
7- // import { LoginMethod } from '@/types/turnkey';
88import {
9- CoinbaseIcon , // EmailIcon,
9+ CoinbaseIcon ,
10+ EmailIcon ,
1011 GenericWalletIcon ,
1112 KeplrIcon ,
1213 MetaMaskIcon ,
1314 OkxWalletIcon ,
14- PhantomIcon , // PrivyIcon,
15+ PhantomIcon ,
16+ PrivyIcon ,
1517 WalletConnectIcon ,
1618} from '@/icons' ;
1719
@@ -59,10 +61,10 @@ export enum WalletType {
5961 WalletConnect2 = 'WALLETCONNECT_2' ,
6062 TestWallet = 'TEST_WALLET' ,
6163 OtherWallet = 'OTHER_WALLET' ,
62- // Privy = 'PRIVY',
64+ Privy = 'PRIVY' ,
6365 Phantom = 'PHANTOM' ,
6466 MetaMask = 'METAMASK' ,
65- // Turnkey = 'TURNKEY',
67+ Turnkey = 'TURNKEY' ,
6668}
6769
6870export enum ConnectorType {
@@ -73,9 +75,9 @@ export enum ConnectorType {
7375 WalletConnect = 'walletConnect' ,
7476 Cosmos = 'cosmos' ,
7577 Test = 'test' ,
76- // Privy = 'privy',
78+ Privy = 'privy' ,
7779 PhantomSolana = 'phantomSolana' ,
78- // Turnkey = 'turnkey',
80+ Turnkey = 'turnkey' ,
7981}
8082
8183export enum WalletNetworkType {
@@ -93,18 +95,18 @@ export type WalletInfo =
9395 connectorType :
9496 | ConnectorType . Coinbase
9597 | ConnectorType . WalletConnect
96- | ConnectorType . PhantomSolana ;
97- // | ConnectorType.Privy;
98+ | ConnectorType . PhantomSolana
99+ | ConnectorType . Privy ;
98100 name : WalletType ;
99101 }
100- // | {
101- // connectorType: ConnectorType.Turnkey;
102- // name: WalletType.Turnkey;
103- // userEmail?: string;
104- // providerName?: string;
105- // loginMethod: LoginMethod;
106- // requiresAddressUpload?: boolean;
107- // }
102+ | {
103+ connectorType : ConnectorType . Turnkey ;
104+ name : WalletType . Turnkey ;
105+ userEmail ?: string ;
106+ providerName ?: string ;
107+ loginMethod : LoginMethod ;
108+ requiresAddressUpload ?: boolean ;
109+ }
108110 | {
109111 connectorType : ConnectorType . Cosmos ;
110112 name : CosmosWalletType ;
@@ -144,11 +146,11 @@ export const wallets = {
144146 stringKey : STRING_KEYS . TEST_WALLET ,
145147 icon : GenericWalletIcon ,
146148 } ,
147- // [WalletType.Privy]: {
148- // type: WalletType.Privy,
149- // stringKey: STRING_KEYS.PRIVY,
150- // icon: PrivyIcon,
151- // },
149+ [ WalletType . Privy ] : {
150+ type : WalletType . Privy ,
151+ stringKey : STRING_KEYS . PRIVY ,
152+ icon : PrivyIcon ,
153+ } ,
152154 [ WalletType . Phantom ] : {
153155 type : WalletType . Phantom ,
154156 stringKey : STRING_KEYS . PHANTOM_SOL ,
@@ -164,11 +166,11 @@ export const wallets = {
164166 stringKey : STRING_KEYS . METAMASK ,
165167 icon : MetaMaskIcon ,
166168 } ,
167- // [WalletType.Turnkey]: {
168- // type: WalletType.Turnkey,
169- // stringKey: STRING_KEYS.EMAIL_OR_SOCIAL,
170- // icon: EmailIcon,
171- // },
169+ [ WalletType . Turnkey ] : {
170+ type : WalletType . Turnkey ,
171+ stringKey : STRING_KEYS . EMAIL_OR_SOCIAL ,
172+ icon : EmailIcon ,
173+ } ,
172174} satisfies Record < WalletInfo [ 'name' ] , WalletConfig > ;
173175
174176/**
0 commit comments