@ecency/sdk 1.5.0 → 1.5.1

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.
@@ -710,12 +710,14 @@ function parseAccounts(rawAccounts) {
710
710
  // src/modules/accounts/queries/get-accounts-query-options.ts
711
711
  function getAccountsQueryOptions(usernames) {
712
712
  return queryOptions({
713
- queryKey: ["accounts", "get-accounts", usernames],
713
+ queryKey: ["accounts", "list", ...usernames],
714
+ enabled: usernames.length > 0,
714
715
  queryFn: async () => {
715
- const response = await CONFIG.hiveClient.database.getAccounts(usernames);
716
+ const response = await CONFIG.hiveClient.database.getAccounts(
717
+ usernames
718
+ );
716
719
  return parseAccounts(response);
717
- },
718
- enabled: usernames.length > 0
720
+ }
719
721
  });
720
722
  }
721
723
  function getFollowCountQueryOptions(username) {
@@ -986,6 +988,22 @@ function getAccountPendingRecoveryQueryOptions(username) {
986
988
  )
987
989
  });
988
990
  }
991
+ function getAccountReputationsQueryOptions(query, limit = 50) {
992
+ return queryOptions({
993
+ queryKey: ["accounts", "reputations", query, limit],
994
+ enabled: !!query,
995
+ queryFn: async () => {
996
+ if (!query) {
997
+ return [];
998
+ }
999
+ return CONFIG.hiveClient.call(
1000
+ "condenser_api",
1001
+ "get_account_reputations",
1002
+ [query, limit]
1003
+ );
1004
+ }
1005
+ });
1006
+ }
989
1007
  var ops = utils.operationOrders;
990
1008
  var ACCOUNT_OPERATION_GROUPS = {
991
1009
  transfers: [
@@ -1302,6 +1320,26 @@ function getEntryActiveVotesQueryOptions(entry) {
1302
1320
  enabled: !!entry
1303
1321
  });
1304
1322
  }
1323
+ function getContentQueryOptions(author, permlink) {
1324
+ return queryOptions({
1325
+ queryKey: ["posts", "content", author, permlink],
1326
+ enabled: !!author && !!permlink,
1327
+ queryFn: async () => CONFIG.hiveClient.call("condenser_api", "get_content", [
1328
+ author,
1329
+ permlink
1330
+ ])
1331
+ });
1332
+ }
1333
+ function getContentRepliesQueryOptions(author, permlink) {
1334
+ return queryOptions({
1335
+ queryKey: ["posts", "content-replies", author, permlink],
1336
+ enabled: !!author && !!permlink,
1337
+ queryFn: async () => CONFIG.hiveClient.call("condenser_api", "get_content_replies", {
1338
+ author,
1339
+ permlink
1340
+ })
1341
+ });
1342
+ }
1305
1343
  function getPostHeaderQueryOptions(author, permlink) {
1306
1344
  return queryOptions({
1307
1345
  queryKey: ["posts", "post-header", author, permlink],
@@ -1363,6 +1401,212 @@ function getPostQueryOptions(author, permlink, observer = "", num) {
1363
1401
  enabled: !!author && !!permlink && permlink.trim() !== "" && permlink.trim() !== "undefined"
1364
1402
  });
1365
1403
  }
1404
+
1405
+ // src/modules/bridge/requests.ts
1406
+ function bridgeApiCall(endpoint, params) {
1407
+ return CONFIG.hiveClient.call("bridge", endpoint, params);
1408
+ }
1409
+ async function resolvePost(post, observer, num) {
1410
+ const { json_metadata: json } = post;
1411
+ if (json?.original_author && json?.original_permlink && json.tags?.[0] === "cross-post") {
1412
+ try {
1413
+ const resp = await getPost(
1414
+ json.original_author,
1415
+ json.original_permlink,
1416
+ observer,
1417
+ num
1418
+ );
1419
+ if (resp) {
1420
+ return {
1421
+ ...post,
1422
+ original_entry: resp,
1423
+ num
1424
+ };
1425
+ }
1426
+ return post;
1427
+ } catch {
1428
+ return post;
1429
+ }
1430
+ }
1431
+ return { ...post, num };
1432
+ }
1433
+ async function resolvePosts(posts, observer) {
1434
+ const validatedPosts = posts.map(validateEntry);
1435
+ const resolved = await Promise.all(validatedPosts.map((p) => resolvePost(p, observer)));
1436
+ return filterDmcaEntry(resolved);
1437
+ }
1438
+ async function getPostsRanked(sort, start_author = "", start_permlink = "", limit = 20, tag = "", observer = "") {
1439
+ const resp = await bridgeApiCall("get_ranked_posts", {
1440
+ sort,
1441
+ start_author,
1442
+ start_permlink,
1443
+ limit,
1444
+ tag,
1445
+ observer
1446
+ });
1447
+ if (resp) {
1448
+ return resolvePosts(resp, observer);
1449
+ }
1450
+ return resp;
1451
+ }
1452
+ async function getAccountPosts(sort, account, start_author = "", start_permlink = "", limit = 20, observer = "") {
1453
+ if (CONFIG.dmcaAccounts.includes(account)) {
1454
+ return [];
1455
+ }
1456
+ const resp = await bridgeApiCall("get_account_posts", {
1457
+ sort,
1458
+ account,
1459
+ start_author,
1460
+ start_permlink,
1461
+ limit,
1462
+ observer
1463
+ });
1464
+ if (resp) {
1465
+ return resolvePosts(resp, observer);
1466
+ }
1467
+ return resp;
1468
+ }
1469
+ function validateEntry(entry) {
1470
+ const newEntry = {
1471
+ ...entry,
1472
+ active_votes: Array.isArray(entry.active_votes) ? [...entry.active_votes] : [],
1473
+ beneficiaries: Array.isArray(entry.beneficiaries) ? [...entry.beneficiaries] : [],
1474
+ blacklists: Array.isArray(entry.blacklists) ? [...entry.blacklists] : [],
1475
+ replies: Array.isArray(entry.replies) ? [...entry.replies] : [],
1476
+ stats: entry.stats ? { ...entry.stats } : null
1477
+ };
1478
+ const requiredStringProps = [
1479
+ "author",
1480
+ "title",
1481
+ "body",
1482
+ "created",
1483
+ "category",
1484
+ "permlink",
1485
+ "url",
1486
+ "updated"
1487
+ ];
1488
+ for (const prop of requiredStringProps) {
1489
+ if (newEntry[prop] == null) {
1490
+ newEntry[prop] = "";
1491
+ }
1492
+ }
1493
+ if (newEntry.author_reputation == null) {
1494
+ newEntry.author_reputation = 0;
1495
+ }
1496
+ if (newEntry.children == null) {
1497
+ newEntry.children = 0;
1498
+ }
1499
+ if (newEntry.depth == null) {
1500
+ newEntry.depth = 0;
1501
+ }
1502
+ if (newEntry.net_rshares == null) {
1503
+ newEntry.net_rshares = 0;
1504
+ }
1505
+ if (newEntry.payout == null) {
1506
+ newEntry.payout = 0;
1507
+ }
1508
+ if (newEntry.percent_hbd == null) {
1509
+ newEntry.percent_hbd = 0;
1510
+ }
1511
+ if (!newEntry.stats) {
1512
+ newEntry.stats = {
1513
+ flag_weight: 0,
1514
+ gray: false,
1515
+ hide: false,
1516
+ total_votes: 0
1517
+ };
1518
+ }
1519
+ if (newEntry.author_payout_value == null) {
1520
+ newEntry.author_payout_value = "0.000 HBD";
1521
+ }
1522
+ if (newEntry.curator_payout_value == null) {
1523
+ newEntry.curator_payout_value = "0.000 HBD";
1524
+ }
1525
+ if (newEntry.max_accepted_payout == null) {
1526
+ newEntry.max_accepted_payout = "1000000.000 HBD";
1527
+ }
1528
+ if (newEntry.payout_at == null) {
1529
+ newEntry.payout_at = "";
1530
+ }
1531
+ if (newEntry.pending_payout_value == null) {
1532
+ newEntry.pending_payout_value = "0.000 HBD";
1533
+ }
1534
+ if (newEntry.promoted == null) {
1535
+ newEntry.promoted = "0.000 HBD";
1536
+ }
1537
+ if (newEntry.is_paidout == null) {
1538
+ newEntry.is_paidout = false;
1539
+ }
1540
+ return newEntry;
1541
+ }
1542
+ async function getPost(author = "", permlink = "", observer = "", num) {
1543
+ const resp = await bridgeApiCall("get_post", {
1544
+ author,
1545
+ permlink,
1546
+ observer
1547
+ });
1548
+ if (resp) {
1549
+ const validatedEntry = validateEntry(resp);
1550
+ const post = await resolvePost(validatedEntry, observer, num);
1551
+ return filterDmcaEntry(post);
1552
+ }
1553
+ return void 0;
1554
+ }
1555
+ async function getPostHeader(author = "", permlink = "") {
1556
+ const resp = await bridgeApiCall("get_post_header", {
1557
+ author,
1558
+ permlink
1559
+ });
1560
+ return resp ? validateEntry(resp) : resp;
1561
+ }
1562
+ async function getDiscussion(author, permlink, observer) {
1563
+ const resp = await bridgeApiCall("get_discussion", {
1564
+ author,
1565
+ permlink,
1566
+ observer: observer || author
1567
+ });
1568
+ if (resp) {
1569
+ const validatedResp = {};
1570
+ for (const [key, entry] of Object.entries(resp)) {
1571
+ validatedResp[key] = validateEntry(entry);
1572
+ }
1573
+ return validatedResp;
1574
+ }
1575
+ return resp;
1576
+ }
1577
+ async function getCommunity(name, observer = "") {
1578
+ return bridgeApiCall("get_community", { name, observer });
1579
+ }
1580
+ async function getCommunities(last = "", limit = 100, query, sort = "rank", observer = "") {
1581
+ return bridgeApiCall("list_communities", {
1582
+ last,
1583
+ limit,
1584
+ query,
1585
+ sort,
1586
+ observer
1587
+ });
1588
+ }
1589
+ async function normalizePost(post) {
1590
+ const resp = await bridgeApiCall("normalize_post", { post });
1591
+ return resp ? validateEntry(resp) : resp;
1592
+ }
1593
+ async function getSubscriptions(account) {
1594
+ return bridgeApiCall("list_all_subscriptions", { account });
1595
+ }
1596
+ async function getSubscribers(community) {
1597
+ return bridgeApiCall("list_subscribers", { community });
1598
+ }
1599
+ async function getRelationshipBetweenAccounts(follower, following) {
1600
+ return bridgeApiCall("get_relationship_between_accounts", [
1601
+ follower,
1602
+ following
1603
+ ]);
1604
+ }
1605
+ async function getProfiles(accounts, observer) {
1606
+ return bridgeApiCall("get_profiles", { accounts, observer });
1607
+ }
1608
+
1609
+ // src/modules/posts/queries/get-discussions-query-options.ts
1366
1610
  var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
1367
1611
  SortOrder2["trending"] = "trending";
1368
1612
  SortOrder2["author_reputation"] = "author_reputation";
@@ -1460,6 +1704,13 @@ function getDiscussionsQueryOptions(entry, order = "created" /* created */, enab
1460
1704
  select: (data) => sortDiscussions(entry, data, order)
1461
1705
  });
