mainnet-js 0.4.33 → 0.4.34

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.html CHANGED
@@ -1 +1 @@
1
- <!doctype html><html><head><meta charset="utf-8"><title>The Empty Mainnet App</title><meta name="viewport" content="width=device-width,initial-scale=1"><script defer="defer" src="mainnet-0.4.33.js"></script></head><body></body></html>
1
+ <!doctype html><html><head><meta charset="utf-8"><title>The Empty Mainnet App</title><meta name="viewport" content="width=device-width,initial-scale=1"><script defer="defer" src="mainnet-0.4.34.js"></script></head><body></body></html>
@@ -1,6 +1,7 @@
1
1
  export { amountInSatoshi } from "./amountInSatoshi";
2
2
  export { asSendRequestObject } from "./asSendRequestObject";
3
3
  export { atob, btoa } from "./base64";
4
+ export { binToHex, hexToBin } from "@bitauth/libauth";
4
5
  export { convert, convertObject } from "./convert";
5
6
  export { delay } from "./delay";
6
7
  export { derivedNetwork } from "./deriveNetwork";
@@ -19,7 +19,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
19
19
  return result;
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.balanceResponseFromSatoshi = exports.balanceFromSatoshi = exports.BalanceResponse = exports.sumUtxoValue = exports.randomValues = exports.getXPubKey = exports.getRandomInt = exports.sanitizeUnit = exports.sanitizeAddress = exports.ExchangeRate = exports.getUsdRate = exports.RuntimePlatform = exports.getRuntimePlatform = exports.getXpubKeyInfoObject = exports.getXpubKeyInfo = exports.getAddrsByXpubKeyObject = exports.getAddrsByXpubKey = exports.derivePublicKeyHash = exports.derivedNetwork = exports.delay = exports.convertObject = exports.convert = exports.btoa = exports.atob = exports.asSendRequestObject = exports.amountInSatoshi = void 0;
22
+ exports.balanceResponseFromSatoshi = exports.balanceFromSatoshi = exports.BalanceResponse = exports.sumUtxoValue = exports.randomValues = exports.getXPubKey = exports.getRandomInt = exports.sanitizeUnit = exports.sanitizeAddress = exports.ExchangeRate = exports.getUsdRate = exports.RuntimePlatform = exports.getRuntimePlatform = exports.getXpubKeyInfoObject = exports.getXpubKeyInfo = exports.getAddrsByXpubKeyObject = exports.getAddrsByXpubKey = exports.derivePublicKeyHash = exports.derivedNetwork = exports.delay = exports.convertObject = exports.convert = exports.hexToBin = exports.binToHex = exports.btoa = exports.atob = exports.asSendRequestObject = exports.amountInSatoshi = void 0;
23
23
  var amountInSatoshi_1 = require("./amountInSatoshi");
24
24
  Object.defineProperty(exports, "amountInSatoshi", { enumerable: true, get: function () { return amountInSatoshi_1.amountInSatoshi; } });
25
25
  var asSendRequestObject_1 = require("./asSendRequestObject");
@@ -27,6 +27,9 @@ Object.defineProperty(exports, "asSendRequestObject", { enumerable: true, get: f
27
27
  var base64_1 = require("./base64");
28
28
  Object.defineProperty(exports, "atob", { enumerable: true, get: function () { return base64_1.atob; } });
29
29
  Object.defineProperty(exports, "btoa", { enumerable: true, get: function () { return base64_1.btoa; } });
30
+ var libauth_1 = require("@bitauth/libauth");
31
+ Object.defineProperty(exports, "binToHex", { enumerable: true, get: function () { return libauth_1.binToHex; } });
32
+ Object.defineProperty(exports, "hexToBin", { enumerable: true, get: function () { return libauth_1.hexToBin; } });
30
33
  var convert_1 = require("./convert");
31
34
  Object.defineProperty(exports, "convert", { enumerable: true, get: function () { return convert_1.convert; } });
32
35
  Object.defineProperty(exports, "convertObject", { enumerable: true, get: function () { return convert_1.convertObject; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/util/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAoD;AAA3C,kHAAA,eAAe,OAAA;AACxB,6DAA4D;AAAnD,0HAAA,mBAAmB,OAAA;AAC5B,mCAAsC;AAA7B,8FAAA,IAAI,OAAA;AAAE,8FAAA,IAAI,OAAA;AACnB,qCAAmD;AAA1C,kGAAA,OAAO,OAAA;AAAE,wGAAA,aAAa,OAAA;AAC/B,iCAAgC;AAAvB,8FAAA,KAAK,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iB,OAAA;AACjB,4HAAA,uBAAuB,OAAA;AACvB,mHAAA,cAAc,OAAA;AACd,yHAAA,oBAAoB,OAAA;AAEtB,2DAA2E;AAAlE,wHAAA,kBAAkB,OAAA;AAAE,qHAAA,eAAe,OAAA;AAC5C,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,qDAAoD;AAA3C,4GAAA,YAAY,OAAA;AACrB,qDAAoD;AAA3C,kHAAA,eAAe,OAAA;AACxB,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,yCAA2C;AAAlC,yGAAA,YAAY,OAAA;AACrB,iDAAgD;AAAvC,wGAAA,UAAU,OAAA;AACnB,6DAA+C;AACtC,oCAAY;AACrB,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,uEAIoC;AAHlC,2HAAA,eAAe,OAAA;AACf,8HAAA,kBAAkB,OAAA;AAClB,sIAAA,0BAA0B,OAAA"}
@@ -139,7 +139,7 @@ export declare class Wallet extends BaseWallet {
139
139
  */
140
140
  private sendMaxRaw;
141
141
  /**
142
- * encodeTransaction given a list of sendRequests, options and estimate fees.
142
+ * encodeTransaction Encode and sign a transaction given a list of sendRequests, options and estimate fees.
143
143
  * @param {SendRequest[]} sendRequests SendRequests
144
144
  * @param {boolean} discardChange=false
145
145
  * @param {SendRequestOptionsI} options Options of the send requests
@@ -645,7 +645,7 @@ class Wallet extends Base_1.BaseWallet {
645
645
  return txId;
646
646
  }
647
647
  /**
648
- * encodeTransaction given a list of sendRequests, options and estimate fees.
648
+ * encodeTransaction Encode and sign a transaction given a list of sendRequests, options and estimate fees.
649
649
  * @param {SendRequest[]} sendRequests SendRequests
650
650
  * @param {boolean} discardChange=false
651
651
  * @param {SendRequestOptionsI} options Options of the send requests