@tatumio/bch 2.0.1-alpha.248 → 2.0.1-alpha.251

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "@tatumio/bch",
3
- "version": "2.0.1-alpha.248",
3
+ "version": "2.0.1-alpha.251",
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.248",
9
- "@tatumio/api-client": "2.0.1-alpha.248",
8
+ "@tatumio/shared-testing-common": "2.0.1-alpha.251",
9
+ "@tatumio/api-client": "2.0.1-alpha.251",
10
10
  "axios": "^0.26.0",
11
11
  "form-data": "^4.0.0",
12
- "@tatumio/shared-testing-btc-based": "2.0.1-alpha.248",
13
- "@tatumio/shared-blockchain-btc-based": "2.0.1-alpha.248",
14
- "@tatumio/shared-core": "2.0.1-alpha.248",
15
- "@tatumio/shared-blockchain-abstract": "2.0.1-alpha.248",
16
- "@tatumio/shared-abstract-sdk": "2.0.1-alpha.248",
12
+ "@tatumio/shared-testing-btc-based": "2.0.1-alpha.251",
13
+ "@tatumio/shared-blockchain-btc-based": "2.0.1-alpha.251",
14
+ "@tatumio/shared-core": "2.0.1-alpha.251",
15
+ "@tatumio/shared-blockchain-abstract": "2.0.1-alpha.251",
16
+ "@tatumio/shared-abstract-sdk": "2.0.1-alpha.251",
17
17
  "bignumber.js": "^9.0.2",
18
18
  "bip32": "^2.0.5",
19
19
  "bip39": "^3.0.2",
20
20
  "bitcoinjs-lib": "^5.2.0",
21
21
  "hdkey": "^2.0.1",
22
- "bitcore-lib": "^8.25.25",
22
+ "bitcore-lib": "8.25.8",
23
23
  "coininfo": "^5.1.0",
24
24
  "@tatumio/bitcoincashjs2-lib": "^4.1.2",
25
25
  "cashaddrjs": "^0.4.4"
@@ -1,4 +1,4 @@
1
- import { BlockchainBitcoinCashService } from '@tatumio/api-client';
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 BlockchainBitcoinCashService.bchGetBlockChainInfo;
21
- broadcast: typeof BlockchainBitcoinCashService.bchBroadcast;
22
- getBlockHash: typeof BlockchainBitcoinCashService.bchGetBlockHash;
23
- getBlock: typeof BlockchainBitcoinCashService.bchGetBlock;
24
- getTxForAccount: typeof BlockchainBitcoinCashService.bchGetTxByAddress;
25
- getTransaction: typeof BlockchainBitcoinCashService.bchGetRawTransaction;
26
- send: typeof BlockchainBitcoinCashService.bchTransferBlockchain;
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").SecurityKeyManagementSystemService.getPendingTransactionToSign;
32
- complete: typeof import("@tatumio/api-client").SecurityKeyManagementSystemService.completePendingSignature;
33
- delete: typeof import("@tatumio/api-client").SecurityKeyManagementSystemService.deletePendingTransactionToSign;
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").OffChainAccountService.generateDepositAddress;
39
- createMultiple: typeof import("@tatumio/api-client").OffChainAccountService.generateDepositAddressesBatch;
40
- assign: typeof import("@tatumio/api-client").OffChainAccountService.assignAddress;
41
- remove: typeof import("@tatumio/api-client").OffChainAccountService.removeAddress;
42
- getByAccount: typeof import("@tatumio/api-client").OffChainAccountService.getAllDepositAddresses;
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").OffChainWithdrawalService.broadcastBlockchainTransaction;
47
- create: typeof import("@tatumio/api-client").OffChainWithdrawalService.storeWithdrawal;
48
- complete: typeof import("@tatumio/api-client").OffChainWithdrawalService.completeWithdrawal;
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").OffChainBlockchainService.storeTokenAddress;
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").StorageIpfsService.storeIpfs;
55
- get: typeof import("@tatumio/api-client").StorageIpfsService.getIpfsData;
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").LedgerSubscriptionService;
57
+ subscriptions: typeof import("@tatumio/api-client").NotificationSubscriptionsService;
58
58
  security: {
59
- checkMaliciousAddress: typeof import("@tatumio/api-client").SecurityAddressService.checkMalicousAddress;
59
+ checkMaliciousAddress: typeof import("@tatumio/api-client").MaliciousAddressService.checkMalicousAddress;
60
60
  };
