@utexo/rgb-lib-linux-x64 0.3.0-beta.12.vss → 0.3.0-beta.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utexo/rgb-lib-linux-x64",
3
- "version": "0.3.0-beta.12.vss",
3
+ "version": "0.3.0-beta.13",
4
4
  "description": "Node.js bindings for rgb-lib on linux-x64",
5
5
  "main": "wrapper.js",
6
6
  "os": [
package/wrapper.js CHANGED
@@ -881,6 +881,23 @@ exports.Wallet = class Wallet {
881
881
  }
882
882
  };
883
883
 
884
+ exports.validateConsignment = function validateConsignment(filePath, indexerUrl, bitcoinNetwork) {
885
+ const params = { filePath, indexerUrl, bitcoinNetwork };
886
+ const expectedTypes = {
887
+ filePath: "string",
888
+ indexerUrl: "string",
889
+ bitcoinNetwork: "string",
890
+ };
891
+ validateTypes(params, expectedTypes);
892
+ validateEnumValues(
893
+ { bitcoinNetwork },
894
+ { bitcoinNetwork: BitcoinNetwork },
895
+ );
896
+ return JSON.parse(
897
+ lib.rgblib_validate_consignment(filePath, indexerUrl, bitcoinNetwork),
898
+ );
899
+ };
900
+
884
901
  exports.Invoice = class Invoice {
885
902
  constructor(invoiceString) {
886
903
  const params = { invoiceString };