@tatumio/flow 2.0.1-alpha.249 → 2.0.1-alpha.252
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/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tatumio/flow",
|
|
3
|
-
"version": "2.0.1-alpha.
|
|
3
|
+
"version": "2.0.1-alpha.252",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./src/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@tatumio/shared-testing-common": "2.0.1-alpha.
|
|
9
|
-
"@tatumio/api-client": "2.0.1-alpha.
|
|
8
|
+
"@tatumio/shared-testing-common": "2.0.1-alpha.252",
|
|
9
|
+
"@tatumio/api-client": "2.0.1-alpha.252",
|
|
10
10
|
"axios": "^0.26.0",
|
|
11
11
|
"form-data": "^4.0.0",
|
|
12
|
-
"@tatumio/shared-core": "2.0.1-alpha.
|
|
12
|
+
"@tatumio/shared-core": "2.0.1-alpha.252",
|
|
13
13
|
"dedent-js": "^1.0.1",
|
|
14
|
-
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.
|
|
14
|
+
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.252",
|
|
15
15
|
"bignumber.js": "^9.0.2",
|
|
16
|
-
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.
|
|
16
|
+
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.252",
|
|
17
17
|
"bip32": "^2.0.5",
|
|
18
18
|
"bip39": "^3.0.2",
|
|
19
19
|
"hdkey": "^2.0.1",
|
package/src/lib/flow.sdk.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FlowService } from '@tatumio/api-client';
|
|
2
2
|
import { SDKArguments } from '@tatumio/shared-abstract-sdk';
|
|
3
3
|
export declare const TatumFlowSDK: (args: SDKArguments) => {
|
|
4
|
-
api: typeof
|
|
4
|
+
api: typeof FlowService;
|
|
5
5
|
kms: {
|
|
6
6
|
sign(tx: import("@tatumio/shared-core").ChainTransactionKMS, fromPrivateKeys: string[], testnet: boolean): Promise<{
|
|
7
7
|
txId: string;
|
|
@@ -10,9 +10,9 @@ export declare const TatumFlowSDK: (args: SDKArguments) => {
|
|
|
10
10
|
txId: string;
|
|
11
11
|
}>;
|
|
12
12
|
getAllPending(signatures?: string): import("@tatumio/api-client").CancelablePromise<import("@tatumio/api-client").PendingTransaction[]>;
|
|
13
|
-
get: typeof import("@tatumio/api-client").
|
|
14
|
-
complete: typeof import("@tatumio/api-client").
|
|
15
|
-
delete: typeof import("@tatumio/api-client").
|
|
13
|
+
get: typeof import("@tatumio/api-client").KeyManagementSystemService.getPendingTransactionToSign;
|
|
14
|
+
complete: typeof import("@tatumio/api-client").KeyManagementSystemService.completePendingSignature;
|
|
15
|
+
delete: typeof import("@tatumio/api-client").KeyManagementSystemService.deletePendingTransactionToSign;
|
|
16
16
|
};
|
|
17
17
|
wallet: {
|
|
18
18
|
generateAddressFromXPub: (xpub: string, i: number) => string;
|
|
@@ -65,51 +65,51 @@ export declare const TatumFlowSDK: (args: SDKArguments) => {
|
|
|
65
65
|
}>;
|
|
66
66
|
};
|
|
67
67
|
nft: {
|
|
68
|
-
deployNFTSmartContract: typeof import("@tatumio/api-client").
|
|
69
|
-
mintNFT: typeof import("@tatumio/api-client").
|
|
70
|
-
transferNFT: typeof import("@tatumio/api-client").
|
|
71
|
-
mintMultipleNFTs: typeof import("@tatumio/api-client").
|
|
72
|
-
burnNFT: typeof import("@tatumio/api-client").
|
|
73
|
-
getNFTTransaction: typeof import("@tatumio/api-client").
|
|
74
|
-
getNFTAccountBalance: typeof import("@tatumio/api-client").
|
|
75
|
-
getNFTMetadataURI: typeof import("@tatumio/api-client").
|
|
68
|
+
deployNFTSmartContract: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftDeployErc721;
|
|
69
|
+
mintNFT: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftMintErc721;
|
|
70
|
+
transferNFT: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftTransferErc721;
|
|
71
|
+
mintMultipleNFTs: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftMintMultipleErc721;
|
|
72
|
+
burnNFT: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftBurnErc721;
|
|
73
|
+
getNFTTransaction: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetTransactErc721;
|
|
74
|
+
getNFTAccountBalance: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetBalanceErc721;
|
|
75
|
+
getNFTMetadataURI: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetMetadataErc721;
|
|
76
76
|
};
|
|
77
77
|
blockchain: {
|
|
78
|
-
getCurrentBlock: typeof
|
|
79
|
-
getBlock: typeof
|
|
80
|
-
getAccount: typeof
|
|
81
|
-
getTransaction: typeof
|
|
78
|
+
getCurrentBlock: typeof FlowService.flowGetBlockChainInfo;
|
|
79
|
+
getBlock: typeof FlowService.flowGetBlock;
|
|
80
|
+
getAccount: typeof FlowService.flowGetAccount;
|
|
81
|
+
getTransaction: typeof FlowService.flowGetRawTransaction;
|
|
82
82
|
};
|
|
83
83
|
offchain: {
|
|
84
84
|
depositAddress: {
|
|
85
85
|
checkExists: (address: string, index?: number) => Promise<import("@tatumio/api-client").Account>;
|
|
86
|
-
create: typeof import("@tatumio/api-client").
|
|
87
|
-
createMultiple: typeof import("@tatumio/api-client").
|
|
88
|
-
assign: typeof import("@tatumio/api-client").
|
|
89
|
-
remove: typeof import("@tatumio/api-client").
|
|
90
|
-
getByAccount: typeof import("@tatumio/api-client").
|
|
86
|
+
create: typeof import("@tatumio/api-client").BlockchainAddressesService.generateDepositAddress;
|
|
87
|
+
createMultiple: typeof import("@tatumio/api-client").BlockchainAddressesService.generateDepositAddressesBatch;
|
|
88
|
+
assign: typeof import("@tatumio/api-client").BlockchainAddressesService.assignAddress;
|
|
89
|
+
remove: typeof import("@tatumio/api-client").BlockchainAddressesService.removeAddress;
|
|
90
|
+
getByAccount: typeof import("@tatumio/api-client").BlockchainAddressesService.getAllDepositAddresses;
|
|
91
91
|
};
|
|
92
92
|
withdrawal: {
|
|
93
93
|
getAll: (status?: "InProgress" | "Done" | "Cancelled", pageSize?: number, offset?: number) => Promise<import("@tatumio/api-client").WithdrawalObject[]>;
|
|
94
|
-
broadcast: typeof import("@tatumio/api-client").
|
|
95
|
-
create: typeof import("@tatumio/api-client").
|
|
96
|
-
complete: typeof import("@tatumio/api-client").
|
|
94
|
+
broadcast: typeof import("@tatumio/api-client").WithdrawalService.broadcastBlockchainTransaction;
|
|
95
|
+
create: typeof import("@tatumio/api-client").WithdrawalService.storeWithdrawal;
|
|
96
|
+
complete: typeof import("@tatumio/api-client").WithdrawalService.completeWithdrawal;
|
|
97
97
|
};
|
|
98
|
-
storeTokenAddress: typeof import("@tatumio/api-client").
|
|
98
|
+
storeTokenAddress: typeof import("@tatumio/api-client").BlockchainOperationsService.storeTokenAddress;
|
|
99
99
|
};
|
|
100
100
|
getExchangeRate(basePair?: import("@tatumio/api-client").Fiat): import("@tatumio/api-client").CancelablePromise<import("@tatumio/api-client").ExchangeRate>;
|
|
101
101
|
storage: {
|
|
102
|
-
upload: typeof import("@tatumio/api-client").
|
|
103
|
-
get: typeof import("@tatumio/api-client").
|
|
102
|
+
upload: typeof import("@tatumio/api-client").IpfsService.storeIpfs;
|
|
103
|
+
get: typeof import("@tatumio/api-client").IpfsService.getIpfsData;
|
|
104
104
|
};
|
|
105
|
-
subscriptions: typeof import("@tatumio/api-client").
|
|
105
|
+
subscriptions: typeof import("@tatumio/api-client").NotificationSubscriptionsService;
|
|
106
106
|
security: {
|
|
107
|
-
checkMaliciousAddress: typeof import("@tatumio/api-client").
|
|
107
|
+
checkMaliciousAddress: typeof import("@tatumio/api-client").MaliciousAddressService.checkMalicousAddress;
|
|
108
108
|
};
|
|
109
109
|
tatum: {
|
|
110
|
-
getCredits: typeof import("@tatumio/api-client").
|
|
111
|
-
getVersion: typeof import("@tatumio/api-client").
|
|
112
|
-
freezeApiKey: typeof import("@tatumio/api-client").
|
|
113
|
-
unfreezeApiKey: typeof import("@tatumio/api-client").
|
|
110
|
+
getCredits: typeof import("@tatumio/api-client").ServiceUtilsService.getCredits;
|
|
111
|
+
getVersion: typeof import("@tatumio/api-client").ServiceUtilsService.getVersion;
|
|
112
|
+
freezeApiKey: typeof import("@tatumio/api-client").ServiceUtilsService.freezeApiKey;
|
|
113
|
+
unfreezeApiKey: typeof import("@tatumio/api-client").ServiceUtilsService.unfreezeApiKey;
|
|
114
114
|
};
|
|
115
115
|
};
|
package/src/lib/flow.sdk.js
CHANGED
|
@@ -10,7 +10,7 @@ const flow_tx_1 = require("./services/flow.tx");
|
|
|
10
10
|
const flow_kms_1 = require("./services/flow.kms");
|
|
11
11
|
const blockchain = shared_core_1.Blockchain.FLOW;
|
|
12
12
|
const TatumFlowSDK = (args) => {
|
|
13
|
-
const api = api_client_1.
|
|
13
|
+
const api = api_client_1.FlowService;
|
|
14
14
|
const _a = (0, shared_blockchain_abstract_1.abstractBlockchainSdk)(Object.assign(Object.assign({}, args), { blockchain })), { nft } = _a, abstractSdk = (0, tslib_1.__rest)(_a, ["nft"]);
|
|
15
15
|
const { deployNFTSmartContract, mintNFT, transferNFT, mintMultipleNFTs, burnNFT, getNFTTransaction, getNFTAccountBalance, getNFTMetadataURI, } = nft;
|
|
16
16
|
return Object.assign(Object.assign({}, abstractSdk), { api, kms: (0, flow_kms_1.flowKmsService)(Object.assign(Object.assign({}, args), { blockchain })), wallet: (0, flow_sdk_wallet_1.flowWallet)(), transaction: (0, flow_tx_1.flowTxService)(args), nft: {
|
|
@@ -23,10 +23,10 @@ const TatumFlowSDK = (args) => {
|
|
|
23
23
|
getNFTAccountBalance,
|
|
24
24
|
getNFTMetadataURI,
|
|
25
25
|
}, blockchain: {
|
|
26
|
-
getCurrentBlock: api_client_1.
|
|
27
|
-
getBlock: api_client_1.
|
|
28
|
-
getAccount: api_client_1.
|
|
29
|
-
getTransaction: api_client_1.
|
|
26
|
+
getCurrentBlock: api_client_1.FlowService.flowGetBlockChainInfo,
|
|
27
|
+
getBlock: api_client_1.FlowService.flowGetBlock,
|
|
28
|
+
getAccount: api_client_1.FlowService.flowGetAccount,
|
|
29
|
+
getTransaction: api_client_1.FlowService.flowGetRawTransaction,
|
|
30
30
|
} });
|
|
31
31
|
};
|
|
32
32
|
exports.TatumFlowSDK = TatumFlowSDK;
|
package/src/lib/flow.sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow.sdk.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/flow/src/lib/flow.sdk.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"flow.sdk.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/flow/src/lib/flow.sdk.ts"],"names":[],"mappings":";;;;AAAA,oDAAiD;AACjD,oFAA2E;AAC3E,sDAAiD;AAEjD,gEAAuD;AACvD,gDAAkD;AAClD,kDAAoD;AAEpD,MAAM,UAAU,GAAG,wBAAU,CAAC,IAAI,CAAA;AAE3B,MAAM,YAAY,GAAG,CAAC,IAAkB,EAAE,EAAE;IACjD,MAAM,GAAG,GAAG,wBAAW,CAAA;IACvB,MAAM,KAA0B,IAAA,kDAAqB,kCAAM,IAAI,KAAE,UAAU,IAAG,EAAxE,EAAE,GAAG,OAAmE,EAA9D,WAAW,2BAArB,OAAuB,CAAiD,CAAA;IAE9E,MAAM,EACJ,sBAAsB,EACtB,OAAO,EACP,WAAW,EACX,gBAAgB,EAChB,OAAO,EACP,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,GAClB,GAAG,GAAG,CAAA;IAEP,uCACK,WAAW,KACd,GAAG,EACH,GAAG,EAAE,IAAA,yBAAc,kCAAM,IAAI,KAAE,UAAU,IAAG,EAC5C,MAAM,EAAE,IAAA,4BAAU,GAAE,EACpB,WAAW,EAAE,IAAA,uBAAa,EAAC,IAAI,CAAC,EAChC,GAAG,EAAE;YACH,sBAAsB;YACtB,OAAO;YACP,WAAW;YACX,gBAAgB;YAChB,OAAO;YACP,iBAAiB;YACjB,oBAAoB;YACpB,iBAAiB;SAClB,EACD,UAAU,EAAE;YACV,eAAe,EAAE,wBAAW,CAAC,qBAAqB;YAClD,QAAQ,EAAE,wBAAW,CAAC,YAAY;YAClC,UAAU,EAAE,wBAAW,CAAC,cAAc;YACtC,cAAc,EAAE,wBAAW,CAAC,qBAAqB;SAClD,IACF;AACH,CAAC,CAAA;AAtCY,QAAA,YAAY,gBAsCxB"}
|
|
@@ -10,7 +10,7 @@ export declare const flowKmsService: (args: {
|
|
|
10
10
|
txId: string;
|
|
11
11
|
}>;
|
|
12
12
|
getAllPending(signatures?: string): import("../../../../../../dist/packages/api-client/src").CancelablePromise<import("../../../../../../dist/packages/api-client/src").PendingTransaction[]>;
|
|
13
|
-
get: typeof import("../../../../../../dist/packages/api-client/src").
|
|
14
|
-
complete: typeof import("../../../../../../dist/packages/api-client/src").
|
|
15
|
-
delete: typeof import("../../../../../../dist/packages/api-client/src").
|
|
13
|
+
get: typeof import("../../../../../../dist/packages/api-client/src").KeyManagementSystemService.getPendingTransactionToSign;
|
|
14
|
+
complete: typeof import("../../../../../../dist/packages/api-client/src").KeyManagementSystemService.completePendingSignature;
|
|
15
|
+
delete: typeof import("../../../../../../dist/packages/api-client/src").KeyManagementSystemService.deletePendingTransactionToSign;
|
|
16
16
|
};
|