Socket
Socket
Sign inDemoInstall

@bitaccess/coinlib-common

Package Overview
Dependencies
Maintainers
23
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bitaccess/coinlib-common - npm Package Compare versions

Comparing version 5.2.0 to 6.0.0

dist/lib/SharedDependencies.d.ts

16

dist/index.cjs.js

@@ -8,2 +8,5 @@ 'use strict';

var BigNumber = require('bignumber.js');
var bip32$1 = require('bip32');
var ecpair$1 = require('ecpair');
var ecc = require('tiny-secp256k1');

@@ -32,2 +35,3 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var BigNumber__default = /*#__PURE__*/_interopDefaultLegacy(BigNumber);
var ecc__namespace = /*#__PURE__*/_interopNamespace(ecc);

@@ -183,2 +187,3 @@ const NullableOptionalString = t__namespace.union([t__namespace.string, t__namespace.null, t__namespace.undefined]);

weight: t__namespace.number,
chainId: t__namespace.string,
}, 'TransactionCommon');

@@ -253,2 +258,3 @@ const BaseMultisigData = t__namespace.type({

utxosCreated: t__namespace.array(UtxoInfo),
tokenAddress: t__namespace.string,
}, 'BalanceActivity');

@@ -278,2 +284,5 @@ const BalanceMonitorConfig = BaseConfig;

const bip32 = bip32$1.BIP32Factory(ecc__namespace);
const ecpair = ecpair$1.ECPairFactory(ecc__namespace);
function isMatchingError(e, partialMessages) {

@@ -404,2 +413,7 @@ const messageLower = e.toString().toLowerCase();

Object.defineProperty(exports, 'BigNumber', {
enumerable: true,
get: function () { return BigNumber__default["default"]; }
});
exports.ecc = ecc__namespace;
exports.AddressMultisigData = AddressMultisigData;

@@ -453,4 +467,6 @@ exports.AutoFeeLevels = AutoFeeLevels;

exports.WeightedChangeOutput = WeightedChangeOutput;
exports.bip32 = bip32;
exports.createUnitConverters = createUnitConverters;
exports.ecpair = ecpair;
exports.isMatchingError = isMatchingError;
//# sourceMappingURL=index.cjs.js.map

12

dist/index.es.js
import * as t from 'io-ts';
import { enumCodec, Logger, requiredOptionalCodec, nullable, Numeric, extendCodec, functionT, DateT } from '@faast/ts-common';
import BigNumber from 'bignumber.js';
export { default as BigNumber } from 'bignumber.js';
import { BIP32Factory } from 'bip32';
import { ECPairFactory } from 'ecpair';
import * as ecc from 'tiny-secp256k1';
export { ecc };

@@ -154,2 +159,3 @@ const NullableOptionalString = t.union([t.string, t.null, t.undefined]);

weight: t.number,
chainId: t.string,
}, 'TransactionCommon');

@@ -224,2 +230,3 @@ const BaseMultisigData = t.type({

utxosCreated: t.array(UtxoInfo),
tokenAddress: t.string,
}, 'BalanceActivity');

@@ -249,2 +256,5 @@ const BalanceMonitorConfig = BaseConfig;

