@meshsdk/transaction 1.7.21 → 1.7.23

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
@@ -1275,6 +1275,15 @@ var MeshTxBuilderCore = class {
1275
1275
  this._protocolParams = updatedParams;
1276
1276
  return this;
1277
1277
  };
1278
+ /**
1279
+ * Sets a specific fee for the transaction to use
1280
+ * @param fee The specified fee
1281
+ * @returns The MeshTxBuilder instance
1282
+ */
1283
+ setFee = (fee) => {
1284
+ this.meshTxBuilderBody.fee = fee;
1285
+ return this;
1286
+ };
1278
1287
  /**
1279
1288
  * Sets the network to use, this is mainly to know the cost models to be used to calculate script integrity hash
1280
1289
  * @param network The specific network this transaction is being built for ("testnet" | "preview" | "preprod" | "mainnet")
package/dist/index.d.cts CHANGED
@@ -472,6 +472,12 @@ declare class MeshTxBuilderCore {
472
472
  * @returns The MeshTxBuilder instance
473
473
  */
474
474
  protocolParams: (params: Partial<Protocol>) => this;
475
+ /**
476
+ * Sets a specific fee for the transaction to use
477
+ * @param fee The specified fee
478
+ * @returns The MeshTxBuilder instance
479
+ */
480
+ setFee: (fee: string) => this;
475
481
  /**
476
482
  * Sets the network to use, this is mainly to know the cost models to be used to calculate script integrity hash
477
483
  * @param network The specific network this transaction is being built for ("testnet" | "preview" | "preprod" | "mainnet")
package/dist/index.d.ts CHANGED
@@ -472,6 +472,12 @@ declare class MeshTxBuilderCore {
472
472
  * @returns The MeshTxBuilder instance
473
473
  */
474
474
  protocolParams: (params: Partial<Protocol>) => this;
475
+ /**
476
+ * Sets a specific fee for the transaction to use
477
+ * @param fee The specified fee
478
+ * @returns The MeshTxBuilder instance
479
+ */
480
+ setFee: (fee: string) => this;
475
481
  /**
476
482
  * Sets the network to use, this is mainly to know the cost models to be used to calculate script integrity hash
477
483
  * @param network The specific network this transaction is being built for ("testnet" | "preview" | "preprod" | "mainnet")
package/dist/index.js CHANGED
@@ -1242,6 +1242,15 @@ var MeshTxBuilderCore = class {
1242
1242
  this._protocolParams = updatedParams;
1243
1243
  return this;
1244
1244
  };
1245
+ /**
1246
+ * Sets a specific fee for the transaction to use
1247
+ * @param fee The specified fee
1248
+ * @returns The MeshTxBuilder instance
1249
+ */
1250
+ setFee = (fee) => {
1251
+ this.meshTxBuilderBody.fee = fee;
1252
+ return this;
1253
+ };
1245
1254
  /**
1246
1255
  * Sets the network to use, this is mainly to know the cost models to be used to calculate script integrity hash
1247
1256
  * @param network The specific network this transaction is being built for ("testnet" | "preview" | "preprod" | "mainnet")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshsdk/transaction",
3
- "version": "1.7.21",
3
+ "version": "1.7.23",
4
4
  "description": "Transactions - https://meshjs.dev/apis/transaction",
5
5
  "main": "./dist/index.cjs",
6
6
  "browser": "./dist/index.js",
@@ -35,9 +35,9 @@
35
35
  "typescript": "^5.3.3"
36
36
  },
37
37
  "dependencies": {
38
- "@meshsdk/common": "1.7.21",
39
- "@meshsdk/core-csl": "1.7.21",
40
- "@meshsdk/core-cst": "1.7.21",
38
+ "@meshsdk/common": "1.7.23",
39
+ "@meshsdk/core-csl": "1.7.23",
40
+ "@meshsdk/core-cst": "1.7.23",
41
41
  "json-bigint": "^1.0.0"
42
42
  },
43
43
  "prettier": "@meshsdk/configs/prettier",