@talken/talkenkit 2.3.10 → 2.3.12
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/__private__/index.d.ts +2 -2
- package/dist/components/ConnectOptions/AbcWaasAuth/AbcWaasAuthFlow.d.ts +83 -0
- package/dist/components/ConnectOptions/AbcWaasAuth/AbcWaasAuthSections.css.d.ts +8 -0
- package/dist/components/ConnectOptions/AbcWaasAuth/AbcWaasAuthSections.d.ts +25 -0
- package/dist/components/ConnectOptions/AbcWaasAuth/hooks/useAbcWaasAuth.d.ts +65 -0
- package/dist/components/ConnectOptions/AbcWaasAuth/hooks/useAbcWaasSocial.d.ts +58 -0
- package/dist/components/ConnectOptions/AbcWaasAuth/hooks/useUserTypeDetection.d.ts +0 -0
- package/dist/components/ConnectOptions/AbcWaasAuth/index.d.ts +6 -0
- package/dist/components/ConnectOptions/AbcWaasAuth/types.d.ts +29 -0
- package/dist/components/ConnectOptions/ConnectDetails.d.ts +1 -1
- package/dist/components/ConnectOptions/ConnectOptionsModal.css.d.ts +4 -0
- package/dist/components/ConnectOptions/ConnectOptionsModal.d.ts +26 -0
- package/dist/components/ConnectOptions/ExternalWallets/EthereumWallet/EthereumWalletList.d.ts +35 -0
- package/dist/components/ConnectOptions/ExternalWallets/EthereumWallet/index.d.ts +6 -0
- package/dist/components/ConnectOptions/ExternalWallets/Popular/PopularWalletList.d.ts +37 -0
- package/dist/components/ConnectOptions/ExternalWallets/Popular/index.d.ts +6 -0
- package/dist/components/ConnectOptions/ExternalWallets/SolanaWallet/SolanaWalletList.d.ts +37 -0
- package/dist/components/ConnectOptions/ExternalWallets/SolanaWallet/index.d.ts +6 -0
- package/dist/components/ConnectOptions/ExternalWallets/WalletList.d.ts +94 -0
- package/dist/components/ConnectOptions/ExternalWallets/hooks/useWalletConnection.d.ts +78 -0
- package/dist/components/ConnectOptions/ExternalWallets/index.d.ts +12 -0
- package/dist/components/ConnectOptions/ExternalWallets/shared/index.d.ts +7 -0
- package/dist/components/ConnectOptions/ExternalWallets/shared/types.d.ts +136 -0
- package/dist/components/ConnectOptions/ExternalWallets/shared/utils.d.ts +68 -0
- package/dist/components/ConnectOptions/PinAuth/PinAuthFlow.d.ts +127 -0
- package/dist/components/ConnectOptions/PinAuth/hooks/index.d.ts +10 -0
- package/dist/components/ConnectOptions/PinAuth/hooks/usePinCreation.d.ts +92 -0
- package/dist/components/ConnectOptions/PinAuth/hooks/usePinVerification.d.ts +114 -0
- package/dist/components/ConnectOptions/PinAuth/hooks/useWalletGeneration.d.ts +93 -0
- package/dist/components/ConnectOptions/PinAuth/index.d.ts +23 -0
- package/dist/index.css +27 -298
- package/dist/index.d.ts +0 -4
- package/dist/index.js +5525 -6410
- package/dist/wallets/walletConnectors/abcWallet/abcBitcoinProvider.js +1 -1
- package/dist/wallets/walletConnectors/abcWallet/abcConnector.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/abcSolanaWallet.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/abcWallet.js +3 -3
- package/dist/wallets/walletConnectors/abcWallet/api/index.js +4 -4
- package/dist/wallets/walletConnectors/abcWallet/index.js +16 -16
- 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-24SQ562R.js +63 -0
- package/dist/wallets/walletConnectors/chunk-3UNSJDAS.js +63 -0
- package/dist/wallets/walletConnectors/chunk-6KUCZXJE.js +63 -0
- package/dist/wallets/walletConnectors/{chunk-34WMJDUY.js → chunk-75W4VLFA.js} +8 -7
- package/dist/wallets/walletConnectors/chunk-ASUECF4H.js +63 -0
- package/dist/wallets/walletConnectors/chunk-GLPRLW3S.js +63 -0
- package/dist/wallets/walletConnectors/chunk-GOPPX56D.js +63 -0
- package/dist/wallets/walletConnectors/chunk-I5V7LWJH.js +63 -0
- package/dist/wallets/walletConnectors/chunk-J4HQCVKX.js +63 -0
- package/dist/wallets/walletConnectors/chunk-PDWD3ZCR.js +63 -0
- package/dist/wallets/walletConnectors/chunk-PHD5KHRQ.js +63 -0
- package/dist/wallets/walletConnectors/chunk-PQJWUKUD.js +63 -0
- package/dist/wallets/walletConnectors/chunk-PZJYVPGG.js +63 -0
- package/dist/wallets/walletConnectors/chunk-Q5B5ICDI.js +63 -0
- package/dist/wallets/walletConnectors/chunk-RYXFFAB2.js +63 -0
- package/dist/wallets/walletConnectors/chunk-VXUJQQDI.js +63 -0
- package/dist/wallets/walletConnectors/chunk-WCPI7IUU.js +63 -0
- package/dist/wallets/walletConnectors/chunk-Z3WO2EBZ.js +63 -0
- package/dist/wallets/walletConnectors/chunk-ZADNKI5I.js +63 -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 +79 -79
- 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/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 +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
abcConnector
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-73B7HWCT.js";
|
|
4
|
+
} from "../chunk-BHMMHU7Y.js";
|
|
6
5
|
import "../chunk-P2E4LSYH.js";
|
|
7
6
|
import "../chunk-G2LI5MVX.js";
|
|
7
|
+
import "../chunk-73B7HWCT.js";
|
|
8
8
|
import "../chunk-W23N7VC4.js";
|
|
9
9
|
import "../chunk-VETRBBA2.js";
|
|
10
10
|
import "../chunk-5UEBEMEE.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
abcSolanaWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-MY5YIDOB.js";
|
|
4
|
+
} from "../chunk-OEB7MRS5.js";
|
|
6
5
|
import "../chunk-AEQOPQL6.js";
|
|
6
|
+
import "../chunk-MY5YIDOB.js";
|
|
7
7
|
import "../chunk-P2E4LSYH.js";
|
|
8
8
|
import "../chunk-G2LI5MVX.js";
|
|
9
9
|
import "../chunk-W23N7VC4.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
abcWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-73B7HWCT.js";
|
|
4
|
+
} from "../chunk-RSZS2RMC.js";
|
|
5
|
+
import "../chunk-BHMMHU7Y.js";
|
|
7
6
|
import "../chunk-P2E4LSYH.js";
|
|
8
7
|
import "../chunk-G2LI5MVX.js";
|
|
8
|
+
import "../chunk-73B7HWCT.js";
|
|
9
9
|
import "../chunk-W23N7VC4.js";
|
|
10
10
|
import "../chunk-VETRBBA2.js";
|
|
11
11
|
import "../chunk-5UEBEMEE.js";
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import {
|
|
3
3
|
AbcWaasApiClient,
|
|
4
4
|
createAbcWaasApiClient
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-IHM7I7D5.js";
|
|
6
6
|
import {
|
|
7
7
|
WalletApi
|
|
8
8
|
} from "../../chunk-JBRW4UTW.js";
|
|
9
|
-
import {
|
|
10
|
-
BitcoinApi
|
|
11
|
-
} from "../../chunk-SPR4W5TG.js";
|
|
12
9
|
import {
|
|
13
10
|
AuthApi
|
|
14
11
|
} from "../../chunk-W7R3JGSC.js";
|
|
12
|
+
import {
|
|
13
|
+
BitcoinApi
|
|
14
|
+
} from "../../chunk-SPR4W5TG.js";
|
|
15
15
|
import {
|
|
16
16
|
SigningApi
|
|
17
17
|
} from "../../chunk-4UGXLYKP.js";
|
|
@@ -2,21 +2,24 @@
|
|
|
2
2
|
import {
|
|
3
3
|
AbcWaasApiClient,
|
|
4
4
|
createAbcWaasApiClient
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-IHM7I7D5.js";
|
|
6
6
|
import "../chunk-JBRW4UTW.js";
|
|
7
7
|
import {
|
|
8
8
|
generateMpcWallets,
|
|
9
9
|
recoverMpcWallets,
|
|
10
10
|
validateMpcWallets
|
|
11
11
|
} from "../chunk-WTYSUOKN.js";
|
|
12
|
+
import "../chunk-W7R3JGSC.js";
|
|
12
13
|
import {
|
|
13
14
|
BitcoinApi
|
|
14
15
|
} from "../chunk-SPR4W5TG.js";
|
|
15
|
-
import "../chunk-W7R3JGSC.js";
|
|
16
16
|
import "../chunk-4UGXLYKP.js";
|
|
17
17
|
import "../chunk-DMRM7XAS.js";
|
|
18
18
|
import "../chunk-KD2OAMDA.js";
|
|
19
19
|
import "../chunk-IOLHAU7H.js";
|
|
20
|
+
import {
|
|
21
|
+
abcSolanaWallet
|
|
22
|
+
} from "../chunk-OEB7MRS5.js";
|
|
20
23
|
import {
|
|
21
24
|
AbcBitcoinConnector,
|
|
22
25
|
createAbcBitcoinConnector
|
|
@@ -25,33 +28,25 @@ import {
|
|
|
25
28
|
AbcBitcoinProvider,
|
|
26
29
|
BITCOIN_NETWORKS,
|
|
27
30
|
BitcoinProviderError
|
|
28
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-75W4VLFA.js";
|
|
29
32
|
import {
|
|
30
33
|
AbcSolProvider
|
|
31
34
|
} from "../chunk-X5LRFFBP.js";
|
|
32
35
|
import {
|
|
33
|
-
|
|
34
|
-
|
|
36
|
+
AbcSolanaConnector,
|
|
37
|
+
createAbcSolanaConnector
|
|
38
|
+
} from "../chunk-AEQOPQL6.js";
|
|
35
39
|
import {
|
|
36
40
|
AbcSolanaProvider,
|
|
37
41
|
SOLANA_NETWORKS,
|
|
38
42
|
createAbcSolanaProvider
|
|
39
43
|
} from "../chunk-MY5YIDOB.js";
|
|
40
|
-
import {
|
|
41
|
-
AbcSolanaConnector,
|
|
42
|
-
createAbcSolanaConnector
|
|
43
|
-
} from "../chunk-AEQOPQL6.js";
|
|
44
44
|
import {
|
|
45
45
|
abcWallet
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-RSZS2RMC.js";
|
|
47
47
|
import {
|
|
48
48
|
abcConnector
|
|
49
|
-
} from "../chunk-
|
|
50
|
-
import {
|
|
51
|
-
AbcEvmProvider,
|
|
52
|
-
createAbcEvmProvider,
|
|
53
|
-
createAbcProvider
|
|
54
|
-
} from "../chunk-73B7HWCT.js";
|
|
49
|
+
} from "../chunk-BHMMHU7Y.js";
|
|
55
50
|
import {
|
|
56
51
|
AbcWaasClient,
|
|
57
52
|
createAbcWaasClient
|
|
@@ -59,6 +54,11 @@ import {
|
|
|
59
54
|
import {
|
|
60
55
|
secure_default
|
|
61
56
|
} from "../chunk-G2LI5MVX.js";
|
|
57
|
+
import {
|
|
58
|
+
AbcEvmProvider,
|
|
59
|
+
createAbcEvmProvider,
|
|
60
|
+
createAbcProvider
|
|
61
|
+
} from "../chunk-73B7HWCT.js";
|
|
62
62
|
import {
|
|
63
63
|
calculateExpiryTimestamp,
|
|
64
64
|
clearAuthState,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bifrostWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-WXXI4WBF.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-MBBGZGXF.js";
|
|
7
6
|
import "../chunk-PODFK4OS.js";
|
|
7
|
+
import "../chunk-MBBGZGXF.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-TUDZHFVC.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-MBBGZGXF.js";
|
|
7
6
|
import "../chunk-PODFK4OS.js";
|
|
7
|
+
import "../chunk-MBBGZGXF.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-ITLTDJ3D.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-MBBGZGXF.js";
|
|
7
6
|
import "../chunk-PODFK4OS.js";
|
|
7
|
+
import "../chunk-MBBGZGXF.js";
|
|
8
8
|
export {
|
|
9
9
|
bitgetWallet
|
|
10
10
|
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
WalletApi
|
|
4
|
+
} from "./chunk-JBRW4UTW.js";
|
|
5
|
+
import {
|
|
6
|
+
AuthApi
|
|
7
|
+
} from "./chunk-W7R3JGSC.js";
|
|
8
|
+
import {
|
|
9
|
+
SigningApi
|
|
10
|
+
} from "./chunk-4UGXLYKP.js";
|
|
11
|
+
import {
|
|
12
|
+
SolanaApi
|
|
13
|
+
} from "./chunk-DMRM7XAS.js";
|
|
14
|
+
import {
|
|
15
|
+
TransactionApi
|
|
16
|
+
} from "./chunk-KD2OAMDA.js";
|
|
17
|
+
import {
|
|
18
|
+
BitcoinApi
|
|
19
|
+
} from "./chunk-SPR4W5TG.js";
|
|
20
|
+
|
|
21
|
+
// src/wallets/walletConnectors/abcWallet/api/index.ts
|
|
22
|
+
var AbcWaasApiClient = class {
|
|
23
|
+
constructor(config) {
|
|
24
|
+
this.auth = new AuthApi(config);
|
|
25
|
+
this.wallet = new WalletApi(config);
|
|
26
|
+
this.transaction = new TransactionApi(config);
|
|
27
|
+
this.signing = new SigningApi(config);
|
|
28
|
+
this.solana = new SolanaApi(config);
|
|
29
|
+
this.bitcoin = new BitcoinApi(config);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if user is authenticated
|
|
33
|
+
*/
|
|
34
|
+
isAuthenticated() {
|
|
35
|
+
return this.auth.isAuthenticated();
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if access token is expired
|
|
39
|
+
*/
|
|
40
|
+
isTokenExpired() {
|
|
41
|
+
return this.auth.isTokenExpired();
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Get current access token
|
|
45
|
+
*/
|
|
46
|
+
getAccessToken() {
|
|
47
|
+
return this.auth.getAccessToken();
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Logout (clear tokens)
|
|
51
|
+
*/
|
|
52
|
+
async logout() {
|
|
53
|
+
await this.auth.logout();
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
function createAbcWaasApiClient(config) {
|
|
57
|
+
return new AbcWaasApiClient(config);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export {
|
|
61
|
+
AbcWaasApiClient,
|
|
62
|
+
createAbcWaasApiClient
|
|
63
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
WalletApi
|
|
4
|
+
} from "./chunk-JBRW4UTW.js";
|
|
5
|
+
import {
|
|
6
|
+
SigningApi
|
|
7
|
+
} from "./chunk-4UGXLYKP.js";
|
|
8
|
+
import {
|
|
9
|
+
AuthApi
|
|
10
|
+
} from "./chunk-W7R3JGSC.js";
|
|
11
|
+
import {
|
|
12
|
+
BitcoinApi
|
|
13
|
+
} from "./chunk-SPR4W5TG.js";
|
|
14
|
+
import {
|
|
15
|
+
SolanaApi
|
|
16
|
+
} from "./chunk-DMRM7XAS.js";
|
|
17
|
+
import {
|
|
18
|
+
TransactionApi
|
|
19
|
+
} from "./chunk-KD2OAMDA.js";
|
|
20
|
+
|
|
21
|
+
// src/wallets/walletConnectors/abcWallet/api/index.ts
|
|
22
|
+
var AbcWaasApiClient = class {
|
|
23
|
+
constructor(config) {
|
|
24
|
+
this.auth = new AuthApi(config);
|
|
25
|
+
this.wallet = new WalletApi(config);
|
|
26
|
+
this.transaction = new TransactionApi(config);
|
|
27
|
+
this.signing = new SigningApi(config);
|
|
28
|
+
this.solana = new SolanaApi(config);
|
|
29
|
+
this.bitcoin = new BitcoinApi(config);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if user is authenticated
|
|
33
|
+
*/
|
|
34
|
+
isAuthenticated() {
|
|
35
|
+
return this.auth.isAuthenticated();
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if access token is expired
|
|
39
|
+
*/
|
|
40
|
+
isTokenExpired() {
|
|
41
|
+
return this.auth.isTokenExpired();
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Get current access token
|
|
45
|
+
*/
|
|
46
|
+
getAccessToken() {
|
|
47
|
+
return this.auth.getAccessToken();
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Logout (clear tokens)
|
|
51
|
+
*/
|
|
52
|
+
async logout() {
|
|
53
|
+
await this.auth.logout();
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
function createAbcWaasApiClient(config) {
|
|
57
|
+
return new AbcWaasApiClient(config);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export {
|
|
61
|
+
AbcWaasApiClient,
|
|
62
|
+
createAbcWaasApiClient
|
|
63
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
TransactionApi
|
|
4
|
+
} from "./chunk-HDYBRMYW.js";
|
|
5
|
+
import {
|
|
6
|
+
BitcoinApi
|
|
7
|
+
} from "./chunk-IA4EQFSS.js";
|
|
8
|
+
import {
|
|
9
|
+
SigningApi
|
|
10
|
+
} from "./chunk-TUUNSVKZ.js";
|
|
11
|
+
import {
|
|
12
|
+
AuthApi
|
|
13
|
+
} from "./chunk-RLBGBBIO.js";
|
|
14
|
+
import {
|
|
15
|
+
SolanaApi
|
|
16
|
+
} from "./chunk-2J66VMY5.js";
|
|
17
|
+
import {
|
|
18
|
+
WalletApi
|
|
19
|
+
} from "./chunk-ESRU5KCF.js";
|
|
20
|
+
|
|
21
|
+
// src/wallets/walletConnectors/abcWallet/api/index.ts
|
|
22
|
+
var AbcWaasApiClient = class {
|
|
23
|
+
constructor(config) {
|
|
24
|
+
this.auth = new AuthApi(config);
|
|
25
|
+
this.wallet = new WalletApi(config);
|
|
26
|
+
this.transaction = new TransactionApi(config);
|
|
27
|
+
this.signing = new SigningApi(config);
|
|
28
|
+
this.solana = new SolanaApi(config);
|
|
29
|
+
this.bitcoin = new BitcoinApi(config);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if user is authenticated
|
|
33
|
+
*/
|
|
34
|
+
isAuthenticated() {
|
|
35
|
+
return this.auth.isAuthenticated();
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if access token is expired
|
|
39
|
+
*/
|
|
40
|
+
isTokenExpired() {
|
|
41
|
+
return this.auth.isTokenExpired();
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Get current access token
|
|
45
|
+
*/
|
|
46
|
+
getAccessToken() {
|
|
47
|
+
return this.auth.getAccessToken();
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Logout (clear tokens)
|
|
51
|
+
*/
|
|
52
|
+
async logout() {
|
|
53
|
+
await this.auth.logout();
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
function createAbcWaasApiClient(config) {
|
|
57
|
+
return new AbcWaasApiClient(config);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export {
|
|
61
|
+
AbcWaasApiClient,
|
|
62
|
+
createAbcWaasApiClient
|
|
63
|
+
};
|
|
@@ -386,18 +386,19 @@ var AbcBitcoinProvider = class extends EventEmitter {
|
|
|
386
386
|
this.clearUtxoCache();
|
|
387
387
|
return txHash;
|
|
388
388
|
} catch (error) {
|
|
389
|
-
|
|
390
|
-
|
|
389
|
+
if (error.message?.includes("cancelled") || error.message?.includes("rejected")) {
|
|
390
|
+
console.log("[BitcoinProvider] \u2139\uFE0F User cancelled transaction");
|
|
391
391
|
throw new BitcoinProviderError(
|
|
392
|
-
BitcoinErrorCode.
|
|
393
|
-
"
|
|
392
|
+
BitcoinErrorCode.USER_REJECTED,
|
|
393
|
+
"User rejected transaction",
|
|
394
394
|
error
|
|
395
395
|
);
|
|
396
396
|
}
|
|
397
|
-
|
|
397
|
+
console.error("[BitcoinProvider] \u274C Transaction failed:", error.message);
|
|
398
|
+
if (error.message?.includes("insufficient")) {
|
|
398
399
|
throw new BitcoinProviderError(
|
|
399
|
-
BitcoinErrorCode.
|
|
400
|
-
"
|
|
400
|
+
BitcoinErrorCode.INSUFFICIENT_FUNDS,
|
|
401
|
+
"Insufficient BTC balance",
|
|
401
402
|
error
|
|
402
403
|
);
|
|
403
404
|
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
SolanaApi
|
|
4
|
+
} from "./chunk-2J66VMY5.js";
|
|
5
|
+
import {
|
|
6
|
+
AuthApi
|
|
7
|
+
} from "./chunk-RLBGBBIO.js";
|
|
8
|
+
import {
|
|
9
|
+
BitcoinApi
|
|
10
|
+
} from "./chunk-IA4EQFSS.js";
|
|
11
|
+
import {
|
|
12
|
+
SigningApi
|
|
13
|
+
} from "./chunk-TUUNSVKZ.js";
|
|
14
|
+
import {
|
|
15
|
+
TransactionApi
|
|
16
|
+
} from "./chunk-HDYBRMYW.js";
|
|
17
|
+
import {
|
|
18
|
+
WalletApi
|
|
19
|
+
} from "./chunk-ESRU5KCF.js";
|
|
20
|
+
|
|
21
|
+
// src/wallets/walletConnectors/abcWallet/api/index.ts
|
|
22
|
+
var AbcWaasApiClient = class {
|
|
23
|
+
constructor(config) {
|
|
24
|
+
this.auth = new AuthApi(config);
|
|
25
|
+
this.wallet = new WalletApi(config);
|
|
26
|
+
this.transaction = new TransactionApi(config);
|
|
27
|
+
this.signing = new SigningApi(config);
|
|
28
|
+
this.solana = new SolanaApi(config);
|
|
29
|
+
this.bitcoin = new BitcoinApi(config);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if user is authenticated
|
|
33
|
+
*/
|
|
34
|
+
isAuthenticated() {
|
|
35
|
+
return this.auth.isAuthenticated();
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if access token is expired
|
|
39
|
+
*/
|
|
40
|
+
isTokenExpired() {
|
|
41
|
+
return this.auth.isTokenExpired();
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Get current access token
|
|
45
|
+
*/
|
|
46
|
+
getAccessToken() {
|
|
47
|
+
return this.auth.getAccessToken();
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Logout (clear tokens)
|
|
51
|
+
*/
|
|
52
|
+
async logout() {
|
|
53
|
+
await this.auth.logout();
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
function createAbcWaasApiClient(config) {
|
|
57
|
+
return new AbcWaasApiClient(config);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export {
|
|
61
|
+
AbcWaasApiClient,
|
|
62
|
+
createAbcWaasApiClient
|
|
63
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
WalletApi
|
|
4
|
+
} from "./chunk-ESRU5KCF.js";
|
|
5
|
+
import {
|
|
6
|
+
BitcoinApi
|
|
7
|
+
} from "./chunk-IA4EQFSS.js";
|
|
8
|
+
import {
|
|
9
|
+
AuthApi
|
|
10
|
+
} from "./chunk-RLBGBBIO.js";
|
|
11
|
+
import {
|
|
12
|
+
SigningApi
|
|
13
|
+
} from "./chunk-TUUNSVKZ.js";
|
|
14
|
+
import {
|
|
15
|
+
SolanaApi
|
|
16
|
+
} from "./chunk-2J66VMY5.js";
|
|
17
|
+
import {
|
|
18
|
+
TransactionApi
|
|
19
|
+
} from "./chunk-HDYBRMYW.js";
|
|
20
|
+
|
|
21
|
+
// src/wallets/walletConnectors/abcWallet/api/index.ts
|
|
22
|
+
var AbcWaasApiClient = class {
|
|
23
|
+
constructor(config) {
|
|
24
|
+
this.auth = new AuthApi(config);
|
|
25
|
+
this.wallet = new WalletApi(config);
|
|
26
|
+
this.transaction = new TransactionApi(config);
|
|
27
|
+
this.signing = new SigningApi(config);
|
|
28
|
+
this.solana = new SolanaApi(config);
|
|
29
|
+
this.bitcoin = new BitcoinApi(config);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if user is authenticated
|
|
33
|
+
*/
|
|
34
|
+
isAuthenticated() {
|
|
35
|
+
return this.auth.isAuthenticated();
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if access token is expired
|
|
39
|
+
*/
|
|
40
|
+
isTokenExpired() {
|
|
41
|
+
return this.auth.isTokenExpired();
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Get current access token
|
|
45
|
+
*/
|
|
46
|
+
getAccessToken() {
|
|
47
|
+
return this.auth.getAccessToken();
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Logout (clear tokens)
|
|
51
|
+
*/
|
|
52
|
+
async logout() {
|
|
53
|
+
await this.auth.logout();
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
function createAbcWaasApiClient(config) {
|
|
57
|
+
return new AbcWaasApiClient(config);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export {
|
|
61
|
+
AbcWaasApiClient,
|
|
62
|
+
createAbcWaasApiClient
|
|
63
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
BitcoinApi
|
|
4
|
+
} from "./chunk-SPR4W5TG.js";
|
|
5
|
+
import {
|
|
6
|
+
SolanaApi
|
|
7
|
+
} from "./chunk-DMRM7XAS.js";
|
|
8
|
+
import {
|
|
9
|
+
AuthApi
|
|
10
|
+
} from "./chunk-W7R3JGSC.js";
|
|
11
|
+
import {
|
|
12
|
+
TransactionApi
|
|
13
|
+
} from "./chunk-KD2OAMDA.js";
|
|
14
|
+
import {
|
|
15
|
+
WalletApi
|
|
16
|
+
} from "./chunk-JBRW4UTW.js";
|
|
17
|
+
import {
|
|
18
|
+
SigningApi
|
|
19
|
+
} from "./chunk-4UGXLYKP.js";
|
|
20
|
+
|
|
21
|
+
// src/wallets/walletConnectors/abcWallet/api/index.ts
|
|
22
|
+
var AbcWaasApiClient = class {
|
|
23
|
+
constructor(config) {
|
|
24
|
+
this.auth = new AuthApi(config);
|
|
25
|
+
this.wallet = new WalletApi(config);
|
|
26
|
+
this.transaction = new TransactionApi(config);
|
|
27
|
+
this.signing = new SigningApi(config);
|
|
28
|
+
this.solana = new SolanaApi(config);
|
|
29
|
+
this.bitcoin = new BitcoinApi(config);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if user is authenticated
|
|
33
|
+
*/
|
|
34
|
+
isAuthenticated() {
|
|
35
|
+
return this.auth.isAuthenticated();
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if access token is expired
|
|
39
|
+
*/
|
|
40
|
+
isTokenExpired() {
|
|
41
|
+
return this.auth.isTokenExpired();
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Get current access token
|
|
45
|
+
*/
|
|
46
|
+
getAccessToken() {
|
|
47
|
+
return this.auth.getAccessToken();
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Logout (clear tokens)
|
|
51
|
+
*/
|
|
52
|
+
async logout() {
|
|
53
|
+
await this.auth.logout();
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
function createAbcWaasApiClient(config) {
|
|
57
|
+
return new AbcWaasApiClient(config);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export {
|
|
61
|
+
AbcWaasApiClient,
|
|
62
|
+
createAbcWaasApiClient
|
|
63
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
TransactionApi
|
|
4
|
+
} from "./chunk-KD2OAMDA.js";
|
|
5
|
+
import {
|
|
6
|
+
BitcoinApi
|
|
7
|
+
} from "./chunk-SPR4W5TG.js";
|
|
8
|
+
import {
|
|
9
|
+
AuthApi
|
|
10
|
+
} from "./chunk-W7R3JGSC.js";
|
|
11
|
+
import {
|
|
12
|
+
SigningApi
|
|
13
|
+
} from "./chunk-4UGXLYKP.js";
|
|
14
|
+
import {
|
|
15
|
+
SolanaApi
|
|
16
|
+
} from "./chunk-DMRM7XAS.js";
|
|
17
|
+
import {
|
|
18
|
+
WalletApi
|
|
19
|
+
} from "./chunk-JBRW4UTW.js";
|
|
20
|
+
|
|
21
|
+
// src/wallets/walletConnectors/abcWallet/api/index.ts
|
|
22
|
+
var AbcWaasApiClient = class {
|
|
23
|
+
constructor(config) {
|
|
24
|
+
this.auth = new AuthApi(config);
|
|
25
|
+
this.wallet = new WalletApi(config);
|
|
26
|
+
this.transaction = new TransactionApi(config);
|
|
27
|
+
this.signing = new SigningApi(config);
|
|
28
|
+
this.solana = new SolanaApi(config);
|
|
29
|
+
this.bitcoin = new BitcoinApi(config);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if user is authenticated
|
|
33
|
+
*/
|
|
34
|
+
isAuthenticated() {
|
|
35
|
+
return this.auth.isAuthenticated();
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if access token is expired
|
|
39
|
+
*/
|
|
40
|
+
isTokenExpired() {
|
|
41
|
+
return this.auth.isTokenExpired();
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Get current access token
|
|
45
|
+
*/
|
|
46
|
+
getAccessToken() {
|
|
47
|
+
return this.auth.getAccessToken();
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Logout (clear tokens)
|
|
51
|
+
*/
|
|
52
|
+
async logout() {
|
|
53
|
+
await this.auth.logout();
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
function createAbcWaasApiClient(config) {
|
|
57
|
+
return new AbcWaasApiClient(config);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export {
|
|
61
|
+
AbcWaasApiClient,
|
|
62
|
+
createAbcWaasApiClient
|
|
63
|
+
};
|