@liquality/bitcoin-utils
Advanced tools
Comparing version 0.4.26-beta.4 to 0.4.26-beta.5
@@ -1,2 +0,2 @@ | ||
module.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var u=e[r]={i:r,l:!1,exports:{}};return t[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var u in t)n.d(r,u,function(e){return t[e]}.bind(null,u));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=5)}([function(t,e){t.exports=require("@liquality/crypto")},function(t,e){t.exports=require("@liquality/bitcoin-networks")},function(t,e){t.exports=require("lodash")},function(t){t.exports=JSON.parse('{"a":"0.4.26-beta.4"}')},function(t,e){t.exports=require("coinselect")},function(t,e,n){"use strict";n.r(e),n.d(e,"calculateFee",(function(){return a})),n.d(e,"compressPubKey",(function(){return l})),n.d(e,"getAddressNetwork",(function(){return p})),n.d(e,"selectCoins",(function(){return d})),n.d(e,"AddressTypes",(function(){return b}));var r=n(2),u=n(0),o=n(1),i=n.n(o),c=n(4),s=n.n(c),f=n(3);function a(t,e,n){return(148*t+34*e+10)*n}function l(t){const e=t.substring(2,66),n=t.substring(66,130);return(parseInt(n.substring(62,64),16)%2==0?"02":"03")+e}function p(t){let e;if(e=Object(r.findKey)(i.a,e=>t.startsWith(e.bech32)),!e){const n=u.base58.decode(t).toString("hex").substring(0,2);e=Object(r.findKey)(i.a,t=>[Object(u.padHexStart)(t.pubKeyHash.toString(16),2),Object(u.padHexStart)(t.scriptHash.toString(16),2)].includes(n))}return i.a[e]}function d(t,e,n,r){let u,o,i=0;for(let c=n;i<r;c++)({inputs:u,outputs:o,fee:i}=s()(t,e,Math.ceil(c)));return{inputs:u,outputs:o,fee:i}}n.d(e,"version",(function(){return f.a}));const b=["legacy","p2sh-segwit","bech32"]}]); | ||
module.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var u=e[r]={i:r,l:!1,exports:{}};return t[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var u in t)n.d(r,u,function(e){return t[e]}.bind(null,u));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=5)}([function(t,e){t.exports=require("@liquality/crypto")},function(t,e){t.exports=require("@liquality/bitcoin-networks")},function(t,e){t.exports=require("lodash")},function(t){t.exports=JSON.parse('{"a":"0.4.26-beta.5"}')},function(t,e){t.exports=require("coinselect")},function(t,e,n){"use strict";n.r(e),n.d(e,"calculateFee",(function(){return a})),n.d(e,"compressPubKey",(function(){return l})),n.d(e,"getAddressNetwork",(function(){return p})),n.d(e,"selectCoins",(function(){return d})),n.d(e,"AddressTypes",(function(){return b}));var r=n(2),u=n(0),o=n(1),i=n.n(o),c=n(4),s=n.n(c),f=n(3);function a(t,e,n){return(148*t+34*e+10)*n}function l(t){const e=t.substring(2,66),n=t.substring(66,130);return(parseInt(n.substring(62,64),16)%2==0?"02":"03")+e}function p(t){let e;if(e=Object(r.findKey)(i.a,e=>t.startsWith(e.bech32)),!e){const n=u.base58.decode(t).toString("hex").substring(0,2);e=Object(r.findKey)(i.a,t=>[Object(u.padHexStart)(t.pubKeyHash.toString(16),2),Object(u.padHexStart)(t.scriptHash.toString(16),2)].includes(n))}return i.a[e]}function d(t,e,n,r){let u,o,i=0;for(let c=n;i<r;c++)({inputs:u,outputs:o,fee:i}=s()(t,e,Math.ceil(c)));return{inputs:u,outputs:o,fee:i}}n.d(e,"version",(function(){return f.a}));const b=["legacy","p2sh-segwit","bech32"]}]); | ||
//# sourceMappingURL=index.cjs.js.map |
{ | ||
"name": "@liquality/bitcoin-utils", | ||
"umdName": "BitcoinUtils", | ||
"version": "0.4.26-beta.4", | ||
"version": "0.4.26-beta.5", | ||
"description": "", | ||
@@ -20,5 +20,5 @@ "module": "lib/index.js", | ||
"dependencies": { | ||
"@liquality/bitcoin-networks": "^0.4.26-beta.4", | ||
"@liquality/crypto": "^0.4.26-beta.4", | ||
"@liquality/utils": "^0.4.26-beta.4", | ||
"@liquality/bitcoin-networks": "^0.4.26-beta.5", | ||
"@liquality/crypto": "^0.4.26-beta.5", | ||
"@liquality/utils": "^0.4.26-beta.5", | ||
"coinselect": "^3.1.11", | ||
@@ -41,3 +41,3 @@ "lodash": "^4.17.15" | ||
}, | ||
"gitHead": "43a93575deda42a189828ec15b588e4da16b9033" | ||
"gitHead": "e6eacbe8a9aeb4d1797bf4009f7c690b9cdf80e0" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1720333
1529