1462
1706
  }
1707
+ function getDiscussionQueryOptions(author, permlink, observer, enabled = true) {
1708
+ return queryOptions({
1709
+ queryKey: ["posts", "discussion", author, permlink, observer || author],
1710
+ enabled: enabled && !!author && !!permlink,
1711
+ queryFn: async () => getDiscussion(author, permlink, observer)
1712
+ });
1713
+ }
1463
1714
  function getAccountPostsInfiniteQueryOptions(username, filter = "posts", limit = 20, observer = "", enabled = true) {
1464
1715
  return infiniteQueryOptions({
1465
1716
  queryKey: ["posts", "account-posts", username ?? "", filter, limit, observer],
@@ -1509,6 +1760,35 @@ function getAccountPostsInfiniteQueryOptions(username, filter = "posts", limit =
1509
1760
  }
1510
1761
  });
1511
1762
  }
1763
+ function getAccountPostsQueryOptions(username, filter = "posts", start_author = "", start_permlink = "", limit = 20, observer = "", enabled = true) {
1764
+ return queryOptions({
1765
+ queryKey: [
1766
+ "posts",
1767
+ "account-posts-page",
1768
+ username ?? "",
1769
+ filter,
1770
+ start_author,
1771
+ start_permlink,
1772
+ limit,
1773
+ observer
1774
+ ],
1775
+ enabled: !!username && enabled,
1776
+ queryFn: async () => {
1777
+ if (!username) {
1778
+ return [];
1779
+ }
1780
+ const response = await getAccountPosts(
1781
+ filter,
1782
+ username,
1783
+ start_author,
1784
+ start_permlink,
1785
+ limit,
1786
+ observer
1787
+ );
1788
+ return filterDmcaEntry(response ?? []);
1789
+ }
1790
+ });
1791
+ }
1512
1792
  function getPostsRankedInfiniteQueryOptions(sort, tag, limit = 20, observer = "", enabled = true, _options = {}) {
1513
1793
  return infiniteQueryOptions({
1514
1794
  queryKey: ["posts", "posts-ranked", sort, tag, limit, observer],
@@ -1556,6 +1836,36 @@ function getPostsRankedInfiniteQueryOptions(sort, tag, limit = 20, observer = ""
1556
1836
  }
1557
1837
  });
1558
1838
  }
