import { bitcoinish } from '@bitaccess/coinlib-bitcoin' ; import { toBitcoinishConfig } from './utils' ; import { DogePaymentsUtilsConfig } from './types' ; import { isValidAddress , isValidPrivateKey , isValidPublicKey , standardizeAddress } from './helpers' ; import { DEFAULT_FEE_LEVEL_BLOCK_TARGETS } from './constants' ; export class DogePaymentsUtils extends bitcoinish . BitcoinishPaymentsUtils { constructor ( config = { } ) { super ( toBitcoinishConfig ( config ) ) ; this . feeLevelBlockTargets = config . feeLevelBlockTargets ?? DEFAULT_FEE_LEVEL_BLOCK_TARGETS ; } isValidAddress ( address ) { return isValidAddress ( address , this . networkType ) ; } standardizeAddress ( address ) { return standardizeAddress ( address , this . networkType ) ; } isValidPublicKey ( publicKey ) { return isValidPublicKey ( publicKey , this . networkType ) ; } isValidPrivateKey ( privateKey ) { return isValidPrivateKey ( privateKey , this . networkType ) ; } }