@talken/talkenkit 2.7.5-beta.3 → 2.7.5-beta.4

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.
Files changed (43) hide show
  1. package/README.md +287 -0
  2. package/dist/abcWallet-LKCI4CKL.js +184 -0
  3. package/dist/chunk-AUHDS56C.js +7852 -0
  4. package/dist/hooks/useMultiChainBalances.d.ts +1 -1
  5. package/dist/hooks/useXrplWallet.d.ts +2 -0
  6. package/dist/index.css +1338 -1338
  7. package/dist/index.js +717 -701
  8. package/dist/wallets/walletConnectors/abcWallet/AbcEvmAutoConnector.js +1 -1
  9. package/dist/wallets/walletConnectors/abcWallet/AbstractChainProvider.js +2 -2
  10. package/dist/wallets/walletConnectors/abcWallet/abcBitcoinConnector.js +3 -3
  11. package/dist/wallets/walletConnectors/abcWallet/abcBitcoinProvider.js +3 -3
  12. package/dist/wallets/walletConnectors/abcWallet/abcConnector.js +14 -14
  13. package/dist/wallets/walletConnectors/abcWallet/abcProvider.js +7 -7
  14. package/dist/wallets/walletConnectors/abcWallet/abcSolanaProvider.js +11 -11
  15. package/dist/wallets/walletConnectors/abcWallet/abcTronProvider.js +3 -3
  16. package/dist/wallets/walletConnectors/abcWallet/abcWallet.js +15 -15
  17. package/dist/wallets/walletConnectors/abcWallet/abcXrplProvider.d.ts +4 -0
  18. package/dist/wallets/walletConnectors/abcWallet/abcXrplProvider.js +3 -3
  19. package/dist/wallets/walletConnectors/abcWallet/api/TalkenApiClient.js +7 -7
  20. package/dist/wallets/walletConnectors/abcWallet/api/index.js +10 -10
  21. package/dist/wallets/walletConnectors/abcWallet/api/modules/auth.js +1 -1
  22. package/dist/wallets/walletConnectors/abcWallet/api/modules/wallet.d.ts +1 -1
  23. package/dist/wallets/walletConnectors/abcWallet/api/modules/xrp.d.ts +5 -0
  24. package/dist/wallets/walletConnectors/abcWallet/api/modules/xrp.js +1 -1
  25. package/dist/wallets/walletConnectors/abcWallet/index.js +55 -55
  26. package/dist/wallets/walletConnectors/abcWallet/networkConfig.js +1 -1
  27. package/dist/wallets/walletConnectors/abcWallet/types/api.types.d.ts +13 -0
  28. package/dist/wallets/walletConnectors/abcWallet/types.js +1 -1
  29. package/dist/wallets/walletConnectors/abcWallet/utils.js +1 -1
  30. package/dist/wallets/walletConnectors/abcWallet/walletGeneration.js +5 -5
  31. package/dist/wallets/walletConnectors/chunk-3F5K7F23.js +370 -0
  32. package/dist/wallets/walletConnectors/chunk-6NCKGQS2.js +58 -0
  33. package/dist/wallets/walletConnectors/chunk-C3HMOBQJ.js +370 -0
  34. package/dist/wallets/walletConnectors/chunk-DPQKYZHU.js +341 -0
  35. package/dist/wallets/walletConnectors/chunk-EVRAPZ3L.js +3030 -0
  36. package/dist/wallets/walletConnectors/chunk-FNGIOKCY.js +341 -0
  37. package/dist/wallets/walletConnectors/chunk-KXPCOVNY.js +215 -0
  38. package/dist/wallets/walletConnectors/chunk-ND2EIWHQ.js +345 -0
  39. package/dist/wallets/walletConnectors/chunk-SFDW4JEL.js +218 -0
  40. package/dist/wallets/walletConnectors/chunk-Y27URHIQ.js +58 -0
  41. package/dist/wallets/walletConnectors/chunk-ZOBSRU6L.js +137 -0
  42. package/dist/wallets/walletConnectors/index.js +77 -77
  43. package/package.json +2 -2