61
61
  tatum: {
62
- getCredits: typeof import("@tatumio/api-client").TatumServiceService.getCredits;
63
- getVersion: typeof import("@tatumio/api-client").TatumServiceService.getVersion;
64
- freezeApiKey: typeof import("@tatumio/api-client").TatumServiceService.freezeApiKey;
65
- unfreezeApiKey: typeof import("@tatumio/api-client").TatumServiceService.unfreezeApiKey;
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").BlockchainNftService.nftDeployErc721;
69
- addNFTMinter: typeof import("@tatumio/api-client").BlockchainNftService.nftAddMinter;
70
- mintNFT: typeof import("@tatumio/api-client").BlockchainNftService.nftMintErc721;
71
- mintMultipleNFTs: typeof import("@tatumio/api-client").BlockchainNftService.nftMintMultipleErc721;
72
- burnNFT: typeof import("@tatumio/api-client").BlockchainNftService.nftBurnErc721;
73
- transferNFT: typeof import("@tatumio/api-client").BlockchainNftService.nftTransferErc721;
74
- updateNFTRoyalty: typeof import("@tatumio/api-client").BlockchainNftService.nftUpdateCashbackErc721;
75
- getNFTTransaction: typeof import("@tatumio/api-client").BlockchainNftService.nftGetTransactErc721;
76
- getNFTTransactionsByToken: typeof import("@tatumio/api-client").BlockchainNftService.nftGetTransactionByToken;
77
- getNFTTransactionsByAddress: typeof import("@tatumio/api-client").BlockchainNftService.nftGetTransactionByAddress;
78
- getNFTsByAddress: typeof import("@tatumio/api-client").BlockchainNftService.nftGetTokensByAddressErc721;
79
- getNFTProvenanceData: typeof import("@tatumio/api-client").BlockchainNftService.nftGetProvenanceDataErc721;
80
- getNFTMetadataURI: typeof import("@tatumio/api-client").BlockchainNftService.nftGetMetadataErc721;
81
- getNFTRoyalty: typeof import("@tatumio/api-client").BlockchainNftService.nftGetRoyaltyErc721;
82
- getNFTAccountBalance: typeof import("@tatumio/api-client").BlockchainNftService.nftGetBalanceErc721;
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;
@@ -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.BlockchainBitcoinCashService.bchGetBlockChainInfo,
13
- broadcast: api_client_1.BlockchainBitcoinCashService.bchBroadcast,
14
- getBlockHash: api_client_1.BlockchainBitcoinCashService.bchGetBlockHash,
15
- getBlock: api_client_1.BlockchainBitcoinCashService.bchGetBlock,
16
- getTxForAccount: api_client_1.BlockchainBitcoinCashService.bchGetTxByAddress,
17
- getTransaction: api_client_1.BlockchainBitcoinCashService.bchGetRawTransaction,
18
- send: api_client_1.BlockchainBitcoinCashService.bchTransferBlockchain,
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;
@@ -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,oDAAkE;AAElE,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,yCAA4B,CAAC,oBAAoB;YACvD,SAAS,EAAE,yCAA4B,CAAC,YAAY;YACpD,YAAY,EAAE,yCAA4B,CAAC,eAAe;YAC1D,QAAQ,EAAE,yCAA4B,CAAC,WAAW;YAClD,eAAe,EAAE,yCAA4B,CAAC,iBAAiB;YAC/D,cAAc,EAAE,yCAA4B,CAAC,oBAAoB;YACjE,IAAI,EAAE,yCAA4B,CAAC,qBAAqB;SACzD,IACF;AACH,CAAC,CAAA;AAfY,QAAA,WAAW,eAevB"}
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"}