@tatumio/ltc 2.0.1-alpha.273 → 2.0.1-alpha.276
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,25 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tatumio/ltc",
|
|
3
|
-
"version": "2.0.1-alpha.
|
|
3
|
+
"version": "2.0.1-alpha.276",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./src/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.
|
|
9
|
-
"@tatumio/api-client": "2.0.1-alpha.
|
|
8
|
+
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.276",
|
|
9
|
+
"@tatumio/api-client": "2.0.1-alpha.276",
|
|
10
10
|
"axios": "^0.26.0",
|
|
11
11
|
"form-data": "^4.0.0",
|
|
12
|
-
"@tatumio/shared-testing-common": "2.0.1-alpha.
|
|
12
|
+
"@tatumio/shared-testing-common": "2.0.1-alpha.276",
|
|
13
13
|
"bignumber.js": "^9.0.2",
|
|
14
|
-
"@tatumio/shared-core": "2.0.1-alpha.
|
|
15
|
-
"@tatumio/shared-blockchain-btc-based": "2.0.1-alpha.
|
|
16
|
-
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.
|
|
14
|
+
"@tatumio/shared-core": "2.0.1-alpha.276",
|
|
15
|
+
"@tatumio/shared-blockchain-btc-based": "2.0.1-alpha.276",
|
|
16
|
+
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.276",
|
|
17
17
|
"bip32": "^2.0.5",
|
|
18
18
|
"bip39": "^3.0.2",
|
|
19
19
|
"bitcoinjs-lib": "^5.2.0",
|
|
20
20
|
"hdkey": "^2.0.1",
|
|
21
21
|
"bitcore-lib": "8.25.8",
|
|
22
|
-
"@tatumio/shared-testing-btc-based": "2.0.1-alpha.
|
|
22
|
+
"@tatumio/shared-testing-btc-based": "2.0.1-alpha.276",
|
|
23
|
+
"bitcore-lib-ltc": "8.25.27"
|
|
23
24
|
},
|
|
24
25
|
"peerDependencies": {}
|
|
25
26
|
}
|
|
@@ -5,7 +5,7 @@ const shared_core_1 = require("@tatumio/shared-core");
|
|
|
5
5
|
const shared_blockchain_btc_based_1 = require("@tatumio/shared-blockchain-btc-based");
|
|
6
6
|
const ltcWallet = () => {
|
|
7
7
|
const blockchain = shared_core_1.Blockchain.LTC;
|
|
8
|
-
return (0, shared_blockchain_btc_based_1.btcBasedWallet)({ blockchain });
|
|
8
|
+
return (0, shared_blockchain_btc_based_1.btcBasedWallet)({ blockchain, utils: (0, shared_blockchain_btc_based_1.btcBasedWalletUtils)(blockchain) });
|
|
9
9
|
};
|
|
10
10
|
exports.ltcWallet = ltcWallet;
|
|
11
11
|
//# sourceMappingURL=ltc.sdk.wallet.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ltc.sdk.wallet.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/ltc/src/lib/ltc.sdk.wallet.ts"],"names":[],"mappings":";;;AAAA,sDAAiD;AAEjD,
|
|
1
|
+
{"version":3,"file":"ltc.sdk.wallet.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/ltc/src/lib/ltc.sdk.wallet.ts"],"names":[],"mappings":";;;AAAA,sDAAiD;AAEjD,sFAA0F;AAEnF,MAAM,SAAS,GAAG,GAAG,EAAE;IAC5B,MAAM,UAAU,GAAG,wBAAU,CAAC,GAAG,CAAA;IACjC,OAAO,IAAA,4CAAc,EAAC,EAAE,UAAU,EAAE,KAAK,EAAE,IAAA,iDAAmB,EAAC,UAAU,CAAC,EAAE,CAAC,CAAA;AAC/E,CAAC,CAAA;AAHY,QAAA,SAAS,aAGrB"}
|
|
@@ -3,13 +3,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ltcTransactions = void 0;
|
|
4
4
|
const api_client_1 = require("@tatumio/api-client");
|
|
5
5
|
const shared_blockchain_btc_based_1 = require("@tatumio/shared-blockchain-btc-based");
|
|
6
|
+
const shared_core_1 = require("@tatumio/shared-core");
|
|
7
|
+
// @ts-ignore
|
|
8
|
+
const bitcore_lib_ltc_1 = require("bitcore-lib-ltc");
|
|
6
9
|
const ltcTransactions = (apiCalls = {
|
|
7
10
|
getTxByAddress: api_client_1.ApiServices.blockchain.ltc.ltcGetTxByAddress,
|
|
8
11
|
broadcast: api_client_1.ApiServices.blockchain.ltc.ltcBroadcast,
|
|
9
12
|
getRawTransaction: api_client_1.ApiServices.blockchain.ltc.ltcGetRawTransaction,
|
|
10
13
|
getUtxo: api_client_1.ApiServices.blockchain.ltc.ltcGetUtxo,
|
|
11
14
|
}) => {
|
|
12
|
-
return Object.assign({}, (0, shared_blockchain_btc_based_1.btcBasedTransactions)(api_client_1.Currency.LTC,
|
|
15
|
+
return Object.assign({}, (0, shared_blockchain_btc_based_1.btcBasedTransactions)(api_client_1.Currency.LTC, (0, shared_blockchain_btc_based_1.btcBasedWalletUtils)(shared_core_1.Blockchain.LTC), apiCalls, {
|
|
16
|
+
createTransaction: bitcore_lib_ltc_1.Transaction,
|
|
17
|
+
createPrivateKey: bitcore_lib_ltc_1.PrivateKey,
|
|
18
|
+
scriptFromAddress: bitcore_lib_ltc_1.Script.fromAddress,
|
|
19
|
+
prepareUnspentOutput: bitcore_lib_ltc_1.Transaction.UnspentOutput.fromObject,
|
|
20
|
+
}));
|
|
13
21
|
};
|
|
14
22
|
exports.ltcTransactions = ltcTransactions;
|
|
15
23
|
//# sourceMappingURL=ltc.tx.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ltc.tx.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/ltc/src/lib/transaction/ltc.tx.ts"],"names":[],"mappings":";;;AAAA,oDAA2D;AAC3D,
|
|
1
|
+
{"version":3,"file":"ltc.tx.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/ltc/src/lib/transaction/ltc.tx.ts"],"names":[],"mappings":";;;AAAA,oDAA2D;AAC3D,sFAK6C;AAC7C,sDAAiD;AACjD,aAAa;AACb,qDAAiE;AAE1D,MAAM,eAAe,GAAG,CAC7B,WAKI;IACF,cAAc,EAAE,wBAAW,CAAC,UAAU,CAAC,GAAG,CAAC,iBAAiB;IAC5D,SAAS,EAAE,wBAAW,CAAC,UAAU,CAAC,GAAG,CAAC,YAAY;IAClD,iBAAiB,EAAE,wBAAW,CAAC,UAAU,CAAC,GAAG,CAAC,oBAAoB;IAClE,OAAO,EAAE,wBAAW,CAAC,UAAU,CAAC,GAAG,CAAC,UAAU;CAC/C,EACgC,EAAE;IACnC,yBACK,IAAA,kDAAoB,EAAC,qBAAQ,CAAC,GAAG,EAAE,IAAA,iDAAmB,EAAC,wBAAU,CAAC,GAAG,CAAC,EAAE,QAAQ,EAAE;QACnF,iBAAiB,EAAE,6BAAW;QAC9B,gBAAgB,EAAE,4BAAU;QAC5B,iBAAiB,EAAE,wBAAM,CAAC,WAAW;QACrC,oBAAoB,EAAE,6BAAW,CAAC,aAAa,CAAC,UAAU;KAC3D,CAAC,EACH;AACH,CAAC,CAAA;AArBY,QAAA,eAAe,mBAqB3B"}
|