@@ -0,0 +1,137 @@
1
+ "use client";
2
+ import {
3
+ TALKEN_API_ENDPOINTS
4
+ } from "./chunk-3Z5DO42M.js";
5
+
6
+ // src/wallets/walletConnectors/abcWallet/api/modules/xrp.ts
7
+ var TalkenXrpModule = class {
8
+ constructor(client) {
9
+ this.client = client;
10
+ }
11
+ /**
12
+ * Execute XRP transfer (integrated sign + broadcast)
13
+ * POST /wallet/tx/xrp
14
+ * - kind=native: XRP transfer (amount in drops)
15
+ * - kind=fungible: IOU token transfer (currency + issuer)
16
+ */
17
+ async transferXrp(params) {
18
+ return this.client.post(
19
+ TALKEN_API_ENDPOINTS.TX_XRP,
20
+ params
21
+ );
22
+ }
23
+ /**
24
+ * Create trustline for receiving fungible tokens
25
+ * POST /wallet/xrp/trustline
26
+ */
27
+ async createTrustline(params) {
28
+ return this.client.post(
29
+ TALKEN_API_ENDPOINTS.XRP_TRUSTLINE,
30
+ params
31
+ );
32
+ }
33
+ /**
34
+ * Get XRP balance
35
+ * GET /wallet/xrp?mode=balance&network=&address=
36
+ */
37
+ async getBalance(network, address) {
38
+ return this.client.get(
39
+ `${TALKEN_API_ENDPOINTS.XRP_UTIL}?mode=balance&network=${encodeURIComponent(network)}&address=${encodeURIComponent(address)}`
40
+ );
41
+ }
42
+ /**
43
+ * Get FT (fungible token) balances
44
+ * GET /wallet/xrp?mode=ftBalances&network=&address=&issuer=
45
+ */
46
+ async getFtBalances(network, address, issuer) {
47
+ let url = `${TALKEN_API_ENDPOINTS.XRP_UTIL}?mode=ftBalances&network=${encodeURIComponent(network)}&address=${encodeURIComponent(address)}`;
48
+ if (issuer)
49
+ url += `&issuer=${encodeURIComponent(issuer)}`;
50
+ return this.client.get(url);
51
+ }
52
+ /**
53
+ * Get account detail (account_info)
54
+ * GET /wallet/xrp?mode=account&network=&address=
55
+ */
56
+ async getAccount(network, address) {
57
+ return this.client.get(
58
+ `${TALKEN_API_ENDPOINTS.XRP_UTIL}?mode=account&network=${encodeURIComponent(network)}&address=${encodeURIComponent(address)}`
59
+ );
60
+ }
61
+ /**
62
+ * Estimate native XRP transfer fee
63
+ * GET /wallet/xrp?mode=nativeFee&network=&destination=&amount=
64
+ */
65
+ async getNativeFee(network, destination, amount) {
66
+ let url = `${TALKEN_API_ENDPOINTS.XRP_UTIL}?mode=nativeFee&network=${encodeURIComponent(network)}`;
67
+ if (destination)
68
+ url += `&destination=${encodeURIComponent(destination)}`;
69
+ if (amount)
70
+ url += `&amount=${encodeURIComponent(amount)}`;
71
+ return this.client.get(url);
72
+ }
73
+ /**
74
+ * Estimate token transfer fee
75
+ * GET /wallet/xrp?mode=tokenFee&network=&destination=&currency=&issuer=
76
+ */
77
+ async getTokenFee(network, destination, currency, issuer) {
78
+ let url = `${TALKEN_API_ENDPOINTS.XRP_UTIL}?mode=tokenFee&network=${encodeURIComponent(network)}`;
79
+ if (destination)
80
+ url += `&destination=${encodeURIComponent(destination)}`;
81
+ if (currency)
82
+ url += `&currency=${encodeURIComponent(currency)}`;
83
+ if (issuer)
84
+ url += `&issuer=${encodeURIComponent(issuer)}`;
85
+ return this.client.get(url);
86
+ }
87
+ /**
88
+ * Calculate maximum sendable XRP amount
89
+ * GET /wallet/xrp?mode=prepareMax&network=&account=&fee=
90
+ */
91
+ async getPrepareMax(network, account, fee) {
92
+ let url = `${TALKEN_API_ENDPOINTS.XRP_UTIL}?mode=prepareMax&network=${encodeURIComponent(network)}&account=${encodeURIComponent(account)}`;
93
+ if (fee)
94
+ url += `&fee=${encodeURIComponent(fee)}`;
95
+ return this.client.get(url);
96
+ }
97
+ /**
98
+ * Check trustline status
99
+ * GET /wallet/xrp?mode=trustlineStatus&network=&address=&issuer=&currency=
100
+ */
101
+ async getTrustlineStatus(network, address, issuer, currency) {
102
+ return this.client.get(
103
+ `${TALKEN_API_ENDPOINTS.XRP_UTIL}?mode=trustlineStatus&network=${encodeURIComponent(network)}&address=${encodeURIComponent(address)}&issuer=${encodeURIComponent(issuer)}&currency=${encodeURIComponent(currency)}`
104
+ );
105
+ }
106
+ /**
107
+ * Validate XRP address
108
+ * GET /wallet/xrp?mode=validateAddress&network=&address=
109
+ */
110
+ async validateAddress(network, address) {
111
+ return this.client.get(
112
+ `${TALKEN_API_ENDPOINTS.XRP_UTIL}?mode=validateAddress&network=${encodeURIComponent(network)}&address=${encodeURIComponent(address)}`
113
+ );
114
+ }
115
+ /**
116
+ * Get transaction by hash
117
+ * GET /wallet/xrp?mode=transaction&network=&txHash=
118
+ */
119
+ async getTransaction(network, txHash) {
120
+ return this.client.get(
121
+ `${TALKEN_API_ENDPOINTS.XRP_UTIL}?mode=transaction&network=${encodeURIComponent(network)}&txHash=${encodeURIComponent(txHash)}`
122
+ );
123
+ }
124
+ /**
125
+ * Get XRP server info (reserve, fee, ledger state)
126
+ * GET /wallet/xrp?mode=serverInfo&network=
127
+ */
128
+ async getServerInfo(network) {
129
+ return this.client.get(
130
+ `${TALKEN_API_ENDPOINTS.XRP_UTIL}?mode=serverInfo&network=${encodeURIComponent(network)}`
131
+ );
132
+ }
133
+ };
134
+
135
+ export {
136
+ TalkenXrpModule
137
+ };
@@ -1,56 +1,56 @@
1
1
  "use client";
