@meshsdk/transaction 1.9.0-beta.43 → 1.9.0-beta.46
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/dist/index.cjs +5 -8
- package/dist/index.js +5 -8
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -3662,9 +3662,8 @@ var MeshTxBuilder = class _MeshTxBuilder extends MeshTxBuilderCore {
|
|
|
3662
3662
|
if (customizedTx.fee) {
|
|
3663
3663
|
this.setFee(customizedTx.fee);
|
|
3664
3664
|
}
|
|
3665
|
-
} else {
|
|
3666
|
-
this.queueAllLastItem();
|
|
3667
3665
|
}
|
|
3666
|
+
this.queueAllLastItem();
|
|
3668
3667
|
if (this.verbose) {
|
|
3669
3668
|
console.log(
|
|
3670
3669
|
"txBodyJson - before coin selection",
|
|
@@ -3682,11 +3681,9 @@ var MeshTxBuilder = class _MeshTxBuilder extends MeshTxBuilderCore {
|
|
|
3682
3681
|
}
|
|
3683
3682
|
await this.completeTxParts();
|
|
3684
3683
|
await this.sanitizeOutputs();
|
|
3684
|
+
this.sortTxParts();
|
|
3685
3685
|
const txPrototype = await this.selectUtxos();
|
|
3686
3686
|
await this.updateByTxPrototype(txPrototype, true);
|
|
3687
|
-
this.queueAllLastItem();
|
|
3688
|
-
this.removeDuplicateInputs();
|
|
3689
|
-
this.sortTxParts();
|
|
3690
3687
|
if (this.verbose) {
|
|
3691
3688
|
console.log(
|
|
3692
3689
|
"txBodyJson - after coin selection",
|
|
@@ -3709,7 +3706,6 @@ var MeshTxBuilder = class _MeshTxBuilder extends MeshTxBuilderCore {
|
|
|
3709
3706
|
computeMinimumCost: async (selectionSkeleton) => {
|
|
3710
3707
|
const clonedBuilder = this.clone();
|
|
3711
3708
|
await clonedBuilder.updateByTxPrototype(selectionSkeleton);
|
|
3712
|
-
clonedBuilder.queueAllLastItem();
|
|
3713
3709
|
try {
|
|
3714
3710
|
await clonedBuilder.evaluateRedeemers();
|
|
3715
3711
|
} catch (error) {
|
|
@@ -3746,8 +3742,6 @@ var MeshTxBuilder = class _MeshTxBuilder extends MeshTxBuilderCore {
|
|
|
3746
3742
|
maxSizeExceed: async (selectionSkeleton) => {
|
|
3747
3743
|
const clonedBuilder = this.clone();
|
|
3748
3744
|
await clonedBuilder.updateByTxPrototype(selectionSkeleton);
|
|
3749
|
-
clonedBuilder.queueAllLastItem();
|
|
3750
|
-
clonedBuilder.removeDuplicateInputs();
|
|
3751
3745
|
const maxTxSize = this._protocolParams.maxTxSize;
|
|
3752
3746
|
const txSize = clonedBuilder.getSerializedSize();
|
|
3753
3747
|
return txSize > maxTxSize;
|
|
@@ -3794,6 +3788,9 @@ var MeshTxBuilder = class _MeshTxBuilder extends MeshTxBuilderCore {
|
|
|
3794
3788
|
selectionSkeleton.redeemers ?? [],
|
|
3795
3789
|
final
|
|
3796
3790
|
);
|
|
3791
|
+
this.queueAllLastItem();
|
|
3792
|
+
this.removeDuplicateInputs();
|
|
3793
|
+
this.sortTxParts();
|
|
3797
3794
|
};
|
|
3798
3795
|
getUtxosForSelection = async () => {
|
|
3799
3796
|
const utxos = this.meshTxBuilderBody.extraInputs;
|
package/dist/index.js
CHANGED
|
@@ -3642,9 +3642,8 @@ var MeshTxBuilder = class _MeshTxBuilder extends MeshTxBuilderCore {
|
|
|
3642
3642
|
if (customizedTx.fee) {
|
|
3643
3643
|
this.setFee(customizedTx.fee);
|
|
3644
3644
|
}
|
|
3645
|
-
} else {
|
|
3646
|
-
this.queueAllLastItem();
|
|
3647
3645
|
}
|
|
3646
|
+
this.queueAllLastItem();
|
|
3648
3647
|
if (this.verbose) {
|
|
3649
3648
|
console.log(
|
|
3650
3649
|
"txBodyJson - before coin selection",
|
|
@@ -3662,11 +3661,9 @@ var MeshTxBuilder = class _MeshTxBuilder extends MeshTxBuilderCore {
|
|
|
3662
3661
|
}
|
|
3663
3662
|
await this.completeTxParts();
|
|
3664
3663
|
await this.sanitizeOutputs();
|
|
3664
|
+
this.sortTxParts();
|
|
3665
3665
|
const txPrototype = await this.selectUtxos();
|
|
3666
3666
|
await this.updateByTxPrototype(txPrototype, true);
|
|
3667
|
-
this.queueAllLastItem();
|
|
3668
|
-
this.removeDuplicateInputs();
|
|
3669
|
-
this.sortTxParts();
|
|
3670
3667
|
if (this.verbose) {
|
|
3671
3668
|
console.log(
|
|
3672
3669
|
"txBodyJson - after coin selection",
|
|
@@ -3689,7 +3686,6 @@ var MeshTxBuilder = class _MeshTxBuilder extends MeshTxBuilderCore {
|
|
|
3689
3686
|
computeMinimumCost: async (selectionSkeleton) => {
|
|
3690
3687
|
const clonedBuilder = this.clone();
|
|
3691
3688
|
await clonedBuilder.updateByTxPrototype(selectionSkeleton);
|
|
3692
|
-
clonedBuilder.queueAllLastItem();
|
|
3693
3689
|
try {
|
|
3694
3690
|
await clonedBuilder.evaluateRedeemers();
|
|
3695
3691
|
} catch (error) {
|
|
@@ -3726,8 +3722,6 @@ var MeshTxBuilder = class _MeshTxBuilder extends MeshTxBuilderCore {
|
|
|
3726
3722
|
maxSizeExceed: async (selectionSkeleton) => {
|
|
3727
3723
|
const clonedBuilder = this.clone();
|
|
3728
3724
|
await clonedBuilder.updateByTxPrototype(selectionSkeleton);
|
|
3729
|
-
clonedBuilder.queueAllLastItem();
|
|
3730
|
-
clonedBuilder.removeDuplicateInputs();
|
|
3731
3725
|
const maxTxSize = this._protocolParams.maxTxSize;
|
|
3732
3726
|
const txSize = clonedBuilder.getSerializedSize();
|
|
3733
3727
|
return txSize > maxTxSize;
|
|
@@ -3774,6 +3768,9 @@ var MeshTxBuilder = class _MeshTxBuilder extends MeshTxBuilderCore {
|
|
|
3774
3768
|
selectionSkeleton.redeemers ?? [],
|
|
3775
3769
|
final
|
|
3776
3770
|
);
|
|
3771
|
+
this.queueAllLastItem();
|
|
3772
|
+
this.removeDuplicateInputs();
|
|
3773
|
+
this.sortTxParts();
|
|
3777
3774
|
};
|
|
3778
3775
|
getUtxosForSelection = async () => {
|
|
3779
3776
|
const utxos = this.meshTxBuilderBody.extraInputs;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meshsdk/transaction",
|
|
3
|
-
"version": "1.9.0-beta.
|
|
3
|
+
"version": "1.9.0-beta.46",
|
|
4
4
|
"description": "Transactions - https://meshjs.dev/apis/transaction",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"browser": "./dist/index.js",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"typescript": "^5.3.3"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@meshsdk/common": "1.9.0-beta.
|
|
39
|
-
"@meshsdk/core-cst": "1.9.0-beta.
|
|
38
|
+
"@meshsdk/common": "1.9.0-beta.46",
|
|
39
|
+
"@meshsdk/core-cst": "1.9.0-beta.46",
|
|
40
40
|
"@cardano-sdk/core": "^0.45.5",
|
|
41
41
|
"@cardano-sdk/util": "^0.15.5",
|
|
42
42
|
"@cardano-sdk/input-selection": "^0.13.33",
|