1839
+ function getPostsRankedQueryOptions(sort, start_author = "", start_permlink = "", limit = 20, tag = "", observer = "", enabled = true) {
1840
+ return queryOptions({
1841
+ queryKey: [
1842
+ "posts",
1843
+ "posts-ranked-page",
1844
+ sort,
1845
+ start_author,
1846
+ start_permlink,
1847
+ limit,
1848
+ tag,
1849
+ observer
1850
+ ],
1851
+ enabled,
1852
+ queryFn: async () => {
1853
+ let sanitizedTag = tag;
1854
+ if (CONFIG.dmcaTagRegexes.some((regex) => regex.test(tag))) {
1855
+ sanitizedTag = "";
1856
+ }
1857
+ const response = await getPostsRanked(
1858
+ sort,
1859
+ start_author,
1860
+ start_permlink,
1861
+ limit,
1862
+ sanitizedTag,
1863
+ observer
1864
+ );
1865
+ return filterDmcaEntry(response ?? []);
1866
+ }
1867
+ });
1868
+ }
1559
1869
  function getReblogsQueryOptions(username, activeUsername, limit = 200) {
1560
1870
  return queryOptions({
1561
1871
  queryKey: ["posts", "reblogs", username ?? "", limit],
@@ -1793,8 +2103,8 @@ function toEntryArray(x) {
1793
2103
  return Array.isArray(x) ? x : [];
1794
2104
  }
1795
2105
  async function getVisibleFirstLevelThreadItems(container) {
1796
- const queryOptions76 = getDiscussionsQueryOptions(container, "created" /* created */, true);
1797
- const discussionItemsRaw = await CONFIG.queryClient.fetchQuery(queryOptions76);
2106
+ const queryOptions86 = getDiscussionsQueryOptions(container, "created" /* created */, true);
2107
+ const discussionItemsRaw = await CONFIG.queryClient.fetchQuery(queryOptions86);
1798
2108
  const discussionItems = toEntryArray(discussionItemsRaw);
1799
2109
  if (discussionItems.length <= 1) {
1800
2110
  return [];
@@ -2003,6 +2313,18 @@ function getWavesTrendingTagsQueryOptions(host, hours = 24) {
2003
2313
  }
2004
2314
  });
2005
2315
  }
2316
+ function getNormalizePostQueryOptions(post, enabled = true) {
2317
+ return queryOptions({
2318
+ queryKey: [
2319
+ "posts",
2320
+ "normalize",
2321
+ post?.author ?? "",
2322
+ post?.permlink ?? ""
2323
+ ],
2324
+ enabled: enabled && !!post,
2325
+ queryFn: async () => normalizePost(post)
2326
+ });
2327
+ }
2006
2328
 
2007
2329
  // src/modules/accounts/queries/get-account-vote-history-infinite-query-options.ts
2008
2330
  function isEntry(x) {
@@ -2053,6 +2375,13 @@ function getAccountVoteHistoryInfiniteQueryOptions(username, options) {
2053
2375
  })
2054
2376
  });
2055
2377
  }
2378
+ function getProfilesQueryOptions(accounts, observer, enabled = true) {
2379
+ return queryOptions({
2380
+ queryKey: ["accounts", "profiles", accounts, observer ?? ""],
2381
+ enabled: enabled && accounts.length > 0,
2382
+ queryFn: async () => getProfiles(accounts, observer)
2383
+ });
2384
+ }
2056
2385
 
2057
2386
  // src/modules/accounts/mutations/use-account-update.ts
2058
2387
  function useAccountUpdate(username, accessToken, auth) {
@@ -2506,6 +2835,152 @@ function useAccountRevokeKey(username, options) {
2506
2835
  ...options
2507
2836
  });
2508
2837
  }