2
2
  import {
3
3
  abcWallet
4
- } from "./chunk-IGZOEVKN.js";
4
+ } from "./chunk-6NCKGQS2.js";
5
5
  import {
6
6
  zerionWallet
7
7
  } from "./chunk-55PYSSYF.js";
8
- import "./chunk-UPQCNBIW.js";
9
- import "./chunk-F74FF7OS.js";
8
+ import "./chunk-FNGIOKCY.js";
9
+ import "./chunk-GFWUFYT2.js";
10
+ import "./chunk-KXPCOVNY.js";
11
+ import "./chunk-EVRAPZ3L.js";
12
+ import "./chunk-VVXSRRXI.js";
13
+ import "./chunk-3F5K7F23.js";
10
14
  import "./chunk-XDNFWX2X.js";
11
15
  import "./chunk-4Y7YP4IR.js";
12
- import "./chunk-3NWM24MH.js";
13
- import "./chunk-2LOET2LX.js";
14
16
  import "./chunk-ICGK5DGY.js";
15
17
  import "./chunk-TYJR3KGY.js";
18
+ import "./chunk-2LOET2LX.js";
16
19
  import "./chunk-2LH53QET.js";
17
- import "./chunk-MU46EEQT.js";
18
- import "./chunk-X3DT5G3F.js";
19
- import "./chunk-GFWUFYT2.js";
20
- import "./chunk-E4B4UELA.js";
21
- import "./chunk-QLPGMWGT.js";
20
+ import "./chunk-3NWM24MH.js";
21
+ import "./chunk-ZOBSRU6L.js";
22
+ import "./chunk-TLRR3FFT.js";
22
23
  import "./chunk-YXWHHI4S.js";
