@secux/app-bch
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -41,3 +41,3 @@ import { SecuxBTC } from "@secux/app-btc"; | ||
static prepareSign(...args: T4): { | ||
commandData: import("@secux/utility/lib/communication").communicationData; | ||
commands: import("@secux/utility/lib/communication").communicationData[]; | ||
rawTx: string; | ||
@@ -44,0 +44,0 @@ }; |
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SecuxBCH=void 0;const e=require("@secux/app-btc"),r=require("ow"),t=require("@secux/utility"),i=require("@secux/app-btc/lib/interface"),s=i.coinmap[e.CoinType.BITCOINCASH].coinType;class p extends e.SecuxBTC{static addressConvert(...r){return"string"==typeof r[1]?c(r[1]):(r[1].coin=e.CoinType.BITCOINCASH,o(r[1].script)),super.addressConvert(...r)}static prepareAddress(...r){return c(r[0]),r[1]&&(r[1].coin=e.CoinType.BITCOINCASH,void 0!==r[1].script&&o(r[1].script)),super.prepareAddress(...r)}static resolveAddress(...t){let s;if("string"==typeof t[1]){c(t[1]);s="49"===t[1].match(/\d+/g)[0]?e.ScriptType.P2SH_P2PKH:e.ScriptType.P2PKH}else(0,r.default)(t[1],i.ow_PathObject),o(t[1].script),s=t[1].script;return super.resolveAddress(t[0],{coin:e.CoinType.BITCOINCASH,script:s})}static prepareSign(...r){var t;for(let t of r[0])n(t.path),t.script=e.ScriptType.P2PKH;return n(r[1].to.path),n(null===(t=r[1].utxo)||void 0===t?void 0:t.path),super.prepareSign(...r)}static resolveTransaction(...r){return super.resolveTransaction(r[0],r[1],r[2],e.CoinType.BITCOINCASH)}}function c(e){(0,r.default)(e,(0,t.ow_strictPath)(s,[44,49]))}function o(r){if(!Object.values([e.ScriptType.P2PKH,e.ScriptType.P2SH_P2PKH]).includes(r))throw Error(`ArgumentError: invalid script for BCH, got "${e.ScriptType[r]}"`)}function n(e){e&&(0,r.default)(e,(0,t.ow_strictPath)(s,44))}exports.SecuxBCH=p; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SecuxBCH=void 0;const e=require("@secux/app-btc"),r=require("ow"),t=require("@secux/utility"),i=require("@secux/app-btc/lib/interface"),s=i.coinmap[e.CoinType.BITCOINCASH].coinType;class p extends e.SecuxBTC{static addressConvert(...r){return"string"==typeof r[1]?c(r[1]):(r[1].coin=e.CoinType.BITCOINCASH,o(r[1].script)),super.addressConvert(...r)}static prepareAddress(...r){return c(r[0]),r[1]&&(r[1].coin=e.CoinType.BITCOINCASH,void 0!==r[1].script&&o(r[1].script)),super.prepareAddress(...r)}static resolveAddress(...t){let s;if("string"==typeof t[1]){c(t[1]);s="49"===t[1].match(/\d+/g)[0]?e.ScriptType.P2SH_P2PKH:e.ScriptType.P2PKH}else(0,r.default)(t[1],i.ow_PathObject),o(t[1].script),s=t[1].script;return super.resolveAddress(t[0],{coin:e.CoinType.BITCOINCASH,script:s})}static prepareSign(...r){var t;for(let t of r[0])n(t.path),t.script=e.ScriptType.P2PKH;return n(r[1].to.path),n(null===(t=r[1].utxo)||void 0===t?void 0:t.path),super.prepareSign(...r)}static resolveTransaction(...r){return super.resolveTransaction(r[0],Object.assign(Object.assign({},r[1]),{coin:e.CoinType.BITCOINCASH}))}}function c(e){(0,r.default)(e,(0,t.ow_strictPath)(s,[44,49]))}function o(r){if(!Object.values([e.ScriptType.P2PKH,e.ScriptType.P2SH_P2PKH]).includes(r))throw Error(`ArgumentError: invalid script for BCH, got "${e.ScriptType[r]}"`)}function n(e){e&&(0,r.default)(e,(0,t.ow_strictPath)(s,44))}exports.SecuxBCH=p; |
{ | ||
"name": "@secux/app-bch", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "SecuX Hardware Wallet BCH API", | ||
@@ -31,4 +31,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@secux/app-btc": "^3.0.0" | ||
"@secux/app-btc": "^3.2.0" | ||
} | ||
} |
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
6269
Updated@secux/app-btc@^3.2.0