@meshsdk/common 1.6.8 → 1.6.10

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 CHANGED
@@ -148,7 +148,8 @@ var DEFAULT_PROTOCOL_PARAMETERS = {
148
148
  maxTxExMem: "16000000",
149
149
  maxTxExSteps: "10000000000",
150
150
  maxBlockExMem: "80000000",
151
- maxBlockExSteps: "40000000000"
151
+ maxBlockExSteps: "40000000000",
152
+ minFeeRefScriptCostPerByte: 15
152
153
  };
153
154
  var resolveTxFees = (txSize, minFeeA = DEFAULT_PROTOCOL_PARAMETERS.minFeeA, minFeeB = DEFAULT_PROTOCOL_PARAMETERS.minFeeB) => {
154
155
  const fees = BigInt(minFeeA) * BigInt(txSize) + BigInt(minFeeB);
@@ -683,7 +684,8 @@ var emptyTxBuilderBody = () => ({
683
684
  threshold: "5000000",
684
685
  strategy: "experimental",
685
686
  includeTxFees: true
686
- }
687
+ },
688
+ network: "mainnet"
687
689
  });
688
690
  var validityRangeToObj = (validityRange) => {
689
691
  return {
package/dist/index.d.cts CHANGED
@@ -210,6 +210,7 @@ type Protocol = {
210
210
  collateralPercent: number;
211
211
  maxCollateralInputs: number;
212
212
  coinsPerUtxoSize: number;
213
+ minFeeRefScriptCostPerByte: number;
213
214
  };
214
215
  declare const castProtocol: (data: Partial<Record<keyof Protocol, any>>) => Protocol;
215
216
 
@@ -322,7 +323,7 @@ type SimpleScriptSourceInfo = {
322
323
  type: "Inline";
323
324
  txHash: string;
324
325
  txIndex: number;
325
- simpleScriptHash: string;
326
+ simpleScriptHash?: string;
326
327
  };
327
328
 
328
329
  type Certificate = {
@@ -514,6 +515,7 @@ type MeshTxBuilderBody = {
514
515
  strategy: UtxoSelectionStrategy;
515
516
  includeTxFees: boolean;
516
517
  };
518
+ network: string;
517
519
  };
518
520
  declare const emptyTxBuilderBody: () => MeshTxBuilderBody;
519
521
  type ValidityRange = {
@@ -650,6 +652,7 @@ interface ISubmitter {
650
652
  }
651
653
 
652
654
  interface IMeshTxSerializer {
655
+ verbose: boolean;
653
656
  serializeTxBody(txBuilderBody: MeshTxBuilderBody, protocolParams: Protocol): string;
654
657
  addSigningKeys(txHex: string, signingKeys: string[]): string;
655
658
  resolver: IResolver;
package/dist/index.d.ts CHANGED
@@ -210,6 +210,7 @@ type Protocol = {
210
210
  collateralPercent: number;
211
211
  maxCollateralInputs: number;
212
212
  coinsPerUtxoSize: number;
213
+ minFeeRefScriptCostPerByte: number;
213
214
  };
214
215
  declare const castProtocol: (data: Partial<Record<keyof Protocol, any>>) => Protocol;
215
216
 
@@ -322,7 +323,7 @@ type SimpleScriptSourceInfo = {
322
323
  type: "Inline";
323
324
  txHash: string;
324
325
  txIndex: number;
325
- simpleScriptHash: string;
326
+ simpleScriptHash?: string;
326
327
  };
327
328
 
328
329
  type Certificate = {
@@ -514,6 +515,7 @@ type MeshTxBuilderBody = {
514
515
  strategy: UtxoSelectionStrategy;
515
516
  includeTxFees: boolean;
516
517
  };
518
+ network: string;
517
519
  };
518
520
  declare const emptyTxBuilderBody: () => MeshTxBuilderBody;
519
521
  type ValidityRange = {
@@ -650,6 +652,7 @@ interface ISubmitter {
650
652
  }
651
653
 
652
654
  interface IMeshTxSerializer {
655
+ verbose: boolean;
653
656
  serializeTxBody(txBuilderBody: MeshTxBuilderBody, protocolParams: Protocol): string;
654
657
  addSigningKeys(txHex: string, signingKeys: string[]): string;
655
658
  resolver: IResolver;
package/dist/index.js CHANGED
@@ -19,7 +19,8 @@ var DEFAULT_PROTOCOL_PARAMETERS = {
19
19
  maxTxExMem: "16000000",
20
20
  maxTxExSteps: "10000000000",
21
21
  maxBlockExMem: "80000000",
22
- maxBlockExSteps: "40000000000"
22
+ maxBlockExSteps: "40000000000",
23
+ minFeeRefScriptCostPerByte: 15
23
24
  };
24
25
  var resolveTxFees = (txSize, minFeeA = DEFAULT_PROTOCOL_PARAMETERS.minFeeA, minFeeB = DEFAULT_PROTOCOL_PARAMETERS.minFeeB) => {
25
26
  const fees = BigInt(minFeeA) * BigInt(txSize) + BigInt(minFeeB);
@@ -554,7 +555,8 @@ var emptyTxBuilderBody = () => ({
554
555
  threshold: "5000000",
555
556
  strategy: "experimental",
556
557
  includeTxFees: true
557
- }
558
+ },
559
+ network: "mainnet"
558
560
  });
559
561
  var validityRangeToObj = (validityRange) => {
560
562
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshsdk/common",
3
- "version": "1.6.8",
3
+ "version": "1.6.10",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",