You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
806 B
22 lines
806 B
import { formatGwei } from '../utils/unit/formatGwei.js';
|
|
import { BaseError } from './base.js';
|
|
export class BaseFeeScalarError extends BaseError {
|
|
constructor() {
|
|
super('`baseFeeMultiplier` must be greater than 1.', {
|
|
name: 'BaseFeeScalarError',
|
|
});
|
|
}
|
|
}
|
|
export class Eip1559FeesNotSupportedError extends BaseError {
|
|
constructor() {
|
|
super('Chain does not support EIP-1559 fees.', {
|
|
name: 'Eip1559FeesNotSupportedError',
|
|
});
|
|
}
|
|
}
|
|
export class MaxFeePerGasTooLowError extends BaseError {
|
|
constructor({ maxPriorityFeePerGas }) {
|
|
super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${formatGwei(maxPriorityFeePerGas)} gwei).`, { name: 'MaxFeePerGasTooLowError' });
|
|
}
|
|
}
|
|
//# sourceMappingURL=fee.js.map
|