2838
+
2839
+ // src/modules/accounts/utils/account-power.ts
2840
+ var HIVE_VOTING_MANA_REGENERATION_SECONDS = 5 * 60 * 60 * 24;
2841
+ function vestsToRshares(vests, votingPowerValue, votePerc) {
2842
+ const vestingShares = vests * 1e6;
2843
+ const power = votingPowerValue * votePerc / 1e4 / 50 + 1;
2844
+ return power * vestingShares / 1e4;
2845
+ }
2846
+ function toDhiveAccountForVotingMana(account) {
2847
+ return {
2848
+ id: 0,
2849
+ name: account.name,
2850
+ owner: account.owner,
2851
+ active: account.active,
2852
+ posting: account.posting,
2853
+ memo_key: account.memo_key,
2854
+ json_metadata: account.json_metadata,
2855
+ posting_json_metadata: account.posting_json_metadata,
2856
+ proxy: account.proxy ?? "",
2857
+ last_owner_update: "",
2858
+ last_account_update: "",
2859
+ created: account.created,
2860
+ mined: false,
2861
+ owner_challenged: false,
2862
+ active_challenged: false,
2863
+ last_owner_proved: "",
2864
+ last_active_proved: "",
2865
+ recovery_account: account.recovery_account ?? "",
2866
+ reset_account: "",
2867
+ last_account_recovery: "",
2868
+ comment_count: 0,
2869
+ lifetime_vote_count: 0,
2870
+ post_count: account.post_count,
2871
+ can_vote: true,
2872
+ voting_power: account.voting_power,
2873
+ last_vote_time: account.last_vote_time,
2874
+ voting_manabar: account.voting_manabar,
2875
+ balance: account.balance,
2876
+ savings_balance: account.savings_balance,
2877
+ hbd_balance: account.hbd_balance,
2878
+ hbd_seconds: "0",
2879
+ hbd_seconds_last_update: "",
2880
+ hbd_last_interest_payment: "",
2881
+ savings_hbd_balance: account.savings_hbd_balance,
2882
+ savings_hbd_seconds: account.savings_hbd_seconds,
2883
+ savings_hbd_seconds_last_update: account.savings_hbd_seconds_last_update,
2884
+ savings_hbd_last_interest_payment: account.savings_hbd_last_interest_payment,
2885
+ savings_withdraw_requests: 0,
2886
+ reward_hbd_balance: account.reward_hbd_balance,
2887
+ reward_hive_balance: account.reward_hive_balance,
2888
+ reward_vesting_balance: account.reward_vesting_balance,
2889
+ reward_vesting_hive: account.reward_vesting_hive,
2890
+ curation_rewards: 0,
2891
+ posting_rewards: 0,
2892
+ vesting_shares: account.vesting_shares,
2893
+ delegated_vesting_shares: account.delegated_vesting_shares,
2894
+ received_vesting_shares: account.received_vesting_shares,
2895
+ vesting_withdraw_rate: account.vesting_withdraw_rate,
2896
+ next_vesting_withdrawal: account.next_vesting_withdrawal,
2897
+ withdrawn: account.withdrawn,
2898
+ to_withdraw: account.to_withdraw,
2899
+ withdraw_routes: 0,
2900
+ proxied_vsf_votes: account.proxied_vsf_votes ?? [],
2901
+ witnesses_voted_for: 0,
2902
+ average_bandwidth: 0,
2903
+ lifetime_bandwidth: 0,
2904
+ last_bandwidth_update: "",
2905
+ average_market_bandwidth: 0,
2906
+ lifetime_market_bandwidth: 0,
2907
+ last_market_bandwidth_update: "",
2908
+ last_post: account.last_post,
2909
+ last_root_post: ""
2910
+ };
2911
+ }
2912
+ function votingPower(account) {
2913
+ const calc = CONFIG.hiveClient.rc.calculateVPMana(
2914
+ toDhiveAccountForVotingMana(account)
2915
+ );
2916
+ return calc.percentage / 100;
2917
+ }
2918
+ function powerRechargeTime(power) {
2919
+ if (!Number.isFinite(power)) {
2920
+ throw new TypeError("Voting power must be a finite number");
2921
+ }
2922
+ if (power < 0 || power > 100) {
2923
+ throw new RangeError("Voting power must be between 0 and 100");
2924
+ }
2925
+ const missingPower = 100 - power;
2926
+ return missingPower * 100 * HIVE_VOTING_MANA_REGENERATION_SECONDS / 1e4;
2927
+ }
2928
+ function downVotingPower(account) {
2929
+ const totalShares = parseFloat(account.vesting_shares) + parseFloat(account.received_vesting_shares) - parseFloat(account.delegated_vesting_shares);
2930
+ const elapsed = Math.floor(Date.now() / 1e3) - account.downvote_manabar.last_update_time;
2931
+ const maxMana = totalShares * 1e6 / 4;
2932
+ if (maxMana <= 0) {
2933
+ return 0;
2934
+ }
2935
+ let currentMana = parseFloat(account.downvote_manabar.current_mana.toString()) + elapsed * maxMana / HIVE_VOTING_MANA_REGENERATION_SECONDS;
2936
+ if (currentMana > maxMana) {
2937
+ currentMana = maxMana;
2938
+ }
2939
+ const currentManaPerc = currentMana * 100 / maxMana;
2940
+ if (isNaN(currentManaPerc)) {
2941
+ return 0;
2942
+ }
2943
+ if (currentManaPerc > 100) {
2944
+ return 100;
2945
+ }
2946
+ return currentManaPerc;
2947
+ }
2948
+ function rcPower(account) {
2949
+ const calc = CONFIG.hiveClient.rc.calculateRCMana(account);
2950
+ return calc.percentage / 100;
2951
+ }
2952
+ function votingValue(account, dynamicProps, votingPowerValue, weight = 1e4) {
2953
+ if (!Number.isFinite(votingPowerValue) || !Number.isFinite(weight)) {
2954
+ return 0;
2955
+ }
2956
+ const { fundRecentClaims, fundRewardBalance, base, quote } = dynamicProps;
2957
+ if (!Number.isFinite(fundRecentClaims) || !Number.isFinite(fundRewardBalance) || !Number.isFinite(base) || !Number.isFinite(quote)) {
2958
+ return 0;
2959
+ }
2960
+ if (fundRecentClaims === 0 || quote === 0) {
2961
+ return 0;
2962
+ }
2963
+ let totalVests = 0;
2964
+ try {
2965
+ const vesting = parseAsset(account.vesting_shares).amount;
2966
+ const received = parseAsset(account.received_vesting_shares).amount;
2967
+ const delegated = parseAsset(account.delegated_vesting_shares).amount;
2968
+ if (![vesting, received, delegated].every(Number.isFinite)) {
2969
+ return 0;
2970
+ }
2971
+ totalVests = vesting + received - delegated;
2972
+ } catch {
2973
+ return 0;
2974
+ }
2975
+ if (!Number.isFinite(totalVests)) {
2976
+ return 0;
2977
+ }
2978
+ const rShares = vestsToRshares(totalVests, votingPowerValue, weight);
2979
+ if (!Number.isFinite(rShares)) {
2980
+ return 0;
2981
+ }
2982
+ return rShares / fundRecentClaims * fundRewardBalance * (base / quote);
2983
+ }
2509
2984
  function useSignOperationByKey(username) {
2510
2985
  return useMutation({
2511
2986
  mutationKey: ["operations", "sign", username],
@@ -2663,6 +3138,33 @@ function useRemoveFragment(username, fragmentId, code) {
2663
3138
  });
2664
3139
  }
2665
3140
 
3141
+ // src/modules/posts/utils/validate-post-creating.ts
3142
+ var DEFAULT_VALIDATE_POST_DELAYS = [3e3, 3e3, 3e3];
3143
+ var delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
3144
+ async function getContent(author, permlink) {
3145
+ return CONFIG.hiveClient.call("condenser_api", "get_content", [
3146
+ author,
3147
+ permlink
3148
+ ]);
3149
+ }
3150
+ async function validatePostCreating(author, permlink, attempts = 0, options) {
3151
+ const delays = options?.delays ?? DEFAULT_VALIDATE_POST_DELAYS;
3152
+ let response;
3153
+ try {
3154
+ response = await getContent(author, permlink);
3155
+ } catch (e) {
3156
+ response = void 0;
3157
+ }
3158
+ if (response || attempts >= delays.length) {
3159
+ return;
3160
+ }
3161
+ const waitMs = delays[attempts];
3162
+ if (waitMs > 0) {
3163
+ await delay(waitMs);
3164
+ }
3165
+ return validatePostCreating(author, permlink, attempts + 1, options);
3166
+ }
3167
+
2666
3168
  // src/modules/analytics/mutations/index.ts
2667
3169
  var mutations_exports = {};
2668
3170
  __export(mutations_exports, {
@@ -3051,6 +3553,13 @@ function getCommunityContextQueryOptions(username, communityName) {
3051
3553
  }
3052
3554
  });
3053
3555
  }