const bip32 = BIP32Factory(ecc);
const ecpair = ECPairFactory(ecc);
function isMatchingError(e, partialMessages) {

@@ -375,3 +385,3 @@ const messageLower = e.toString().toLowerCase();

export { AddressMultisigData, AutoFeeLevels, BalanceActivity, BalanceActivityCallback, BalanceActivityType, BalanceMonitorConfig, BalanceResult, BaseBroadcastResult, BaseConfig, BaseMultisigData, BaseSignedTransaction, BaseTransactionInfo, BaseUnsignedTransaction, BlockInfo, CreateTransactionOptions, DEFAULT_MAX_FEE_PERCENT, DerivablePayport, FeeLevel, FeeLevelT, FeeOption, FeeOptionCustom, FeeOptionLevel, FeeRate, FeeRateType, FeeRateTypeT, FilterChangeAddresses, GetBalanceActivityOptions, GetFeeRecommendationOptions, GetPayportOptions, GetTransactionInfoOptions, KeyPairsConfigParam, LookupTxDataByHashes, MultiInputMultisigData, MultisigData, NetworkType, NetworkTypeT, NewBlockCallback, NullableOptionalString, PaymentsError, PaymentsErrorCode, PaymentsFactory, Payport, PayportOutput, ResolveablePayport, ResolvedFeeOption, RetrieveBalanceActivitiesResult, StandardConnectionManager, TransactionCommon, TransactionOutput, TransactionStatus, TransactionStatusT, UtxoInfo, WeightedChangeOutput, createUnitConverters, isMatchingError };
export { AddressMultisigData, AutoFeeLevels, BalanceActivity, BalanceActivityCallback, BalanceActivityType, BalanceMonitorConfig, BalanceResult, BaseBroadcastResult, BaseConfig, BaseMultisigData, BaseSignedTransaction, BaseTransactionInfo, BaseUnsignedTransaction, BlockInfo, CreateTransactionOptions, DEFAULT_MAX_FEE_PERCENT, DerivablePayport, FeeLevel, FeeLevelT, FeeOption, FeeOptionCustom, FeeOptionLevel, FeeRate, FeeRateType, FeeRateTypeT, FilterChangeAddresses, GetBalanceActivityOptions, GetFeeRecommendationOptions, GetPayportOptions, GetTransactionInfoOptions, KeyPairsConfigParam, LookupTxDataByHashes, MultiInputMultisigData, MultisigData, NetworkType, NetworkTypeT, NewBlockCallback, NullableOptionalString, PaymentsError, PaymentsErrorCode, PaymentsFactory, Payport, PayportOutput, ResolveablePayport, ResolvedFeeOption, RetrieveBalanceActivitiesResult, StandardConnectionManager, TransactionCommon, TransactionOutput, TransactionStatus, TransactionStatusT, UtxoInfo, WeightedChangeOutput, bip32, createUnitConverters, ecpair, isMatchingError };
//# sourceMappingURL=index.es.js.map
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('io-ts'), require('@faast/ts-common'), require('bignumber.js')) :
typeof define === 'function' && define.amd ? define(['exports', 'io-ts', '@faast/ts-common', 'bignumber.js'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.bitaccessCoinlibCommon = {}, global.t, global.tsCommon, global.BigNumber));
})(this, (function (exports, t, tsCommon, BigNumber) { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('io-ts'), require('@faast/ts-common'), require('bignumber.js'), require('bip32'), require('ecpair'), require('tiny-secp256k1')) :
typeof define === 'function' && define.amd ? define(['exports', 'io-ts', '@faast/ts-common', 'bignumber.js', 'bip32', 'ecpair', 'tiny-secp256k1'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.bitaccessCoinlibCommon = {}, global.t, global.tsCommon, global.BigNumber, global.bip32$1, global.ecpair$1, global.ecc));
})(this, (function (exports, t, tsCommon, BigNumber, bip32$1, ecpair$1, ecc) { 'use strict';

@@ -29,2 +29,3 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var BigNumber__default = /*#__PURE__*/_interopDefaultLegacy(BigNumber);
var ecc__namespace = /*#__PURE__*/_interopNamespace(ecc);

@@ -180,2 +181,3 @@ const NullableOptionalString = t__namespace.union([t__namespace.string, t__namespace.null, t__namespace.undefined]);

weight: t__namespace.number,
chainId: t__namespace.string,
}, 'TransactionCommon');

@@ -250,2 +252,3 @@ const BaseMultisigData = t__namespace.type({

utxosCreated: t__namespace.array(UtxoInfo),
tokenAddress: t__namespace.string,
}, 'BalanceActivity');

@@ -275,2 +278,5 @@ const BalanceMonitorConfig = BaseConfig;

const bip32 = bip32$1.BIP32Factory(ecc__namespace);
const ecpair = ecpair$1.ECPairFactory(ecc__namespace);
function isMatchingError(e, partialMessages) {

@@ -401,2 +407,7 @@ const messageLower = e.toString().toLowerCase();

Object.defineProperty(exports, 'BigNumber', {
enumerable: true,
get: function () { return BigNumber__default["default"]; }
});
exports.ecc = ecc__namespace;
exports.AddressMultisigData = AddressMultisigData;

@@ -450,3 +461,5 @@ exports.AutoFeeLevels = AutoFeeLevels;

exports.WeightedChangeOutput = WeightedChangeOutput;
exports.bip32 = bip32;
exports.createUnitConverters = createUnitConverters;
exports.ecpair = ecpair;
exports.isMatchingError = isMatchingError;

@@ -453,0 +466,0 @@

2

dist/lib/BalanceMonitor.d.ts

@@ -8,5 +8,5 @@ import { BalanceActivityCallback, GetBalanceActivityOptions, RetrieveBalanceActivitiesResult, BalanceActivity, NewBlockCallback, FilterBlockAddressesCallback, BlockInfo } from './types';

retrieveBalanceActivities(address: string, callbackFn: BalanceActivityCallback, options?: GetBalanceActivityOptions): Promise<RetrieveBalanceActivitiesResult>;
txToBalanceActivity(address: string, tx: object): Promise<BalanceActivity | null>;
txToBalanceActivity(address: string, tx: object): Promise<BalanceActivity | BalanceActivity[] | null>;
subscribeNewBlock?: (callbackFn: NewBlockCallback) => Promise<void>;
retrieveBlockBalanceActivities?: (block: number | string, callbackFn: BalanceActivityCallback, filterRelevantAddresses: FilterBlockAddressesCallback) => Promise<BlockInfo>;
}

@@ -11,1 +11,2 @@ export * from './types';

export * from './constants';
export * from './SharedDependencies';

@@ -11,2 +11,3 @@ export * from './types';

export * from './constants';
export * from './SharedDependencies';
//# sourceMappingURL=index.js.map

@@ -265,2 +265,3 @@ import * as t from 'io-ts';

weight: t.NumberC;
chainId: t.StringC;
}>]>;

