@bitaccess/coinlib-common
Advanced tools
Comparing version 5.0.1 to 5.1.0
@@ -267,2 +267,5 @@ 'use strict'; | ||
}, 'BlockInfo'); | ||
const GetFeeRecommendationOptions = t__namespace.partial({ | ||
source: t__namespace.string, | ||
}, 'GetFeeRecommendationOptions'); | ||
@@ -420,2 +423,3 @@ function isMatchingError(e, partialMessages) { | ||
exports.GetBalanceActivityOptions = GetBalanceActivityOptions; | ||
exports.GetFeeRecommendationOptions = GetFeeRecommendationOptions; | ||
exports.GetPayportOptions = GetPayportOptions; | ||
@@ -422,0 +426,0 @@ exports.KeyPairsConfigParam = KeyPairsConfigParam; |
@@ -238,2 +238,5 @@ import * as t from 'io-ts'; | ||
}, 'BlockInfo'); | ||
const GetFeeRecommendationOptions = t.partial({ | ||
source: t.string, | ||
}, 'GetFeeRecommendationOptions'); | ||
@@ -366,3 +369,3 @@ function isMatchingError(e, partialMessages) { | ||
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, GetPayportOptions, KeyPairsConfigParam, 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, KeyPairsConfigParam, MultiInputMultisigData, MultisigData, NetworkType, NetworkTypeT, NewBlockCallback, NullableOptionalString, PaymentsError, PaymentsErrorCode, PaymentsFactory, Payport, PayportOutput, ResolveablePayport, ResolvedFeeOption, RetrieveBalanceActivitiesResult, StandardConnectionManager, TransactionCommon, TransactionOutput, TransactionStatus, TransactionStatusT, UtxoInfo, WeightedChangeOutput, createUnitConverters, isMatchingError }; | ||
//# sourceMappingURL=index.es.js.map |
@@ -265,2 +265,5 @@ (function (global, factory) { | ||
}, 'BlockInfo'); | ||
const GetFeeRecommendationOptions = t__namespace.partial({ | ||
source: t__namespace.string, | ||
}, 'GetFeeRecommendationOptions'); | ||
@@ -418,2 +421,3 @@ function isMatchingError(e, partialMessages) { | ||
exports.GetBalanceActivityOptions = GetBalanceActivityOptions; | ||
exports.GetFeeRecommendationOptions = GetFeeRecommendationOptions; | ||
exports.GetPayportOptions = GetPayportOptions; | ||
@@ -420,0 +424,0 @@ exports.KeyPairsConfigParam = KeyPairsConfigParam; |
import { Numeric } from '@faast/ts-common'; | ||
import { Payport, MaybePromise, AutoFeeLevels, FeeRate, NetworkType, UtxoInfo, BalanceResult, BaseTransactionInfo, BlockInfo } from './types'; | ||
import { Payport, MaybePromise, AutoFeeLevels, FeeRate, NetworkType, UtxoInfo, BalanceResult, BaseTransactionInfo, BlockInfo, GetFeeRecommendationOptions } from './types'; | ||
export interface PaymentsUtils { | ||
@@ -22,3 +22,3 @@ readonly networkType: NetworkType; | ||
getPayportValidationMessage<O extends object>(payport: Payport, options?: O): MaybePromise<string | undefined>; | ||
getFeeRateRecommendation<O extends object>(level: AutoFeeLevels, options?: O): MaybePromise<FeeRate>; | ||
getFeeRateRecommendation<O extends GetFeeRecommendationOptions = GetFeeRecommendationOptions>(level: AutoFeeLevels, options?: O): MaybePromise<FeeRate>; | ||
getCurrentBlockNumber(): MaybePromise<number>; | ||
@@ -25,0 +25,0 @@ getAddressUtxos(address: string): Promise<UtxoInfo[]>; |
@@ -716,1 +716,5 @@ import * as t from 'io-ts'; | ||
export declare type FilterBlockAddressesCallback = (addresses: string[], blockInfo: FilterBlockAddressesBlockInfo) => string[] | Promise<string[]>; | ||
export declare const GetFeeRecommendationOptions: t.PartialC<{ | ||
source: t.StringC; | ||
}>; | ||
export declare type GetFeeRecommendationOptions = t.TypeOf<typeof GetFeeRecommendationOptions>; |
@@ -236,2 +236,5 @@ import * as t from 'io-ts'; | ||
}, 'BlockInfo'); | ||
export const GetFeeRecommendationOptions = t.partial({ | ||
source: t.string, | ||
}, 'GetFeeRecommendationOptions'); | ||
//# sourceMappingURL=types.js.map |
{ | ||
"name": "@bitaccess/coinlib-common", | ||
"version": "5.0.1", | ||
"version": "5.1.0", | ||
"description": "Common module used by coinlib", | ||
@@ -41,3 +41,3 @@ "main": "dist/index.cjs.js", | ||
"start": "rollup -c rollup.config.js -w", | ||
"test": "jest --runInBand --detectOpenHandles", | ||
"test": "jest --runInBand", | ||
"report-coverage": "cat ./coverage/lcov.info | coveralls", | ||
@@ -48,8 +48,8 @@ "version": "npm run build" | ||
"@faast/ts-config": "^1.3.5", | ||
"@types/jest": "^26.0.5", | ||
"@types/jest": "^27.0.2", | ||
"@types/node": "^14.0.24", | ||
"coveralls": "^3.0.2", | ||
"jest": "^26.5.3", | ||
"jest-circus": "^26.1.0", | ||
"jest-config": "^26.1.0", | ||
"jest": "^27.2.4", | ||
"jest-circus": "^27.2.4", | ||
"jest-config": "^27.2.4", | ||
"lint-staged": "^8.0.0", | ||
@@ -65,3 +65,3 @@ "node-fetch": "^2.6.1", | ||
"rollup-plugin-typescript2": "^0.27.2", | ||
"ts-jest": "^26.5.5", | ||
"ts-jest": "^27.0.5", | ||
"ts-node": "^8.10.2", | ||
@@ -76,3 +76,3 @@ "tslint": "^5.20.0", | ||
}, | ||
"gitHead": "db458ba203c0e448211f6f9ded341b7468d7ee2d" | ||
"gitHead": "3abb37b200946296f949f17fae86f3bf53bb7a52" | ||
} |
import { Numeric } from '@faast/ts-common' | ||
import { | ||
Payport, MaybePromise, AutoFeeLevels, FeeRate, NetworkType, | ||
UtxoInfo, BalanceResult, BaseTransactionInfo, BlockInfo | ||
UtxoInfo, BalanceResult, BaseTransactionInfo, BlockInfo, GetFeeRecommendationOptions | ||
} from './types' | ||
@@ -63,3 +63,6 @@ | ||
*/ | ||
getFeeRateRecommendation<O extends object>(level: AutoFeeLevels, options?: O): MaybePromise<FeeRate> | ||
getFeeRateRecommendation<O extends GetFeeRecommendationOptions = GetFeeRecommendationOptions>( | ||
level: AutoFeeLevels, | ||
options?: O, | ||
): MaybePromise<FeeRate> | ||
@@ -66,0 +69,0 @@ /** |
@@ -425,1 +425,6 @@ import * as t from 'io-ts' | ||
) => string[] | Promise<string[]> | ||
export const GetFeeRecommendationOptions = t.partial({ | ||
source: t.string, // ie blockbook, blockcypher, ethgasstation, etc | ||
}, 'GetFeeRecommendationOptions') | ||
export type GetFeeRecommendationOptions = t.TypeOf<typeof GetFeeRecommendationOptions> |
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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
254355
3413
0