@ecency/sdk 1.2.0 → 1.3.0

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/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { UseMutationOptions, MutationKey, QueryClient, QueryKey, InfiniteData, UseQueryOptions, UseInfiniteQueryOptions } from '@tanstack/react-query';
3
3
  import * as _hiveio_dhive from '@hiveio/dhive';
4
- import { Authority, PrivateKey, AuthorityType, PublicKey, Operation, Client } from '@hiveio/dhive';
4
+ import { Authority, PrivateKey, AuthorityType, PublicKey, Operation, Client, SMTAsset } from '@hiveio/dhive';
5
5
  import * as _hiveio_dhive_lib_chain_rc from '@hiveio/dhive/lib/chain/rc';
6
6
 
7
7
  interface AccountFollowStats {
@@ -650,6 +650,28 @@ declare function getDynamicPropsQueryOptions(): _tanstack_react_query.OmitKeyof<
650
650
  };
651
651
  };
652
652
 
653
+ declare function encodeObj(o: any): string;
654
+ declare function decodeObj(o: any): any;
655
+
656
+ declare enum Symbol {
657
+ HIVE = "HIVE",
658
+ HBD = "HBD",
659
+ VESTS = "VESTS",
660
+ SPK = "SPK"
661
+ }
662
+ declare enum NaiMap {
663
+ "@@000000021" = "HIVE",
664
+ "@@000000013" = "HBD",
665
+ "@@000000037" = "VESTS"
666
+ }
667
+ interface Asset {
668
+ amount: number;
669
+ symbol: Symbol;
670
+ }
671
+ declare function parseAsset(sval: string | SMTAsset): Asset;
672
+
673
+ declare function getBoundFetch(): typeof fetch;
674
+
653
675
  declare function getTrendingTagsQueryOptions(limit?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseInfiniteQueryOptions<string[], Error, _tanstack_react_query.InfiniteData<string[], unknown>, string[], {
654
676
  afterTag: string;
655
677
  }>, "queryFn"> & {
@@ -1072,4 +1094,4 @@ declare function getCommunityPermissions({ communityType, userRole, subscribed,
1072
1094
  isModerator: boolean;
1073
1095
  };
1074
1096
 
1075
- export { type AccountBookmark, type AccountFavorite, type AccountFollowStats, type AccountProfile, type AccountRelationship, type AccountReputation, CONFIG, type CantAfford, type Communities, type Community, type CommunityRole, type CommunityTeam, type CommunityType, ConfigManager, type DynamicProps, index as EcencyAnalytics, EcencyQueriesManager, type Fragment, type FullAccount, type GameClaim, type GetGameStatus, type GetRecoveriesEmailResponse, HiveSignerIntegration, keychain as Keychain, type Keys, type Payer, ROLES, type RcStats, type Recoveries, type StatsResponse, type StoringUser, ThreeSpeakIntegration, type ThreeSpeakVideo, type TrendingTag, broadcastJson, checkUsernameWalletsPendingQueryOptions, dedupeAndSortKeyAuths, getAccessToken, getAccountFullQueryOptions, getAccountPendingRecoveryQueryOptions, getAccountRcQueryOptions, getAccountRecoveriesQueryOptions, getAccountSubscriptionsQueryOptions, getActiveAccountBookmarksQueryOptions, getActiveAccountFavouritesQueryOptions, getChainPropertiesQueryOptions, getCommunitiesQueryOptions, getCommunityContextQueryOptions, getCommunityPermissions, getCommunityType, getDynamicPropsQueryOptions, getFragmentsQueryOptions, getGameStatusCheckQueryOptions, getHivePoshLinksQueryOptions, getLoginType, getPostingKey, getPromotedPostsQuery, getQueryClient, getRcStatsQueryOptions, getRefreshToken, getRelationshipBetweenAccountsQueryOptions, getSearchAccountsByUsernameQueryOptions, getStatsQueryOptions, getTrendingTagsQueryOptions, getUser, makeQueryClient, roleMap, useAccountFavouriteAdd, useAccountFavouriteDelete, useAccountRelationsUpdate, useAccountRevokeKey, useAccountRevokePosting, useAccountUpdate, useAccountUpdateKeyAuths, useAccountUpdatePassword, useAccountUpdateRecovery, useAddFragment, useBookmarkAdd, useBookmarkDelete, useBroadcastMutation, useEditFragment, useGameClaim, useRemoveFragment, useSignOperationByHivesigner, useSignOperationByKey, useSignOperationByKeychain };
1097
+ export { type AccountBookmark, type AccountFavorite, type AccountFollowStats, type AccountProfile, type AccountRelationship, type AccountReputation, type Asset, CONFIG, type CantAfford, type Communities, type Community, type CommunityRole, type CommunityTeam, type CommunityType, ConfigManager, type DynamicProps, index as EcencyAnalytics, EcencyQueriesManager, type Fragment, type FullAccount, type GameClaim, type GetGameStatus, type GetRecoveriesEmailResponse, HiveSignerIntegration, keychain as Keychain, type Keys, NaiMap, type Payer, ROLES, type RcStats, type Recoveries, type StatsResponse, type StoringUser, Symbol, ThreeSpeakIntegration, type ThreeSpeakVideo, type TrendingTag, broadcastJson, checkUsernameWalletsPendingQueryOptions, decodeObj, dedupeAndSortKeyAuths, encodeObj, getAccessToken, getAccountFullQueryOptions, getAccountPendingRecoveryQueryOptions, getAccountRcQueryOptions, getAccountRecoveriesQueryOptions, getAccountSubscriptionsQueryOptions, getActiveAccountBookmarksQueryOptions, getActiveAccountFavouritesQueryOptions, getBoundFetch, getChainPropertiesQueryOptions, getCommunitiesQueryOptions, getCommunityContextQueryOptions, getCommunityPermissions, getCommunityType, getDynamicPropsQueryOptions, getFragmentsQueryOptions, getGameStatusCheckQueryOptions, getHivePoshLinksQueryOptions, getLoginType, getPostingKey, getPromotedPostsQuery, getQueryClient, getRcStatsQueryOptions, getRefreshToken, getRelationshipBetweenAccountsQueryOptions, getSearchAccountsByUsernameQueryOptions, getStatsQueryOptions, getTrendingTagsQueryOptions, getUser, makeQueryClient, parseAsset, roleMap, useAccountFavouriteAdd, useAccountFavouriteDelete, useAccountRelationsUpdate, useAccountRevokeKey, useAccountRevokePosting, useAccountUpdate, useAccountUpdateKeyAuths, useAccountUpdatePassword, useAccountUpdateRecovery, useAddFragment, useBookmarkAdd, useBookmarkDelete, useBroadcastMutation, useEditFragment, useGameClaim, useRemoveFragment, useSignOperationByHivesigner, useSignOperationByKey, useSignOperationByKeychain };
package/dist/index.mjs CHANGED
@@ -66,6 +66,9 @@ var ConfigManager;
66
66
  })(ConfigManager || (ConfigManager = {}));
67
67
 
68
68
  // src/modules/core/utils/decoder-encoder.ts
69
+ function encodeObj(o) {
70
+ return btoa(JSON.stringify(o));
71
+ }
69
72
  function decodeObj(o) {
70
73
  let dataToParse = atob(o);
71
74
  if (dataToParse[0] !== "{") {
@@ -105,6 +108,18 @@ function parseAsset(sval) {
105
108
  }
106
109
  }
107
110
 
111
+ // src/modules/core/utils/get-bound-fetch.ts
112
+ var cachedFetch;
113
+ function getBoundFetch() {
114
+ if (!cachedFetch) {
115
+ if (typeof globalThis.fetch !== "function") {
116
+ throw new Error("[Ecency][SDK] - global fetch is not available");
117
+ }
118
+ cachedFetch = globalThis.fetch.bind(globalThis);
119
+ }
120
+ return cachedFetch;
121
+ }
122
+
108
123
  // src/modules/core/storage.ts
109
124
  var getUser = (username) => {
110
125
  try {
@@ -168,6 +183,12 @@ var customJson = (account, id, key, json, display_msg, rpc = null) => new Promis
168
183
  });
169
184
 
170
185
  // src/modules/core/mutations/use-broadcast-mutation.ts
186
+ var getBoundFetch2 = () => {
187
+ if (typeof window !== "undefined" && typeof window.fetch === "function") {
188
+ return window.fetch.bind(window);
189
+ }
190
+ return globalThis.fetch;
191
+ };
171
192
  function useBroadcastMutation(mutationKey = [], username, operations, onSuccess = () => {
172
193
  }) {
173
194
  return useMutation({
@@ -197,10 +218,25 @@ function useBroadcastMutation(mutationKey = [], username, operations, onSuccess
197
218
  }
198
219
  let token = getAccessToken(username);
199
220
  if (token) {
200
- const response = await new hs.Client({
201
- accessToken: token
202
- }).broadcast(operations(payload));
203
- return response.result;
221
+ const f = getBoundFetch2();
222
+ const res = await f("https://hivesigner.com/api/broadcast", {
223
+ method: "POST",
224
+ headers: {
225
+ Authorization: token,
226
+ "Content-Type": "application/json",
227
+ Accept: "application/json"
228
+ },
229
+ body: JSON.stringify({ operations: operations(payload) })
230
+ });
231
+ if (!res.ok) {
232
+ const txt = await res.text().catch(() => "");
233
+ throw new Error(`[Hivesigner] ${res.status} ${res.statusText} ${txt}`);
234
+ }
235
+ const json = await res.json();
236
+ if (json?.errors) {
237
+ throw new Error(`[Hivesigner] ${JSON.stringify(json.errors)}`);
238
+ }
239
+ return json.result;
204
240
  }
205
241
  throw new Error(
206
242
  "[SDK][Broadcast] \u2013 cannot broadcast w/o posting key or token"
@@ -455,7 +491,8 @@ function checkUsernameWalletsPendingQueryOptions(username) {
455
491
  return queryOptions({
456
492
  queryKey: ["accounts", "check-wallet-pending", username],
457
493
  queryFn: async () => {
458
- const response = await fetch(
494
+ const fetchApi = getBoundFetch();
495
+ const response = await fetchApi(
459
496
  CONFIG.privateApiHost + "/private-api/wallets-chkuser",
460
497
  {
461
498
  method: "POST",
@@ -512,7 +549,8 @@ function getActiveAccountBookmarksQueryOptions(activeUsername) {
512
549
  if (!activeUsername) {
513
550
  throw new Error("[SDK][Accounts][Bookmarks] \u2013 no active user");
514
551
  }
515
- const response = await fetch(
552
+ const fetchApi = getBoundFetch();
553
+ const response = await fetchApi(
516
554
  CONFIG.privateApiHost + "/private-api/bookmarks",
517
555
  {
518
556
  method: "POST",
@@ -534,7 +572,8 @@ function getActiveAccountFavouritesQueryOptions(activeUsername) {
534
572
  if (!activeUsername) {
535
573
  throw new Error("[SDK][Accounts][Favourites] \u2013 no active user");
536
574
  }
537
- const response = await fetch(
575
+ const fetchApi = getBoundFetch();
576
+ const response = await fetchApi(
538
577
  CONFIG.privateApiHost + "/private-api/favorites",
539
578
  {
540
579
  method: "POST",
@@ -553,7 +592,8 @@ function getAccountRecoveriesQueryOptions(username) {
553
592
  enabled: !!username,
554
593
  queryKey: ["accounts", "recoveries", username],
555
594
  queryFn: async () => {
556
- const response = await fetch(
595
+ const fetchApi = getBoundFetch();
596
+ const response = await fetchApi(
557
597
  CONFIG.privateApiHost + "/private-api/recoveries",
558
598
  {
559
599
  method: "POST",
@@ -685,7 +725,8 @@ function useBookmarkAdd(username, onSuccess, onError) {
685
725
  if (!username) {
686
726
  throw new Error("[SDK][Account][Bookmarks] \u2013 no active user");
687
727
  }
688
- const response = await fetch(
728
+ const fetchApi = getBoundFetch();
729
+ const response = await fetchApi(
689
730
  CONFIG.privateApiHost + "/private-api/bookmarks-add",
690
731
  {
691
732
  method: "POST",
@@ -717,7 +758,8 @@ function useBookmarkDelete(username, onSuccess, onError) {
717
758
  if (!username) {
718
759
  throw new Error("[SDK][Account][Bookmarks] \u2013 no active user");
719
760
  }
720
- const response = await fetch(
761
+ const fetchApi = getBoundFetch();
762
+ const response = await fetchApi(
721
763
  CONFIG.privateApiHost + "/private-api/bookmarks-delete",
722
764
  {
723
765
  method: "POST",
@@ -748,7 +790,8 @@ function useAccountFavouriteAdd(username, onSuccess, onError) {
748
790
  if (!username) {
749
791
  throw new Error("[SDK][Account][Bookmarks] \u2013 no active user");
750
792
  }
751
- const response = await fetch(
793
+ const fetchApi = getBoundFetch();
794
+ const response = await fetchApi(
752
795
  CONFIG.privateApiHost + "/private-api/favorites-add",
753
796
  {
754
797
  method: "POST",
@@ -779,7 +822,8 @@ function useAccountFavouriteDelete(username, onSuccess, onError) {
779
822
  if (!username) {
780
823
  throw new Error("[SDK][Account][Bookmarks] \u2013 no active user");
781
824
  }
782
- const response = await fetch(
825
+ const fetchApi = getBoundFetch();
826
+ const response = await fetchApi(
783
827
  CONFIG.privateApiHost + "/private-api/favorites-delete",
784
828
  {
785
829
  method: "POST",
@@ -962,7 +1006,8 @@ function useAccountUpdateRecovery(username, options) {
962
1006
  extensions: []
963
1007
  };
964
1008
  if (type === "ecency") {
965
- return fetch(CONFIG.privateApiHost + "/private-api/recoveries-add", {
1009
+ const fetchApi = getBoundFetch();
1010
+ return fetchApi(CONFIG.privateApiHost + "/private-api/recoveries-add", {
966
1011
  method: "POST",
967
1012
  body: JSON.stringify({
968
1013
  code: getAccessToken(data.name),
@@ -1107,7 +1152,8 @@ function getFragmentsQueryOptions(username) {
1107
1152
  return queryOptions({
1108
1153
  queryKey: ["posts", "fragments", username],
1109
1154
  queryFn: async () => {
1110
- const response = await fetch(
1155
+ const fetchApi = getBoundFetch();
1156
+ const response = await fetchApi(
1111
1157
  CONFIG.privateApiHost + "/private-api/fragments",
1112
1158
  {
1113
1159
  method: "POST",
@@ -1134,7 +1180,8 @@ function getPromotedPostsQuery(type = "feed") {
1134
1180
  if (type === "waves") {
1135
1181
  url.searchParams.append("short_content", "1");
1136
1182
  }
1137
- const response = await fetch(url.toString(), {
1183
+ const fetchApi = getBoundFetch();
1184
+ const response = await fetchApi(url.toString(), {
1138
1185
  method: "GET",
1139
1186
  headers: {
1140
1187
  "Content-Type": "application/json"
@@ -1149,7 +1196,8 @@ function useAddFragment(username) {
1149
1196
  return useMutation({
1150
1197
  mutationKey: ["posts", "add-fragment", username],
1151
1198
  mutationFn: async ({ title, body }) => {
1152
- const response = await fetch(
1199
+ const fetchApi = getBoundFetch();
1200
+ const response = await fetchApi(
1153
1201
  CONFIG.privateApiHost + "/private-api/fragments-add",
1154
1202
  {
1155
1203
  method: "POST",
@@ -1177,7 +1225,8 @@ function useEditFragment(username, fragmentId) {
1177
1225
  return useMutation({
1178
1226
  mutationKey: ["posts", "edit-fragment", username, fragmentId],
1179
1227
  mutationFn: async ({ title, body }) => {
1180
- const response = await fetch(
1228
+ const fetchApi = getBoundFetch();
1229
+ const response = await fetchApi(
1181
1230
  CONFIG.privateApiHost + "/private-api/fragments-update",
1182
1231
  {
1183
1232
  method: "POST",
@@ -1214,16 +1263,19 @@ function useEditFragment(username, fragmentId) {
1214
1263
  function useRemoveFragment(username, fragmentId) {
1215
1264
  return useMutation({
1216
1265
  mutationKey: ["posts", "remove-fragment", username],
1217
- mutationFn: async () => fetch(CONFIG.privateApiHost + "/private-api/fragments-delete", {
1218
- method: "POST",
1219
- body: JSON.stringify({
1220
- code: getAccessToken(username),
1221
- id: fragmentId
1222
- }),
1223
- headers: {
1224
- "Content-Type": "application/json"
1225
- }
1226
- }),
1266
+ mutationFn: async () => {
1267
+ const fetchApi = getBoundFetch();
1268
+ return fetchApi(CONFIG.privateApiHost + "/private-api/fragments-delete", {
1269
+ method: "POST",
1270
+ body: JSON.stringify({
1271
+ code: getAccessToken(username),
1272
+ id: fragmentId
1273
+ }),
1274
+ headers: {
1275
+ "Content-Type": "application/json"
1276
+ }
1277
+ });
1278
+ },
1227
1279
  onSuccess() {
1228
1280
  getQueryClient().setQueryData(
1229
1281
  getFragmentsQueryOptions(username).queryKey,
@@ -1245,7 +1297,8 @@ function useRecordActivity(username, activityType) {
1245
1297
  if (!activityType) {
1246
1298
  throw new Error("[SDK][Analytics] \u2013 no activity type provided");
1247
1299
  }
1248
- await fetch(CONFIG.plausibleHost + "/api/event", {
1300
+ const fetchApi = getBoundFetch();
1301
+ await fetchApi(CONFIG.plausibleHost + "/api/event", {
1249
1302
  method: "POST",
1250
1303
  headers: {
1251
1304
  "Content-Type": "application/json"
@@ -1304,7 +1357,8 @@ function getAccountTokenQueryOptions(username) {
1304
1357
  if (!username) {
1305
1358
  throw new Error("[SDK][Integrations][3Speak] \u2013\xA0anon user");
1306
1359
  }
1307
- const response = await fetch(
1360
+ const fetchApi = getBoundFetch();
1361
+ const response = await fetchApi(
1308
1362
  `https://studio.3speak.tv/mobile/login?username=${username}&hivesigner=true`,
1309
1363
  {
1310
1364
  headers: {
@@ -1335,7 +1389,8 @@ function getAccountVideosQueryOptions(username) {
1335
1389
  const token = getQueryClient().getQueryData(
1336
1390
  getAccountTokenQueryOptions(username).queryKey
1337
1391
  );
1338
- const response = await fetch(
1392
+ const fetchApi = getBoundFetch();
1393
+ const response = await fetchApi(
1339
1394
  `https://studio.3speak.tv/mobile/api/my-videos`,
1340
1395
  {
1341
1396
  headers: {
@@ -1357,7 +1412,8 @@ function getHivePoshLinksQueryOptions(username) {
1357
1412
  return queryOptions({
1358
1413
  queryKey: ["integrations", "hiveposh", "links", username],
1359
1414
  queryFn: async () => {
1360
- const response = await fetch(
1415
+ const fetchApi = getBoundFetch();
1416
+ const response = await fetchApi(
1361
1417
  `https://hiveposh.com/api/v0/linked-accounts/${username}`,
1362
1418
  {
1363
1419
  headers: {
@@ -1388,7 +1444,8 @@ function getStatsQueryOptions({
1388
1444
  return queryOptions({
1389
1445
  queryKey: ["integrations", "plausible", url, dimensions, metrics],
1390
1446
  queryFn: async () => {
1391
- const response = await fetch(`https://ecency.com/api/stats`, {
1447
+ const fetchApi = getBoundFetch();
1448
+ const response = await fetchApi(`https://ecency.com/api/stats`, {
1392
1449
  method: "POST",
1393
1450
  body: JSON.stringify({
1394
1451
  metrics,
@@ -1435,7 +1492,8 @@ function getGameStatusCheckQueryOptions(username, gameType) {
1435
1492
  if (!username) {
1436
1493
  throw new Error("[SDK][Games] \u2013 anon user in status check");
1437
1494
  }
1438
- const response = await fetch(
1495
+ const fetchApi = getBoundFetch();
1496
+ const response = await fetchApi(
1439
1497
  CONFIG.privateApiHost + "/private-api/get-game",
1440
1498
  {
1441
1499
  method: "POST",
@@ -1463,7 +1521,8 @@ function useGameClaim(username, gameType, key) {
1463
1521
  if (!username) {
1464
1522
  throw new Error("[SDK][Games] \u2013 anon user in game post");
1465
1523
  }
1466
- const response = await fetch(
1524
+ const fetchApi = getBoundFetch();
1525
+ const response = await fetchApi(
1467
1526
  CONFIG.privateApiHost + "/private-api/post-game",
1468
1527
  {
1469
1528
  method: "POST",
@@ -1584,6 +1643,6 @@ function getCommunityPermissions({
1584
1643
  };
1585
1644
  }
1586
1645
 
1587
- export { CONFIG, ConfigManager, mutations_exports as EcencyAnalytics, EcencyQueriesManager, HiveSignerIntegration, keychain_exports as Keychain, ROLES, ThreeSpeakIntegration, broadcastJson, checkUsernameWalletsPendingQueryOptions, dedupeAndSortKeyAuths, getAccessToken, getAccountFullQueryOptions, getAccountPendingRecoveryQueryOptions, getAccountRcQueryOptions, getAccountRecoveriesQueryOptions, getAccountSubscriptionsQueryOptions, getActiveAccountBookmarksQueryOptions, getActiveAccountFavouritesQueryOptions, getChainPropertiesQueryOptions, getCommunitiesQueryOptions, getCommunityContextQueryOptions, getCommunityPermissions, getCommunityType, getDynamicPropsQueryOptions, getFragmentsQueryOptions, getGameStatusCheckQueryOptions, getHivePoshLinksQueryOptions, getLoginType, getPostingKey, getPromotedPostsQuery, getQueryClient, getRcStatsQueryOptions, getRefreshToken, getRelationshipBetweenAccountsQueryOptions, getSearchAccountsByUsernameQueryOptions, getStatsQueryOptions, getTrendingTagsQueryOptions, getUser, makeQueryClient, roleMap, useAccountFavouriteAdd, useAccountFavouriteDelete, useAccountRelationsUpdate, useAccountRevokeKey, useAccountRevokePosting, useAccountUpdate, useAccountUpdateKeyAuths, useAccountUpdatePassword, useAccountUpdateRecovery, useAddFragment, useBookmarkAdd, useBookmarkDelete, useBroadcastMutation, useEditFragment, useGameClaim, useRemoveFragment, useSignOperationByHivesigner, useSignOperationByKey, useSignOperationByKeychain };
1646
+ export { CONFIG, ConfigManager, mutations_exports as EcencyAnalytics, EcencyQueriesManager, HiveSignerIntegration, keychain_exports as Keychain, NaiMap, ROLES, Symbol2 as Symbol, ThreeSpeakIntegration, broadcastJson, checkUsernameWalletsPendingQueryOptions, decodeObj, dedupeAndSortKeyAuths, encodeObj, getAccessToken, getAccountFullQueryOptions, getAccountPendingRecoveryQueryOptions, getAccountRcQueryOptions, getAccountRecoveriesQueryOptions, getAccountSubscriptionsQueryOptions, getActiveAccountBookmarksQueryOptions, getActiveAccountFavouritesQueryOptions, getBoundFetch, getChainPropertiesQueryOptions, getCommunitiesQueryOptions, getCommunityContextQueryOptions, getCommunityPermissions, getCommunityType, getDynamicPropsQueryOptions, getFragmentsQueryOptions, getGameStatusCheckQueryOptions, getHivePoshLinksQueryOptions, getLoginType, getPostingKey, getPromotedPostsQuery, getQueryClient, getRcStatsQueryOptions, getRefreshToken, getRelationshipBetweenAccountsQueryOptions, getSearchAccountsByUsernameQueryOptions, getStatsQueryOptions, getTrendingTagsQueryOptions, getUser, makeQueryClient, parseAsset, roleMap, useAccountFavouriteAdd, useAccountFavouriteDelete, useAccountRelationsUpdate, useAccountRevokeKey, useAccountRevokePosting, useAccountUpdate, useAccountUpdateKeyAuths, useAccountUpdatePassword, useAccountUpdateRecovery, useAddFragment, useBookmarkAdd, useBookmarkDelete, useBroadcastMutation, useEditFragment, useGameClaim, useRemoveFragment, useSignOperationByHivesigner, useSignOperationByKey, useSignOperationByKeychain };
1588
1647
  //# sourceMappingURL=index.mjs.map
1589
1648
  //# sourceMappingURL=index.mjs.map