UNPKG

viem

Version:

TypeScript Interface for Ethereum

32 lines 1.04 kB
import { BaseError } from './base.js'; export type SliceOffsetOutOfBoundsErrorType = SliceOffsetOutOfBoundsError & { name: 'SliceOffsetOutOfBoundsError'; }; export declare class SliceOffsetOutOfBoundsError extends BaseError { constructor({ offset, position, size, }: { offset: number; position: 'start' | 'end'; size: number; }); } export type SizeExceedsPaddingSizeErrorType = SizeExceedsPaddingSizeError & { name: 'SizeExceedsPaddingSizeError'; }; export declare class SizeExceedsPaddingSizeError extends BaseError { constructor({ size, targetSize, type, }: { size: number; targetSize: number; type: 'hex' | 'bytes'; }); } export type InvalidBytesLengthErrorType = InvalidBytesLengthError & { name: 'InvalidBytesLengthError'; }; export declare class InvalidBytesLengthError extends BaseError { constructor({ size, targetSize, type, }: { size: number; targetSize: number; type: 'hex' | 'bytes'; }); } //# sourceMappingURL=data.d.ts.map