24
+ import "./chunk-R6ZE7JAZ.js";
23
25
  import "./chunk-CBKU2ERC.js";
24
- import "./chunk-VVXSRRXI.js";
26
+ import "./chunk-762I67R6.js";
27
+ import "./chunk-YNE2UX2Z.js";
25
28
  import "./chunk-3IYXGND5.js";
26
- import "./chunk-PR5O3NNO.js";
27
29
  import "./chunk-YTIJR6EJ.js";
30
+ import "./chunk-PR5O3NNO.js";
28
31
  import "./chunk-JU6AJBYS.js";
29
32
  import "./chunk-BUAWEYGV.js";
30
33
  import "./chunk-RKQS3OQG.js";
31
- import "./chunk-R6ZE7JAZ.js";
32
- import "./chunk-762I67R6.js";
33
- import "./chunk-YNE2UX2Z.js";
34
34
  import "./chunk-NEMEHJ72.js";
35
35
  import "./chunk-3Z5DO42M.js";
36
- import {
37
- tokenaryWallet
38
- } from "./chunk-AGYNSAGV.js";
39
36
  import {
40
37
  trustWallet
41
38
  } from "./chunk-PS6VC6X2.js";
39
+ import {
40
+ tokenPocketWallet
41
+ } from "./chunk-D24ZTR45.js";
42
42
  import {
43
43
  uniswapWallet
44
44
  } from "./chunk-DLDZUVTB.js";
45
45
  import {
46
46
  valoraWallet
47
47
  } from "./chunk-CVUEWUDI.js";
48
- import {
49
- wigwamWallet
50
- } from "./chunk-HDXO2VO3.js";
51
48
  import {
52
49
  walletConnectWallet
53
50
  } from "./chunk-QE5JINVZ.js";
51
+ import {
52
+ wigwamWallet
53
+ } from "./chunk-HDXO2VO3.js";
54
54
  import {
55
55
  xdefiWallet
56
56
  } from "./chunk-LAXV47ZW.js";
@@ -63,36 +63,36 @@ import {
63
63
  import {
64
64
  safepalWallet
65
65
  } from "./chunk-6UT4SIPZ.js";
66
- import {
67
- seifWallet
68
- } from "./chunk-7W4Q633H.js";
69
66
  import {
70
67
  safeWallet
71
68
  } from "./chunk-MOGBMZDG.js";
72
69
  import {
73
- subWallet
74
- } from "./chunk-BVYGUONL.js";
70
+ seifWallet
71
+ } from "./chunk-7W4Q633H.js";
75
72
  import {
76
73
  tahoWallet
77
74
  } from "./chunk-ETH7KTEX.js";
75
+ import {
76
+ subWallet
77
+ } from "./chunk-BVYGUONL.js";
78
78
  import {
79
79
  talismanWallet
80
80
  } from "./chunk-CV5HJWQX.js";
81
81
  import {
82
- tokenPocketWallet
83
- } from "./chunk-D24ZTR45.js";
82
+ tokenaryWallet
83
+ } from "./chunk-AGYNSAGV.js";
84
84
  import {
85
85
  oneKeyWallet
86
86
  } from "./chunk-WQX4JNSR.js";
