@tatumio/bch 2.0.1-alpha.237 → 2.0.1-alpha.238
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +9 -9
- package/src/lib/bch.sdk.d.ts +16 -60
- package/src/lib/bch.sdk.wallet.d.ts +14 -2
- package/src/lib/bch.sdk.wallet.js.map +1 -1
package/package.json
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
{
|
2
2
|
"name": "@tatumio/bch",
|
3
|
-
"version": "2.0.1-alpha.
|
3
|
+
"version": "2.0.1-alpha.238",
|
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/
|
10
|
-
"
|
11
|
-
"axios": "^0.25.0",
|
8
|
+
"@tatumio/shared-testing-common": "2.0.1-alpha.238",
|
9
|
+
"@tatumio/api-client": "2.0.1-alpha.238",
|
10
|
+
"axios": "^0.26.0",
|
12
11
|
"form-data": "^4.0.0",
|
13
|
-
"@tatumio/shared-
|
14
|
-
"@tatumio/shared-
|
12
|
+
"@tatumio/shared-testing-btc-based": "2.0.1-alpha.238",
|
13
|
+
"@tatumio/shared-blockchain-btc-based": "2.0.1-alpha.238",
|
14
|
+
"@tatumio/shared-core": "2.0.1-alpha.238",
|
15
|
+
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.238",
|
16
|
+
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.238",
|
15
17
|
"bignumber.js": "^9.0.2",
|
16
|
-
"@tatumio/shared-testing-btc-based": "2.0.1-alpha.237",
|
17
|
-
"@tatumio/shared-blockchain-btc-based": "2.0.1-alpha.237",
|
18
18
|
"bip32": "^2.0.5",
|
19
19
|
"bip39": "^3.0.2",
|
20
20
|
"bitcoinjs-lib": "^5.2.0",
|
package/src/lib/bch.sdk.d.ts
CHANGED
@@ -1,7 +1,20 @@
|
|
1
1
|
import { BlockchainBitcoinCashService } from '@tatumio/api-client';
|
2
2
|
import { SDKArguments } from '@tatumio/shared-abstract-sdk';
|
3
3
|
export declare const TatumBchSDK: (args: SDKArguments) => {
|
4
|
-
wallet:
|
4
|
+
wallet: {
|
5
|
+
generateAddressFromXPub: (xpub: string, i: number, options?: {
|
6
|
+
testnet: boolean;
|
7
|
+
}) => string;
|
8
|
+
generateAddressFromPrivateKey: (privateKey: string, options?: {
|
9
|
+
testnet: boolean;
|
10
|
+
}) => string;
|
11
|
+
generatePrivateKeyFromMnemonic(mnemonic: string, i: number, options?: {
|
12
|
+
testnet: boolean;
|
13
|
+
}): Promise<string>;
|
14
|
+
generateWallet(mnemonic?: string, options?: {
|
15
|
+
testnet: boolean;
|
16
|
+
}): Promise<import("@tatumio/api-client").TronWallet>;
|
17
|
+
};
|
5
18
|
transaction: import("@tatumio/shared-blockchain-btc-based").BtcBasedTx<import("@tatumio/api-client").BchTransaction | import("@tatumio/api-client").BchTransactionKMS>;
|
6
19
|
blockchain: {
|
7
20
|
info: typeof BlockchainBitcoinCashService.bchGetBlockChainInfo;
|
@@ -42,63 +55,6 @@ export declare const TatumBchSDK: (args: SDKArguments) => {
|
|
42
55
|
get: typeof import("@tatumio/api-client").StorageIpfsService.getIpfsData;
|
43
56
|
};
|
44
57
|
subscriptions: typeof import("@tatumio/api-client").LedgerSubscriptionService;
|
45
|
-
ledger: {
|
46
|
-
customer: {
|
47
|
-
get: typeof import("@tatumio/api-client").LedgerCustomerService.getCustomerByExternalOrInternalId;
|
48
|
-
getAll: typeof import("@tatumio/api-client").LedgerCustomerService.findAllCustomers;
|
49
|
-
update: typeof import("@tatumio/api-client").LedgerCustomerService.updateCustomer;
|
50
|
-
activate: typeof import("@tatumio/api-client").LedgerCustomerService.activateCustomer;
|
51
|
-
deactivate: typeof import("@tatumio/api-client").LedgerCustomerService.deactivateCustomer;
|
52
|
-
enable: typeof import("@tatumio/api-client").LedgerCustomerService.enableCustomer;
|
53
|
-
disable: typeof import("@tatumio/api-client").LedgerCustomerService.disableCustomer;
|
54
|
-
};
|
55
|
-
orderBook: {
|
56
|
-
getHistorical: typeof import("@tatumio/api-client").LedgerOrderBookService.getHistoricalTradesBody;
|
57
|
-
getActiveBuyTrades: typeof import("@tatumio/api-client").LedgerOrderBookService.getBuyTradesBody;
|
58
|
-
getActiveSellTrades: typeof import("@tatumio/api-client").LedgerOrderBookService.getBuyTradesBody;
|
59
|
-
newTrade: typeof import("@tatumio/api-client").LedgerOrderBookService.storeTrade;
|
60
|
-
get: typeof import("@tatumio/api-client").LedgerOrderBookService.getTradeById;
|
61
|
-
cancel: typeof import("@tatumio/api-client").LedgerOrderBookService.deleteTrade;
|
62
|
-
cancelByAccount: typeof import("@tatumio/api-client").LedgerOrderBookService.deleteAccountTrades;
|
63
|
-
};
|
64
|
-
transaction: {
|
65
|
-
send: typeof import("@tatumio/api-client").LedgerTransactionService.sendTransaction;
|
66
|
-
sendMultiple: typeof import("@tatumio/api-client").LedgerTransactionService.sendTransactionBatch;
|
67
|
-
getAll: typeof import("@tatumio/api-client").LedgerTransactionService.getTransactions;
|
68
|
-
getAllByAccount: typeof import("@tatumio/api-client").LedgerTransactionService.getTransactionsByAccountId;
|
69
|
-
getAllByCustomer: typeof import("@tatumio/api-client").LedgerTransactionService.getTransactionsByCustomerId;
|
70
|
-
getAllByReference: typeof import("@tatumio/api-client").LedgerTransactionService.getTransactionsByReference;
|
71
|
-
countByAccount: (filter: import("@tatumio/api-client").TransactionFilter) => any;
|
72
|
-
countByCustomer: (filter: import("@tatumio/api-client").TransactionFilterCustomer) => any;
|
73
|
-
};
|
74
|
-
virtualCurrency: {
|
75
|
-
create: typeof import("@tatumio/api-client").LedgerVirtualCurrencyService.createCurrency;
|
76
|
-
mint: typeof import("@tatumio/api-client").LedgerVirtualCurrencyService.mintCurrency;
|
77
|
-
revoke: typeof import("@tatumio/api-client").LedgerVirtualCurrencyService.revokeCurrency;
|
78
|
-
getByName: typeof import("@tatumio/api-client").LedgerVirtualCurrencyService.getCurrency;
|
79
|
-
update: typeof import("@tatumio/api-client").LedgerVirtualCurrencyService.updateCurrency;
|
80
|
-
};
|
81
|
-
blockAmount: {
|
82
|
-
block: typeof import("@tatumio/api-client").LedgerAccountService.blockAmount;
|
83
|
-
unblock: typeof import("@tatumio/api-client").LedgerAccountService.deleteBlockAmount;
|
84
|
-
unblockWithTransaction: typeof import("@tatumio/api-client").LedgerAccountService.unblockAmountWithTransaction;
|
85
|
-
};
|
86
|
-
account: {
|
87
|
-
get: typeof import("@tatumio/api-client").LedgerAccountService.getAccountByAccountId;
|
88
|
-
getAll: typeof import("@tatumio/api-client").LedgerAccountService.getAllAccounts;
|
89
|
-
getByCustomerId: typeof import("@tatumio/api-client").LedgerAccountService.getAccountsByCustomerId;
|
90
|
-
getBalance: typeof import("@tatumio/api-client").LedgerAccountService.getAccountBalance;
|
91
|
-
create: typeof import("@tatumio/api-client").LedgerAccountService.createAccount;
|
92
|
-
createMultiple: typeof import("@tatumio/api-client").LedgerAccountService.createAccountBatch;
|
93
|
-
update: typeof import("@tatumio/api-client").LedgerAccountService.updateAccountByAccountId;
|
94
|
-
getBlockedAmountsByAccountId: typeof import("@tatumio/api-client").LedgerAccountService.getBlockAmountById;
|
95
|
-
activate: typeof import("@tatumio/api-client").LedgerAccountService.activateAccount;
|
96
|
-
deactivate: typeof import("@tatumio/api-client").LedgerAccountService.deactivateAccount;
|
97
|
-
freeze: typeof import("@tatumio/api-client").LedgerAccountService.freezeAccount;
|
98
|
-
unfreeze: typeof import("@tatumio/api-client").LedgerAccountService.unfreezeAccount;
|
99
|
-
generate: (account: import("@tatumio/api-client").CreateAccount, generateNewWalletFn: any, generateNewWallet?: boolean, testnet?: boolean, webhookUrl?: string) => Promise<any>;
|
100
|
-
};
|
101
|
-
};
|
102
58
|
security: {
|
103
59
|
checkMaliciousAddress: typeof import("@tatumio/api-client").SecurityAddressService.checkMalicousAddress;
|
104
60
|
};
|
@@ -119,7 +75,7 @@ export declare const TatumBchSDK: (args: SDKArguments) => {
|
|
119
75
|
getNFTTransaction: typeof import("@tatumio/api-client").BlockchainNftService.nftGetTransactErc721;
|
120
76
|
getNFTTransactionsByToken: typeof import("@tatumio/api-client").BlockchainNftService.nftGetTransactionByToken;
|
121
77
|
getNFTTransactionsByAddress: typeof import("@tatumio/api-client").BlockchainNftService.nftGetTransactionByAddress;
|
122
|
-
getNFTsByAddress: typeof import("@tatumio/api-client").BlockchainNftService.
|
78
|
+
getNFTsByAddress: typeof import("@tatumio/api-client").BlockchainNftService.nftGetTokensByAddressErc721;
|
123
79
|
getNFTProvenanceData: typeof import("@tatumio/api-client").BlockchainNftService.nftGetProvenanceDataErc721;
|
124
80
|
getNFTMetadataURI: typeof import("@tatumio/api-client").BlockchainNftService.nftGetMetadataErc721;
|
125
81
|
getNFTRoyalty: typeof import("@tatumio/api-client").BlockchainNftService.nftGetRoyaltyErc721;
|
@@ -128,6 +84,6 @@ export declare const TatumBchSDK: (args: SDKArguments) => {
|
|
128
84
|
originalUrl: string;
|
129
85
|
publicUrl: string;
|
130
86
|
}>;
|
131
|
-
prepareAddNftMinterAbstraction: (body: import("@tatumio/api-client").AddNftMinter | import("@tatumio/api-client").AddNftMinterKMS) =>
|
87
|
+
prepareAddNftMinterAbstraction: (body: import("@tatumio/api-client").AddNftMinter | import("@tatumio/api-client").AddNftMinterKMS) => string[];
|
132
88
|
};
|
133
89
|
};
|
@@ -1,5 +1,17 @@
|
|
1
1
|
import { BtcBasedBlockchain } from '@tatumio/shared-core';
|
2
|
-
import { SdkWithWalletFunctions } from '@tatumio/shared-blockchain-abstract';
|
3
2
|
export declare const bchWallet: (args: {
|
4
3
|
blockchain: BtcBasedBlockchain;
|
5
|
-
}) =>
|
4
|
+
}) => {
|
5
|
+
generateAddressFromXPub: (xpub: string, i: number, options?: {
|
6
|
+
testnet: boolean;
|
7
|
+
}) => string;
|
8
|
+
generateAddressFromPrivateKey: (privateKey: string, options?: {
|
9
|
+
testnet: boolean;
|
10
|
+
}) => string;
|
11
|
+
generatePrivateKeyFromMnemonic(mnemonic: string, i: number, options?: {
|
12
|
+
testnet: boolean;
|
13
|
+
}): Promise<string>;
|
14
|
+
generateWallet(mnemonic?: string, options?: {
|
15
|
+
testnet: boolean;
|
16
|
+
}): Promise<import("../../../../../dist/packages/api-client/src").TronWallet>;
|
17
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bch.sdk.wallet.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/bch/src/lib/bch.sdk.wallet.ts"],"names":[],"mappings":";;;;AAAA,sDAA0E;AAE1E,kGAA+C;AAC/C,yEAAiC;AACjC,sFAAqE;AACrE,qDAAwD;
|
1
|
+
{"version":3,"file":"bch.sdk.wallet.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/bch/src/lib/bch.sdk.wallet.ts"],"names":[],"mappings":";;;;AAAA,sDAA0E;AAE1E,kGAA+C;AAC/C,yEAAiC;AACjC,sFAAqE;AACrE,qDAAwD;AACxD,iDAAgD;AAEzC,MAAM,SAAS,GAAG,CAAC,IAAwC,EAAE,EAAE;IACpE,MAAM,QAAQ,GAAG,IAAA,4CAAc,EAAC,IAAI,CAAC,CAAA;IAErC,uCACK,QAAQ,KACX,uBAAuB,EAAE,CAAC,IAAY,EAAE,CAAS,EAAE,OAA8B,EAAU,EAAE;YAC3F,MAAM,OAAO,GAAG,6BAAe,CAAC,gBAAgB,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,CAAA;YAC1E,MAAM,MAAM,GAAG,4BAAK,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;YACrD,MAAM,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,CAAA;YAExD,MAAM,OAAO,GAAG,gCAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;YAEjD,OAAO,oBAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;QACpE,CAAC,EACD,6BAA6B,EAAE,CAAC,UAAkB,EAAE,OAA8B,EAAU,EAAE;YAC5F,MAAM,OAAO,GAAG,6BAAe,CAAC,gBAAgB,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,CAAA;YAC1E,MAAM,OAAO,GAAG,sBAAM,CAAC,OAAO,CAAC,UAAU,EAAE,OAAO,CAAC,CAAA;YACnD,MAAM,MAAM,GAAG,wBAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,CAAA;YAC7E,MAAM,OAAO,GAAG,gCAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;YAEjD,OAAO,oBAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;QACpE,CAAC,IACF;AACH,CAAC,CAAA;AAvBY,QAAA,SAAS,aAuBrB"}
|