3556
+ function getCommunityQueryOptions(name, observer = "", enabled = true) {
3557
+ return queryOptions({
3558
+ queryKey: ["community", "single", name, observer],
3559
+ enabled: enabled && !!name,
3560
+ queryFn: async () => getCommunity(name ?? "", observer)
3561
+ });
3562
+ }
3054
3563
  function getCommunitySubscribersQueryOptions(communityName) {
3055
3564
  return queryOptions({
3056
3565
  queryKey: ["communities", "subscribers", communityName],
@@ -3493,6 +4002,25 @@ function getOutgoingRcDelegationsInfiniteQueryOptions(username, limit = 100) {
3493
4002
  getNextPageParam: (lastPage) => lastPage.length === limit ? lastPage[lastPage.length - 1].to : null
3494
4003
  });
3495
4004
  }
4005
+ function getIncomingRcQueryOptions(username) {
4006
+ return queryOptions({
4007
+ queryKey: ["wallet", "incoming-rc", username],
4008
+ enabled: !!username,
4009
+ queryFn: async () => {
4010
+ if (!username) {
4011
+ throw new Error("[SDK][Wallet] - Missing username for incoming RC");
4012
+ }
4013
+ const fetchApi = getBoundFetch();
4014
+ const response = await fetchApi(
4015
+ `${CONFIG.privateApiHost}/private-api/received-rc/${username}`
4016
+ );
4017
+ if (!response.ok) {
4018
+ throw new Error(`Failed to fetch incoming RC: ${response.status}`);
4019
+ }
4020
+ return response.json();
4021
+ }
4022
+ });
4023
+ }
3496
4024
  function getReceivedVestingSharesQueryOptions(username) {
3497
4025
  return queryOptions({
3498
4026
  queryKey: ["wallet", "received-vesting-shares", username],
@@ -3537,15 +4065,15 @@ function getMarketStatisticsQueryOptions() {
3537
4065
  });
3538
4066
  }
3539
4067
  function getMarketHistoryQueryOptions(seconds, startDate, endDate) {
3540
- const formatDate = (date) => {
4068
+ const formatDate2 = (date) => {
3541
4069
  return date.toISOString().replace(/\.\d{3}Z$/, "");
3542
4070
  };
3543
4071
  return queryOptions({
3544
4072
  queryKey: ["market", "history", seconds, startDate.getTime(), endDate.getTime()],
3545
4073
  queryFn: () => CONFIG.hiveClient.call("condenser_api", "get_market_history", [
3546
4074
  seconds,
3547
- formatDate(startDate),
3548
- formatDate(endDate)
4075
+ formatDate2(startDate),
4076
+ formatDate2(endDate)
3549
4077
  ])
3550
4078
  });
3551
4079
  }
@@ -3560,13 +4088,13 @@ function getHiveHbdStatsQueryOptions() {
3560
4088
  );
3561
4089
  const now = /* @__PURE__ */ new Date();
3562
4090
  const oneDayAgo = new Date(now.getTime() - 864e5);
3563
- const formatDate = (date) => {
4091
+ const formatDate2 = (date) => {
3564
4092
  return date.toISOString().replace(/\.\d{3}Z$/, "");
3565
4093
  };
3566
4094
  const dayChange = await CONFIG.hiveClient.call(
3567
4095
  "condenser_api",
3568
4096
  "get_market_history",
3569
- [86400, formatDate(oneDayAgo), formatDate(now)]
4097
+ [86400, formatDate2(oneDayAgo), formatDate2(now)]
3570
4098
  );
3571
4099
  const result = {
3572
4100
  price: +stats.latest,
@@ -3595,6 +4123,21 @@ function getMarketDataQueryOptions(coin, vsCurrency, fromTs, toTs) {
3595
4123
  }
3596
4124
  });
3597
4125
  }
4126
+ function formatDate(date) {
4127
+ return date.toISOString().replace(/\.\d{3}Z$/, "");
4128
+ }
4129
+ function getTradeHistoryQueryOptions(limit = 1e3, startDate, endDate) {
4130
+ const end = endDate ?? /* @__PURE__ */ new Date();
4131
+ const start = startDate ?? new Date(end.getTime() - 10 * 60 * 60 * 1e3);
4132
+ return queryOptions({
4133
+ queryKey: ["market", "trade-history", limit, start.getTime(), end.getTime()],
4134
+ queryFn: () => CONFIG.hiveClient.call("condenser_api", "get_trade_history", [
4135
+ formatDate(start),
4136
+ formatDate(end),
4137
+ limit
4138
+ ])
4139
+ });
4140
+ }
3598
4141
 
3599
4142
  // src/modules/market/requests.ts
3600
4143
  async function parseJsonResponse(response) {
@@ -3905,6 +4448,89 @@ function getSearchPathQueryOptions(q) {
3905
4448
  }
3906
4449
  });
3907
4450
  }
4451
+
4452
+ // src/modules/search/requests.ts
4453
+ async function parseJsonResponse2(response) {
4454
+ const parseBody = async () => {
4455
+ try {
4456
+ return await response.json();
4457
+ } catch {
4458
+ try {
4459
+ return await response.text();
4460
+ } catch {
4461
+ return void 0;
4462
+ }
4463
+ }
4464
+ };
4465
+ const data = await parseBody();
4466
+ if (!response.ok) {
4467
+ const error = new Error(`Request failed with status ${response.status}`);
4468
+ error.status = response.status;
4469
+ error.data = data;
4470
+ throw error;
4471
+ }
4472
+ if (data === void 0) {
4473
+ throw new Error("Response body was empty or invalid JSON");
4474
+ }
4475
+ return data;
4476
+ }
4477
+ async function search(q, sort, hideLow, since, scroll_id, votes) {
4478
+ const data = { q, sort, hide_low: hideLow };
4479
+ if (since) {
4480
+ data.since = since;
4481
+ }
4482
+ if (scroll_id) {
4483
+ data.scroll_id = scroll_id;
4484
+ }
4485
+ if (votes) {
4486
+ data.votes = votes;
4487
+ }
4488
+ const fetchApi = getBoundFetch();
4489
+ const response = await fetchApi(CONFIG.privateApiHost + "/search-api/search", {
4490
+ method: "POST",
4491
+ headers: {
4492
+ "Content-Type": "application/json"
4493
+ },
4494
+ body: JSON.stringify(data)
4495
+ });
4496
+ return parseJsonResponse2(response);
4497
+ }
4498
+ async function searchAccount(q = "", limit = 20, random = 1) {
4499
+ const data = { q, limit, random };
4500
+ const fetchApi = getBoundFetch();
4501
+ const response = await fetchApi(CONFIG.privateApiHost + "/search-api/search-account", {
4502
+ method: "POST",
4503
+ headers: {
4504
+ "Content-Type": "application/json"
4505
+ },
4506
+ body: JSON.stringify(data)
4507
+ });
4508
+ return parseJsonResponse2(response);
4509
+ }
4510
+ async function searchTag(q = "", limit = 20, random = 0) {
4511
+ const data = { q, limit, random };
4512
+ const fetchApi = getBoundFetch();
4513
+ const response = await fetchApi(CONFIG.privateApiHost + "/search-api/search-tag", {
4514
+ method: "POST",
4515
+ headers: {
4516
+ "Content-Type": "application/json"
4517
+ },
4518
+ body: JSON.stringify(data)
4519
+ });
4520
+ return parseJsonResponse2(response);
4521
+ }
4522
+ async function searchPath(q) {
4523
+ const fetchApi = getBoundFetch();
4524
+ const response = await fetchApi(CONFIG.privateApiHost + "/search-api/search-path", {
4525
+ method: "POST",
4526
+ headers: {
4527
+ "Content-Type": "application/json"
4528
+ },
4529
+ body: JSON.stringify({ q })
4530
+ });
4531
+ const data = await parseJsonResponse2(response);
4532
+ return data?.length > 0 ? data : [q];
4533
+ }
3908
4534
  function getBoostPlusPricesQueryOptions(accessToken) {
3909
4535
  return queryOptions({
3910
4536
  queryKey: ["promotions", "boost-plus-prices"],
@@ -3976,7 +4602,7 @@ function getBoostPlusAccountPricesQueryOptions(account, accessToken) {
3976
4602
  }
3977
4603
 
3978
4604
  // src/modules/private-api/requests.ts
3979
- async function parseJsonResponse2(response) {
4605
+ async function parseJsonResponse3(response) {
3980
4606
  if (!response.ok) {
3981
4607
  let errorData = void 0;
3982
4608
  try {
@@ -4000,7 +4626,7 @@ async function signUp(username, email, referral) {
4000
4626
  },
4001
4627
  body: JSON.stringify({ username, email, referral })
4002
4628
  });
4003
- const data = await parseJsonResponse2(response);
4629
+ const data = await parseJsonResponse3(response);
4004
4630
  return { status: response.status, data };
4005
4631
  }
4006
4632
  async function subscribeEmail(email) {
@@ -4012,7 +4638,7 @@ async function subscribeEmail(email) {
4012
4638
  },
4013
4639
  body: JSON.stringify({ email })
4014
4640
  });
4015
- const data = await parseJsonResponse2(response);
4641
+ const data = await parseJsonResponse3(response);
4016
4642
  return { status: response.status, data };
4017
4643
  }
4018
4644
  async function usrActivity(code, ty, bl = "", tx = "") {
@@ -4031,7 +4657,7 @@ async function usrActivity(code, ty, bl = "", tx = "") {
4031
4657
  },
4032
4658
  body: JSON.stringify(params)
4033
4659
  });
4034
- await parseJsonResponse2(response);
4660
+ await parseJsonResponse3(response);
4035
4661
  }
