UNPKG

1.2 kBTypeScriptView Raw
1/// <reference types="node" />
2import { DataItem } from 'ethereum-types';
3import { BigNumber } from '../../configured_bignumber';
4import { DataTypeFactory } from '../abstract_data_types/interfaces';
5import { AbstractBlobDataType } from '../abstract_data_types/types/blob';
6import { RawCalldata } from '../calldata/raw_calldata';
7export declare class IntDataType extends AbstractBlobDataType {
8 private static readonly _MATCHER;
9 private static readonly _SIZE_KNOWN_AT_COMPILE_TIME;
10 private static readonly _MAX_WIDTH;
11 private static readonly _DEFAULT_WIDTH;
12 private static readonly _DEFAULT_VALUE;
13 private static readonly _WIDTH_TO_MIN_VALUE;
14 private static readonly _WIDTH_TO_MAX_VALUE;
15 private readonly _width;
16 private readonly _minValue;
17 private readonly _maxValue;
18 static matchType(type: string): boolean;
19 private static _decodeWidthFromType;
20 constructor(dataItem: DataItem, dataTypeFactory: DataTypeFactory);
21 encodeValue(value: BigNumber | string | number): Buffer;
22 decodeValue(calldata: RawCalldata): BigNumber | number;
23 getDefaultValue(): BigNumber | number;
24 getSignatureType(): string;
25}
26//# sourceMappingURL=int.d.ts.map
\No newline at end of file