87
+ import {
88
+ okxWallet
89
+ } from "./chunk-N4US77B2.js";
87
90
  import {
88
91
  paraSwapWallet
89
92
  } from "./chunk-FF7ZXD5C.js";
90
93
  import {
91
94
  phantomWallet
92
95
  } from "./chunk-M3L6IDTW.js";
93
- import {
94
- oktoWallet
95
- } from "./chunk-7SSXG35M.js";
96
96
  import {
97
97
  rabbyWallet
98
98
  } from "./chunk-I232AKC4.js";
@@ -105,125 +105,125 @@ import {
105
105
  import {
106
106
  roninWallet
107
107
  } from "./chunk-TP7VE6CR.js";
108
- import {
109
- kresusWallet
110
- } from "./chunk-YEPLVWRU.js";
111
108
  import {
112
109
  magicEdenWallet
113
110
  } from "./chunk-6MKGDGZC.js";
114
- import {
115
- mewWallet
116
- } from "./chunk-SNL7AQZC.js";
117
111
  import {
118
112
  metaMaskWallet
119
113
  } from "./chunk-DB7MZG7R.js";
120
114
  import {
121
- okxWallet
122
- } from "./chunk-N4US77B2.js";
115
+ kaikasWallet
116
+ } from "./chunk-PWGB7WJS.js";
117
+ import {
118
+ mewWallet
119
+ } from "./chunk-SNL7AQZC.js";
123
120
  import {
124
121
  nestWallet
125
122
  } from "./chunk-V4DYVGON.js";
123
+ import {
124
+ oneInchWallet
125
+ } from "./chunk-OJT577AY.js";
126
+ import {
127
+ oktoWallet
128
+ } from "./chunk-7SSXG35M.js";
126
129
  import {
127
130
  omniWallet
128
131
  } from "./chunk-5DLRROWS.js";
129
132
  import {
130
- oneInchWallet
131
- } from "./chunk-OJT577AY.js";
133
+ gateWallet
134
+ } from "./chunk-S25DFPKE.js";
132
135
  import {
133
- imTokenWallet
134
- } from "./chunk-GASVLJPX.js";
136
+ injectedWallet
137
+ } from "./chunk-DWN4FQRW.js";
135
138
  import {
136
139
  iopayWallet
137
140
  } from "./chunk-4KTCNBEZ.js";
138
141
  import {
139
142
  kaiaWallet
140
143
  } from "./chunk-JCW7Y5AF.js";
141
- import {
142
- injectedWallet
143
- } from "./chunk-DWN4FQRW.js";
144
- import {
145
- kaikasWallet
146
- } from "./chunk-PWGB7WJS.js";
147
144
  import {
148
145
  klipWallet
149
146
  } from "./chunk-Y3ITXHBE.js";
150
147
  import {
151
148
  krakenWallet
152
149
  } from "./chunk-CYOZFCR6.js";
150
+ import {
151
+ kresusWallet
152
+ } from "./chunk-YEPLVWRU.js";
153
153
  import {
154
154
  ledgerWallet
155
155
  } from "./chunk-BF3VSNPL.js";
156
156
  import {
157
157
  dawnWallet
158
158
  } from "./chunk-P7L4LLUH.js";
159
- import {
160
- enkryptWallet
161
- } from "./chunk-PD4VAFOJ.js";
162
159
  import {
163
160
  desigWallet
164
161
  } from "./chunk-5DEGWPQO.js";
165
162
  import {
166
- coreWallet
167
- } from "./chunk-EV4S6LIH.js";
163
+ foxWallet
164
+ } from "./chunk-IVLX2RF5.js";
165
+ import {
166
+ enkryptWallet
167
+ } from "./chunk-PD4VAFOJ.js";
168
168
  import {
169
169
  frameWallet
170
170
  } from "./chunk-37QSOQFN.js";