@@ -362,2 +363,3 @@ export declare type TransactionCommon = t.TypeOf<typeof TransactionCommon>;

weight: t.NumberC;
chainId: t.StringC;
}>]>, t.TypeC<{

@@ -442,2 +444,3 @@ fromAddress: t.StringC;

weight: t.NumberC;
chainId: t.StringC;
}>]>, t.TypeC<{

@@ -525,2 +528,3 @@ fromAddress: t.StringC;

weight: t.NumberC;
chainId: t.StringC;
}>]>, t.TypeC<{

@@ -594,2 +598,3 @@ id: t.StringC;

}>]>>;
tokenAddress: t.StringC;
}>]>;

@@ -650,2 +655,3 @@ export declare type BalanceActivity = t.TypeOf<typeof BalanceActivity>;

}>]>>;
tokenAddress: t.StringC;
}>]>]>;

@@ -699,2 +705,3 @@ to: t.UnionC<[t.UnionC<[t.StringC, t.NumberC, import("@faast/ts-common").BigNumberC]>, t.IntersectionC<[t.TypeC<{

}>]>>;
tokenAddress: t.StringC;
}>]>]>;

@@ -736,1 +743,4 @@ }>;

export declare type GetFeeRecommendationOptions = t.TypeOf<typeof GetFeeRecommendationOptions>;
export declare type FunctionPropertyNames<T> = {
[K in keyof T]: T[K] extends Function ? K : never;
}[keyof T];

@@ -152,2 +152,3 @@ import * as t from 'io-ts';

weight: t.number,
chainId: t.string,
}, 'TransactionCommon');

@@ -222,2 +223,3 @@ export const BaseMultisigData = t.type({

utxosCreated: t.array(UtxoInfo),
tokenAddress: t.string,
}, 'BalanceActivity');

@@ -224,0 +226,0 @@ export const BalanceMonitorConfig = BaseConfig;

@@ -1,2 +0,2 @@

import BigNumber from 'bignumber.js';
import { BigNumber } from './SharedDependencies';
import { Numeric } from '@faast/ts-common';

@@ -3,0 +3,0 @@ export declare function isMatchingError(e: Error, partialMessages: string[]): boolean;

@@ -1,2 +0,2 @@

import BigNumber from 'bignumber.js';
import { BigNumber } from './SharedDependencies';
export function isMatchingError(e, partialMessages) {

@@ -3,0 +3,0 @@ const messageLower = e.toString().toLowerCase();

{
"name": "@bitaccess/coinlib-common",
"version": "5.2.0",
"version": "6.0.0",
"description": "Common module used by coinlib",

@@ -47,6 +47,9 @@ "main": "dist/index.cjs.js",

"@faast/ts-common": "^0.6.0",
"bignumber.js": "^9.0.0",
"io-ts": "^1.10.4"
"bignumber.js": "^9.0.2",
"bip32": "^3.0.1",
"ecpair": "^2.0.1",
"io-ts": "^1.10.4",
"tiny-secp256k1": "^2.2.1"
},
"gitHead": "022c03ac7267c8346a63a3c464a5b9ae10d8017a"
"gitHead": "e11bc1520a014177ad66089c0425055412cb12bf"
}

@@ -77,3 +77,3 @@ import {

*/
txToBalanceActivity(address: string, tx: object): Promise<BalanceActivity | null>
txToBalanceActivity(address: string, tx: object): Promise<BalanceActivity | BalanceActivity[] | null>

@@ -80,0 +80,0 @@ /**

@@ -11,1 +11,2 @@ export * from './types'

export * from './constants'
export * from './SharedDependencies'

@@ -251,2 +251,3 @@ import * as t from 'io-ts'

weight: t.number, // weight of this transaction for fee purposes (ie vbytes, gas limit)
chainId: t.string,
},

@@ -381,2 +382,3 @@ 'TransactionCommon',

utxosCreated: t.array(UtxoInfo),
tokenAddress: t.string,
},

@@ -442,1 +444,3 @@ 'BalanceActivity',

export type GetFeeRecommendationOptions = t.TypeOf<typeof GetFeeRecommendationOptions>
export type FunctionPropertyNames<T> = { [K in keyof T]: T[K] extends Function ? K : never }[keyof T]

@@ -1,2 +0,2 @@

import BigNumber from 'bignumber.js'
import { BigNumber } from './SharedDependencies'
import { Numeric } from '@faast/ts-common'

@@ -3,0 +3,0 @@

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc