@tatumio/bch 2.0.1-alpha.250 → 2.0.1-alpha.253
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +8 -8
- package/src/lib/bch.sdk.d.ts +43 -43
- package/src/lib/bch.sdk.js +7 -7
- package/src/lib/bch.sdk.js.map +1 -1
package/package.json
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
{
|
2
2
|
"name": "@tatumio/bch",
|
3
|
-
"version": "2.0.1-alpha.
|
3
|
+
"version": "2.0.1-alpha.253",
|
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.253",
|
9
|
+
"@tatumio/api-client": "2.0.1-alpha.253",
|
10
10
|
"axios": "^0.26.0",
|
11
11
|
"form-data": "^4.0.0",
|
12
|
-
"@tatumio/shared-testing-btc-based": "2.0.1-alpha.
|
13
|
-
"@tatumio/shared-blockchain-btc-based": "2.0.1-alpha.
|
14
|
-
"@tatumio/shared-core": "2.0.1-alpha.
|
15
|
-
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.
|
16
|
-
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.
|
12
|
+
"@tatumio/shared-testing-btc-based": "2.0.1-alpha.253",
|
13
|
+
"@tatumio/shared-blockchain-btc-based": "2.0.1-alpha.253",
|
14
|
+
"@tatumio/shared-core": "2.0.1-alpha.253",
|
15
|
+
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.253",
|
16
|
+
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.253",
|
17
17
|
"bignumber.js": "^9.0.2",
|
18
18
|
"bip32": "^2.0.5",
|
19
19
|
"bip39": "^3.0.2",
|
package/src/lib/bch.sdk.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { BitcoinCashService } from '@tatumio/api-client';
|
2
2
|
import { SDKArguments } from '@tatumio/shared-abstract-sdk';
|
3
3
|
export declare const TatumBchSDK: (args: SDKArguments) => {
|
4
4
|
wallet: {
|
@@ -17,69 +17,69 @@ export declare const TatumBchSDK: (args: SDKArguments) => {
|
|
17
17
|
};
|
18
18
|
transaction: import("@tatumio/shared-blockchain-btc-based").BtcBasedTx<import("@tatumio/api-client").BchTransaction | import("@tatumio/api-client").BchTransactionKMS>;
|
19
19
|
blockchain: {
|
20
|
-
info: typeof
|
21
|
-
broadcast: typeof
|
22
|
-
getBlockHash: typeof
|
23
|
-
getBlock: typeof
|
24
|
-
getTxForAccount: typeof
|
25
|
-
getTransaction: typeof
|
26
|
-
send: typeof
|
20
|
+
info: typeof BitcoinCashService.bchGetBlockChainInfo;
|
21
|
+
broadcast: typeof BitcoinCashService.bchBroadcast;
|
22
|
+
getBlockHash: typeof BitcoinCashService.bchGetBlockHash;
|
23
|
+
getBlock: typeof BitcoinCashService.bchGetBlock;
|
24
|
+
getTxForAccount: typeof BitcoinCashService.bchGetTxByAddress;
|
25
|
+
getTransaction: typeof BitcoinCashService.bchGetRawTransaction;
|
26
|
+
send: typeof BitcoinCashService.bchTransferBlockchain;
|
27
27
|
};
|
28
28
|
kms: {
|
29
29
|
sign(tx: import("@tatumio/shared-core").ChainTransactionKMS, privateKeys: string[]): Promise<string>;
|
30
30
|
getAllPending(signatures?: string): import("@tatumio/api-client").CancelablePromise<import("@tatumio/api-client").PendingTransaction[]>;
|
31
|
-
get: typeof import("@tatumio/api-client").
|
32
|
-
complete: typeof import("@tatumio/api-client").
|
33
|
-
delete: typeof import("@tatumio/api-client").
|
31
|
+
get: typeof import("@tatumio/api-client").KeyManagementSystemService.getPendingTransactionToSign;
|
32
|
+
complete: typeof import("@tatumio/api-client").KeyManagementSystemService.completePendingSignature;
|
33
|
+
delete: typeof import("@tatumio/api-client").KeyManagementSystemService.deletePendingTransactionToSign;
|
34
34
|
};
|
35
35
|
offchain: {
|
36
36
|
depositAddress: {
|
37
37
|
checkExists: (address: string, index?: number) => Promise<import("@tatumio/api-client").Account>;
|
38
|
-
create: typeof import("@tatumio/api-client").
|
39
|
-
createMultiple: typeof import("@tatumio/api-client").
|
40
|
-
assign: typeof import("@tatumio/api-client").
|
41
|
-
remove: typeof import("@tatumio/api-client").
|
42
|
-
getByAccount: typeof import("@tatumio/api-client").
|
38
|
+
create: typeof import("@tatumio/api-client").BlockchainAddressesService.generateDepositAddress;
|
39
|
+
createMultiple: typeof import("@tatumio/api-client").BlockchainAddressesService.generateDepositAddressesBatch;
|
40
|
+
assign: typeof import("@tatumio/api-client").BlockchainAddressesService.assignAddress;
|
41
|
+
remove: typeof import("@tatumio/api-client").BlockchainAddressesService.removeAddress;
|
42
|
+
getByAccount: typeof import("@tatumio/api-client").BlockchainAddressesService.getAllDepositAddresses;
|
43
43
|
};
|
44
44
|
withdrawal: {
|
45
45
|
getAll: (status?: "InProgress" | "Done" | "Cancelled", pageSize?: number, offset?: number) => Promise<import("@tatumio/api-client").WithdrawalObject[]>;
|
46
|
-
broadcast: typeof import("@tatumio/api-client").
|
47
|
-
create: typeof import("@tatumio/api-client").
|
48
|
-
complete: typeof import("@tatumio/api-client").
|
46
|
+
broadcast: typeof import("@tatumio/api-client").WithdrawalService.broadcastBlockchainTransaction;
|
47
|
+
create: typeof import("@tatumio/api-client").WithdrawalService.storeWithdrawal;
|
48
|
+
complete: typeof import("@tatumio/api-client").WithdrawalService.completeWithdrawal;
|
49
49
|
};
|
50
|
-
storeTokenAddress: typeof import("@tatumio/api-client").
|
50
|
+
storeTokenAddress: typeof import("@tatumio/api-client").BlockchainOperationsService.storeTokenAddress;
|
51
51
|
};
|
52
52
|
getExchangeRate(basePair?: import("@tatumio/api-client").Fiat): import("@tatumio/api-client").CancelablePromise<import("@tatumio/api-client").ExchangeRate>;
|
53
53
|
storage: {
|
54
|
-
upload: typeof import("@tatumio/api-client").
|
55
|
-
get: typeof import("@tatumio/api-client").
|
54
|
+
upload: typeof import("@tatumio/api-client").IpfsService.storeIpfs;
|
55
|
+
get: typeof import("@tatumio/api-client").IpfsService.getIpfsData;
|
56
56
|
};
|
57
|
-
subscriptions: typeof import("@tatumio/api-client").
|
57
|
+
subscriptions: typeof import("@tatumio/api-client").NotificationSubscriptionsService;
|
58
58
|
security: {
|
59
|
-
checkMaliciousAddress: typeof import("@tatumio/api-client").
|
59
|
+
checkMaliciousAddress: typeof import("@tatumio/api-client").MaliciousAddressService.checkMalicousAddress;
|
60
60
|
};
|
61
61
|
tatum: {
|
62
|
-
getCredits: typeof import("@tatumio/api-client").
|
63
|
-
getVersion: typeof import("@tatumio/api-client").
|
64
|
-
freezeApiKey: typeof import("@tatumio/api-client").
|
65
|
-
unfreezeApiKey: typeof import("@tatumio/api-client").
|
62
|
+
getCredits: typeof import("@tatumio/api-client").ServiceUtilsService.getCredits;
|
63
|
+
getVersion: typeof import("@tatumio/api-client").ServiceUtilsService.getVersion;
|
64
|
+
freezeApiKey: typeof import("@tatumio/api-client").ServiceUtilsService.freezeApiKey;
|
65
|
+
unfreezeApiKey: typeof import("@tatumio/api-client").ServiceUtilsService.unfreezeApiKey;
|
66
66
|
};
|
67
67
|
nft: {
|
68
|
-
deployNFTSmartContract: typeof import("@tatumio/api-client").
|
69
|
-
addNFTMinter: typeof import("@tatumio/api-client").
|
70
|
-
mintNFT: typeof import("@tatumio/api-client").
|
71
|
-
mintMultipleNFTs: typeof import("@tatumio/api-client").
|
72
|
-
burnNFT: typeof import("@tatumio/api-client").
|
73
|
-
transferNFT: typeof import("@tatumio/api-client").
|
74
|
-
updateNFTRoyalty: typeof import("@tatumio/api-client").
|
75
|
-
getNFTTransaction: typeof import("@tatumio/api-client").
|
76
|
-
getNFTTransactionsByToken: typeof import("@tatumio/api-client").
|
77
|
-
getNFTTransactionsByAddress: typeof import("@tatumio/api-client").
|
78
|
-
getNFTsByAddress: typeof import("@tatumio/api-client").
|
79
|
-
getNFTProvenanceData: typeof import("@tatumio/api-client").
|
80
|
-
getNFTMetadataURI: typeof import("@tatumio/api-client").
|
81
|
-
getNFTRoyalty: typeof import("@tatumio/api-client").
|
82
|
-
getNFTAccountBalance: typeof import("@tatumio/api-client").
|
68
|
+
deployNFTSmartContract: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftDeployErc721;
|
69
|
+
addNFTMinter: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftAddMinter;
|
70
|
+
mintNFT: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftMintErc721;
|
71
|
+
mintMultipleNFTs: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftMintMultipleErc721;
|
72
|
+
burnNFT: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftBurnErc721;
|
73
|
+
transferNFT: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftTransferErc721;
|
74
|
+
updateNFTRoyalty: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftUpdateCashbackErc721;
|
75
|
+
getNFTTransaction: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetTransactErc721;
|
76
|
+
getNFTTransactionsByToken: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetTransactionByToken;
|
77
|
+
getNFTTransactionsByAddress: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetTransactionByAddress;
|
78
|
+
getNFTsByAddress: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetTokensByAddressErc721;
|
79
|
+
getNFTProvenanceData: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetProvenanceDataErc721;
|
80
|
+
getNFTMetadataURI: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetMetadataErc721;
|
81
|
+
getNFTRoyalty: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetRoyaltyErc721;
|
82
|
+
getNFTAccountBalance: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetBalanceErc721;
|
83
83
|
getNFTImage: (chain: "ETH" | "BSC" | "MATIC" | "CELO" | "FLOW" | "TRON" | "ONE" | "KLAY" | "SOL" | "KCS", contractAddress: string, tokenId: string, account?: string) => Promise<{
|
84
84
|
originalUrl: string;
|
85
85
|
publicUrl: string;
|
package/src/lib/bch.sdk.js
CHANGED
@@ -9,13 +9,13 @@ const bch_sdk_wallet_1 = require("./bch.sdk.wallet");
|
|
9
9
|
const blockchain = shared_core_1.Blockchain.BCH;
|
10
10
|
const TatumBchSDK = (args) => {
|
11
11
|
return Object.assign(Object.assign({}, (0, shared_blockchain_btc_based_1.btcBasedSdk)(Object.assign(Object.assign({}, args), { blockchain }))), { wallet: (0, bch_sdk_wallet_1.bchWallet)(Object.assign(Object.assign({}, args), { blockchain })), transaction: (0, bch_sdk_tx_1.bchTransactions)(), blockchain: {
|
12
|
-
info: api_client_1.
|
13
|
-
broadcast: api_client_1.
|
14
|
-
getBlockHash: api_client_1.
|
15
|
-
getBlock: api_client_1.
|
16
|
-
getTxForAccount: api_client_1.
|
17
|
-
getTransaction: api_client_1.
|
18
|
-
send: api_client_1.
|
12
|
+
info: api_client_1.BitcoinCashService.bchGetBlockChainInfo,
|
13
|
+
broadcast: api_client_1.BitcoinCashService.bchBroadcast,
|
14
|
+
getBlockHash: api_client_1.BitcoinCashService.bchGetBlockHash,
|
15
|
+
getBlock: api_client_1.BitcoinCashService.bchGetBlock,
|
16
|
+
getTxForAccount: api_client_1.BitcoinCashService.bchGetTxByAddress,
|
17
|
+
getTransaction: api_client_1.BitcoinCashService.bchGetRawTransaction,
|
18
|
+
send: api_client_1.BitcoinCashService.bchTransferBlockchain,
|
19
19
|
} });
|
20
20
|
};
|
21
21
|
exports.TatumBchSDK = TatumBchSDK;
|
package/src/lib/bch.sdk.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bch.sdk.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/bch/src/lib/bch.sdk.ts"],"names":[],"mappings":";;;AAAA,sDAAiD;AACjD,sFAAkE;AAClE,
|
1
|
+
{"version":3,"file":"bch.sdk.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/bch/src/lib/bch.sdk.ts"],"names":[],"mappings":";;;AAAA,sDAAiD;AACjD,sFAAkE;AAClE,oDAAwD;AAExD,6CAA8C;AAC9C,qDAA4C;AAE5C,MAAM,UAAU,GAAG,wBAAU,CAAC,GAAG,CAAA;AAE1B,MAAM,WAAW,GAAG,CAAC,IAAkB,EAAE,EAAE;IAChD,uCACK,IAAA,yCAAW,kCAAM,IAAI,KAAE,UAAU,IAAG,KACvC,MAAM,EAAE,IAAA,0BAAS,kCAAM,IAAI,KAAE,UAAU,IAAG,EAC1C,WAAW,EAAE,IAAA,4BAAe,GAAE,EAC9B,UAAU,EAAE;YACV,IAAI,EAAE,+BAAkB,CAAC,oBAAoB;YAC7C,SAAS,EAAE,+BAAkB,CAAC,YAAY;YAC1C,YAAY,EAAE,+BAAkB,CAAC,eAAe;YAChD,QAAQ,EAAE,+BAAkB,CAAC,WAAW;YACxC,eAAe,EAAE,+BAAkB,CAAC,iBAAiB;YACrD,cAAc,EAAE,+BAAkB,CAAC,oBAAoB;YACvD,IAAI,EAAE,+BAAkB,CAAC,qBAAqB;SAC/C,IACF;AACH,CAAC,CAAA;AAfY,QAAA,WAAW,eAevB"}
|