import BaseError from 'standard-error' ; function createError ( name ) { const Error = class extends BaseError { } ; Error . prototype . name = name ; return Error ; } export const StandardError = createError ( 'StandardError' ) ; export const ProviderNotFoundError = createError ( 'ProviderNotFoundError' ) ; export const InvalidProviderError = createError ( 'InvalidProviderError' ) ; export const DuplicateProviderError = createError ( 'DuplicateProviderError' ) ; export const NoProviderError = createError ( 'NoProviderError' ) ; export const UnsupportedMethodError = createError ( 'UnsupportedMethodError' ) ; export const UnimplementedMethodError = createError ( 'UnimplementedMethodError' ) ; export const InvalidProviderResponseError = createError ( 'InvalidProviderResponseError' ) ; export const PendingTxError = createError ( 'PendingTxError' ) ; export const TxNotFoundError = createError ( 'TxNotFoundError' ) ; export const TxFailedError = createError ( 'TxFailedError' ) ; export const BlockNotFoundError = createError ( 'BlockNotFoundError' ) ; export const InvalidDestinationAddressError = createError ( 'InvalidDestinationAddressError' ) ; export const WalletError = createError ( 'WalletError' ) ; export const NodeError = createError ( 'NodeError' ) ; export const InvalidSecretError = createError ( 'InvalidSecretError' ) ; export const InvalidAddressError = createError ( 'InvalidAddressError' ) ; export const InvalidExpirationError = createError ( 'InvalidExpirationError' ) ; export const InsufficientBalanceError = createError ( 'InsufficientBalanceError' ) ;