@bitaccess/coinlib-litecoin
Advanced tools
Comparing version 7.0.0 to 7.0.1
@@ -9,4 +9,3 @@ 'use strict'; | ||
var t = require('io-ts'); | ||
var tsCommon = require('@faast/ts-common'); | ||
var tsCommon$1 = require('@bitaccess/ts-common'); | ||
var tsCommon = require('@bitaccess/ts-common'); | ||
var lodash = require('lodash'); | ||
@@ -307,3 +306,3 @@ | ||
var _a; | ||
const format = tsCommon$1.assertType(tsCommon$1.optional(LitecoinAddressFormatT), (_a = options === null || options === void 0 ? void 0 : options.format) !== null && _a !== void 0 ? _a : this.validAddressFormat, 'format'); | ||
const format = tsCommon.assertType(tsCommon.optional(LitecoinAddressFormatT), (_a = options === null || options === void 0 ? void 0 : options.format) !== null && _a !== void 0 ? _a : this.validAddressFormat, 'format'); | ||
return isValidAddress(address, this.networkType, format); | ||
@@ -313,3 +312,3 @@ } | ||
var _a, _b; | ||
const format = tsCommon$1.assertType(LitecoinAddressFormatT, (_b = (_a = options === null || options === void 0 ? void 0 : options.format) !== null && _a !== void 0 ? _a : this.validAddressFormat) !== null && _b !== void 0 ? _b : DEFAULT_ADDRESS_FORMAT, 'format'); | ||
const format = tsCommon.assertType(LitecoinAddressFormatT, (_b = (_a = options === null || options === void 0 ? void 0 : options.format) !== null && _a !== void 0 ? _a : this.validAddressFormat) !== null && _b !== void 0 ? _b : DEFAULT_ADDRESS_FORMAT, 'format'); | ||
const standardized = standardizeAddress(address, this.networkType, format); | ||
@@ -334,3 +333,3 @@ if (standardized && address !== standardized) { | ||
determinePathForIndex(accountIndex, options) { | ||
const addressType = (options === null || options === void 0 ? void 0 : options.addressType) ? tsCommon$1.assertType(coinlibBitcoin.AddressTypeT, options === null || options === void 0 ? void 0 : options.addressType) : DEFAULT_ADDRESS_TYPE; | ||
const addressType = (options === null || options === void 0 ? void 0 : options.addressType) ? tsCommon.assertType(coinlibBitcoin.AddressTypeT, options === null || options === void 0 ? void 0 : options.addressType) : DEFAULT_ADDRESS_TYPE; | ||
const networkType = this.networkType; | ||
@@ -464,3 +463,3 @@ if (!this.determinePathForIndexFn) { | ||
determinePathForIndex(accountIndex, options) { | ||
const addressType = (options === null || options === void 0 ? void 0 : options.addressType) ? tsCommon$1.assertType(AddressTypeT, options === null || options === void 0 ? void 0 : options.addressType) : DEFAULT_ADDRESS_TYPE; | ||
const addressType = (options === null || options === void 0 ? void 0 : options.addressType) ? tsCommon.assertType(AddressTypeT, options === null || options === void 0 ? void 0 : options.addressType) : DEFAULT_ADDRESS_TYPE; | ||
const networkType = this.networkType; | ||
@@ -467,0 +466,0 @@ if (!this.determinePathForIndexFn) { |
@@ -6,4 +6,3 @@ import * as bitcoin from 'bitcoinjs-lib-bigint'; | ||
import * as t from 'io-ts'; | ||
import { enumCodec, extendCodec, instanceofCodec, requiredOptionalCodec, assertType as assertType$1, isUndefined, isString } from '@faast/ts-common'; | ||
import { assertType, optional } from '@bitaccess/ts-common'; | ||
import { enumCodec, extendCodec, instanceofCodec, requiredOptionalCodec, assertType, optional, isUndefined, isString } from '@bitaccess/ts-common'; | ||
import { omit } from 'lodash'; | ||
@@ -500,3 +499,3 @@ | ||
this.config = config; | ||
assertType$1(HdLitecoinPaymentsConfig, config); | ||
assertType(HdLitecoinPaymentsConfig, config); | ||
this.derivationPath = config.derivationPath || DEFAULT_DERIVATION_PATHS[this.addressType]; | ||
@@ -779,6 +778,6 @@ if (this.isValidXpub(config.hdKey)) { | ||
newUtils(config) { | ||
return new LitecoinPaymentsUtils(assertType$1(LitecoinPaymentsUtilsConfig, config, 'config')); | ||
return new LitecoinPaymentsUtils(assertType(LitecoinPaymentsUtilsConfig, config, 'config')); | ||
} | ||
newBalanceMonitor(config) { | ||
return new LitecoinBalanceMonitor(assertType$1(LitecoinBalanceMonitorConfig, config, 'config')); | ||
return new LitecoinBalanceMonitor(assertType(LitecoinBalanceMonitorConfig, config, 'config')); | ||
} | ||
@@ -785,0 +784,0 @@ } |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('bitcoinjs-lib-bigint'), require('@bitaccess/coinlib-bitcoin'), require('@bitaccess/coinlib-common'), require('io-ts'), require('@faast/ts-common'), require('@bitaccess/ts-common'), require('lodash')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'bitcoinjs-lib-bigint', '@bitaccess/coinlib-bitcoin', '@bitaccess/coinlib-common', 'io-ts', '@faast/ts-common', '@bitaccess/ts-common', 'lodash'], factory) : | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.bitaccessCoinlibLitecoin = {}, global.bitcoin, global.coinlibBitcoin, global.coinlibCommon, global.t, global.tsCommon, global.tsCommon$1, global.lodash)); | ||
})(this, (function (exports, bitcoin, coinlibBitcoin, coinlibCommon, t, tsCommon, tsCommon$1, lodash) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('bitcoinjs-lib-bigint'), require('@bitaccess/coinlib-bitcoin'), require('@bitaccess/coinlib-common'), require('io-ts'), require('@bitaccess/ts-common'), require('lodash')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'bitcoinjs-lib-bigint', '@bitaccess/coinlib-bitcoin', '@bitaccess/coinlib-common', 'io-ts', '@bitaccess/ts-common', 'lodash'], factory) : | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.bitaccessCoinlibLitecoin = {}, global.bitcoin, global.coinlibBitcoin, global.coinlibCommon, global.t, global.tsCommon, global.lodash)); | ||
})(this, (function (exports, bitcoin, coinlibBitcoin, coinlibCommon, t, tsCommon, lodash) { 'use strict'; | ||
@@ -300,3 +300,3 @@ function _interopNamespace(e) { | ||
var _a; | ||
const format = tsCommon$1.assertType(tsCommon$1.optional(LitecoinAddressFormatT), (_a = options === null || options === void 0 ? void 0 : options.format) !== null && _a !== void 0 ? _a : this.validAddressFormat, 'format'); | ||
const format = tsCommon.assertType(tsCommon.optional(LitecoinAddressFormatT), (_a = options === null || options === void 0 ? void 0 : options.format) !== null && _a !== void 0 ? _a : this.validAddressFormat, 'format'); | ||
return isValidAddress(address, this.networkType, format); | ||
@@ -306,3 +306,3 @@ } | ||
var _a, _b; | ||
const format = tsCommon$1.assertType(LitecoinAddressFormatT, (_b = (_a = options === null || options === void 0 ? void 0 : options.format) !== null && _a !== void 0 ? _a : this.validAddressFormat) !== null && _b !== void 0 ? _b : DEFAULT_ADDRESS_FORMAT, 'format'); | ||
const format = tsCommon.assertType(LitecoinAddressFormatT, (_b = (_a = options === null || options === void 0 ? void 0 : options.format) !== null && _a !== void 0 ? _a : this.validAddressFormat) !== null && _b !== void 0 ? _b : DEFAULT_ADDRESS_FORMAT, 'format'); | ||
const standardized = standardizeAddress(address, this.networkType, format); | ||
@@ -327,3 +327,3 @@ if (standardized && address !== standardized) { | ||
determinePathForIndex(accountIndex, options) { | ||
const addressType = (options === null || options === void 0 ? void 0 : options.addressType) ? tsCommon$1.assertType(coinlibBitcoin.AddressTypeT, options === null || options === void 0 ? void 0 : options.addressType) : DEFAULT_ADDRESS_TYPE; | ||
const addressType = (options === null || options === void 0 ? void 0 : options.addressType) ? tsCommon.assertType(coinlibBitcoin.AddressTypeT, options === null || options === void 0 ? void 0 : options.addressType) : DEFAULT_ADDRESS_TYPE; | ||
const networkType = this.networkType; | ||
@@ -457,3 +457,3 @@ if (!this.determinePathForIndexFn) { | ||
determinePathForIndex(accountIndex, options) { | ||
const addressType = (options === null || options === void 0 ? void 0 : options.addressType) ? tsCommon$1.assertType(AddressTypeT, options === null || options === void 0 ? void 0 : options.addressType) : DEFAULT_ADDRESS_TYPE; | ||
const addressType = (options === null || options === void 0 ? void 0 : options.addressType) ? tsCommon.assertType(AddressTypeT, options === null || options === void 0 ? void 0 : options.addressType) : DEFAULT_ADDRESS_TYPE; | ||
const networkType = this.networkType; | ||
@@ -460,0 +460,0 @@ if (!this.determinePathForIndexFn) { |
import { omit } from 'lodash'; | ||
import { assertType } from '@faast/ts-common'; | ||
import { assertType } from '@bitaccess/ts-common'; | ||
import { PUBLIC_CONFIG_OMIT_FIELDS, bitcoinish } from '@bitaccess/coinlib-bitcoin'; | ||
@@ -4,0 +4,0 @@ import { isValidXprv as isValidXprvHelper, isValidXpub as isValidXpubHelper, validateHdKey, xprvToXpub, deriveAddress, deriveHDNode, deriveKeyPair, convertXPrefixHdKeys, } from './bip44'; |
import { omit } from 'lodash'; | ||
import { isUndefined, isString } from '@faast/ts-common'; | ||
import { isUndefined, isString } from '@bitaccess/ts-common'; | ||
import { PUBLIC_CONFIG_OMIT_FIELDS } from '@bitaccess/coinlib-bitcoin'; | ||
@@ -4,0 +4,0 @@ import { SinglesigLitecoinPayments } from './SinglesigLitecoinPayments'; |
import { PaymentsFactory, StandardConnectionManager } from '@bitaccess/coinlib-common'; | ||
import { assertType } from '@faast/ts-common'; | ||
import { assertType } from '@bitaccess/ts-common'; | ||
import { HdLitecoinPaymentsConfig, KeyPairLitecoinPaymentsConfig, MultisigLitecoinPaymentsConfig, LitecoinPaymentsUtilsConfig, LitecoinBalanceMonitorConfig, } from './types'; | ||
@@ -4,0 +4,0 @@ import { PACKAGE_NAME } from './constants'; |
@@ -8,3 +8,3 @@ /// <reference types="node" /> | ||
import { CreateTransactionOptions, ResolveablePayport, PayportOutput } from '@bitaccess/coinlib-common'; | ||
import { Numeric } from '@faast/ts-common'; | ||
import { Numeric } from '@bitaccess/ts-common'; | ||
export declare class MultisigLitecoinPayments extends BaseLitecoinPayments<MultisigLitecoinPaymentsConfig> { | ||
@@ -11,0 +11,0 @@ private config; |
import * as t from 'io-ts'; | ||
import { BaseConfig, FeeRate, BaseTransactionInfo, BaseBroadcastResult, KeyPairsConfigParam, } from '@bitaccess/coinlib-common'; | ||
import { extendCodec, enumCodec, requiredOptionalCodec, instanceofCodec } from '@faast/ts-common'; | ||
import { extendCodec, enumCodec, requiredOptionalCodec, instanceofCodec } from '@bitaccess/ts-common'; | ||
import { bitcoinish } from '@bitaccess/coinlib-bitcoin'; | ||
@@ -5,0 +5,0 @@ export var LitecoinAddressFormat; |
{ | ||
"name": "@bitaccess/coinlib-litecoin", | ||
"version": "7.0.0", | ||
"version": "7.0.1", | ||
"description": "Library to assist in processing litecoin payments, such as deriving addresses and sweeping funds", | ||
@@ -52,6 +52,5 @@ "main": "dist/index.cjs.js", | ||
"dependencies": { | ||
"@bitaccess/coinlib-bitcoin": "^7.0.0", | ||
"@bitaccess/coinlib-common": "^7.0.0", | ||
"@bitaccess/coinlib-bitcoin": "^7.0.1", | ||
"@bitaccess/coinlib-common": "^7.0.1", | ||
"@bitaccess/ts-common": "^1.0.2", | ||
"@faast/ts-common": "^0.6.0", | ||
"@types/lodash": "^4.14.150", | ||
@@ -65,3 +64,3 @@ "bip174-bigint": "github:bitaccess/bip174#bigint", | ||
}, | ||
"gitHead": "98fed792eebe30aadf3f421f0cf3e720350d6e01" | ||
"gitHead": "c6846f6d5b498ac229506fa46513592928e7452f" | ||
} |
import { omit } from 'lodash' | ||
import { assertType } from '@faast/ts-common' | ||
import { assertType } from '@bitaccess/ts-common' | ||
import { PUBLIC_CONFIG_OMIT_FIELDS, bitcoinish } from '@bitaccess/coinlib-bitcoin' | ||
@@ -4,0 +4,0 @@ |
import { omit } from 'lodash' | ||
import { isUndefined, isString } from '@faast/ts-common' | ||
import { isUndefined, isString } from '@bitaccess/ts-common' | ||
import { PUBLIC_CONFIG_OMIT_FIELDS } from '@bitaccess/coinlib-bitcoin' | ||
@@ -4,0 +4,0 @@ |
import { PaymentsFactory, StandardConnectionManager } from '@bitaccess/coinlib-common' | ||
import { assertType } from '@faast/ts-common' | ||
import { assertType } from '@bitaccess/ts-common' | ||
import { bitcoinish } from '@bitaccess/coinlib-bitcoin' | ||
@@ -4,0 +4,0 @@ |
@@ -19,3 +19,3 @@ import { BaseLitecoinPayments } from './BaseLitecoinPayments' | ||
import { Numeric } from '@faast/ts-common' | ||
import { Numeric } from '@bitaccess/ts-common' | ||
import { DEFAULT_MULTISIG_ADDRESS_TYPE } from './constants' | ||
@@ -22,0 +22,0 @@ |
@@ -9,3 +9,3 @@ import * as t from 'io-ts' | ||
} from '@bitaccess/coinlib-common' | ||
import { extendCodec, enumCodec, requiredOptionalCodec, instanceofCodec } from '@faast/ts-common' | ||
import { extendCodec, enumCodec, requiredOptionalCodec, instanceofCodec } from '@bitaccess/ts-common' | ||
import { Signer as BitcoinjsSigner } from 'bitcoinjs-lib-bigint' | ||
@@ -12,0 +12,0 @@ import { bitcoinish } from '@bitaccess/coinlib-bitcoin' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
10
529251
5879
- Removed@faast/ts-common@^0.6.0
- Removed@faast/ts-common@0.6.3(transitive)