4036
4662
  async function getNotifications(code, filter, since = null, user = null) {
4037
4663
  const data = {
@@ -4054,7 +4680,7 @@ async function getNotifications(code, filter, since = null, user = null) {
4054
4680
  },
4055
4681
  body: JSON.stringify(data)
4056
4682
  });
4057
- return parseJsonResponse2(response);
4683
+ return parseJsonResponse3(response);
4058
4684
  }
4059
4685
  async function saveNotificationSetting(code, username, system, allows_notify, notify_types, token) {
4060
4686
  const data = {
@@ -4073,7 +4699,7 @@ async function saveNotificationSetting(code, username, system, allows_notify, no
4073
4699
  },
4074
4700
  body: JSON.stringify(data)
4075
4701
  });
4076
- return parseJsonResponse2(response);
4702
+ return parseJsonResponse3(response);
4077
4703
  }
4078
4704
  async function getNotificationSetting(code, username, token) {
4079
4705
  const data = { code, username, token };
@@ -4085,7 +4711,7 @@ async function getNotificationSetting(code, username, token) {
4085
4711
  },
4086
4712
  body: JSON.stringify(data)
4087
4713
  });
4088
- return parseJsonResponse2(response);
4714
+ return parseJsonResponse3(response);
4089
4715
  }
4090
4716
  async function markNotifications(code, id) {
4091
4717
  const data = {
@@ -4102,7 +4728,7 @@ async function markNotifications(code, id) {
4102
4728
  },
4103
4729
  body: JSON.stringify(data)
4104
4730
  });
4105
- return parseJsonResponse2(response);
4731
+ return parseJsonResponse3(response);
4106
4732
  }
4107
4733
  async function addImage(code, url) {
4108
4734
  const data = { code, url };
@@ -4114,7 +4740,7 @@ async function addImage(code, url) {
4114
4740
  },
4115
4741
  body: JSON.stringify(data)
4116
4742
  });
4117
- return parseJsonResponse2(response);
4743
+ return parseJsonResponse3(response);
4118
4744
  }
4119
4745
  async function uploadImage(file, token, signal) {
4120
4746
  const fetchApi = getBoundFetch();
@@ -4125,7 +4751,7 @@ async function uploadImage(file, token, signal) {
4125
4751
  body: formData,
4126
4752
  signal
4127
4753
  });
4128
- return parseJsonResponse2(response);
4754
+ return parseJsonResponse3(response);
4129
4755
  }
4130
4756
  async function deleteImage(code, imageId) {
4131
4757
  const data = { code, id: imageId };
@@ -4137,7 +4763,7 @@ async function deleteImage(code, imageId) {
4137
4763
  },
4138
4764
  body: JSON.stringify(data)
4139
4765
  });
4140
- return parseJsonResponse2(response);
4766
+ return parseJsonResponse3(response);
4141
4767
  }
4142
4768
  async function addDraft(code, title, body, tags, meta) {
4143
4769
  const data = { code, title, body, tags, meta };
@@ -4149,7 +4775,7 @@ async function addDraft(code, title, body, tags, meta) {
4149
4775
  },
4150
4776
  body: JSON.stringify(data)
4151
4777
  });
4152
- return parseJsonResponse2(response);
4778
+ return parseJsonResponse3(response);
4153
4779
  }
4154
4780
  async function updateDraft(code, draftId, title, body, tags, meta) {
4155
4781
  const data = { code, id: draftId, title, body, tags, meta };
@@ -4161,7 +4787,7 @@ async function updateDraft(code, draftId, title, body, tags, meta) {
4161
4787
  },
4162
4788
  body: JSON.stringify(data)
4163
4789
  });
4164
- return parseJsonResponse2(response);
4790
+ return parseJsonResponse3(response);
4165
4791
  }
4166
4792
  async function deleteDraft(code, draftId) {
4167
4793
  const data = { code, id: draftId };
@@ -4173,7 +4799,7 @@ async function deleteDraft(code, draftId) {
4173
4799
  },
4174
4800
  body: JSON.stringify(data)
4175
4801
  });
4176
- return parseJsonResponse2(response);
4802
+ return parseJsonResponse3(response);
4177
4803
  }
4178
4804
  async function addSchedule(code, permlink, title, body, meta, options, schedule, reblog) {
4179
4805
  const data = {
@@ -4196,7 +4822,7 @@ async function addSchedule(code, permlink, title, body, meta, options, schedule,
4196
4822
  },
4197
4823
  body: JSON.stringify(data)
4198
4824
  });
4199
- return parseJsonResponse2(response);
4825
+ return parseJsonResponse3(response);
4200
4826
  }
