@tatumio/doge 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
{
|
2
2
|
"name": "@tatumio/doge",
|
3
|
-
"version": "2.2.
|
3
|
+
"version": "2.2.1",
|
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.2.
|
9
|
-
"@tatumio/api-client": "2.2.
|
8
|
+
"@tatumio/shared-testing-common": "2.2.1",
|
9
|
+
"@tatumio/api-client": "2.2.1",
|
10
10
|
"axios": "^0.26.0",
|
11
11
|
"form-data": "^4.0.0",
|
12
|
-
"@tatumio/shared-testing-btc-based": "2.2.
|
13
|
-
"@tatumio/shared-blockchain-btc-based": "2.2.
|
14
|
-
"@tatumio/shared-abstract-sdk": "2.2.
|
12
|
+
"@tatumio/shared-testing-btc-based": "2.2.1",
|
13
|
+
"@tatumio/shared-blockchain-btc-based": "2.2.1",
|
14
|
+
"@tatumio/shared-abstract-sdk": "2.2.1",
|
15
15
|
"bignumber.js": "^9.0.2",
|
16
|
-
"@tatumio/shared-core": "2.2.
|
16
|
+
"@tatumio/shared-core": "2.2.1",
|
17
17
|
"lodash": "^4.17.21",
|
18
|
-
"@tatumio/shared-blockchain-abstract": "2.2.
|
18
|
+
"@tatumio/shared-blockchain-abstract": "2.2.1",
|
19
19
|
"bip32": "^2.0.5",
|
20
20
|
"bip39": "^3.0.2",
|
21
21
|
"bitcoinjs-lib": "^5.2.0",
|
package/src/lib/doge.sdk.tx.js
CHANGED
@@ -45,7 +45,7 @@ const dogeTransactions = (apiCalls = {
|
|
45
45
|
if (totalInputs >= totalOutputs) {
|
46
46
|
break;
|
47
47
|
}
|
48
|
-
const utxos = yield apiCalls.getUTXOsByAddress(options.testnet ? 'doge-testnet' : 'doge', item.address, totalOutputs - totalInputs);
|
48
|
+
const utxos = yield apiCalls.getUTXOsByAddress(options.testnet ? 'doge-testnet' : 'doge', item.address, shared_abstract_sdk_1.amountUtils.fromSatoshis(totalOutputs - totalInputs));
|
49
49
|
for (const utxo of utxos) {
|
50
50
|
const satoshis = shared_abstract_sdk_1.amountUtils.toSatoshis(utxo.value);
|
51
51
|
totalInputs += satoshis;
|
@@ -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,oDAS4B;AAE5B,sEAA0D;AAC1D,uDAAgD;AAUzC,MAAM,gBAAgB,GAAG,CAC9B,WAII;IACF,aAAa,EAAE,wBAAW,CAAC,UAAU,CAAC,IAAI,CAAC,aAAa;IACxD,iBAAiB,EAAE,2BAAc,CAAC,iBAAiB;IACnD,OAAO,EAAE,wBAAW,CAAC,UAAU,CAAC,IAAI,CAAC,WAAW;CACjD,EACiC,EAAE;IACpC,MAAM,wBAAwB,GAAG,CAAO,IAA0B,EAAE,OAAsB,EAAmB,EAAE;QAC7G,IAAI;YACF,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,aAAa,EAAE,GAAG,IAAI,CAAA;YACvC,MAAM,WAAW,GAAG,IAAI,8BAAW,EAAE,CAAA;YAErC,MAAM,iBAAiB,GAAG,EAAE,CAAA;YAC5B,IAAI,YAAY,GAAG,iCAAW,CAAC,UAAU,CAAC,GAAI,CAAC,CAAA;YAC/C,KAAK,MAAM,IAAI,IAAI,EAAE,EAAE;gBACrB,MAAM,MAAM,GAAG,iCAAW,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;gBACjD,YAAY,IAAI,MAAM,CAAA;gBACtB,WAAW,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA;aACrC;YACD,IAAI,UAAU,IAAI,IAAI,EAAE;gBACtB,KAAK,MAAM,IAAI,IAAI,IAA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