@btc-vision/transaction 1.6.5 → 1.6.6
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/browser/_version.d.ts +1 -1
- package/browser/index.js +1 -1
- package/build/_version.d.ts +1 -1
- package/build/_version.js +1 -1
- package/build/transaction/builders/MultiSignTransaction.js +2 -2
- package/package.json +9 -9
- package/src/_version.ts +1 -1
- package/src/transaction/builders/InteractionTransactionP2WDA.ts +5 -1
- package/src/transaction/builders/MultiSignTransaction.ts +2 -2
package/build/_version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.6.
|
|
1
|
+
export declare const version = "1.6.6";
|
package/build/_version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '1.6.
|
|
1
|
+
export const version = '1.6.6';
|
|
@@ -297,9 +297,9 @@ export class MultiSignTransaction extends TransactionBuilder {
|
|
|
297
297
|
];
|
|
298
298
|
}
|
|
299
299
|
getTotalOutputAmount(utxos) {
|
|
300
|
-
let total =
|
|
300
|
+
let total = 0n;
|
|
301
301
|
for (const utxo of utxos) {
|
|
302
|
-
total +=
|
|
302
|
+
total += utxo.value;
|
|
303
303
|
}
|
|
304
304
|
return total;
|
|
305
305
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@btc-vision/transaction",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.6.
|
|
4
|
+
"version": "1.6.6",
|
|
5
5
|
"author": "BlobMaster41",
|
|
6
6
|
"description": "OPNet transaction library allows you to create and sign transactions for the OPNet network.",
|
|
7
7
|
"engines": {
|
|
@@ -71,9 +71,9 @@
|
|
|
71
71
|
"@babel/preset-flow": "^7.27.1",
|
|
72
72
|
"@babel/preset-react": "^7.27.1",
|
|
73
73
|
"@babel/preset-typescript": "^7.27.1",
|
|
74
|
-
"@types/node": "^24.1
|
|
74
|
+
"@types/node": "^24.2.1",
|
|
75
75
|
"@types/sha.js": "^2.4.4",
|
|
76
|
-
"eslint": "^9.
|
|
76
|
+
"eslint": "^9.33.0",
|
|
77
77
|
"gulp": "^5.0.1",
|
|
78
78
|
"gulp-cached": "^1.1.1",
|
|
79
79
|
"gulp-typescript": "^6.0.0-alpha.1",
|
|
@@ -82,17 +82,17 @@
|
|
|
82
82
|
"prettier": "^3.6.2",
|
|
83
83
|
"stream-browserify": "^3.0.0",
|
|
84
84
|
"stream-http": "^3.2.0",
|
|
85
|
-
"typedoc": "^0.28.
|
|
86
|
-
"typescript-eslint": "^8.
|
|
85
|
+
"typedoc": "^0.28.10",
|
|
86
|
+
"typescript-eslint": "^8.39.1",
|
|
87
87
|
"webpack-cli": "^6.0.1"
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.
|
|
90
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
|
|
91
91
|
"@bitcoinerlab/secp256k1": "^1.2.0",
|
|
92
92
|
"@btc-vision/bitcoin": "^6.4.8",
|
|
93
93
|
"@btc-vision/bitcoin-rpc": "^1.0.2",
|
|
94
94
|
"@btc-vision/logger": "^1.0.6",
|
|
95
|
-
"@eslint/js": "^9.
|
|
95
|
+
"@eslint/js": "^9.33.0",
|
|
96
96
|
"@noble/secp256k1": "^2.3.0",
|
|
97
97
|
"assert": "^2.1.0",
|
|
98
98
|
"babel-loader": "^10.0.0",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"sha.js": "^2.4.12",
|
|
113
113
|
"ts-loader": "^9.5.2",
|
|
114
114
|
"ts-node": "^10.9.2",
|
|
115
|
-
"typescript": "^5.
|
|
116
|
-
"webpack": "^5.
|
|
115
|
+
"typescript": "^5.9.2",
|
|
116
|
+
"webpack": "^5.101.0"
|
|
117
117
|
}
|
|
118
118
|
}
|
package/src/_version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '1.6.
|
|
1
|
+
export const version = '1.6.6';
|
|
@@ -2,7 +2,11 @@ import { Buffer } from 'buffer';
|
|
|
2
2
|
import { Psbt, PsbtInput, toXOnly } from '@btc-vision/bitcoin';
|
|
3
3
|
import { TransactionType } from '../enums/TransactionType.js';
|
|
4
4
|
import { IInteractionParameters } from '../interfaces/ITransactionParameters.js';
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
MINIMUM_AMOUNT_CA,
|
|
7
|
+
MINIMUM_AMOUNT_REWARD,
|
|
8
|
+
TransactionBuilder,
|
|
9
|
+
} from './TransactionBuilder.js';
|
|
6
10
|
import { MessageSigner } from '../../keypair/MessageSigner.js';
|
|
7
11
|
import { Compressor } from '../../bytecode/Compressor.js';
|
|
8
12
|
import { P2WDAGenerator } from '../../generators/builders/P2WDAGenerator.js';
|
|
@@ -613,9 +613,9 @@ export class MultiSignTransaction extends TransactionBuilder<TransactionType.MUL
|
|
|
613
613
|
}
|
|
614
614
|
|
|
615
615
|
private getTotalOutputAmount(utxos: UTXO[]): bigint {
|
|
616
|
-
let total =
|
|
616
|
+
let total: bigint = 0n;
|
|
617
617
|
for (const utxo of utxos) {
|
|
618
|
-
total +=
|
|
618
|
+
total += utxo.value;
|
|
619
619
|
}
|
|
620
620
|
|
|
621
621
|
return total;
|