@talken/talkenkit 2.5.0 → 2.5.2
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/{AbcCredentialManager-DDHLW2IH.js → AbcCredentialManager-5W3B7GI4.js} +1 -1
- package/dist/{abcWallet-5GTT47V6.js → abcWallet-HRNBHY5Q.js} +2 -2
- package/dist/{chunk-ALBABQ53.js → chunk-PN6K4CMZ.js} +4 -1
- package/dist/{chunk-REVMSQIO.js → chunk-VCQZZ6SN.js} +478 -58
- package/dist/components/TransactionResultModal/TransactionResultModal.css.d.ts +17 -0
- package/dist/components/TransactionResultModal/TransactionResultModal.d.ts +9 -0
- package/dist/index.css +138 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1341 -977
- package/dist/providers/TransactionResultProvider/TransactionResultContext.d.ts +6 -0
- package/dist/providers/TransactionResultProvider/TransactionResultProvider.d.ts +7 -0
- package/dist/providers/TransactionResultProvider/TransactionResultSingleton.d.ts +16 -0
- package/dist/providers/TransactionResultProvider/index.d.ts +4 -0
- package/dist/providers/TransactionResultProvider/types.d.ts +14 -0
- package/dist/wallets/walletConnectors/abcWallet/AbcCredentialManager.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/AbcEvmAutoConnector.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/abcAccessKeyProvider.d.ts +29 -3
- package/dist/wallets/walletConnectors/abcWallet/abcAccessKeyProvider.js +4 -4
- package/dist/wallets/walletConnectors/abcWallet/abcBitcoinConnector.js +3 -3
- package/dist/wallets/walletConnectors/abcWallet/abcBitcoinProvider.js +3 -3
- package/dist/wallets/walletConnectors/abcWallet/abcConnector.js +8 -8
- package/dist/wallets/walletConnectors/abcWallet/abcProvider.d.ts +8 -0
- package/dist/wallets/walletConnectors/abcWallet/abcProvider.js +5 -5
- package/dist/wallets/walletConnectors/abcWallet/abcSolanaProvider.d.ts +1 -0
- package/dist/wallets/walletConnectors/abcWallet/abcSolanaProvider.js +8 -8
- package/dist/wallets/walletConnectors/abcWallet/abcSolanaWalletAdapter.js +3 -3
- package/dist/wallets/walletConnectors/abcWallet/abcTronProvider.d.ts +1 -0
- package/dist/wallets/walletConnectors/abcWallet/abcTronProvider.js +3 -3
- package/dist/wallets/walletConnectors/abcWallet/abcWallet.js +9 -9
- package/dist/wallets/walletConnectors/abcWallet/api/ConfigApi.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/api/TalkenApiClient.d.ts +25 -0
- package/dist/wallets/walletConnectors/abcWallet/api/TalkenApiClient.js +3 -3
- package/dist/wallets/walletConnectors/abcWallet/api/TokenApi.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/api/WalletscanApi.js +3 -3
- package/dist/wallets/walletConnectors/abcWallet/api/index.js +9 -9
- package/dist/wallets/walletConnectors/abcWallet/constants.d.ts +3 -0
- package/dist/wallets/walletConnectors/abcWallet/constants.js +1 -1
- package/dist/wallets/walletConnectors/abcWallet/index.d.ts +1 -1
- package/dist/wallets/walletConnectors/abcWallet/index.js +21 -21
- package/dist/wallets/walletConnectors/abcWallet/sessionUtils.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/types.d.ts +9 -0
- package/dist/wallets/walletConnectors/abcWallet/utils.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/walletGeneration.js +3 -3
- package/dist/wallets/walletConnectors/{chunk-VDWJ3NQ5.js → chunk-25ZDAJ3L.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-HWXOTEC3.js → chunk-2A5XTST5.js} +64 -14
- package/dist/wallets/walletConnectors/chunk-4JZPP3S7.js +380 -0
- package/dist/wallets/walletConnectors/{chunk-QSP2A4LA.js → chunk-4PDTJS5L.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-IN3HEGZM.js → chunk-645DT4TS.js} +46 -5
- package/dist/wallets/walletConnectors/{chunk-BHEVY4QY.js → chunk-ASYCOXE6.js} +50 -4
- package/dist/wallets/walletConnectors/chunk-BRXYKYKT.js +360 -0
- package/dist/wallets/walletConnectors/{chunk-MO2AXXLI.js → chunk-FKI5AZVH.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-JADQLTFW.js → chunk-H2AZTZMM.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-NULM3THX.js → chunk-HWRZGGGN.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-IPH3SIC3.js +57 -0
- package/dist/wallets/walletConnectors/chunk-JBOKTW2Q.js +360 -0
- package/dist/wallets/walletConnectors/{chunk-TQHS6APN.js → chunk-L6FCF3FH.js} +89 -7
- package/dist/wallets/walletConnectors/{chunk-ACLPF2UW.js → chunk-LIGH2LEU.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-MIX4TRKO.js +194 -0
- package/dist/wallets/walletConnectors/chunk-NP5PWUVU.js +873 -0
- package/dist/wallets/walletConnectors/{chunk-K66HU6GX.js → chunk-OASBABPG.js} +15 -1
- package/dist/wallets/walletConnectors/{chunk-A66MTFML.js → chunk-PF65YS3T.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-6WF4SXLB.js → chunk-QKK3OPQA.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-3LF7FVL6.js → chunk-RGYZNNB6.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-DPTDOCWL.js → chunk-RX2VOIUB.js} +4 -1
- package/dist/wallets/walletConnectors/chunk-TVZHPWFR.js +843 -0
- package/dist/wallets/walletConnectors/{chunk-YV6IZWGE.js → chunk-URS2KVYK.js} +45 -2
- package/dist/wallets/walletConnectors/chunk-WKP53WWR.js +57 -0
- package/dist/wallets/walletConnectors/{chunk-BXH3GDX5.js → chunk-YKFI6ZGM.js} +1 -1
- package/dist/wallets/walletConnectors/index.js +48 -48
- package/package.json +1 -1
- package/dist/wallets/walletConnectors/chunk-S2SQYPGR.js +0 -220
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ShowTransactionResult } from './types';
|
|
2
|
+
export interface TransactionResultContextValue {
|
|
3
|
+
showResult: ShowTransactionResult;
|
|
4
|
+
}
|
|
5
|
+
export declare const TransactionResultContext: import("react").Context<TransactionResultContextValue>;
|
|
6
|
+
export declare function useTransactionResult(): TransactionResultContextValue;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface TransactionResultProviderProps {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare function TransactionResultProvider({ disabled, children, }: TransactionResultProviderProps): React.JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TransactionResult Singleton
|
|
3
|
+
*
|
|
4
|
+
* Bridges class-based providers (abcProvider, abcSolanaProvider, abcTronProvider)
|
|
5
|
+
* with the React TransactionResultProvider.
|
|
6
|
+
*/
|
|
7
|
+
import type { TransactionResultData } from './types';
|
|
8
|
+
export type ShowResultFn = (data: TransactionResultData) => Promise<void>;
|
|
9
|
+
export type ShowPendingFn = (data: Omit<TransactionResultData, 'receipt'>) => void;
|
|
10
|
+
export type UpdateResultFn = (data: TransactionResultData) => void;
|
|
11
|
+
export declare function setShowTransactionResult(fn: ShowResultFn | null): void;
|
|
12
|
+
export declare function getShowTransactionResult(): ShowResultFn | undefined;
|
|
13
|
+
export declare function setShowPendingTransaction(fn: ShowPendingFn | null): void;
|
|
14
|
+
export declare function getShowPendingTransaction(): ShowPendingFn | undefined;
|
|
15
|
+
export declare function setUpdateTransactionResult(fn: UpdateResultFn | null): void;
|
|
16
|
+
export declare function getUpdateTransactionResult(): UpdateResultFn | undefined;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { TransactionResultProvider } from './TransactionResultProvider';
|
|
2
|
+
export { TransactionResultContext, useTransactionResult, } from './TransactionResultContext';
|
|
3
|
+
export { getShowTransactionResult, setShowTransactionResult, getShowPendingTransaction, setShowPendingTransaction, getUpdateTransactionResult, setUpdateTransactionResult, } from './TransactionResultSingleton';
|
|
4
|
+
export type { TransactionChain, TransactionReceipt, TransactionResultData, ShowTransactionResult, } from './types';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type TransactionChain = 'evm' | 'solana' | 'tron';
|
|
2
|
+
export interface TransactionReceipt {
|
|
3
|
+
status: number | null;
|
|
4
|
+
blockNumber: number | null;
|
|
5
|
+
gasUsed: string | null;
|
|
6
|
+
}
|
|
7
|
+
export interface TransactionResultData {
|
|
8
|
+
txHash: string;
|
|
9
|
+
network: string;
|
|
10
|
+
chain: TransactionChain;
|
|
11
|
+
receipt: TransactionReceipt | null;
|
|
12
|
+
explorerUrl?: string;
|
|
13
|
+
}
|
|
14
|
+
export type ShowTransactionResult = (data: TransactionResultData) => Promise<void>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
loadAuthState
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-PF65YS3T.js";
|
|
5
5
|
import "../chunk-4P3SPC44.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-RX2VOIUB.js";
|
|
7
7
|
|
|
8
8
|
// src/wallets/walletConnectors/abcWallet/AbcEvmAutoConnector.tsx
|
|
9
9
|
import { useEffect, useRef } from "react";
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ABC WaaS Access-Key EVM Provider
|
|
3
3
|
*
|
|
4
|
-
* EIP-1193 provider that uses X-Access-Key for server-side signing.
|
|
5
|
-
*
|
|
4
|
+
* EIP-1193 provider that uses X-Access-Key header for server-side signing.
|
|
5
|
+
* Calls the SAME wallet/* endpoints as AbcEvmProvider (PIN mode), but
|
|
6
|
+
* without PIN/email in the body — talken-api auto-injects these from
|
|
7
|
+
* the access-key's encrypted delegated credentials.
|
|
6
8
|
*
|
|
7
9
|
* Used in Telegram Mini App and other environments where the user
|
|
8
10
|
* has a pre-authenticated access-key stored in CloudStorage/localStorage.
|
|
@@ -34,10 +36,34 @@ export declare class AbcAccessKeyProvider extends EventEmitter {
|
|
|
34
36
|
getChainId(): number;
|
|
35
37
|
setAccessKey(key: string): void;
|
|
36
38
|
request(args: RequestArguments): Promise<unknown>;
|
|
39
|
+
/**
|
|
40
|
+
* Send transaction via POST /wallet/tx/evm
|
|
41
|
+
* PIN/email auto-injected server-side from access-key delegated credentials.
|
|
42
|
+
*/
|
|
37
43
|
private sendTransaction;
|
|
44
|
+
/**
|
|
45
|
+
* Personal sign via POST /wallet/sign/evm/personal
|
|
46
|
+
*/
|
|
38
47
|
private personalSign;
|
|
48
|
+
/**
|
|
49
|
+
* Sign typed data via POST /wallet/sign/evm/typed
|
|
50
|
+
*/
|
|
39
51
|
private signTypedData;
|
|
52
|
+
/**
|
|
53
|
+
* Sign EIP-7702 authorization via POST /wallet/sign/authorization
|
|
54
|
+
* Params: [address, authorization] — matches PIN mode (abcProvider.ts)
|
|
55
|
+
*/
|
|
56
|
+
private signAuthorization;
|
|
57
|
+
private ensureWallet;
|
|
58
|
+
/** GET /wallet/address/balance — API uses `network` param (WaaS network name) */
|
|
59
|
+
private getBalance;
|
|
60
|
+
/** GET /wallet/nonce — API uses `network` param (WaaS network name) */
|
|
61
|
+
private getTransactionCount;
|
|
62
|
+
/** POST /wallet/contract/eth-call */
|
|
63
|
+
private ethCall;
|
|
64
|
+
/** POST /wallet/tx/evm with dry-run for gas estimation */
|
|
65
|
+
private estimateGas;
|
|
66
|
+
private apiGet;
|
|
40
67
|
private apiPost;
|
|
41
|
-
private rpcCall;
|
|
42
68
|
}
|
|
43
69
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
AbcAccessKeyProvider
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-4JZPP3S7.js";
|
|
5
|
+
import "../chunk-OASBABPG.js";
|
|
6
|
+
import "../chunk-PF65YS3T.js";
|
|
7
7
|
import "../chunk-4P3SPC44.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-RX2VOIUB.js";
|
|
9
9
|
export {
|
|
10
10
|
AbcAccessKeyProvider
|
|
11
11
|
};
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import {
|
|
3
3
|
AbcBitcoinConnector,
|
|
4
4
|
createAbcBitcoinConnector
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-YKFI6ZGM.js";
|
|
6
6
|
import "../chunk-O4AU63LK.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-PF65YS3T.js";
|
|
8
8
|
import "../chunk-4P3SPC44.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-RX2VOIUB.js";
|
|
10
10
|
export {
|
|
11
11
|
AbcBitcoinConnector,
|
|
12
12
|
createAbcBitcoinConnector
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
AbcBitcoinProvider,
|
|
4
4
|
BITCOIN_NETWORKS,
|
|
5
5
|
BitcoinProviderError
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-RGYZNNB6.js";
|
|
7
|
+
import "../chunk-QKK3OPQA.js";
|
|
8
|
+
import "../chunk-RX2VOIUB.js";
|
|
9
9
|
export {
|
|
10
10
|
AbcBitcoinProvider,
|
|
11
11
|
BITCOIN_NETWORKS,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
abcConnector
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-2A5XTST5.js";
|
|
5
5
|
import "../chunk-R6ZE7JAZ.js";
|
|
6
6
|
import "../chunk-GFWUFYT2.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-4JZPP3S7.js";
|
|
8
8
|
import "../chunk-O4AU63LK.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-L6FCF3FH.js";
|
|
10
|
+
import "../chunk-OASBABPG.js";
|
|
11
|
+
import "../chunk-PF65YS3T.js";
|
|
12
|
+
import "../chunk-NP5PWUVU.js";
|
|
13
13
|
import "../chunk-4P3SPC44.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-QKK3OPQA.js";
|
|
15
|
+
import "../chunk-RX2VOIUB.js";
|
|
16
16
|
export {
|
|
17
17
|
abcConnector
|
|
18
18
|
};
|
|
@@ -147,6 +147,14 @@ export declare class AbcEvmProvider extends EventEmitter {
|
|
|
147
147
|
* Uses ABC WaaS gas estimation API with fallback
|
|
148
148
|
*/
|
|
149
149
|
private eth_estimateGas;
|
|
150
|
+
/**
|
|
151
|
+
* Execute read-only eth_call via talken-api
|
|
152
|
+
*/
|
|
153
|
+
private eth_call;
|
|
154
|
+
/**
|
|
155
|
+
* Get native balance via talken-api
|
|
156
|
+
*/
|
|
157
|
+
private eth_getBalance;
|
|
150
158
|
/**
|
|
151
159
|
* Check if connected
|
|
152
160
|
*/
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
AbcEvmProvider,
|
|
4
4
|
createAbcEvmProvider,
|
|
5
5
|
createAbcProvider
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-L6FCF3FH.js";
|
|
7
|
+
import "../chunk-OASBABPG.js";
|
|
8
|
+
import "../chunk-PF65YS3T.js";
|
|
9
9
|
import "../chunk-4P3SPC44.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-QKK3OPQA.js";
|
|
11
|
+
import "../chunk-RX2VOIUB.js";
|
|
12
12
|
export {
|
|
13
13
|
AbcEvmProvider,
|
|
14
14
|
createAbcEvmProvider,
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import {
|
|
3
3
|
AbcSolanaProvider,
|
|
4
4
|
SolanaProviderError
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-645DT4TS.js";
|
|
6
6
|
import "../chunk-JGXJY3SB.js";
|
|
7
|
-
import "../chunk-OTLZVWY7.js";
|
|
8
|
-
import "../chunk-NULM3THX.js";
|
|
9
|
-
import "../chunk-MO2AXXLI.js";
|
|
10
|
-
import "../chunk-VDWJ3NQ5.js";
|
|
11
7
|
import "../chunk-YPM7FC4M.js";
|
|
12
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-OTLZVWY7.js";
|
|
9
|
+
import "../chunk-HWRZGGGN.js";
|
|
10
|
+
import "../chunk-FKI5AZVH.js";
|
|
11
|
+
import "../chunk-25ZDAJ3L.js";
|
|
12
|
+
import "../chunk-NP5PWUVU.js";
|
|
13
13
|
import "../chunk-4P3SPC44.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-QKK3OPQA.js";
|
|
15
|
+
import "../chunk-RX2VOIUB.js";
|
|
16
16
|
export {
|
|
17
17
|
AbcSolanaProvider,
|
|
18
18
|
SolanaProviderError
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
} from "../chunk-GFWUFYT2.js";
|
|
5
5
|
import {
|
|
6
6
|
createTalkenApiClient
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-NP5PWUVU.js";
|
|
8
8
|
import "../chunk-4P3SPC44.js";
|
|
9
9
|
import {
|
|
10
10
|
getCredentialManager
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-QKK3OPQA.js";
|
|
12
12
|
import {
|
|
13
13
|
STORAGE_PREFIX
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-RX2VOIUB.js";
|
|
15
15
|
|
|
16
16
|
// src/wallets/walletConnectors/abcWallet/abcSolanaWalletAdapter.ts
|
|
17
17
|
import {
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
AbcTronProvider,
|
|
4
4
|
TRON_NETWORKS,
|
|
5
5
|
TronProviderError
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-URS2KVYK.js";
|
|
7
|
+
import "../chunk-QKK3OPQA.js";
|
|
8
|
+
import "../chunk-RX2VOIUB.js";
|
|
9
9
|
export {
|
|
10
10
|
AbcTronProvider,
|
|
11
11
|
TRON_NETWORKS,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
abcWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-WKP53WWR.js";
|
|
5
|
+
import "../chunk-2A5XTST5.js";
|
|
6
6
|
import "../chunk-R6ZE7JAZ.js";
|
|
7
7
|
import "../chunk-GFWUFYT2.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-4JZPP3S7.js";
|
|
9
9
|
import "../chunk-O4AU63LK.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-L6FCF3FH.js";
|
|
11
|
+
import "../chunk-OASBABPG.js";
|
|
12
|
+
import "../chunk-PF65YS3T.js";
|
|
13
|
+
import "../chunk-NP5PWUVU.js";
|
|
14
14
|
import "../chunk-4P3SPC44.js";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-QKK3OPQA.js";
|
|
16
|
+
import "../chunk-RX2VOIUB.js";
|
|
17
17
|
export {
|
|
18
18
|
abcWallet
|
|
19
19
|
};
|
|
@@ -153,6 +153,21 @@ declare class TalkenEvmModule {
|
|
|
153
153
|
* GET /wallet/nonce?network=&address=
|
|
154
154
|
*/
|
|
155
155
|
getNonce(network: string, address: string): Promise<any>;
|
|
156
|
+
/**
|
|
157
|
+
* Get native balance for address
|
|
158
|
+
* GET /wallet/address/balance?network=&address=
|
|
159
|
+
*/
|
|
160
|
+
getBalance(network: string, address: string): Promise<any>;
|
|
161
|
+
/**
|
|
162
|
+
* Execute read-only eth_call
|
|
163
|
+
* POST /wallet/contract/eth-call { network, to, data, from? }
|
|
164
|
+
*/
|
|
165
|
+
ethCall(params: {
|
|
166
|
+
network: string;
|
|
167
|
+
to: string;
|
|
168
|
+
data: string;
|
|
169
|
+
from?: string;
|
|
170
|
+
}): Promise<any>;
|
|
156
171
|
}
|
|
157
172
|
declare class TalkenSolanaModule {
|
|
158
173
|
private client;
|
|
@@ -268,6 +283,16 @@ declare class TalkenTronModule {
|
|
|
268
283
|
* - kind=contract: arbitrary contract call (contractAddress + data)
|
|
269
284
|
*/
|
|
270
285
|
transferTrx(params: TalkenTxTvmRequest): Promise<TalkenTxResponse>;
|
|
286
|
+
/**
|
|
287
|
+
* Get TRON account info (balance, resource, permissions)
|
|
288
|
+
* GET /wallet/tron?mode=account&network=&address=
|
|
289
|
+
*/
|
|
290
|
+
getAccount(network: 'tron' | 'tron_nile', address: string): Promise<any>;
|
|
291
|
+
/**
|
|
292
|
+
* Get TRC20 token balance
|
|
293
|
+
* GET /wallet/tron?mode=trc20Balance&network=&address=&contractAddress=
|
|
294
|
+
*/
|
|
295
|
+
getTrc20Balance(network: 'tron' | 'tron_nile', address: string, contractAddress: string): Promise<any>;
|
|
271
296
|
}
|
|
272
297
|
declare class TalkenWalletscanModule {
|
|
273
298
|
private client;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
TalkenApiClient,
|
|
4
4
|
createTalkenApiClient
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-NP5PWUVU.js";
|
|
6
6
|
import "../../chunk-4P3SPC44.js";
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-QKK3OPQA.js";
|
|
8
|
+
import "../../chunk-RX2VOIUB.js";
|
|
9
9
|
export {
|
|
10
10
|
TalkenApiClient,
|
|
11
11
|
createTalkenApiClient
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
WalletscanApi
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-HWRZGGGN.js";
|
|
5
|
+
import "../../chunk-FKI5AZVH.js";
|
|
6
|
+
import "../../chunk-RX2VOIUB.js";
|
|
7
7
|
export {
|
|
8
8
|
WalletscanApi
|
|
9
9
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../../chunk-JGXJY3SB.js";
|
|
3
|
+
import {
|
|
4
|
+
GasApi
|
|
5
|
+
} from "../../chunk-YPM7FC4M.js";
|
|
3
6
|
import {
|
|
4
7
|
SolanaApi
|
|
5
8
|
} from "../../chunk-OTLZVWY7.js";
|
|
6
9
|
import {
|
|
7
10
|
WalletscanApi
|
|
8
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-HWRZGGGN.js";
|
|
9
12
|
import {
|
|
10
13
|
TokenApi
|
|
11
|
-
} from "../../chunk-
|
|
14
|
+
} from "../../chunk-FKI5AZVH.js";
|
|
12
15
|
import {
|
|
13
16
|
ConfigApi
|
|
14
|
-
} from "../../chunk-
|
|
15
|
-
import {
|
|
16
|
-
GasApi
|
|
17
|
-
} from "../../chunk-YPM7FC4M.js";
|
|
17
|
+
} from "../../chunk-25ZDAJ3L.js";
|
|
18
18
|
import {
|
|
19
19
|
TalkenApiClient,
|
|
20
20
|
createTalkenApiClient
|
|
21
|
-
} from "../../chunk-
|
|
21
|
+
} from "../../chunk-NP5PWUVU.js";
|
|
22
22
|
import "../../chunk-4P3SPC44.js";
|
|
23
|
-
import "../../chunk-
|
|
24
|
-
import "../../chunk-
|
|
23
|
+
import "../../chunk-QKK3OPQA.js";
|
|
24
|
+
import "../../chunk-RX2VOIUB.js";
|
|
25
25
|
export {
|
|
26
26
|
ConfigApi,
|
|
27
27
|
GasApi,
|
|
@@ -218,10 +218,13 @@ export declare const TALKEN_API_ENDPOINTS: {
|
|
|
218
218
|
readonly SOLANA_TX_STATUS: "/wallet/solana/tx-status";
|
|
219
219
|
readonly TX_BTC: "/wallet/tx/btc";
|
|
220
220
|
readonly TX_TVM: "/wallet/tx/tvm";
|
|
221
|
+
readonly TRON_UTIL: "/wallet/tron";
|
|
221
222
|
readonly GAS_PRICE: "/wallet/gas/price";
|
|
222
223
|
readonly GAS_SUGGESTED: "/wallet/gas/suggested";
|
|
223
224
|
readonly GAS_ESTIMATE: "/wallet/gas/estimate";
|
|
224
225
|
readonly NONCE: "/wallet/nonce";
|
|
226
|
+
readonly ADDRESS_BALANCE: "/wallet/address/balance";
|
|
227
|
+
readonly ETH_CALL: "/wallet/contract/eth-call";
|
|
225
228
|
readonly RELAYER_FEE_ESTIMATE: "/relayer/estimate-fee";
|
|
226
229
|
readonly CONFIG_TX_STATUS: "/config/tx-status";
|
|
227
230
|
readonly TOKENS_BALANCES: "/tokens/balances";
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export { abcWallet } from './abcWallet';
|
|
10
10
|
export type { AbcWalletSpecificOptions } from './abcWallet';
|
|
11
|
-
export type { AbcWalletConfig, AbcAuthProvider, AbcUser, AbcWallet, AbcEvmWallet, AbcSolanaWallet, AbcBitcoinWallet, AbcTronWallet, AbcAuthState, AbcLoginParams, AbcWalletParams, AbcSignParams, AbcSignSolanaTransactionParams, AbcSignSolanaMessageParams, AbcSendSolanaTransactionParams, AbcSignBitcoinTransactionParams, AbcSignBitcoinMessageParams, AbcSendBitcoinTransactionParams, AbcSignMessageParams, AbcApiResponse, AbcLoginResponse, AbcWalletResponse, AbcSignatureResponse, AbcOtpResponse, AbcRefreshTokenResponse, AbcPinConfig, AbcChainConfig, AbcConnectorOptions, AbcModalState, AbcEventType, AbcEventListener, BitcoinUtxo, } from './types';
|
|
11
|
+
export type { AbcWalletConfig, AbcAuthProvider, AbcUser, AbcWallet, AbcEvmWallet, AbcSolanaWallet, AbcBitcoinWallet, AbcTronWallet, AbcAuthState, AbcLoginParams, AbcWalletParams, AbcSignParams, AbcSignSolanaTransactionParams, AbcSignSolanaMessageParams, AbcSendSolanaTransactionParams, AbcSignBitcoinTransactionParams, AbcSignBitcoinMessageParams, AbcSendBitcoinTransactionParams, AbcSignMessageParams, AbcApiResponse, AbcLoginResponse, AbcWalletResponse, AbcSignatureResponse, AbcOtpResponse, AbcRefreshTokenResponse, AbcPinConfig, AbcChainConfig, AbcConnectorOptions, AbcModalState, AbcEventType, AbcEventListener, BitcoinUtxo, TalkenTxReceipt, } from './types';
|
|
12
12
|
export { AbcStorageKey, AbcErrorCode, AbcError } from './types';
|
|
13
13
|
export { TalkenApiClient, createTalkenApiClient } from './api';
|
|
14
14
|
export { WalletscanApi, GasApi, ConfigApi, TokenApi, SolanaApi } from './api';
|
|
@@ -5,55 +5,55 @@ import {
|
|
|
5
5
|
fetchWithSessionCheck,
|
|
6
6
|
handleUnauthorizedResponse,
|
|
7
7
|
refreshAccessToken
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-LIGH2LEU.js";
|
|
9
9
|
import {
|
|
10
10
|
generateMpcWallets,
|
|
11
11
|
recoverMpcWallets,
|
|
12
12
|
validateMpcWallets
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-H2AZTZMM.js";
|
|
14
14
|
import {
|
|
15
15
|
AbcTronProvider,
|
|
16
16
|
TRON_NETWORKS,
|
|
17
17
|
TronProviderError
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-URS2KVYK.js";
|
|
19
19
|
import {
|
|
20
20
|
AbcBitcoinConnector,
|
|
21
21
|
createAbcBitcoinConnector
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-YKFI6ZGM.js";
|
|
23
23
|
import {
|
|
24
24
|
AbcBitcoinProvider,
|
|
25
25
|
BITCOIN_NETWORKS,
|
|
26
26
|
BitcoinProviderError
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-RGYZNNB6.js";
|
|
28
28
|
import {
|
|
29
29
|
AbcSolanaProvider,
|
|
30
30
|
SolanaProviderError
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-645DT4TS.js";
|
|
32
32
|
import "../chunk-JGXJY3SB.js";
|
|
33
|
+
import {
|
|
34
|
+
GasApi
|
|
35
|
+
} from "../chunk-YPM7FC4M.js";
|
|
33
36
|
import {
|
|
34
37
|
SolanaApi
|
|
35
38
|
} from "../chunk-OTLZVWY7.js";
|
|
36
39
|
import {
|
|
37
40
|
WalletscanApi
|
|
38
|
-
} from "../chunk-
|
|
41
|
+
} from "../chunk-HWRZGGGN.js";
|
|
39
42
|
import {
|
|
40
43
|
TokenApi
|
|
41
|
-
} from "../chunk-
|
|
44
|
+
} from "../chunk-FKI5AZVH.js";
|
|
42
45
|
import {
|
|
43
46
|
ConfigApi
|
|
44
|
-
} from "../chunk-
|
|
45
|
-
import {
|
|
46
|
-
GasApi
|
|
47
|
-
} from "../chunk-YPM7FC4M.js";
|
|
47
|
+
} from "../chunk-25ZDAJ3L.js";
|
|
48
48
|
import {
|
|
49
49
|
abcWallet
|
|
50
|
-
} from "../chunk-
|
|
50
|
+
} from "../chunk-WKP53WWR.js";
|
|
51
51
|
import {
|
|
52
52
|
abcConnector
|
|
53
|
-
} from "../chunk-
|
|
53
|
+
} from "../chunk-2A5XTST5.js";
|
|
54
54
|
import "../chunk-R6ZE7JAZ.js";
|
|
55
55
|
import "../chunk-GFWUFYT2.js";
|
|
56
|
-
import "../chunk-
|
|
56
|
+
import "../chunk-4JZPP3S7.js";
|
|
57
57
|
import {
|
|
58
58
|
BitcoinNetwork,
|
|
59
59
|
SolanaNetwork,
|
|
@@ -67,8 +67,8 @@ import {
|
|
|
67
67
|
AbcEvmProvider,
|
|
68
68
|
createAbcEvmProvider,
|
|
69
69
|
createAbcProvider
|
|
70
|
-
} from "../chunk-
|
|
71
|
-
import "../chunk-
|
|
70
|
+
} from "../chunk-L6FCF3FH.js";
|
|
71
|
+
import "../chunk-OASBABPG.js";
|
|
72
72
|
import {
|
|
73
73
|
calculateExpiryTimestamp,
|
|
74
74
|
clearAuthState,
|
|
@@ -86,11 +86,11 @@ import {
|
|
|
86
86
|
saveToStorage,
|
|
87
87
|
validateEmail,
|
|
88
88
|
validatePin
|
|
89
|
-
} from "../chunk-
|
|
89
|
+
} from "../chunk-PF65YS3T.js";
|
|
90
90
|
import {
|
|
91
91
|
TalkenApiClient,
|
|
92
92
|
createTalkenApiClient
|
|
93
|
-
} from "../chunk-
|
|
93
|
+
} from "../chunk-NP5PWUVU.js";
|
|
94
94
|
import {
|
|
95
95
|
AbcError,
|
|
96
96
|
AbcErrorCode,
|
|
@@ -98,7 +98,7 @@ import {
|
|
|
98
98
|
} from "../chunk-4P3SPC44.js";
|
|
99
99
|
import {
|
|
100
100
|
getCredentialManager
|
|
101
|
-
} from "../chunk-
|
|
101
|
+
} from "../chunk-QKK3OPQA.js";
|
|
102
102
|
import {
|
|
103
103
|
ABC_EVENTS,
|
|
104
104
|
ABC_FEATURES,
|
|
@@ -120,7 +120,7 @@ import {
|
|
|
120
120
|
STORAGE_VERSION,
|
|
121
121
|
SUCCESS_MESSAGES,
|
|
122
122
|
TOKEN_EXPIRY
|
|
123
|
-
} from "../chunk-
|
|
123
|
+
} from "../chunk-RX2VOIUB.js";
|
|
124
124
|
export {
|
|
125
125
|
ABC_EVENTS,
|
|
126
126
|
ABC_FEATURES,
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
fetchWithSessionCheck,
|
|
6
6
|
handleUnauthorizedResponse,
|
|
7
7
|
refreshAccessToken
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-LIGH2LEU.js";
|
|
9
|
+
import "../chunk-RX2VOIUB.js";
|
|
10
10
|
export {
|
|
11
11
|
SessionExpiredError,
|
|
12
12
|
dispatchSessionExpired,
|