4201
4827
  async function deleteSchedule(code, id) {
4202
4828
  const data = { code, id };
@@ -4208,7 +4834,7 @@ async function deleteSchedule(code, id) {
4208
4834
  },
4209
4835
  body: JSON.stringify(data)
4210
4836
  });
4211
- return parseJsonResponse2(response);
4837
+ return parseJsonResponse3(response);
4212
4838
  }
4213
4839
  async function moveSchedule(code, id) {
4214
4840
  const data = { code, id };
@@ -4220,7 +4846,7 @@ async function moveSchedule(code, id) {
4220
4846
  },
4221
4847
  body: JSON.stringify(data)
4222
4848
  });
4223
- return parseJsonResponse2(response);
4849
+ return parseJsonResponse3(response);
4224
4850
  }
4225
4851
  async function getPromotedPost(code, author, permlink) {
4226
4852
  const data = { code, author, permlink };
@@ -4232,7 +4858,7 @@ async function getPromotedPost(code, author, permlink) {
4232
4858
  },
4233
4859
  body: JSON.stringify(data)
4234
4860
  });
4235
- return parseJsonResponse2(response);
4861
+ return parseJsonResponse3(response);
4236
4862
  }
4237
4863
  async function onboardEmail(username, email, friend) {
4238
4864
  const dataBody = {
@@ -4251,7 +4877,7 @@ async function onboardEmail(username, email, friend) {
4251
4877
  body: JSON.stringify(dataBody)
4252
4878
  }
4253
4879
  );
4254
- return parseJsonResponse2(response);
4880
+ return parseJsonResponse3(response);
4255
4881
  }
4256
4882
 
4257
4883
  // src/modules/auth/requests.ts
@@ -4280,6 +4906,6 @@ async function hsTokenRenew(code) {
4280
4906
  return data;
4281
4907
  }
4282
4908
 
