UNPKG

viem

Version:

TypeScript Interface for Ethereum

28 lines 1.05 kB
import { BaseError } from '../../errors/base.js'; export class BaseFeeHigherThanValueError extends BaseError { constructor(baseCost, value) { super([ 'The base cost of performing the priority operation is higher than the provided transaction value parameter.', '', `Base cost: ${baseCost}.`, `Provided value: ${value}.`, ].join('\n'), { name: 'BaseFeeHigherThanValueError' }); } } export class TxHashNotFoundInLogsError extends BaseError { constructor() { super('The transaction hash not found in event logs.', { name: 'TxHashNotFoundInLogsError', }); } } export class WithdrawalLogNotFoundError extends BaseError { constructor({ hash }) { super([ `Withdrawal log with hash ${hash} not found.`, '', 'Either the withdrawal transaction is still processing or it did not finish successfully.', ].join('\n'), { name: 'WithdrawalLogNotFoundError' }); } } //# sourceMappingURL=bridge.js.map