@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.
@@ -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): void;
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>;
@@ -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
  })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ecency/sdk",
3
3
  "private": false,
4
- "version": "1.0.16",
4
+ "version": "1.0.17",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "main": "./dist/ecency-sdk.umd.js",