@tatumio/flow 2.0.1-alpha.406 → 2.0.1-alpha.408

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@tatumio/flow",
3
- "version": "2.0.1-alpha.406",
3
+ "version": "2.0.1-alpha.408",
4
4
  "license": "MIT",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
7
7
  "dependencies": {
8
- "@tatumio/api-client": "2.0.1-alpha.406",
8
+ "@tatumio/api-client": "2.0.1-alpha.408",
9
9
  "axios": "^0.26.0",
10
10
  "form-data": "^4.0.0",
11
- "@tatumio/shared-testing-common": "2.0.1-alpha.406",
11
+ "@tatumio/shared-testing-common": "2.0.1-alpha.408",
12
12
  "dedent-js": "^1.0.1",
13
- "@tatumio/shared-core": "2.0.1-alpha.406",
14
- "@tatumio/shared-abstract-sdk": "2.0.1-alpha.406",
13
+ "@tatumio/shared-core": "2.0.1-alpha.408",
14
+ "@tatumio/shared-abstract-sdk": "2.0.1-alpha.408",
15
15
  "bignumber.js": "^9.0.2",
16
16
  "lodash": "^4.17.21",
17
- "@tatumio/shared-blockchain-abstract": "2.0.1-alpha.406",
17
+ "@tatumio/shared-blockchain-abstract": "2.0.1-alpha.408",
18
18
  "@onflow/util-encode-key": "^1.0.3",
19
19
  "sha3": "^2.1.4",
20
20
  "@onflow/fcl": "^1.3.2",
@@ -6,12 +6,7 @@ export interface FlowSDKArguments extends SDKArguments {
6
6
  export declare const TatumFlowSDK: (args: FlowSDKArguments) => {
7
7
  api: typeof FlowService;
8
8
  kms: {
9
- sign(tx: import("@tatumio/api-client").PendingTransaction, fromPrivateKeys: string[]): Promise<{
10
- txId: string;
11
- address: string;
12
- } | {
13
- txId: string;
14
- }>;
9
+ sign(tx: import("@tatumio/api-client").PendingTransaction, fromPrivateKeys: string[]): Promise<import("@tatumio/api-client").TransactionHash | import("@tatumio/api-client").FlowAddressXpub>;
15
10
  getAllPending(signatures?: string | undefined): import("@tatumio/api-client").CancelablePromise<import("@tatumio/api-client").PendingTransaction[]>;
16
11
  get: typeof import("@tatumio/api-client").KeyManagementSystemService.getPendingTransactionToSign;
17
12
  complete: typeof import("@tatumio/api-client").KeyManagementSystemService.completePendingSignature;
@@ -35,8 +30,8 @@ export declare const TatumFlowSDK: (args: FlowSDKArguments) => {
35
30
  };
36
31
  send: {
37
32
  createSignedTransaction: (body: import("..").CreateAddressFromPubKey, proposer?: ((isPayer: boolean) => import("./flow.types").AccountSigner) | undefined, payer?: ((isPayer: boolean) => import("./flow.types").AccountSigner) | undefined) => Promise<import("@tatumio/api-client").SignatureId | {
38
- txId?: string | undefined;
39
- address?: string | undefined;
33
+ txId: string;
34
+ address: string;
40
35
  }>;
41
36
  publicKeySignedTransaction: (body: import("..").CreateAddressFromPubKey, proposer?: ((isPayer: boolean) => import("./flow.types").AccountSigner) | undefined, payer?: ((isPayer: boolean) => import("./flow.types").AccountSigner) | undefined) => Promise<import("@tatumio/api-client").TransactionHash | import("@tatumio/api-client").SignatureId>;
42
37
  };
@@ -20,8 +20,8 @@ export declare const flowAccountService: (provider: FlowProvider, apiCalls: Flow
20
20
  * @param payer function to obtain payer key from
21
21
  */
22
22
  createSignedTransaction: (body: CreateAddressFromPubKey, proposer?: ((isPayer: boolean) => AccountSigner) | undefined, payer?: ((isPayer: boolean) => AccountSigner) | undefined) => Promise<import("@tatumio/api-client").SignatureId | {
23
- txId?: string | undefined;
24
- address?: string | undefined;
23
+ txId: string;
24
+ address: string;
25
25
  }>;
26
26
  /**
27
27
  * Add public key to existing blockchain address with defined weight
@@ -1,12 +1,7 @@
1
1
  import { Blockchain } from '@tatumio/shared-core';
2
- import { PendingTransaction } from '@tatumio/api-client';
2
+ import { FlowAddressXpub, PendingTransaction, TransactionHash } from '@tatumio/api-client';
3
3
  import { FlowSDKArguments } from '../flow.sdk';
4
- declare type TransactionHashPromise = Promise<{
5
- txId: string;
6
- address: string;
7
- } | {
8
- txId: string;
9
- }>;
4
+ declare type TransactionHashPromise = Promise<FlowAddressXpub | TransactionHash>;
10
5
  export declare const flowKmsService: (args: FlowSDKArguments & {
11
6
  blockchain: Blockchain;
12
7
  }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"flow.kms.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/flow/src/lib/services/flow.kms.ts"],"names":[],"mappings":";;;;AAAA,sDAAiD;AACjD,uCAAyC;AACzC,oFAA2E;AAC3E,sDAA8C;AAE9C,uDAAkD;AAClD,mDAA8C;AAKvC,MAAM,cAAc,GAAG,CAAC,IAAmD,EAAE,EAAE;IACpF,uCACK,IAAA,kDAAqB,EAAC,IAAI,CAAC,KACxB,IAAI,CAAC,EAAsB,EAAE,eAAyB;;gBAC1D,MAAM,WAAW,mCAAQ,EAAE,KAAE,KAAK,EAAE,wBAAU,CAAC,IAAI,GAAE,CAAA;gBAErD,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAiE,IAAI,CAAC,KAAK,CAC7F,WAAW,CAAC,qBAAqB,CAClC,CAAA;gBACD,MAAM,QAAQ,GAAG,IAAA,4BAAY,oBAAM,IAAI,EAAG,CAAA;gBAC1C,MAAM,mBAAmB,GAAG,IAAA,gCAAc,EAAC,IAAI,CAAC,CAAA;gBAChD,MAAM,SAAS,GAAG,IAAA,uBAAa,EAAC,QAAQ,oBAAO,mBAAmB,EAAG,CAAA;gBACrE,QAAQ,IAAI,EAAE;oBACZ,KAAK,2BAAU,CAAC,cAAc;wBAC5B,OAAO,CAAC,MAAM,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,CAAC;4BAC3D,SAAS,EAAE,IAAI,CAAC,SAAS;4BACzB,OAAO,EAAE,IAAI,CAAC,OAAO;4BACrB,UAAU,EAAE,eAAe,CAAC,CAAC,CAAC;yBAC/B,CAAC,CAA2B,CAAA;oBAC/B,KAAK,2BAAU,CAAC,iBAAiB;wBAC/B,OAAO,CAAC,MAAM,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,CAAC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owProvider, apiCalls: FlowApiCa
31
31
  };
32
32
  send: {
33
33
  createSignedTransaction: (body: import("../utils/flow.utils").CreateAddressFromPubKey, proposer?: ((isPayer: boolean) => AccountSigner) | undefined, payer?: ((isPayer: boolean) => AccountSigner) | undefined) => Promise<import("@tatumio/api-client").SignatureId | {
34
- txId?: string | undefined;
35
- address?: string | undefined;
34
+ txId: string;
35
+ address: string;
36
36
  }>;
37
37
  publicKeySignedTransaction: (body: import("../utils/flow.utils").CreateAddressFromPubKey, proposer?: ((isPayer: boolean) => AccountSigner) | undefined, payer?: ((isPayer: boolean) => AccountSigner) | undefined) => Promise<import("@tatumio/api-client").TransactionHash | import("@tatumio/api-client").SignatureId>;
38
38
  };