@tatumio/doge 2.1.16 → 2.1.17
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +10 -10
- package/src/lib/doge.sdk.tx.js +2 -1
- package/src/lib/doge.sdk.tx.js.map +1 -1
package/package.json
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
{
|
2
2
|
"name": "@tatumio/doge",
|
3
|
-
"version": "2.1.
|
3
|
+
"version": "2.1.17",
|
4
4
|
"license": "MIT",
|
5
5
|
"main": "./src/index.js",
|
6
6
|
"types": "./src/index.d.ts",
|
7
7
|
"dependencies": {
|
8
|
-
"@tatumio/shared-testing-common": "2.1.
|
9
|
-
"@tatumio/api-client": "2.1.
|
8
|
+
"@tatumio/shared-testing-common": "2.1.17",
|
9
|
+
"@tatumio/api-client": "2.1.17",
|
10
10
|
"axios": "^0.26.0",
|
11
11
|
"form-data": "^4.0.0",
|
12
|
-
"@tatumio/shared-testing-btc-based": "2.1.
|
13
|
-
"@tatumio/shared-blockchain-btc-based": "2.1.
|
14
|
-
"@tatumio/shared-abstract-sdk": "2.1.
|
12
|
+
"@tatumio/shared-testing-btc-based": "2.1.17",
|
13
|
+
"@tatumio/shared-blockchain-btc-based": "2.1.17",
|
14
|
+
"@tatumio/shared-abstract-sdk": "2.1.17",
|
15
15
|
"bignumber.js": "^9.0.2",
|
16
|
-
"@tatumio/shared-core": "2.1.
|
16
|
+
"@tatumio/shared-core": "2.1.17",
|
17
17
|
"lodash": "^4.17.21",
|
18
|
-
"@tatumio/shared-blockchain-abstract": "2.1.
|
18
|
+
"@tatumio/shared-blockchain-abstract": "2.1.17",
|
19
19
|
"bip32": "^2.0.5",
|
20
20
|
"bip39": "^3.0.2",
|
21
21
|
"bitcoinjs-lib": "^5.2.0",
|
22
22
|
"hdkey": "^2.0.1",
|
23
|
-
"bitcore-lib": "
|
24
|
-
"bitcore-lib-doge": "
|
23
|
+
"bitcore-lib": "10.0.2",
|
24
|
+
"bitcore-lib-doge": "10.0.0",
|
25
25
|
"tslib": "^2.0.0"
|
26
26
|
},
|
27
27
|
"peerDependencies": {}
|
package/src/lib/doge.sdk.tx.js
CHANGED
@@ -14,7 +14,7 @@ const dogeTransactions = (apiCalls = {
|
|
14
14
|
const prepareSignedTransaction = (body) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
15
15
|
try {
|
16
16
|
const { fromUTXO, to, fee, changeAddress } = body;
|
17
|
-
const tx = new bitcore_lib_doge_1.Transaction()
|
17
|
+
const tx = new bitcore_lib_doge_1.Transaction();
|
18
18
|
const privateKeysToSign = [];
|
19
19
|
for (const item of fromUTXO) {
|
20
20
|
tx.from({
|
@@ -31,6 +31,7 @@ const dogeTransactions = (apiCalls = {
|
|
31
31
|
for (const item of to) {
|
32
32
|
tx.to(item.address, shared_abstract_sdk_1.amountUtils.toSatoshis(item.value));
|
33
33
|
}
|
34
|
+
tx.fee(shared_abstract_sdk_1.amountUtils.toSatoshis(fee)).change(changeAddress);
|
34
35
|
if (fromUTXO && 'signatureId' in fromUTXO[0] && fromUTXO[0].signatureId) {
|
35
36
|
return JSON.stringify(tx);
|
36
37
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"doge.sdk.tx.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/doge/src/lib/doge.sdk.tx.ts"],"names":[],"mappings":";;;;AAAA,aAAa;AACb,uDAAkE;AAClE,
|
1
|
+
{"version":3,"file":"doge.sdk.tx.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/doge/src/lib/doge.sdk.tx.ts"],"names":[],"mappings":";;;;AAAA,aAAa;AACb,uDAAkE;AAClE,oDAA+G;AAE/G,sEAA0D;AAC1D,uDAAgD;AAIzC,MAAM,gBAAgB,GAAG,CAC9B,WAEI;IACF,aAAa,EAAE,wBAAW,CAAC,UAAU,CAAC,IAAI,CAAC,aAAa;CACzD,EACiC,EAAE;IACpC,iCAAiC;IACjC,MAAM,wBAAwB,GAAG,CAAO,IAA0B,EAAmB,EAAE;QACrF,IAAI;YACF,MAAM,EAAE,QA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