@ecency/wallets 1.4.2 → 1.4.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/{index.d.cts → browser/index.d.ts} +26 -6
- package/dist/browser/index.js +3347 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/index.browser.mjs +3338 -0
- package/dist/index.browser.mjs.map +1 -0
- package/dist/index.cjs +71 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +22 -6
- package/dist/index.mjs +70 -15
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +3462 -0
- package/dist/node/index.cjs.map +1 -0
- package/dist/node/index.mjs +3347 -0
- package/dist/node/index.mjs.map +1 -0
- package/package.json +49 -32
|
@@ -72,22 +72,34 @@ declare function useWalletCreate(username: string, currency: EcencyWalletCurrenc
|
|
|
72
72
|
importWallet: () => void;
|
|
73
73
|
};
|
|
74
74
|
|
|
75
|
-
interface Payload$
|
|
75
|
+
interface Payload$8 {
|
|
76
76
|
currency: string;
|
|
77
77
|
address: string;
|
|
78
78
|
}
|
|
79
|
-
declare function useCreateAccountWithWallets(username: string): _tanstack_react_query.UseMutationResult<Response, Error, Payload$
|
|
79
|
+
declare function useCreateAccountWithWallets(username: string): _tanstack_react_query.UseMutationResult<Response, Error, Payload$8, unknown>;
|
|
80
80
|
|
|
81
|
-
interface Payload$
|
|
81
|
+
interface Payload$7 {
|
|
82
82
|
address: string;
|
|
83
83
|
currency: EcencyWalletCurrency;
|
|
84
84
|
}
|
|
85
|
-
declare function useCheckWalletExistence(): _tanstack_react_query.UseMutationResult<boolean, Error, Payload$
|
|
85
|
+
declare function useCheckWalletExistence(): _tanstack_react_query.UseMutationResult<boolean, Error, Payload$7, unknown>;
|
|
86
|
+
|
|
87
|
+
interface Payload$6 {
|
|
88
|
+
tokens: Record<string, string>;
|
|
89
|
+
hiveKeys: {
|
|
90
|
+
ownerPublicKey: string;
|
|
91
|
+
activePublicKey: string;
|
|
92
|
+
postingPublicKey: string;
|
|
93
|
+
memoPublicKey: string;
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
declare function useUpdateAccountWithWallets(username: string): _tanstack_react_query.UseMutationResult<Response, Error, Payload$6, unknown>;
|
|
86
97
|
|
|
87
98
|
declare const index_useCheckWalletExistence: typeof useCheckWalletExistence;
|
|
88
99
|
declare const index_useCreateAccountWithWallets: typeof useCreateAccountWithWallets;
|
|
100
|
+
declare const index_useUpdateAccountWithWallets: typeof useUpdateAccountWithWallets;
|
|
89
101
|
declare namespace index {
|
|
90
|
-
export { index_useCheckWalletExistence as useCheckWalletExistence, index_useCreateAccountWithWallets as useCreateAccountWithWallets };
|
|
102
|
+
export { index_useCheckWalletExistence as useCheckWalletExistence, index_useCreateAccountWithWallets as useCreateAccountWithWallets, index_useUpdateAccountWithWallets as useUpdateAccountWithWallets };
|
|
91
103
|
}
|
|
92
104
|
|
|
93
105
|
interface Payload$5 {
|
|
@@ -896,17 +908,20 @@ declare function getLarynxAssetGeneralInfoQueryOptions(username: string): _tanst
|
|
|
896
908
|
|
|
897
909
|
declare function getSpkAssetGeneralInfoQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
|
|
898
910
|
name: string;
|
|
911
|
+
layer: string;
|
|
899
912
|
title: string;
|
|
900
913
|
price: number;
|
|
901
914
|
accountBalance: number;
|
|
902
915
|
}, Error, {
|
|
903
916
|
name: string;
|
|
917
|
+
layer: string;
|
|
904
918
|
title: string;
|
|
905
919
|
price: number;
|
|
906
920
|
accountBalance: number;
|
|
907
921
|
}, string[]>, "queryFn"> & {
|
|
908
922
|
queryFn?: _tanstack_react_query.QueryFunction<{
|
|
909
923
|
name: string;
|
|
924
|
+
layer: string;
|
|
910
925
|
title: string;
|
|
911
926
|
price: number;
|
|
912
927
|
accountBalance: number;
|
|
@@ -915,6 +930,7 @@ declare function getSpkAssetGeneralInfoQueryOptions(username: string): _tanstack
|
|
|
915
930
|
queryKey: string[] & {
|
|
916
931
|
[dataTagSymbol]: {
|
|
917
932
|
name: string;
|
|
933
|
+
layer: string;
|
|
918
934
|
title: string;
|
|
919
935
|
price: number;
|
|
920
936
|
accountBalance: number;
|
|
@@ -1467,6 +1483,8 @@ declare function getTokenOperationsQueryOptions(token: string, username: string,
|
|
|
1467
1483
|
};
|
|
1468
1484
|
};
|
|
1469
1485
|
|
|
1486
|
+
declare function useWalletsCacheQuery(username?: string): _tanstack_react_query.DefinedUseQueryResult<Map<EcencyWalletCurrency, EcencyTokenMetadata>, Error>;
|
|
1487
|
+
|
|
1470
1488
|
declare function delay(ms: number): Promise<unknown>;
|
|
1471
1489
|
|
|
1472
1490
|
declare function getWallet(currency: EcencyWalletCurrency): BaseWallet | undefined;
|
|
@@ -1624,4 +1642,6 @@ declare function buildAptTx(data: AptosParam): AptosParam;
|
|
|
1624
1642
|
*/
|
|
1625
1643
|
declare function buildExternalTx(currency: EcencyWalletCurrency, tx: ExternalTxParams): string | EthTxParams | SolSignParam | TrxSignParam | TxData | AptosParam;
|
|
1626
1644
|
|
|
1627
|
-
|
|
1645
|
+
declare function getBoundFetch(): typeof fetch;
|
|
1646
|
+
|
|
1647
|
+
export { type AccountPointsResponse, type Asset, AssetOperation, type DelegateEnginePayload, type EcencyHiveKeys, type EcencyTokenMetadata, EcencyWalletBasicTokens, EcencyWalletCurrency, index as EcencyWalletsPrivateApi, type ExternalTxParams, type ExternalWalletBalance, type GeneralAssetInfo, type GeneralAssetTransaction, type HiveBasedAssetSignType, type HiveEngineMarketResponse, type HiveEngineMetric, type HiveEngineTokenBalance, type HiveEngineTokenMetadataResponse, type HiveEngineTransaction, type HiveKeyDerivation, type HiveRole, NaiMap, type PointTransaction, PointTransactionType, type Points, type PointsResponse, type SpkApiWallet, type SpkMarkets, type StakeEnginePayload, Symbol, type TransferEnginePayload, type TransferPayload, type TransformedSpkMarkets, type UndelegateEnginePayload, type UnstakeEnginePayload, buildAptTx, buildEthTx, buildExternalTx, buildPsbt, buildSolTx, buildTonTx, buildTronTx, decryptMemoWithAccounts, decryptMemoWithKeys, delay, delegateEngineToken, delegateHive, deriveHiveKey, deriveHiveKeys, deriveHiveMasterPasswordKey, deriveHiveMasterPasswordKeys, detectHiveKeyDerivation, encryptMemoWithAccounts, encryptMemoWithKeys, getAccountWalletAssetInfoQueryOptions, getAccountWalletListQueryOptions, getAllTokensListQueryOptions, getBoundFetch, getCoinGeckoPriceQueryOptions, getHbdAssetGeneralInfoQueryOptions, getHbdAssetTransactionsQueryOptions, getHiveAssetGeneralInfoQueryOptions, getHiveAssetMetricQueryOptions, getHiveAssetTransactionsQueryOptions, getHiveAssetWithdrawalRoutesQueryOptions, getHiveEngineTokenGeneralInfoQueryOptions, getHiveEngineTokenTransactionsQueryOptions, getHiveEngineTokensBalancesQueryOptions, getHiveEngineTokensMarketQueryOptions, getHiveEngineTokensMetadataQueryOptions, getHiveEngineTokensMetricsQueryOptions, getHivePowerAssetGeneralInfoQueryOptions, getHivePowerAssetTransactionsQueryOptions, getHivePowerDelegatesInfiniteQueryOptions, getHivePowerDelegatingsQueryOptions, getLarynxAssetGeneralInfoQueryOptions, getLarynxPowerAssetGeneralInfoQueryOptions, getPointsAssetGeneralInfoQueryOptions, getPointsAssetTransactionsQueryOptions, getPointsQueryOptions, getSpkAssetGeneralInfoQueryOptions, getSpkMarketsQueryOptions, getTokenOperationsQueryOptions, getWallet, isEmptyDate, lockLarynx, mnemonicToSeedBip39, parseAsset, powerDownHive, powerUpHive, powerUpLarynx, rewardSpk, signDigest, signExternalTx, signExternalTxAndBroadcast, signTx, signTxAndBroadcast, stakeEngineToken, transferEngineToken, transferHive, transferPoint, transferSpk, transferToSavingsHive, undelegateEngineToken, unstakeEngineToken, useClaimPoints, useClaimRewards, useGetExternalWalletBalanceQuery, useHiveKeysQuery, useImportWallet, useSaveWalletInformationToMetadata, useSeedPhrase, useWalletCreate, useWalletOperation, useWalletsCacheQuery, vestsToHp, withdrawVestingRouteHive };
|