171
171
  import {
172
- gateWallet
173
- } from "./chunk-S25DFPKE.js";
174
- import {
175
- foxWallet
176
- } from "./chunk-IVLX2RF5.js";
172
+ clvWallet
173
+ } from "./chunk-QHXBBEB2.js";
177
174
  import {
178
175
  frontierWallet
179
176
  } from "./chunk-KJYEUYDB.js";
177
+ import {
178
+ imTokenWallet
179
+ } from "./chunk-GASVLJPX.js";
180
+ import {
181
+ bitgetWallet
182
+ } from "./chunk-DKEP5NZT.js";
183
+ import {
184
+ bloomWallet
185
+ } from "./chunk-3KPCADAF.js";
180
186
  import {
181
187
  braveWallet
182
188
  } from "./chunk-7AOQK5GH.js";
183
189
  import {
184
190
  bybitWallet
185
191
  } from "./chunk-2AJYFWBT.js";
186
- import {
187
- clvWallet
188
- } from "./chunk-QHXBBEB2.js";
189
- import {
190
- bitverseWallet
191
- } from "./chunk-6HCSSBZY.js";
192
192
  import {
193
193
  coin98Wallet
194
194
  } from "./chunk-RN23EOYO.js";
195
195
  import {
196
196
  coinbaseWallet
197
197
  } from "./chunk-UENRQ4DQ.js";
198
- import {
199
- bloomWallet
200
- } from "./chunk-3KPCADAF.js";
201
198
  import {
202
199
  compassWallet
203
200
  } from "./chunk-DK4AJRIP.js";
204
201
  import {
205
- argentWallet
206
- } from "./chunk-5QDAPSZZ.js";
202
+ coreWallet
203
+ } from "./chunk-EV4S6LIH.js";
207
204
  import {
208
205
  berasigWallet
209
206
  } from "./chunk-6WB5NVHI.js";
210
207
  import {
211
- bestWallet
212
- } from "./chunk-U7C4Y4UW.js";
208
+ argentWallet
209
+ } from "./chunk-5QDAPSZZ.js";
213
210
  import {
214
211
  bifrostWallet
215
212
  } from "./chunk-TAOBQCBQ.js";
216
213
  import {
217
214
  binanceWallet
218
215
  } from "./chunk-LGGIEH7O.js";
216
+ import "./chunk-RETKWSKD.js";
219
217
  import {
220
- bitskiWallet
221
- } from "./chunk-QIR4GIBB.js";
218
+ bestWallet
219
+ } from "./chunk-U7C4Y4UW.js";
222
220
  import {
223
- bitgetWallet
224
- } from "./chunk-DKEP5NZT.js";
225
- import "./chunk-RETKWSKD.js";
221
+ bitverseWallet
222
+ } from "./chunk-6HCSSBZY.js";
226
223
  import "./chunk-PODFK4OS.js";
224
+ import {
225
+ bitskiWallet
226
+ } from "./chunk-QIR4GIBB.js";
227
227
  import "./chunk-PONHGUSY.js";
228
228
  export {
229
229
  abcWallet,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talken/talkenkit",
3
- "version": "2.7.5-beta.3",
3
+ "version": "2.7.5-beta.4",
4
4
  "description": "The best way to connect a wallet 🌈 🧰",
5
5
  "files": [
6
6
  "dist",
@@ -26,7 +26,7 @@
26
26
  "build": "node build.js",
27
27
  "build:watch": "node build.js --watch",
28
28
  "dev": "pnpm build:watch & pnpm typegen:watch",
29
- "prepare": "pnpm build",
29
+ "prepare": "echo skipping prepare",
30
30
  "prebuild": "pnpm typegen",
31
31
  "typecheck": "pnpm tsc --noEmit",
32
32
  "typegen": "tsc --emitDeclarationOnly || true",