@ecency/sdk 2.2.4 → 2.2.6
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/browser/index.d.ts +1234 -1206
- package/dist/browser/index.js +2 -2
- package/dist/browser/index.js.map +1 -1
- package/dist/node/index.cjs +2 -2
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.mjs +2 -2
- package/dist/node/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import {
|
|
2
|
+
import { MutationKey, UseMutationOptions, QueryClient, QueryKey, InfiniteData, UseQueryOptions, UseInfiniteQueryOptions, useMutation } from '@tanstack/react-query';
|
|
3
3
|
import { O as Operation, P as PrivateKey, B as BroadcastResult, A as Authority, a as PublicKey, b as OperationName, o as operations } from './hive-CwYfobOc.js';
|
|
4
4
|
export { j as AccountCreateOperation, i as AssetSymbol, C as CustomJsonOperation, T as HiveTxTransaction, M as Memo, h as OperationBody, S as Signature, f as callREST, d as callRPC, e as callRPCBroadcast, g as callWithQuorum, c as hiveTxConfig, u as hiveTxUtils } from './hive-CwYfobOc.js';
|
|
5
5
|
|
|
@@ -694,1223 +694,1247 @@ interface WrappedResponse<T> {
|
|
|
694
694
|
pagination: PaginationMeta;
|
|
695
695
|
}
|
|
696
696
|
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
697
|
+
/**
|
|
698
|
+
* Authority levels for Hive blockchain operations.
|
|
699
|
+
* - posting: Social operations (voting, commenting, reblogging)
|
|
700
|
+
* - active: Financial and account management operations
|
|
701
|
+
* - owner: Critical security operations (key changes, account recovery)
|
|
702
|
+
* - memo: Memo encryption/decryption (rarely used for signing)
|
|
703
|
+
*/
|
|
704
|
+
type AuthorityLevel = 'posting' | 'active' | 'owner' | 'memo';
|
|
705
|
+
/**
|
|
706
|
+
* Maps operation types to their required authority level.
|
|
707
|
+
*
|
|
708
|
+
* This mapping is used to determine which key is needed to sign a transaction,
|
|
709
|
+
* enabling smart auth fallback and auth upgrade UI.
|
|
710
|
+
*
|
|
711
|
+
* @remarks
|
|
712
|
+
* - Most social operations (vote, comment, reblog) require posting authority
|
|
713
|
+
* - Financial operations (transfer, withdraw) require active authority
|
|
714
|
+
* - Account management operations require active authority
|
|
715
|
+
* - Security operations (password change, account recovery) require owner authority
|
|
716
|
+
* - custom_json requires dynamic detection based on required_auths vs required_posting_auths
|
|
717
|
+
*/
|
|
718
|
+
declare const OPERATION_AUTHORITY_MAP: Record<string, AuthorityLevel>;
|
|
719
|
+
/**
|
|
720
|
+
* Determines authority required for a custom_json operation.
|
|
721
|
+
*
|
|
722
|
+
* Custom JSON operations can require either posting or active authority
|
|
723
|
+
* depending on which field is populated:
|
|
724
|
+
* - required_auths (active authority)
|
|
725
|
+
* - required_posting_auths (posting authority)
|
|
726
|
+
*
|
|
727
|
+
* @param customJsonOp - The custom_json operation to inspect
|
|
728
|
+
* @returns 'active' if requires active authority, 'posting' if requires posting authority
|
|
729
|
+
*
|
|
730
|
+
* @example
|
|
731
|
+
* ```typescript
|
|
732
|
+
* // Reblog operation (posting authority)
|
|
733
|
+
* const reblogOp: Operation = ['custom_json', {
|
|
734
|
+
* required_auths: [],
|
|
735
|
+
* required_posting_auths: ['alice'],
|
|
736
|
+
* id: 'reblog',
|
|
737
|
+
* json: '...'
|
|
738
|
+
* }];
|
|
739
|
+
* getCustomJsonAuthority(reblogOp); // Returns 'posting'
|
|
740
|
+
*
|
|
741
|
+
* // Some active authority custom_json
|
|
742
|
+
* const activeOp: Operation = ['custom_json', {
|
|
743
|
+
* required_auths: ['alice'],
|
|
744
|
+
* required_posting_auths: [],
|
|
745
|
+
* id: 'some_active_op',
|
|
746
|
+
* json: '...'
|
|
747
|
+
* }];
|
|
748
|
+
* getCustomJsonAuthority(activeOp); // Returns 'active'
|
|
749
|
+
* ```
|
|
750
|
+
*/
|
|
751
|
+
declare function getCustomJsonAuthority(customJsonOp: Operation): AuthorityLevel;
|
|
752
|
+
/**
|
|
753
|
+
* Determines authority required for a proposal operation.
|
|
754
|
+
*
|
|
755
|
+
* Proposal operations (create_proposal, update_proposal) typically require
|
|
756
|
+
* active authority as they involve financial commitments and funding allocations.
|
|
757
|
+
*
|
|
758
|
+
* @param proposalOp - The proposal operation to inspect
|
|
759
|
+
* @returns 'active' authority requirement
|
|
760
|
+
*
|
|
761
|
+
* @remarks
|
|
762
|
+
* Unlike custom_json, proposal operations don't have explicit required_auths fields.
|
|
763
|
+
* They always use the creator's authority, which defaults to active for financial
|
|
764
|
+
* operations involving the DAO treasury.
|
|
765
|
+
*
|
|
766
|
+
* @example
|
|
767
|
+
* ```typescript
|
|
768
|
+
* const proposalOp: Operation = ['create_proposal', {
|
|
769
|
+
* creator: 'alice',
|
|
770
|
+
* receiver: 'bob',
|
|
771
|
+
* subject: 'My Proposal',
|
|
772
|
+
* permlink: 'my-proposal',
|
|
773
|
+
* start: '2026-03-01T00:00:00',
|
|
774
|
+
* end: '2026-04-01T00:00:00',
|
|
775
|
+
* daily_pay: '100.000 HBD',
|
|
776
|
+
* extensions: []
|
|
777
|
+
* }];
|
|
778
|
+
* getProposalAuthority(proposalOp); // Returns 'active'
|
|
779
|
+
* ```
|
|
780
|
+
*/
|
|
781
|
+
declare function getProposalAuthority(proposalOp: Operation): AuthorityLevel;
|
|
782
|
+
/**
|
|
783
|
+
* Determines the required authority level for any operation.
|
|
784
|
+
*
|
|
785
|
+
* Uses the OPERATION_AUTHORITY_MAP for standard operations, and dynamic
|
|
786
|
+
* detection for custom_json operations.
|
|
787
|
+
*
|
|
788
|
+
* @param op - The operation to check
|
|
789
|
+
* @returns 'posting' or 'active' authority requirement
|
|
790
|
+
*
|
|
791
|
+
* @example
|
|
792
|
+
* ```typescript
|
|
793
|
+
* const voteOp: Operation = ['vote', { voter: 'alice', author: 'bob', permlink: 'post', weight: 10000 }];
|
|
794
|
+
* getOperationAuthority(voteOp); // Returns 'posting'
|
|
795
|
+
*
|
|
796
|
+
* const transferOp: Operation = ['transfer', { from: 'alice', to: 'bob', amount: '1.000 HIVE', memo: '' }];
|
|
797
|
+
* getOperationAuthority(transferOp); // Returns 'active'
|
|
798
|
+
* ```
|
|
799
|
+
*/
|
|
800
|
+
declare function getOperationAuthority(op: Operation): AuthorityLevel;
|
|
801
|
+
/**
|
|
802
|
+
* Determines the highest authority level required for a list of operations.
|
|
803
|
+
*
|
|
804
|
+
* Useful when broadcasting multiple operations together - the highest authority
|
|
805
|
+
* level required by any operation determines what key is needed for the batch.
|
|
806
|
+
*
|
|
807
|
+
* Authority hierarchy: owner > active > posting > memo
|
|
808
|
+
*
|
|
809
|
+
* @param ops - Array of operations
|
|
810
|
+
* @returns Highest authority level required ('owner', 'active', or 'posting')
|
|
811
|
+
*
|
|
812
|
+
* @example
|
|
813
|
+
* ```typescript
|
|
814
|
+
* const ops: Operation[] = [
|
|
815
|
+
* ['vote', { ... }], // posting
|
|
816
|
+
* ['comment', { ... }], // posting
|
|
817
|
+
* ];
|
|
818
|
+
* getRequiredAuthority(ops); // Returns 'posting'
|
|
819
|
+
*
|
|
820
|
+
* const mixedOps: Operation[] = [
|
|
821
|
+
* ['comment', { ... }], // posting
|
|
822
|
+
* ['transfer', { ... }], // active
|
|
823
|
+
* ];
|
|
824
|
+
* getRequiredAuthority(mixedOps); // Returns 'active'
|
|
825
|
+
*
|
|
826
|
+
* const securityOps: Operation[] = [
|
|
827
|
+
* ['transfer', { ... }], // active
|
|
828
|
+
* ['change_recovery_account', { ... }], // owner
|
|
829
|
+
* ];
|
|
830
|
+
* getRequiredAuthority(securityOps); // Returns 'owner'
|
|
831
|
+
* ```
|
|
832
|
+
*/
|
|
833
|
+
declare function getRequiredAuthority(ops: Operation[]): AuthorityLevel;
|
|
702
834
|
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
835
|
+
/**
|
|
836
|
+
* Broadcast mode controls whether the SDK waits for block inclusion.
|
|
837
|
+
*
|
|
838
|
+
* - `'sync'` (default): Uses `broadcast_transaction_synchronous` — waits for
|
|
839
|
+
* the transaction to be included in a block and returns `block_num`/`trx_num`.
|
|
840
|
+
* **Use for:** transfers, account updates, key changes, delegations, conversions.
|
|
841
|
+
*
|
|
842
|
+
* - `'async'`: Uses `broadcast_transaction` — returns as soon as the node
|
|
843
|
+
* accepts the transaction into its mempool. Transport and RPC errors are
|
|
844
|
+
* still thrown immediately; the only thing skipped is the block-inclusion wait.
|
|
845
|
+
* **Use for:** votes, follows/unfollows, reblogs, community subscribe/unsubscribe,
|
|
846
|
+
* custom_json social operations where faster response matters more than confirmation.
|
|
847
|
+
*/
|
|
848
|
+
type BroadcastMode = 'sync' | 'async';
|
|
849
|
+
/**
|
|
850
|
+
* React Query mutation hook for broadcasting Hive operations.
|
|
851
|
+
* Supports multiple authentication methods with automatic fallback.
|
|
852
|
+
*
|
|
853
|
+
* @template T - Type of the mutation payload
|
|
854
|
+
* @param mutationKey - React Query mutation key for cache management
|
|
855
|
+
* @param username - Hive username (required for broadcast)
|
|
856
|
+
* @param operations - Function that converts payload to Hive operations
|
|
857
|
+
* @param onSuccess - Success callback after broadcast completes
|
|
858
|
+
* @param auth - Authentication context (supports both legacy AuthContext and new AuthContextV2)
|
|
859
|
+
* @param authority - Key authority to use ('posting' | 'active' | 'owner' | 'memo'), defaults to 'posting'
|
|
860
|
+
*
|
|
861
|
+
* @returns React Query mutation result
|
|
862
|
+
*
|
|
863
|
+
* @remarks
|
|
864
|
+
* **Authentication Flow:**
|
|
865
|
+
*
|
|
866
|
+
* 1. **With AuthContextV2 + adapter + enableFallback** (recommended for new code):
|
|
867
|
+
* - Tries auth methods in fallbackChain order
|
|
868
|
+
* - Smart fallback: only retries on auth errors, not RC/network errors
|
|
869
|
+
* - Uses platform adapter for storage, UI, and broadcasting
|
|
870
|
+
*
|
|
871
|
+
* 2. **With legacy AuthContext** (backward compatible):
|
|
872
|
+
* - Tries auth.broadcast() first (custom implementation)
|
|
873
|
+
* - Falls back to postingKey if available
|
|
874
|
+
* - Falls back to accessToken (HiveSigner) if available
|
|
875
|
+
* - Throws if no auth method available
|
|
876
|
+
*
|
|
877
|
+
* **Backward Compatibility:**
|
|
878
|
+
* - All existing code using AuthContext will continue to work
|
|
879
|
+
* - AuthContextV2 extends AuthContext, so it's a drop-in replacement
|
|
880
|
+
* - enableFallback defaults to false if no adapter provided
|
|
881
|
+
*
|
|
882
|
+
* @example
|
|
883
|
+
* ```typescript
|
|
884
|
+
* // New pattern with platform adapter and fallback
|
|
885
|
+
* const mutation = useBroadcastMutation(
|
|
886
|
+
* ['vote'],
|
|
887
|
+
* username,
|
|
888
|
+
* (payload) => [voteOperation(payload)],
|
|
889
|
+
* () => console.log('Success!'),
|
|
890
|
+
* {
|
|
891
|
+
* adapter: myAdapter,
|
|
892
|
+
* enableFallback: true,
|
|
893
|
+
* fallbackChain: ['keychain', 'key', 'hivesigner']
|
|
894
|
+
* },
|
|
895
|
+
* 'posting'
|
|
896
|
+
* );
|
|
897
|
+
*
|
|
898
|
+
* // Legacy pattern (still works)
|
|
899
|
+
* const mutation = useBroadcastMutation(
|
|
900
|
+
* ['vote'],
|
|
901
|
+
* username,
|
|
902
|
+
* (payload) => [voteOperation(payload)],
|
|
903
|
+
* () => console.log('Success!'),
|
|
904
|
+
* { postingKey: 'wif-key' }
|
|
905
|
+
* );
|
|
906
|
+
* ```
|
|
907
|
+
*/
|
|
908
|
+
declare function useBroadcastMutation<T>(mutationKey: MutationKey | undefined, username: string | undefined, operations: (payload: T) => Operation[], onSuccess?: UseMutationOptions<unknown, Error, T>["onSuccess"], auth?: AuthContextV2, authority?: AuthorityLevel, options?: {
|
|
909
|
+
onMutate?: UseMutationOptions<unknown, Error, T>["onMutate"];
|
|
910
|
+
onError?: UseMutationOptions<unknown, Error, T>["onError"];
|
|
911
|
+
onSettled?: UseMutationOptions<unknown, Error, T>["onSettled"];
|
|
912
|
+
/**
|
|
913
|
+
* Controls whether to wait for block inclusion or just mempool acceptance.
|
|
914
|
+
*
|
|
915
|
+
* - `'sync'` (default): Waits for block inclusion, returns block_num/trx_num.
|
|
916
|
+
* Use for transfers, delegations, account updates, key changes.
|
|
917
|
+
*
|
|
918
|
+
* - `'async'`: Returns after mempool acceptance. Faster but no block confirmation.
|
|
919
|
+
* Use for votes, follows, reblogs, community subscribes, custom_json social ops.
|
|
920
|
+
*/
|
|
921
|
+
broadcastMode?: BroadcastMode;
|
|
922
|
+
}): _tanstack_react_query.UseMutationResult<unknown, Error, T, unknown>;
|
|
707
923
|
|
|
708
|
-
|
|
709
|
-
about?: string;
|
|
710
|
-
cover_image?: string;
|
|
711
|
-
location?: string;
|
|
712
|
-
name?: string;
|
|
713
|
-
profile_image?: string;
|
|
714
|
-
website?: string;
|
|
715
|
-
pinned?: string;
|
|
716
|
-
reputation?: number;
|
|
717
|
-
version?: number;
|
|
718
|
-
beneficiary?: {
|
|
719
|
-
account: string;
|
|
720
|
-
weight: number;
|
|
721
|
-
};
|
|
722
|
-
tokens?: {
|
|
723
|
-
symbol: string;
|
|
724
|
-
type: string;
|
|
725
|
-
meta: Record<string, any>;
|
|
726
|
-
}[];
|
|
727
|
-
}
|
|
924
|
+
declare function broadcastJson<T>(username: string | undefined, id: string, payload: T, auth?: AuthContext): Promise<any>;
|
|
728
925
|
|
|
729
|
-
|
|
730
|
-
name: string;
|
|
731
|
-
owner: Authority;
|
|
732
|
-
active: Authority;
|
|
733
|
-
posting: Authority;
|
|
734
|
-
memo_key: string;
|
|
735
|
-
post_count: number;
|
|
736
|
-
created: string;
|
|
737
|
-
reputation: string | number;
|
|
738
|
-
json_metadata: string;
|
|
739
|
-
posting_json_metadata: string;
|
|
740
|
-
last_vote_time: string;
|
|
741
|
-
last_post: string;
|
|
742
|
-
reward_hbd_balance: string;
|
|
743
|
-
reward_vesting_hive: string;
|
|
744
|
-
reward_hive_balance: string;
|
|
745
|
-
reward_vesting_balance: string;
|
|
746
|
-
balance: string;
|
|
747
|
-
vesting_shares: string;
|
|
748
|
-
hbd_balance: string;
|
|
749
|
-
savings_balance: string;
|
|
750
|
-
savings_hbd_balance: string;
|
|
751
|
-
savings_hbd_seconds: string;
|
|
752
|
-
savings_hbd_last_interest_payment: string;
|
|
753
|
-
savings_hbd_seconds_last_update: string;
|
|
754
|
-
next_vesting_withdrawal: string;
|
|
755
|
-
pending_claimed_accounts: number;
|
|
756
|
-
delegated_vesting_shares: string;
|
|
757
|
-
received_vesting_shares: string;
|
|
758
|
-
vesting_withdraw_rate: string;
|
|
759
|
-
to_withdraw: string;
|
|
760
|
-
withdrawn: string;
|
|
761
|
-
witness_votes: string[];
|
|
762
|
-
proxy: string;
|
|
763
|
-
recovery_account: string;
|
|
764
|
-
proxied_vsf_votes: number[] | string[];
|
|
765
|
-
voting_manabar: {
|
|
766
|
-
current_mana: string | number;
|
|
767
|
-
last_update_time: number;
|
|
768
|
-
};
|
|
769
|
-
voting_power: number;
|
|
770
|
-
downvote_manabar: {
|
|
771
|
-
current_mana: string | number;
|
|
772
|
-
last_update_time: number;
|
|
773
|
-
};
|
|
774
|
-
profile?: AccountProfile;
|
|
775
|
-
follow_stats?: AccountFollowStats;
|
|
776
|
-
proxyVotes?: [];
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
interface AccountRelationship {
|
|
780
|
-
follows: boolean;
|
|
781
|
-
ignores: boolean;
|
|
782
|
-
is_blacklisted: boolean;
|
|
783
|
-
follows_blacklists: boolean;
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
interface AccountBookmark {
|
|
787
|
-
_id: string;
|
|
788
|
-
author: string;
|
|
789
|
-
permlink: string;
|
|
790
|
-
timestamp: number;
|
|
791
|
-
created: string;
|
|
792
|
-
}
|
|
926
|
+
declare function withTimeoutSignal(timeoutMs: number, signal?: AbortSignal): AbortSignal;
|
|
793
927
|
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
928
|
+
/** Timeout for internal API calls (search, private API). */
|
|
929
|
+
declare const INTERNAL_API_TIMEOUT_MS = 10000;
|
|
930
|
+
declare const CONFIG: {
|
|
931
|
+
privateApiHost: string;
|
|
932
|
+
imageHost: string;
|
|
933
|
+
/** Current Hive RPC nodes. Reads from the unified hive-tx config. */
|
|
934
|
+
readonly hiveNodes: string[];
|
|
935
|
+
heliusApiKey: string | undefined;
|
|
936
|
+
queryClient: QueryClient;
|
|
937
|
+
plausibleHost: string;
|
|
938
|
+
spkNode: string;
|
|
939
|
+
dmcaAccounts: string[];
|
|
940
|
+
dmcaTags: string[];
|
|
941
|
+
dmcaPatterns: string[];
|
|
942
|
+
dmcaTagRegexes: RegExp[];
|
|
943
|
+
dmcaPatternRegexes: RegExp[];
|
|
944
|
+
_dmcaInitialized: boolean;
|
|
945
|
+
};
|
|
946
|
+
type DmcaListsInput = {
|
|
947
|
+
accounts?: string[];
|
|
948
|
+
tags?: string[];
|
|
949
|
+
posts?: string[];
|
|
950
|
+
};
|
|
951
|
+
declare namespace ConfigManager {
|
|
952
|
+
function setQueryClient(client: QueryClient): void;
|
|
953
|
+
/**
|
|
954
|
+
* Set the private API host
|
|
955
|
+
* @param host - The private API host URL (e.g., "https://ecency.com" or "" for relative URLs)
|
|
956
|
+
*/
|
|
957
|
+
function setPrivateApiHost(host: string): void;
|
|
958
|
+
/**
|
|
959
|
+
* Get a validated base URL for API requests
|
|
960
|
+
* Returns a valid base URL that can be used with new URL(path, baseUrl)
|
|
961
|
+
*
|
|
962
|
+
* Priority:
|
|
963
|
+
* 1. CONFIG.privateApiHost if set (dev/staging or explicit config)
|
|
964
|
+
* 2. window.location.origin if in browser (production with relative URLs)
|
|
965
|
+
* 3. 'https://ecency.com' as fallback for SSR (production default)
|
|
966
|
+
*
|
|
967
|
+
* @returns A valid base URL string
|
|
968
|
+
* @throws Never throws - always returns a valid URL
|
|
969
|
+
*/
|
|
970
|
+
function getValidatedBaseUrl(): string;
|
|
971
|
+
/**
|
|
972
|
+
* Set the image host
|
|
973
|
+
* @param host - The image host URL (e.g., "https://images.ecency.com")
|
|
974
|
+
*/
|
|
975
|
+
function setImageHost(host: string): void;
|
|
976
|
+
/**
|
|
977
|
+
* Set Hive RPC nodes, replacing the default list.
|
|
978
|
+
* Directly updates the unified hive-tx config object.
|
|
979
|
+
* @param nodes - Array of Hive RPC node URLs
|
|
980
|
+
*/
|
|
981
|
+
function setHiveNodes(nodes: string[]): void;
|
|
982
|
+
/**
|
|
983
|
+
* Set DMCA filtering lists
|
|
984
|
+
* @param lists - DMCA lists object containing accounts/tags/posts arrays
|
|
985
|
+
*/
|
|
986
|
+
function setDmcaLists(lists?: DmcaListsInput): void;
|
|
798
987
|
}
|
|
799
988
|
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
989
|
+
/**
|
|
990
|
+
* Chain error handling utilities
|
|
991
|
+
* Extracted from web's operations.ts and mobile's dhive.ts error handling patterns
|
|
992
|
+
*/
|
|
993
|
+
declare enum ErrorType {
|
|
994
|
+
COMMON = "common",
|
|
995
|
+
INFO = "info",
|
|
996
|
+
INSUFFICIENT_RESOURCE_CREDITS = "insufficient_resource_credits",
|
|
997
|
+
MISSING_AUTHORITY = "missing_authority",
|
|
998
|
+
TOKEN_EXPIRED = "token_expired",
|
|
999
|
+
NETWORK = "network",
|
|
1000
|
+
TIMEOUT = "timeout",
|
|
1001
|
+
VALIDATION = "validation"
|
|
804
1002
|
}
|
|
805
|
-
interface
|
|
806
|
-
|
|
1003
|
+
interface ParsedChainError {
|
|
1004
|
+
message: string;
|
|
1005
|
+
type: ErrorType;
|
|
1006
|
+
originalError?: any;
|
|
807
1007
|
}
|
|
1008
|
+
/**
|
|
1009
|
+
* Parses Hive blockchain errors into standardized format.
|
|
1010
|
+
* Extracted from web's operations.ts and mobile's dhive.ts error handling.
|
|
1011
|
+
*
|
|
1012
|
+
* @param error - The error object or string from a blockchain operation
|
|
1013
|
+
* @returns Parsed error with user-friendly message and categorized type
|
|
1014
|
+
*
|
|
1015
|
+
* @example
|
|
1016
|
+
* ```typescript
|
|
1017
|
+
* try {
|
|
1018
|
+
* await vote(...);
|
|
1019
|
+
* } catch (error) {
|
|
1020
|
+
* const parsed = parseChainError(error);
|
|
1021
|
+
* console.log(parsed.message); // "Insufficient Resource Credits. Please wait or power up."
|
|
1022
|
+
* console.log(parsed.type); // ErrorType.INSUFFICIENT_RESOURCE_CREDITS
|
|
1023
|
+
* }
|
|
1024
|
+
* ```
|
|
1025
|
+
*/
|
|
1026
|
+
declare function parseChainError(error: any): ParsedChainError;
|
|
1027
|
+
/**
|
|
1028
|
+
* Formats error for display to user.
|
|
1029
|
+
* Returns tuple of [message, type] for backward compatibility with existing code.
|
|
1030
|
+
*
|
|
1031
|
+
* This function maintains compatibility with the old formatError signature from
|
|
1032
|
+
* web's operations.ts (line 59-84) and mobile's dhive.ts error handling.
|
|
1033
|
+
*
|
|
1034
|
+
* @param error - The error object or string
|
|
1035
|
+
* @returns Tuple of [user-friendly message, error type]
|
|
1036
|
+
*
|
|
1037
|
+
* @example
|
|
1038
|
+
* ```typescript
|
|
1039
|
+
* try {
|
|
1040
|
+
* await transfer(...);
|
|
1041
|
+
* } catch (error) {
|
|
1042
|
+
* const [message, type] = formatError(error);
|
|
1043
|
+
* showToast(message, type);
|
|
1044
|
+
* }
|
|
1045
|
+
* ```
|
|
1046
|
+
*/
|
|
1047
|
+
declare function formatError(error: any): [string, ErrorType];
|
|
1048
|
+
/**
|
|
1049
|
+
* Checks if error indicates missing authority and should trigger auth fallback.
|
|
1050
|
+
* Used by the SDK's useBroadcastMutation to determine if it should retry with
|
|
1051
|
+
* an alternate authentication method.
|
|
1052
|
+
*
|
|
1053
|
+
* @param error - The error object or string
|
|
1054
|
+
* @returns true if auth fallback should be attempted
|
|
1055
|
+
*
|
|
1056
|
+
* @example
|
|
1057
|
+
* ```typescript
|
|
1058
|
+
* try {
|
|
1059
|
+
* await broadcast(operations);
|
|
1060
|
+
* } catch (error) {
|
|
1061
|
+
* if (shouldTriggerAuthFallback(error)) {
|
|
1062
|
+
* // Try with alternate auth method
|
|
1063
|
+
* await broadcastWithHiveAuth(operations);
|
|
1064
|
+
* }
|
|
1065
|
+
* }
|
|
1066
|
+
* ```
|
|
1067
|
+
*/
|
|
1068
|
+
declare function shouldTriggerAuthFallback(error: any): boolean;
|
|
1069
|
+
/**
|
|
1070
|
+
* Checks if error is a resource credits (RC) error.
|
|
1071
|
+
* Useful for showing specific UI feedback about RC issues.
|
|
1072
|
+
*
|
|
1073
|
+
* @param error - The error object or string
|
|
1074
|
+
* @returns true if the error is related to insufficient RC
|
|
1075
|
+
*
|
|
1076
|
+
* @example
|
|
1077
|
+
* ```typescript
|
|
1078
|
+
* try {
|
|
1079
|
+
* await vote(...);
|
|
1080
|
+
* } catch (error) {
|
|
1081
|
+
* if (isResourceCreditsError(error)) {
|
|
1082
|
+
* showRCWarning(); // Show specific RC education/power up UI
|
|
1083
|
+
* }
|
|
1084
|
+
* }
|
|
1085
|
+
* ```
|
|
1086
|
+
*/
|
|
1087
|
+
declare function isResourceCreditsError(error: any): boolean;
|
|
1088
|
+
/**
|
|
1089
|
+
* Checks if error is informational (not critical).
|
|
1090
|
+
* Informational errors typically don't need retry logic.
|
|
1091
|
+
*
|
|
1092
|
+
* @param error - The error object or string
|
|
1093
|
+
* @returns true if the error is informational
|
|
1094
|
+
*/
|
|
1095
|
+
declare function isInfoError(error: any): boolean;
|
|
1096
|
+
/**
|
|
1097
|
+
* Checks if error is network-related and should be retried.
|
|
1098
|
+
*
|
|
1099
|
+
* @param error - The error object or string
|
|
1100
|
+
* @returns true if the error is network-related
|
|
1101
|
+
*/
|
|
1102
|
+
declare function isNetworkError(error: any): boolean;
|
|
808
1103
|
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
1104
|
+
declare function makeQueryClient(): QueryClient;
|
|
1105
|
+
declare const getQueryClient: () => QueryClient;
|
|
1106
|
+
declare namespace EcencyQueriesManager {
|
|
1107
|
+
function getQueryData<T>(queryKey: QueryKey): T | undefined;
|
|
1108
|
+
function getInfiniteQueryData<T>(queryKey: QueryKey): InfiniteData<T, unknown> | undefined;
|
|
1109
|
+
function prefetchQuery<T>(options: UseQueryOptions<T>): Promise<T | undefined>;
|
|
1110
|
+
function prefetchInfiniteQuery<T, P>(options: UseInfiniteQueryOptions<T, Error, InfiniteData<T>, QueryKey, P>): Promise<InfiniteData<T, unknown> | undefined>;
|
|
1111
|
+
function generateClientServerQuery<T>(options: UseQueryOptions<T>): {
|
|
1112
|
+
prefetch: () => Promise<T | undefined>;
|
|
1113
|
+
getData: () => T | undefined;
|
|
1114
|
+
useClientQuery: () => _tanstack_react_query.UseQueryResult<_tanstack_react_query.NoInfer<T>, Error>;
|
|
1115
|
+
fetchAndGet: () => Promise<T>;
|
|
1116
|
+
};
|
|
1117
|
+
function generateClientServerInfiniteQuery<T, P>(options: UseInfiniteQueryOptions<T, Error, InfiniteData<T>, QueryKey, P>): {
|
|
1118
|
+
prefetch: () => Promise<InfiniteData<T, unknown> | undefined>;
|
|
1119
|
+
getData: () => InfiniteData<T, unknown> | undefined;
|
|
1120
|
+
useClientQuery: () => _tanstack_react_query.UseInfiniteQueryResult<InfiniteData<T, unknown>, Error>;
|
|
1121
|
+
fetchAndGet: () => Promise<InfiniteData<T, P>>;
|
|
1122
|
+
};
|
|
813
1123
|
}
|
|
814
1124
|
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
comment_author?: string;
|
|
824
|
-
comment_permlink?: string;
|
|
825
|
-
author?: string;
|
|
826
|
-
permlink?: string;
|
|
827
|
-
curator: string;
|
|
828
|
-
reward: string;
|
|
829
|
-
}
|
|
830
|
-
interface AuthorReward extends BaseTransaction {
|
|
831
|
-
type: "author_reward";
|
|
832
|
-
author: string;
|
|
833
|
-
permlink: string;
|
|
834
|
-
hbd_payout: string;
|
|
835
|
-
hive_payout: string;
|
|
836
|
-
vesting_payout: string;
|
|
837
|
-
}
|
|
838
|
-
interface CommentBenefactor extends BaseTransaction {
|
|
839
|
-
type: "comment_benefactor_reward";
|
|
840
|
-
benefactor: string;
|
|
841
|
-
author: string;
|
|
842
|
-
permlink: string;
|
|
843
|
-
hbd_payout: string;
|
|
844
|
-
hive_payout: string;
|
|
845
|
-
vesting_payout: string;
|
|
846
|
-
}
|
|
847
|
-
interface ClaimRewardBalance extends BaseTransaction {
|
|
848
|
-
type: "claim_reward_balance";
|
|
849
|
-
account: string;
|
|
850
|
-
reward_hbd: string;
|
|
851
|
-
reward_hive: string;
|
|
852
|
-
reward_vests: string;
|
|
853
|
-
}
|
|
854
|
-
interface Transfer extends BaseTransaction {
|
|
855
|
-
type: "transfer";
|
|
856
|
-
amount: string;
|
|
857
|
-
memo: string;
|
|
858
|
-
from: string;
|
|
859
|
-
to: string;
|
|
860
|
-
}
|
|
861
|
-
interface TransferToVesting extends BaseTransaction {
|
|
862
|
-
type: "transfer_to_vesting";
|
|
863
|
-
amount: string;
|
|
864
|
-
memo?: string;
|
|
865
|
-
from: string;
|
|
866
|
-
to: string;
|
|
867
|
-
}
|
|
868
|
-
interface SetWithdrawRoute extends BaseTransaction {
|
|
869
|
-
type: "set_withdraw_vesting_route";
|
|
870
|
-
from_account: string;
|
|
871
|
-
to_account: string;
|
|
872
|
-
percent: number;
|
|
873
|
-
auto_vest: boolean;
|
|
874
|
-
}
|
|
875
|
-
interface TransferToSavings extends BaseTransaction {
|
|
876
|
-
type: "transfer_to_savings";
|
|
877
|
-
amount: string;
|
|
878
|
-
memo?: string;
|
|
879
|
-
from: string;
|
|
880
|
-
to: string;
|
|
881
|
-
}
|
|
882
|
-
interface CancelTransferFromSavings extends BaseTransaction {
|
|
883
|
-
from: string;
|
|
884
|
-
request_id: number;
|
|
885
|
-
type: "cancel_transfer_from_savings";
|
|
886
|
-
}
|
|
887
|
-
interface WithdrawVesting extends BaseTransaction {
|
|
888
|
-
type: "withdraw_vesting";
|
|
889
|
-
acc: string;
|
|
890
|
-
vesting_shares: string;
|
|
891
|
-
}
|
|
892
|
-
interface FillOrder extends BaseTransaction {
|
|
893
|
-
type: "fill_order";
|
|
894
|
-
current_pays: string;
|
|
895
|
-
open_pays: string;
|
|
896
|
-
}
|
|
897
|
-
interface LimitOrderCancel extends BaseTransaction {
|
|
898
|
-
type: "limit_order_cancel";
|
|
899
|
-
owner: string;
|
|
900
|
-
orderid: number;
|
|
901
|
-
}
|
|
902
|
-
interface ProducerReward extends BaseTransaction {
|
|
903
|
-
type: "producer_reward";
|
|
904
|
-
vesting_shares: string;
|
|
905
|
-
producer: string;
|
|
906
|
-
}
|
|
907
|
-
interface Interest extends BaseTransaction {
|
|
908
|
-
type: "interest";
|
|
909
|
-
owner: string;
|
|
910
|
-
interest: string;
|
|
911
|
-
}
|
|
912
|
-
interface FillConvertRequest extends BaseTransaction {
|
|
913
|
-
type: "fill_convert_request";
|
|
914
|
-
amount_in: string;
|
|
915
|
-
amount_out: string;
|
|
916
|
-
}
|
|
917
|
-
interface FillCollateralizedConvertRequest extends BaseTransaction {
|
|
918
|
-
type: "fill_collateralized_convert_request";
|
|
919
|
-
owner: string;
|
|
920
|
-
requestid: number;
|
|
921
|
-
amount_in: string;
|
|
922
|
-
amount_out: string;
|
|
923
|
-
excess_collateral: string;
|
|
924
|
-
}
|
|
925
|
-
interface ReturnVestingDelegation extends BaseTransaction {
|
|
926
|
-
type: "return_vesting_delegation";
|
|
927
|
-
vesting_shares: string;
|
|
928
|
-
}
|
|
929
|
-
interface ProposalPay extends BaseTransaction {
|
|
930
|
-
type: "proposal_pay";
|
|
931
|
-
payment: string;
|
|
932
|
-
}
|
|
933
|
-
interface UpdateProposalVotes extends BaseTransaction {
|
|
934
|
-
type: "update_proposal_votes";
|
|
935
|
-
voter: string;
|
|
936
|
-
proposal_ids: [number];
|
|
937
|
-
approve: boolean;
|
|
938
|
-
}
|
|
939
|
-
interface CommentPayoutUpdate extends BaseTransaction {
|
|
940
|
-
type: "comment_payout_update";
|
|
941
|
-
author: string;
|
|
942
|
-
permlink: string;
|
|
943
|
-
}
|
|
944
|
-
interface CommentReward extends BaseTransaction {
|
|
945
|
-
type: "comment_reward";
|
|
946
|
-
author: string;
|
|
947
|
-
permlink: string;
|
|
948
|
-
payout: string;
|
|
949
|
-
}
|
|
950
|
-
interface CollateralizedConvert extends BaseTransaction {
|
|
951
|
-
type: "collateralized_convert";
|
|
952
|
-
owner: string;
|
|
953
|
-
requestid: number;
|
|
954
|
-
amount: string;
|
|
955
|
-
}
|
|
956
|
-
interface RecurrentTransfers extends BaseTransaction {
|
|
957
|
-
type: "recurrent_transfer";
|
|
958
|
-
amount: string;
|
|
959
|
-
memo: string;
|
|
960
|
-
from: string;
|
|
961
|
-
to: string;
|
|
962
|
-
recurrence: number;
|
|
963
|
-
executions: number;
|
|
964
|
-
}
|
|
965
|
-
interface FillRecurrentTransfers extends BaseTransaction {
|
|
966
|
-
type: "fill_recurrent_transfer";
|
|
967
|
-
amount: SMTAsset;
|
|
968
|
-
memo: string;
|
|
969
|
-
from: string;
|
|
970
|
-
to: string;
|
|
971
|
-
remaining_executions: number;
|
|
972
|
-
}
|
|
973
|
-
interface DelegateVestingShares extends BaseTransaction {
|
|
974
|
-
type: "delegate_vesting_shares";
|
|
975
|
-
delegator: string;
|
|
976
|
-
delegatee: string;
|
|
977
|
-
vesting_shares: string;
|
|
978
|
-
}
|
|
979
|
-
interface LimitOrderCreate extends BaseTransaction {
|
|
980
|
-
type: "limit_order_create";
|
|
981
|
-
owner: string;
|
|
982
|
-
orderid: number;
|
|
983
|
-
amount_to_sell: string;
|
|
984
|
-
min_to_receive: string;
|
|
985
|
-
expiration: string;
|
|
986
|
-
}
|
|
987
|
-
interface FillVestingWithdraw extends BaseTransaction {
|
|
988
|
-
type: "fill_vesting_withdraw";
|
|
989
|
-
from_account: string;
|
|
990
|
-
to_account: string;
|
|
991
|
-
withdrawn: string;
|
|
992
|
-
deposited: string;
|
|
993
|
-
}
|
|
994
|
-
interface EffectiveCommentVote extends BaseTransaction {
|
|
995
|
-
type: "effective_comment_vote";
|
|
996
|
-
voter: string;
|
|
997
|
-
author: string;
|
|
998
|
-
permlink: string;
|
|
999
|
-
pending_payout: string;
|
|
1000
|
-
total_vote_weight: number;
|
|
1001
|
-
rshares: number;
|
|
1002
|
-
weight: number;
|
|
1003
|
-
}
|
|
1004
|
-
interface VoteProxy extends BaseTransaction {
|
|
1005
|
-
type: "account_witness_proxy";
|
|
1006
|
-
account: string;
|
|
1007
|
-
proxy: string;
|
|
1008
|
-
}
|
|
1009
|
-
type Transaction = CurationReward | AuthorReward | CommentBenefactor | ClaimRewardBalance | Transfer | TransferToVesting | TransferToSavings | CancelTransferFromSavings | WithdrawVesting | SetWithdrawRoute | FillOrder | ProducerReward | Interest | FillConvertRequest | FillCollateralizedConvertRequest | ReturnVestingDelegation | ProposalPay | UpdateProposalVotes | CommentPayoutUpdate | CommentReward | CollateralizedConvert | RecurrentTransfers | FillRecurrentTransfers | LimitOrderCreate | LimitOrderCancel | FillVestingWithdraw | EffectiveCommentVote | VoteProxy | DelegateVestingShares;
|
|
1010
|
-
type OperationGroup = "transfers" | "market-orders" | "interests" | "stake-operations" | "rewards";
|
|
1125
|
+
declare function getDynamicPropsQueryOptions(): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<DynamicProps$1, Error, DynamicProps$1, string[]>, "queryFn"> & {
|
|
1126
|
+
queryFn?: _tanstack_react_query.QueryFunction<DynamicProps$1, string[], never> | undefined;
|
|
1127
|
+
} & {
|
|
1128
|
+
queryKey: string[] & {
|
|
1129
|
+
[dataTagSymbol]: DynamicProps$1;
|
|
1130
|
+
[dataTagErrorSymbol]: Error;
|
|
1131
|
+
};
|
|
1132
|
+
};
|
|
1011
1133
|
|
|
1012
|
-
interface
|
|
1134
|
+
interface RewardFund {
|
|
1013
1135
|
id: number;
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
interface ReferralStat {
|
|
1024
|
-
total: number;
|
|
1025
|
-
rewarded: number;
|
|
1136
|
+
name: string;
|
|
1137
|
+
reward_balance: string;
|
|
1138
|
+
recent_claims: string;
|
|
1139
|
+
last_update: string;
|
|
1140
|
+
content_constant: string;
|
|
1141
|
+
percent_curation_rewards: number;
|
|
1142
|
+
percent_content_rewards: number;
|
|
1143
|
+
author_reward_curve: string;
|
|
1144
|
+
curation_reward_curve: string;
|
|
1026
1145
|
}
|
|
1027
|
-
|
|
1028
1146
|
/**
|
|
1029
|
-
*
|
|
1030
|
-
*
|
|
1147
|
+
* Get reward fund information from the blockchain
|
|
1148
|
+
* @param fundName - Name of the reward fund (default: 'post')
|
|
1031
1149
|
*/
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
reputation: number;
|
|
1039
|
-
blacklists: string[];
|
|
1040
|
-
stats: {
|
|
1041
|
-
rank: number;
|
|
1042
|
-
following: number;
|
|
1043
|
-
followers: number;
|
|
1150
|
+
declare function getRewardFundQueryOptions(fundName?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<RewardFund, Error, RewardFund, string[]>, "queryFn"> & {
|
|
1151
|
+
queryFn?: _tanstack_react_query.QueryFunction<RewardFund, string[], never> | undefined;
|
|
1152
|
+
} & {
|
|
1153
|
+
queryKey: string[] & {
|
|
1154
|
+
[dataTagSymbol]: RewardFund;
|
|
1155
|
+
[dataTagErrorSymbol]: Error;
|
|
1044
1156
|
};
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1157
|
+
};
|
|
1158
|
+
|
|
1159
|
+
declare const QueryKeys: {
|
|
1160
|
+
readonly posts: {
|
|
1161
|
+
readonly entry: (entryPath: string) => string[];
|
|
1162
|
+
readonly postHeader: (author: string, permlink?: string) => (string | undefined)[];
|
|
1163
|
+
readonly content: (author: string, permlink: string) => string[];
|
|
1164
|
+
readonly contentReplies: (author: string, permlink: string) => string[];
|
|
1165
|
+
readonly accountPosts: (username: string, filter: string, limit: number, observer: string) => (string | number)[];
|
|
1166
|
+
readonly accountPostsPage: (username: string, filter: string, startAuthor: string, startPermlink: string, limit: number, observer: string) => (string | number)[];
|
|
1167
|
+
readonly userPostVote: (username: string, author: string, permlink: string) => string[];
|
|
1168
|
+
readonly reblogs: (username: string, limit: number) => (string | number)[];
|
|
1169
|
+
readonly entryActiveVotes: (author?: string, permlink?: string) => (string | undefined)[];
|
|
1170
|
+
readonly rebloggedBy: (author: string, permlink: string) => string[];
|
|
1171
|
+
readonly tips: (author: string, permlink: string) => string[];
|
|
1172
|
+
readonly normalize: (author: string, permlink: string) => string[];
|
|
1173
|
+
readonly drafts: (activeUsername?: string) => (string | undefined)[];
|
|
1174
|
+
readonly draftsInfinite: (activeUsername?: string, limit?: number) => unknown[];
|
|
1175
|
+
readonly schedules: (activeUsername?: string) => (string | undefined)[];
|
|
1176
|
+
readonly schedulesInfinite: (activeUsername?: string, limit?: number) => unknown[];
|
|
1177
|
+
readonly fragments: (username?: string) => (string | undefined)[];
|
|
1178
|
+
readonly fragmentsInfinite: (username?: string, limit?: number) => unknown[];
|
|
1179
|
+
readonly images: (username?: string) => (string | undefined)[];
|
|
1180
|
+
readonly galleryImages: (activeUsername?: string) => (string | undefined)[];
|
|
1181
|
+
readonly imagesInfinite: (username?: string, limit?: number) => unknown[];
|
|
1182
|
+
readonly promoted: (type: string) => string[];
|
|
1183
|
+
readonly _promotedPrefix: readonly ["posts", "promoted"];
|
|
1184
|
+
readonly accountPostsBlogPrefix: (username: string) => readonly ["posts", "account-posts", string, "blog"];
|
|
1185
|
+
readonly postsRanked: (sort: string, tag: string, limit: number, observer: string) => (string | number)[];
|
|
1186
|
+
readonly postsRankedPage: (sort: string, startAuthor: string, startPermlink: string, limit: number, tag: string, observer: string) => (string | number)[];
|
|
1187
|
+
readonly discussions: (author: string, permlink: string, order: string, observer: string) => string[];
|
|
1188
|
+
readonly discussion: (author: string, permlink: string, observer: string) => string[];
|
|
1189
|
+
readonly deletedEntry: (entryPath: string) => string[];
|
|
1190
|
+
readonly commentHistory: (author: string, permlink: string, onlyMeta: boolean) => (string | boolean)[];
|
|
1191
|
+
readonly trendingTags: () => string[];
|
|
1192
|
+
readonly trendingTagsWithStats: (limit: number) => (string | number)[];
|
|
1193
|
+
readonly wavesByHost: (host: string) => string[];
|
|
1194
|
+
readonly wavesByTag: (host: string, tag: string) => string[];
|
|
1195
|
+
readonly wavesFollowing: (host: string, username: string) => string[];
|
|
1196
|
+
readonly wavesTrendingTags: (host: string, hours: number) => (string | number)[];
|
|
1197
|
+
readonly wavesByAccount: (host: string, username: string) => string[];
|
|
1198
|
+
readonly wavesTrendingAuthors: (host: string) => string[];
|
|
1199
|
+
readonly _prefix: readonly ["posts"];
|
|
1200
|
+
};
|
|
1201
|
+
readonly accounts: {
|
|
1202
|
+
readonly full: (username?: string) => (string | undefined)[];
|
|
1203
|
+
readonly list: (...usernames: string[]) => string[];
|
|
1204
|
+
readonly friends: (following: string, mode: string, followType: string, limit: number) => (string | number)[];
|
|
1205
|
+
readonly searchFriends: (username: string, mode: string, query: string) => string[];
|
|
1206
|
+
readonly subscriptions: (username: string) => string[];
|
|
1207
|
+
readonly followCount: (username: string) => string[];
|
|
1208
|
+
readonly recoveries: (username: string) => string[];
|
|
1209
|
+
readonly pendingRecovery: (username: string) => string[];
|
|
1210
|
+
readonly checkWalletPending: (username: string, code: string | null) => (string | null)[];
|
|
1211
|
+
readonly mutedUsers: (username: string) => string[];
|
|
1212
|
+
readonly following: (follower: string, startFollowing: string, followType: string, limit: number) => (string | number)[];
|
|
1213
|
+
readonly followers: (following: string, startFollower: string, followType: string, limit: number) => (string | number)[];
|
|
1214
|
+
readonly search: (query: string, excludeList?: string[]) => (string | string[] | undefined)[];
|
|
1215
|
+
readonly profiles: (accounts: string[], observer: string) => (string | string[])[];
|
|
1216
|
+
readonly lookup: (query: string, limit: number) => (string | number)[];
|
|
1217
|
+
readonly transactions: (username: string, group: string, limit: number) => (string | number)[];
|
|
1218
|
+
readonly favorites: (activeUsername?: string) => (string | undefined)[];
|
|
1219
|
+
readonly favoritesInfinite: (activeUsername?: string, limit?: number) => unknown[];
|
|
1220
|
+
readonly checkFavorite: (activeUsername: string, targetUsername: string) => string[];
|
|
1221
|
+
readonly relations: (reference: string, target: string) => string[];
|
|
1222
|
+
readonly bots: () => string[];
|
|
1223
|
+
readonly voteHistory: (username: string, limit: number) => (string | number)[];
|
|
1224
|
+
readonly reputations: (query: string, limit: number) => (string | number)[];
|
|
1225
|
+
readonly bookmarks: (activeUsername?: string) => (string | undefined)[];
|
|
1226
|
+
readonly bookmarksInfinite: (activeUsername?: string, limit?: number) => unknown[];
|
|
1227
|
+
readonly referrals: (username: string) => string[];
|
|
1228
|
+
readonly referralsStats: (username: string) => string[];
|
|
1229
|
+
readonly _prefix: readonly ["accounts"];
|
|
1230
|
+
};
|
|
1231
|
+
readonly notifications: {
|
|
1232
|
+
readonly announcements: () => string[];
|
|
1233
|
+
readonly list: (activeUsername?: string, filter?: string) => (string | undefined)[];
|
|
1234
|
+
readonly unreadCount: (activeUsername?: string) => (string | undefined)[];
|
|
1235
|
+
readonly settings: (activeUsername?: string) => (string | undefined)[];
|
|
1236
|
+
readonly _prefix: readonly ["notifications"];
|
|
1237
|
+
};
|
|
1238
|
+
readonly core: {
|
|
1239
|
+
readonly rewardFund: (fundName: string) => string[];
|
|
1240
|
+
readonly dynamicProps: () => string[];
|
|
1241
|
+
readonly chainProperties: () => string[];
|
|
1242
|
+
readonly _prefix: readonly ["core"];
|
|
1243
|
+
};
|
|
1244
|
+
readonly communities: {
|
|
1245
|
+
readonly single: (name?: string, observer?: string) => (string | undefined)[];
|
|
1246
|
+
/** Prefix key for matching all observer variants of a community */
|
|
1247
|
+
readonly singlePrefix: (name: string) => readonly ["community", "single", string];
|
|
1248
|
+
readonly context: (username: string, communityName: string) => string[];
|
|
1249
|
+
readonly rewarded: () => string[];
|
|
1250
|
+
readonly list: (sort: string, query: string, limit: number) => (string | number)[];
|
|
1251
|
+
readonly subscribers: (communityName: string) => string[];
|
|
1252
|
+
readonly accountNotifications: (account: string, limit: number) => (string | number)[];
|
|
1253
|
+
};
|
|
1254
|
+
readonly proposals: {
|
|
1255
|
+
readonly list: () => string[];
|
|
1256
|
+
readonly proposal: (id: number) => (string | number)[];
|
|
1257
|
+
readonly votes: (proposalId: number, voter: string, limit: number) => (string | number)[];
|
|
1258
|
+
readonly votesPrefix: (proposalId: number) => readonly ["proposals", "votes", number];
|
|
1259
|
+
readonly votesByUser: (voter: string) => string[];
|
|
1260
|
+
};
|
|
1261
|
+
readonly search: {
|
|
1262
|
+
readonly topics: (q: string, limit: number) => (string | number)[];
|
|
1263
|
+
readonly path: (q: string) => string[];
|
|
1264
|
+
readonly account: (q: string, limit: number) => (string | number)[];
|
|
1265
|
+
readonly results: (q: string, sort: string, hideLow: boolean | string, since?: string, scrollId?: string, votes?: number) => readonly ["search", string, string, boolean, string | undefined, string | undefined, number | undefined];
|
|
1266
|
+
readonly controversialRising: (what: string, tag: string) => string[];
|
|
1267
|
+
readonly similarEntries: (author: string, permlink: string, query: string) => string[];
|
|
1268
|
+
readonly api: (q: string, sort: string, hideLow: boolean, since?: string, votes?: number) => (string | number | boolean | undefined)[];
|
|
1269
|
+
};
|
|
1270
|
+
readonly witnesses: {
|
|
1271
|
+
readonly list: (limit: number) => (string | number)[];
|
|
1272
|
+
readonly votes: (username: string | undefined) => (string | undefined)[];
|
|
1273
|
+
readonly proxy: () => string[];
|
|
1274
|
+
};
|
|
1275
|
+
readonly wallet: {
|
|
1276
|
+
readonly outgoingRcDelegations: (username: string, limit: number) => (string | number)[];
|
|
1277
|
+
readonly vestingDelegations: (username: string, limit: number) => (string | number)[];
|
|
1278
|
+
readonly withdrawRoutes: (account: string) => string[];
|
|
1279
|
+
readonly incomingRc: (username: string) => string[];
|
|
1280
|
+
readonly conversionRequests: (account: string) => string[];
|
|
1281
|
+
readonly receivedVestingShares: (username: string) => string[];
|
|
1282
|
+
readonly savingsWithdraw: (account: string) => string[];
|
|
1283
|
+
readonly openOrders: (user: string) => string[];
|
|
1284
|
+
readonly collateralizedConversionRequests: (account: string) => string[];
|
|
1285
|
+
readonly recurrentTransfers: (username: string) => string[];
|
|
1286
|
+
readonly portfolio: (username: string, onlyEnabled: string, currency: string) => string[];
|
|
1287
|
+
};
|
|
1288
|
+
readonly assets: {
|
|
1289
|
+
readonly hiveGeneralInfo: (username: string) => string[];
|
|
1290
|
+
readonly hiveTransactions: (username: string, limit: number, filterKey: string) => (string | number)[];
|
|
1291
|
+
readonly hiveWithdrawalRoutes: (username: string) => string[];
|
|
1292
|
+
readonly hiveMetrics: (bucketSeconds: number) => (string | number)[];
|
|
1293
|
+
readonly hbdGeneralInfo: (username: string) => string[];
|
|
1294
|
+
readonly hbdTransactions: (username: string, limit: number, filterKey: string) => (string | number)[];
|
|
1295
|
+
readonly hivePowerGeneralInfo: (username: string) => string[];
|
|
1296
|
+
readonly hivePowerDelegates: (username: string) => string[];
|
|
1297
|
+
readonly hivePowerDelegatings: (username: string) => string[];
|
|
1298
|
+
readonly hivePowerTransactions: (username: string, limit: number, filterKey: string) => (string | number)[];
|
|
1299
|
+
readonly pointsGeneralInfo: (username: string) => string[];
|
|
1300
|
+
readonly pointsTransactions: (username: string, type: string) => string[];
|
|
1301
|
+
readonly ecencyAssetInfo: (username: string, asset: string, currency: string) => string[];
|
|
1302
|
+
};
|
|
1303
|
+
readonly market: {
|
|
1304
|
+
readonly statistics: () => string[];
|
|
1305
|
+
readonly orderBook: (limit: number) => (string | number)[];
|
|
1306
|
+
readonly history: (seconds: number, startDate: number, endDate: number) => (string | number)[];
|
|
1307
|
+
readonly feedHistory: () => string[];
|
|
1308
|
+
readonly hiveHbdStats: () => string[];
|
|
1309
|
+
readonly data: (coin: string, vsCurrency: string, fromTs: number, toTs: number) => (string | number)[];
|
|
1310
|
+
readonly tradeHistory: (limit: number, start: number, end: number) => (string | number)[];
|
|
1311
|
+
readonly currentMedianHistoryPrice: () => string[];
|
|
1312
|
+
};
|
|
1313
|
+
readonly analytics: {
|
|
1314
|
+
readonly discoverCuration: (duration: string) => string[];
|
|
1315
|
+
readonly pageStats: (url: string, dimensions: string, metrics: string, dateRange: string) => string[];
|
|
1316
|
+
readonly discoverLeaderboard: (duration: string) => string[];
|
|
1317
|
+
};
|
|
1318
|
+
readonly promotions: {
|
|
1319
|
+
readonly promotePrice: () => string[];
|
|
1320
|
+
readonly boostPlusPrices: () => string[];
|
|
1321
|
+
readonly boostPlusAccounts: (account: string) => string[];
|
|
1322
|
+
};
|
|
1323
|
+
readonly resourceCredits: {
|
|
1324
|
+
readonly account: (username: string) => string[];
|
|
1325
|
+
readonly stats: () => string[];
|
|
1326
|
+
};
|
|
1327
|
+
readonly points: {
|
|
1328
|
+
readonly points: (username: string, filter: number) => (string | number)[];
|
|
1329
|
+
readonly _prefix: (username: string) => string[];
|
|
1330
|
+
};
|
|
1331
|
+
readonly operations: {
|
|
1332
|
+
readonly chainProperties: () => string[];
|
|
1333
|
+
};
|
|
1334
|
+
readonly games: {
|
|
1335
|
+
readonly statusCheck: (gameType: string, username: string) => string[];
|
|
1336
|
+
};
|
|
1337
|
+
readonly badActors: {
|
|
1338
|
+
readonly list: () => string[];
|
|
1339
|
+
readonly _prefix: readonly ["bad-actors"];
|
|
1056
1340
|
};
|
|
1341
|
+
readonly ai: {
|
|
1342
|
+
readonly prices: () => readonly ["ai", "prices"];
|
|
1343
|
+
readonly assistPrices: (username?: string) => readonly ["ai", "assist-prices", string | undefined];
|
|
1344
|
+
readonly _prefix: readonly ["ai"];
|
|
1345
|
+
};
|
|
1346
|
+
};
|
|
1347
|
+
|
|
1348
|
+
declare function encodeObj(o: any): string;
|
|
1349
|
+
declare function decodeObj(o: any): any;
|
|
1350
|
+
|
|
1351
|
+
declare enum Symbol {
|
|
1352
|
+
HIVE = "HIVE",
|
|
1353
|
+
HBD = "HBD",
|
|
1354
|
+
VESTS = "VESTS",
|
|
1355
|
+
SPK = "SPK"
|
|
1356
|
+
}
|
|
1357
|
+
declare enum NaiMap {
|
|
1358
|
+
"@@000000021" = "HIVE",
|
|
1359
|
+
"@@000000013" = "HBD",
|
|
1360
|
+
"@@000000037" = "VESTS"
|
|
1361
|
+
}
|
|
1362
|
+
interface Asset {
|
|
1363
|
+
amount: number;
|
|
1364
|
+
symbol: Symbol;
|
|
1057
1365
|
}
|
|
1366
|
+
declare function parseAsset(sval: string | SMTAsset): Asset;
|
|
1367
|
+
|
|
1368
|
+
declare function getBoundFetch(): typeof fetch;
|
|
1369
|
+
|
|
1370
|
+
declare function isCommunity(value: unknown): boolean;
|
|
1058
1371
|
|
|
1059
1372
|
/**
|
|
1060
|
-
*
|
|
1061
|
-
* The `active` field contains raw timestamp - app should format it
|
|
1373
|
+
* Type guard to check if response is wrapped with pagination metadata
|
|
1062
1374
|
*/
|
|
1063
|
-
|
|
1064
|
-
name: string;
|
|
1065
|
-
reputation: number;
|
|
1066
|
-
active: string;
|
|
1067
|
-
}
|
|
1375
|
+
declare function isWrappedResponse<T>(response: any): response is WrappedResponse<T>;
|
|
1068
1376
|
/**
|
|
1069
|
-
*
|
|
1070
|
-
*
|
|
1377
|
+
* Normalize response to wrapped format for backwards compatibility
|
|
1378
|
+
* If the backend returns old format (array), convert it to wrapped format
|
|
1071
1379
|
*/
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1380
|
+
declare function normalizeToWrappedResponse<T>(response: T[] | WrappedResponse<T>, limit: number): WrappedResponse<T>;
|
|
1381
|
+
|
|
1382
|
+
declare function vestsToHp(vests: number, hivePerMVests: number): number;
|
|
1383
|
+
|
|
1384
|
+
declare function isEmptyDate(s: string | undefined): boolean;
|
|
1385
|
+
|
|
1386
|
+
interface AccountFollowStats {
|
|
1387
|
+
follower_count: number;
|
|
1388
|
+
following_count: number;
|
|
1389
|
+
account: string;
|
|
1077
1390
|
}
|
|
1078
1391
|
|
|
1079
|
-
interface
|
|
1080
|
-
|
|
1081
|
-
|
|
1392
|
+
interface AccountReputation {
|
|
1393
|
+
account: string;
|
|
1394
|
+
reputation: number;
|
|
1082
1395
|
}
|
|
1083
|
-
/**
|
|
1084
|
-
* React Query mutation hook for updating account profile metadata.
|
|
1085
|
-
*
|
|
1086
|
-
* This mutation broadcasts an account_update2 operation to update the user's
|
|
1087
|
-
* profile information (name, about, location, avatar, cover image, etc.).
|
|
1088
|
-
*
|
|
1089
|
-
* @param username - The username to update (required for broadcast)
|
|
1090
|
-
* @param auth - Authentication context with platform adapter and fallback configuration
|
|
1091
|
-
*
|
|
1092
|
-
* @returns React Query mutation result
|
|
1093
|
-
*
|
|
1094
|
-
* @remarks
|
|
1095
|
-
* **Profile Fields:**
|
|
1096
|
-
* - name: Display name
|
|
1097
|
-
* - about: Bio/description
|
|
1098
|
-
* - location: Location
|
|
1099
|
-
* - website: Website URL
|
|
1100
|
-
* - profile_image: Avatar URL
|
|
1101
|
-
* - cover_image: Cover/banner URL
|
|
1102
|
-
* - tokens: Social tokens (Twitter, Facebook, etc.)
|
|
1103
|
-
* - version: Profile metadata version (auto-set to 2)
|
|
1104
|
-
*
|
|
1105
|
-
* **Authentication:**
|
|
1106
|
-
* - Uses posting authority (account_update2 operation)
|
|
1107
|
-
* - Supports all auth methods via platform adapter
|
|
1108
|
-
*
|
|
1109
|
-
* **Post-Broadcast Actions:**
|
|
1110
|
-
* - Optimistically updates account cache with new profile data
|
|
1111
|
-
* - Invalidates account cache to refetch from blockchain
|
|
1112
|
-
*
|
|
1113
|
-
* @example
|
|
1114
|
-
* ```typescript
|
|
1115
|
-
* const updateProfile = useAccountUpdate(username, {
|
|
1116
|
-
* adapter: myAdapter,
|
|
1117
|
-
* });
|
|
1118
|
-
*
|
|
1119
|
-
* // Update profile
|
|
1120
|
-
* updateProfile.mutate({
|
|
1121
|
-
* profile: {
|
|
1122
|
-
* name: "John Doe",
|
|
1123
|
-
* about: "Hive enthusiast",
|
|
1124
|
-
* profile_image: "https://...",
|
|
1125
|
-
* }
|
|
1126
|
-
* });
|
|
1127
|
-
* ```
|
|
1128
|
-
*/
|
|
1129
|
-
declare function useAccountUpdate(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, Partial<Payload$4>, unknown>;
|
|
1130
1396
|
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1397
|
+
interface AccountProfile {
|
|
1398
|
+
about?: string;
|
|
1399
|
+
cover_image?: string;
|
|
1400
|
+
location?: string;
|
|
1401
|
+
name?: string;
|
|
1402
|
+
profile_image?: string;
|
|
1403
|
+
website?: string;
|
|
1404
|
+
pinned?: string;
|
|
1405
|
+
reputation?: number;
|
|
1406
|
+
version?: number;
|
|
1407
|
+
beneficiary?: {
|
|
1408
|
+
account: string;
|
|
1409
|
+
weight: number;
|
|
1410
|
+
};
|
|
1411
|
+
tokens?: {
|
|
1412
|
+
symbol: string;
|
|
1413
|
+
type: string;
|
|
1414
|
+
meta: Record<string, any>;
|
|
1415
|
+
}[];
|
|
1416
|
+
}
|
|
1138
1417
|
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1418
|
+
interface FullAccount {
|
|
1419
|
+
name: string;
|
|
1420
|
+
owner: Authority;
|
|
1421
|
+
active: Authority;
|
|
1422
|
+
posting: Authority;
|
|
1423
|
+
memo_key: string;
|
|
1424
|
+
post_count: number;
|
|
1425
|
+
created: string;
|
|
1426
|
+
reputation: string | number;
|
|
1427
|
+
json_metadata: string;
|
|
1428
|
+
posting_json_metadata: string;
|
|
1429
|
+
last_vote_time: string;
|
|
1430
|
+
last_post: string;
|
|
1431
|
+
reward_hbd_balance: string;
|
|
1432
|
+
reward_vesting_hive: string;
|
|
1433
|
+
reward_hive_balance: string;
|
|
1434
|
+
reward_vesting_balance: string;
|
|
1435
|
+
balance: string;
|
|
1436
|
+
vesting_shares: string;
|
|
1437
|
+
hbd_balance: string;
|
|
1438
|
+
savings_balance: string;
|
|
1439
|
+
savings_hbd_balance: string;
|
|
1440
|
+
savings_hbd_seconds: string;
|
|
1441
|
+
savings_hbd_last_interest_payment: string;
|
|
1442
|
+
savings_hbd_seconds_last_update: string;
|
|
1443
|
+
next_vesting_withdrawal: string;
|
|
1444
|
+
pending_claimed_accounts: number;
|
|
1445
|
+
delegated_vesting_shares: string;
|
|
1446
|
+
received_vesting_shares: string;
|
|
1447
|
+
vesting_withdraw_rate: string;
|
|
1448
|
+
to_withdraw: string;
|
|
1449
|
+
withdrawn: string;
|
|
1450
|
+
witness_votes: string[];
|
|
1451
|
+
proxy: string;
|
|
1452
|
+
recovery_account: string;
|
|
1453
|
+
proxied_vsf_votes: number[] | string[];
|
|
1454
|
+
voting_manabar: {
|
|
1455
|
+
current_mana: string | number;
|
|
1456
|
+
last_update_time: number;
|
|
1457
|
+
};
|
|
1458
|
+
voting_power: number;
|
|
1459
|
+
downvote_manabar: {
|
|
1460
|
+
current_mana: string | number;
|
|
1461
|
+
last_update_time: number;
|
|
1462
|
+
};
|
|
1463
|
+
profile?: AccountProfile;
|
|
1464
|
+
follow_stats?: AccountFollowStats;
|
|
1465
|
+
proxyVotes?: [];
|
|
1145
1466
|
}
|
|
1146
|
-
/**
|
|
1147
|
-
* React Query mutation hook for following an account.
|
|
1148
|
-
*
|
|
1149
|
-
* This mutation broadcasts a follow operation to the Hive blockchain,
|
|
1150
|
-
* adding the target account to the follower's "blog" follow list.
|
|
1151
|
-
*
|
|
1152
|
-
* @param username - The username of the follower (required for broadcast)
|
|
1153
|
-
* @param auth - Authentication context with platform adapter and fallback configuration
|
|
1154
|
-
*
|
|
1155
|
-
* @returns React Query mutation result
|
|
1156
|
-
*
|
|
1157
|
-
* @remarks
|
|
1158
|
-
* **Post-Broadcast Actions:**
|
|
1159
|
-
* - Invalidates relationship cache to show updated follow status
|
|
1160
|
-
* - Invalidates account cache to refetch updated follower/following counts
|
|
1161
|
-
*
|
|
1162
|
-
* @example
|
|
1163
|
-
* ```typescript
|
|
1164
|
-
* const followMutation = useFollow(username, {
|
|
1165
|
-
* adapter: myAdapter,
|
|
1166
|
-
* enableFallback: true,
|
|
1167
|
-
* fallbackChain: ['keychain', 'key', 'hivesigner']
|
|
1168
|
-
* });
|
|
1169
|
-
*
|
|
1170
|
-
* // Follow an account
|
|
1171
|
-
* followMutation.mutate({
|
|
1172
|
-
* following: 'alice'
|
|
1173
|
-
* });
|
|
1174
|
-
* ```
|
|
1175
|
-
*/
|
|
1176
|
-
declare function useFollow(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, FollowPayload, unknown>;
|
|
1177
1467
|
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
following: string;
|
|
1468
|
+
interface AccountRelationship {
|
|
1469
|
+
follows: boolean;
|
|
1470
|
+
ignores: boolean;
|
|
1471
|
+
is_blacklisted: boolean;
|
|
1472
|
+
follows_blacklists: boolean;
|
|
1184
1473
|
}
|
|
1185
|
-
/**
|
|
1186
|
-
* React Query mutation hook for unfollowing an account.
|
|
1187
|
-
*
|
|
1188
|
-
* This mutation broadcasts an unfollow operation to the Hive blockchain,
|
|
1189
|
-
* removing the target account from the follower's follow list.
|
|
1190
|
-
*
|
|
1191
|
-
* @param username - The username of the follower (required for broadcast)
|
|
1192
|
-
* @param auth - Authentication context with platform adapter and fallback configuration
|
|
1193
|
-
*
|
|
1194
|
-
* @returns React Query mutation result
|
|
1195
|
-
*
|
|
1196
|
-
* @remarks
|
|
1197
|
-
* **Post-Broadcast Actions:**
|
|
1198
|
-
* - Invalidates relationship cache to show updated follow status
|
|
1199
|
-
* - Invalidates account cache to refetch updated follower/following counts
|
|
1200
|
-
*
|
|
1201
|
-
* @example
|
|
1202
|
-
* ```typescript
|
|
1203
|
-
* const unfollowMutation = useUnfollow(username, {
|
|
1204
|
-
* adapter: myAdapter,
|
|
1205
|
-
* enableFallback: true,
|
|
1206
|
-
* fallbackChain: ['keychain', 'key', 'hivesigner']
|
|
1207
|
-
* });
|
|
1208
|
-
*
|
|
1209
|
-
* // Unfollow an account
|
|
1210
|
-
* unfollowMutation.mutate({
|
|
1211
|
-
* following: 'alice'
|
|
1212
|
-
* });
|
|
1213
|
-
* ```
|
|
1214
|
-
*/
|
|
1215
|
-
declare function useUnfollow(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, UnfollowPayload, unknown>;
|
|
1216
1474
|
|
|
1217
|
-
interface
|
|
1475
|
+
interface AccountBookmark {
|
|
1476
|
+
_id: string;
|
|
1218
1477
|
author: string;
|
|
1219
1478
|
permlink: string;
|
|
1479
|
+
timestamp: number;
|
|
1480
|
+
created: string;
|
|
1220
1481
|
}
|
|
1221
|
-
declare function useBookmarkAdd(username: string | undefined, code: string | undefined, onSuccess: () => void, onError: (e: Error) => void): _tanstack_react_query.UseMutationResult<any, Error, Payload$3, unknown>;
|
|
1222
1482
|
|
|
1223
|
-
|
|
1483
|
+
interface AccountFavorite {
|
|
1484
|
+
_id: string;
|
|
1485
|
+
account: string;
|
|
1486
|
+
timestamp: number;
|
|
1487
|
+
}
|
|
1224
1488
|
|
|
1225
|
-
|
|
1489
|
+
interface Recoveries {
|
|
1490
|
+
username: string;
|
|
1491
|
+
email: string;
|
|
1492
|
+
publicKeys: Record<string, number>;
|
|
1493
|
+
}
|
|
1494
|
+
interface GetRecoveriesEmailResponse extends Recoveries {
|
|
1495
|
+
_id: string;
|
|
1496
|
+
}
|
|
1226
1497
|
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
}
|
|
1498
|
+
interface Follow {
|
|
1499
|
+
follower: string;
|
|
1500
|
+
following: string;
|
|
1501
|
+
what: string[];
|
|
1502
|
+
}
|
|
1232
1503
|
|
|
1233
|
-
interface
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1504
|
+
interface BaseTransaction {
|
|
1505
|
+
num: number;
|
|
1506
|
+
type: string;
|
|
1507
|
+
timestamp: string;
|
|
1508
|
+
trx_id: string;
|
|
1238
1509
|
}
|
|
1239
|
-
interface
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1510
|
+
interface CurationReward extends BaseTransaction {
|
|
1511
|
+
type: "curation_reward";
|
|
1512
|
+
comment_author?: string;
|
|
1513
|
+
comment_permlink?: string;
|
|
1514
|
+
author?: string;
|
|
1515
|
+
permlink?: string;
|
|
1516
|
+
curator: string;
|
|
1517
|
+
reward: string;
|
|
1245
1518
|
}
|
|
1246
|
-
|
|
1247
|
-
type
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
* enabling smart auth fallback and auth upgrade UI.
|
|
1263
|
-
*
|
|
1264
|
-
* @remarks
|
|
1265
|
-
* - Most social operations (vote, comment, reblog) require posting authority
|
|
1266
|
-
* - Financial operations (transfer, withdraw) require active authority
|
|
1267
|
-
* - Account management operations require active authority
|
|
1268
|
-
* - Security operations (password change, account recovery) require owner authority
|
|
1269
|
-
* - custom_json requires dynamic detection based on required_auths vs required_posting_auths
|
|
1270
|
-
*/
|
|
1271
|
-
declare const OPERATION_AUTHORITY_MAP: Record<string, AuthorityLevel>;
|
|
1272
|
-
/**
|
|
1273
|
-
* Determines authority required for a custom_json operation.
|
|
1274
|
-
*
|
|
1275
|
-
* Custom JSON operations can require either posting or active authority
|
|
1276
|
-
* depending on which field is populated:
|
|
1277
|
-
* - required_auths (active authority)
|
|
1278
|
-
* - required_posting_auths (posting authority)
|
|
1279
|
-
*
|
|
1280
|
-
* @param customJsonOp - The custom_json operation to inspect
|
|
1281
|
-
* @returns 'active' if requires active authority, 'posting' if requires posting authority
|
|
1282
|
-
*
|
|
1283
|
-
* @example
|
|
1284
|
-
* ```typescript
|
|
1285
|
-
* // Reblog operation (posting authority)
|
|
1286
|
-
* const reblogOp: Operation = ['custom_json', {
|
|
1287
|
-
* required_auths: [],
|
|
1288
|
-
* required_posting_auths: ['alice'],
|
|
1289
|
-
* id: 'reblog',
|
|
1290
|
-
* json: '...'
|
|
1291
|
-
* }];
|
|
1292
|
-
* getCustomJsonAuthority(reblogOp); // Returns 'posting'
|
|
1293
|
-
*
|
|
1294
|
-
* // Some active authority custom_json
|
|
1295
|
-
* const activeOp: Operation = ['custom_json', {
|
|
1296
|
-
* required_auths: ['alice'],
|
|
1297
|
-
* required_posting_auths: [],
|
|
1298
|
-
* id: 'some_active_op',
|
|
1299
|
-
* json: '...'
|
|
1300
|
-
* }];
|
|
1301
|
-
* getCustomJsonAuthority(activeOp); // Returns 'active'
|
|
1302
|
-
* ```
|
|
1303
|
-
*/
|
|
1304
|
-
declare function getCustomJsonAuthority(customJsonOp: Operation): AuthorityLevel;
|
|
1305
|
-
/**
|
|
1306
|
-
* Determines authority required for a proposal operation.
|
|
1307
|
-
*
|
|
1308
|
-
* Proposal operations (create_proposal, update_proposal) typically require
|
|
1309
|
-
* active authority as they involve financial commitments and funding allocations.
|
|
1310
|
-
*
|
|
1311
|
-
* @param proposalOp - The proposal operation to inspect
|
|
1312
|
-
* @returns 'active' authority requirement
|
|
1313
|
-
*
|
|
1314
|
-
* @remarks
|
|
1315
|
-
* Unlike custom_json, proposal operations don't have explicit required_auths fields.
|
|
1316
|
-
* They always use the creator's authority, which defaults to active for financial
|
|
1317
|
-
* operations involving the DAO treasury.
|
|
1318
|
-
*
|
|
1319
|
-
* @example
|
|
1320
|
-
* ```typescript
|
|
1321
|
-
* const proposalOp: Operation = ['create_proposal', {
|
|
1322
|
-
* creator: 'alice',
|
|
1323
|
-
* receiver: 'bob',
|
|
1324
|
-
* subject: 'My Proposal',
|
|
1325
|
-
* permlink: 'my-proposal',
|
|
1326
|
-
* start: '2026-03-01T00:00:00',
|
|
1327
|
-
* end: '2026-04-01T00:00:00',
|
|
1328
|
-
* daily_pay: '100.000 HBD',
|
|
1329
|
-
* extensions: []
|
|
1330
|
-
* }];
|
|
1331
|
-
* getProposalAuthority(proposalOp); // Returns 'active'
|
|
1332
|
-
* ```
|
|
1333
|
-
*/
|
|
1334
|
-
declare function getProposalAuthority(proposalOp: Operation): AuthorityLevel;
|
|
1335
|
-
/**
|
|
1336
|
-
* Determines the required authority level for any operation.
|
|
1337
|
-
*
|
|
1338
|
-
* Uses the OPERATION_AUTHORITY_MAP for standard operations, and dynamic
|
|
1339
|
-
* detection for custom_json operations.
|
|
1340
|
-
*
|
|
1341
|
-
* @param op - The operation to check
|
|
1342
|
-
* @returns 'posting' or 'active' authority requirement
|
|
1343
|
-
*
|
|
1344
|
-
* @example
|
|
1345
|
-
* ```typescript
|
|
1346
|
-
* const voteOp: Operation = ['vote', { voter: 'alice', author: 'bob', permlink: 'post', weight: 10000 }];
|
|
1347
|
-
* getOperationAuthority(voteOp); // Returns 'posting'
|
|
1348
|
-
*
|
|
1349
|
-
* const transferOp: Operation = ['transfer', { from: 'alice', to: 'bob', amount: '1.000 HIVE', memo: '' }];
|
|
1350
|
-
* getOperationAuthority(transferOp); // Returns 'active'
|
|
1351
|
-
* ```
|
|
1352
|
-
*/
|
|
1353
|
-
declare function getOperationAuthority(op: Operation): AuthorityLevel;
|
|
1354
|
-
/**
|
|
1355
|
-
* Determines the highest authority level required for a list of operations.
|
|
1356
|
-
*
|
|
1357
|
-
* Useful when broadcasting multiple operations together - the highest authority
|
|
1358
|
-
* level required by any operation determines what key is needed for the batch.
|
|
1359
|
-
*
|
|
1360
|
-
* Authority hierarchy: owner > active > posting > memo
|
|
1361
|
-
*
|
|
1362
|
-
* @param ops - Array of operations
|
|
1363
|
-
* @returns Highest authority level required ('owner', 'active', or 'posting')
|
|
1364
|
-
*
|
|
1365
|
-
* @example
|
|
1366
|
-
* ```typescript
|
|
1367
|
-
* const ops: Operation[] = [
|
|
1368
|
-
* ['vote', { ... }], // posting
|
|
1369
|
-
* ['comment', { ... }], // posting
|
|
1370
|
-
* ];
|
|
1371
|
-
* getRequiredAuthority(ops); // Returns 'posting'
|
|
1372
|
-
*
|
|
1373
|
-
* const mixedOps: Operation[] = [
|
|
1374
|
-
* ['comment', { ... }], // posting
|
|
1375
|
-
* ['transfer', { ... }], // active
|
|
1376
|
-
* ];
|
|
1377
|
-
* getRequiredAuthority(mixedOps); // Returns 'active'
|
|
1378
|
-
*
|
|
1379
|
-
* const securityOps: Operation[] = [
|
|
1380
|
-
* ['transfer', { ... }], // active
|
|
1381
|
-
* ['change_recovery_account', { ... }], // owner
|
|
1382
|
-
* ];
|
|
1383
|
-
* getRequiredAuthority(securityOps); // Returns 'owner'
|
|
1384
|
-
* ```
|
|
1385
|
-
*/
|
|
1386
|
-
declare function getRequiredAuthority(ops: Operation[]): AuthorityLevel;
|
|
1387
|
-
|
|
1388
|
-
/**
|
|
1389
|
-
* React Query mutation hook for broadcasting Hive operations.
|
|
1390
|
-
* Supports multiple authentication methods with automatic fallback.
|
|
1391
|
-
*
|
|
1392
|
-
* @template T - Type of the mutation payload
|
|
1393
|
-
* @param mutationKey - React Query mutation key for cache management
|
|
1394
|
-
* @param username - Hive username (required for broadcast)
|
|
1395
|
-
* @param operations - Function that converts payload to Hive operations
|
|
1396
|
-
* @param onSuccess - Success callback after broadcast completes
|
|
1397
|
-
* @param auth - Authentication context (supports both legacy AuthContext and new AuthContextV2)
|
|
1398
|
-
* @param authority - Key authority to use ('posting' | 'active' | 'owner' | 'memo'), defaults to 'posting'
|
|
1399
|
-
*
|
|
1400
|
-
* @returns React Query mutation result
|
|
1401
|
-
*
|
|
1402
|
-
* @remarks
|
|
1403
|
-
* **Authentication Flow:**
|
|
1404
|
-
*
|
|
1405
|
-
* 1. **With AuthContextV2 + adapter + enableFallback** (recommended for new code):
|
|
1406
|
-
* - Tries auth methods in fallbackChain order
|
|
1407
|
-
* - Smart fallback: only retries on auth errors, not RC/network errors
|
|
1408
|
-
* - Uses platform adapter for storage, UI, and broadcasting
|
|
1409
|
-
*
|
|
1410
|
-
* 2. **With legacy AuthContext** (backward compatible):
|
|
1411
|
-
* - Tries auth.broadcast() first (custom implementation)
|
|
1412
|
-
* - Falls back to postingKey if available
|
|
1413
|
-
* - Falls back to accessToken (HiveSigner) if available
|
|
1414
|
-
* - Throws if no auth method available
|
|
1415
|
-
*
|
|
1416
|
-
* **Backward Compatibility:**
|
|
1417
|
-
* - All existing code using AuthContext will continue to work
|
|
1418
|
-
* - AuthContextV2 extends AuthContext, so it's a drop-in replacement
|
|
1419
|
-
* - enableFallback defaults to false if no adapter provided
|
|
1420
|
-
*
|
|
1421
|
-
* @example
|
|
1422
|
-
* ```typescript
|
|
1423
|
-
* // New pattern with platform adapter and fallback
|
|
1424
|
-
* const mutation = useBroadcastMutation(
|
|
1425
|
-
* ['vote'],
|
|
1426
|
-
* username,
|
|
1427
|
-
* (payload) => [voteOperation(payload)],
|
|
1428
|
-
* () => console.log('Success!'),
|
|
1429
|
-
* {
|
|
1430
|
-
* adapter: myAdapter,
|
|
1431
|
-
* enableFallback: true,
|
|
1432
|
-
* fallbackChain: ['keychain', 'key', 'hivesigner']
|
|
1433
|
-
* },
|
|
1434
|
-
* 'posting'
|
|
1435
|
-
* );
|
|
1436
|
-
*
|
|
1437
|
-
* // Legacy pattern (still works)
|
|
1438
|
-
* const mutation = useBroadcastMutation(
|
|
1439
|
-
* ['vote'],
|
|
1440
|
-
* username,
|
|
1441
|
-
* (payload) => [voteOperation(payload)],
|
|
1442
|
-
* () => console.log('Success!'),
|
|
1443
|
-
* { postingKey: 'wif-key' }
|
|
1444
|
-
* );
|
|
1445
|
-
* ```
|
|
1446
|
-
*/
|
|
1447
|
-
declare function useBroadcastMutation<T>(mutationKey: MutationKey | undefined, username: string | undefined, operations: (payload: T) => Operation[], onSuccess?: UseMutationOptions<unknown, Error, T>["onSuccess"], auth?: AuthContextV2, authority?: AuthorityLevel, options?: {
|
|
1448
|
-
onMutate?: UseMutationOptions<unknown, Error, T>["onMutate"];
|
|
1449
|
-
onError?: UseMutationOptions<unknown, Error, T>["onError"];
|
|
1450
|
-
onSettled?: UseMutationOptions<unknown, Error, T>["onSettled"];
|
|
1451
|
-
}): _tanstack_react_query.UseMutationResult<unknown, Error, T, unknown>;
|
|
1452
|
-
|
|
1453
|
-
declare function broadcastJson<T>(username: string | undefined, id: string, payload: T, auth?: AuthContext): Promise<any>;
|
|
1454
|
-
|
|
1455
|
-
declare function withTimeoutSignal(timeoutMs: number, signal?: AbortSignal): AbortSignal;
|
|
1456
|
-
|
|
1457
|
-
/** Timeout for internal API calls (search, private API). */
|
|
1458
|
-
declare const INTERNAL_API_TIMEOUT_MS = 10000;
|
|
1459
|
-
declare const CONFIG: {
|
|
1460
|
-
privateApiHost: string;
|
|
1461
|
-
imageHost: string;
|
|
1462
|
-
/** Current Hive RPC nodes. Reads from the unified hive-tx config. */
|
|
1463
|
-
readonly hiveNodes: string[];
|
|
1464
|
-
heliusApiKey: string | undefined;
|
|
1465
|
-
queryClient: QueryClient;
|
|
1466
|
-
plausibleHost: string;
|
|
1467
|
-
spkNode: string;
|
|
1468
|
-
dmcaAccounts: string[];
|
|
1469
|
-
dmcaTags: string[];
|
|
1470
|
-
dmcaPatterns: string[];
|
|
1471
|
-
dmcaTagRegexes: RegExp[];
|
|
1472
|
-
dmcaPatternRegexes: RegExp[];
|
|
1473
|
-
_dmcaInitialized: boolean;
|
|
1474
|
-
};
|
|
1475
|
-
type DmcaListsInput = {
|
|
1476
|
-
accounts?: string[];
|
|
1477
|
-
tags?: string[];
|
|
1478
|
-
posts?: string[];
|
|
1479
|
-
};
|
|
1480
|
-
declare namespace ConfigManager {
|
|
1481
|
-
function setQueryClient(client: QueryClient): void;
|
|
1482
|
-
/**
|
|
1483
|
-
* Set the private API host
|
|
1484
|
-
* @param host - The private API host URL (e.g., "https://ecency.com" or "" for relative URLs)
|
|
1485
|
-
*/
|
|
1486
|
-
function setPrivateApiHost(host: string): void;
|
|
1487
|
-
/**
|
|
1488
|
-
* Get a validated base URL for API requests
|
|
1489
|
-
* Returns a valid base URL that can be used with new URL(path, baseUrl)
|
|
1490
|
-
*
|
|
1491
|
-
* Priority:
|
|
1492
|
-
* 1. CONFIG.privateApiHost if set (dev/staging or explicit config)
|
|
1493
|
-
* 2. window.location.origin if in browser (production with relative URLs)
|
|
1494
|
-
* 3. 'https://ecency.com' as fallback for SSR (production default)
|
|
1495
|
-
*
|
|
1496
|
-
* @returns A valid base URL string
|
|
1497
|
-
* @throws Never throws - always returns a valid URL
|
|
1498
|
-
*/
|
|
1499
|
-
function getValidatedBaseUrl(): string;
|
|
1500
|
-
/**
|
|
1501
|
-
* Set the image host
|
|
1502
|
-
* @param host - The image host URL (e.g., "https://images.ecency.com")
|
|
1503
|
-
*/
|
|
1504
|
-
function setImageHost(host: string): void;
|
|
1505
|
-
/**
|
|
1506
|
-
* Set Hive RPC nodes, replacing the default list.
|
|
1507
|
-
* Directly updates the unified hive-tx config object.
|
|
1508
|
-
* @param nodes - Array of Hive RPC node URLs
|
|
1509
|
-
*/
|
|
1510
|
-
function setHiveNodes(nodes: string[]): void;
|
|
1511
|
-
/**
|
|
1512
|
-
* Set DMCA filtering lists
|
|
1513
|
-
* @param lists - DMCA lists object containing accounts/tags/posts arrays
|
|
1514
|
-
*/
|
|
1515
|
-
function setDmcaLists(lists?: DmcaListsInput): void;
|
|
1519
|
+
interface AuthorReward extends BaseTransaction {
|
|
1520
|
+
type: "author_reward";
|
|
1521
|
+
author: string;
|
|
1522
|
+
permlink: string;
|
|
1523
|
+
hbd_payout: string;
|
|
1524
|
+
hive_payout: string;
|
|
1525
|
+
vesting_payout: string;
|
|
1526
|
+
}
|
|
1527
|
+
interface CommentBenefactor extends BaseTransaction {
|
|
1528
|
+
type: "comment_benefactor_reward";
|
|
1529
|
+
benefactor: string;
|
|
1530
|
+
author: string;
|
|
1531
|
+
permlink: string;
|
|
1532
|
+
hbd_payout: string;
|
|
1533
|
+
hive_payout: string;
|
|
1534
|
+
vesting_payout: string;
|
|
1516
1535
|
}
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
COMMON = "common",
|
|
1524
|
-
INFO = "info",
|
|
1525
|
-
INSUFFICIENT_RESOURCE_CREDITS = "insufficient_resource_credits",
|
|
1526
|
-
MISSING_AUTHORITY = "missing_authority",
|
|
1527
|
-
TOKEN_EXPIRED = "token_expired",
|
|
1528
|
-
NETWORK = "network",
|
|
1529
|
-
TIMEOUT = "timeout",
|
|
1530
|
-
VALIDATION = "validation"
|
|
1536
|
+
interface ClaimRewardBalance extends BaseTransaction {
|
|
1537
|
+
type: "claim_reward_balance";
|
|
1538
|
+
account: string;
|
|
1539
|
+
reward_hbd: string;
|
|
1540
|
+
reward_hive: string;
|
|
1541
|
+
reward_vests: string;
|
|
1531
1542
|
}
|
|
1532
|
-
interface
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1543
|
+
interface Transfer extends BaseTransaction {
|
|
1544
|
+
type: "transfer";
|
|
1545
|
+
amount: string;
|
|
1546
|
+
memo: string;
|
|
1547
|
+
from: string;
|
|
1548
|
+
to: string;
|
|
1536
1549
|
}
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
function generateClientServerQuery<T>(options: UseQueryOptions<T>): {
|
|
1641
|
-
prefetch: () => Promise<T | undefined>;
|
|
1642
|
-
getData: () => T | undefined;
|
|
1643
|
-
useClientQuery: () => _tanstack_react_query.UseQueryResult<_tanstack_react_query.NoInfer<T>, Error>;
|
|
1644
|
-
fetchAndGet: () => Promise<T>;
|
|
1645
|
-
};
|
|
1646
|
-
function generateClientServerInfiniteQuery<T, P>(options: UseInfiniteQueryOptions<T, Error, InfiniteData<T>, QueryKey, P>): {
|
|
1647
|
-
prefetch: () => Promise<InfiniteData<T, unknown> | undefined>;
|
|
1648
|
-
getData: () => InfiniteData<T, unknown> | undefined;
|
|
1649
|
-
useClientQuery: () => _tanstack_react_query.UseInfiniteQueryResult<InfiniteData<T, unknown>, Error>;
|
|
1650
|
-
fetchAndGet: () => Promise<InfiniteData<T, P>>;
|
|
1651
|
-
};
|
|
1550
|
+
interface TransferToVesting extends BaseTransaction {
|
|
1551
|
+
type: "transfer_to_vesting";
|
|
1552
|
+
amount: string;
|
|
1553
|
+
memo?: string;
|
|
1554
|
+
from: string;
|
|
1555
|
+
to: string;
|
|
1556
|
+
}
|
|
1557
|
+
interface SetWithdrawRoute extends BaseTransaction {
|
|
1558
|
+
type: "set_withdraw_vesting_route";
|
|
1559
|
+
from_account: string;
|
|
1560
|
+
to_account: string;
|
|
1561
|
+
percent: number;
|
|
1562
|
+
auto_vest: boolean;
|
|
1563
|
+
}
|
|
1564
|
+
interface TransferToSavings extends BaseTransaction {
|
|
1565
|
+
type: "transfer_to_savings";
|
|
1566
|
+
amount: string;
|
|
1567
|
+
memo?: string;
|
|
1568
|
+
from: string;
|
|
1569
|
+
to: string;
|
|
1570
|
+
}
|
|
1571
|
+
interface CancelTransferFromSavings extends BaseTransaction {
|
|
1572
|
+
from: string;
|
|
1573
|
+
request_id: number;
|
|
1574
|
+
type: "cancel_transfer_from_savings";
|
|
1575
|
+
}
|
|
1576
|
+
interface WithdrawVesting extends BaseTransaction {
|
|
1577
|
+
type: "withdraw_vesting";
|
|
1578
|
+
acc: string;
|
|
1579
|
+
vesting_shares: string;
|
|
1580
|
+
}
|
|
1581
|
+
interface FillOrder extends BaseTransaction {
|
|
1582
|
+
type: "fill_order";
|
|
1583
|
+
current_pays: string;
|
|
1584
|
+
open_pays: string;
|
|
1585
|
+
}
|
|
1586
|
+
interface LimitOrderCancel extends BaseTransaction {
|
|
1587
|
+
type: "limit_order_cancel";
|
|
1588
|
+
owner: string;
|
|
1589
|
+
orderid: number;
|
|
1590
|
+
}
|
|
1591
|
+
interface ProducerReward extends BaseTransaction {
|
|
1592
|
+
type: "producer_reward";
|
|
1593
|
+
vesting_shares: string;
|
|
1594
|
+
producer: string;
|
|
1595
|
+
}
|
|
1596
|
+
interface Interest extends BaseTransaction {
|
|
1597
|
+
type: "interest";
|
|
1598
|
+
owner: string;
|
|
1599
|
+
interest: string;
|
|
1600
|
+
}
|
|
1601
|
+
interface FillConvertRequest extends BaseTransaction {
|
|
1602
|
+
type: "fill_convert_request";
|
|
1603
|
+
amount_in: string;
|
|
1604
|
+
amount_out: string;
|
|
1605
|
+
}
|
|
1606
|
+
interface FillCollateralizedConvertRequest extends BaseTransaction {
|
|
1607
|
+
type: "fill_collateralized_convert_request";
|
|
1608
|
+
owner: string;
|
|
1609
|
+
requestid: number;
|
|
1610
|
+
amount_in: string;
|
|
1611
|
+
amount_out: string;
|
|
1612
|
+
excess_collateral: string;
|
|
1613
|
+
}
|
|
1614
|
+
interface ReturnVestingDelegation extends BaseTransaction {
|
|
1615
|
+
type: "return_vesting_delegation";
|
|
1616
|
+
vesting_shares: string;
|
|
1617
|
+
}
|
|
1618
|
+
interface ProposalPay extends BaseTransaction {
|
|
1619
|
+
type: "proposal_pay";
|
|
1620
|
+
payment: string;
|
|
1621
|
+
}
|
|
1622
|
+
interface UpdateProposalVotes extends BaseTransaction {
|
|
1623
|
+
type: "update_proposal_votes";
|
|
1624
|
+
voter: string;
|
|
1625
|
+
proposal_ids: [number];
|
|
1626
|
+
approve: boolean;
|
|
1627
|
+
}
|
|
1628
|
+
interface CommentPayoutUpdate extends BaseTransaction {
|
|
1629
|
+
type: "comment_payout_update";
|
|
1630
|
+
author: string;
|
|
1631
|
+
permlink: string;
|
|
1632
|
+
}
|
|
1633
|
+
interface CommentReward extends BaseTransaction {
|
|
1634
|
+
type: "comment_reward";
|
|
1635
|
+
author: string;
|
|
1636
|
+
permlink: string;
|
|
1637
|
+
payout: string;
|
|
1638
|
+
}
|
|
1639
|
+
interface CollateralizedConvert extends BaseTransaction {
|
|
1640
|
+
type: "collateralized_convert";
|
|
1641
|
+
owner: string;
|
|
1642
|
+
requestid: number;
|
|
1643
|
+
amount: string;
|
|
1644
|
+
}
|
|
1645
|
+
interface RecurrentTransfers extends BaseTransaction {
|
|
1646
|
+
type: "recurrent_transfer";
|
|
1647
|
+
amount: string;
|
|
1648
|
+
memo: string;
|
|
1649
|
+
from: string;
|
|
1650
|
+
to: string;
|
|
1651
|
+
recurrence: number;
|
|
1652
|
+
executions: number;
|
|
1652
1653
|
}
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
};
|
|
1661
|
-
};
|
|
1662
|
-
|
|
1663
|
-
interface RewardFund {
|
|
1664
|
-
id: number;
|
|
1665
|
-
name: string;
|
|
1666
|
-
reward_balance: string;
|
|
1667
|
-
recent_claims: string;
|
|
1668
|
-
last_update: string;
|
|
1669
|
-
content_constant: string;
|
|
1670
|
-
percent_curation_rewards: number;
|
|
1671
|
-
percent_content_rewards: number;
|
|
1672
|
-
author_reward_curve: string;
|
|
1673
|
-
curation_reward_curve: string;
|
|
1654
|
+
interface FillRecurrentTransfers extends BaseTransaction {
|
|
1655
|
+
type: "fill_recurrent_transfer";
|
|
1656
|
+
amount: SMTAsset;
|
|
1657
|
+
memo: string;
|
|
1658
|
+
from: string;
|
|
1659
|
+
to: string;
|
|
1660
|
+
remaining_executions: number;
|
|
1674
1661
|
}
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
readonly transactions: (username: string, group: string, limit: number) => (string | number)[];
|
|
1747
|
-
readonly favorites: (activeUsername?: string) => (string | undefined)[];
|
|
1748
|
-
readonly favoritesInfinite: (activeUsername?: string, limit?: number) => unknown[];
|
|
1749
|
-
readonly checkFavorite: (activeUsername: string, targetUsername: string) => string[];
|
|
1750
|
-
readonly relations: (reference: string, target: string) => string[];
|
|
1751
|
-
readonly bots: () => string[];
|
|
1752
|
-
readonly voteHistory: (username: string, limit: number) => (string | number)[];
|
|
1753
|
-
readonly reputations: (query: string, limit: number) => (string | number)[];
|
|
1754
|
-
readonly bookmarks: (activeUsername?: string) => (string | undefined)[];
|
|
1755
|
-
readonly bookmarksInfinite: (activeUsername?: string, limit?: number) => unknown[];
|
|
1756
|
-
readonly referrals: (username: string) => string[];
|
|
1757
|
-
readonly referralsStats: (username: string) => string[];
|
|
1758
|
-
readonly _prefix: readonly ["accounts"];
|
|
1759
|
-
};
|
|
1760
|
-
readonly notifications: {
|
|
1761
|
-
readonly announcements: () => string[];
|
|
1762
|
-
readonly list: (activeUsername?: string, filter?: string) => (string | undefined)[];
|
|
1763
|
-
readonly unreadCount: (activeUsername?: string) => (string | undefined)[];
|
|
1764
|
-
readonly settings: (activeUsername?: string) => (string | undefined)[];
|
|
1765
|
-
readonly _prefix: readonly ["notifications"];
|
|
1766
|
-
};
|
|
1767
|
-
readonly core: {
|
|
1768
|
-
readonly rewardFund: (fundName: string) => string[];
|
|
1769
|
-
readonly dynamicProps: () => string[];
|
|
1770
|
-
readonly chainProperties: () => string[];
|
|
1771
|
-
readonly _prefix: readonly ["core"];
|
|
1772
|
-
};
|
|
1773
|
-
readonly communities: {
|
|
1774
|
-
readonly single: (name?: string, observer?: string) => (string | undefined)[];
|
|
1775
|
-
/** Prefix key for matching all observer variants of a community */
|
|
1776
|
-
readonly singlePrefix: (name: string) => readonly ["community", "single", string];
|
|
1777
|
-
readonly context: (username: string, communityName: string) => string[];
|
|
1778
|
-
readonly rewarded: () => string[];
|
|
1779
|
-
readonly list: (sort: string, query: string, limit: number) => (string | number)[];
|
|
1780
|
-
readonly subscribers: (communityName: string) => string[];
|
|
1781
|
-
readonly accountNotifications: (account: string, limit: number) => (string | number)[];
|
|
1782
|
-
};
|
|
1783
|
-
readonly proposals: {
|
|
1784
|
-
readonly list: () => string[];
|
|
1785
|
-
readonly proposal: (id: number) => (string | number)[];
|
|
1786
|
-
readonly votes: (proposalId: number, voter: string, limit: number) => (string | number)[];
|
|
1787
|
-
readonly votesPrefix: (proposalId: number) => readonly ["proposals", "votes", number];
|
|
1788
|
-
readonly votesByUser: (voter: string) => string[];
|
|
1789
|
-
};
|
|
1790
|
-
readonly search: {
|
|
1791
|
-
readonly topics: (q: string, limit: number) => (string | number)[];
|
|
1792
|
-
readonly path: (q: string) => string[];
|
|
1793
|
-
readonly account: (q: string, limit: number) => (string | number)[];
|
|
1794
|
-
readonly results: (q: string, sort: string, hideLow: boolean | string, since?: string, scrollId?: string, votes?: number) => readonly ["search", string, string, boolean, string | undefined, string | undefined, number | undefined];
|
|
1795
|
-
readonly controversialRising: (what: string, tag: string) => string[];
|
|
1796
|
-
readonly similarEntries: (author: string, permlink: string, query: string) => string[];
|
|
1797
|
-
readonly api: (q: string, sort: string, hideLow: boolean, since?: string, votes?: number) => (string | number | boolean | undefined)[];
|
|
1798
|
-
};
|
|
1799
|
-
readonly witnesses: {
|
|
1800
|
-
readonly list: (limit: number) => (string | number)[];
|
|
1801
|
-
readonly votes: (username: string | undefined) => (string | undefined)[];
|
|
1802
|
-
readonly proxy: () => string[];
|
|
1803
|
-
};
|
|
1804
|
-
readonly wallet: {
|
|
1805
|
-
readonly outgoingRcDelegations: (username: string, limit: number) => (string | number)[];
|
|
1806
|
-
readonly vestingDelegations: (username: string, limit: number) => (string | number)[];
|
|
1807
|
-
readonly withdrawRoutes: (account: string) => string[];
|
|
1808
|
-
readonly incomingRc: (username: string) => string[];
|
|
1809
|
-
readonly conversionRequests: (account: string) => string[];
|
|
1810
|
-
readonly receivedVestingShares: (username: string) => string[];
|
|
1811
|
-
readonly savingsWithdraw: (account: string) => string[];
|
|
1812
|
-
readonly openOrders: (user: string) => string[];
|
|
1813
|
-
readonly collateralizedConversionRequests: (account: string) => string[];
|
|
1814
|
-
readonly recurrentTransfers: (username: string) => string[];
|
|
1815
|
-
readonly portfolio: (username: string, onlyEnabled: string, currency: string) => string[];
|
|
1816
|
-
};
|
|
1817
|
-
readonly assets: {
|
|
1818
|
-
readonly hiveGeneralInfo: (username: string) => string[];
|
|
1819
|
-
readonly hiveTransactions: (username: string, limit: number, filterKey: string) => (string | number)[];
|
|
1820
|
-
readonly hiveWithdrawalRoutes: (username: string) => string[];
|
|
1821
|
-
readonly hiveMetrics: (bucketSeconds: number) => (string | number)[];
|
|
1822
|
-
readonly hbdGeneralInfo: (username: string) => string[];
|
|
1823
|
-
readonly hbdTransactions: (username: string, limit: number, filterKey: string) => (string | number)[];
|
|
1824
|
-
readonly hivePowerGeneralInfo: (username: string) => string[];
|
|
1825
|
-
readonly hivePowerDelegates: (username: string) => string[];
|
|
1826
|
-
readonly hivePowerDelegatings: (username: string) => string[];
|
|
1827
|
-
readonly hivePowerTransactions: (username: string, limit: number, filterKey: string) => (string | number)[];
|
|
1828
|
-
readonly pointsGeneralInfo: (username: string) => string[];
|
|
1829
|
-
readonly pointsTransactions: (username: string, type: string) => string[];
|
|
1830
|
-
readonly ecencyAssetInfo: (username: string, asset: string, currency: string) => string[];
|
|
1831
|
-
};
|
|
1832
|
-
readonly market: {
|
|
1833
|
-
readonly statistics: () => string[];
|
|
1834
|
-
readonly orderBook: (limit: number) => (string | number)[];
|
|
1835
|
-
readonly history: (seconds: number, startDate: number, endDate: number) => (string | number)[];
|
|
1836
|
-
readonly feedHistory: () => string[];
|
|
1837
|
-
readonly hiveHbdStats: () => string[];
|
|
1838
|
-
readonly data: (coin: string, vsCurrency: string, fromTs: number, toTs: number) => (string | number)[];
|
|
1839
|
-
readonly tradeHistory: (limit: number, start: number, end: number) => (string | number)[];
|
|
1840
|
-
readonly currentMedianHistoryPrice: () => string[];
|
|
1841
|
-
};
|
|
1842
|
-
readonly analytics: {
|
|
1843
|
-
readonly discoverCuration: (duration: string) => string[];
|
|
1844
|
-
readonly pageStats: (url: string, dimensions: string, metrics: string, dateRange: string) => string[];
|
|
1845
|
-
readonly discoverLeaderboard: (duration: string) => string[];
|
|
1846
|
-
};
|
|
1847
|
-
readonly promotions: {
|
|
1848
|
-
readonly promotePrice: () => string[];
|
|
1849
|
-
readonly boostPlusPrices: () => string[];
|
|
1850
|
-
readonly boostPlusAccounts: (account: string) => string[];
|
|
1851
|
-
};
|
|
1852
|
-
readonly resourceCredits: {
|
|
1853
|
-
readonly account: (username: string) => string[];
|
|
1854
|
-
readonly stats: () => string[];
|
|
1855
|
-
};
|
|
1856
|
-
readonly points: {
|
|
1857
|
-
readonly points: (username: string, filter: number) => (string | number)[];
|
|
1858
|
-
readonly _prefix: (username: string) => string[];
|
|
1859
|
-
};
|
|
1860
|
-
readonly operations: {
|
|
1861
|
-
readonly chainProperties: () => string[];
|
|
1862
|
-
};
|
|
1863
|
-
readonly games: {
|
|
1864
|
-
readonly statusCheck: (gameType: string, username: string) => string[];
|
|
1865
|
-
};
|
|
1866
|
-
readonly badActors: {
|
|
1867
|
-
readonly list: () => string[];
|
|
1868
|
-
readonly _prefix: readonly ["bad-actors"];
|
|
1662
|
+
interface DelegateVestingShares extends BaseTransaction {
|
|
1663
|
+
type: "delegate_vesting_shares";
|
|
1664
|
+
delegator: string;
|
|
1665
|
+
delegatee: string;
|
|
1666
|
+
vesting_shares: string;
|
|
1667
|
+
}
|
|
1668
|
+
interface LimitOrderCreate extends BaseTransaction {
|
|
1669
|
+
type: "limit_order_create";
|
|
1670
|
+
owner: string;
|
|
1671
|
+
orderid: number;
|
|
1672
|
+
amount_to_sell: string;
|
|
1673
|
+
min_to_receive: string;
|
|
1674
|
+
expiration: string;
|
|
1675
|
+
}
|
|
1676
|
+
interface FillVestingWithdraw extends BaseTransaction {
|
|
1677
|
+
type: "fill_vesting_withdraw";
|
|
1678
|
+
from_account: string;
|
|
1679
|
+
to_account: string;
|
|
1680
|
+
withdrawn: string;
|
|
1681
|
+
deposited: string;
|
|
1682
|
+
}
|
|
1683
|
+
interface EffectiveCommentVote extends BaseTransaction {
|
|
1684
|
+
type: "effective_comment_vote";
|
|
1685
|
+
voter: string;
|
|
1686
|
+
author: string;
|
|
1687
|
+
permlink: string;
|
|
1688
|
+
pending_payout: string;
|
|
1689
|
+
total_vote_weight: number;
|
|
1690
|
+
rshares: number;
|
|
1691
|
+
weight: number;
|
|
1692
|
+
}
|
|
1693
|
+
interface VoteProxy extends BaseTransaction {
|
|
1694
|
+
type: "account_witness_proxy";
|
|
1695
|
+
account: string;
|
|
1696
|
+
proxy: string;
|
|
1697
|
+
}
|
|
1698
|
+
type Transaction = CurationReward | AuthorReward | CommentBenefactor | ClaimRewardBalance | Transfer | TransferToVesting | TransferToSavings | CancelTransferFromSavings | WithdrawVesting | SetWithdrawRoute | FillOrder | ProducerReward | Interest | FillConvertRequest | FillCollateralizedConvertRequest | ReturnVestingDelegation | ProposalPay | UpdateProposalVotes | CommentPayoutUpdate | CommentReward | CollateralizedConvert | RecurrentTransfers | FillRecurrentTransfers | LimitOrderCreate | LimitOrderCancel | FillVestingWithdraw | EffectiveCommentVote | VoteProxy | DelegateVestingShares;
|
|
1699
|
+
type OperationGroup = "transfers" | "market-orders" | "interests" | "stake-operations" | "rewards";
|
|
1700
|
+
|
|
1701
|
+
interface ReferralItem {
|
|
1702
|
+
id: number;
|
|
1703
|
+
username: string;
|
|
1704
|
+
referrer: string;
|
|
1705
|
+
created: string;
|
|
1706
|
+
rewarded: number;
|
|
1707
|
+
v: number;
|
|
1708
|
+
}
|
|
1709
|
+
interface ReferralItems {
|
|
1710
|
+
data: ReferralItem[];
|
|
1711
|
+
}
|
|
1712
|
+
interface ReferralStat {
|
|
1713
|
+
total: number;
|
|
1714
|
+
rewarded: number;
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
/**
|
|
1718
|
+
* Account profile information from bridge API
|
|
1719
|
+
* Returned by get_profiles endpoint
|
|
1720
|
+
*/
|
|
1721
|
+
interface Profile {
|
|
1722
|
+
id: number;
|
|
1723
|
+
name: string;
|
|
1724
|
+
created: string;
|
|
1725
|
+
active: string;
|
|
1726
|
+
post_count: number;
|
|
1727
|
+
reputation: number;
|
|
1728
|
+
blacklists: string[];
|
|
1729
|
+
stats: {
|
|
1730
|
+
rank: number;
|
|
1731
|
+
following: number;
|
|
1732
|
+
followers: number;
|
|
1869
1733
|
};
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1734
|
+
metadata: {
|
|
1735
|
+
profile: {
|
|
1736
|
+
about?: string;
|
|
1737
|
+
blacklist_description?: string;
|
|
1738
|
+
cover_image?: string;
|
|
1739
|
+
location?: string;
|
|
1740
|
+
muted_list_description?: string;
|
|
1741
|
+
name?: string;
|
|
1742
|
+
profile_image?: string;
|
|
1743
|
+
website?: string;
|
|
1744
|
+
};
|
|
1874
1745
|
};
|
|
1875
|
-
}
|
|
1876
|
-
|
|
1877
|
-
declare function encodeObj(o: any): string;
|
|
1878
|
-
declare function decodeObj(o: any): any;
|
|
1746
|
+
}
|
|
1879
1747
|
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1748
|
+
/**
|
|
1749
|
+
* Friends list row data
|
|
1750
|
+
* The `active` field contains raw timestamp - app should format it
|
|
1751
|
+
*/
|
|
1752
|
+
interface FriendsRow {
|
|
1753
|
+
name: string;
|
|
1754
|
+
reputation: number;
|
|
1755
|
+
active: string;
|
|
1885
1756
|
}
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1757
|
+
/**
|
|
1758
|
+
* Friend search result with additional profile information
|
|
1759
|
+
* The `active` field contains raw timestamp - app should format it
|
|
1760
|
+
*/
|
|
1761
|
+
interface FriendSearchResult {
|
|
1762
|
+
name: string;
|
|
1763
|
+
full_name: string;
|
|
1764
|
+
reputation: number;
|
|
1765
|
+
active: string;
|
|
1890
1766
|
}
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1767
|
+
|
|
1768
|
+
interface Payload$4 {
|
|
1769
|
+
profile: Partial<AccountProfile>;
|
|
1770
|
+
tokens: AccountProfile["tokens"];
|
|
1894
1771
|
}
|
|
1895
|
-
|
|
1772
|
+
/**
|
|
1773
|
+
* React Query mutation hook for updating account profile metadata.
|
|
1774
|
+
*
|
|
1775
|
+
* This mutation broadcasts an account_update2 operation to update the user's
|
|
1776
|
+
* profile information (name, about, location, avatar, cover image, etc.).
|
|
1777
|
+
*
|
|
1778
|
+
* @param username - The username to update (required for broadcast)
|
|
1779
|
+
* @param auth - Authentication context with platform adapter and fallback configuration
|
|
1780
|
+
*
|
|
1781
|
+
* @returns React Query mutation result
|
|
1782
|
+
*
|
|
1783
|
+
* @remarks
|
|
1784
|
+
* **Profile Fields:**
|
|
1785
|
+
* - name: Display name
|
|
1786
|
+
* - about: Bio/description
|
|
1787
|
+
* - location: Location
|
|
1788
|
+
* - website: Website URL
|
|
1789
|
+
* - profile_image: Avatar URL
|
|
1790
|
+
* - cover_image: Cover/banner URL
|
|
1791
|
+
* - tokens: Social tokens (Twitter, Facebook, etc.)
|
|
1792
|
+
* - version: Profile metadata version (auto-set to 2)
|
|
1793
|
+
*
|
|
1794
|
+
* **Authentication:**
|
|
1795
|
+
* - Uses posting authority (account_update2 operation)
|
|
1796
|
+
* - Supports all auth methods via platform adapter
|
|
1797
|
+
*
|
|
1798
|
+
* **Post-Broadcast Actions:**
|
|
1799
|
+
* - Optimistically updates account cache with new profile data
|
|
1800
|
+
* - Invalidates account cache to refetch from blockchain
|
|
1801
|
+
*
|
|
1802
|
+
* @example
|
|
1803
|
+
* ```typescript
|
|
1804
|
+
* const updateProfile = useAccountUpdate(username, {
|
|
1805
|
+
* adapter: myAdapter,
|
|
1806
|
+
* });
|
|
1807
|
+
*
|
|
1808
|
+
* // Update profile
|
|
1809
|
+
* updateProfile.mutate({
|
|
1810
|
+
* profile: {
|
|
1811
|
+
* name: "John Doe",
|
|
1812
|
+
* about: "Hive enthusiast",
|
|
1813
|
+
* profile_image: "https://...",
|
|
1814
|
+
* }
|
|
1815
|
+
* });
|
|
1816
|
+
* ```
|
|
1817
|
+
*/
|
|
1818
|
+
declare function useAccountUpdate(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, Partial<Payload$4>, unknown>;
|
|
1896
1819
|
|
|
1897
|
-
|
|
1820
|
+
type Kind = "toggle-ignore" | "toggle-follow";
|
|
1821
|
+
declare function useAccountRelationsUpdate(reference: string | undefined, target: string | undefined, auth: AuthContext | undefined, onSuccess: (data: Partial<AccountRelationship> | undefined) => void, onError: (e: Error) => void): _tanstack_react_query.UseMutationResult<{
|
|
1822
|
+
ignores: boolean | undefined;
|
|
1823
|
+
follows: boolean | undefined;
|
|
1824
|
+
is_blacklisted?: boolean | undefined;
|
|
1825
|
+
follows_blacklists?: boolean | undefined;
|
|
1826
|
+
}, Error, Kind, unknown>;
|
|
1898
1827
|
|
|
1899
|
-
|
|
1828
|
+
/**
|
|
1829
|
+
* Payload for following an account.
|
|
1830
|
+
*/
|
|
1831
|
+
interface FollowPayload {
|
|
1832
|
+
/** Account to follow */
|
|
1833
|
+
following: string;
|
|
1834
|
+
}
|
|
1835
|
+
/**
|
|
1836
|
+
* React Query mutation hook for following an account.
|
|
1837
|
+
*
|
|
1838
|
+
* This mutation broadcasts a follow operation to the Hive blockchain,
|
|
1839
|
+
* adding the target account to the follower's "blog" follow list.
|
|
1840
|
+
*
|
|
1841
|
+
* @param username - The username of the follower (required for broadcast)
|
|
1842
|
+
* @param auth - Authentication context with platform adapter and fallback configuration
|
|
1843
|
+
*
|
|
1844
|
+
* @returns React Query mutation result
|
|
1845
|
+
*
|
|
1846
|
+
* @remarks
|
|
1847
|
+
* **Post-Broadcast Actions:**
|
|
1848
|
+
* - Invalidates relationship cache to show updated follow status
|
|
1849
|
+
* - Invalidates account cache to refetch updated follower/following counts
|
|
1850
|
+
*
|
|
1851
|
+
* @example
|
|
1852
|
+
* ```typescript
|
|
1853
|
+
* const followMutation = useFollow(username, {
|
|
1854
|
+
* adapter: myAdapter,
|
|
1855
|
+
* enableFallback: true,
|
|
1856
|
+
* fallbackChain: ['keychain', 'key', 'hivesigner']
|
|
1857
|
+
* });
|
|
1858
|
+
*
|
|
1859
|
+
* // Follow an account
|
|
1860
|
+
* followMutation.mutate({
|
|
1861
|
+
* following: 'alice'
|
|
1862
|
+
* });
|
|
1863
|
+
* ```
|
|
1864
|
+
*/
|
|
1865
|
+
declare function useFollow(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, FollowPayload, unknown>;
|
|
1900
1866
|
|
|
1901
1867
|
/**
|
|
1902
|
-
*
|
|
1868
|
+
* Payload for unfollowing an account.
|
|
1903
1869
|
*/
|
|
1904
|
-
|
|
1870
|
+
interface UnfollowPayload {
|
|
1871
|
+
/** Account to unfollow */
|
|
1872
|
+
following: string;
|
|
1873
|
+
}
|
|
1905
1874
|
/**
|
|
1906
|
-
*
|
|
1907
|
-
*
|
|
1875
|
+
* React Query mutation hook for unfollowing an account.
|
|
1876
|
+
*
|
|
1877
|
+
* This mutation broadcasts an unfollow operation to the Hive blockchain,
|
|
1878
|
+
* removing the target account from the follower's follow list.
|
|
1879
|
+
*
|
|
1880
|
+
* @param username - The username of the follower (required for broadcast)
|
|
1881
|
+
* @param auth - Authentication context with platform adapter and fallback configuration
|
|
1882
|
+
*
|
|
1883
|
+
* @returns React Query mutation result
|
|
1884
|
+
*
|
|
1885
|
+
* @remarks
|
|
1886
|
+
* **Post-Broadcast Actions:**
|
|
1887
|
+
* - Invalidates relationship cache to show updated follow status
|
|
1888
|
+
* - Invalidates account cache to refetch updated follower/following counts
|
|
1889
|
+
*
|
|
1890
|
+
* @example
|
|
1891
|
+
* ```typescript
|
|
1892
|
+
* const unfollowMutation = useUnfollow(username, {
|
|
1893
|
+
* adapter: myAdapter,
|
|
1894
|
+
* enableFallback: true,
|
|
1895
|
+
* fallbackChain: ['keychain', 'key', 'hivesigner']
|
|
1896
|
+
* });
|
|
1897
|
+
*
|
|
1898
|
+
* // Unfollow an account
|
|
1899
|
+
* unfollowMutation.mutate({
|
|
1900
|
+
* following: 'alice'
|
|
1901
|
+
* });
|
|
1902
|
+
* ```
|
|
1908
1903
|
*/
|
|
1909
|
-
declare function
|
|
1904
|
+
declare function useUnfollow(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, UnfollowPayload, unknown>;
|
|
1910
1905
|
|
|
1911
|
-
|
|
1906
|
+
interface Payload$3 {
|
|
1907
|
+
author: string;
|
|
1908
|
+
permlink: string;
|
|
1909
|
+
}
|
|
1910
|
+
declare function useBookmarkAdd(username: string | undefined, code: string | undefined, onSuccess: () => void, onError: (e: Error) => void): _tanstack_react_query.UseMutationResult<any, Error, Payload$3, unknown>;
|
|
1912
1911
|
|
|
1913
|
-
declare function
|
|
1912
|
+
declare function useBookmarkDelete(username: string | undefined, code: string | undefined, onSuccess: () => void, onError: (e: Error) => void): _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
|
|
1913
|
+
|
|
1914
|
+
declare function useAccountFavoriteAdd(username: string | undefined, code: string | undefined, onSuccess: () => void, onError: (e: Error) => void): _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
|
|
1915
|
+
|
|
1916
|
+
declare function useAccountFavoriteDelete(username: string | undefined, code: string | undefined, onSuccess: () => void, onError: (e: Error) => void): _tanstack_react_query.UseMutationResult<any, Error, string, {
|
|
1917
|
+
previousList: AccountFavorite[] | undefined;
|
|
1918
|
+
previousInfinite: Map<readonly unknown[], InfiniteData<WrappedResponse<AccountFavorite>, unknown> | undefined>;
|
|
1919
|
+
previousCheck: boolean | undefined;
|
|
1920
|
+
} | undefined>;
|
|
1921
|
+
|
|
1922
|
+
interface Keys {
|
|
1923
|
+
owner: PrivateKey;
|
|
1924
|
+
active: PrivateKey;
|
|
1925
|
+
posting: PrivateKey;
|
|
1926
|
+
memo_key: PrivateKey;
|
|
1927
|
+
}
|
|
1928
|
+
interface Payload$2 {
|
|
1929
|
+
keepCurrent?: boolean;
|
|
1930
|
+
currentKey: PrivateKey;
|
|
1931
|
+
keys: Keys[];
|
|
1932
|
+
keysToRevoke?: string[];
|
|
1933
|
+
keysToRevokeByAuthority?: Partial<Record<keyof Keys, string[]>>;
|
|
1934
|
+
}
|
|
1935
|
+
declare function dedupeAndSortKeyAuths(existing: Authority["key_auths"], additions: [string, number][]): Authority["key_auths"];
|
|
1936
|
+
type UpdateKeyAuthsOptions = Pick<UseMutationOptions<unknown, Error, Payload$2>, "onSuccess" | "onError">;
|
|
1937
|
+
declare function useAccountUpdateKeyAuths(username: string, options?: UpdateKeyAuthsOptions): _tanstack_react_query.UseMutationResult<TransactionConfirmation, Error, Payload$2, unknown>;
|
|
1914
1938
|
|
|
1915
1939
|
interface Payload$1 {
|
|
1916
1940
|
newPassword: string;
|
|
@@ -2044,7 +2068,7 @@ interface ClaimAccountPayload {
|
|
|
2044
2068
|
* });
|
|
2045
2069
|
* ```
|
|
2046
2070
|
*/
|
|
2047
|
-
declare function useClaimAccount(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, ClaimAccountPayload, unknown>;
|
|
2071
|
+
declare function useClaimAccount(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, ClaimAccountPayload, unknown>;
|
|
2048
2072
|
|
|
2049
2073
|
/**
|
|
2050
2074
|
* Content Operations
|
|
@@ -2704,7 +2728,7 @@ interface GrantPostingPermissionPayload {
|
|
|
2704
2728
|
memoKey: string;
|
|
2705
2729
|
jsonMetadata: string;
|
|
2706
2730
|
}
|
|
2707
|
-
declare function useGrantPostingPermission(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, GrantPostingPermissionPayload, unknown>;
|
|
2731
|
+
declare function useGrantPostingPermission(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, GrantPostingPermissionPayload, unknown>;
|
|
2708
2732
|
|
|
2709
2733
|
interface CreateAccountPayload {
|
|
2710
2734
|
newAccountName: string;
|
|
@@ -2713,7 +2737,7 @@ interface CreateAccountPayload {
|
|
|
2713
2737
|
/** If true, uses a claimed account token instead of paying the fee */
|
|
2714
2738
|
useClaimed?: boolean;
|
|
2715
2739
|
}
|
|
2716
|
-
declare function useCreateAccount(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, CreateAccountPayload, unknown>;
|
|
2740
|
+
declare function useCreateAccount(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, CreateAccountPayload, unknown>;
|
|
2717
2741
|
|
|
2718
2742
|
declare function getAccountFullQueryOptions(username: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
|
|
2719
2743
|
name: any;
|
|
@@ -4049,8 +4073,12 @@ interface VotePayload {
|
|
|
4049
4073
|
* weight: -10000
|
|
4050
4074
|
* });
|
|
4051
4075
|
* ```
|
|
4076
|
+
*
|
|
4077
|
+
* @remarks
|
|
4078
|
+
* broadcastMode: async — Votes don't require block confirmation.
|
|
4079
|
+
* The vote is accepted into the mempool immediately; UI can optimistically update.
|
|
4052
4080
|
*/
|
|
4053
|
-
declare function useVote(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, VotePayload, unknown>;
|
|
4081
|
+
declare function useVote(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, VotePayload, unknown>;
|
|
4054
4082
|
|
|
4055
4083
|
/**
|
|
4056
4084
|
* Payload for reblogging a post.
|
|
@@ -4106,7 +4134,7 @@ interface ReblogPayload {
|
|
|
4106
4134
|
* });
|
|
4107
4135
|
* ```
|
|
4108
4136
|
*/
|
|
4109
|
-
declare function useReblog(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, ReblogPayload, unknown>;
|
|
4137
|
+
declare function useReblog(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, ReblogPayload, unknown>;
|
|
4110
4138
|
|
|
4111
4139
|
/**
|
|
4112
4140
|
* Beneficiary account and weight.
|
|
@@ -4217,7 +4245,7 @@ interface CommentPayload {
|
|
|
4217
4245
|
* });
|
|
4218
4246
|
* ```
|
|
4219
4247
|
*/
|
|
4220
|
-
declare function useComment(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, CommentPayload, unknown>;
|
|
4248
|
+
declare function useComment(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, CommentPayload, unknown>;
|
|
4221
4249
|
|
|
4222
4250
|
/**
|
|
4223
4251
|
* Payload for deleting a comment or post.
|
|
@@ -4247,7 +4275,7 @@ interface DeleteCommentPayload {
|
|
|
4247
4275
|
*
|
|
4248
4276
|
* @returns React Query mutation result
|
|
4249
4277
|
*/
|
|
4250
|
-
declare function useDeleteComment(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, DeleteCommentPayload, unknown>;
|
|
4278
|
+
declare function useDeleteComment(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, DeleteCommentPayload, unknown>;
|
|
4251
4279
|
|
|
4252
4280
|
/**
|
|
4253
4281
|
* Payload for creating a cross-post.
|
|
@@ -4331,7 +4359,7 @@ interface CrossPostPayload {
|
|
|
4331
4359
|
* });
|
|
4332
4360
|
* ```
|
|
4333
4361
|
*/
|
|
4334
|
-
declare function useCrossPost(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, CrossPostPayload, unknown>;
|
|
4362
|
+
declare function useCrossPost(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, CrossPostPayload, unknown>;
|
|
4335
4363
|
|
|
4336
4364
|
/**
|
|
4337
4365
|
* Payload for updating a reply/comment.
|
|
@@ -4421,7 +4449,7 @@ interface UpdateReplyPayload {
|
|
|
4421
4449
|
* });
|
|
4422
4450
|
* ```
|
|
4423
4451
|
*/
|
|
4424
|
-
declare function useUpdateReply(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, UpdateReplyPayload, unknown>;
|
|
4452
|
+
declare function useUpdateReply(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, UpdateReplyPayload, unknown>;
|
|
4425
4453
|
|
|
4426
4454
|
/**
|
|
4427
4455
|
* Payload for promoting a post using Ecency Points.
|
|
@@ -4477,7 +4505,7 @@ interface PromotePayload {
|
|
|
4477
4505
|
* });
|
|
4478
4506
|
* ```
|
|
4479
4507
|
*/
|
|
4480
|
-
declare function usePromote(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, PromotePayload, unknown>;
|
|
4508
|
+
declare function usePromote(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, PromotePayload, unknown>;
|
|
4481
4509
|
|
|
4482
4510
|
/**
|
|
4483
4511
|
* SDK-level entry cache utilities. These operate on SDK cache keys
|
|
@@ -4939,7 +4967,7 @@ interface SubscribeCommunityPayload {
|
|
|
4939
4967
|
* });
|
|
4940
4968
|
* ```
|
|
4941
4969
|
*/
|
|
4942
|
-
declare function useSubscribeCommunity(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, SubscribeCommunityPayload, unknown>;
|
|
4970
|
+
declare function useSubscribeCommunity(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, SubscribeCommunityPayload, unknown>;
|
|
4943
4971
|
|
|
4944
4972
|
/**
|
|
4945
4973
|
* Payload for unsubscribing from a community.
|
|
@@ -4983,7 +5011,7 @@ interface UnsubscribeCommunityPayload {
|
|
|
4983
5011
|
* });
|
|
4984
5012
|
* ```
|
|
4985
5013
|
*/
|
|
4986
|
-
declare function useUnsubscribeCommunity(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, UnsubscribeCommunityPayload, unknown>;
|
|
5014
|
+
declare function useUnsubscribeCommunity(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, UnsubscribeCommunityPayload, unknown>;
|
|
4987
5015
|
|
|
4988
5016
|
/**
|
|
4989
5017
|
* Payload for muting/unmuting a post in a community.
|
|
@@ -5058,7 +5086,7 @@ interface MutePostPayload {
|
|
|
5058
5086
|
* });
|
|
5059
5087
|
* ```
|
|
5060
5088
|
*/
|
|
5061
|
-
declare function useMutePost(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, MutePostPayload, unknown>;
|
|
5089
|
+
declare function useMutePost(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, MutePostPayload, unknown>;
|
|
5062
5090
|
|
|
5063
5091
|
/**
|
|
5064
5092
|
* Payload for setting a user's role in a community.
|
|
@@ -5119,7 +5147,7 @@ interface SetCommunityRolePayload {
|
|
|
5119
5147
|
* });
|
|
5120
5148
|
* ```
|
|
5121
5149
|
*/
|
|
5122
|
-
declare function useSetCommunityRole(community: string, username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, SetCommunityRolePayload, unknown>;
|
|
5150
|
+
declare function useSetCommunityRole(community: string, username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, SetCommunityRolePayload, unknown>;
|
|
5123
5151
|
|
|
5124
5152
|
/**
|
|
5125
5153
|
* Payload for updating community properties.
|
|
@@ -5175,7 +5203,7 @@ type UpdateCommunityPayload = CommunityProps;
|
|
|
5175
5203
|
* });
|
|
5176
5204
|
* ```
|
|
5177
5205
|
*/
|
|
5178
|
-
declare function useUpdateCommunity(community: string, username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, CommunityProps, unknown>;
|
|
5206
|
+
declare function useUpdateCommunity(community: string, username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, CommunityProps, unknown>;
|
|
5179
5207
|
|
|
5180
5208
|
/**
|
|
5181
5209
|
* Payload for community rewards registration.
|
|
@@ -5224,7 +5252,7 @@ interface CommunityRewardsRegisterPayload {
|
|
|
5224
5252
|
* });
|
|
5225
5253
|
* ```
|
|
5226
5254
|
*/
|
|
5227
|
-
declare function useRegisterCommunityRewards(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, CommunityRewardsRegisterPayload, unknown>;
|
|
5255
|
+
declare function useRegisterCommunityRewards(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, CommunityRewardsRegisterPayload, unknown>;
|
|
5228
5256
|
|
|
5229
5257
|
interface PinPostPayload {
|
|
5230
5258
|
community: string;
|
|
@@ -5232,7 +5260,7 @@ interface PinPostPayload {
|
|
|
5232
5260
|
permlink: string;
|
|
5233
5261
|
pin: boolean;
|
|
5234
5262
|
}
|
|
5235
|
-
declare function usePinPost(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, PinPostPayload, unknown>;
|
|
5263
|
+
declare function usePinPost(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, PinPostPayload, unknown>;
|
|
5236
5264
|
|
|
5237
5265
|
declare enum ROLES {
|
|
5238
5266
|
OWNER = "owner",
|
|
@@ -5687,7 +5715,7 @@ declare function useMarkNotificationsRead(username: string | undefined, code: st
|
|
|
5687
5715
|
interface SetLastReadPayload {
|
|
5688
5716
|
date?: string;
|
|
5689
5717
|
}
|
|
5690
|
-
declare function useSetLastRead(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, SetLastReadPayload, unknown>;
|
|
5718
|
+
declare function useSetLastRead(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, SetLastReadPayload, unknown>;
|
|
5691
5719
|
|
|
5692
5720
|
interface Proposal {
|
|
5693
5721
|
creator: string;
|
|
@@ -5834,9 +5862,9 @@ interface ProposalVotePayload {
|
|
|
5834
5862
|
* });
|
|
5835
5863
|
* ```
|
|
5836
5864
|
*/
|
|
5837
|
-
declare function useProposalVote(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, ProposalVotePayload, unknown>;
|
|
5865
|
+
declare function useProposalVote(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, ProposalVotePayload, unknown>;
|
|
5838
5866
|
|
|
5839
|
-
declare function useProposalCreate(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, ProposalCreatePayload, unknown>;
|
|
5867
|
+
declare function useProposalCreate(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, ProposalCreatePayload, unknown>;
|
|
5840
5868
|
|
|
5841
5869
|
interface DelegatedVestingShare {
|
|
5842
5870
|
id: number;
|
|
@@ -6592,7 +6620,7 @@ interface TransferPayload {
|
|
|
6592
6620
|
*
|
|
6593
6621
|
* @returns React Query mutation result
|
|
6594
6622
|
*/
|
|
6595
|
-
declare function useTransfer(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, TransferPayload, unknown>;
|
|
6623
|
+
declare function useTransfer(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, TransferPayload, unknown>;
|
|
6596
6624
|
|
|
6597
6625
|
interface TransferPointPayload {
|
|
6598
6626
|
to: string;
|
|
@@ -6604,7 +6632,7 @@ interface TransferPointPayload {
|
|
|
6604
6632
|
*
|
|
6605
6633
|
* Uses `ecency_point_transfer` custom_json operation with ACTIVE authority.
|
|
6606
6634
|
*/
|
|
6607
|
-
declare function useTransferPoint(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, TransferPointPayload, unknown>;
|
|
6635
|
+
declare function useTransferPoint(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, TransferPointPayload, unknown>;
|
|
6608
6636
|
|
|
6609
6637
|
/**
|
|
6610
6638
|
* Payload for delegating Hive Power (vesting shares).
|
|
@@ -6666,7 +6694,7 @@ interface DelegateVestingSharesPayload {
|
|
|
6666
6694
|
* });
|
|
6667
6695
|
* ```
|
|
6668
6696
|
*/
|
|
6669
|
-
declare function useDelegateVestingShares(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, DelegateVestingSharesPayload, unknown>;
|
|
6697
|
+
declare function useDelegateVestingShares(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, DelegateVestingSharesPayload, unknown>;
|
|
6670
6698
|
|
|
6671
6699
|
/**
|
|
6672
6700
|
* Payload for setting withdraw vesting route.
|
|
@@ -6733,21 +6761,21 @@ interface SetWithdrawVestingRoutePayload {
|
|
|
6733
6761
|
* });
|
|
6734
6762
|
* ```
|
|
6735
6763
|
*/
|
|
6736
|
-
declare function useSetWithdrawVestingRoute(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, SetWithdrawVestingRoutePayload, unknown>;
|
|
6764
|
+
declare function useSetWithdrawVestingRoute(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, SetWithdrawVestingRoutePayload, unknown>;
|
|
6737
6765
|
|
|
6738
6766
|
interface TransferSpkPayload {
|
|
6739
6767
|
to: string;
|
|
6740
6768
|
amount: number;
|
|
6741
6769
|
memo?: string;
|
|
6742
6770
|
}
|
|
6743
|
-
declare function useTransferSpk(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, TransferSpkPayload, unknown>;
|
|
6771
|
+
declare function useTransferSpk(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, TransferSpkPayload, unknown>;
|
|
6744
6772
|
|
|
6745
6773
|
interface TransferLarynxPayload {
|
|
6746
6774
|
to: string;
|
|
6747
6775
|
amount: number;
|
|
6748
6776
|
memo?: string;
|
|
6749
6777
|
}
|
|
6750
|
-
declare function useTransferLarynx(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, TransferLarynxPayload, unknown>;
|
|
6778
|
+
declare function useTransferLarynx(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, TransferLarynxPayload, unknown>;
|
|
6751
6779
|
|
|
6752
6780
|
interface TransferEngineTokenPayload {
|
|
6753
6781
|
to: string;
|
|
@@ -6755,14 +6783,14 @@ interface TransferEngineTokenPayload {
|
|
|
6755
6783
|
quantity: string;
|
|
6756
6784
|
memo: string;
|
|
6757
6785
|
}
|
|
6758
|
-
declare function useTransferEngineToken(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, TransferEngineTokenPayload, unknown>;
|
|
6786
|
+
declare function useTransferEngineToken(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, TransferEngineTokenPayload, unknown>;
|
|
6759
6787
|
|
|
6760
6788
|
interface TransferToSavingsPayload {
|
|
6761
6789
|
to: string;
|
|
6762
6790
|
amount: string;
|
|
6763
6791
|
memo: string;
|
|
6764
6792
|
}
|
|
6765
|
-
declare function useTransferToSavings(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, TransferToSavingsPayload, unknown>;
|
|
6793
|
+
declare function useTransferToSavings(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, TransferToSavingsPayload, unknown>;
|
|
6766
6794
|
|
|
6767
6795
|
interface TransferFromSavingsPayload {
|
|
6768
6796
|
to: string;
|
|
@@ -6770,25 +6798,25 @@ interface TransferFromSavingsPayload {
|
|
|
6770
6798
|
memo: string;
|
|
6771
6799
|
requestId: number;
|
|
6772
6800
|
}
|
|
6773
|
-
declare function useTransferFromSavings(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, TransferFromSavingsPayload, unknown>;
|
|
6801
|
+
declare function useTransferFromSavings(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, TransferFromSavingsPayload, unknown>;
|
|
6774
6802
|
|
|
6775
6803
|
interface TransferToVestingPayload {
|
|
6776
6804
|
to: string;
|
|
6777
6805
|
amount: string;
|
|
6778
6806
|
}
|
|
6779
|
-
declare function useTransferToVesting(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, TransferToVestingPayload, unknown>;
|
|
6807
|
+
declare function useTransferToVesting(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, TransferToVestingPayload, unknown>;
|
|
6780
6808
|
|
|
6781
6809
|
interface WithdrawVestingPayload {
|
|
6782
6810
|
vestingShares: string;
|
|
6783
6811
|
}
|
|
6784
|
-
declare function useWithdrawVesting(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, WithdrawVestingPayload, unknown>;
|
|
6812
|
+
declare function useWithdrawVesting(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, WithdrawVestingPayload, unknown>;
|
|
6785
6813
|
|
|
6786
6814
|
interface ConvertPayload {
|
|
6787
6815
|
amount: string;
|
|
6788
6816
|
requestId: number;
|
|
6789
6817
|
collateralized?: boolean;
|
|
6790
6818
|
}
|
|
6791
|
-
declare function useConvert(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, ConvertPayload, unknown>;
|
|
6819
|
+
declare function useConvert(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, ConvertPayload, unknown>;
|
|
6792
6820
|
|
|
6793
6821
|
interface ClaimInterestPayload {
|
|
6794
6822
|
to: string;
|
|
@@ -6796,59 +6824,59 @@ interface ClaimInterestPayload {
|
|
|
6796
6824
|
memo: string;
|
|
6797
6825
|
requestId: number;
|
|
6798
6826
|
}
|
|
6799
|
-
declare function useClaimInterest(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, ClaimInterestPayload, unknown>;
|
|
6827
|
+
declare function useClaimInterest(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, ClaimInterestPayload, unknown>;
|
|
6800
6828
|
|
|
6801
6829
|
interface ClaimRewardsPayload {
|
|
6802
6830
|
rewardHive: string;
|
|
6803
6831
|
rewardHbd: string;
|
|
6804
6832
|
rewardVests: string;
|
|
6805
6833
|
}
|
|
6806
|
-
declare function useClaimRewards(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, ClaimRewardsPayload, unknown>;
|
|
6834
|
+
declare function useClaimRewards(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, ClaimRewardsPayload, unknown>;
|
|
6807
6835
|
|
|
6808
6836
|
interface LockLarynxPayload {
|
|
6809
6837
|
mode: "lock" | "unlock";
|
|
6810
6838
|
amount: number;
|
|
6811
6839
|
}
|
|
6812
|
-
declare function useLockLarynx(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, LockLarynxPayload, unknown>;
|
|
6840
|
+
declare function useLockLarynx(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, LockLarynxPayload, unknown>;
|
|
6813
6841
|
|
|
6814
6842
|
interface PowerLarynxPayload {
|
|
6815
6843
|
mode: "up" | "down";
|
|
6816
6844
|
amount: number;
|
|
6817
6845
|
}
|
|
6818
|
-
declare function usePowerLarynx(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, PowerLarynxPayload, unknown>;
|
|
6846
|
+
declare function usePowerLarynx(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, PowerLarynxPayload, unknown>;
|
|
6819
6847
|
|
|
6820
6848
|
interface DelegateEngineTokenPayload {
|
|
6821
6849
|
to: string;
|
|
6822
6850
|
symbol: string;
|
|
6823
6851
|
quantity: string;
|
|
6824
6852
|
}
|
|
6825
|
-
declare function useDelegateEngineToken(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, DelegateEngineTokenPayload, unknown>;
|
|
6853
|
+
declare function useDelegateEngineToken(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, DelegateEngineTokenPayload, unknown>;
|
|
6826
6854
|
|
|
6827
6855
|
interface UndelegateEngineTokenPayload {
|
|
6828
6856
|
from: string;
|
|
6829
6857
|
symbol: string;
|
|
6830
6858
|
quantity: string;
|
|
6831
6859
|
}
|
|
6832
|
-
declare function useUndelegateEngineToken(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, UndelegateEngineTokenPayload, unknown>;
|
|
6860
|
+
declare function useUndelegateEngineToken(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, UndelegateEngineTokenPayload, unknown>;
|
|
6833
6861
|
|
|
6834
6862
|
interface StakeEngineTokenPayload {
|
|
6835
6863
|
to: string;
|
|
6836
6864
|
symbol: string;
|
|
6837
6865
|
quantity: string;
|
|
6838
6866
|
}
|
|
6839
|
-
declare function useStakeEngineToken(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, StakeEngineTokenPayload, unknown>;
|
|
6867
|
+
declare function useStakeEngineToken(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, StakeEngineTokenPayload, unknown>;
|
|
6840
6868
|
|
|
6841
6869
|
interface UnstakeEngineTokenPayload {
|
|
6842
6870
|
to: string;
|
|
6843
6871
|
symbol: string;
|
|
6844
6872
|
quantity: string;
|
|
6845
6873
|
}
|
|
6846
|
-
declare function useUnstakeEngineToken(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, UnstakeEngineTokenPayload, unknown>;
|
|
6874
|
+
declare function useUnstakeEngineToken(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, UnstakeEngineTokenPayload, unknown>;
|
|
6847
6875
|
|
|
6848
6876
|
interface ClaimEngineRewardsPayload {
|
|
6849
6877
|
tokens: string[];
|
|
6850
6878
|
}
|
|
6851
|
-
declare function useClaimEngineRewards(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, ClaimEngineRewardsPayload, unknown>;
|
|
6879
|
+
declare function useClaimEngineRewards(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, ClaimEngineRewardsPayload, unknown>;
|
|
6852
6880
|
|
|
6853
6881
|
interface EngineMarketOrderPayload {
|
|
6854
6882
|
action: "buy" | "sell" | "cancel";
|
|
@@ -6858,7 +6886,7 @@ interface EngineMarketOrderPayload {
|
|
|
6858
6886
|
orderId?: string;
|
|
6859
6887
|
orderType?: "buy" | "sell";
|
|
6860
6888
|
}
|
|
6861
|
-
declare function useEngineMarketOrder(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, EngineMarketOrderPayload, unknown>;
|
|
6889
|
+
declare function useEngineMarketOrder(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, EngineMarketOrderPayload, unknown>;
|
|
6862
6890
|
|
|
6863
6891
|
interface WalletOperationPayload {
|
|
6864
6892
|
from: string;
|
|
@@ -6884,13 +6912,13 @@ interface WalletOperationPayload {
|
|
|
6884
6912
|
* @param operation - The operation type from AssetOperation enum
|
|
6885
6913
|
* @param auth - Auth context for broadcasting
|
|
6886
6914
|
*/
|
|
6887
|
-
declare function useWalletOperation(username: string | undefined, asset: string, operation: AssetOperation, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, WalletOperationPayload, unknown>;
|
|
6915
|
+
declare function useWalletOperation(username: string | undefined, asset: string, operation: AssetOperation, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, WalletOperationPayload, unknown>;
|
|
6888
6916
|
|
|
6889
6917
|
interface DelegateRcPayload {
|
|
6890
6918
|
to: string;
|
|
6891
6919
|
maxRc: string | number;
|
|
6892
6920
|
}
|
|
6893
|
-
declare function useDelegateRc(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, DelegateRcPayload, unknown>;
|
|
6921
|
+
declare function useDelegateRc(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, DelegateRcPayload, unknown>;
|
|
6894
6922
|
|
|
6895
6923
|
declare const HIVE_ACCOUNT_OPERATION_GROUPS: Record<HiveOperationGroup, number[]>;
|
|
6896
6924
|
|
|
@@ -6952,12 +6980,12 @@ interface WitnessVotePayload {
|
|
|
6952
6980
|
* });
|
|
6953
6981
|
* ```
|
|
6954
6982
|
*/
|
|
6955
|
-
declare function useWitnessVote(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, WitnessVotePayload, unknown>;
|
|
6983
|
+
declare function useWitnessVote(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, WitnessVotePayload, unknown>;
|
|
6956
6984
|
|
|
6957
6985
|
interface WitnessProxyPayload {
|
|
6958
6986
|
proxy: string;
|
|
6959
6987
|
}
|
|
6960
|
-
declare function useWitnessProxy(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, WitnessProxyPayload, unknown>;
|
|
6988
|
+
declare function useWitnessProxy(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, WitnessProxyPayload, unknown>;
|
|
6961
6989
|
|
|
6962
6990
|
interface Witness {
|
|
6963
6991
|
total_missed: number;
|
|
@@ -7192,12 +7220,12 @@ interface LimitOrderCreatePayload {
|
|
|
7192
7220
|
expiration: string;
|
|
7193
7221
|
orderId: number;
|
|
7194
7222
|
}
|
|
7195
|
-
declare function useLimitOrderCreate(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, LimitOrderCreatePayload, unknown>;
|
|
7223
|
+
declare function useLimitOrderCreate(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, LimitOrderCreatePayload, unknown>;
|
|
7196
7224
|
|
|
7197
7225
|
interface LimitOrderCancelPayload {
|
|
7198
7226
|
orderId: number;
|
|
7199
7227
|
}
|
|
7200
|
-
declare function useLimitOrderCancel(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, LimitOrderCancelPayload, unknown>;
|
|
7228
|
+
declare function useLimitOrderCancel(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, LimitOrderCancelPayload, unknown>;
|
|
7201
7229
|
|
|
7202
7230
|
interface ApiResponse<T> {
|
|
7203
7231
|
status: number;
|
|
@@ -7509,7 +7537,7 @@ interface BoostPlusPayload {
|
|
|
7509
7537
|
account: string;
|
|
7510
7538
|
duration: number;
|
|
7511
7539
|
}
|
|
7512
|
-
declare function useBoostPlus(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, BoostPlusPayload, unknown>;
|
|
7540
|
+
declare function useBoostPlus(username: string | undefined, auth?: AuthContextV2, broadcastMode?: BroadcastMode): _tanstack_react_query.UseMutationResult<unknown, Error, BoostPlusPayload, unknown>;
|
|
7513
7541
|
|
|
7514
7542
|
type BridgeParams = Record<string, unknown> | unknown[];
|
|
7515
7543
|
declare function bridgeApiCall<T>(endpoint: string, params: BridgeParams, signal?: AbortSignal): Promise<T>;
|
|
@@ -8187,4 +8215,4 @@ declare function getBadActorsQueryOptions(): _tanstack_react_query.OmitKeyof<_ta
|
|
|
8187
8215
|
};
|
|
8188
8216
|
};
|
|
8189
8217
|
|
|
8190
|
-
export { ACCOUNT_OPERATION_GROUPS, ALL_ACCOUNT_OPERATIONS, ALL_NOTIFY_TYPES, type AccountBookmark, type AccountFavorite, type AccountFollowStats, type AccountKeys, type AccountNotification, type AccountProfile, type AccountRelationship, type AccountReputation, type AiAssistParams, type AiAssistPrice, type AiAssistResponse, type AiGenerationPrice, type AiGenerationRequest, type AiGenerationResponse, type AiImagePowerTier, type AiImagePriceResponse, type Announcement, type ApiBookmarkNotification, type ApiDelegationsNotification, type ApiFavoriteNotification, type ApiFollowNotification, type ApiInactiveNotification, type ApiMentionNotification, type ApiNotification, type ApiNotificationSetting, type ApiReblogNotification, type ApiReferralNotification, type ApiReplyNotification, type ApiResponse, type ApiSpinNotification, type ApiTransferNotification, type ApiVoteNotification, type ApiWeeklyEarningsNotification, type Asset, AssetOperation, type AuthContext, type AuthContextV2, type AuthMethod, type AuthorReward, Authority, type AuthorityLevel, type AuthorityType, type Beneficiary, type BlogEntry, type BoostPlusAccountPrice, type BoostPlusPayload, BroadcastResult, type BuildProfileMetadataArgs, BuySellTransactionType, CONFIG, type CancelTransferFromSavings, type CantAfford, type CheckUsernameWalletsPendingResponse, type ClaimAccountPayload, type ClaimEngineRewardsPayload, type ClaimInterestPayload, type ClaimRewardBalance, type ClaimRewardsPayload, type CollateralizedConversionRequest, type CollateralizedConvert, type CommentBenefactor, type CommentPayload, type CommentPayoutUpdate, type CommentReward, type Communities, type Community, type CommunityProps, type CommunityRewardsRegisterPayload, type CommunityRole, type CommunityTeam, type CommunityType, ConfigManager, type ConversionRequest, type ConvertPayload, type CreateAccountPayload, type CrossPostPayload, type CurationDuration, type CurationItem, type CurationReward, type CurrencyRates, type DelegateEngineTokenPayload, type DelegateRcPayload, type DelegateVestingShares, type DelegateVestingSharesPayload, type DelegatedVestingShare, type DeleteCommentPayload, type DeletedEntry, type Draft, type DraftMetadata, type DraftsWrappedResponse, type DynamicProps$1 as DynamicProps, index as EcencyAnalytics, EcencyQueriesManager, type EffectiveCommentVote, type EngineMarketOrderPayload, EntriesCacheManagement, type Entry$1 as Entry, type EntryBeneficiaryRoute, type EntryHeader, type EntryStat, type EntryVote, ErrorType, type FeedHistoryItem, type FillCollateralizedConvertRequest, type FillConvertRequest, type FillOrder, type FillRecurrentTransfers, type FillVestingWithdraw, type Follow, type FollowPayload, type Fragment, type FriendSearchResult, type FriendsPageParam, type FriendsRow, type FullAccount, type GameClaim, type GeneralAssetInfo, type GeneralAssetTransaction, type GenerateImageParams, type GetGameStatus, type GetRecoveriesEmailResponse, type GrantPostingPermissionPayload, HIVE_ACCOUNT_OPERATION_GROUPS, HIVE_OPERATION_LIST, HIVE_OPERATION_NAME_BY_ID, HIVE_OPERATION_ORDERS, type HiveBasedAssetSignType, type HiveEngineMarketResponse, type HiveEngineMetric, type HiveEngineOpenOrder, type HiveEngineOrderBookEntry, HiveEngineToken, type HiveEngineTokenBalance, type HiveEngineTokenInfo, type HiveEngineTokenMetadataResponse, type HiveEngineTokenStatus, type HiveEngineTransaction, type HiveHbdStats, type HiveMarketMetric, type HiveOperationFilter, type HiveOperationFilterKey, type HiveOperationFilterValue, type HiveOperationGroup, type HiveOperationName, HiveSignerIntegration, type HiveTransaction, type HsTokenRenewResponse, INTERNAL_API_TIMEOUT_MS, type IncomingRcDelegation, type IncomingRcResponse, type Interest, type JsonMetadata, type JsonPollMetadata, type Keys, type LeaderBoardDuration, type LeaderBoardItem, type LimitOrderCancel, type LimitOrderCancelPayload, type LimitOrderCreate, type LimitOrderCreatePayload, type LockLarynxPayload, type MarketCandlestickDataItem, type MarketData, type MarketStatistics, type MedianHistoryPrice, type MutePostPayload, NaiMap, NotificationFilter, NotificationViewType, type Notifications, NotifyTypes, OPERATION_AUTHORITY_MAP, type OpenOrdersData, Operation, type OperationGroup, OperationName, OrderIdPrefix, type OrdersData, type OrdersDataItem, type PageStatsResponse, type PaginationMeta, type ParsedChainError, type Payer, type PinPostPayload, type PlatformAdapter, type PointTransaction, PointTransactionType, type Points, type PointsResponse, type PortfolioResponse, type PortfolioWalletItem, type PostTip, type PostTipsResponse, type PowerLarynxPayload, PrivateKey, type ProducerReward, type Profile, type ProfileTokens, type PromotePayload, type PromotePrice, type Proposal, type ProposalCreatePayload, type ProposalPay, type ProposalVote, type ProposalVotePayload, type ProposalVoteRow, PublicKey, QueryKeys, type RCAccount, ROLES, type RcDirectDelegation, type RcDirectDelegationsResponse, type RcStats, type Reblog, type ReblogPayload, type ReceivedVestingShare, type RecordActivityOptions, type Recoveries, type RecurrentTransfer, type RecurrentTransfers, type ReferralItem, type ReferralItems, type ReferralStat, type ReturnVestingDelegation, type RewardFund, type RewardedCommunity, type SMTAsset, type SavingsWithdrawRequest, type Schedule, type SearchResponse, type SearchResult, type SetCommunityRolePayload, type SetLastReadPayload, type SetWithdrawRoute, type SetWithdrawVestingRoutePayload, SortOrder, type SpkApiWallet, type SpkMarkets, type StakeEngineTokenPayload, type StatsResponse, type SubscribeCommunityPayload, type Subscription, Symbol, type ThreadItemEntry, ThreeSpeakIntegration, type ThreeSpeakVideo, type Token, type TokenMetadata, type Transaction, type TransactionConfirmation, type Transfer, type TransferEngineTokenPayload, type TransferFromSavingsPayload, type TransferLarynxPayload, type TransferPayload, type TransferPointPayload, type TransferSpkPayload, type TransferToSavings, type TransferToSavingsPayload, type TransferToVesting, type TransferToVestingPayload, type TransformedSpkMarkets, type TrendingTag, type UndelegateEngineTokenPayload, type UnfollowPayload, type UnstakeEngineTokenPayload, type UnsubscribeCommunityPayload, type UpdateCommunityPayload, type UpdateProposalVotes, type UpdateReplyPayload, type User, type UserImage, type ValidatePostCreatingOptions, type VestingDelegationExpiration, type Vote, type VoteHistoryPage, type VoteHistoryPageParam, type VotePayload, type VoteProxy, type WalletMetadataCandidate, type WalletOperationPayload, type WaveEntry, type WaveTrendingAuthor, type WaveTrendingTag, type WithdrawRoute, type WithdrawVesting, type WithdrawVestingPayload, type Witness, type WitnessProxyPayload, type WitnessVotePayload, type WrappedResponse, type WsBookmarkNotification, type WsDelegationsNotification, type WsFavoriteNotification, type WsFollowNotification, type WsInactiveNotification, type WsMentionNotification, type WsNotification, type WsReblogNotification, type WsReferralNotification, type WsReplyNotification, type WsSpinNotification, type WsTransferNotification, type WsVoteNotification, addDraft, addImage, addOptimisticDiscussionEntry, addSchedule, bridgeApiCall, broadcastJson, broadcastOperations, broadcastOperationsAsync, buildAccountCreateOp, buildAccountUpdate2Op, buildAccountUpdateOp, buildActiveCustomJsonOp, buildBoostOp, buildBoostOpWithPoints, buildBoostPlusOp, buildCancelTransferFromSavingsOp, buildChangeRecoveryAccountOp, buildClaimAccountOp, buildClaimInterestOps, buildClaimRewardBalanceOp, buildCollateralizedConvertOp, buildCommentOp, buildCommentOptionsOp, buildCommunityRegistrationOp, buildConvertOp, buildCreateClaimedAccountOp, buildDelegateRcOp, buildDelegateVestingSharesOp, buildDeleteCommentOp, buildEngineClaimOp, buildEngineOp, buildFlagPostOp, buildFollowOp, buildGrantPostingPermissionOp, buildIgnoreOp, buildLimitOrderCancelOp, buildLimitOrderCreateOp, buildLimitOrderCreateOpWithType, buildMultiPointTransferOps, buildMultiTransferOps, buildMutePostOp, buildMuteUserOp, buildPinPostOp, buildPointTransferOp, buildPostingCustomJsonOp, buildProfileMetadata, buildPromoteOp, buildProposalCreateOp, buildProposalVoteOp, buildReblogOp, buildRecoverAccountOp, buildRecurrentTransferOp, buildRemoveProposalOp, buildRequestAccountRecoveryOp, buildRevokeKeysOp, buildRevokePostingPermissionOp, buildSetLastReadOps, buildSetRoleOp, buildSetWithdrawVestingRouteOp, buildSpkCustomJsonOp, buildSubscribeOp, buildTransferFromSavingsOp, buildTransferOp, buildTransferToSavingsOp, buildTransferToVestingOp, buildUnfollowOp, buildUnignoreOp, buildUnsubscribeOp, buildUpdateCommunityOp, buildUpdateProposalOp, buildVoteOp, buildWithdrawVestingOp, buildWitnessProxyOp, buildWitnessVoteOp, calculateRCMana, calculateVPMana, canRevokeFromAuthority, checkFavoriteQueryOptions, checkUsernameWalletsPendingQueryOptions, decodeObj, dedupeAndSortKeyAuths, deleteDraft, deleteImage, deleteSchedule, downVotingPower, encodeObj, extractAccountProfile, formatError, formattedNumber, getAccountFullQueryOptions, getAccountNotificationsInfiniteQueryOptions, getAccountPendingRecoveryQueryOptions, getAccountPosts, getAccountPostsInfiniteQueryOptions, getAccountPostsQueryOptions, getAccountRcQueryOptions, getAccountRecoveriesQueryOptions, getAccountReputationsQueryOptions, getAccountSubscriptionsQueryOptions, getAccountVoteHistoryInfiniteQueryOptions, getAccountWalletAssetInfoQueryOptions, getAccountsQueryOptions, getAiAssistPriceQueryOptions, getAiGeneratePriceQueryOptions, getAllHiveEngineTokensQueryOptions, getAnnouncementsQueryOptions, getBadActorsQueryOptions, getBookmarksInfiniteQueryOptions, getBookmarksQueryOptions, getBoostPlusAccountPricesQueryOptions, getBoostPlusPricesQueryOptions, getBotsQueryOptions, getBoundFetch, getChainPropertiesQueryOptions, getCollateralizedConversionRequestsQueryOptions, getCommentHistoryQueryOptions, getCommunities, getCommunitiesQueryOptions, getCommunity, getCommunityContextQueryOptions, getCommunityPermissions, getCommunityQueryOptions, getCommunitySubscribersQueryOptions, getCommunityType, getContentQueryOptions, getContentRepliesQueryOptions, getControversialRisingInfiniteQueryOptions, getConversionRequestsQueryOptions, getCurrencyRate, getCurrencyRates, getCurrencyTokenRate, getCurrentMedianHistoryPriceQueryOptions, getCustomJsonAuthority, getDeletedEntryQueryOptions, getDiscoverCurationQueryOptions, getDiscoverLeaderboardQueryOptions, getDiscussion, getDiscussionQueryOptions, getDiscussionsQueryOptions, getDraftsInfiniteQueryOptions, getDraftsQueryOptions, getDynamicPropsQueryOptions, getEntryActiveVotesQueryOptions, getFavoritesInfiniteQueryOptions, getFavoritesQueryOptions, getFeedHistoryQueryOptions, getFollowCountQueryOptions, getFollowersQueryOptions, getFollowingQueryOptions, getFragmentsInfiniteQueryOptions, getFragmentsQueryOptions, getFriendsInfiniteQueryOptions, getGalleryImagesQueryOptions, getGameStatusCheckQueryOptions, getHbdAssetGeneralInfoQueryOptions, getHbdAssetTransactionsQueryOptions, getHiveAssetGeneralInfoQueryOptions, getHiveAssetMetricQueryOptions, getHiveAssetTransactionsQueryOptions, getHiveAssetWithdrawalRoutesQueryOptions, getHiveEngineBalancesWithUsdQueryOptions, getHiveEngineMetrics, getHiveEngineOpenOrders, getHiveEngineOrderBook, getHiveEngineTokenGeneralInfoQueryOptions, getHiveEngineTokenMetrics, getHiveEngineTokenTransactions, getHiveEngineTokenTransactionsQueryOptions, getHiveEngineTokensBalances, getHiveEngineTokensBalancesQueryOptions, getHiveEngineTokensMarket, getHiveEngineTokensMarketQueryOptions, getHiveEngineTokensMetadata, getHiveEngineTokensMetadataQueryOptions, getHiveEngineTokensMetricsQueryOptions, getHiveEngineTradeHistory, getHiveEngineUnclaimedRewards, getHiveEngineUnclaimedRewardsQueryOptions, getHiveHbdStatsQueryOptions, getHivePoshLinksQueryOptions, getHivePowerAssetGeneralInfoQueryOptions, getHivePowerAssetTransactionsQueryOptions, getHivePowerDelegatesInfiniteQueryOptions, getHivePowerDelegatingsQueryOptions, getHivePrice, getImagesInfiniteQueryOptions, getImagesQueryOptions, getIncomingRcQueryOptions, getLarynxAssetGeneralInfoQueryOptions, getLarynxPowerAssetGeneralInfoQueryOptions, getMarketData, getMarketDataQueryOptions, getMarketHistoryQueryOptions, getMarketStatisticsQueryOptions, getMutedUsersQueryOptions, getNormalizePostQueryOptions, getNotificationSetting, getNotifications, getNotificationsInfiniteQueryOptions, getNotificationsSettingsQueryOptions, getNotificationsUnreadCountQueryOptions, getOpenOrdersQueryOptions, getOperationAuthority, getOrderBookQueryOptions, getOutgoingRcDelegationsInfiniteQueryOptions, getPageStatsQueryOptions, getPointsAssetGeneralInfoQueryOptions, getPointsAssetTransactionsQueryOptions, getPointsQueryOptions, getPortfolioQueryOptions, getPost, getPostHeader, getPostHeaderQueryOptions, getPostQueryOptions, getPostTipsQueryOptions, getPostsRanked, getPostsRankedInfiniteQueryOptions, getPostsRankedQueryOptions, getProfiles, getProfilesQueryOptions, getPromotePriceQueryOptions, getPromotedPost, getPromotedPostsQuery, getProposalAuthority, getProposalQueryOptions, getProposalVotesInfiniteQueryOptions, getProposalsQueryOptions, getQueryClient, getRcStatsQueryOptions, getRebloggedByQueryOptions, getReblogsQueryOptions, getReceivedVestingSharesQueryOptions, getRecurrentTransfersQueryOptions, getReferralsInfiniteQueryOptions, getReferralsStatsQueryOptions, getRelationshipBetweenAccounts, getRelationshipBetweenAccountsQueryOptions, getRequiredAuthority, getRewardFundQueryOptions, getRewardedCommunitiesQueryOptions, getSavingsWithdrawFromQueryOptions, getSchedulesInfiniteQueryOptions, getSchedulesQueryOptions, getSearchAccountQueryOptions, getSearchAccountsByUsernameQueryOptions, getSearchApiInfiniteQueryOptions, getSearchFriendsQueryOptions, getSearchPathQueryOptions, getSearchTopicsQueryOptions, getSimilarEntriesQueryOptions, getSpkAssetGeneralInfoQueryOptions, getSpkMarkets, getSpkMarketsQueryOptions, getSpkWallet, getSpkWalletQueryOptions, getStatsQueryOptions, getSubscribers, getSubscriptions, getTradeHistoryQueryOptions, getTransactionsInfiniteQueryOptions, getTrendingTagsQueryOptions, getTrendingTagsWithStatsQueryOptions, getUserPostVoteQueryOptions, getUserProposalVotesQueryOptions, getVestingDelegationExpirationsQueryOptions, getVestingDelegationsQueryOptions, getVisibleFirstLevelThreadItems, getWavesByAccountQueryOptions, getWavesByHostQueryOptions, getWavesByTagQueryOptions, getWavesFollowingQueryOptions, getWavesTrendingAuthorsQueryOptions, getWavesTrendingTagsQueryOptions, getWithdrawRoutesQueryOptions, getWitnessesInfiniteQueryOptions, hsTokenRenew, isCommunity, isEmptyDate, isInfoError, isNetworkError, isResourceCreditsError, isWif, isWrappedResponse, lookupAccountsQueryOptions, makeQueryClient, mapThreadItemsToWaveEntries, markNotifications, moveSchedule, normalizePost, normalizeToWrappedResponse, normalizeWaveEntryFromApi, onboardEmail, parseAccounts, parseAsset, parseChainError, parseProfileMetadata, powerRechargeTime, rcPower, removeOptimisticDiscussionEntry, resolveHiveOperationFilters, resolvePost, restoreDiscussionSnapshots, restoreEntryInCache, rewardSpk, roleMap, saveNotificationSetting, search, searchPath, searchQueryOptions, sha256, shouldTriggerAuthFallback, signUp, sortDiscussions, subscribeEmail, toEntryArray, updateDraft, updateEntryInCache, uploadImage, uploadImageWithSignature, useAccountFavoriteAdd, useAccountFavoriteDelete, useAccountRelationsUpdate, useAccountRevokeKey, useAccountRevokePosting, useAccountUpdate, useAccountUpdateKeyAuths, useAccountUpdatePassword, useAccountUpdateRecovery, useAddDraft, useAddFragment, useAddImage, useAddSchedule, useAiAssist, useBookmarkAdd, useBookmarkDelete, useBoostPlus, useBroadcastMutation, useClaimAccount, useClaimEngineRewards, useClaimInterest, useClaimPoints, useClaimRewards, useComment, useConvert, useCreateAccount, useCrossPost, useDelegateEngineToken, useDelegateRc, useDelegateVestingShares, useDeleteComment, useDeleteDraft, useDeleteImage, useDeleteSchedule, useEditFragment, useEngineMarketOrder, useFollow, useGameClaim, useGenerateImage, useGrantPostingPermission, useLimitOrderCancel, useLimitOrderCreate, useLockLarynx, useMarkNotificationsRead, useMoveSchedule, useMutePost, usePinPost, usePowerLarynx, usePromote, useProposalCreate, useProposalVote, useReblog, useRecordActivity, useRegisterCommunityRewards, useRemoveFragment, useSetCommunityRole, useSetLastRead, useSetWithdrawVestingRoute, useSignOperationByHivesigner, useSignOperationByKey, useSignOperationByKeychain, useStakeEngineToken, useSubscribeCommunity, useTransfer, useTransferEngineToken, useTransferFromSavings, useTransferLarynx, useTransferPoint, useTransferSpk, useTransferToSavings, useTransferToVesting, useUndelegateEngineToken, useUnfollow, useUnstakeEngineToken, useUnsubscribeCommunity, useUpdateCommunity, useUpdateDraft, useUpdateReply, useUploadImage, useVote, useWalletOperation, useWithdrawVesting, useWitnessProxy, useWitnessVote, usrActivity, validatePostCreating, verifyPostOnAlternateNode, vestsToHp, votingPower, votingValue, withTimeoutSignal };
|
|
8218
|
+
export { ACCOUNT_OPERATION_GROUPS, ALL_ACCOUNT_OPERATIONS, ALL_NOTIFY_TYPES, type AccountBookmark, type AccountFavorite, type AccountFollowStats, type AccountKeys, type AccountNotification, type AccountProfile, type AccountRelationship, type AccountReputation, type AiAssistParams, type AiAssistPrice, type AiAssistResponse, type AiGenerationPrice, type AiGenerationRequest, type AiGenerationResponse, type AiImagePowerTier, type AiImagePriceResponse, type Announcement, type ApiBookmarkNotification, type ApiDelegationsNotification, type ApiFavoriteNotification, type ApiFollowNotification, type ApiInactiveNotification, type ApiMentionNotification, type ApiNotification, type ApiNotificationSetting, type ApiReblogNotification, type ApiReferralNotification, type ApiReplyNotification, type ApiResponse, type ApiSpinNotification, type ApiTransferNotification, type ApiVoteNotification, type ApiWeeklyEarningsNotification, type Asset, AssetOperation, type AuthContext, type AuthContextV2, type AuthMethod, type AuthorReward, Authority, type AuthorityLevel, type AuthorityType, type Beneficiary, type BlogEntry, type BoostPlusAccountPrice, type BoostPlusPayload, type BroadcastMode, BroadcastResult, type BuildProfileMetadataArgs, BuySellTransactionType, CONFIG, type CancelTransferFromSavings, type CantAfford, type CheckUsernameWalletsPendingResponse, type ClaimAccountPayload, type ClaimEngineRewardsPayload, type ClaimInterestPayload, type ClaimRewardBalance, type ClaimRewardsPayload, type CollateralizedConversionRequest, type CollateralizedConvert, type CommentBenefactor, type CommentPayload, type CommentPayoutUpdate, type CommentReward, type Communities, type Community, type CommunityProps, type CommunityRewardsRegisterPayload, type CommunityRole, type CommunityTeam, type CommunityType, ConfigManager, type ConversionRequest, type ConvertPayload, type CreateAccountPayload, type CrossPostPayload, type CurationDuration, type CurationItem, type CurationReward, type CurrencyRates, type DelegateEngineTokenPayload, type DelegateRcPayload, type DelegateVestingShares, type DelegateVestingSharesPayload, type DelegatedVestingShare, type DeleteCommentPayload, type DeletedEntry, type Draft, type DraftMetadata, type DraftsWrappedResponse, type DynamicProps$1 as DynamicProps, index as EcencyAnalytics, EcencyQueriesManager, type EffectiveCommentVote, type EngineMarketOrderPayload, EntriesCacheManagement, type Entry$1 as Entry, type EntryBeneficiaryRoute, type EntryHeader, type EntryStat, type EntryVote, ErrorType, type FeedHistoryItem, type FillCollateralizedConvertRequest, type FillConvertRequest, type FillOrder, type FillRecurrentTransfers, type FillVestingWithdraw, type Follow, type FollowPayload, type Fragment, type FriendSearchResult, type FriendsPageParam, type FriendsRow, type FullAccount, type GameClaim, type GeneralAssetInfo, type GeneralAssetTransaction, type GenerateImageParams, type GetGameStatus, type GetRecoveriesEmailResponse, type GrantPostingPermissionPayload, HIVE_ACCOUNT_OPERATION_GROUPS, HIVE_OPERATION_LIST, HIVE_OPERATION_NAME_BY_ID, HIVE_OPERATION_ORDERS, type HiveBasedAssetSignType, type HiveEngineMarketResponse, type HiveEngineMetric, type HiveEngineOpenOrder, type HiveEngineOrderBookEntry, HiveEngineToken, type HiveEngineTokenBalance, type HiveEngineTokenInfo, type HiveEngineTokenMetadataResponse, type HiveEngineTokenStatus, type HiveEngineTransaction, type HiveHbdStats, type HiveMarketMetric, type HiveOperationFilter, type HiveOperationFilterKey, type HiveOperationFilterValue, type HiveOperationGroup, type HiveOperationName, HiveSignerIntegration, type HiveTransaction, type HsTokenRenewResponse, INTERNAL_API_TIMEOUT_MS, type IncomingRcDelegation, type IncomingRcResponse, type Interest, type JsonMetadata, type JsonPollMetadata, type Keys, type LeaderBoardDuration, type LeaderBoardItem, type LimitOrderCancel, type LimitOrderCancelPayload, type LimitOrderCreate, type LimitOrderCreatePayload, type LockLarynxPayload, type MarketCandlestickDataItem, type MarketData, type MarketStatistics, type MedianHistoryPrice, type MutePostPayload, NaiMap, NotificationFilter, NotificationViewType, type Notifications, NotifyTypes, OPERATION_AUTHORITY_MAP, type OpenOrdersData, Operation, type OperationGroup, OperationName, OrderIdPrefix, type OrdersData, type OrdersDataItem, type PageStatsResponse, type PaginationMeta, type ParsedChainError, type Payer, type PinPostPayload, type PlatformAdapter, type PointTransaction, PointTransactionType, type Points, type PointsResponse, type PortfolioResponse, type PortfolioWalletItem, type PostTip, type PostTipsResponse, type PowerLarynxPayload, PrivateKey, type ProducerReward, type Profile, type ProfileTokens, type PromotePayload, type PromotePrice, type Proposal, type ProposalCreatePayload, type ProposalPay, type ProposalVote, type ProposalVotePayload, type ProposalVoteRow, PublicKey, QueryKeys, type RCAccount, ROLES, type RcDirectDelegation, type RcDirectDelegationsResponse, type RcStats, type Reblog, type ReblogPayload, type ReceivedVestingShare, type RecordActivityOptions, type Recoveries, type RecurrentTransfer, type RecurrentTransfers, type ReferralItem, type ReferralItems, type ReferralStat, type ReturnVestingDelegation, type RewardFund, type RewardedCommunity, type SMTAsset, type SavingsWithdrawRequest, type Schedule, type SearchResponse, type SearchResult, type SetCommunityRolePayload, type SetLastReadPayload, type SetWithdrawRoute, type SetWithdrawVestingRoutePayload, SortOrder, type SpkApiWallet, type SpkMarkets, type StakeEngineTokenPayload, type StatsResponse, type SubscribeCommunityPayload, type Subscription, Symbol, type ThreadItemEntry, ThreeSpeakIntegration, type ThreeSpeakVideo, type Token, type TokenMetadata, type Transaction, type TransactionConfirmation, type Transfer, type TransferEngineTokenPayload, type TransferFromSavingsPayload, type TransferLarynxPayload, type TransferPayload, type TransferPointPayload, type TransferSpkPayload, type TransferToSavings, type TransferToSavingsPayload, type TransferToVesting, type TransferToVestingPayload, type TransformedSpkMarkets, type TrendingTag, type UndelegateEngineTokenPayload, type UnfollowPayload, type UnstakeEngineTokenPayload, type UnsubscribeCommunityPayload, type UpdateCommunityPayload, type UpdateProposalVotes, type UpdateReplyPayload, type User, type UserImage, type ValidatePostCreatingOptions, type VestingDelegationExpiration, type Vote, type VoteHistoryPage, type VoteHistoryPageParam, type VotePayload, type VoteProxy, type WalletMetadataCandidate, type WalletOperationPayload, type WaveEntry, type WaveTrendingAuthor, type WaveTrendingTag, type WithdrawRoute, type WithdrawVesting, type WithdrawVestingPayload, type Witness, type WitnessProxyPayload, type WitnessVotePayload, type WrappedResponse, type WsBookmarkNotification, type WsDelegationsNotification, type WsFavoriteNotification, type WsFollowNotification, type WsInactiveNotification, type WsMentionNotification, type WsNotification, type WsReblogNotification, type WsReferralNotification, type WsReplyNotification, type WsSpinNotification, type WsTransferNotification, type WsVoteNotification, addDraft, addImage, addOptimisticDiscussionEntry, addSchedule, bridgeApiCall, broadcastJson, broadcastOperations, broadcastOperationsAsync, buildAccountCreateOp, buildAccountUpdate2Op, buildAccountUpdateOp, buildActiveCustomJsonOp, buildBoostOp, buildBoostOpWithPoints, buildBoostPlusOp, buildCancelTransferFromSavingsOp, buildChangeRecoveryAccountOp, buildClaimAccountOp, buildClaimInterestOps, buildClaimRewardBalanceOp, buildCollateralizedConvertOp, buildCommentOp, buildCommentOptionsOp, buildCommunityRegistrationOp, buildConvertOp, buildCreateClaimedAccountOp, buildDelegateRcOp, buildDelegateVestingSharesOp, buildDeleteCommentOp, buildEngineClaimOp, buildEngineOp, buildFlagPostOp, buildFollowOp, buildGrantPostingPermissionOp, buildIgnoreOp, buildLimitOrderCancelOp, buildLimitOrderCreateOp, buildLimitOrderCreateOpWithType, buildMultiPointTransferOps, buildMultiTransferOps, buildMutePostOp, buildMuteUserOp, buildPinPostOp, buildPointTransferOp, buildPostingCustomJsonOp, buildProfileMetadata, buildPromoteOp, buildProposalCreateOp, buildProposalVoteOp, buildReblogOp, buildRecoverAccountOp, buildRecurrentTransferOp, buildRemoveProposalOp, buildRequestAccountRecoveryOp, buildRevokeKeysOp, buildRevokePostingPermissionOp, buildSetLastReadOps, buildSetRoleOp, buildSetWithdrawVestingRouteOp, buildSpkCustomJsonOp, buildSubscribeOp, buildTransferFromSavingsOp, buildTransferOp, buildTransferToSavingsOp, buildTransferToVestingOp, buildUnfollowOp, buildUnignoreOp, buildUnsubscribeOp, buildUpdateCommunityOp, buildUpdateProposalOp, buildVoteOp, buildWithdrawVestingOp, buildWitnessProxyOp, buildWitnessVoteOp, calculateRCMana, calculateVPMana, canRevokeFromAuthority, checkFavoriteQueryOptions, checkUsernameWalletsPendingQueryOptions, decodeObj, dedupeAndSortKeyAuths, deleteDraft, deleteImage, deleteSchedule, downVotingPower, encodeObj, extractAccountProfile, formatError, formattedNumber, getAccountFullQueryOptions, getAccountNotificationsInfiniteQueryOptions, getAccountPendingRecoveryQueryOptions, getAccountPosts, getAccountPostsInfiniteQueryOptions, getAccountPostsQueryOptions, getAccountRcQueryOptions, getAccountRecoveriesQueryOptions, getAccountReputationsQueryOptions, getAccountSubscriptionsQueryOptions, getAccountVoteHistoryInfiniteQueryOptions, getAccountWalletAssetInfoQueryOptions, getAccountsQueryOptions, getAiAssistPriceQueryOptions, getAiGeneratePriceQueryOptions, getAllHiveEngineTokensQueryOptions, getAnnouncementsQueryOptions, getBadActorsQueryOptions, getBookmarksInfiniteQueryOptions, getBookmarksQueryOptions, getBoostPlusAccountPricesQueryOptions, getBoostPlusPricesQueryOptions, getBotsQueryOptions, getBoundFetch, getChainPropertiesQueryOptions, getCollateralizedConversionRequestsQueryOptions, getCommentHistoryQueryOptions, getCommunities, getCommunitiesQueryOptions, getCommunity, getCommunityContextQueryOptions, getCommunityPermissions, getCommunityQueryOptions, getCommunitySubscribersQueryOptions, getCommunityType, getContentQueryOptions, getContentRepliesQueryOptions, getControversialRisingInfiniteQueryOptions, getConversionRequestsQueryOptions, getCurrencyRate, getCurrencyRates, getCurrencyTokenRate, getCurrentMedianHistoryPriceQueryOptions, getCustomJsonAuthority, getDeletedEntryQueryOptions, getDiscoverCurationQueryOptions, getDiscoverLeaderboardQueryOptions, getDiscussion, getDiscussionQueryOptions, getDiscussionsQueryOptions, getDraftsInfiniteQueryOptions, getDraftsQueryOptions, getDynamicPropsQueryOptions, getEntryActiveVotesQueryOptions, getFavoritesInfiniteQueryOptions, getFavoritesQueryOptions, getFeedHistoryQueryOptions, getFollowCountQueryOptions, getFollowersQueryOptions, getFollowingQueryOptions, getFragmentsInfiniteQueryOptions, getFragmentsQueryOptions, getFriendsInfiniteQueryOptions, getGalleryImagesQueryOptions, getGameStatusCheckQueryOptions, getHbdAssetGeneralInfoQueryOptions, getHbdAssetTransactionsQueryOptions, getHiveAssetGeneralInfoQueryOptions, getHiveAssetMetricQueryOptions, getHiveAssetTransactionsQueryOptions, getHiveAssetWithdrawalRoutesQueryOptions, getHiveEngineBalancesWithUsdQueryOptions, getHiveEngineMetrics, getHiveEngineOpenOrders, getHiveEngineOrderBook, getHiveEngineTokenGeneralInfoQueryOptions, getHiveEngineTokenMetrics, getHiveEngineTokenTransactions, getHiveEngineTokenTransactionsQueryOptions, getHiveEngineTokensBalances, getHiveEngineTokensBalancesQueryOptions, getHiveEngineTokensMarket, getHiveEngineTokensMarketQueryOptions, getHiveEngineTokensMetadata, getHiveEngineTokensMetadataQueryOptions, getHiveEngineTokensMetricsQueryOptions, getHiveEngineTradeHistory, getHiveEngineUnclaimedRewards, getHiveEngineUnclaimedRewardsQueryOptions, getHiveHbdStatsQueryOptions, getHivePoshLinksQueryOptions, getHivePowerAssetGeneralInfoQueryOptions, getHivePowerAssetTransactionsQueryOptions, getHivePowerDelegatesInfiniteQueryOptions, getHivePowerDelegatingsQueryOptions, getHivePrice, getImagesInfiniteQueryOptions, getImagesQueryOptions, getIncomingRcQueryOptions, getLarynxAssetGeneralInfoQueryOptions, getLarynxPowerAssetGeneralInfoQueryOptions, getMarketData, getMarketDataQueryOptions, getMarketHistoryQueryOptions, getMarketStatisticsQueryOptions, getMutedUsersQueryOptions, getNormalizePostQueryOptions, getNotificationSetting, getNotifications, getNotificationsInfiniteQueryOptions, getNotificationsSettingsQueryOptions, getNotificationsUnreadCountQueryOptions, getOpenOrdersQueryOptions, getOperationAuthority, getOrderBookQueryOptions, getOutgoingRcDelegationsInfiniteQueryOptions, getPageStatsQueryOptions, getPointsAssetGeneralInfoQueryOptions, getPointsAssetTransactionsQueryOptions, getPointsQueryOptions, getPortfolioQueryOptions, getPost, getPostHeader, getPostHeaderQueryOptions, getPostQueryOptions, getPostTipsQueryOptions, getPostsRanked, getPostsRankedInfiniteQueryOptions, getPostsRankedQueryOptions, getProfiles, getProfilesQueryOptions, getPromotePriceQueryOptions, getPromotedPost, getPromotedPostsQuery, getProposalAuthority, getProposalQueryOptions, getProposalVotesInfiniteQueryOptions, getProposalsQueryOptions, getQueryClient, getRcStatsQueryOptions, getRebloggedByQueryOptions, getReblogsQueryOptions, getReceivedVestingSharesQueryOptions, getRecurrentTransfersQueryOptions, getReferralsInfiniteQueryOptions, getReferralsStatsQueryOptions, getRelationshipBetweenAccounts, getRelationshipBetweenAccountsQueryOptions, getRequiredAuthority, getRewardFundQueryOptions, getRewardedCommunitiesQueryOptions, getSavingsWithdrawFromQueryOptions, getSchedulesInfiniteQueryOptions, getSchedulesQueryOptions, getSearchAccountQueryOptions, getSearchAccountsByUsernameQueryOptions, getSearchApiInfiniteQueryOptions, getSearchFriendsQueryOptions, getSearchPathQueryOptions, getSearchTopicsQueryOptions, getSimilarEntriesQueryOptions, getSpkAssetGeneralInfoQueryOptions, getSpkMarkets, getSpkMarketsQueryOptions, getSpkWallet, getSpkWalletQueryOptions, getStatsQueryOptions, getSubscribers, getSubscriptions, getTradeHistoryQueryOptions, getTransactionsInfiniteQueryOptions, getTrendingTagsQueryOptions, getTrendingTagsWithStatsQueryOptions, getUserPostVoteQueryOptions, getUserProposalVotesQueryOptions, getVestingDelegationExpirationsQueryOptions, getVestingDelegationsQueryOptions, getVisibleFirstLevelThreadItems, getWavesByAccountQueryOptions, getWavesByHostQueryOptions, getWavesByTagQueryOptions, getWavesFollowingQueryOptions, getWavesTrendingAuthorsQueryOptions, getWavesTrendingTagsQueryOptions, getWithdrawRoutesQueryOptions, getWitnessesInfiniteQueryOptions, hsTokenRenew, isCommunity, isEmptyDate, isInfoError, isNetworkError, isResourceCreditsError, isWif, isWrappedResponse, lookupAccountsQueryOptions, makeQueryClient, mapThreadItemsToWaveEntries, markNotifications, moveSchedule, normalizePost, normalizeToWrappedResponse, normalizeWaveEntryFromApi, onboardEmail, parseAccounts, parseAsset, parseChainError, parseProfileMetadata, powerRechargeTime, rcPower, removeOptimisticDiscussionEntry, resolveHiveOperationFilters, resolvePost, restoreDiscussionSnapshots, restoreEntryInCache, rewardSpk, roleMap, saveNotificationSetting, search, searchPath, searchQueryOptions, sha256, shouldTriggerAuthFallback, signUp, sortDiscussions, subscribeEmail, toEntryArray, updateDraft, updateEntryInCache, uploadImage, uploadImageWithSignature, useAccountFavoriteAdd, useAccountFavoriteDelete, useAccountRelationsUpdate, useAccountRevokeKey, useAccountRevokePosting, useAccountUpdate, useAccountUpdateKeyAuths, useAccountUpdatePassword, useAccountUpdateRecovery, useAddDraft, useAddFragment, useAddImage, useAddSchedule, useAiAssist, useBookmarkAdd, useBookmarkDelete, useBoostPlus, useBroadcastMutation, useClaimAccount, useClaimEngineRewards, useClaimInterest, useClaimPoints, useClaimRewards, useComment, useConvert, useCreateAccount, useCrossPost, useDelegateEngineToken, useDelegateRc, useDelegateVestingShares, useDeleteComment, useDeleteDraft, useDeleteImage, useDeleteSchedule, useEditFragment, useEngineMarketOrder, useFollow, useGameClaim, useGenerateImage, useGrantPostingPermission, useLimitOrderCancel, useLimitOrderCreate, useLockLarynx, useMarkNotificationsRead, useMoveSchedule, useMutePost, usePinPost, usePowerLarynx, usePromote, useProposalCreate, useProposalVote, useReblog, useRecordActivity, useRegisterCommunityRewards, useRemoveFragment, useSetCommunityRole, useSetLastRead, useSetWithdrawVestingRoute, useSignOperationByHivesigner, useSignOperationByKey, useSignOperationByKeychain, useStakeEngineToken, useSubscribeCommunity, useTransfer, useTransferEngineToken, useTransferFromSavings, useTransferLarynx, useTransferPoint, useTransferSpk, useTransferToSavings, useTransferToVesting, useUndelegateEngineToken, useUnfollow, useUnstakeEngineToken, useUnsubscribeCommunity, useUpdateCommunity, useUpdateDraft, useUpdateReply, useUploadImage, useVote, useWalletOperation, useWithdrawVesting, useWitnessProxy, useWitnessVote, usrActivity, validatePostCreating, verifyPostOnAlternateNode, vestsToHp, votingPower, votingValue, withTimeoutSignal };
|