@talken/talkenkit 2.4.16 → 2.4.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abcWallet-54KUGWUZ.js +192 -0
- package/dist/abcWallet-KZHOADBJ.js +192 -0
- package/dist/abcWallet-NZAVB4PI.js +190 -0
- package/dist/chunk-5X3ROW3U.js +8777 -0
- package/dist/chunk-DKA3NVFM.js +8497 -0
- package/dist/chunk-QNZ5HSPM.js +8339 -0
- package/dist/chunk-VE53ZNZV.js +331 -0
- package/dist/components/ConfirmationModal/ApproveSection.css.d.ts +16 -0
- package/dist/components/ConfirmationModal/ApproveSection.d.ts +8 -0
- package/dist/components/ConfirmationModal/NFTPlaceholder.css.d.ts +7 -0
- package/dist/components/ConfirmationModal/NFTPlaceholder.d.ts +8 -0
- package/dist/components/ConfirmationModal/NftApprovalSection.css.d.ts +10 -0
- package/dist/components/ConfirmationModal/NftApprovalSection.d.ts +7 -0
- package/dist/components/ConfirmationModal/SignConfirmationModal.css.d.ts +35 -0
- package/dist/components/ConfirmationModal/SignConfirmationModal.d.ts +17 -0
- package/dist/components/ConfirmationModal/SwapSection.css.d.ts +17 -0
- package/dist/components/ConfirmationModal/SwapSection.d.ts +7 -0
- package/dist/components/ConfirmationModal/TransactionConfirmationModal.css.d.ts +49 -0
- package/dist/components/ConfirmationModal/TransactionConfirmationModal.d.ts +12 -0
- package/dist/components/ConfirmationModal/TransferSection.css.d.ts +17 -0
- package/dist/components/ConfirmationModal/TransferSection.d.ts +7 -0
- package/dist/components/ConfirmationModal/commonStyles.css.d.ts +37 -0
- package/dist/components/ConfirmationModal/constants.d.ts +16 -0
- package/dist/components/ConfirmationModal/index.d.ts +9 -0
- package/dist/components/ConfirmationModal/modalTheme.css.d.ts +20 -0
- package/dist/components/ConfirmationModal/transactionUIRegistry.d.ts +134 -0
- package/dist/components/ConfirmationModal/utils.d.ts +37 -0
- package/dist/components/ConnectOptions/AbcWaasAuth/AbcWaasAuthSections.css.d.ts +1 -0
- package/dist/components/ConnectOptions/AbcWaasAuth/AbcWaasAuthSections.d.ts +1 -1
- package/dist/components/ConnectOptions/AbcWaasAuth/hooks/useAbcWaasAuth.d.ts +2 -25
- package/dist/components/ConnectOptions/AbcWaasAuth/hooks/useAbcWaasSocial.d.ts +1 -47
- package/dist/components/ConnectOptions/PinAuth/hooks/useWalletGeneration.d.ts +4 -21
- package/dist/components/GasFeeModal/GasFeeEditModal.css.d.ts +32 -0
- package/dist/components/GasFeeModal/GasFeeEditModal.d.ts +21 -0
- package/dist/components/GasFeeModal/index.d.ts +3 -0
- package/dist/components/GasFeeModal/modalTheme.css.d.ts +19 -0
- package/dist/components/Icons/Close2.d.ts +7 -0
- package/dist/components/Icons/Copy2.d.ts +4 -0
- package/dist/components/Icons/Dropdown2.d.ts +4 -0
- package/dist/components/Icons/Edit.d.ts +4 -0
- package/dist/components/Icons/InfoCircle.d.ts +4 -0
- package/dist/components/Icons/Kakao.d.ts +2 -0
- package/dist/components/Icons/Minus.d.ts +4 -0
- package/dist/components/Icons/Plus.d.ts +4 -0
- package/dist/components/Icons/SettingsGear.d.ts +4 -0
- package/dist/components/Icons/SpeedHigh.d.ts +4 -0
- package/dist/components/Icons/SpeedLow.d.ts +4 -0
- package/dist/components/Icons/SpeedMedium.d.ts +4 -0
- package/dist/components/RainbowKitProvider/InternalPinProvider.d.ts +7 -9
- package/dist/components/RainbowKitProvider/RainbowKitProvider.d.ts +7 -1
- package/dist/components/Toast/Toast.css.d.ts +2 -0
- package/dist/components/Toast/Toast.d.ts +6 -0
- package/dist/components/Toast/index.d.ts +4 -0
- package/dist/components/Toast/useToast.d.ts +10 -0
- package/dist/config/networks.d.ts +10 -0
- package/dist/css/sprinkles.css.d.ts +1 -1
- package/dist/hooks/useSolanaWallet.d.ts +5 -23
- package/dist/hooks/useTronWallet.d.ts +63 -0
- package/dist/index.css +1903 -236
- package/dist/index.d.ts +8 -3
- package/dist/index.js +7970 -4015
- package/dist/klipWallet-RD5Y4UEK.js +8 -0
- package/dist/providers/SignConfirmationProvider/SignConfirmationProvider.d.ts +22 -0
- package/dist/providers/SignConfirmationProvider/index.d.ts +6 -0
- package/dist/providers/SignConfirmationProvider/requestParsers.d.ts +24 -0
- package/dist/providers/SignConfirmationProvider/types.d.ts +91 -0
- package/dist/providers/SignConfirmationProvider/useApiClient.d.ts +15 -0
- package/dist/providers/SignConfirmationProvider/useTransactionResolver.d.ts +18 -0
- package/dist/secure-AEBFSVWE.js +8 -0
- package/dist/services/AbcAgenticWalletService.d.ts +111 -0
- package/dist/services/AbcAuthService.d.ts +26 -20
- package/dist/types/index.d.ts +3 -0
- package/dist/types/token.d.ts +82 -0
- package/dist/utils/abi/abiDecoder.d.ts +144 -0
- package/dist/utils/apiClientFactory.d.ts +21 -0
- package/dist/utils/blockies.d.ts +12 -0
- package/dist/utils/tokenMapper.d.ts +10 -0
- package/dist/wallets/walletConnectors/abcWallet/abcApi.d.ts +4 -1
- package/dist/wallets/walletConnectors/abcWallet/abcApi.js +7 -7
- package/dist/wallets/walletConnectors/abcWallet/abcBitcoinConnector.js +5 -5
- package/dist/wallets/walletConnectors/abcWallet/abcBitcoinProvider.d.ts +6 -8
- package/dist/wallets/walletConnectors/abcWallet/abcBitcoinProvider.js +1 -1
- package/dist/wallets/walletConnectors/abcWallet/abcConnector.js +9 -9
- package/dist/wallets/walletConnectors/abcWallet/abcProvider.d.ts +17 -6
- package/dist/wallets/walletConnectors/abcWallet/abcProvider.js +5 -4
- package/dist/wallets/walletConnectors/abcWallet/abcSolanaProvider.d.ts +11 -34
- package/dist/wallets/walletConnectors/abcWallet/abcSolanaProvider.js +1 -1
- package/dist/wallets/walletConnectors/abcWallet/abcSolanaWalletAdapter.d.ts +3 -11
- package/dist/wallets/walletConnectors/abcWallet/abcSolanaWalletAdapter.js +17 -80
- package/dist/wallets/walletConnectors/abcWallet/abcTronProvider.d.ts +112 -0
- package/dist/wallets/walletConnectors/abcWallet/abcTronProvider.js +11 -0
- package/dist/wallets/walletConnectors/abcWallet/abcWallet.d.ts +2 -0
- package/dist/wallets/walletConnectors/abcWallet/abcWallet.js +11 -10
- package/dist/wallets/walletConnectors/abcWallet/api/AuthApi.d.ts +9 -11
- package/dist/wallets/walletConnectors/abcWallet/api/AuthApi.js +6 -6
- package/dist/wallets/walletConnectors/abcWallet/api/BaseApiClient.d.ts +1 -1
- package/dist/wallets/walletConnectors/abcWallet/api/BaseApiClient.js +5 -5
- package/dist/wallets/walletConnectors/abcWallet/api/BitcoinApi.js +6 -6
- package/dist/wallets/walletConnectors/abcWallet/api/GasApi.d.ts +45 -0
- package/dist/wallets/walletConnectors/abcWallet/api/GasApi.js +12 -0
- package/dist/wallets/walletConnectors/abcWallet/api/SigningApi.js +7 -7
- package/dist/wallets/walletConnectors/abcWallet/api/SolanaApi.d.ts +9 -1
- package/dist/wallets/walletConnectors/abcWallet/api/SolanaApi.js +7 -7
- package/dist/wallets/walletConnectors/abcWallet/api/TalkenApiClient.d.ts +333 -0
- package/dist/wallets/walletConnectors/abcWallet/api/TalkenApiClient.js +11 -0
- package/dist/wallets/walletConnectors/abcWallet/api/TalkenApiSingleton.d.ts +18 -0
- package/dist/wallets/walletConnectors/abcWallet/api/TalkenApiSingleton.js +14 -0
- package/dist/wallets/walletConnectors/abcWallet/api/TransactionApi.d.ts +2 -2
- package/dist/wallets/walletConnectors/abcWallet/api/TransactionApi.js +7 -7
- package/dist/wallets/walletConnectors/abcWallet/api/TronApi.d.ts +102 -0
- package/dist/wallets/walletConnectors/abcWallet/api/TronApi.js +12 -0
- package/dist/wallets/walletConnectors/abcWallet/api/WalletApi.d.ts +4 -2
- package/dist/wallets/walletConnectors/abcWallet/api/WalletApi.js +7 -7
- package/dist/wallets/walletConnectors/abcWallet/api/WalletscanApi.d.ts +60 -0
- package/dist/wallets/walletConnectors/abcWallet/api/WalletscanApi.js +12 -0
- package/dist/wallets/walletConnectors/abcWallet/api/index.d.ts +24 -0
- package/dist/wallets/walletConnectors/abcWallet/api/index.js +35 -17
- package/dist/wallets/walletConnectors/abcWallet/constants.d.ts +39 -1
- package/dist/wallets/walletConnectors/abcWallet/constants.js +5 -1
- package/dist/wallets/walletConnectors/abcWallet/googleAuth.d.ts +6 -0
- package/dist/wallets/walletConnectors/abcWallet/googleAuth.js +37 -1
- package/dist/wallets/walletConnectors/abcWallet/index.d.ts +5 -3
- package/dist/wallets/walletConnectors/abcWallet/index.js +44 -31
- package/dist/wallets/walletConnectors/abcWallet/kakaoAuth.d.ts +27 -0
- package/dist/wallets/walletConnectors/abcWallet/kakaoAuth.js +290 -0
- package/dist/wallets/walletConnectors/abcWallet/networkConfig.d.ts +39 -3
- package/dist/wallets/walletConnectors/abcWallet/networkConfig.js +11 -3
- package/dist/wallets/walletConnectors/abcWallet/secure.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/sessionUtils.js +1 -1
- package/dist/wallets/walletConnectors/abcWallet/types.d.ts +369 -7
- package/dist/wallets/walletConnectors/abcWallet/types.js +5 -3
- package/dist/wallets/walletConnectors/abcWallet/utils.js +3 -3
- package/dist/wallets/walletConnectors/abcWallet/walletGeneration.d.ts +10 -19
- package/dist/wallets/walletConnectors/abcWallet/walletGeneration.js +2 -2
- package/dist/wallets/walletConnectors/berasigWallet/berasigWallet.js +2 -2
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/binanceWallet/binanceWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/chunk-25V3FW3O.js +282 -0
- package/dist/wallets/walletConnectors/chunk-27346T3J.js +134 -0
- package/dist/wallets/walletConnectors/chunk-5CNLMOB2.js +75 -0
- package/dist/wallets/walletConnectors/chunk-5K45TCAM.js +333 -0
- package/dist/wallets/walletConnectors/chunk-5VDSMZC4.js +286 -0
- package/dist/wallets/walletConnectors/chunk-5W7RBMPH.js +351 -0
- package/dist/wallets/walletConnectors/chunk-5XORKEWE.js +326 -0
- package/dist/wallets/walletConnectors/chunk-63WBO52A.js +77 -0
- package/dist/wallets/walletConnectors/chunk-7IRF225N.js +75 -0
- package/dist/wallets/walletConnectors/chunk-7QHCSJDN.js +726 -0
- package/dist/wallets/walletConnectors/chunk-A27H6PEU.js +739 -0
- package/dist/wallets/walletConnectors/chunk-A4WR3CFN.js +130 -0
- package/dist/wallets/walletConnectors/chunk-A6FUNQWF.js +572 -0
- package/dist/wallets/walletConnectors/chunk-AF4OCS7N.js +46 -0
- package/dist/wallets/walletConnectors/chunk-AFWBXEEC.js +66 -0
- package/dist/wallets/walletConnectors/chunk-AUGP2LJR.js +182 -0
- package/dist/wallets/walletConnectors/chunk-AWLDVQXC.js +317 -0
- package/dist/wallets/walletConnectors/chunk-BLEKTKBN.js +479 -0
- package/dist/wallets/walletConnectors/chunk-BVL6G5HI.js +1757 -0
- package/dist/wallets/walletConnectors/chunk-CMTGEHDI.js +485 -0
- package/dist/wallets/walletConnectors/chunk-D5EFTEOM.js +56 -0
- package/dist/wallets/walletConnectors/chunk-DM5NLSWD.js +346 -0
- package/dist/wallets/walletConnectors/chunk-EBGI4D2T.js +69 -0
- package/dist/wallets/walletConnectors/chunk-EEH2HMFG.js +47 -0
- package/dist/wallets/walletConnectors/chunk-F5JWDBKK.js +47 -0
- package/dist/wallets/walletConnectors/chunk-FN67MIIH.js +75 -0
- package/dist/wallets/walletConnectors/chunk-FWYVBX5F.js +75 -0
- package/dist/wallets/walletConnectors/chunk-GH6ZDY4K.js +58 -0
- package/dist/wallets/walletConnectors/chunk-GIJZMIBD.js +63 -0
- package/dist/wallets/walletConnectors/chunk-GO6OLTNF.js +479 -0
- package/dist/wallets/walletConnectors/chunk-HKXBK3NY.js +75 -0
- package/dist/wallets/walletConnectors/chunk-HMD2WWFQ.js +75 -0
- package/dist/wallets/walletConnectors/chunk-HO5Z2CTL.js +280 -0
- package/dist/wallets/walletConnectors/chunk-I3GFVK5O.js +151 -0
- package/dist/wallets/walletConnectors/chunk-IUHZ5ZCE.js +121 -0
- package/dist/wallets/walletConnectors/chunk-JODNZWWG.js +330 -0
- package/dist/wallets/walletConnectors/chunk-JTST3KMW.js +75 -0
- package/dist/wallets/walletConnectors/chunk-KH2L3ONV.js +1599 -0
- package/dist/wallets/walletConnectors/chunk-LHV22375.js +182 -0
- package/dist/wallets/walletConnectors/chunk-LZZE462U.js +315 -0
- package/dist/wallets/walletConnectors/chunk-MGCRUAHX.js +276 -0
- package/dist/wallets/walletConnectors/chunk-MURSKRMJ.js +63 -0
- package/dist/wallets/walletConnectors/chunk-NG7PSAPX.js +115 -0
- package/dist/wallets/walletConnectors/chunk-NHP6D6AH.js +204 -0
- package/dist/wallets/walletConnectors/chunk-O4AU63LK.js +181 -0
- package/dist/wallets/walletConnectors/chunk-OBS74J5N.js +221 -0
- package/dist/wallets/walletConnectors/chunk-ON4U54WO.js +115 -0
- package/dist/wallets/walletConnectors/chunk-PPYBE5TV.js +276 -0
- package/dist/wallets/walletConnectors/chunk-PWWSAM4G.js +309 -0
- package/dist/wallets/walletConnectors/chunk-QB5GDLRU.js +330 -0
- package/dist/wallets/walletConnectors/chunk-QMLG7MAP.js +107 -0
- package/dist/wallets/walletConnectors/chunk-RGIB7FFH.js +47 -0
- package/dist/wallets/walletConnectors/chunk-SHJBMDP4.js +278 -0
- package/dist/wallets/walletConnectors/chunk-SOBJYYIX.js +484 -0
- package/dist/wallets/walletConnectors/chunk-T66U3ADD.js +58 -0
- package/dist/wallets/walletConnectors/chunk-THCKLFSJ.js +75 -0
- package/dist/wallets/walletConnectors/chunk-TS466TDR.js +286 -0
- package/dist/wallets/walletConnectors/chunk-UJGFYQEV.js +459 -0
- package/dist/wallets/walletConnectors/chunk-UXNEBBUV.js +224 -0
- package/dist/wallets/walletConnectors/chunk-VRCNFVPM.js +276 -0
- package/dist/wallets/walletConnectors/chunk-WODNUC65.js +333 -0
- package/dist/wallets/walletConnectors/chunk-X6A2FSHK.js +484 -0
- package/dist/wallets/walletConnectors/chunk-XVRNEES5.js +1541 -0
- package/dist/wallets/walletConnectors/chunk-XWVM2Y5A.js +306 -0
- package/dist/wallets/walletConnectors/chunk-XXG7ABSJ.js +328 -0
- package/dist/wallets/walletConnectors/chunk-YJH4BHSB.js +254 -0
- package/dist/wallets/walletConnectors/chunk-YRDNIP2H.js +90 -0
- package/dist/wallets/walletConnectors/chunk-YTPAWPCA.js +156 -0
- package/dist/wallets/walletConnectors/chunk-ZCSHD7UG.js +562 -0
- package/dist/wallets/walletConnectors/chunk-ZZCZ3RJU.js +272 -0
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +57 -56
- package/dist/wallets/walletConnectors/iopayWallet/iopayWallet.js +2 -2
- package/dist/wallets/walletConnectors/kaiaWallet/kaiaWallet.js +2 -2
- package/dist/wallets/walletConnectors/kaikasWallet/kaikasWallet.js +2 -2
- package/dist/wallets/walletConnectors/klipWallet/klipWallet.d.ts +3 -0
- package/dist/wallets/walletConnectors/klipWallet/klipWallet.js +8 -0
- package/dist/wallets/walletConnectors/klipWallet-PPTYYB5G.js +7 -0
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/zealWallet/zealWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +2 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Based on reference implementation:
|
|
5
5
|
* /Users/minsuj/Claude/tg-wallet-frontend-develop-minsuj/src/features/wallet/api/
|
|
6
6
|
*/
|
|
7
|
-
import type { BitcoinNetwork, SolanaNetwork } from './networkConfig';
|
|
7
|
+
import type { BitcoinNetwork, SolanaNetwork, TronNetwork } from './networkConfig';
|
|
8
8
|
/**
|
|
9
9
|
* Branded types for type safety
|
|
10
10
|
*/
|
|
@@ -25,8 +25,11 @@ export interface AbcWalletConfig {
|
|
|
25
25
|
waasUrl: string;
|
|
26
26
|
/** API authentication key */
|
|
27
27
|
apiKey?: string;
|
|
28
|
-
/**
|
|
29
|
-
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated No longer used. SecureService generates random plain internally.
|
|
30
|
+
* Kept for backwards compatibility only.
|
|
31
|
+
*/
|
|
32
|
+
plain?: string;
|
|
30
33
|
/** Environment mode */
|
|
31
34
|
environment: 'development' | 'production';
|
|
32
35
|
/** Default Chain ID for EVM network (optional, overrides environment-based detection) */
|
|
@@ -41,7 +44,7 @@ export interface AbcWalletConfig {
|
|
|
41
44
|
/**
|
|
42
45
|
* Authentication provider types
|
|
43
46
|
*/
|
|
44
|
-
export type AbcAuthProvider = 'email' | 'google' | 'apple' | 'telegram' | 'twitter';
|
|
47
|
+
export type AbcAuthProvider = 'email' | 'google' | 'apple' | 'kakao' | 'telegram' | 'twitter';
|
|
45
48
|
/**
|
|
46
49
|
* User authentication state
|
|
47
50
|
*/
|
|
@@ -129,6 +132,20 @@ export interface AbcBitcoinWallet extends BaseWallet {
|
|
|
129
132
|
/** Bitcoin network (typed enum) */
|
|
130
133
|
network: BitcoinNetwork;
|
|
131
134
|
}
|
|
135
|
+
/**
|
|
136
|
+
* TRON wallet information (ECDSA secp256k1)
|
|
137
|
+
* TRON uses the same secp256k1 curve as EVM, just different address encoding (Base58Check with T prefix)
|
|
138
|
+
*/
|
|
139
|
+
export interface AbcTronWallet extends BaseWallet {
|
|
140
|
+
/** Share identifier (alias for sessionId, for backward compatibility) */
|
|
141
|
+
shareId: string;
|
|
142
|
+
/** Compressed public key (hex) - same as EVM pubkey */
|
|
143
|
+
publicKey: string;
|
|
144
|
+
/** TRON address (Base58Check, starts with 'T') */
|
|
145
|
+
address: string;
|
|
146
|
+
/** TRON network (typed enum) */
|
|
147
|
+
network: TronNetwork;
|
|
148
|
+
}
|
|
132
149
|
/**
|
|
133
150
|
* Bitcoin UTXO (Unspent Transaction Output)
|
|
134
151
|
*/
|
|
@@ -158,6 +175,8 @@ export interface AbcAuthState {
|
|
|
158
175
|
solanaWallet: AbcSolanaWallet | null;
|
|
159
176
|
/** Bitcoin wallet information */
|
|
160
177
|
bitcoinWallet: AbcBitcoinWallet | null;
|
|
178
|
+
/** TRON wallet information */
|
|
179
|
+
tronWallet: AbcTronWallet | null;
|
|
161
180
|
/** Access token */
|
|
162
181
|
accessToken: string | null;
|
|
163
182
|
/** Refresh token */
|
|
@@ -207,8 +226,6 @@ export interface AbcSignParams {
|
|
|
207
226
|
keyId: string;
|
|
208
227
|
/** Encrypted share */
|
|
209
228
|
encryptedShare: string;
|
|
210
|
-
/** PIN code */
|
|
211
|
-
pin: string;
|
|
212
229
|
}
|
|
213
230
|
/**
|
|
214
231
|
* Solana transaction signing parameters
|
|
@@ -442,7 +459,7 @@ export interface AbcSnsLoginParams {
|
|
|
442
459
|
/** Firebase ID token from OAuth provider */
|
|
443
460
|
token: string;
|
|
444
461
|
/** Social login service provider */
|
|
445
|
-
service: 'google' | 'apple' | 'kakao';
|
|
462
|
+
service: 'google' | 'apple' | 'kakao' | 'naver' | 'line';
|
|
446
463
|
/** User email from OAuth token */
|
|
447
464
|
email: string;
|
|
448
465
|
/** ABC WaaS audience URL */
|
|
@@ -515,6 +532,7 @@ export declare enum AbcStorageKey {
|
|
|
515
532
|
WALLET = "wallet",
|
|
516
533
|
SOLANA_WALLET = "solana_wallet",
|
|
517
534
|
BITCOIN_WALLET = "bitcoin_wallet",
|
|
535
|
+
TRON_WALLET = "tron_wallet",
|
|
518
536
|
ACCESS_TOKEN = "access_token",
|
|
519
537
|
REFRESH_TOKEN = "refresh_token",
|
|
520
538
|
EXPIRES_AT = "expires_at",
|
|
@@ -602,3 +620,347 @@ export interface AbcEmailCheckResponse {
|
|
|
602
620
|
code: number;
|
|
603
621
|
};
|
|
604
622
|
}
|
|
623
|
+
/**
|
|
624
|
+
* Walletscan API Types
|
|
625
|
+
*/
|
|
626
|
+
export interface TokenPrice {
|
|
627
|
+
coingecko?: {
|
|
628
|
+
ETH?: number;
|
|
629
|
+
USD?: number;
|
|
630
|
+
KRW?: number;
|
|
631
|
+
JPY?: number;
|
|
632
|
+
};
|
|
633
|
+
chainlink?: Record<string, number>;
|
|
634
|
+
}
|
|
635
|
+
export interface ABCToken {
|
|
636
|
+
name: string;
|
|
637
|
+
symbol: string;
|
|
638
|
+
decimals: number;
|
|
639
|
+
logo?: string;
|
|
640
|
+
platform?: string;
|
|
641
|
+
network?: string;
|
|
642
|
+
contractAddress?: string;
|
|
643
|
+
isNative?: boolean;
|
|
644
|
+
type?: string;
|
|
645
|
+
totalSupply?: number;
|
|
646
|
+
website?: string;
|
|
647
|
+
description?: string;
|
|
648
|
+
balance?: number;
|
|
649
|
+
possibleSpam?: boolean;
|
|
650
|
+
price?: TokenPrice;
|
|
651
|
+
updated?: string;
|
|
652
|
+
hrBalance?: number;
|
|
653
|
+
mintAddress?: string;
|
|
654
|
+
associatedTokenAddress?: string;
|
|
655
|
+
}
|
|
656
|
+
export interface ABCTokensRequest {
|
|
657
|
+
contractAddress: string;
|
|
658
|
+
networks: string;
|
|
659
|
+
minimalInfo?: boolean;
|
|
660
|
+
}
|
|
661
|
+
export interface ABCNativeTokensRequest {
|
|
662
|
+
walletAddress: string;
|
|
663
|
+
networks: string;
|
|
664
|
+
minimalInfo?: boolean;
|
|
665
|
+
}
|
|
666
|
+
export interface ABCNFTsRequest {
|
|
667
|
+
contractAddress: string;
|
|
668
|
+
walletAddress: string;
|
|
669
|
+
networks: string;
|
|
670
|
+
minimalInfo?: boolean;
|
|
671
|
+
}
|
|
672
|
+
export interface ABCNFT {
|
|
673
|
+
name?: string;
|
|
674
|
+
symbol?: string;
|
|
675
|
+
platform?: string;
|
|
676
|
+
type?: string;
|
|
677
|
+
collectionName?: string;
|
|
678
|
+
description?: string;
|
|
679
|
+
possibleSpam?: boolean;
|
|
680
|
+
isSbt?: boolean;
|
|
681
|
+
last_transfer_at?: string;
|
|
682
|
+
walletAddress?: string;
|
|
683
|
+
network?: string;
|
|
684
|
+
contractAddress?: string;
|
|
685
|
+
updated?: string;
|
|
686
|
+
balance?: number;
|
|
687
|
+
tokenId?: string;
|
|
688
|
+
tokenUri?: string;
|
|
689
|
+
animationUrl?: string;
|
|
690
|
+
image?: string;
|
|
691
|
+
meta?: Record<string, unknown>;
|
|
692
|
+
mintAddress?: string;
|
|
693
|
+
associatedTokenAddress?: string;
|
|
694
|
+
}
|
|
695
|
+
/**
|
|
696
|
+
* Gas API Types
|
|
697
|
+
*/
|
|
698
|
+
export interface GasFeeTier {
|
|
699
|
+
suggestedMaxPriorityFeePerGas: string;
|
|
700
|
+
suggestedMaxFeePerGas: string;
|
|
701
|
+
minWaitTimeEstimate?: number;
|
|
702
|
+
maxWaitTimeEstimate?: number;
|
|
703
|
+
}
|
|
704
|
+
export interface SuggestedGasFees {
|
|
705
|
+
low: GasFeeTier;
|
|
706
|
+
medium: GasFeeTier;
|
|
707
|
+
high: GasFeeTier;
|
|
708
|
+
estimatedBaseFee: string;
|
|
709
|
+
networkCongestion?: number;
|
|
710
|
+
latestPriorityFeeRange?: [string, string];
|
|
711
|
+
historicalPriorityFeeRange?: [string, string];
|
|
712
|
+
historicalBaseFeeRange?: [string, string];
|
|
713
|
+
priorityFeeTrend?: 'up' | 'down' | 'stable' | 'level';
|
|
714
|
+
baseFeeTrend?: 'up' | 'down' | 'stable' | 'level';
|
|
715
|
+
version?: string;
|
|
716
|
+
}
|
|
717
|
+
export interface GasEstimateRequest {
|
|
718
|
+
network: string;
|
|
719
|
+
from?: string;
|
|
720
|
+
to: string;
|
|
721
|
+
value?: string;
|
|
722
|
+
data?: string;
|
|
723
|
+
}
|
|
724
|
+
export interface GasEstimateResponse {
|
|
725
|
+
result: string;
|
|
726
|
+
}
|
|
727
|
+
export type GasFeePriority = 'low' | 'medium' | 'high';
|
|
728
|
+
/**
|
|
729
|
+
* Configuration for TalkenApiClient
|
|
730
|
+
* This client communicates with the talken-api backend, NOT directly with ABC WaaS.
|
|
731
|
+
*/
|
|
732
|
+
export interface TalkenApiConfig {
|
|
733
|
+
/** Talken API backend base URL (e.g., https://dev.walletapi.talken.io/api/v1) */
|
|
734
|
+
baseUrl: string;
|
|
735
|
+
/** Request timeout in milliseconds */
|
|
736
|
+
timeout?: number;
|
|
737
|
+
/** Environment mode */
|
|
738
|
+
environment?: 'development' | 'production';
|
|
739
|
+
/** Default EVM chain ID */
|
|
740
|
+
defaultChainId?: number;
|
|
741
|
+
/** Enable debug logging */
|
|
742
|
+
debug?: boolean;
|
|
743
|
+
}
|
|
744
|
+
/**
|
|
745
|
+
* Standard Talken API response envelope
|
|
746
|
+
*/
|
|
747
|
+
export interface TalkenApiResponse<T = unknown> {
|
|
748
|
+
/** Whether the request was successful */
|
|
749
|
+
success: boolean;
|
|
750
|
+
/** Response data (present on success) */
|
|
751
|
+
data?: T;
|
|
752
|
+
/** Error details (present on failure) */
|
|
753
|
+
error?: {
|
|
754
|
+
code: string;
|
|
755
|
+
message: string;
|
|
756
|
+
details?: unknown;
|
|
757
|
+
};
|
|
758
|
+
}
|
|
759
|
+
/**
|
|
760
|
+
* Talken API error class
|
|
761
|
+
*/
|
|
762
|
+
export declare class TalkenApiError extends Error {
|
|
763
|
+
code: string;
|
|
764
|
+
statusCode: number;
|
|
765
|
+
details?: unknown;
|
|
766
|
+
constructor(code: string, message: string, statusCode: number, details?: unknown);
|
|
767
|
+
}
|
|
768
|
+
/**
|
|
769
|
+
* Normalized auth response from TalkenApiClient
|
|
770
|
+
* Maps server's snake_case fields to camelCase
|
|
771
|
+
*/
|
|
772
|
+
export interface TalkenAuthResponse {
|
|
773
|
+
accessToken: string;
|
|
774
|
+
refreshToken: string;
|
|
775
|
+
expiresIn: number;
|
|
776
|
+
uid: string;
|
|
777
|
+
email: string;
|
|
778
|
+
/** Present on register response */
|
|
779
|
+
isNewUser?: boolean;
|
|
780
|
+
}
|
|
781
|
+
export interface TalkenOtpResponse {
|
|
782
|
+
code?: number;
|
|
783
|
+
message?: string;
|
|
784
|
+
result?: string;
|
|
785
|
+
}
|
|
786
|
+
export interface TalkenEmailCheckResponse {
|
|
787
|
+
code?: number;
|
|
788
|
+
message?: string;
|
|
789
|
+
/** true if code === 606 */
|
|
790
|
+
exists: boolean;
|
|
791
|
+
}
|
|
792
|
+
export interface TalkenRegisterResponse {
|
|
793
|
+
isNewUser: boolean;
|
|
794
|
+
login: {
|
|
795
|
+
access_token: string;
|
|
796
|
+
refresh_token: string;
|
|
797
|
+
expires_in?: number;
|
|
798
|
+
token_type?: string;
|
|
799
|
+
};
|
|
800
|
+
}
|
|
801
|
+
/**
|
|
802
|
+
* SNS (Social) login request for TalkenApiClient
|
|
803
|
+
* POST /wallet/auth { action: 'login', method: 'sns', ... }
|
|
804
|
+
*/
|
|
805
|
+
export interface TalkenSnsLoginRequest {
|
|
806
|
+
/** Firebase/OAuth ID token */
|
|
807
|
+
token: string;
|
|
808
|
+
/** Social login service provider */
|
|
809
|
+
service: 'google' | 'apple' | 'kakao' | 'naver' | 'line';
|
|
810
|
+
/** ABC WaaS audience URL (optional; server uses default if omitted) */
|
|
811
|
+
audience?: string;
|
|
812
|
+
}
|
|
813
|
+
export interface TalkenWalletGenerateResponse {
|
|
814
|
+
evm: AbcEvmWallet;
|
|
815
|
+
solana: AbcSolanaWallet | null;
|
|
816
|
+
bitcoin: AbcBitcoinWallet | null;
|
|
817
|
+
tron: AbcTronWallet | null;
|
|
818
|
+
}
|
|
819
|
+
export interface TalkenWalletInfoResponse {
|
|
820
|
+
evm: AbcEvmWallet | null;
|
|
821
|
+
solana: AbcSolanaWallet | null;
|
|
822
|
+
bitcoin: AbcBitcoinWallet | null;
|
|
823
|
+
tron: AbcTronWallet | null;
|
|
824
|
+
}
|
|
825
|
+
export interface TalkenWalletAddressesResponse {
|
|
826
|
+
evm?: string;
|
|
827
|
+
solana?: string;
|
|
828
|
+
bitcoin?: string;
|
|
829
|
+
tron?: string;
|
|
830
|
+
}
|
|
831
|
+
export interface TalkenEvmSignRequest {
|
|
832
|
+
network: string;
|
|
833
|
+
to: string;
|
|
834
|
+
from?: string;
|
|
835
|
+
value?: string;
|
|
836
|
+
data?: string;
|
|
837
|
+
nonce?: string;
|
|
838
|
+
gasLimit?: string;
|
|
839
|
+
gasPrice?: string;
|
|
840
|
+
maxFeePerGas?: string;
|
|
841
|
+
maxPriorityFeePerGas?: string;
|
|
842
|
+
type?: number;
|
|
843
|
+
}
|
|
844
|
+
export interface TalkenEvmSignTypedRequest {
|
|
845
|
+
network: string;
|
|
846
|
+
typedData: string | Record<string, unknown>;
|
|
847
|
+
}
|
|
848
|
+
export interface TalkenEvmSignPersonalRequest {
|
|
849
|
+
network: string;
|
|
850
|
+
message: string;
|
|
851
|
+
address?: string;
|
|
852
|
+
}
|
|
853
|
+
export interface TalkenEvmSignatureResponse {
|
|
854
|
+
signature: string;
|
|
855
|
+
txHash?: string;
|
|
856
|
+
}
|
|
857
|
+
export interface TalkenTxRawRequest {
|
|
858
|
+
network: string;
|
|
859
|
+
signedSerializeTx: string;
|
|
860
|
+
}
|
|
861
|
+
export interface TalkenTxEvmRequest {
|
|
862
|
+
chainKey: string;
|
|
863
|
+
toAddress: string;
|
|
864
|
+
amountWei: string;
|
|
865
|
+
pin: string;
|
|
866
|
+
contractAddress?: string;
|
|
867
|
+
data?: string;
|
|
868
|
+
gasLimit?: string;
|
|
869
|
+
maxFeePerGas?: string;
|
|
870
|
+
maxPriorityFeePerGas?: string;
|
|
871
|
+
}
|
|
872
|
+
export interface TalkenTxSvmRequest {
|
|
873
|
+
toAddress: string;
|
|
874
|
+
pin: string;
|
|
875
|
+
kind?: 'native' | 'spl';
|
|
876
|
+
network?: string;
|
|
877
|
+
amountLamports?: string;
|
|
878
|
+
mintAddress?: string;
|
|
879
|
+
amount?: string;
|
|
880
|
+
decimals?: number;
|
|
881
|
+
}
|
|
882
|
+
export type TalkenBtcNetwork = 'bitcoin' | 'bitcoin_testnet';
|
|
883
|
+
export type TalkenBtcAction = 'transfer' | 'generate' | 'signHash' | 'finalize';
|
|
884
|
+
export interface TalkenTxBtcRequest {
|
|
885
|
+
action?: TalkenBtcAction;
|
|
886
|
+
network?: TalkenBtcNetwork;
|
|
887
|
+
toAddress?: string;
|
|
888
|
+
amountSats?: string;
|
|
889
|
+
feeRate?: number | string;
|
|
890
|
+
blocks?: number;
|
|
891
|
+
hash?: string;
|
|
892
|
+
signatureHex?: string[];
|
|
893
|
+
pin: string;
|
|
894
|
+
waitForConfirmation?: boolean;
|
|
895
|
+
confirmPollMs?: number;
|
|
896
|
+
confirmMaxAttempts?: number;
|
|
897
|
+
minConfirmations?: number;
|
|
898
|
+
email?: string;
|
|
899
|
+
devicePassword?: string;
|
|
900
|
+
}
|
|
901
|
+
export interface TalkenBtcFeeResponse {
|
|
902
|
+
mode: 'fee';
|
|
903
|
+
network: TalkenBtcNetwork;
|
|
904
|
+
feeRate: number | string;
|
|
905
|
+
raw?: unknown;
|
|
906
|
+
}
|
|
907
|
+
export interface TalkenBtcTxHashResponse {
|
|
908
|
+
mode: 'txHash';
|
|
909
|
+
network: TalkenBtcNetwork;
|
|
910
|
+
txHash: string;
|
|
911
|
+
[key: string]: unknown;
|
|
912
|
+
}
|
|
913
|
+
export interface TalkenBtcUtxosResponse {
|
|
914
|
+
mode: 'utxos';
|
|
915
|
+
network: TalkenBtcNetwork;
|
|
916
|
+
address: string;
|
|
917
|
+
utxos: BitcoinUtxo[];
|
|
918
|
+
raw?: unknown;
|
|
919
|
+
}
|
|
920
|
+
export interface TalkenBtcValidateAddressResponse {
|
|
921
|
+
mode: 'validateAddress';
|
|
922
|
+
network: TalkenBtcNetwork;
|
|
923
|
+
address: string;
|
|
924
|
+
isValid: boolean;
|
|
925
|
+
raw?: unknown;
|
|
926
|
+
}
|
|
927
|
+
export interface TalkenTxTvmRequest {
|
|
928
|
+
kind?: 'native' | 'trc20' | 'contract';
|
|
929
|
+
network?: 'tron' | 'tron_nile';
|
|
930
|
+
toAddress?: string;
|
|
931
|
+
amountSun?: string;
|
|
932
|
+
contractAddress?: string;
|
|
933
|
+
amount?: string;
|
|
934
|
+
data?: string;
|
|
935
|
+
feeLimit?: number;
|
|
936
|
+
callValue?: number;
|
|
937
|
+
pin: string;
|
|
938
|
+
waitForConfirmation?: boolean;
|
|
939
|
+
confirmPollMs?: number;
|
|
940
|
+
confirmMaxAttempts?: number;
|
|
941
|
+
email?: string;
|
|
942
|
+
devicePassword?: string;
|
|
943
|
+
}
|
|
944
|
+
export interface TalkenTxResponse {
|
|
945
|
+
txHash: string;
|
|
946
|
+
rawTransaction?: string;
|
|
947
|
+
}
|
|
948
|
+
export interface TalkenGasEstimateRequest {
|
|
949
|
+
network: string;
|
|
950
|
+
from: string;
|
|
951
|
+
to: string;
|
|
952
|
+
value?: string;
|
|
953
|
+
data?: string;
|
|
954
|
+
}
|
|
955
|
+
export interface TalkenWalletscanTokenRequest {
|
|
956
|
+
chainKeys: string;
|
|
957
|
+
contractAddress: string;
|
|
958
|
+
}
|
|
959
|
+
export interface TalkenWalletscanNativesRequest {
|
|
960
|
+
chainKeys: string;
|
|
961
|
+
walletAddress: string;
|
|
962
|
+
}
|
|
963
|
+
export interface TalkenWalletscanNftsRequest {
|
|
964
|
+
chainKeys: string;
|
|
965
|
+
walletAddress: string;
|
|
966
|
+
}
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
AbcError,
|
|
4
4
|
AbcErrorCode,
|
|
5
|
-
AbcStorageKey
|
|
6
|
-
|
|
5
|
+
AbcStorageKey,
|
|
6
|
+
TalkenApiError
|
|
7
|
+
} from "../chunk-D5EFTEOM.js";
|
|
7
8
|
export {
|
|
8
9
|
AbcError,
|
|
9
10
|
AbcErrorCode,
|
|
10
|
-
AbcStorageKey
|
|
11
|
+
AbcStorageKey,
|
|
12
|
+
TalkenApiError
|
|
11
13
|
};
|
|
@@ -35,9 +35,9 @@ import {
|
|
|
35
35
|
throttle,
|
|
36
36
|
validateEmail,
|
|
37
37
|
validatePin
|
|
38
|
-
} from "../chunk-
|
|
39
|
-
import "../chunk-
|
|
40
|
-
import "../chunk-
|
|
38
|
+
} from "../chunk-GO6OLTNF.js";
|
|
39
|
+
import "../chunk-D5EFTEOM.js";
|
|
40
|
+
import "../chunk-YJH4BHSB.js";
|
|
41
41
|
export {
|
|
42
42
|
calculateExpiryTimestamp,
|
|
43
43
|
clearAuthState,
|
|
@@ -3,42 +3,33 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Utilities for generating and managing EVM, Solana, and Bitcoin wallets
|
|
5
5
|
*/
|
|
6
|
-
import type {
|
|
7
|
-
import type { AbcWaasApiClient } from './api';
|
|
8
|
-
import type { AbcBitcoinWallet, AbcEvmWallet, AbcSolanaWallet } from './types';
|
|
6
|
+
import type { AbcBitcoinWallet, AbcEvmWallet, AbcSolanaWallet, AbcTronWallet } from './types';
|
|
9
7
|
/**
|
|
10
8
|
* MPC wallet generation result
|
|
11
|
-
* Supports EVM, Solana,
|
|
9
|
+
* Supports EVM, Solana, Bitcoin, and TRON
|
|
12
10
|
*/
|
|
13
11
|
export interface MpcWalletsResult {
|
|
14
12
|
evmWallet: AbcEvmWallet;
|
|
15
13
|
solanaWallet: AbcSolanaWallet;
|
|
16
14
|
bitcoinWallet: AbcBitcoinWallet;
|
|
15
|
+
tronWallet: AbcTronWallet;
|
|
17
16
|
}
|
|
18
17
|
/**
|
|
19
|
-
* Generate MPC wallets for all supported chains
|
|
18
|
+
* Generate MPC wallets for all supported chains via TalkenApiClient
|
|
20
19
|
*
|
|
21
|
-
* @param client - ABC WaaS client
|
|
22
|
-
* @param uid - User ID from authentication
|
|
23
20
|
* @param hashedPin - SHA-256 hashed PIN
|
|
24
|
-
* @
|
|
25
|
-
* @param bitcoinNetwork - Bitcoin network (default: 'bitcoin')
|
|
26
|
-
* @returns MPC wallets for EVM, Solana, and Bitcoin
|
|
21
|
+
* @returns MPC wallets for EVM, Solana, Bitcoin, and TRON
|
|
27
22
|
*/
|
|
28
|
-
export declare function generateMpcWallets(
|
|
23
|
+
export declare function generateMpcWallets(hashedPin: string): Promise<MpcWalletsResult>;
|
|
29
24
|
/**
|
|
30
|
-
* Recover MPC wallets for all supported chains
|
|
25
|
+
* Recover MPC wallets for all supported chains via TalkenApiClient
|
|
31
26
|
*
|
|
32
|
-
* @param client - ABC WaaS client
|
|
33
|
-
* @param uid - User ID
|
|
34
27
|
* @param hashedPin - SHA-256 hashed PIN
|
|
35
|
-
* @
|
|
36
|
-
* @param bitcoinNetwork - Bitcoin network (default: 'bitcoin')
|
|
37
|
-
* @returns Recovered MPC wallets for EVM, Solana, and Bitcoin
|
|
28
|
+
* @returns Recovered MPC wallets for EVM, Solana, Bitcoin, and TRON
|
|
38
29
|
*/
|
|
39
|
-
export declare function recoverMpcWallets(
|
|
30
|
+
export declare function recoverMpcWallets(hashedPin: string): Promise<MpcWalletsResult>;
|
|
40
31
|
/**
|
|
41
|
-
* Validate MPC wallets result (EVM + Solana + Bitcoin)
|
|
32
|
+
* Validate MPC wallets result (EVM + Solana + Bitcoin + TRON)
|
|
42
33
|
*/
|
|
43
34
|
export declare function validateMpcWallets(result: MpcWalletsResult): {
|
|
44
35
|
valid: boolean;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bifrostWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-B6DM7J4N.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-PODFK4OS.js";
|
|
7
6
|
import "../chunk-MBBGZGXF.js";
|
|
7
|
+
import "../chunk-PODFK4OS.js";
|
|
8
8
|
export {
|
|
9
9
|
bifrostWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
binanceWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-4T3UOJYR.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-PODFK4OS.js";
|
|
7
6
|
import "../chunk-MBBGZGXF.js";
|
|
7
|
+
import "../chunk-PODFK4OS.js";
|
|
8
8
|
export {
|
|
9
9
|
binanceWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bitgetWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-CULIWWLV.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-PODFK4OS.js";
|
|
7
6
|
import "../chunk-MBBGZGXF.js";
|
|
7
|
+
import "../chunk-PODFK4OS.js";
|
|
8
8
|
export {
|
|
9
9
|
bitgetWallet
|
|
10
10
|
};
|