4283
- export { ACCOUNT_OPERATION_GROUPS, ALL_ACCOUNT_OPERATIONS, ALL_NOTIFY_TYPES, CONFIG, ConfigManager, mutations_exports as EcencyAnalytics, EcencyQueriesManager, HiveSignerIntegration, keychain_exports as Keychain, NaiMap, NotificationFilter, NotificationViewType, NotifyTypes, ROLES, SortOrder, Symbol2 as Symbol, ThreeSpeakIntegration, addDraft, addImage, addSchedule, broadcastJson, buildProfileMetadata, checkUsernameWalletsPendingQueryOptions, decodeObj, dedupeAndSortKeyAuths, deleteDraft, deleteImage, deleteSchedule, encodeObj, extractAccountProfile, getAccessToken, getAccountFullQueryOptions, getAccountNotificationsInfiniteQueryOptions, getAccountPendingRecoveryQueryOptions, getAccountPostsInfiniteQueryOptions, getAccountRcQueryOptions, getAccountRecoveriesQueryOptions, getAccountSubscriptionsQueryOptions, getAccountVoteHistoryInfiniteQueryOptions, getAccountsQueryOptions, getActiveAccountBookmarksQueryOptions, getActiveAccountFavouritesQueryOptions, getAnnouncementsQueryOptions, getBoostPlusAccountPricesQueryOptions, getBoostPlusPricesQueryOptions, getBotsQueryOptions, getBoundFetch, getChainPropertiesQueryOptions, getCollateralizedConversionRequestsQueryOptions, getCommentHistoryQueryOptions, getCommunitiesQueryOptions, getCommunityContextQueryOptions, getCommunityPermissions, getCommunitySubscribersQueryOptions, getCommunityType, getControversialRisingInfiniteQueryOptions, getConversionRequestsQueryOptions, getCurrencyRate, getCurrencyRates, getCurrencyTokenRate, getDeletedEntryQueryOptions, getDiscoverCurationQueryOptions, getDiscoverLeaderboardQueryOptions, getDiscussionsQueryOptions, getDraftsQueryOptions, getDynamicPropsQueryOptions, getEntryActiveVotesQueryOptions, getFollowCountQueryOptions, getFollowingQueryOptions, getFragmentsQueryOptions, getFriendsInfiniteQueryOptions, getGalleryImagesQueryOptions, getGameStatusCheckQueryOptions, getHiveHbdStatsQueryOptions, getHivePoshLinksQueryOptions, getImagesQueryOptions, getLoginType, getMarketData, getMarketDataQueryOptions, getMarketHistoryQueryOptions, getMarketStatisticsQueryOptions, getMutedUsersQueryOptions, getNotificationSetting, getNotifications, getNotificationsInfiniteQueryOptions, getNotificationsSettingsQueryOptions, getNotificationsUnreadCountQueryOptions, getOpenOrdersQueryOptions, getOrderBookQueryOptions, getOutgoingRcDelegationsInfiniteQueryOptions, getPageStatsQueryOptions, getPointsQueryOptions, getPostHeaderQueryOptions, getPostQueryOptions, getPostTipsQueryOptions, getPostingKey, getPostsRankedInfiniteQueryOptions, getPromotePriceQueryOptions, getPromotedPost, getPromotedPostsQuery, getProposalQueryOptions, getProposalVotesInfiniteQueryOptions, getProposalsQueryOptions, getQueryClient, getRcStatsQueryOptions, getReblogsQueryOptions, getReceivedVestingSharesQueryOptions, getReferralsInfiniteQueryOptions, getReferralsStatsQueryOptions, getRefreshToken, getRelationshipBetweenAccountsQueryOptions, getRewardedCommunitiesQueryOptions, getSavingsWithdrawFromQueryOptions, getSchedulesQueryOptions, getSearchAccountQueryOptions, getSearchAccountsByUsernameQueryOptions, getSearchApiInfiniteQueryOptions, getSearchFriendsQueryOptions, getSearchPathQueryOptions, getSearchTopicsQueryOptions, getSimilarEntriesQueryOptions, getStatsQueryOptions, getTransactionsInfiniteQueryOptions, getTrendingTagsQueryOptions, getTrendingTagsWithStatsQueryOptions, getUser, getUserProposalVotesQueryOptions, getVestingDelegationsQueryOptions, getVisibleFirstLevelThreadItems, getWavesByHostQueryOptions, getWavesByTagQueryOptions, getWavesFollowingQueryOptions, getWavesTrendingTagsQueryOptions, getWithdrawRoutesQueryOptions, getWitnessesInfiniteQueryOptions, hsTokenRenew, isCommunity, lookupAccountsQueryOptions, makeQueryClient, mapThreadItemsToWaveEntries, markNotifications, moveSchedule, normalizeWaveEntryFromApi, onboardEmail, parseAccounts, parseAsset, parseProfileMetadata, roleMap, saveNotificationSetting, searchQueryOptions, signUp, sortDiscussions, subscribeEmail, toEntryArray, updateDraft, uploadImage, useAccountFavouriteAdd, useAccountFavouriteDelete, useAccountRelationsUpdate, useAccountRevokeKey, useAccountRevokePosting, useAccountUpdate, useAccountUpdateKeyAuths, useAccountUpdatePassword, useAccountUpdateRecovery, useAddFragment, useBookmarkAdd, useBookmarkDelete, useBroadcastMutation, useEditFragment, useGameClaim, useRecordActivity, useRemoveFragment, useSignOperationByHivesigner, useSignOperationByKey, useSignOperationByKeychain, usrActivity };
4909
+ export { ACCOUNT_OPERATION_GROUPS, ALL_ACCOUNT_OPERATIONS, ALL_NOTIFY_TYPES, CONFIG, ConfigManager, mutations_exports as EcencyAnalytics, EcencyQueriesManager, HiveSignerIntegration, keychain_exports as Keychain, NaiMap, NotificationFilter, NotificationViewType, NotifyTypes, ROLES, SortOrder, Symbol2 as Symbol, ThreeSpeakIntegration, addDraft, addImage, addSchedule, bridgeApiCall, broadcastJson, buildProfileMetadata, checkUsernameWalletsPendingQueryOptions, decodeObj, dedupeAndSortKeyAuths, deleteDraft, deleteImage, deleteSchedule, downVotingPower, encodeObj, extractAccountProfile, getAccessToken, getAccountFullQueryOptions, getAccountNotificationsInfiniteQueryOptions, getAccountPendingRecoveryQueryOptions, getAccountPosts, getAccountPostsInfiniteQueryOptions, getAccountPostsQueryOptions, getAccountRcQueryOptions, getAccountRecoveriesQueryOptions, getAccountReputationsQueryOptions, getAccountSubscriptionsQueryOptions, getAccountVoteHistoryInfiniteQueryOptions, getAccountsQueryOptions, getActiveAccountBookmarksQueryOptions, getActiveAccountFavouritesQueryOptions, getAnnouncementsQueryOptions, getBoostPlusAccountPricesQueryOptions, getBoostPlusPricesQueryOptions, getBotsQueryOptions, getBoundFetch, getChainPropertiesQueryOptions, getCollateralizedConversionRequestsQueryOptions, getCommentHistoryQueryOptions, getCommunities, getCommunitiesQueryOptions, getCommunity, getCommunityContextQueryOptions, getCommunityPermissions, getCommunityQueryOptions, getCommunitySubscribersQueryOptions, getCommunityType, getContentQueryOptions, getContentRepliesQueryOptions, getControversialRisingInfiniteQueryOptions, getConversionRequestsQueryOptions, getCurrencyRate, getCurrencyRates, getCurrencyTokenRate, getDeletedEntryQueryOptions, getDiscoverCurationQueryOptions, getDiscoverLeaderboardQueryOptions, getDiscussion, getDiscussionQueryOptions, getDiscussionsQueryOptions, getDraftsQueryOptions, getDynamicPropsQueryOptions, getEntryActiveVotesQueryOptions, getFollowCountQueryOptions, getFollowingQueryOptions, getFragmentsQueryOptions, getFriendsInfiniteQueryOptions, getGalleryImagesQueryOptions, getGameStatusCheckQueryOptions, getHiveHbdStatsQueryOptions, getHivePoshLinksQueryOptions, getImagesQueryOptions, getIncomingRcQueryOptions, getLoginType, getMarketData, getMarketDataQueryOptions, getMarketHistoryQueryOptions, getMarketStatisticsQueryOptions, getMutedUsersQueryOptions, getNormalizePostQueryOptions, getNotificationSetting, getNotifications, getNotificationsInfiniteQueryOptions, getNotificationsSettingsQueryOptions, getNotificationsUnreadCountQueryOptions, getOpenOrdersQueryOptions, getOrderBookQueryOptions, getOutgoingRcDelegationsInfiniteQueryOptions, getPageStatsQueryOptions, getPointsQueryOptions, getPost, getPostHeader, getPostHeaderQueryOptions, getPostQueryOptions, getPostTipsQueryOptions, getPostingKey, getPostsRanked, getPostsRankedInfiniteQueryOptions, getPostsRankedQueryOptions, getProfiles, getProfilesQueryOptions, getPromotePriceQueryOptions, getPromotedPost, getPromotedPostsQuery, getProposalQueryOptions, getProposalVotesInfiniteQueryOptions, getProposalsQueryOptions, getQueryClient, getRcStatsQueryOptions, getReblogsQueryOptions, getReceivedVestingSharesQueryOptions, getReferralsInfiniteQueryOptions, getReferralsStatsQueryOptions, getRefreshToken, getRelationshipBetweenAccounts, getRelationshipBetweenAccountsQueryOptions, getRewardedCommunitiesQueryOptions, getSavingsWithdrawFromQueryOptions, getSchedulesQueryOptions, getSearchAccountQueryOptions, getSearchAccountsByUsernameQueryOptions, getSearchApiInfiniteQueryOptions, getSearchFriendsQueryOptions, getSearchPathQueryOptions, getSearchTopicsQueryOptions, getSimilarEntriesQueryOptions, getStatsQueryOptions, getSubscribers, getSubscriptions, getTradeHistoryQueryOptions, getTransactionsInfiniteQueryOptions, getTrendingTagsQueryOptions, getTrendingTagsWithStatsQueryOptions, getUser, getUserProposalVotesQueryOptions, getVestingDelegationsQueryOptions, getVisibleFirstLevelThreadItems, getWavesByHostQueryOptions, getWavesByTagQueryOptions, getWavesFollowingQueryOptions, getWavesTrendingTagsQueryOptions, getWithdrawRoutesQueryOptions, getWitnessesInfiniteQueryOptions, hsTokenRenew, isCommunity, lookupAccountsQueryOptions, makeQueryClient, mapThreadItemsToWaveEntries, markNotifications, moveSchedule, normalizePost, normalizeWaveEntryFromApi, onboardEmail, parseAccounts, parseAsset, parseProfileMetadata, powerRechargeTime, rcPower, resolvePost, roleMap, saveNotificationSetting, search, searchAccount, searchPath, searchQueryOptions, searchTag, signUp, sortDiscussions, subscribeEmail, toEntryArray, updateDraft, uploadImage, useAccountFavouriteAdd, useAccountFavouriteDelete, useAccountRelationsUpdate, useAccountRevokeKey, useAccountRevokePosting, useAccountUpdate, useAccountUpdateKeyAuths, useAccountUpdatePassword, useAccountUpdateRecovery, useAddFragment, useBookmarkAdd, useBookmarkDelete, useBroadcastMutation, useEditFragment, useGameClaim, useRecordActivity, useRemoveFragment, useSignOperationByHivesigner, useSignOperationByKey, useSignOperationByKeychain, usrActivity, validatePostCreating, votingPower, votingValue };
4284
4910
  //# sourceMappingURL=index.mjs.map
4285
4911
  //# sourceMappingURL=index.mjs.map