UNPKG

viem

Version:

TypeScript Interface for Ethereum

34 lines 1.45 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WithdrawalLogNotFoundError = exports.TxHashNotFoundInLogsError = exports.BaseFeeHigherThanValueError = void 0; const base_js_1 = require("../../errors/base.js"); class BaseFeeHigherThanValueError extends base_js_1.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' }); } } exports.BaseFeeHigherThanValueError = BaseFeeHigherThanValueError; class TxHashNotFoundInLogsError extends base_js_1.BaseError { constructor() { super('The transaction hash not found in event logs.', { name: 'TxHashNotFoundInLogsError', }); } } exports.TxHashNotFoundInLogsError = TxHashNotFoundInLogsError; class WithdrawalLogNotFoundError extends base_js_1.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' }); } } exports.WithdrawalLogNotFoundError = WithdrawalLogNotFoundError; //# sourceMappingURL=bridge.js.map