@ecency/sdk 1.0.16 → 1.0.17
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/ecency-sdk.es.d.ts +6 -2
- package/dist/ecency-sdk.es.js +2 -2
- package/package.json +1 -1
package/dist/ecency-sdk.es.d.ts
CHANGED
@@ -115,14 +115,18 @@ wallets: Map<EcencyWalletCurrency, EcencyCreateWalletInformation>;
|
|
115
115
|
|
116
116
|
export declare function useSeedPhrase(username: string): UseQueryResult<string, Error>;
|
117
117
|
|
118
|
-
export declare function useSignOperationByHivesigner(callbackUri?: string): void
|
118
|
+
export declare function useSignOperationByHivesigner(callbackUri?: string): UseMutationResult<string | void, Error, {
|
119
|
+
operation: Operation;
|
120
|
+
}, unknown>;
|
119
121
|
|
120
122
|
export declare function useSignOperationByKey(username: string | undefined): UseMutationResult<TransactionConfirmation, Error, {
|
121
123
|
operation: Operation;
|
122
124
|
keyOrSeed: string;
|
123
125
|
}, unknown>;
|
124
126
|
|
125
|
-
export declare function useSignOperationByKeychain(username: string | undefined, keyType?: Keychain.KeychainAuthorityTypes):
|
127
|
+
export declare function useSignOperationByKeychain(username: string | undefined, keyType?: Keychain.KeychainAuthorityTypes): UseMutationResult<any, Error, {
|
128
|
+
operation: Operation;
|
129
|
+
}, unknown>;
|
126
130
|
|
127
131
|
export declare function useWalletCreate(username: string, currency: EcencyWalletCurrency): {
|
128
132
|
createWallet: UseMutationResult<EcencyCreateWalletInformation, Error, void, unknown>;
|
package/dist/ecency-sdk.es.js
CHANGED
@@ -490,7 +490,7 @@ const Y = (t, e, n, a = null) => new Promise((s, r) => {
|
|
490
490
|
);
|
491
491
|
});
|
492
492
|
function At(t, e = "Active") {
|
493
|
-
l({
|
493
|
+
return l({
|
494
494
|
mutationKey: ["operations", "sign-keychain", t],
|
495
495
|
mutationFn: ({ operation: n }) => {
|
496
496
|
if (!t)
|
@@ -502,7 +502,7 @@ function At(t, e = "Active") {
|
|
502
502
|
});
|
503
503
|
}
|
504
504
|
function Kt(t = "/") {
|
505
|
-
l({
|
505
|
+
return l({
|
506
506
|
mutationKey: ["operations", "sign-hivesigner", t],
|
507
507
|
mutationFn: async ({ operation: e }) => g.sendOperation(e, { callback: t }, () => {
|
508
508
|
})
|